@docx-editor.dev/core 2.1.3 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +4 -5
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.js +1 -1
  4. package/dist/binding.cjs +1 -1
  5. package/dist/binding.js +1 -1
  6. package/dist/{chunk-TBBXCC7D.js → chunk-2QPRJAHK.js} +3 -3
  7. package/dist/chunk-3JENXX7Q.cjs +2 -0
  8. package/dist/chunk-5WEA7SIG.cjs +12 -0
  9. package/dist/chunk-73X5I53C.cjs +2 -0
  10. package/dist/chunk-7D2CP2J7.js +2 -0
  11. package/dist/{chunk-O2WQY7IT.cjs → chunk-C3YJR64Q.cjs} +5 -5
  12. package/dist/chunk-EWRKYYUA.js +12 -0
  13. package/dist/{chunk-PC76F2HR.cjs → chunk-GLHPDILJ.cjs} +1 -1
  14. package/dist/{chunk-REZUWYB7.js → chunk-GRGRIDHF.js} +1 -1
  15. package/dist/{chunk-HBL3NNH5.cjs → chunk-MIUELYVA.cjs} +1 -1
  16. package/dist/chunk-PD4BVZW5.js +12 -0
  17. package/dist/chunk-PEIEVTWR.js +2 -0
  18. package/dist/chunk-QIFQTG57.cjs +10 -0
  19. package/dist/chunk-RFO2O56I.js +10 -0
  20. package/dist/chunk-SAUKKJWZ.cjs +12 -0
  21. package/dist/chunk-WKZR6YPE.js +1 -0
  22. package/dist/contracts/editor.cjs +1 -1
  23. package/dist/contracts/editor.d.cts +3 -3
  24. package/dist/contracts/editor.d.ts +3 -3
  25. package/dist/contracts/editor.js +1 -1
  26. package/dist/contracts/interaction.d.cts +4 -4
  27. package/dist/contracts/interaction.d.ts +4 -4
  28. package/dist/{editor-BGBZn9c9.d.cts → editor-25RmHnxu.d.cts} +64 -2
  29. package/dist/{editor-DQRRxKMG.d.ts → editor-C8oaTHr3.d.ts} +64 -2
  30. package/dist/editor.cjs +1 -1
  31. package/dist/editor.css +86 -11
  32. package/dist/editor.d.cts +52 -12
  33. package/dist/editor.d.ts +52 -12
  34. package/dist/editor.js +1 -1
  35. package/dist/{index-BzqHsd4Y.d.ts → index-BWiuzoVN.d.ts} +33 -6
  36. package/dist/{index-DptRpcqa.d.cts → index-Beyo2mTa.d.cts} +33 -6
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.d.cts +7 -7
  39. package/dist/index.d.ts +7 -7
  40. package/dist/index.js +1 -1
  41. package/dist/layout.cjs +1 -1
  42. package/dist/layout.d.cts +97 -63
  43. package/dist/layout.d.ts +97 -63
  44. package/dist/layout.js +1 -1
  45. package/dist/output.cjs +1 -1
  46. package/dist/output.d.cts +4 -101
  47. package/dist/output.d.ts +4 -101
  48. package/dist/output.js +1 -1
  49. package/dist/{review-reads-CsoXSvUg.d.ts → review-reads-CMAqdMnE.d.ts} +1 -1
  50. package/dist/{review-reads-qW0jvdF1.d.cts → review-reads-D3r3tnoo.d.cts} +1 -1
  51. package/dist/{semantic-cell-selection-DwLB71fF.d.cts → semantic-cell-selection-CI3loBKq.d.cts} +2 -2
  52. package/dist/{semantic-cell-selection-D_8RbPII.d.ts → semantic-cell-selection-Cx8P64j2.d.ts} +2 -2
  53. package/dist/{semantic-interaction-DqcEonqD.d.cts → semantic-interaction-B4HrJFQ2.d.cts} +1 -1
  54. package/dist/{semantic-interaction-CXH2wFqi.d.ts → semantic-interaction-unGpRNCk.d.ts} +1 -1
  55. package/dist/semantic-paint-BBNaqr1s.d.ts +133 -0
  56. package/dist/semantic-paint-DdGGra4m.d.cts +133 -0
  57. package/dist/{semantic-records-zTC0_1zi.d.ts → semantic-records-BC4bIKKL.d.ts} +28 -32
  58. package/dist/{semantic-records-COVFW5aS.d.cts → semantic-records-DC6V1U3T.d.cts} +28 -32
  59. package/dist/{shaped-measurer-CZXL-a6v.d.ts → shaped-measurer-ChSWkuAT.d.ts} +1 -1
  60. package/dist/{shaped-measurer-AFnFxoot.d.cts → shaped-measurer-SIqZp-Ty.d.cts} +1 -1
  61. package/dist/store.cjs +1 -1
  62. package/dist/store.d.cts +36 -15
  63. package/dist/store.d.ts +36 -15
  64. package/dist/store.js +1 -1
  65. package/package.json +2 -2
  66. package/dist/chunk-2DTQDAN7.js +0 -2
  67. package/dist/chunk-3HEU7MHP.js +0 -12
  68. package/dist/chunk-3JKQE4QJ.cjs +0 -2
  69. package/dist/chunk-6WIIHJFY.js +0 -1
  70. package/dist/chunk-BZK64YU3.cjs +0 -10
  71. package/dist/chunk-EDLUMMQN.cjs +0 -12
  72. package/dist/chunk-JQFDLZXQ.cjs +0 -2
  73. package/dist/chunk-QRAUDDVY.js +0 -2
  74. package/dist/chunk-STCITBJK.js +0 -12
  75. package/dist/chunk-TSXT537P.cjs +0 -12
  76. package/dist/chunk-Y7TA7TPF.js +0 -10
  77. package/dist/semantic-paint-drawings-B5Wk2so5.d.ts +0 -21
  78. package/dist/semantic-paint-drawings-x8g44lD_.d.cts +0 -21
@@ -0,0 +1,12 @@
1
+ 'use strict';var chunk73X5I53C_cjs=require('./chunk-73X5I53C.cjs'),chunkQIFQTG57_cjs=require('./chunk-QIFQTG57.cjs');var Wn=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`)},wg=(e,n)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${n} must be a four-byte ASCII tag`)},zc=(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(wg(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)},Ol=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),Rg=e=>e?Object.freeze({requested:Ol(e.requested),resolved:Ol(e.resolved)}):void 0,Hc=new WeakSet,kl=e=>{if(chunkQIFQTG57_cjs.h(e),!Hc.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");Hc.add(e);}},Cl=e=>(kl(e),e),Pa=e=>(kl(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:Ol(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:Rg(e.substitution)??null})),Yt=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=Cl(e.font),t=e.fallbackOrder.map(Cl),r=new Set;for(let o of t){let a=JSON.stringify(Pa(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:n,variationAxes:zc(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:zc(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...t]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},Gc=e=>{let n=Yt(e);return Object.freeze({font:Pa(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(Pa)),fixedPointScale:n.fixedPointScale,roundingMode:n.roundingMode})},Ll=e=>JSON.stringify(Gc(e)),Vt=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},En=e=>{try{return Wn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},jc=new WeakMap,Ra=e=>{let n=jc.get(e);if(n)return n;kl(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 jc.set(e,t),t},Ia=(e,n)=>{let t=Yt(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(Vt(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=>{Vt(s.id,"glyph id"),Vt(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:En(s.originX),originY:En(s.originY),advanceX:En(s.advanceX),advanceY:En(s.advanceY),offsetX:En(s.offsetX),offsetY:En(s.offsetY),outline:d})}),a=e.fontSpans.map(s=>{if(Vt(s.glyphStart,"font span start"),Vt(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&&Vt(s.fallbackIndex,"fallback index");let d=Cl(s.font);if(s.fallbackIndex===null){if(Ra(d)!==Ra(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(Ra(d)!==Ra(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]])Vt(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:En(s.advance),caretEdges:Object.freeze(s.caretEdges.map(En))})}),l=Object.freeze({ascent:En(e.metrics.ascent),descent:En(e.metrics.descent),lineGap:En(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})},Pg=(e,n)=>{let t=Ia(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:Pa(r.font)}))),metrics:t.metrics})};var mo=Object.freeze({name:"HarfBuzz",version:"14.2.1"}),go=null,fo=null;function Ig(){return go?Promise.resolve():fo||(fo=import('harfbuzzjs').then(e=>{let n=e.versionString();if(n!==mo.version)throw new ze("shapingLibraryMismatch",{diagnostic:`expected ${mo.version}, loaded ${n}`});go=e;}).catch(e=>{throw fo=null,e}),fo)}function Tg(){return go!==null}function vg(){if(!go)throw new ze("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return go}var ze=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;}},Bg=16*1024*1024,Og=1e6,Cg=1e6,kg=1e6,Lg=4,Eg=512,Mg=1024*1024,Ng=16*1024*1024,Fg=32*1024*1024,Ag=64*1024*1024,Dg=64*1024*1024,_g=1e6,zg=1e6,Hg=1e6,jg=64,Gg=4096,Wg=4*1024*1024,$g=64*1024*1024,Xg=64*1024*1024,Vg=256*1024*1024,Yg=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),Wc=["cmap","head","hhea","hmtx","maxp"],Kg=(e,n)=>e[n]<<8|e[n+1],Ug=(e,n)=>e[n]*16777216+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3]>>>0,Zg=(e,n)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Ug(e,12+n*4):0,qg=(e,n)=>{let t=Zg(e,n),r=Kg(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},Jg=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Qg=(e,n)=>{let t=chunkQIFQTG57_cjs.j(e,n);if(!t.valid)return t;let r=qg(e,n);for(let o of Wc)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},eh=Qg,$n=(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},nh=(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},$c=(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 Wn(nh(BigInt(e)*BigInt(t),BigInt(n),r))},th=(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=>$c(i,a,o,r)},rh=(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=Wn(s);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:l,advance:d,caretEdges:Object.freeze([Wn(0),d]),fontSpan:0}),a=l;}return o},Xn=64,lt=8,Kt=8,oh=32,Xc=Xn+2*lt,ah=Xn+lt+Kt,ih=Xn+lt+Kt,lh=Xn+lt+Kt,Vc=Xn+8*lt,Yc=Xn+8*Kt+lt,sh=Xn+6*Kt+lt,dh=Xn+3*Kt+2*lt,ch=Xn+3*Kt,ho=e=>Xn+e.length*Uint16Array.BYTES_PER_ELEMENT,Ml=e=>lh+ho(e),po=e=>oh+e*lt,uh=(e,n)=>Xc+ho(e)+ah+Ml(n),fh=e=>Vc+ho(e)+po(e.length)+e.length*Yc,ph=e=>{let n=new Set(e.glyphs.map(t=>t.outline));return Vc+ho(e.text)+po(e.glyphs.length)+e.glyphs.length*Yc+po(e.clusters.length)+e.clusters.length*sh+e.clusters.reduce((t,r)=>t+po(r.caretEdges.length),0)+po(e.fontSpans.length)+e.fontSpans.length*dh+ch+[...n].reduce((t,r)=>t+Ml(r.path),0)},mh=(e,n)=>Xc+ho(e)+ih+n,El=class{#n;#c;#u;#f;#p;#y;#b;#m;#g;#l;#h;#s;#e;#o=new Map;#a=new Map;#t=new Map;#i=0;#r=0;#d;constructor(n,t){this.#n=n,this.#c=$n(t.maxFontBytes??Bg,"maximum font bytes",Dg),this.#u=$n(t.maxInputUtf16??Og,"maximum input UTF-16 code units",_g),this.#f=$n(t.maxCodepoints??Cg,"maximum input code points",zg),this.#p=$n(t.maxGlyphs??kg,"maximum shaped glyphs",Hg),this.#y=$n(t.maxCachedFaces??Lg,"maximum cached faces",jg),this.#b=$n(t.maxCachedShapes??Eg,"maximum cached shape results",Gg),this.#m=$n(t.maxOutlineBytes??Mg,"maximum outline bytes",Wg),this.#g=$n(t.maxCachedOutlineBytes??Ng,"maximum cached outline bytes",$g),this.#l=$n(t.maxShapedRunBytes??Fg,"maximum shaped run bytes",Xg),this.#h=$n(t.maxCachedShapeBytes??Ag,"maximum cached shape bytes",Vg),this.#s=t.instrumentation?.onFaceCacheEvent,this.#e=t.instrumentation,this.#d=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.#d=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.#s?.(Object.freeze({kind:"hit",identity:n.identity})),r;let o=chunkQIFQTG57_cjs.g(n);for(let c of Wc)if(!o.has(c))throw new ze("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#n.Blob(Jg(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 ze("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.#s?.(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.#s?.(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=Ml(i);if(l>this.#m)throw new ze("outlineOverLimit",{limit:this.#m,actual:l});let s=Object.freeze({path:i,unitsPerEm:n.unitsPerEm}),d=uh(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 ze("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 ze("codepointsOverLimit",{limit:this.#f,actual:t})}}shape(n){if(!this.#d)throw new ze("disposed");if(chunkQIFQTG57_cjs.h(n.environment.font),n.environment.font.byteLength>this.#c)throw new ze("fontOverLimit",{limit:this.#c,actual:n.environment.font.byteLength});this.#x(n.text);let t=fh(n.text);if(t>this.#l)throw new ze("shapedRunOverLimit",{limit:this.#l,actual:t});let r=Yt(n.environment),o=JSON.stringify([n.text,n.fontSizeHalfPoints,n.bidiLevel,Ll(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!==mo.name||r.shapingLibrary.version!==mo.version)throw new ze("shapingLibraryMismatch");if(r.normalization!=="none")throw new ze("unsupportedNormalization");if(!Number.isSafeInteger(n.bidiLevel)||n.bidiLevel<0||(n.bidiLevel&1)===1!=(r.direction==="rtl"))throw new ze("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new ze("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new ze("unsupportedFallback");let i=chunkQIFQTG57_cjs.f(r.font),l=chunkQIFQTG57_cjs.g(r.font);if([...Yg].some(d=>l.has(d)))throw new ze("unsupportedColorFont");let s=n.text;this.#x(s);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#d;f.reset(),f.addText(s),f.setDirection(r.direction==="rtl"?this.#n.Direction.RTL:this.#n.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#n.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([v,T])=>new this.#n.Feature(v,T));this.#e?.onShapeCall?.(),this.#n.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new ze("glyphOverLimit",{limit:this.#p,actual:m.length});let b=th(c.upem,n.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=Wn(0),y=Wn(0),x=new Map,I=JSON.stringify(Object.entries(r.variationAxes).sort(([v],[T])=>v.localeCompare(T))),S=m.map(v=>{let T=b(v.xAdvance??0),g=b(v.yAdvance??0),z={id:v.codepoint,cluster:v.cluster,originX:h,originY:y,advanceX:T,advanceY:g,offsetX:b(v.xOffset??0),offsetY:b(v.yOffset??0),outline:x.get(v.codepoint)??(()=>{let G=this.#w(d,v.codepoint,I);return x.set(v.codepoint,G),G})()};return h=Wn(h+T),y=Wn(y+g),z}),_=u.hExtents(),F=Ia({text:s,direction:r.direction,bidiLevel:n.bidiLevel,glyphs:S,clusters:rh(s,S),fontSpans:S.length===0?[]:[{glyphStart:0,glyphEnd:S.length,font:r.font,fallbackIndex:null}],metrics:{ascent:b(_.ascender),descent:b(-_.descender),lineGap:b(_.lineGap)}},r),A=ph(F);if(A>this.#l)throw new ze("shapedRunOverLimit",{limit:this.#l,actual:A});let C=mh(o,A);if(C>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),F;for(;this.#t.size>=this.#b||this.#r+C>this.#h;){let v=this.#t.keys().next().value;if(v===void 0)break;let T=this.#t.get(v);this.#t.delete(v),this.#r-=T.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#t.set(o,{run:F,bytes:C}),this.#r+=C,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),F}catch(d){throw d instanceof ze?d:new ze("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},gh=(e={})=>new El(vg(),e);var Z=(e,n,t)=>e>=n&&e<=t,Ta=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(n){super(`Unsupported Unicode script at U+${n.toString(16).toUpperCase()}`),this.codePoint=n;}},hh=e=>{if(Z(e,65313,65338)||Z(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(Z(e,1424,1535)||Z(e,64285,64335))return {slot:"cs",script:"Hebr"};if(Z(e,1536,1791)||Z(e,1872,1919)||Z(e,2160,2207)||Z(e,2208,2303)||Z(e,64336,65023)||Z(e,65136,65279)||Z(e,126464,126719))return {slot:"cs",script:"Arab"};if(Z(e,4352,4607)||Z(e,11904,12351)||Z(e,12352,12543)||Z(e,12544,12687)||Z(e,12784,12799)||Z(e,13312,19903)||Z(e,19968,40959)||Z(e,44032,55215)||Z(e,63744,64255)||Z(e,65382,65437)||Z(e,65440,65500)||Z(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(Z(e,2304,2431)||Z(e,43232,43263))return {slot:"cs",script:"Deva"};if(Z(e,2432,2559))return {slot:"cs",script:"Beng"};if(Z(e,880,1023)||Z(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(Z(e,1024,1327)||Z(e,7296,7311)||Z(e,11744,11775)||Z(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(Z(e,3584,3711))return {slot:"cs",script:"Thai"};if(Z(e,6016,6143)||Z(e,6624,6655))return {slot:"cs",script:"Khmr"};if(Z(e,768,879)||Z(e,6832,6911)||Z(e,7616,7679)||Z(e,8400,8447)||Z(e,8192,8303)||Z(e,65056,65071)||e<=47||Z(e,58,64)||Z(e,91,96)||Z(e,123,191)||e===5760||Z(e,8192,11263)||Z(e,65024,65039)||Z(e,65280,65381)||Z(e,65438,65439)||Z(e,65501,65535)||Z(e,126976,129791)||Z(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(Z(e,192,687)||Z(e,7424,7551)||Z(e,7552,7615)||Z(e,7680,7935)||Z(e,11360,11391)||Z(e,42784,43007)||Z(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new Ta(e)};function yh(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:hh(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 bh="und";function xh(){return typeof Intl.Segmenter=="function"}function Sh(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function wh(){let e=new(Sh())("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 Al=wh(),Dl=Al,Kc=0;function _l(){return Kc}var Tr=null,Ut=null,va=null,yo=null;function Mn(e){if(Tr===e&&Ut)return Ut;if(va===e&&yo){let t=yo;return va=Tr,yo=Ut,Tr=e,Ut=t,t}let n=Dl.segment(e);return va=Tr,yo=Ut,Tr=e,Ut=n,n}function Rh(e){Dl=e,Uc();}function Ph(){Dl=Al,Uc();}function Uc(){Kc+=1,Tr=null,Ut=null,va=null,yo=null,Nl=null,Ba=null,Fl=0;}function Ih(e){return Mn(e).length}var Nl=null,Ba=null,Fl=0;function Th(e){if(Nl===e&&Ba)return {offsets:Ba,count:Fl};let n=Mn(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,Nl=e,Ba=t,Fl=n.length,{offsets:t,count:n.length}}function Oa(e,n){let t=Math.max(0,Math.min(n,e.length)),{offsets:r}=Th(e);return r[t]}function vh(e,n){let t=Mn(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 zl(e){let n=new Set([0,e.text.length]);for(let r of Mn(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 Ca(e,n){return zl(e).includes(n)}function Bh(e,n){return Ca(e,n)}function Oh(e,n,t){return t>=n&&Ca(e,n)&&Ca(e,t)}function Ch(e){let n=Mn(e.text);return zl(e).map(t=>t===e.text.length?n.length:n.findIndex(r=>r.utf16From===t))}var jl="und";function Qc(){return typeof Intl.Segmenter=="function"}function kh(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${jl})`);return e}function eu(){let e=new(kh())(jl,{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 Lh=/^[\p{L}\p{N}']$/u,Eh=/^\s$/u;function Zc(e){return Lh.test(e)}function qc(e){return Eh.test(e)}function Hl(e,n,t,r){let o=e[n],a=e[t-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function nu(e){let n=Mn(e);if(n.length===0)return [];let t=[],r=0;for(;r<n.length;){let o=n[r];if(qc(o.text)){let a=r+1;for(;a<n.length&&qc(n[a].text);)a+=1;t.push(Hl(n,r,a,false)),r=a;continue}if(Zc(o.text)){let a=r+1;for(;a<n.length&&Zc(n[a].text);)a+=1;t.push(Hl(n,r,a,true)),r=a;continue}t.push(Hl(n,r,r+1,false)),r+=1;}return t}function tu(){return {segment:nu}}function ru(e={}){let n=e.isIntlAvailable??Qc,t=e.createIntlBoundary??eu,r=e.createFallbackBoundary??tu;if(!n())return r();try{return t()}catch{return r()}}var Jc;function ou(){return Jc??=ru(),Jc}function Mh(e,n=ou()){return n.segment(e)}function Nh(e,n){return n.map(t=>({graphemeFrom:Oa(e,t.utf16From),graphemeTo:Oa(e,t.utf16To),wordLike:t.wordLike}))}var ka=(e,n)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${n} must be a non-negative safe integer`)},vr=(e,n)=>{if(e.trim().length===0)throw new TypeError(`${n} must not be blank`)},Br=e=>(ka(e.resourceEpoch,"resourceEpoch"),ka(e.configEpoch,"configEpoch"),ka(e.producerVersion,"producerVersion"),vr(e.extensionFingerprint,"extensionFingerprint"),vr(e.shapingHash,"shapingHash"),Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})),Fh=(e,n)=>{let t=Br(e),r=Br(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)})},Gl=e=>{let n=e.map(({key:t,fingerprint:r})=>(vr(t,"resource dependency key"),vr(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)},Ah=e=>(ka(e.revision,"revision"),vr(e.dependencyFingerprint,"dependencyFingerprint"),vr(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Gl(e.resourceDependencies),...Br(e)})),Dh=(e,n)=>{let t=Gl(e),r=Gl(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 _h(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=Dh(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 Wl=class{entries=new Map;get(n,t){let r=this.entries.get(n);if(!r)return {hit:false,reason:"absent"};let o=_h(r.provenance,t);return o||{hit:true,value:r.value,provenance:r.provenance}}set(n,t,r){this.entries.set(n,{value:t,provenance:Ah(r)});}evictEpoch(n){let t=Br(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=Br(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 bo=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});function Rn(e,n=false){return au(e.fragments,n)}function au(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 iu(e){let n=[];for(let t of e.pages)for(let r of Rn(t))n.push(...r.lines);return n}function Ow(e){return e.anchoredDrawings??[]}function zh(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 Hh(e,n,t){for(let r of iu(e))if(r.range.paragraphId===n&&t>=r.range.start&&t<=r.range.end)return r;return null}function $l(e){return e.contentControls??[]}function La(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 Xl(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 lu=1,Ea=1;function Or(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 jh=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function Gh(e){return jh.has(e)}function su(e,n){return Gh(e)?Or(n).extentPt:n}function Kl(e){return e.some(n=>n.localName==="pageBreakBefore"&&n.attributes?.val!=="0"&&n.attributes?.val!=="false")}var cu=31680/20,So=12,uu=3168,fu=14,kr=Object.freeze({rule:"auto",value:240}),Wh=132,$h=1584,pu=["top","left","bottom","right","between","bar"],Xh=Object.freeze({}),Vh=/^[0-9A-Fa-f]{6}$/,Yh=new Set(["nil","none"]);function Ma(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Vl(e,n){return !Number.isFinite(e)||e<=0?0:e>n?n:e}function du(e){let n=Ma(e,true);return n===null?0:Vl(n/20,cu)}function Yl(e){return e!=="0"&&e!=="false"&&e!=="off"}function Kh(e){return e===void 0||e==="auto"?null:Vh.test(e)?e.toUpperCase():null}function xo(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Vn(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ul(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=du(l)),s!==void 0&&(r=du(s));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Yl(d)),c!==void 0&&(a=Yl(c));}if(o||a){let i=n?.inList||n?.inTableCell?0:fu;o&&(t=i),a&&(r=i);}return {before:t,after:r}}function Zl(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=Ma(l,true);s!==null&&(t=s);}}if(t===void 0)return kr;let r=n??"auto";if(r==="auto"){let a=t/240;return a>0?{rule:"auto",value:Math.min(a,Wh)*240}:kr}let o=t/20;return o>0?{rule:r,value:Math.min(o,$h)}:kr}function ql(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 Jl(e){let n=false;for(let t of e){if(t.localName!=="contextualSpacing")continue;let r=t.attributes?.val;n=r===void 0||Yl(r);}return n}function Cr(e){if(!e)return;let n=xo(e,"val");if(!n||Yh.has(n))return;let t=Ma(xo(e,"sz")),r=t===null?.5:Vl(t/8,So)||.5,o=Ma(xo(e,"space")),a=o===null?0:Vl(o,uu),i=xo(e,"shadow"),l=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:n,color:Kh(xo(e,"color")),widthPt:r,spacePt:a,...l?{shadow:true}:{}}}function mu(e){let n=Cr(Vn(e,"top")),t=Cr(Vn(e,"left")??Vn(e,"start")),r=Cr(Vn(e,"bottom")),o=Cr(Vn(e,"right")??Vn(e,"end")),a=Cr(Vn(e,"between")),i=Cr(Vn(e,"bar"));return {...n?{top:n}:{},...t?{left:t}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function st(e){if(!e||e.kind==="textValue")return {};let n=Vn(e,"pBdr");return n?mu(n):{}}function wo(e){let n=Xh;for(let t of e){if(!t||t.kind==="textValue")continue;let r=Vn(t,"pBdr");r&&(n=mu(r));}return n}function fn(e){return su(e.val,e.widthPt)}function Tt(e){return e?e.spacePt+fn(e):0}function Uh(e){return Tt(e)}function Ql(e){let n=[];for(let t of pu){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 Lr(e,n){return Math.max(e,n)-n}function es(e,n,t,r){return t&&!r?0:Lr(e,n)}var Zh=/^[0-9A-Fa-f]{6}$/;function Na(e){if(!(e===void 0||e==="auto"||e==="nil")&&Zh.test(e))return e.toUpperCase()}function Ro(e){if(e&&e.val!=="nil")return Na(e.fill)}function ns(e){if(!e||e.localName!=="shd")return;let n={};for(let t of e.attributes)n[t.localName]=t.value;return Ro(n)}function ts(e){let n;for(let t of e)t.localName==="shd"&&(n=Ro(t.attributes));return n}function Po(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 qh=64,Jh=31680,Qh=720,ey=36,rs=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Er=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),ny=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),ty=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function Io(e){return e.kind!=="textValue"}function Fa(e,n){return e.attributes.find(t=>t.localName===n)?.value}function os(e,n){for(let t of e.children)if(Io(t)&&t.localName===n)return t}function gu(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function ry(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function hu(e,n){if(!n)return;let t=0;for(let r of n.children){if(t>=128)break;if(t+=1,!Io(r)||r.localName!=="tab")continue;let o=ry(gu(Fa(r,"pos"))??NaN);if(o===null)continue;let a=Fa(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=ny.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let l=Fa(r,"leader");e.set(o,{alignment:i,...l!==void 0&&ty.has(l)?{leader:l}:{}});}}function yu(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,...oy(i)});}return {stops:Object.freeze(r),defaultIntervalPt:n}}function oy(e){return e.leader?{leader:e.leader}:{}}function as(e){let n=new Map;for(let t of e)!t||!Io(t)||hu(n,os(t,"tabs"));return yu(n)}function is(e){if(!e||!Io(e))return Er;let n=new Map;return hu(n,os(e,"tabs")),yu(n)}function To(e,n){return n===void 0||!Number.isFinite(n)||n<=0||n===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:n}}function ay(e){if(!e||!Io(e))return 36;let n=os(e,"defaultTabStop");if(!n)return 36;let t=gu(Fa(n,"val"));return t===null||t<=0||t>31680?36:t/20}function Mr(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 ls(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 Zt(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 vo=256,ss=4,bu=4096,vt=64,Aa=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),iy=/\s*\\\*\s*MERGEFORMAT\s*$/i;function xu(e){if(e.length>vo)return null;let n=e.replace(/\s+/g," ").trim().toUpperCase();return n.length>vo?null:n.replace(iy,"").trim()}function Nr(e){let n=xu(e);return n==="PAGE"||n==="NUMPAGES"||n==="SECTIONPAGES"?n:null}function pn(e,n){return chunkQIFQTG57_cjs.dc(e,n)}function qt(e){return chunkQIFQTG57_cjs.ec(e)}function ds(){return {nodes:0,exhausted:false}}function dt(e){return e.exhausted?false:(e.nodes+=1,e.nodes>bu?(e.exhausted=true,false):true)}function Oo(){return {nesting:0,instruction:"",instructionOverflow:false,nestingOverflow:false,phase:"idle"}}function Bo(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.nestingOverflow=false,e.phase="idle";}function Co(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.nestingOverflow=false,e.phase="instruction"),e.nesting+=1,e.nesting>ss&&(e.nestingOverflow=true);}function ly(e,n){if(!(e.phase!=="instruction"||e.nesting!==1||e.instructionOverflow)){if(e.instruction.length+n.length>vo){e.instructionOverflow=true,e.instruction="";return}e.instruction+=n;}}function ko(e,n,t,r){if(e.phase!=="instruction"||e.nesting!==1||e.instructionOverflow)return;if(r>vt){e.instructionOverflow=true,e.instruction="";return}let o=[],a=n.kind==="textValue"?[]:n.children??[];for(let i=a.length-1;i>=0;i-=1)o.push({node:a[i],depth:r+1});for(;o.length>0;){let i=o.pop();if(!dt(t)){e.instructionOverflow=true,e.instruction="";return}if(i.depth>vt){e.instructionOverflow=true,e.instruction="";return}if(i.node.kind==="textValue"){if(ly(e,i.node.value),e.instructionOverflow)return;continue}let l=i.node.children??[];for(let s=l.length-1;s>=0;s-=1)o.push({node:l[s],depth:i.depth+1});}}function Lo(e){return e.nesting!==1||e.phase!=="instruction"||(e.phase="result",e.instructionOverflow||e.nestingOverflow)?null:Nr(e.instruction)}function Eo(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&Bo(e);}function Da(e){return e.phase==="instruction"&&e.nesting>=1}function Su(e){return e.phase==="result"&&e.nesting>=1}function cs(e){let n=false,t=false,r=false,o=ds(),a=Oo(),i=()=>n&&t&&r,l=u=>{u==="PAGE"?n=true:u==="NUMPAGES"?t=true:r=true;},s=(u,f)=>{if(u.kind!=="runProperties"){if(pn(u,"begin")){Co(a);return}if(qt(u)){ko(a,u,o,f);return}if(pn(u,"separate")){let p=Lo(a);p&&l(p);return}pn(u,"end")&&Eo(a);}},d=(u,f)=>{if(u.kind==="run")for(let p of u.children){if(!dt(o))return;if(s(p,f+1),(p.kind==="drawing"||p.kind==="generic")&&!qt(p)&&"children"in p&&p.children.length>0){let m={...a};c(p,f+1),Object.assign(a,m);}if(i()||o.exhausted)return}},c=(u,f)=>{if(!i()&&dt(o)&&!(f>vt)&&u.kind!=="textValue"){if(u.kind==="paragraph"){Bo(a);for(let p of u.children)if(c(p,f+1),i()||o.exhausted)return;Bo(a);return}if(u.kind==="run"){d(u,f);return}if(chunkQIFQTG57_cjs.fc(u)){let p=Nr(chunkQIFQTG57_cjs.hc(u)??"");if(p){l(p);return}}for(let p of u.children)if(c(p,f+1),i()||o.exhausted)return}};return c(e,0),!n&&!t&&!r?Aa:{hasPage:n,hasNumPages:t,hasSectionPages:r}}var sy=64,dy=64,cy=[{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 ct(e){if(!Number.isFinite(e))return 1;let n=Math.trunc(e);return n<0?1:n>9999?9999:n}function Bt(e){return String(ct(e))}function wu(e){let n=ct(e);return n<10?`0${n}`:String(n)}function us(e){let n=ct(e);n>3999&&(n=3999);let t="";for(let{value:r,glyph:o}of cy)for(;n>=r;)if(t+=o,n-=r,t.length>=64)return t.slice(0,64);return t||"I"}function Ru(e){return us(e).toLowerCase()}function fs(e){let n=ct(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 Pu(e){return fs(e).toLowerCase()}function uy(e){let n=ct(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 fy(e){return ct(e).toString(16).toUpperCase()}function py(e){let n=["*","\u2020","\u2021","\xA7"],t=ct(e);if(t<=0)return n[0];let r=(t-1)%n.length,o=Math.min(Math.floor((t-1)/n.length)+1,my);return n[r].repeat(o)}var my=8,_a=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],gy=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function za(e){let n=ct(e);if(n<20)return _a[n];if(n<100){let r=n%10;return gy[Math.floor(n/10)]+(r===0?"":`-${_a[r]}`)}if(n<1e3){let r=n%100;return `${_a[Math.floor(n/100)]} hundred${r===0?"":` ${za(r)}`}`}let t=n%1e3;return `${_a[Math.floor(n/1e3)]} thousand${t===0?"":` ${za(t)}`}`}function Iu(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function hy(e){return Iu(za(e))}var yy=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function by(e){let n=yy.get(e);return n!==void 0?n:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function xy(e){let n=za(e),t=Math.max(n.lastIndexOf(" "),n.lastIndexOf("-")),r=t<0?"":n.slice(0,t+1);return Iu(r+by(n.slice(t+1)))}function ut(e,n){switch(e){case "decimal":return Bt(n);case "decimalZero":return wu(n);case "upperRoman":return us(n);case "lowerRoman":return Ru(n);case "upperLetter":return fs(n);case "lowerLetter":return Pu(n);case "ordinal":return uy(n);case "cardinalText":return hy(n);case "ordinalText":return xy(n);case "hex":return fy(n);case "chicago":return py(n);case "numberInDash":return `- ${Bt(n)} -`;case "none":case "bullet":return "";default:return Bt(n)}}function ps(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"?"":ut(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}function ms(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 Bt(t);let o=ut(r,t);return o.length>0?o:Bt(t)}function Fr(e,n){if(e==="PAGE")return ms(n.pageNumber,n.format);let t=e==="NUMPAGES"?n.pageCount:n.sectionPageCount??n.pageCount;return !Number.isFinite(t)||t<0?"":Bt(Math.floor(t))}function Ot(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function gs(e,n=Aa){if(!e||!Ot(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 Ar(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 Ct(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=c=>{if(!c?.pageFieldProjector)return c;t=true;let u=c.pageFieldProjector(i),{pageFieldProjector:f,...p}=u;return p},s=l(o.header),d=l(o.footer);return s===o.header&&d===o.footer?o:{...o,...s!==void 0?{header:s}:{},...d!==void 0?{footer:d}:{}}});return t?{revision:e.revision,pages:r}:e}var Yn=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}),Sy=/^[0-9A-Fa-f]{6}$/;function kt(e){let n=e.attributes?.val;return n===void 0||!(n==="0"||n==="false"||n==="off")}function Mo(e,n=false){return e===void 0||!(n?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function Tu(e){return e===void 0||e==="auto"?null:Sy.test(e)?e.toUpperCase():null}function vu(e,n){return e==="minorAscii"||e==="minorHAnsi"?n.minor:e==="majorAscii"||e==="majorHAnsi"?n.major:null}function dn(e,n){let t={...Yn};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(n?vu(o?.asciiTheme,n)??vu(o?.hAnsiTheme,n):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(t.fontFamily=i);break}case "sz":{let o=Mo(r.attributes?.val);o!==null&&o>0&&(t.fontSizePt=o/2);break}case "color":{t.color=Tu(r.attributes?.val);break}case "b":t.bold=kt(r);break;case "i":t.italic=kt(r);break;case "u":{let o=r.attributes?.val??"single";t.underline=o==="none"||!kt(r)?null:{variant:o,color:Tu(r.attributes?.color)};break}case "strike":t.strike=kt(r);break;case "dstrike":t.doubleStrike=kt(r);break;case "highlight":{let o=r.attributes?.val;t.highlight=o&&o!=="none"?o:null;break}case "shd":{t.shading=Ro(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=Mo(r.attributes?.val,true);o!==null&&(t.baselineShiftPt=o/2);break}case "caps":t.caps=kt(r);break;case "smallCaps":t.smallCaps=kt(r);break;case "spacing":{let o=Mo(r.attributes?.val,true);o!==null&&(t.characterSpacingPt=o/20);break}case "w":{let o=Mo(r.attributes?.val);o!==null&&o>0&&(t.horizontalScalePercent=o);break}case "kern":{let o=Mo(r.attributes?.val);o!==null&&(t.kerningMinPt=o/2);break}case "vanish":t.hidden=kt(r);break;}return t}function Lt(e,n){return n.caps?e.toUpperCase():e}function Kn(e,n,t){return t.measure(Lt(e,n),n)}function wy(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 hs(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var ft="all-markup",Bu=Object.freeze([]),Ry=32,Py={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Dr(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 Ha(e){if(e.kind==="textValue")return null;let n=Py[e.kind];if(n===void 0)return null;let t=Dr(e,"date");return {kind:n,id:Dr(e,"id")??"",author:Dr(e,"author")??"",...t===void 0?{}:{date:t},nodeId:e.id}}function ja(e,n){return e.length===0?[n]:[...e,n]}function Ga(e){return e.kind!=="textValue"&&chunkQIFQTG57_cjs.qa(e.kind)}var _r=Ry;function Un(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 ys(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!==chunkQIFQTG57_cjs.la)continue;let o=r.localName==="ins"?"insert":r.localName==="del"?"delete":null;if(o===null)continue;let a=Dr(r,"date");return {kind:o,id:Dr(r,"id")??"",author:Dr(r,"author")??"",...a===void 0?{}:{date:a},nodeId:r.id}}return null}function Iy(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 pt(e){return e.some(n=>n.kind==="delete"||n.kind==="moveFrom")}function Ty(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 vy(e,n,t){let r=Ty(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}function By(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"?chunkQIFQTG57_cjs.Yb(e):""}function Ou(e){let{simple:n,depth:t,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:l,cascadeRuns:s,themeFonts:d}=e,c="",u,f,p=Oo(),m=null,b=false,h=false,y=false,x=(_,F)=>{u||(u=_,f=F);},I=()=>{!m||!r||h&&!y||(c+=Fr(m,r));},S=(_,F,A)=>{if(!(_.kind==="textValue"||F>vt)){for(let C of _.children)if(C.kind!=="textValue"){if(!dt(o))return;if(C.kind==="run"){let v=vy(C,l,s),T=dn(v,d);for(let g of C.children){if(g.kind==="runProperties")continue;if(pn(g,"begin")){Co(p),p.nesting===1&&(m=null,b=false,h=false,y=false);continue}if(qt(g)){Da(p)&&ko(p,g,o,F+1);continue}if(pn(g,"separate")){let R=Lo(p);R&&r?(m=R,b=true,h=false,y=false):(m=null,b=false);continue}if(pn(g,"end")){p.nesting===1&&b&&I(),Eo(p),m=null,b=false,h=false,y=false;continue}if(chunkQIFQTG57_cjs.kc(g))continue;let z=By(g);if(z.length===0)continue;let G=pt(A),E=T.hidden||!Un(A,i)||g.kind==="deletedText"&&!G;if(b){h=true,E||(y=true,x(v,T));continue}E||(x(v,T),c+=z);}continue}if(chunkQIFQTG57_cjs.fc(C)){let v=Nr(chunkQIFQTG57_cjs.hc(C)??"");if(v&&r){if(!Un(A,i))continue;let T=c.length;S(C,F+1,A),c=c.slice(0,T),c+=Fr(v,r);continue}S(C,F+1,A);continue}if(C.kind==="hyperlink"){S(C,F+1,A);continue}if(Ga(C)&&A.length<_r){let v=Ha(C);S(C,F+1,v?ja(A,v):A);continue}S(C,F+1,A);}}};return S(n,t,a),b&&(m=null,b=false),{text:c,resultProps:u,resultStyle:f}}function Jt(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 Oy=new Set(["left","center","right"]),Cy=new Set(["margin","indent","leftMargin"]),ky=new Set(["dot","hyphen","underscore","middleDot"]);function Cu(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkQIFQTG57_cjs.la)return null;let n="left",t="margin",r;for(let o of e.attributes)o.namespaceUri===chunkQIFQTG57_cjs.la&&(o.localName==="alignment"?n=o.value:o.localName==="relativeTo"?t=o.value:o.localName==="leader"&&(r=o.value));return {alignment:Oy.has(n)?n:"left",relativeTo:Cy.has(t)?t:"margin",...r!==void 0&&ky.has(r)?{leader:r}:{}}}Object.freeze({marks:Object.freeze(new Map)});function Qt(e,n){return chunkQIFQTG57_cjs.$c(e,n)}function bs(e,n){if(!chunkQIFQTG57_cjs.qd(e))return null;if(chunkQIFQTG57_cjs.gd(e)||chunkQIFQTG57_cjs.hd(e))return {text:"",projected:true,kind:null,noteId:null};let t=chunkQIFQTG57_cjs.ed(e),r=chunkQIFQTG57_cjs.md(e)??chunkQIFQTG57_cjs.nd(e);if(!r)return null;let o=chunkQIFQTG57_cjs.jd(e),a=o!==null?Qt(r,o):t?void 0:n?.activeNoteKey,i=o!==null?o:a?Ly(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&&chunkQIFQTG57_cjs.od(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 Ly(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 ku(e){return chunkQIFQTG57_cjs.ed(e)||chunkQIFQTG57_cjs.fd(e)||chunkQIFQTG57_cjs.gd(e)||chunkQIFQTG57_cjs.hd(e)}function Ey(e,n,t){let r=No(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return t?[...t(n,r)]:n.length===0?r:[...n,...r]}function No(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 Lu(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"?chunkQIFQTG57_cjs.Yb(e):""}function Eu(e,n=[],t,r,o,a,i=ft,l,s,d){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let c=[],u=0,f,p=chunkQIFQTG57_cjs.mc(e,{maxNesting:ss,maxInstructionChars:vo}),m=p.filter(R=>R.addressing==="atomic"),b=new Set(m.filter(R=>R.kind==="complex").map(R=>R.node.id)),h=new Set(p.filter(R=>R.kind==="complex"&&R.addressing==="editable-result").map(R=>R.node.id)),y=new Set;for(let R of m)for(let B of R.removeNodeIds)y.add(B);let x=Oo(),I=ds(),S=null,_=null,F=Bu,A=(R,B,k,M,L,H,N)=>{if(R.length===0&&!M&&!N?.inlineDrawing)return;let V=N?.linkOverride??f,j=N?.revisionsOverride??F,Y=V?{link:V}:{},$=j.length===0?{}:{revisions:j};if(M){c.push({text:R,props:B,style:k,start:L,end:H,projected:true,...N?.measureText!==void 0?{measureText:N.measureText}:{},...N?.noteNav?{noteNav:N.noteNav}:{},...N?.inlineDrawing?{inlineDrawing:N.inlineDrawing}:{},...N?.fieldAtom?{fieldAtom:N.fieldAtom}:{},...Y,...$});return}R.length!==0&&c.push({text:R,props:B,style:k,start:L,end:H,...N?.positionalTab?{positionalTab:N.positionalTab}:{},...N?.breakKind?{breakKind:N.breakKind}:{},...Y,...$});},C=()=>{if(!S||!S.atomic){S=null,_=null;return}let R=S.atomStart,B=R+1;if(S.style.hidden){S=null,_=null;return}if(!Un(S.resultRevisions,i)){l&&pt(S.resultRevisions)&&Jt(l,R,B),S=null,_=null;return}let k={...S.resultRevisions.length>0?{revisionsOverride:S.resultRevisions}:{},...S.resultLink?{linkOverride:S.resultLink}:{},fieldAtom:{formField:S.formField}};if(S.kind&&t){let M=Fr(S.kind,t);A(M,S.props,S.style,true,R,B,k);}else S.cachedText.length>0&&A(S.cachedText,S.props,S.style,true,R,B,k);S=null,_=null;},v=()=>{if(S){if(S.atomic){u=S.atomStart;for(let R of S.buffered)c.push({...R,start:u,end:u+(R.end-R.start)}),u+=R.end-R.start;S.cachedText.length>0&&S.buffered.length===0&&(A(S.cachedText,S.props,S.style,false,u,u+S.cachedText.length),u+=S.cachedText.length);}else {for(let R of S.buffered)c.push(R);u=S.bufferOffset;}S=null,_=null;}},T=(R,B,k)=>{let M=(j,Y,$,U)=>{let fe=pt(F),be=k.hidden||!Un(F,i)||fe;if(Y.hidden||be){if(fe&&l&&Jt(l,$,U),!Y.hidden)return;A("\uFFFC",B,k,true,$,U);return}A("\uFFFC",B,k,true,$,U,{inlineDrawing:Object.freeze({drawingNodeId:j,ownerPartName:s.ownerPartName,projection:Y,resource:s.resourceOf(Y)})});};if(R.kind==="drawing"){let j=u;u+=1;let Y=u;if(!s)return;let $=s.projectionForAtom?.(R.id)??(R.kind==="drawing"?s.project(R):null);if(!$||$.kind!=="inline"){A("\uFFFC",B,k,true,j,Y);return}M(R.id,$,j,Y);return}if(chunkQIFQTG57_cjs._a(R)){let j=u;u+=1;let Y=u;if(!s)return;let $=s.projectionForAtom?.(R.id)??null;if(!$||$.kind!=="inline"){A("\uFFFC",B,k,true,j,Y);return}M(R.id,$,j,Y);return}if(ku(R)){let j=bs(R,a),Y=u,$=Y+1;if(u=$,k.hidden||!j||j.text.length===0&&!j.measureText)return;let U=j.scopeId&&j.nav?{scopeId:j.scopeId,direction:j.nav}:void 0;A(j.text.length>0?j.text:j.measureText??"",B,k,true,Y,$,{...j.measureText!==void 0?{measureText:j.measureText}:{},...U?{noteNav:U}:{}});return}let L=Cu(R);if(L){k.hidden||A(" ",B,k,false,u,u,{positionalTab:L});return}let H=Lu(R);if(H.length===0)return;let N=pt(F);k.hidden||!Un(F,i)||R.kind==="deletedText"&&!N||A(H,B,k,false,u,u+H.length,{...R.kind==="hardBreak"?{breakKind:chunkQIFQTG57_cjs.Wb(R)}:{}}),N&&l&&Jt(l,u,u+H.length),u+=H.length;},g=(R,B)=>{if(R.kind!=="run")return;let k=Ey(R,n,r),M=dn(k,d);for(let L of R.children){if(!dt(I)){if(v(),Bo(x),L.kind==="runProperties"||pn(L,"begin")||pn(L,"separate")||pn(L,"end")||qt(L)||y.has(L.id)&&_===null)continue;T(L,k,M);continue}if(L.kind!=="runProperties"){if(pn(L,"begin")){let H=b.has(L.id);Co(x),x.nesting===1&&(v(),_=H?L.id:null,S={kind:null,atomic:H,editableResult:h.has(L.id),atomStart:u,props:k,style:M,capturedResultStyle:false,cachedText:"",buffered:[],bufferOffset:u,resultRevisions:F,capturedResultRevisions:F.length>0,formField:chunkQIFQTG57_cjs.lc(L),...f?{resultLink:f}:{}},H&&(u+=1));continue}if(qt(L)){ko(x,L,I,B+1);continue}if(pn(L,"separate")){let H=x.nesting===1&&x.phase==="instruction",N=Lo(x);H&&S&&(S.kind=N&&t?N:null,S.props=k,S.style=M);continue}if(pn(L,"end")){let H=x.nesting===1;Eo(x),H&&(S?.atomic?C():v());continue}if(!(Da(x)&&S?.atomic)){if(S&&Su(x)){let H=Lu(L);if(H.length===0)continue;let N=pt(F),V=!Un(F,i)||L.kind==="deletedText"&&!N;if(N&&l&&(S.atomic?Jt(l,S.atomStart,S.atomStart+1):Jt(l,u,u+H.length)),V){S.atomic||(u+=H.length,S.bufferOffset=u);continue}if(S.atomic){if(M.hidden)continue;S.capturedResultStyle||(S.props=k,S.style=M,S.capturedResultStyle=true),S.capturedResultRevisions||(S.resultRevisions=F,S.capturedResultRevisions=true,!S.resultLink&&f&&(S.resultLink=f)),S.cachedText+=H;continue}if(M.hidden){u+=H.length,S.bufferOffset=u;continue}S.capturedResultStyle||(S.props=k,S.style=M,S.capturedResultStyle=true),S.buffered.push({text:H,props:k,style:M,start:u,end:u+H.length,...F.length>0?{revisions:F}:{},...f?{link:f}:{},...S.editableResult?{fieldAtom:{formField:S.formField}}:{}}),u+=H.length,S.bufferOffset=u;continue}y.has(L.id)&&_===null&&b.size>0,T(L,k,M);}}}};if(!dt(I))return c;let z=chunkQIFQTG57_cjs.Va(),G=(R,B)=>{let k=u;if(u+=1,R.kind==="textValue"||(pt(F)&&l&&Jt(l,k,k+1),!Un(F,i)))return;let M=Ou({simple:R,depth:B,pageContext:t,budget:I,revisions:F,displayMode:i,inheritedRunProperties:n,cascadeRuns:r,themeFonts:d}),L=Nr(chunkQIFQTG57_cjs.hc(R)??"");if(L&&t){let N=Fr(L,t),V=M.resultStyle??dn(n,d);V.hidden||A(N,M.resultProps??n,V,true,k,k+1,{fieldAtom:{formField:false}});return}if(M.text.length===0)return;let H=M.resultStyle??dn(n,d);H.hidden||A(M.text,M.resultProps??n,H,true,k,k+1,{fieldAtom:{formField:false}});},E=(R,B,k,M)=>{if(chunkQIFQTG57_cjs.fc(R)){G(R,B);return}if(R.kind==="run"){g(R,B);return}if(chunkQIFQTG57_cjs.Jb(R)){if(M>=chunkQIFQTG57_cjs.Ib||B>vt)return;for(let V of chunkQIFQTG57_cjs.Mb(R))E(V,B+1,k,M+1);return}if(B>vt||B>=_r)return;let L=R.kind!=="textValue"&&"localName"in R?chunkQIFQTG57_cjs.Ua(k,R):k;if(R.kind==="hyperlink"){let V=f;f=o?.(R)??void 0;for(let j of R.children)E(j,B+1,L,M);f=V;return}if(!Ga(R))return;let H=Ha(R);if(!H||!dt(I))return;let N=F;F=ja(N,H);for(let V of R.children)E(V,B+1,L,M);F=N;};for(let R of e.children)E(R,1,z,0);return v(),c}function My(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 Ny(e){return e.map(My).join(";")}var Mu=new WeakMap,Fu=1<<18;function Au(e){if(e.kind==="textValue")return `t:${e.value}`;let n=e.kind==="paragraph"||e.kind==="table";if(n){let r=Mu.get(e);if(r!==void 0)return r}let t=Fy(e);return n&&t.length<=Fu&&Mu.set(e,t),t}function Fy(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(Au(t));return `(${n.join("|")})`}var Nu=new WeakMap;function er(e){let n=Math.round(e.width*1e3),t=e.drawingToken??"",r=e.exclusionToken??"",o=Ny(e.properties),a=Nu.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,Au(e.paragraph)].join("\0");return i.length<=Fu&&Nu.set(e.paragraph,{producer:e.producer,width:n,drawingToken:t,exclusionToken:r,propertiesToken:o,key:i}),i}function Ay(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 Du=21600;function je(e){return Number.isFinite(e)?e:0}function Fo(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 Dy(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 Fo(t)}function xs(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 Fo(r)}function _y(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 zu(e,n){return zr(e,n)}function Ss(e,n,t){return zu(zr(e,n),t)}function zy(e,n){let t=[],r=Math.min(e.length,tn);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),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&t.push({x:f,delta:s>l?1:-1});}return t.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(t)}function Hy(e,n){let t=[],r=Math.min(e.length,tn);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 Fo(t)}function _u(e,n,t){let r=jy(zy(e,n),t),o=Hy(e,n);return Fo([...r,...o])}function jy(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 Gy(e,n){return Object.freeze({top:je(e.top)+je(n.top),right:je(e.right)+je(n.right),bottom:je(e.bottom)+je(n.bottom),left:je(e.left)+je(n.left)})}function Wy(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 f=((t.x-e.x)*l-(t.y-e.y)*i)/c,p=((t.x-e.x)*d-(t.y-e.y)*s)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*l;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function $y(e,n,t,r){let o=[],a=Math.min(e.length,tn),i=Math.min(n.length,tn);if(a<2||i<2)return Object.freeze([]);let l=tn*tn,s=0;for(let d=0;d<a;d+=1){let c=e[d],u=e[(d+1)%a];for(let f=0;f<i;f+=1){if(s>=l)return Object.freeze(o);s+=1;let p=n[f],m=n[(f+1)%i],b=Wy(c,u,p,m,t,r);b!==null&&o.push(b);}}return Object.freeze(o)}function Xy(e,n,t){let r=new Set;r.add(n),r.add(t);for(let o of e){let a=Math.min(o.length,tn);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 f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of $y(e[0],e[1],n,t))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function Vy(e,n,t,r){let o=_u(e,t,r);return n&&n.length>=3&&(o=Dy(o,_u(n,t,"nonzero"))),o}function Hu(e,n,t,r,o=null){let a=je(t.top),i=je(t.bottom),l=je(t.left),s=je(t.right),d=n-i,c=n+a,u=Xy(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,b)=>{if(b+1>=u.length)return [];let h=u[b+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let b=Vy(e,o,m,r);for(let h of b)f.push(Object.freeze({start:h.start-l,end:h.end+s}));}return Fo(f)}function ju(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 Yy(e){let n=Math.max(0,je(e.extentWidthPt)),t=Math.max(0,je(e.extentHeightPt)),r=$a(e.transform,n,t),o=Math.min(e.polygonEmu.length,tn);if(o<3)return ju({x:e.anchorX,y:e.anchorY,width:n,height:t});let a=r.width/Du,i=r.height/Du,l=[];for(let s=0;s<o;s+=1){let d=e.polygonEmu[s];l.push(Object.freeze({x:je(d.x)*a,y:je(d.y)*i}));}return Xa({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 Ky(e,n){let t=n.effectInsets??Wa,r=n.wrapDistances??Wa,o=je(n.contentLeft),a=je(n.contentRight);if(n.mode==="topAndBottom"){let c=zu(zr(n.contentBounds,t),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):xs([{start:o,end:a}],o,a)}if(n.mode==="square"){let c=Ss(n.contentBounds,t,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):xs([{start:c.x,end:c.x+c.width}],o,a)}let i=n.polygon&&n.polygon.length>=3?n.polygon:ju(n.contentBounds),l=n.mode==="through"?"evenodd":"nonzero",s=Gy(r,t),d=Hu(i,e,s,l,n.clipPolygon);return xs(d,o,a)}function Uy(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 Zy(e,n,t,r,o){if(t==="bothSides"||n.length===0)return e;let a=Uy(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 Gu(e,n){let t=Ky(e,n),r=_y(t,n.contentLeft,n.contentRight);return Zy(r,t,n.textSide,n.contentLeft,n.contentRight)}function qy(e,n,t,r){return t.length<3?false:Hu(t,n,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function ws(e,n,t){let r=t.effectInsets??Wa,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 qy(e,n,t.clipPolygon,r);let a=zr(t.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&n>=a.y&&n<=a.y+a.height}function Wu(e){let n=Object.freeze({top:je(e.wrapDistancesEmu.top/Zn),right:je(e.wrapDistancesEmu.right/Zn),bottom:je(e.wrapDistancesEmu.bottom/Zn),left:je(e.wrapDistancesEmu.left/Zn)}),t=e.mode==="tight"||e.mode==="through"?Yy({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 mn=1e5,tn=chunkQIFQTG57_cjs.D.maxPolygonPoints,Wa=Object.freeze({top:0,right:0,bottom:0,left:0}),Jy=32,Qy=.1,eb=new Set(["rect","ellipse","roundRect"]);function de(e){return Number.isFinite(e)?e:0}function Pn(e,n,t){return Number.isFinite(e)?Math.min(t,Math.max(n,e)):n}function $u(e,n){let t=e+n;return Number.isFinite(t)?t:0}function Xu(e,n,t){let r=Pn(e,0,t),o=Pn(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 nb(e){let n=Xu(Pn(e.left,0,mn),Pn(e.right,0,mn),mn),t=Xu(Pn(e.top,0,mn),Pn(e.bottom,0,mn),mn);return Object.freeze({left:n.left,top:t.left,right:n.right,bottom:t.right})}function tb(e){let n=nb({left:e.left*mn,top:e.top*mn,right:e.right*mn,bottom:e.bottom*mn});return Object.freeze({left:n.left/mn,top:n.top/mn,right:n.right/mn,bottom:n.bottom/mn})}function rb(e){let n=t=>{if(!Number.isFinite(t))return 0;let r=t/Zn;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 zr(e,n){let t=de(n.left),r=de(n.right),o=de(n.top),a=de(n.bottom);return Object.freeze({x:e.x-t,y:e.y-o,width:Math.max(0,$u(e.width,t+r)),height:Math.max(0,$u(e.height,o+a))})}function ob(e,n,t){let r=e*Pn(t.left,0,1),o=n*Pn(t.top,0,1),a=e*(1-Pn(t.right,0,1)),i=n*(1-Pn(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 $a(e,n,t){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?de(Et(r)??n):Math.max(0,de(n)),l=o>0?de(Et(o)??t):Math.max(0,de(t));return Object.freeze({offsetX:de(Et(a.x)??0),offsetY:de(Et(a.y)??0),width:i,height:l})}function ab(e,n,t,r){let o=ob(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,tn);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Pn(f.x/l,0,1)*a,m=i<=0?o.top:o.top+Pn(f.y/s,0,1)*i;d.push(Object.freeze({x:de(p),y:de(m)}));}return Object.freeze(d)}function Vu(e,n,t){let r=e.x-n.x,o=e.y-n.y;t.flipHorizontal&&(r=-r),t.flipVertical&&(o=-o);let a=de(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:de(s+n.x),y:de(d+n.y)})}function Yu(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,tn);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 Rs(e){let n=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),t=Ao(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let l of t)r.push(Vu(Object.freeze({x:l.x+e.offsetX,y:l.y+e.offsetY}),n,e.transform));let o=Yu(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,de(e.layoutWidth))/a,scaleY:Math.max(0,de(e.layoutHeight))/i,anchorX:de(e.anchorX),anchorY:de(e.anchorY)})}function ib(e,n){return Object.freeze({x:de(n.anchorX+(e.x-n.bboxX)*n.scaleX),y:de(n.anchorY+(e.y-n.bboxY)*n.scaleY)})}function Xa(e){let n=e.mapping??Rs({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=ab(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(t.length>0?t.length:e.points.length,tn),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:de(s.x+e.offsetX),y:de(s.y+e.offsetY)});i.push(ib(Vu(d,a,e.transform),n));}return Object.freeze(i)}function Ao(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 lb(e,n,t){if(!e||!eb.has(e))return null;if(n<=0||t<=0)return Ao(0,0,Math.max(0,n),Math.max(0,t));if(e==="rect")return Ao(0,0,n,t);if(e==="ellipse"){let l=[],s=n/2,d=t/2,c=n/2,u=t/2,f=Math.min(Jy,tn);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;l.push(Object.freeze({x:s+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(l)}let r=Math.min(n,t)*Qy,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 jr(e){return Object.freeze({x:de(e.x),y:de(e.y)})}function sb(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,tn);for(let u=0;u<c;u+=1){let f=jr(i[u]),p=jr(i[(u+1)%c]),m=l(f),b=l(p);if(m&&b?d.push(p):m&&!b?d.push(jr(s(f,p))):!m&&b&&(d.push(jr(s(f,p))),d.push(p)),d.length>=tn)break}return Object.freeze(d.slice(0,tn))},a=e.slice(0,tn).map(jr);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:de(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:de(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:de(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:de(i.x+d*(l.x-i.x)),y:r})})],Object.freeze(a)}function db(e){let n=Yu(e);return Object.freeze({x:n.x,y:n.y,width:n.width,height:n.height})}function Va(e,n){let t=cb(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=sb(a,n);return i.length>=3?Object.freeze(i.map(jr)):Object.freeze([])};return Object.freeze({...e,paintBounds:t,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function cb(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 ub(e){let n=Math.max(0,de(e.extentWidth)),t=Math.max(0,de(e.extentHeight)),r=de(e.anchorX),o=de(e.anchorY),a=tb(e.crop),i=rb(e.effectExtentEmu),l=$a(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=Rs(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=Xa({points:Ao(0,0,l.width,l.height),...d,crop:u,mapping:c}),p=lb(e.presetGeometry,l.width,l.height),m="none",b=p;b||(m=e.presetGeometry?"unsupported-preset":"none",b=Ao(0,0,l.width,l.height));let h=Xa({points:b,...d,crop:u,mapping:c}),y=db(h.length>=3?h:f),x=zr(y,i);return Object.freeze({contentBounds:s,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function Gr(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 ub({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 fb(e){let{transform:n,contentWidth:t,contentHeight:r}=e;if(t<=0||r<=0)return null;let o=$a(n,t,r),a=o.width,i=o.height,l=Rs({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:n,layoutWidth:t,layoutHeight:r,anchorX:0,anchorY:0}),s=de(n.rotationDegrees),d=Math.abs(s%360)>1e-4,c=n.flipHorizontal?-1:1,u=n.flipVertical?-1:1,f=l.scaleX,p=l.scaleY,m=a>0?a/t:1,b=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(b-1)<1e-4)return null;let y=s*Math.PI/180,x=Math.cos(y),I=Math.sin(y),S=o.offsetX+a/2,_=o.offsetY+i/2,F=f*x*c,A=-f*I*u,C=p*I*c,v=p*x*u,T=f*(S-x*c*(a/2)+I*u*(i/2)-l.bboxX),g=p*(_-I*c*(a/2)-x*u*(i/2)-l.bboxY);return Object.freeze({a:de(F*m),b:de(C*m),c:de(A*b),d:de(v*b),e:de(T),f:de(g)})}function RR(e){let n=fb(e);if(n)return `matrix(${Hr(n.a)}, ${Hr(n.b)}, ${Hr(n.c)}, ${Hr(n.d)}, ${Hr(n.e)}, ${Hr(n.f)})`}function Hr(e){return Number.isFinite(e)?String(e):"0"}var pb=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"}),mb=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),gb=Object.freeze({left:0,top:0,right:0,bottom:0});function Zu(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=pb[o]??"graphic";break}t===null&&(t="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:n?.crop??gb,transform:n?.transform??mb,placeholderGraphicKind:n?null:t,vectorShape:e.vectorShape})}var Zn=12700;function Je(e){return e/Zn}function Et(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*Zn*72)return null;let n=e/Zn;return Number.isFinite(n)?n:null}function mt(e){let n=Je(e.inlineDistancesEmu.left),t=Je(e.inlineDistancesEmu.right),r=Je(e.inlineDistancesEmu.top),o=Je(e.inlineDistancesEmu.bottom),a=Je(e.effectExtentEmu.left),i=Je(e.effectExtentEmu.right),l=Je(e.effectExtentEmu.top),s=Je(e.effectExtentEmu.bottom),d=Je(e.extentEmu.cx),c=Je(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 qu(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 Ya(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 Ka(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:Ya(e.geometry,n,t)})}function Ps(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:Ya(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 Is(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 Ua(e,n){let t=Is(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=Ya(e.geometry,o,a);return Object.freeze({...e,paintBounds:t,hitBounds:r,geometry:Va(i,n)})}var Ku=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),Uu=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function qn(e){return e%2===1}function Ju(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 Qu(e,n){if(Ju(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 qn(n.pageNumber)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return qn(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 qn(n.pageNumber)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return qn(n.pageNumber)?{left:r,right:r,center:r}:{left:t,right:t,center:t};default:return null}}function ef(e,n){if(Ju(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 qn(n.pageNumber)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return qn(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 qn(n.pageNumber)?{top:i,bottom:i,center:i}:{top:l,bottom:l,center:l};case "outsideMargin":return qn(n.pageNumber)?{top:a,bottom:a,center:a}:{top:t,bottom:t,center:t};default:return null}}function nf(e){return e===null?0:Et(e)}function hb(e,n,t){let r=qn(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 yb(e,n,t){let r=qn(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 bb(e,n,t,r,o){let a=Qu(e,o);if(!a)return null;let i=nf(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=hb(n,r,o);if(l!==null)return l+i}return a.left+i}function xb(e,n,t,r,o){let a=ef(e,o);if(!a)return null;let i=nf(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=yb(n,r,o);if(l!==null)return l+i}return a.top+i}function Do(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 Ts(e,n){let t=mt(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 b=Et(r.simplePosition.xEmu),h=Et(r.simplePosition.yEmu);return Object.freeze(b===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:b-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=Qu(l,n),c=ef(s,n),u=d?.left??0,f=c?.top??0;if(!Ku.has(l)||!Uu.has(s))return Object.freeze({x:0,y:0,horizontalFrame:Ku.has(l)?l:a,verticalFrame:Uu.has(s)?s:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=bb(l,r.horizontal.align,r.horizontal.offsetEmu,t.width,n),m=xb(s,r.vertical.align,r.vertical.offsetEmu,t.height,n);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:l,verticalFrame:s,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function Sb(e){let n=e.input.projection,t=n.anchor,r=mt(n),o=Gr({projection:n,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?Is(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?Va(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkQIFQTG57_cjs.$a(n),...Zu(n)})}function In(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(chunkQIFQTG57_cjs._a(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 Nn(e){let n=new Map;if(e.kind!=="paragraph")return n;let t=0,r=o=>{if(o.kind==="drawing"||chunkQIFQTG57_cjs._a(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 wb(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+Kn(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+Kn(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+Kn(r.text,r.style,t):r.box.x+r.box.width:e.box.x}function Rb(e,n){let t=e.range.start;for(let r of e.spans)r.range.end<=n&&(t=r.range.end);return t}function vs(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:Ya(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 Wr(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return [];let t=Nn(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"?Rb(l,i):i,u=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:l.box,anchorCharacterX:wb(l,c,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:s}),f=Ts(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:Do(e.frameBase),b=Sb({input:Object.freeze({drawingNodeId:o.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:a,resource:e.drawingLayout.resourceOf(a)}),anchorParagraphId:e.paragraphId,start:c,resolved:f,clipRegion:m,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(o.atomId)}:{},...a.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(a)}:{}});r.push(b);}return Object.freeze(r)}function tf(e){let n=mt(e.input.projection),t=e.slotX+n.distL+n.effectL,r=Gr({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=Is(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:Va(r,o),resource:e.input.resource,accessibility:chunkQIFQTG57_cjs.$a(e.input.projection),...Zu(e.input.projection)})}var Pb=256,Cs=8,nr=8,$r=class extends Error{name="DrawingExclusionConvergenceError";constructor(n="drawing exclusion reflow did not converge"){super(n);}};function Ib(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 Os(e){return e.behindDocument?"behind":"inFront"}function rf(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function Tb(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 vb(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function ks(e){let n=Tb(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 Wu({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"?vb(e.projection.wrap):t.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function Ls(e){if(e.mode==="topAndBottom"||e.mode==="square")return Ss(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 Bb(e){if(e.drawing.behindDocument||!rf(e.drawing.wrap))return null;let n=e.yOverride??e.drawing.y,t=ks({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:Os(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:n,verticalBand:Ls(t),input:t}):null}function of(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 Ob(e,n){let t=Os(e),r=Os(n);return t!==r?t==="behind"?-1:1:e.relativeHeight!==n.relativeHeight?e.relativeHeight-n.relativeHeight:of(e,n)}function af(e){return Object.freeze([...e].sort(Ob))}function Bs(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 Es(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 lf(e,n){let t=n.maxAttempts??Pb,r=[...e].sort(of),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(b=>Bs(b.paintBounds,s.paintBounds));){let p=o.find(b=>Bs(b.paintBounds,s.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-s.paintBounds.y+.001;s=Es(s,m),d+=1;}let c=o.some(f=>Bs(f.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 Xr(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=Gu(e,a.input),s=[];for(let d of o)for(let c of l){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&s.push(Object.freeze({start:u,end:f}));}if(o=s,o.length===0)break}return Object.freeze(o)}function sf(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 Cb(e,n){for(let t of n)if(t.end>e+1e-6)return t;return null}function Ms(e,n){let t=Cb(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 kb(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 Ns(e,n){return Object.freeze({...e,layoutFallback:n})}function df(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({...kb(i,-n,-t),contentLeft:r?.left,contentRight:r?.right??i.contentRight-n})})}))}function cf(e,n,t){return Object.freeze(e.filter(r=>{let o=t(r.anchorParagraphId);return o===void 0?r.sourceOrder<=n:o<=n}))}function uf(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Nn(e.paragraph),r=Math.max(1,e.contentRight-e.contentLeft),o=[];for(let a of n){if(a.projection.anchor?.behindDocument||!rf(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=Ts(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,f=mt(a.projection),p=Gr({projection:a.projection,anchorX:c.x,anchorY:u,extentWidth:f.width,extentHeight:f.height}),m=ks({projection:a.projection,geometry:p,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:Ls(m),input:m}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}function Za(e){let n=In(e.paragraph,e.drawingLayout);if(n.length===0)return Object.freeze([]);let t=Nn(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=mt(o.projection),d=Gr({projection:o.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:s.width,extentHeight:s.height}),c=ks({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:Ls(c),input:c}));}return r.sort((o,a)=>o.sourceOrder-a.sourceOrder),Object.freeze(r)}var Lb=8;function Eb(e,n,t,r){return e<r&&n>t}function gt(e,n,t){if(n<=0||t.length===0)return 0;let r=0;for(let o=0;o<Lb;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,f=u+c.verticalBand.height;Eb(a,i,u,f)&&(s=true,l=Math.max(l,f));}if(!s)break;let d=l-e;if(d<=r+.001)break;r=d;}return r}function Mb(e){return e.map(n=>`${n.start.toFixed(3)}-${n.end.toFixed(3)}`).join(",")}function Nb(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 Jn(e){return e.length===0?"":e.map(n=>{let t=n.verticalBand,r=n.y+n.input.contentBounds.height/2,o=Xr(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),Nb(n.input),Mb(o)].join("|")}).join(`
2
+ `)}function Fs(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?Ib(l,a):0,u=Bb({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 _o(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=Fs(s,n,0,t,r,a);d.length>0&&i.set(l.index,d);}return i}function qa(e,n){if(e.size!==n.size)return false;for(let[t,r]of e){let o=n.get(t);if(!o||Jn(r)!==Jn(o))return false}return true}function Ja(e){return e.size===0?"":[...e.entries()].sort(([n],[t])=>n-t).map(([n,t])=>`${n}:${Jn(t)}`).join(`
3
+ `)}var Fb=.001;function gn(e){return No(e)}var ei=new Set(["-","\u2010","\u2013","\u2014"]);function ff(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===" "||ei.has(r)&&t>0&&e[t-1]!==" "&&t+1<e.length&&e[t+1]!==" "&&!ei.has(e[t+1]))&&n.push(t+1);}return n[n.length-1]!==e.length&&n.push(e.length),n}function Ab(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===`
4
+ `||l===chunkQIFQTG57_cjs.Vb)return false;if(l!==" "&&l!==" ")return true}}return false}function Db(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===`
5
+ `||u===chunkQIFQTG57_cjs.Vb)return {width:o,decimalOffset:i?a:o};let f=c+1,p=s.text.slice(c,f),m=r.measure(Lt(p,s.style),s.style);!i&&u==="."?i=true:i||(a+=m),o+=m,c=f;}}return {width:o,decimalOffset:i?a:o}}function _b(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 pf(e,n,t,r=0){return (t.length>0?gt(e,n.height,t):n.exclusionSkipBefore??0)+Math.max(0,n.height-n.trailingSpacing)+r}function zb(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 Qa=31680;function zo(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let n=Number(e);return Number.isFinite(n)?n>Qa?Qa:n<-Qa?-Qa:n:null}function Ho(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=zo(o),l=zo(a);i!==null&&(n=i/20),l!==null&&(t=l/20);}return {left:n,right:t}}function mf(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 Hb(e){return e.endsWith(" ")}function jb(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(Kn(e.text.slice(0,o),e.style,n));return Object.freeze(r)}function Vr(e,n){return e.map(t=>t.caretEdges?t:{...t,caretEdges:jb(t,n)})}function ni(e,n,t,r,o,a,i){if(e.length===0)return e;if(o==="left")return Vr(e,n);let l=e[e.length-1],s=l.text.replace(/\s+$/,""),d=s===l.text?0:l.box.width-Kn(s,l.style,n),c=i??l.box.x-t+l.box.width-d,u=r-c;if(u<=0)return Vr(e,n);if(o==="both"){if(a)return Vr(e,n);let p=[];for(let y=1;y<e.length;y+=1)Hb(e[y-1].text)&&p.push(y);if(p.length===0)return Vr(e,n);let m=u/p.length,b=new Set(p),h=0;return Vr(e.map((y,x)=>(b.has(x)&&(h+=m),h===0?y:{...y,box:{...y.box,x:y.box.x+h}})),n)}let f=o==="center"?u/2:u;return Vr(e.map(p=>({...p,box:{...p.box,x:p.box.x+f}})),n)}function ti(e,n){return n===0||e.length===0?e:e.map(t=>Ka(t,n,0))}function ri(e,n,t,r,o,a,i,l=[],s=Er,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??kr,m=u?.firstLineOffset??0,b=[],h=Eu(e,l,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??ft,b,u?.inlineDrawingLayout,u?.themeFonts),y=Math.max(0,u?.startOffset??0),x=h.flatMap(O=>{if(O.end<=y)return [];if(O.start>=y)return [O];let w=y-O.start;return [{...O,text:O.projected?O.text:O.text.slice(w),start:y}]});if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let I=O=>({...O.revisions===void 0?{}:{revisions:O.revisions},...O.fieldAtom===void 0?{}:{fieldAtom:O.fieldAtom}}),S=u?.markRunProperties??l,_=S.length===0?Yn:dn(S,u?.themeFonts),F=t+r,A=u?.contentLeft??t,C=u?.contentRight??F,v=u?.contentOriginX??0,T=[],g={spans:[],start:y,end:y,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},z=false,G=new Map,E=(()=>{let O=new Set;if(!u?.inlineDrawingLayout)return O;let w=Nn(e);for(let X of In(e,u.inlineDrawingLayout)){if(X.projection.wrap!=="topAndBottom")continue;let J=w.get(X.atomId);J!==void 0&&O.add(J);}return O})(),R=(()=>{let O=new Set;if(!u?.inlineDrawingLayout)return O;let w=Nn(e);for(let X of In(e,u.inlineDrawingLayout)){if(X.projection.anchor?.behindDocument||X.projection.wrap==="topAndBottom"||X.projection.wrap==="inline"||X.projection.wrap==="behind"||X.projection.wrap==="inFront")continue;let J=w.get(X.atomId);J!==void 0&&O.add(J);}return O})(),B=[...(u?.pageExclusionZones??[]).filter(O=>O.anchorParagraphId===n).map(O=>O.anchorModelStart),...E,...R],k=(()=>{let O=new Map;if(B.length===0)return O;let w=0,X=0,J=0,ie=()=>J===0?m:0,ue=()=>Math.max(1,r-ie()),Be=ye=>{w=ye,X=0,J+=1;};for(let ye of x){if(ye.inlineDrawing){let _e=mt(ye.inlineDrawing.projection).totalWidth;X>0&&X+_e>ue()&&Be(ye.start),B.includes(ye.start)&&O.set(ye.start,w),X+=_e;continue}if(ye.text===`
6
+ `||ye.text===chunkQIFQTG57_cjs.Vb){Be(ye.end);continue}let Ze=0;for(let _e of ff(ye.text)){let Qe=ye.text.slice(Ze,_e);if(Qe.length===0)continue;let en=ye.style,we=o.measure(Qe,en),Bn=ye.start+Ze;X>0&&X+we>ue()&&Be(Bn),B.includes(Bn)&&O.set(Bn,w),B.includes(ye.start)&&O.set(ye.start,w),X+=we,Ze=_e;}}for(let ye of B)O.has(ye)||O.set(ye,w);return O})();for(let O of R){let w=k.get(O);w!==void 0&&G.set(O,w);}let M=O=>{if(O.anchorParagraphId!==n)return true;let w=k.get(O.anchorModelStart);return w!==void 0&&g.start>=w||g.end>=O.anchorModelStart},L=()=>{let O=u?.pageExclusionZones?.filter(J=>!(!M(J)||J.anchorParagraphId===n&&(J.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],w=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&G.size>0?uf({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:A,contentRight:C,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:G,anchorCellBox:u.anchorCellBox}):Object.freeze([]),X=u?.inlineDrawingLayout&&G.size>0?Za({paragraph:e,paragraphId:n,drawingLayout:u.inlineDrawingLayout,contentLeft:A,contentRight:C,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:G}):Object.freeze([]);return Object.freeze([...O,...w,...X])},H=()=>T.length===0?m:0,N=()=>v+t+H(),V=()=>Math.max(1,r-H()),j=()=>T.reduce((O,w)=>O+w.height+(w.exclusionSkipBefore??0),0),Y=()=>(u?.paragraphStartY??0)+j(),$=O=>{E.has(O)&&G.set(O,j());},U=()=>{if(z)return;let O=L();if(O.length===0||g.spans.length>0||g.drawings.length>0)return;let w=o.lineMetrics(_),X=gt(Y(),g.height>0?g.height:w.height,O);X>.001&&(z=true,g.exclusionSkipBefore=X);},fe=()=>Y()+(g.exclusionSkipBefore??0)+.001,be=()=>{let O=L();if(O.length===0)return true;U();let w=Xr(fe(),O,A,C),X=N()+g.width,J=Ms(X,w);return J?(J.x>X+.001&&(g.width=J.x-N()),true):false},ce=()=>{let O=V(),w=L();if(w.length===0)return O;if(U(),!be())return 0;let X=Xr(fe(),w,A,C),J=N()+g.width,ie=sf(J,X);return ie<=.001?0:Math.min(O,g.width+ie)},Ie=()=>Math.max(0,ce()-g.width),ve=()=>{let O=L();if(O.length===0||!O.some(ue=>ue.anchorParagraphId!==n||g.end>ue.anchorModelStart))return false;let X=Xr(fe(),O,A,C),J=N()+g.width,ie=false;for(let ue of X){if(!ie){J>=ue.start-1e-6&&J<ue.end-1e-6&&(ie=true);continue}if(ue.end-ue.start>.001)return g.width=ue.start-N(),true}return false},he=O=>{if(B.length===0||O<Math.min(...B))return;let w=L().filter(Be=>Be.anchorParagraphId===n&&O>=Be.anchorModelStart);if(w.length===0)return;U();let X=Xr(fe(),w,A,C),J=N()+g.width,ie=-1;for(let Be=0;Be<X.length;Be+=1){let ye=X[Be];if(J>=ye.start-.001&&J<ye.end-.001){ie=Be;break}}if(ie>=0)return;let ue=Ms(J,X);ue&&ue.x>J+.001&&(g.width=ue.x-N());},pe=O=>{L().filter(X=>X.input.mode==="topAndBottom"&&X.anchorParagraphId===n&&O>=X.anchorModelStart).length!==0&&((g.spans.length>0||g.drawings.length>0)&&ee(),U());},xe=(O,w=0)=>w>64?Ie()>=O:(U(),be()?O<=Ie()+.001?true:g.spans.length>0||g.drawings.length>0?ve()&&O<=Ie()+.001?true:(ee(),xe(O,w+1)):ve()?xe(O,w+1):true:g.spans.length>0||g.drawings.length>0?(ee(),xe(O,w+1)):true),Te=(O,w)=>b.filter(X=>X.start<w&&X.end>O).map(X=>({start:Math.max(X.start,O),end:Math.min(X.end,w)})),He=-1,an=0,rn=0,Me="",Qn=(O,w)=>{let X=o.lineMetrics(O),J=qu(X.baseline,g.height||X.height,w);return g.height===0?(g.height=J.lineHeight,g.baseline=J.baseline):(J.lineHeight>g.height&&(g.height=J.lineHeight),g.baseline=Math.max(g.baseline,J.baseline)),{extentTopY:J.extentTopY}},et=()=>{if(g.drawings.length===0)return;g.spans.length===0&&(g.baseline=Math.max(g.baseline,...g.drawings.map(w=>w.y+w.height)));let O=Ps(g.drawings,g.baseline);g.drawings.splice(0,g.drawings.length,...O),g.baseline=Math.max(g.baseline,...g.drawings.map(w=>w.y+w.height));},Se=()=>{if(g.drawings.length===0)return;let O=Ps(g.drawings,g.baseline);g.drawings.splice(0,g.drawings.length,...O);},on=O=>{let w=0;for(let X of g.spans)w=Math.max(w,o.lineMetrics(X.style).height);return w>0?w:O},vn=()=>{if(g.drawings.length===0)return;let O=Math.max(0,...g.drawings.map(w=>w.y+w.height+w.distB));g.height=Math.max(g.height,O);},q=()=>{et(),vn();},_n=()=>{if(!(g.spans.length<2))for(let O=1;O<g.spans.length;O+=1){let w=g.spans[O-1],X=g.spans[O],J=X.box.x-(w.box.x+w.box.width);J<=.001||g.drawings.some(ue=>ue.start>=w.range.end&&ue.start<X.range.start)||(g.spans[O]={...X,wrapAdvanceBefore:J});}},ee=O=>{let w=o.lineMetrics(_),X=g.baseline;g.height===0?(g.height=w.height,g.baseline=w.baseline,X=w.baseline):O?.includeParagraphMark&&(g.height=Math.max(g.height,w.height)),q();let J=g.height,ie=p.rule==="auto"&&g.drawings.length>0,ue=ie?on(w.height):J,Be=ql(p,ue,g.baseline);ie||(g.baseline=Be.baseline),g.leading=Math.max(0,g.baseline-X),g.height=Be.height,Se(),p.rule!=="exact"&&vn(),g.trailingSpacing=g.drawings.length===0&&p.rule!=="exact"?Math.max(0,Be.height-J):0,(()=>{let _e=L();if(_e.length===0)return;let Qe=gt(Y(),g.height,_e);Qe>.001?g.exclusionSkipBefore=Qe:delete g.exclusionSkipBefore;})(),_n();let Ze=Te(g.start,g.end);Ze.length>0&&(g.deletedRanges=Ze),T.push(g),He=-1,an=0,z=false,g={spans:[],drawings:[],start:g.end,end:g.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},U();},ne=false;for(let O=0;O<x.length;O+=1){let w=x[O];if(w.breakKind==="column"){let ie=o.lineMetrics(w.style);g.spans.push({range:{paragraphId:n,start:w.start,end:w.end},text:w.text,props:w.props,style:w.style,box:{x:N()+g.width,y:0,width:0,height:ie.height},...w.link?{link:w.link}:{},...I(w)}),g.height=Math.max(g.height,ie.height),g.baseline=Math.max(g.baseline,ie.baseline),g.end=w.end,ee(),T[T.length-1].columnBreakAfter=true,ne=true;continue}if(w.projected&&!w.inlineDrawing&&w.text==="\uFFFC"){$(w.start),g.end=w.end;continue}if(w.inlineDrawing){$(w.start);let ie=mt(w.inlineDrawing.projection),ue=ie.totalWidth;if((g.spans.length>0||g.drawings.length>0)&&g.width+ue>ce()&&ee(),!xe(ue))continue;let{extentTopY:ye}=Qn(w.style,ie),Ze=N()+g.width;g.drawings.push(tf({input:w.inlineDrawing,paragraphId:n,start:w.start,slotX:Ze,y:ye,baseline:g.baseline,contentLeft:A,contentRight:C})),g.width+=ue,g.end=w.end,He=-1,Me="";continue}if(w.text===chunkQIFQTG57_cjs.Vb){let ie=o.lineMetrics(w.style);g.spans.push({range:{paragraphId:n,start:w.start,end:w.end},text:chunkQIFQTG57_cjs.Vb,props:w.props,style:w.style,box:{x:N()+g.width,y:0,width:0,height:ie.height},...w.link?{link:w.link}:{},...I(w)}),g.height=Math.max(g.height,ie.height),g.baseline=Math.max(g.baseline,ie.baseline),g.end=w.end,ee(),T[T.length-1].pageBreakAfter=true,ne=false;continue}if(w.text===`
7
+ `){let ie=o.lineMetrics(w.style);g.spans.push({range:{paragraphId:n,start:w.start,end:w.end},text:`
8
+ `,props:w.props,style:w.style,box:{x:N()+g.width,y:0,width:0,height:ie.height},...w.link?{link:w.link}:{},...I(w)}),g.height=Math.max(g.height,ie.height),g.baseline=Math.max(g.baseline,ie.baseline),g.end=w.end,ee(),ne=true;continue}ne=false,pe(w.start),B.length>0&&w.start>=Math.min(...B)&&he(w.start);let X=o.lineMetrics(w.style),J=0;for(let ie of ff(w.text)){let ue=w.text.slice(J,ie);if(ue.length===0)continue;let Be=!!w.projected||!!w.positionalTab||w.end-w.start!==w.text.length,ye=Be?{paragraphId:n,start:w.start,end:w.end}:{paragraphId:n,start:w.start+J,end:w.start+ie};if(ue===" "){(g.spans.length>0||g.drawings.length>0)&&g.width>=ce()&&Ab(x,O,ie)&&ee();let ln=N()+g.width,Ye=Db(x,O,ie,o),Ge=w.positionalTab?_b(w.positionalTab,t,F,u?.marginExtent):null,nn=Ge===null?Mr(s,ln,F):Ge.positionPt>ln?Ge:{...Mr(s,ln,F),...Ge.leader?{leader:Ge.leader}:{}},Dt=ls(nn.alignment,ln,nn.positionPt,Ye.width,Ye.decimalOffset);g.spans.push({range:ye,text:" ",props:w.props,style:w.style,box:{x:ln,y:0,width:Dt,height:X.height},...nn.leader?{tabLeader:nn.leader,tabLeaderAdvancePt:o.measure(rs.get(nn.leader)??".",w.style)}:{},...w.link?{link:w.link}:{},...nn.leader?{tabLeader:nn.leader}:{},...Be&&!w.positionalTab?{projected:true}:{},...w.noteNav?{noteNav:w.noteNav}:{},...I(w)}),g.width+=Dt,g.height=Math.max(g.height,X.height),g.baseline=Math.max(g.baseline,X.baseline),g.end=Be?w.end:w.start+ie,Me=" ",J=ie;continue}let Ze=w.measureText??ue,_e=o.measure(Lt(Ze,w.style),w.style),Qe=J>0||Me===""||/[\s\u00a0]$/.test(Me)||/^[\s\u00a0]/.test(ue)||ei.has(Me[Me.length-1])&&!ei.has(ue[0]);if(Qe&&(He=g.spans.length,an=g.width,rn=g.end),he(w.start+J),g.width+_e>ce()+Fb&&(g.spans.length>0||g.drawings.length>0))if(Qe||He<=0){if(!(ve()&&g.width+_e<=ce()+.001)){if(ee(),!xe(_e))continue}}else {let ln=g.spans.splice(He);g.width=an,g.end=rn,g.height=0,g.baseline=0;for(let Ye of g.spans){let Ge=o.lineMetrics(Ye.style);g.height=Math.max(g.height,Ge.height),g.baseline=Math.max(g.baseline,Ge.baseline);}ee();for(let Ye of ln){let Ge=o.lineMetrics(Ye.style);g.spans.push({...Ye,box:{...Ye.box,x:N()+g.width}}),g.width+=Ye.box.width,g.height=Math.max(g.height,Ge.height),g.baseline=Math.max(g.baseline,Ge.baseline),g.end=Ye.range.end;}He=0,an=0;}else if(g.spans.length===0&&g.drawings.length===0&&_e>ce()+.001&&!xe(_e))continue;let en=ue,we=w.start+J,Bn=_e;if(!Be&&w.measureText===void 0)for(;g.spans.length===0&&en.length>1&&Bn>ce();){let ln=1,Ye=en.length-1,Ge=1;for(;ln<=Ye;){let zn=ln+Ye>>1;o.measure(Lt(en.slice(0,zn),w.style),w.style)<=ce()?(Ge=zn,ln=zn+1):Ye=zn-1;}let nn=en.slice(0,Ge),Dt=o.measure(Lt(nn,w.style),w.style);g.spans.push({range:{paragraphId:n,start:we,end:we+Ge},text:nn,props:w.props,style:w.style,box:{x:N()+g.width,y:0,width:Dt,height:X.height},...w.link?{link:w.link}:{},...w.noteNav?{noteNav:w.noteNav}:{},...I(w)}),g.width+=Dt,g.height=Math.max(g.height,X.height),g.baseline=Math.max(g.baseline,X.baseline),g.end=we+Ge,ee(),en=en.slice(Ge),we+=Ge,Bn=o.measure(Lt(en,w.style),w.style);}g.spans.push({range:Be?ye:{paragraphId:n,start:we,end:w.start+ie},text:en,props:w.props,style:w.style,box:{x:N()+g.width,y:0,width:Bn,height:X.height},...w.link?{link:w.link}:{},...Be&&!w.positionalTab?{projected:true}:{},...w.noteNav?{noteNav:w.noteNav}:{},...I(w)}),g.width+=Bn,g.height=Math.max(g.height,X.height),g.baseline=Math.max(g.baseline,X.baseline),g.end=Be?w.end:w.start+ie,Me=ue,J=ie;}}return (g.spans.length>0||g.drawings.length>0||T.length===0||ne)&&ee({includeParagraphMark:true}),i!==null&&a&&a.set(i,T.map(zb)),T}var ai=32,hf=4096,Gb=128,Wb=/[\u0000-\u001F\u007F-\u009F]/,$b={major:null,minor:null};function tr(e){return e.kind!=="textValue"}function jo(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Go(e,n){for(let t of e.children)if(tr(t)&&t.localName===n)return t}function Yr(e){return !(e===void 0||e.length===0||e.length>Gb||Wb.test(e)||chunkQIFQTG57_cjs.R(e))}function Xb(e){return e==="1"||e==="true"}function oi(e){return e.map(n=>n.attributes?{n:n.localName,a:n.attributes}:{n:n.localName})}function $o(e){if(e){for(let n of e.children)if(tr(n)&&(n.kind==="runProperties"||n.localName==="rPr"))return n}}function ii(e){if(e){for(let n of e.children)if(tr(n)&&(n.kind==="paragraphProperties"||n.localName==="pPr"))return n}}var gf=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function Kr(e){return e.some(n=>gf.has(n.localName))?e.filter(n=>!gf.has(n.localName)):e}function Vb(e){let n=Go(e,"docDefaults");if(!n)return {run:[],paragraph:[],paragraphNode:void 0};let t=Go(n,"rPrDefault"),r=Go(n,"pPrDefault"),o=$o(t),a=ii(r);return {run:Kr(gn(o)),paragraph:Kr(gn(a)),paragraphNode:a}}function Yb(e){let n=jo(e,"styleId");if(!Yr(n))return null;let t=jo(e,"type")??"",r=(()=>{let d=Go(e,"basedOn");return d?jo(d,"val"):void 0})(),o=Yr(r)?r:null,a=ii(e),i=$o(e),l=new Map,s=0;for(let d of e.children){if(d.kind==="textValue"||d.localName!=="tblStylePr")continue;if(s>=Kb)break;s+=1;let c=jo(d,"type");c&&!l.has(c)&&l.set(c,d);}return {styleId:n,type:t,basedOn:o,isDefault:Xb(jo(e,"default")),paragraphProperties:Kr(gn(a)),runProperties:Kr(gn(i)),paragraphPropertiesNode:a,tablePropertiesNode:Go(e,"tblPr"),conditionalTableFormats:l}}var Kb=32,Wo=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function yf(e,n){if(!n||!Yr(n))return Wo;let t=_s(e,n,"table");if(t.length===0)return Wo;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 As=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function bf(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=ii(i);l&&(t.push(l),r.push(...Kr(gn(l))));let s=$o(i);s&&o.push(...Kr(gn(s)));}return t.length===0&&r.length===0&&o.length===0?As:{paragraphProperties:r,paragraphPropertyNodes:t,runProperties:o}}function Ub(e,n=$b){let t=new Map;if(!e)return {cacheToken:chunk73X5I53C_cjs.y({empty:true,theme:n}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,themeFonts:n,styles:t};let r=Vb(e),o=null,a=null,i=0;for(let s of e.children){if(!tr(s)||s.localName!=="style")continue;if(i>=hf)break;i+=1;let d=Yb(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:chunk73X5I53C_cjs.y({dR:oi(r.run),dP:oi(r.paragraph),defP:o,defC:a,theme:n,styles:[...t.values()].map(s=>({id:s.styleId,type:s.type,basedOn:s.basedOn,p:oi(s.paragraphProperties),r:oi(s.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,themeFonts:n,styles:t}}function Ds(e,n){let t=null;for(let r of e){if(r.localName!==n)continue;let o=r.attributes?.val;t=Yr(o)?o:null;}return t}function _s(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<ai&&!(a.has(i)||!Yr(i));){a.add(i);let s=e.styles.get(i);if(!s)break;o.push(s),i=s.basedOn,l+=1;}return o.reverse()}function Ur(e,n,t){let r=gn(n),o=Ds(r,"pStyle")??e.defaultParagraphStyleId,a=o?_s(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...t?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],l=[...i,...r],s=[];e.docDefaultsParagraphNode&&s.push(e.docDefaultsParagraphNode),t&&s.push(...t.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&s.push(p.paragraphPropertiesNode);n&&s.push(n);let d=$o(n&&tr(n)?n:void 0),c=gn(d),u=[...e.docDefaultsRun,...t?.runProperties??[],...a.flatMap(p=>p.runProperties)],f=c.length===0?u:[...u,...c];return {paragraphProperties:l,inheritedParagraphProperties:i,paragraphPropertyNodes:s,runProperties:u,markRunProperties:f,styleId:o??null}}function xf(e){let n;for(let t of e){if(!t||t.kind==="textValue")continue;let r=false;for(let o of t.children)if(tr(o)&&o.localName==="pBdr"){r=true;break}r&&(n=st(t).bottom);}return n}function ht(e,n,t){let r=[];if(t){let a=Ds(n,"rStyle")??t.defaultCharacterStyleId;a&&(r=_s(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 Xo(e,n,t,r,o,a=false){let i=ii(e),l=t?Ur(t,i,o):null,s=l?[...l.paragraphProperties]:gn(i),d=gn($o(i&&tr(i)?i:void 0)),c=l?l.runProperties:[],u=l?l.markRunProperties:d,f=Ho(s),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let y of s){if(y.localName!=="ind")continue;let x=zo(y.attributes?.hanging),I=zo(y.attributes?.firstLine);(y.attributes?.hanging!==void 0||y.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,x)/20:0,m=I!==null?I/20:0);}let b=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=l?as(l.paragraphPropertyNodes):is(i);return {props:s,indent:b,available:Math.max(1,n-b.left-b.right),alignment:mf(s),spacing:Ul(s,{inList:r!==void 0,inTableCell:a}),lineSpacing:Zl(s),contextualSpacing:Jl(s),styleId:l?l.styleId:Ds(s,"pStyle")??null,bottomBorder:l?xf(l.paragraphPropertyNodes):st(i).bottom,borders:l?wo(l.paragraphPropertyNodes):st(i),shading:ts(s),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:Zt(h),...r?{listItem:r}:{}}}var Sf=new WeakMap;function Zb(e){let n=Sf.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 Sf.set(e,r),r}function wf(e,n){return !n||!Zb(n)?st(e):wo(Ur(n,e).paragraphPropertyNodes)}var qb=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function zs(e){let n=e?.val;return n!=="0"&&n!=="false"&&n!=="off"}function Rf(e){let n=false,t=false,r=true;for(let o of e)switch(o.localName){case "keepNext":n=zs(o.attributes);break;case "keepLines":t=zs(o.attributes);break;case "widowControl":r=zs(o.attributes);break;}return !n&&!t&&r?qb:{keepNext:n,keepLines:t,widowControl:r}}function Pf(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 If(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 Tf(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 Jb=_r;function Vo(e,n){if(e.kind!=="textValue"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function vf(e){if(e.kind==="textValue")return false;let n=Vo(e,"paragraphProperties")??Vo(e,"pPr");if(!n)return false;let t=Vo(n,"runProperties")??Vo(n,"rPr");return t!==void 0&&Vo(t,"del")!==void 0}function Bf(e,n){if(e.kind==="textValue"||n>Jb)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(chunkQIFQTG57_cjs.Jb(a)){if(o>=chunkQIFQTG57_cjs.Ib)continue;let l=chunkQIFQTG57_cjs.Lb(a);if(l&&!t(l,o+1))return false;continue}if((a.kind==="hyperlink"||a.kind==="revisionInsert"||a.kind==="revisionMoveTo")&&!Bf(a,o+1))return false}return true};return t(e.children,n)}function Yo(e,n="proposed"){return e.kind!=="paragraph"||n!=="proposed"||!vf(e)?false:Bf(e,0)}var Qb={state:"none"},Of=(e,n)=>n.state==="omitted"?e:n;function li(e,n,t={}){return e.state==="omitted"?n:e.state==="none"?Qb:e}function Hs(e,n){let t=Of;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 js(e,n){let t=Of;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 si(e=1048576){let n=e|0;return {intervalsRemaining:n>0?n:0}}function Cf(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]=ex(e[i],o,t,r);}return a}function ex(e,n,t,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(n,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,l=o[0].x,s=[],d=()=>{i=void 0;for(let c of a.values())(!i||c.cellIndex<i.cellIndex)&&(i=c);};for(let c of o){if(c.x>l&&i&&(!r||r.intervalsRemaining>0)){let u=s[s.length-1];u&&u.end===l&&u.cellIndex===i.cellIndex&&u.cell===i.cell?s[s.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(s.push({start:l,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),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 nx(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 Gs(e,n,t,r){r&&(r.columnLookups+=1);let o=e[n];if(!o||t<0)return;let a=nx(o,t)-1;if(a<0)return;let i=o[a];if(!(t>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var Mf=256,$e={state:"omitted"},mi={state:"none"},Nf={top:$e,left:$e,bottom:$e,right:$e,insideH:$e,insideV:$e},Ff={top:$e,left:$e,bottom:$e,right:$e},kf={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},rx=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 Ko(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Ws(e,n){return e.attributes.find(t=>t.localName===n)?.value}function ox(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function ax(e){if(e===null)return .5;let n=e/8;return !Number.isFinite(n)||n<=0?.5:n>So?So:n}function gi(e){if(!e)return $e;let n=Ws(e,"val");if(!n)return $e;if(n==="nil"||n==="none")return mi;let t=rx.get(n)??"single",r=Ws(e,"color"),o=r===void 0||r==="auto"?null:Na(r)??null;return {state:"edge",style:t,color:o,widthPt:ax(ox(Ws(e,"sz")))}}function Af(e,n){if(!e)return Ff;let t={top:$e,left:$e,bottom:$e,right:$e};for(let r of n)t[r]=gi(Ko(e,r));return t}function hi(e){let n=e&&Ko(e,"tblBorders");return n?{...Af(n,["top","left","bottom","right"]),insideH:gi(Ko(n,"insideH")),insideV:gi(Ko(n,"insideV"))}:Nf}function yi(e){return Af(e&&Ko(e,"tcBorders"),["top","left","bottom","right"])}function $s(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function Lf(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 Df(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"?mi:n;if(n.state==="none")return e;let r=$s(e),o=$s(n);if(r>o)return e;if(o>r)return n;let a=kf[e.style],i=kf[n.style];if(a!==i)return a>i?e:n;let l=Lf(e.color),s=Lf(n.color);return l<s?e:s<l?n:t?e:n}function di(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function ix(e,n,t){return t?n==="top"||n==="bottom"?e.insideH:e.insideV:e[n]}function lx(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 ci(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&&lx(t.edge,o.edge)?t={...t,gridEnd:o.gridEnd}:(n.push(t),t={...o});}return n.push(t),n}function ui(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 Ef(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 sx(e){if(!(!e||e.style!=="double"))return Or(e.widthPt)}function fi(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function dx(e,n){return n?e==="outer"?n.insetPt:n.insetPt+n.strokePt+n.gapPt:0}function cx(e,n,t){return t?e==="outer"?n-t.insetPt:n-t.insetPt-t.strokePt-t.gapPt:n}function ux(e,n){return n?e==="outer"?n.insetPt+n.strokePt:n.insetPt+n.extentPt:0}function fx(e,n,t){return t?e==="outer"?n-t.insetPt-t.strokePt:n-t.insetPt-t.extentPt:n}function Mt(e,n){e.length>=Mf||!(n.width>0)||!(n.height>0)||e.push(n);}function px(e,n,t,r,o,a,i,l,s,d,c){let u=Or(t.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:b}=u,h=Math.abs(r)<1e-6,y=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,I=Math.abs(o-i)<1e-6;if(n==="top"||n==="bottom"){let F=n==="top"?b:i-b-f,A=n==="top"?b+f+p:i-b-m;for(let C of ["outer","inner"]){let v=r,T=o;h&&(v=dx(C,l)),y&&(T=cx(C,a,s)),Mt(e,{side:n,role:C,color:t.color,cssStyle:"solid",x:v,y:C==="outer"?F:A,width:T-v,height:f});}return}let S=n==="left"?b:a-b-f,_=n==="left"?b+f+p:a-b-m;for(let F of ["outer","inner"]){let A=r,C=o;x&&(A=ux(F,d)),I&&(C=fx(F,i,c)),Mt(e,{side:n,role:F,color:t.color,cssStyle:"solid",x:F==="outer"?S:_,y:A,width:f,height:C-A});}}function mx(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 f=0;f<3;f+=1)Mt(e,{side:n,role:f===0?"outer":f===1?"middle":"inner",color:t.color,cssStyle:"solid",x:r,y:u+f*(l+s),width:o-r,height:l});return}let c=n==="left"?0:a-d;for(let u=0;u<3;u+=1)Mt(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 gx(e,n,t,r,o,a,i){let l=t.widthPt;n==="top"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:fi(t.style),x:r,y:0,width:o-r,height:l}):n==="bottom"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:fi(t.style),x:r,y:i-l,width:o-r,height:l}):n==="left"?Mt(e,{side:n,role:"edge",color:t.color,cssStyle:fi(t.style),x:0,y:r,width:l,height:o-r}):Mt(e,{side:n,role:"edge",color:t.color,cssStyle:fi(t.style),x:a-l,y:r,width:l,height:o-r});}function pi(e,n){if(e.length===0)return;let t=e[0];return sx(t.edge)}function hx(e,n,t,r,o,a,i,l,s,d){let c=(z,G,E)=>{let R=[];for(let B of G){if(!B.edge)continue;let k,M;E?(k=Ef(i,l,B.gridStart),M=Ef(i,l,B.gridEnd)):(k=s[B.gridStart-d]??0,M=s[B.gridEnd-d]??a),R.push({side:z,gridStart:B.gridStart,gridEnd:B.gridEnd,startPt:k,endPt:M,edge:B.edge});}return R},u=c("top",e,true),f=c("left",n,false),p=c("bottom",t,true),m=c("right",r,false),b=[...u,...m,...p,...f],h=pi(n),y=pi(r),x=pi(e),I=pi(t),S=(z,G)=>z.length===1&&Math.abs(z[0].startPt)<1e-6&&Math.abs(z[0].endPt-G)<1e-6,_=S(u,o),F=S(f,a),A=S(p,o),C=S(m,a),v=[],T=(z,G,E)=>{for(let R of G){let{edge:B,startPt:k,endPt:M}=R;B.style==="double"?px(v,z,B,k,M,o,a,z==="top"||z==="bottom"?h:void 0,z==="top"||z==="bottom"?y:void 0,z==="left"||z==="right"?x:void 0,z==="left"||z==="right"?I:void 0):B.style==="triple"?mx(v,z,B,k,M,o,a):E||gx(v,z,B,k,M,o,a);}};T("top",u,_),T("left",f,F),T("bottom",p,A),T("right",m,C);let g={};return _&&u[0]&&(g.top=u[0].edge),F&&f[0]&&(g.left=f[0].edge),A&&p[0]&&(g.bottom=p[0].edge),C&&m[0]&&(g.right=m[0].edge),b.length>0&&(g.edgeSegments=b),v.length>0&&(g.strokes=v),g}function Xs(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=Cf(e,t,o,a),d=(u,f,p)=>li(u.borders[f],ix(n,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?mi:Df(p,m);for(let u=0;u<i;u+=1){let f=e[u];for(let p=0;p<f.length;p+=1){let m=f[p];if(m.vMergeContinue){l[u][p]={};continue}let b=m.mergeRowSpan??1,h=u+b-1,y=u===0,x=h===i-1,I=m.gridColumn===0,S=m.gridColumn+m.gridSpan-1,_=S>=t-1,F=[];if(y)for(let k=m.gridColumn;k<=S;k+=1)F.push({gridStart:k,gridEnd:k+1,edge:di(d(m,"top",false))});let A=[];if(I)for(let k=u;k<=h;k+=1)A.push({gridStart:k,gridEnd:k+1,edge:di(d(m,"left",false))});let C=[];for(let k=m.gridColumn;k<=S;k+=1){let M;if(x)M=d(m,"bottom",false);else {let L=Gs(s,h+1,k,o);L?.cell.vMergeContinue?M=$e:M=c(m.borders.bottom,L?L.cell.borders.top:$e,d(m,"bottom",true),L?d(L.cell,"top",true):n.insideH);}C.push({gridStart:k,gridEnd:k+1,edge:di(M)});}let v=[];for(let k=u;k<=h;k+=1){let M;if(_)M=d(m,"right",false);else {let L=Gs(s,k,S+1,o);M=c(m.borders.right,L?L.cell.borders.left:$e,d(m,"right",true),L?d(L.cell,"left",true):n.insideV);}v.push({gridStart:k,gridEnd:k+1,edge:di(M)});}let T=ci(F),g=ci(A),z=ci(C),G=ci(v);if(!r){let k={},M=ui(T,m.gridColumn,S+1),L=ui(g,u,h+1),H=ui(z,m.gridColumn,S+1),N=ui(G,u,h+1);M&&(k.top=M),L&&(k.left=L),H&&(k.bottom=H),N&&(k.right=N);let V=[],j=(Y,$)=>{for(let U of $)U.edge&&V.push({side:Y,gridStart:U.gridStart,gridEnd:U.gridEnd,startPt:U.gridStart,endPt:U.gridEnd,edge:U.edge});};j("top",T),j("left",g),j("bottom",z),j("right",G),V.length>0&&(k.edgeSegments=V),l[u][p]=k;continue}let E=r.cellBoxes[u][p],R=[0],B=0;for(let k=u;k<=h;k+=1){let M=r.rowBands[k];B+=M.height,R.push(B);}R.length>1&&(R[R.length-1]=E.height),l[u][p]=hx(T,g,z,G,E.width,E.height,r.columnWidthsPt,m.gridColumn,R,u);}}return l}function rr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var Vs=Nf,Ys=Ff;var zf=31680/20,Fn=Object.freeze({type:"auto",value:0}),yx=100,bx=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function xx(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function Us(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Hf(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])*bx[t[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function or(e){if(!e)return Fn;let n=Us(e,"type");if(n!==void 0&&n!=="pct"&&n!=="dxa")return n==="nil"?{type:"nil",value:0}:Fn;let t=Us(e,"w");if(t===void 0)return Fn;let r=Hf(t);if(!r)return Fn;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?Fn:{type:"pct",value:Math.min(a,yx)}}return !Number.isFinite(r.pt)||r.pt<=0?Fn:{type:"dxa",value:Math.min(r.pt,zf)}}function Uo(e,n){if(!e)return;let t=or(e);if(t.type==="dxa")return Math.min(t.value,n)}function jf(e){let n=xx(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 Sx(e){let n=[];for(let t of e){let r=Us(t,"w"),o=r===void 0?null:Hf(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){n.push(void 0);continue}n.push(o.pt>zf?void 0:o.pt);}return n}var Ks=1,_f=.001;function wx(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 f=o[i.start];o[i.start]=f===void 0?s:Math.max(f,s);continue}let d=[],c=s;for(let f=i.start;f<l;f+=1){let p=o[f];p===void 0?d.push(f):c-=p;}if(d.length===0||c<=0)continue;let u=c/d.length;for(let f of d)o[f]=u;}return o}function Gf(e){let{columnCount:n,tableWidth:t}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:Ks,a=t.type==="dxa"?t.value:t.type==="pct"?o*t.value/100:0,i=Sx(e.gridCols),l=wx(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,I=Math.max(Math.min(x,y),Ks);for(let S of l)c.push(S??I);}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 f=n*Ks,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),b=t.type==="pct"&&a>0;if(u<=m+_f&&!b||Math.abs(u-m)<=_f)return c;let h=m/u;return c.map(y=>y*h)}var Si=16,qo=3,xi=31680/20,tp=31680/20,Wf=1023,Rx=256,$f=31680/20;function Xf(e){let n=e&&ge(e,"jc");if(!n)return;let t=De(n,"val");if(t==="center")return "center";if(t==="right"||t==="end")return "right";if(t==="left"||t==="start")return "left"}var Vf=31680/20,rp={top:qo,right:qo,bottom:qo,left:qo};function ge(e,n){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}function De(e,n){return e.attributes.find(t=>t.localName===n)?.value}function Px(e){let n=e&&ge(e,"gridSpan"),t=n&&De(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 Yf(e,n){let t=e&&ge(e,n),r=t&&De(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 Ix(e){let n=e&&ge(e,"vMerge");return n?De(n,"val")!=="restart":false}function Tx(e){let n=e&&ge(e,"vAlign"),t=n&&De(n,"val");return t==="center"?"center":t==="bottom"?"bottom":"top"}function Kf(e){return ns(e&&ge(e,"shd"))}function Uf(e,n){let t=e&&ge(e,n);if(!t)return false;let r=De(t,"val");return r!=="0"&&r!=="false"}var Zo=Object.freeze({rule:"auto"});function vx(e){let n=e&&ge(e,"trHeight");if(!n)return Zo;let t=De(n,"hRule"),r=t==="auto"||t==="exact"||t==="atLeast"?t:void 0;if(r==="auto")return Zo;let o=De(n,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Zo;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Zo;let i=Math.min(a/20,tp);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Zo}function bi(e){if(!e)return;let n=De(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>xi?xi:r}function Zs(e){if(!e)return {};let n=bi(ge(e,"top")),t=bi(ge(e,"left")),r=bi(ge(e,"bottom")),o=bi(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 qs(e,n){return {top:n.top??e.top,right:n.right??e.right,bottom:n.bottom??e.bottom,left:n.left??e.left}}function Jo(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 Zf(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function qf(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(-Vf,Math.min(Vf,t))}function Jf(e){let n=e&&ge(e,"tblpPr");if(!n)return;let t=De(n,"tblpXSpec"),r=t==="left"||t==="center"||t==="right"||t==="inside"||t==="outside"?t:void 0,o=De(n,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:Zf(De(n,"horzAnchor"))??"text",vertAnchor:Zf(De(n,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:qf(De(n,"tblpX"))??0,...a?{ySpec:a}:{},yPt:qf(De(n,"tblpY"))??0}}function op(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 Bx=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function yt(e,n){let t=De(e,n);if(t!==void 0)return t!=="0"&&t!=="false"&&t!=="off"}function Ox(e){let n=e&&ge(e,"tblLook");if(!n)return Bx;let t=De(n,"val"),r=t&&/^[0-9A-Fa-f]{1,4}$/.test(t)?Number.parseInt(t,16):0;return {firstRow:yt(n,"firstRow")??(r&32)!==0,lastRow:yt(n,"lastRow")??(r&64)!==0,firstColumn:yt(n,"firstColumn")??(r&128)!==0,lastColumn:yt(n,"lastColumn")??(r&256)!==0,rowBanding:yt(n,"noHBand")===void 0?(r&512)===0:!yt(n,"noHBand"),columnBanding:yt(n,"noVBand")===void 0?(r&1024)===0:!yt(n,"noVBand")}}var Js=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],Qf=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function ep(e,n){let t=e&&ge(e,"cnfStyle");if(!t)return;let r=De(t,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Js.length;o+=1)r[o]==="1"&&n.add(Js[o]);for(let o=0;o<Qf.length;o+=1)yt(t,Qf[o])===true&&n.add(Js[o]);}var Cx=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function kx(e){let n=new Set;ep(e.rowProperties,n),ep(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 b=a-(t.firstColumn?1:0);n.add(b%2===0?"band1Vert":"band2Vert");}if(!(n.has("band1Horz")||n.has("band2Horz"))&&t.rowBanding&&!s&&!d){let b=r-(t.firstRow?1:0);n.add(b%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 b of Cx)n.has(b)&&m.push(b);return m}var np=new WeakMap;function Zr(e,n,t,r,o="all-markup"){let a=np.get(e);if(a&&a.contentWidthPt===n&&a.depth===t&&a.styleCascade===r&&a.displayMode===o)return a.structure;let i=Lx(e,n,t,r,o);return np.set(e,{contentWidthPt:n,depth:t,styleCascade:r,displayMode:o,structure:i}),i}function Lx(e,n,t,r,o){if(t>=Si||e.kind!=="table")return null;let a=ge(e,"tblPr"),i=a&&ge(a,"tblStyle")?De(ge(a,"tblStyle"),"val"):void 0,l=r?yf(r,i):Wo,s=Ox(a),d=rp,c=Vs;for(let H of l.tablePropertyNodes)d=qs(d,Zs(ge(H,"tblCellMar"))),c=Hs(c,hi(H));let u=qs(d,Zs(a&&ge(a,"tblCellMar"))),f=Hs(c,a?hi(a):Vs),p=new Map,m=H=>{if(l===Wo)return As;let N=H.join("|"),V=p.get(N);if(V)return V;let j=bf(l,H);return p.size<Rx&&p.set(N,j),j},b=[],h=[],y=1;for(let H of chunkQIFQTG57_cjs.he(e.children)){if(H.kind!=="tableRow")continue;let N=ge(H,"trPr"),V=[],j=[],Y=[],$=Math.min(Yf(N,"gridBefore"),Wf);$>0&&h.push({start:0,span:$,preferred:or(N&&ge(N,"wBefore"))});let U=$,fe=chunkQIFQTG57_cjs.he(H.children);for(let Ie of fe){if(Ie.kind!=="tableCell")continue;let ve=ge(Ie,"tcPr"),he=Math.min(U,Wf),pe=Math.min(Px(ve),1024-he),xe=or(ve&&ge(ve,"tcW"));V.push(he),j.push(pe),Y.push(xe),h.push({start:he,span:pe,preferred:xe}),U=he+pe;}let be=Yf(N,"gridAfter"),ce=Math.min(U+be,1024);be>0&&U<1024&&h.push({start:U,span:Math.min(be,1024-U),preferred:or(N&&ge(N,"wAfter"))}),ce>y&&(y=ce),b.push({node:H,cells:fe,properties:N,starts:V,spans:j,preferred:Y,gridColumns:ce});}let x=jf(e),I=x.length>0?x.length:y,S=b.length,_=[];for(let H=0;H<b.length;H+=1){let N=b[H],V=N.node,j=N.properties,Y=0,$=[];for(let ve of N.cells){if(ve.kind!=="tableCell")continue;let he=ge(ve,"tcPr"),pe=N.starts[Y],xe=N.spans[Y],Te=N.preferred[Y]??Fn,He=kx({look:s,rowIndex:H,rowCount:S,gridColumn:pe,gridSpan:xe,columnCount:I,rowProperties:j,cellProperties:he});Y+=1;let an,rn=Ys;for(let Se of He){let on=l.conditional.get(Se);if(!on)continue;let vn=ge(on,"tcPr");an=Kf(vn)??an,rn=js(rn,yi(vn));}let Me=Kf(he)??an,Qn=qs(u,Zs(he&&ge(he,"tcMar"))),et=chunkQIFQTG57_cjs.Nb(ve.children,0,Se=>!(Se.kind==="paragraph"&&Yo(Se,o)));$.push({id:ve.id,gridSpan:xe,gridColumn:pe,...x[pe]?.id?{gridColumnId:x[pe].id}:{},vMergeContinue:Ix(he),vAlign:Tx(he),margins:Qn,borders:js(rn,he?yi(he):Ys),...Me===void 0?{}:{shading:Me},preferredWidth:Te,styleFormatting:m(He),blocks:et});}let U=j?ge(j,"ins")??ge(j,"del"):void 0,fe=U?U.localName==="ins"?"insert":"delete":void 0,be=U&&De(U,"id"),ce=U&&De(U,"author"),Ie=U&&De(U,"date");_.push({id:V.id,...fe?{revisionKind:fe}:{},...be!==void 0?{revisionId:be}:{},...ce!==void 0?{revisionAuthor:ce}:{},...Ie!==void 0?{revisionDate:Ie}:{},isHeader:Uf(j,"tblHeader"),cantSplit:Uf(j,"cantSplit"),height:vx(j),cells:$});}let F=Fn,A,C,v,T,g;for(let H of l.tablePropertyNodes){let N=ge(H,"tblW");N&&(F=or(N));let V=ge(H,"tblLayout");V&&(A=De(V,"type")==="fixed"),C=Uo(ge(H,"tblInd"),$f)??C,v=Xf(H)??v,T=Uo(ge(H,"tblCellSpacing"),xi)??T,g=Jf(H)??g;}let z=a&&ge(a,"tblW"),G=z?or(z):F,E=a&&ge(a,"tblLayout"),R=E?De(E,"type")==="fixed":A??false,B=Uo(a&&ge(a,"tblInd"),$f)??C??0,k=Xf(a)??v??"left",M=t===0?Jf(a)??g:void 0,L=Uo(a&&ge(a,"tblCellSpacing"),xi)??T??0;return {columnWidthsPt:Gf({gridCols:x,claims:h,columnCount:I,contentWidthPt:n,tableWidth:G,layoutFixed:R}),rows:_,tableWidth:G,layoutFixed:R,indentPt:B,alignment:k,...M?{float:M}:{},cellSpacingPt:L,tableBorders:f,defaultMargins:u}}var ed=512,ip=9,An=31680/20,Ex=8,Mx=128;function Qo(e,n){return e.kind!=="textValue"&&e.namespaceUri===chunkQIFQTG57_cjs.la&&e.localName===n}function Xe(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function hn(e,n){for(let t of e.children)if(Qo(t,n))return t}function bt(e,n=false){return e===void 0||!(n?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Nx(e){let n=e/20;return !Number.isFinite(n)||n<=0?0:n>An?An:n}function Qs(e){let n=e/20;return Number.isFinite(n)?n>An?An:n<-An?-An:n:0}function Fx(e){let n={left:0,right:0,hanging:0,firstLine:0};if(!e)return n;let t=hn(e,"ind");if(!t)return n;let r=bt(Xe(t,"left")??Xe(t,"start"),true),o=bt(Xe(t,"right")??Xe(t,"end"),true),a=bt(Xe(t,"hanging")),i=bt(Xe(t,"firstLine"),true);return {left:r===null?0:Qs(r),right:o===null?0:Qs(o),hanging:a===null?0:Nx(a),firstLine:i===null?0:Qs(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function Ax(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function Dx(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function _x(e,n){let t=hn(e,n);if(!t)return false;let r=Xe(t,"val");return r!=="0"&&r!=="false"&&r!=="off"}function ap(e,n){let t=hn(e,n);if(!t)return;let r=Xe(t,"val");if(!(r===void 0||r.length===0||r.length>Mx))return r}function zx(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 lp(e){let n=bt(Xe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=hn(e,"start"),r=1;if(t){let y=bt(Xe(t,"val"));y!==null&&y>=0&&(r=Math.min(y,9999));}let o=hn(e,"numFmt"),a=(o?Xe(o,"val"):void 0)??"decimal",i=hn(e,"lvlText"),l=i?Xe(i,"val")??"":"",s=hn(e,"lvlJc"),d=Dx(s?Xe(s,"val"):void 0),c=hn(e,"suff"),u=Ax(c?Xe(c,"val"):void 0),f=hn(e,"lvlRestart"),p;if(f){let y=bt(Xe(f,"val"));y!==null&&y>=0&&y<=9&&(p=y);}let m=hn(e,"pPr"),b=hn(e,"rPr"),h=b?No(b):[];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:Fx(m),...p!==void 0?{lvlRestart:p}:{},isLgl:_x(e,"isLgl"),runProperties:h,vanish:zx(h,"vanish")}}function Hx(e){let n=Xe(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(!Qo(a,"lvl"))continue;if(t.size>=9)break;let i=lp(a);i&&!t.has(i.ilvl)&&t.set(i.ilvl,i);}let r=ap(e,"numStyleLink"),o=ap(e,"styleLink");return {abstractNumId:n,levels:t,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function jx(e){let n=bt(Xe(e,"ilvl"));if(n===null||n<0||n>8)return null;let t=hn(e,"startOverride"),r;if(t){let i=bt(Xe(t,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=hn(e,"lvl"),a=o?lp(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 Gx(e){let n=Xe(e,"numId");if(n===void 0||n.length===0||n.length>64)return null;let t=hn(e,"abstractNumId"),r=t?Xe(t,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Qo(a,"lvlOverride"))continue;if(o.size>=ip)break;let i=jx(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:n,abstractNumId:r,overrides:o}}function Wx(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(Qo(a,"abstractNum")){if(r>=ed)continue;r+=1;let i=Hx(a);i&&!n.has(i.abstractNumId)&&n.set(i.abstractNumId,i);continue}if(Qo(a,"num")){if(o>=ed)continue;o+=1;let i=Gx(a);i&&!t.has(i.numId)&&t.set(i.numId,i);}}return {abstractNums:n,nums:t}}function $x(e,n,t){let r=new Set([n.abstractNumId]),o=n;for(let a=0;a<Ex;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 sp(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=$x(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 qr(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 nd=Object.freeze({abstractNums:new Map,nums:new Map});function Xx(e,n){let t=e.nums.get(n),r=[];for(let o=0;o<=8;o+=1){let a=qr(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 Vx(e,n,t){let r=[];for(let o=0;o<=8;o+=1){let a=qr(e,n,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...t]}}function Yx(e,n){if(n===0)return null;if(n===void 0)return e-1;let t=n-1;return t>=e?null:t}function td(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=Xx(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=qr(e,a,i);if(!l)return null;let{abstractNumId:s,level:d}=l,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=Vx(e,a,f);for(let S=i+1;S<=8;S+=1){let _=qr(e,a,S);if(!_)continue;let F=Yx(S,_.level.lvlRestart);F!==null&&i<=F&&(u[S]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let b=c.slice(),h=u.slice(),y=b.map((S,_)=>h[_]?S:f[_]??1),x=d.isLgl?p.map(S=>S==="bullet"||S==="none"?S:"decimal"):p,I=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:ps(d.lvlText,y,x);return {abstractNumId:s,numId:a,ilvl:i,level:d,counters:b,markerText:I}}}}var Kx=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),dp=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),cp=new Map([[167,"\u25AA"],[183,"\u2022"]]),up=new Map([["symbol",Kx],["wingdings",dp],["wingdings 2",cp],["wingdings 3",cp],["webdings",dp]]),Ux=64;function Zx(e){return !e||e.length>Ux?false:up.has(e.toLowerCase())}function fp(e,n,t){if(e.length===0||!Zx(n))return e;let r=up.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}function rd(e){return e.kind!=="textValue"}function pp(e,n){for(let t of e.attributes)if(t.localName===n)return t.value}function wi(e,n){for(let t of e.children)if(rd(t)&&t.localName===n)return t}function od(e){let n=null;for(let t of e){if(!rd(t))continue;let r=wi(t,"numPr");if(!r)continue;let o=wi(r,"ilvl"),a=wi(r,"numId"),i=a?pp(a,"val"):void 0,l=o?pp(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 qx(e,n){let t=new Set,r=e.styles.get(n);for(let o=0;r!==void 0&&o<ai;o+=1){if(t.has(r.styleId))return;t.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?od([a]):null;if(i)return i.numId;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}function ad(e,n){return n?sp(e,t=>qx(n,t)):e}function mp(e){return Number.isFinite(e)?e>An?An:e<-An?-An:e:0}function gp(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)?mp(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?mp(Number(o)/20):0});}return n}function hp(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.left!==void 0||n.attributes?.start!==void 0))}function yp(e){return e.some(n=>n.localName==="ind"&&(n.attributes?.right!==void 0||n.attributes?.end!==void 0))}function bp(e,n,t=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Ho(n),a=Ho(t),i={hanging:e.hanging,firstLine:e.firstLine},l=hp(t)?a.left:r.left?e.left:hp(n)?o.left:e.left,s=yp(t)?a.right:r.right?e.right:yp(n)?o.right:e.right,d=gp(t)??(r.firstLineOffset?i:gp(n)??i);return {left:l,right:s,...d}}function xp(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 chunkQIFQTG57_cjs.he(i.children))if(l.kind==="tableRow")for(let s of chunkQIFQTG57_cjs.he(l.children)){if(s.kind!=="tableCell")continue;let d=chunkQIFQTG57_cjs.Nb(s.children);r(d,a+1);}}}};return r(e,0),t}function Sp(e,n,t,r){let o=new Map;if(n.nums.size===0)return o;let a=ad(n,t),i=td(a);for(let l of xp(e)){let s=l.children.find(F=>F.kind==="paragraphProperties"),d=t?Ur(t,s):null,c=d?d.paragraphPropertyNodes:s?[s]:[],u=od(c);if(!u)continue;let f=i.advance(u.numId,u.ilvl);if(!f)continue;let p=gn(s),m=bp(f.level.indent,d?.inheritedParagraphProperties??[],p),b=s&&rd(s)?wi(s,"rPr"):void 0,h=gn(b),y=d?d.markRunProperties:h,x=ht(y,f.level.runProperties,t),I=dn(x,t?.themeFonts),S=fp(f.markerText,I.fontFamily,r),_=[f.numId,f.ilvl,f.level.numFmt,f.level.lvlText,m.left,m.right,m.hanging,m.firstLine,f.level.lvlJc,f.level.suff,f.level.vanish?1:0,S.length].join("|");o.set(l.id,{numId:f.numId,ilvl:f.ilvl,abstractNumId:f.abstractNumId,numFmt:f.level.numFmt,markerText:S,markerAlign:f.level.lvlJc,suffix:f.level.suff,indent:m,markerStyle:I,cacheToken:_});}return o}function id(e,n){let t=ad(e.numberingIndex??nd,e.styleCascade),r=e.listItems??(t.nums.size>0?Sp(n,t,e.styleCascade,e.isFontAvailable):void 0);return {...e,numberingIndex:t,...r?{listItems:r}:{}}}function Ri(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 Jx(e,n,t=Er,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=n.measure(e.markerText,e.markerStyle),a=Ri(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:Mr(t,l,r).positionPt-i}function Pi(e,n,t,r,o){return e?Jx(e,t,r,o===void 0?void 0:n.left+o):n.hanging>0?-n.hanging:n.firstLine}function Ii(e,n,t,r=0){if(!e||!e.markerText||!t)return;let o=n.measure(e.markerText,e.markerStyle),a=Ri(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 ud=8,wp=new WeakMap;function vi(e){let n=wp.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 f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let b=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=l.get(b);h&&i.set(m,h);}else l.set(b,{row:p,cell:m});}s(m.blocks,u||p.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 wp.set(e,d),d}function ta(e,n){let t=vi(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 Qx(e,n){let t=e.pages[ta(e,n.y)];if(!t)return false;for(let r of [t.header,t.footer])if(r&&Oi(r.box,n))return true;return false}function dd(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||!ea(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 Bi(e,n,t,r={}){let o=e.pages[n];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??ud,measurer:r.measurer},i=Rp(e,o.index,t),l=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),s=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=dd(l,t,a.pageIndex);if(d)return {...d,contentControlId:i};let c=Ti(o.fragments,t,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=dd(s,t,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [n-f,n+f]){let m=e.pages[p];if(!m)continue;let b=Ti(m.fragments,t,{...a,pageIndex:m.index},null);if(b)return {...b,contentControlId:Rp(e,m.index,t)}}return null}function KP(e,n,t,r,o={}){let a=e.pages[n];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??ud,measurer:o.measurer};return Ti(t,r,i,null)}function eS(e,n,t={}){let r=e.pages[ta(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=dd(o.anchoredDrawings,a,r.index);if(i)return i}return Bi(e,r.index,{x:n.x-r.contentBox.x,y:n.y-r.contentBox.y},t)}function Oi(e,n){return n.x>=e.x&&n.x<e.x+e.width&&n.y>=e.y&&n.y<e.y+e.height}function Ci(e,n,t){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===n&&Oi(i.box,t)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Rp(e,n,t){return Ci(e,n,t)?.id??null}function cd(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 nS(e,n,t){return e.kind!=="table"||Math.max(e.box.y-n.y,0,n.y-(e.box.y+e.box.height))>0?cd(e.box,n,t):0}function Ti(e,n,t,r){if(e.length===0)return null;let o=null;for(let i of e){if(!Oi(i.box,n))continue;o=i;let l=Pp(i,n,t,r);if(l)return l;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:nS(i,n,t.verticalWeight)})).sort((i,l)=>i.score-l.score);for(let{block:i}of a){let l=Pp(i,n,t,r);if(l)return l}return null}function Pp(e,n,t,r){return e.kind==="paragraph"?tS(e,n,t,r,Oi(e.box,n)):dS(e,n,t)}function tS(e,n,t,r,o){let a=rS(e.lines,n.y);if(!a)return null;let i=iS(a,n.x,n.y,t),l={paragraphId:a.range.paragraphId,offset:i.offset},s=ra(a,i.offset,t.measurer);return {position:l,caret:{position:l,x:i.x,y:s.y,height:s.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?oS(a,i.drawing):null}}function rS(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 oS(e,n){return Object.freeze({drawingNodeId:n.drawingNodeId,paragraphId:e.range.paragraphId,start:n.start})}function aS(e,n){for(let t of e.drawings??[])if(t.start===n||t.start+1===n)return t;return null}function ea(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:ws(n.x,n.y,e.geometry)}function iS(e,n,t,r){let o=e.spans;for(let s of e.drawings??[])if(ea(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 ld(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:ea(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 ld(e,l,r);for(let s of o)if(n>=s.box.x&&n<s.box.x+s.box.width)return lS(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=ea(c,{x:n,y:t}),f=n>=c.x+c.width/2;return {offset:f?c.start+1:c.start,x:f?c.advanceEnd:c.advanceStart,withinSpan:u,drawing:c}}if(!(c.start<=d.range.start&&c.hitBounds.x+c.hitBounds.width<=d.box.x)){if(ea(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 ld(e,l,r)}function ld(e,n,t){let r=Cp(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?na(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 Cp(e,n){let t=n.range.end;if(t>n.range.start&&sd(n,t-1)===chunkQIFQTG57_cjs.Vb)return t-1;if(vi(e).lastLineIdOfParagraph.get(n.range.paragraphId)===n.id)return t;let r=t;for(r>n.range.start&&sd(n,r-1)===`
9
+ `&&(r-=1);r>n.range.start&&sd(n,r-1)===" ";)r-=1;return r}function sd(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 Ip=new WeakMap,Tp=new WeakMap;function vp(e){let n=_l(),t=Ip.get(e);if(t&&t.epoch===n)return t.boundaries;let r=[0];for(let o of Mn(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),Ip.set(e,{epoch:n,boundaries:r}),r}function na(e,n,t){let r=e.caretEdges;if(r&&n>=0&&n<r.length)return r[n];let o=Tp.get(t);o||(o=new WeakMap,Tp.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:Kn(e.text.slice(0,n),e.style,t);return a.set(n,l),l}function fd(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function ki(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||fd(e)?e.box.x+e.box.width*(o/r):e.box.x+na(e,o,t)}function ra(e,n,t){let r=aS(e,n);if(r)return {x:n>r.start?r.advanceEnd:r.advanceStart,y:r.y,height:r.height};let o=e.spans;if(o.length===0){let s=e.leading??0;return {x:e.contentX,y:e.box.y+s,height:Math.max(0,e.box.height-s-(e.trailingSpacing??0))}}let a=o[0];for(let s=0;s<o.length;s+=1){let d=o[s];if(n>d.range.start&&n<d.range.end){a=d;break}if(n===d.range.end){let c=o[s+1];if(c&&c.range.start===n&&fd(d)){a=c;break}if(c&&c.range.start===n&&d.text.endsWith(" ")&&c.box.x-(d.box.x+d.box.width)>.25){a=c;break}a=d;}else n>d.range.end&&(a=d);}let i=ki(a,n,t),l=t?.lineMetrics(a.style);return !l||l.height<=0?{x:i,y:e.box.y,height:e.box.height}:{x:i,y:e.box.y+e.baseline-l.baseline-hs(a.style),height:l.height}}function lS(e,n,t){let r=n-e.box.x,o=e.range.end-e.range.start;if(o<=0||fd(e)){let p=r>e.box.width/2;return {offset:p?e.range.end:e.range.start,x:p?e.box.x+e.box.width:e.box.x,withinSpan:true}}if(!t.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),b=vp(e),h=b[0],y=Number.POSITIVE_INFINITY;for(let x of b){let I=Math.abs(x-m);I<y&&(y=I,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=vp(e),i=1,l=a.length-1;for(;i<l;){let p=i+l>>1;na(e,a[p],t.measurer)<r?i=p+1:l=p;}let s=a[i],d=a[i-1],c=na(e,s,t.measurer),u=na(e,d,t.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:s),x:e.box.x+(f?u:c),withinSpan:true}}function Bp(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 sS(e,n,t,r){return {tableId:n.tableId,rowId:t.id,cellId:r.id,rowIndex:vi(e).rowIndexById.get(t.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function dS(e,n,t,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],l=Bp(a,n.y,d=>d.box.y,d=>d.box.height);if(l){let d=Bp(l.cells,n.x,c=>c.box.x,c=>c.box.width);d&&i.push(cS(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:cd(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=sS(t.layout,e,d,c),f=Ti(c.blocks,n,t,u);if(f)return f}return null}function cS(e,n,t){return t.blocks.length>0?{row:n,cell:t}:vi(e.layout).mergeOriginOf.get(t)??{row:n,cell:t}}function kp(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 uS(e,n,t){for(let r of n.lines)for(let o of r.drawings??[])if(o.drawingNodeId===t)return kp(e,o);return null}function Lp(e,n,t){if(n.kind==="paragraph")return uS(e,n,t);for(let r of n.rows)for(let o of r.cells)for(let a of o.blocks){let i=Lp(e,a,t);if(i)return i}return null}function Op(e,n,t){for(let r of n){let o=Lp(e,r,t);if(o)return o}return null}function fS(e,n){for(let t of e.pages){for(let o of t.anchoredDrawings??[])if(o.drawingNodeId===n)return kp(t.index,o);let r=Op(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=Op(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 pS(e){let n=[0],t=0;for(let r of e)t+=r,n.push(t);return n}function mS(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 Li(e,n,t,r){return {...e,nestingDepth:t,columnEdges:e.columnEdges??pS(n),rows:e.rows.map(o=>mS(o,r))}}var Ep=new WeakMap,Jr=4,pd=6,Mp=14,gS={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function Np(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)Np(s.blocks,n,t,i+1,o);}}}function qP(e){let n=Ep.get(e);if(n)return n;let t=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o];Np(a.fragments,o,a.contentBox,0,i=>{t.push(i);});}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(t)});return Ep.set(e,r),r}function JP(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 QP(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 eI(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=oa(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 oa(e,n){for(let t of e.cells)if(t.gridColumn===n)return t.gridColumnId??null;return null}function hS(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<-Jr||c<-Mp||d>s.box.width+Jr||c>s.box.height+pd?null:{x:d,y:c}}function yS(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)<=Jr)&&t>=0&&t<=a.box.width&&Math.abs(r-i)<=Jr)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)>Jr)continue;let u=oa(n.row,d-1),f=oa(n.row,d);if(!u||!f)continue;let p=o.pages[n.pageIndex];return {kind:"columnDivider",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:a.tableId,rowId:n.row.id,leftGridColumnId:u,rightGridColumnId:f,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth,edgeX:c,sheetY:p.contentBox.y+a.box.y+r}}let s=a.columnEdges.at(-1);if(Math.abs(t-s)<=Jr){let d=a.columnEdges.length-2,c=oa(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 nI(e,n,t,r,o=0,a){let i=a??ta(r,t),l=i>=0?o:0,s=null,d=-1,c=-1,u=f=>{if(!f)return;let p=gS[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,s=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=hS(r,f,n,t,l);if(!p||(u(yS(e,f,p.x,p.y,r)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=pd&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+pd&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let b=0;b<f.table.columnEdges.length-1;b+=1){let h=f.table.columnEdges[b],y=f.table.columnEdges[b+1],x=(h+y)/2;if(Math.abs(p.x-x)>(y-h)/2+2||p.y>Mp)continue;let I=oa(f.row,b);if(I){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:I,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return s}var Fp=1048576;function md(e=Fp){let n=e|0;return {cellsRemaining:n>0?n:0}}function gd(e,n,t,r){let o=new Map,a=new Map,i=r?.pageFragment===true,l=new Set,s=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>t!==void 0&&t.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}s&&p.isHeaderRepeat!==true&&(s=false,f(),l?.clear());let m=new Set,b=false;for(let h of p.cells){if(t){if(t.cellsRemaining<=0){b=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(b){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}function Dp(e,n,t,r){let o=new Map,a=0,i=l=>{let s=Zr(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 Mi=4096,Ap=1,Tn=class extends Error{code;constructor(n,t){super(t),this.name="TablePaginationError",this.code=n;}};function hd(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0}))}function _p(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function zp(e,n,t,r,o){let a=_p(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 f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){l=f.box,d=f.lines,s=u.box;break}if(l)break}if(!l)continue;let c=s??Object.freeze({x:i.cellOriginX,y:t,width:i.cellContentWidth,height:r});a(Wr({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 bS(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"||In(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,Wr({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 xS(e,n){let t=_p(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)zp(n,i,l,s,e);else if(r)for(let d of n)r(d);n.length=0;}}}}function Ei(e,n,t){let r=0;for(let o=n;o<t&&o<e.length;o+=1)r+=e[o];return r}function yd(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:yd(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=>Ka(o,0,n))}:{}}))})}function SS(e,n,t,r,o,a,i){let l=e.id,s=o.listItems?.get(l),{props:d,indent:c,available:u,alignment:f,spacing:p,lineSpacing:m,bottomBorder:b,borders:h,shading:y,inheritedRunProperties:x,markRunProperties:I,tabStops:S,tabStopsCacheToken:_}=Xo(e,t,o.styleCascade,s,i?.tableCellStyle,true),F=To(S,o.defaultTabStopPt),A=F===S?_:Zt(F),C=Pi(s,c,o.measurer,F,u),v=o.pageExclusionZones?.()??Object.freeze([]),T=o.paragraphOrderIndex?.(l)??Number.MAX_SAFE_INTEGER,g=o.paragraphOrderIndex?cf(v,T,ee=>o.paragraphOrderIndex?.(ee)):v,z=df(g,n,0,{left:0,right:c.left+u+c.right}),G=Jn(z),E=G?`${r.toFixed(3)}|${G}`:"",R=er({paragraph:e,properties:[...d,...x,...I,{localName:"tabStops",attributes:{token:A}},...s?[{localName:"list",attributes:{token:s.cacheToken}}]:[]],width:u,producer:o.producer,...o.drawingTokenForParagraph?.(e)?{drawingToken:o.drawingTokenForParagraph(e)}:o.drawingLayoutToken?{drawingToken:o.drawingLayoutToken}:{},...E?{exclusionToken:E}:{}}),B=ri(e,l,c.left,u,o.measurer,o.cache,o.cache?R:null,x,F,o.pageContext,o.styleCascade?(ee,ne)=>ht(ee,ne,o.styleCascade):void 0,{lineSpacing:m,firstLineOffset:C,marginExtent:{left:0,right:c.left+u+c.right},...o.projectLink?{projectLink:o.projectLink}:{},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)}),...z.length>0?{pageExclusionZones:z}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:I}),k=i?.lineStart??0,M=i?.fragmentIndex??0,L=i?.maxBottom??Number.POSITIVE_INFINITY,H=i?.includeAfter??true,N=i?.includeBottomBorder??true,V=k===0?Lr(p.before,a):0,j=n+c.left,Y=k===0?Tt(h.top):0,$=[],U=r+V+Y,fe=k,be=false;for(let ee=k;ee<B.length;ee+=1){let ne=B[ee],O=ee===B.length-1,w=O&&N&&b?Tt(b):0,X=O&&H?p.after:0,J=z.length>0?gt(U,ne.height,z):ne.exclusionSkipBefore??0;if(U+J+ne.height+w+X>L+.001)break;U+=J;let ue=n+c.left+(ee===0?C:0),Be=Math.max(1,u-(ee===0?C:0)),ye=ne.spans.map(we=>({...we,range:{...we.range,paragraphId:l},box:{...we.box,x:we.box.x+n,y:U}})),Ze=ni(ye,o.measurer,ue,Be,f,O,f==="center"||f==="right"?ne.width:void 0),_e=ye.length>0&&Ze.length>0?Ze[0].box.x-ye[0].box.x:f!=="left"&&f!=="both"?(()=>{let we=Be-ne.width;return we<=0?0:f==="center"?we/2:we})():0,Qe=Object.freeze({x:n,y:r,width:t,height:Math.max(0,L-r)}),en=ti(ne.drawings.map(we=>Ua(Object.freeze({...we,paragraphId:l,x:n+we.x,advanceStart:n+we.advanceStart,advanceEnd:n+we.advanceEnd,y:U+we.y,paintBounds:Object.freeze({...we.paintBounds,x:n+we.paintBounds.x,y:U+we.paintBounds.y}),hitBounds:Object.freeze({...we.hitBounds,x:n+we.hitBounds.x,y:U+we.hitBounds.y})}),Qe)),_e);$.push({id:o.nextLineId(),range:{paragraphId:l,start:ne.start,end:ne.end},spans:Ze,...en.length>0?{drawings:en}:{},box:{x:n+c.left,y:U,width:u,height:ne.height},contentX:Ze[0]?.box.x??ue+_e,baseline:ne.baseline,leading:ne.leading,trailingSpacing:ne.trailingSpacing,...ne.deletedRanges?{deletedRanges:ne.deletedRanges}:{}}),U+=ne.height,fe=ee+1,be=true;}if(!be)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:k,complete:false,fitted:false};let ce=fe>=B.length,Ie=$[0].box.y,ve=U,he=[],pe,xe=Ie,Te=ve,He=h.left?fn(h.left):0,an=h.right?fn(h.right):0,rn=h.left?j-h.left.spacePt-He:j,Me=h.right?j+u+h.right.spacePt+an:j+u,Qn=Math.max(Me-rn,0);if(Y>0&&h.top){let ee=fn(h.top),ne=Ie-h.top.spacePt-ee;he.push({side:"top",edge:h.top,box:{x:rn,y:ne,width:Qn,height:ee}}),xe=ne;}if(ce&&N&&b){let ee=fn(b),ne=ve+b.spacePt,O={x:rn,y:ne,width:Qn,height:ee};pe={edge:b,box:O},he.push({side:"bottom",edge:b,box:O}),Te=ne+ee;}let et=Math.max(Te-xe,0);if(h.left&&he.push({side:"left",edge:h.left,box:{x:j-h.left.spacePt-He,y:xe,width:He,height:et}}),h.right&&he.push({side:"right",edge:h.right,box:{x:j+u+h.right.spacePt,y:xe,width:an,height:et}}),h.bar){let ee=fn(h.bar);he.push({side:"bar",edge:h.bar,box:{x:j-h.bar.spacePt-ee,y:Ie,width:ee,height:Math.max(ve-Ie,0)}});}let Se=ce&&H?p.after:0,on=Te+Se,vn=y===void 0?void 0:h.left||h.right?{x:rn,y:xe,width:Qn,height:Math.max(Te-xe,0)}:Po($,j,u),q=k===0?Ii(s,o.measurer,$[0]?{y:$[0].box.y,height:$[0].box.height}:void 0,n):void 0,_n={kind:"paragraph",id:`${l}#f${M}`,paragraphId:l,fragmentIndex:M,range:{paragraphId:l,start:$[0].range.start,end:$[$.length-1].range.end},props:d,spacing:{before:V,after:Se},indent:c,...pe?{bottomBorder:pe}:{},...he.length>0?{borders:he}:{},...y===void 0?{}:{shading:y},...vn===void 0?{}:{shadingBox:vn},...q?{marker:q}:{},lines:$,box:{x:j,y:r,width:u,height:on-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let ee=Object.freeze({x:n,y:r,width:t,height:Math.max(0,L-r)}),ne=_n.box,O={paragraph:e,paragraphId:l,paragraphBox:ne,lines:$};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...O,cellOriginX:n,cellContentWidth:t}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(Wr({paragraph:e,paragraphId:l,paragraphBox:ne,lines:$,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(ne)??ne,cellBox:ee,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{}}));}return {fragment:_n,bottom:on,spaceAfter:Se,nextLineIndex:fe,complete:ce,fitted:true}}function ar(e,n,t,r,o,a){let i=Hp(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 Hp(e,n,t,r,o,a,i,l,s){let d=[],c=r,u=l.previousSpaceAfter,f=l.blockIndex,p=l.lineIndex,m=l.paragraphFragmentIndex,b=false,h=false;for(;f<e.length;){let y=e[f];if(y.kind==="table"){p!==0&&(p=0),u=0;let I=PS(y,n,t,c,a+1,i);if(!I){f+=1;continue}if(I.bottom>o+.001){h=!b;break}d.push(I.fragment),c=I.bottom,b=true,f+=1,p=0;continue}if(y.kind!=="paragraph"){f+=1,p=0;continue}let x=SS(y,n,Math.max(1,t-n),c,i,u,{lineStart:p,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,b=true,x.complete)u=x.spaceAfter,f+=1,p=0,m=0;else return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:x.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:m+1},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:d,bottom:c,cursor:{blockIndex:f,lineIndex:p,previousSpaceAfter:u,paragraphFragmentIndex:m},complete:f>=e.length,fitted:b,nestedSplitBlocked:h}}function jp(e,n){return {top:e.top+rr(n.top),right:e.right+rr(n.right),bottom:e.bottom+rr(n.bottom),left:e.left+rr(n.left)}}function wS(e,n,t){return {top:n?{state:"none"}:e.top,left:e.left,bottom:t?{state:"none"}:e.bottom,right:e.right}}function Gp(e,n,t){return !n&&!t?e:{...e,cells:e.cells.map(r=>({...r,borders:wS(r.borders,n,t)}))}}function aa(e,n,t,r,o,a,i,l=0){let s=bd(e,n,t,r,Number.POSITIVE_INFINITY,o,false,a,i,hd(e),l);return {record:s.record,bottom:s.bottom}}function bd(e,n,t,r,o,a,i,l,s,d,c=0){let u=Ei(n,0,n.length),f=Number.isFinite(c)&&c>0?c/2:0,p=s.measurer.lineMetrics(Yn).height,m=e.height,b=m.rule==="exact"?m.valuePt:void 0,h=m.rule==="atLeast"?m.valuePt:void 0,y=[],{rowDeps:x,flushDeferred:I}=xS(s,y),S=b===void 0?o:Math.min(o,r+Math.max(0,b)),_=[],F=false,A=false,C=r;for(let E=0;E<e.cells.length;E+=1){let R=e.cells[E],B=d[E]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0},k=R.gridSpan,M=R.gridColumn,L=t+Ei(n,0,M),H=Ei(n,M,Math.min(M+k,n.length))||u,N=Math.min(f,Math.max((H-Ap)/2,0)),V=L+N,j=Math.max(H-2*N,Ap),Y=jp(R.margins,R.borders),$=i?rr(R.borders.top):Y.top,U=r+$,fe=S-Y.bottom,be=[],ce=U,Ie=B,ve=true,he=false,pe=false;if(!R.vMergeContinue)if(fe<U+.001)ve=B.blockIndex>=R.blocks.length;else {let Te=Hp(R.blocks,V+Y.left,V+j-Y.right,U,fe,l,x,B,R.styleFormatting);be=Te.blocks,ce=Te.bottom,Ie=Te.cursor,ve=Te.complete,he=Te.fitted,pe=Te.nestedSplitBlocked,he&&(F=true),pe&&(A=true);}let xe=Math.min(S,he?ce+Y.bottom:r+$+p+Y.bottom);xe>C&&(C=xe),_.push({cell:R,x:V,width:j,gridColumn:M,blocks:be,contentTop:U,contentBottom:ce,insets:{...Y,top:$},nextCursor:Ie,complete:R.vMergeContinue?true:ve,fitted:he,nestedSplitBlocked:pe});}C=Math.min(S,Math.max(C,r));for(let E of _){let R=E.fitted?E.contentBottom+E.insets.bottom:r+E.insets.top+p+E.insets.bottom;R>C&&R<=S+.001&&(C=R);}C=Math.min(S,C);let v=false;if(b!==void 0){let E=r+b;E<=o+.001?(C=E,v=true):C=Math.min(o,C);}else if(h!==void 0){let E=r+h;_.every(B=>B.complete)&&E<=o+.001&&E>C&&(C=E);}C=Math.min(o,C);let T=Math.max(0,C-r),g=_.map(E=>{let R=E.blocks,B=v?true:E.complete;if(!E.cell.vMergeContinue&&B&&E.cell.vAlign!=="top"&&R.length>0){let k=E.contentBottom-E.contentTop,M=T-E.insets.top-E.insets.bottom-k;if(M>0){let L=E.cell.vAlign==="center"?M/2:M;R=yd(R,L);}}return {id:E.cell.id,gridColumn:E.gridColumn,...E.cell.gridColumnId?{gridColumnId:E.cell.gridColumnId}:{},gridSpan:E.cell.gridSpan,vMergeContinue:E.cell.vMergeContinue,...E.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...E.cell.shading===void 0?{}:{shading:E.cell.shading},blocks:R,box:{x:E.x,y:r,width:E.width,height:T}}}),z=v||_.every(E=>E.complete)?null:_.map(E=>E.nextCursor),G=v||_.every(E=>E.complete);return I(g,r,T),{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:g,box:{x:t,y:r,width:u,height:T}},bottom:C,remainder:G?null:z,fitted:F||e.cells.every(E=>E.vMergeContinue)||v,nestedSplitBlocked:A}}function RS(e){return {...e,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function xd(e,n,t,r,o,a=0){let i=0,l={...RS(o),pageExclusionZones:void 0,nextLineId:()=>`probe-${i++}`};return aa(e,n,t,0,false,r,l,a).record.box.height}function Sd(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=gd(e,a,o,{pageFragment:true}),c=e.map((h,y)=>({...h,cells:h.cells.map(x=>{let I=d.get(x.id);if(x.vMergeContinue&&I===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let S=x.vMergeContinue,_=I??1,F=x.box.height;if(_>1){let T=e[y+_-1];F=T.box.y+T.box.height-x.box.y;}let A=s.get(x.id),C=x.blocks;if(A&&A.vAlign!=="top"&&C.length>0){let T=jp(A.margins,A.borders),g=Number.POSITIVE_INFINITY,z=Number.NEGATIVE_INFINITY;for(let G of C)g=Math.min(g,G.box.y),z=Math.max(z,G.box.y+G.box.height);if(Number.isFinite(g)&&Number.isFinite(z)){let G=F-T.top-T.bottom-(z-g),R=x.box.y+T.top+(G>0?A.vAlign==="center"?G/2:G:0)-g;if(Math.abs(R)>.001){C=yd(C,R);for(let B of C)B.kind==="paragraph"&&i?.(B.paragraphId,R);}}}let v=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:F});return A&&l&&(_>1||A.vAlign!=="top"&&C.length>0)&&bS(C,A.blocks,v,l),{...x,...S?{vMergeContinue:false,paintInert:false}:{},rowSpan:_,blocks:C,box:{...x.box,height:F}}})})),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}})),f=n.columnWidthsPt.length,p=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})))},b=Xs(u,p,f,m,void 0,r);return c.map((h,y)=>({...h,cells:h.cells.map((x,I)=>{let S=b[y][I];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:S}})}))}function PS(e,n,t,r,o,a){if(o>=Si)return null;let i=Math.max(1,t-n),l=Zr(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+Jo(l,i),u=[],f=r;for(let h of l.rows){let y=aa(h,l.columnWidthsPt,c,f,false,o,d,l.cellSpacingPt);u.push(y.record),f=y.bottom;}let p=Sd(u,l,l.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let h of s)for(let y of p)if(y.cells.some(I=>I.blocks.some(S=>S.kind==="paragraph"&&S.paragraphId===h.paragraphId))){zp([h],y.cells,y.box.y,y.box.height,a);break}let m=Ei(l.columnWidthsPt,0,l.columnWidthsPt.length),b=new Map;return {fragment:Li({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:p,box:{x:c,y:r,width:m,height:f-r}},l.columnWidthsPt,o,b),bottom:f}}function IS(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 wd(e,n){return !(e.kind==="paragraph"&&Yo(e,n))}function xt(e,n="all-markup"){let t=IS(e);return t?chunkQIFQTG57_cjs.Nb(t.children,0,r=>wd(r,n)):[]}function Ni(e,n="all-markup"){return e.kind!=="note"?[]:chunkQIFQTG57_cjs.Nb(e.children,0,t=>wd(t,n))}function Wp(e,n="all-markup"){return e.kind==="textValue"?[]:chunkQIFQTG57_cjs.Nb(e.children,0,t=>wd(t,n))}function $p(e){let n=e.picture;return n?.embeddedRelationshipId?`embed:${e.ownerPartName}:${n.embeddedRelationshipId}`:n?.linkedRelationshipId?`link:${e.ownerPartName}:${n.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}function Xp(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>chunkQIFQTG57_cjs.Xa.maxVisitedElements||o.depth>chunkQIFQTG57_cjs.Xa.maxDrawingDepth)return null;let{node:a}=o;if(a.kind==="drawing"||chunkQIFQTG57_cjs._a(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 Rd(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 Fi(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 TS=1;function Pd(e,n){if(e.kind==="drawing"||chunkQIFQTG57_cjs._a(e)){n.push(e.id);return}if("children"in e)for(let t of e.children)Pd(t,n);}function vS(e){if(e.kind!=="paragraph")return [];let n=[];for(let t of e.children)Pd(t,n);return Object.freeze(n)}function BS(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,f=new Map,p=new WeakMap,m=new WeakMap,b=0,h=chunkQIFQTG57_cjs.Za(r,n),y=chunkQIFQTG57_cjs.cb(t,{resolveRelationship:h}),x=Xp(t),I=(v,T)=>{if(s||u.has(T))return;u.add(T);let g=d;o.resolveForProjection(v).then(z=>{s||g!==d||(c.set(T,z),z.kind==="ready"&&i(z.validatedHandle),b+=1,f.set(T,b),a(n));}).catch(()=>{s||g!==d||(c.set(T,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),b+=1,f.set(T,b),a(n));}).finally(()=>{u.delete(T);});},S=v=>{let T=$p(v),g=c.get(T);if(g)return g;let z=v.picture?.linkedRelationshipId;if(z){let E=o.resolveLinked(n,z);return c.set(T,E),b+=1,f.set(T,b),E}let G=Object.freeze({kind:"pending",resourceKey:T});return c.set(T,G),b+=1,f.set(T,b),I(v,T),G},_=v=>y.get(v)??null,F=Object.freeze({ownerPartName:n,projectionForAtom:_,project:v=>_(v.id),resourceOf:S}),A=v=>{let T=m.get(v);if(T)return T;let g=vS(v),z=null,G=(R,B)=>{if(!(B>=TS))for(let k of R){let M=y.get(k)?.textboxStory;if(!M)continue;let L=[];if(Pd(M.content,L),L.length!==0){z||(z=[...g]);for(let H of L)z.push(H);G(L,B+1);}}};G(g,0);let E=z??g;return m.set(v,E),E};return {context:F,cacheTokenForPart:()=>`${n}|${b}|${d}|${y.size}`,drawingTokenForParagraph:v=>{let T=p.get(v);if(T?.resourceEpoch===b)return T.token;let g=A(v);if(g.length===0)return p.set(v,{resourceEpoch:b,token:""}),"";let G=g.map(E=>{let R=y.get(E);if(!R)return `${E}:refused`;let B=S(R);return [E,Rd(R),Fi(B),String(f.get($p(R))??0)].join("|")}).sort().join(";");return p.set(v,{resourceEpoch:b,token:G}),G},isCompatibleWith:(v,T)=>{if(v===t)return true;let g=Xp(v);if(x&&g&&x.size===g.size){let G=true;for(let[E,R]of x)if(g.get(E)!==R){G=false;break}if(G)return true}let z=chunkQIFQTG57_cjs.cb(v,{resolveRelationship:chunkQIFQTG57_cjs.Za(T,n)});if(z.size!==y.size)return false;for(let[G,E]of y){let R=z.get(G);if(!R||Rd(R)!==Rd(E))return false}return true},dispose:()=>{s=true,d+=1;for(let v of c.values())v.kind==="ready"&&l(v.validatedHandle);c.clear(),u.clear(),f.clear();}}}function kI(e){let n=e.session.packageRevision(),t=e.session.currentPackage(),r=e.resourceLookup??chunkQIFQTG57_cjs.pb(t,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new Map,l=new Map,s=p=>{i.set(p.resourceKey,p);let m=chunkQIFQTG57_cjs.eb(p);m&&l.set(p.resourceKey,m);},d=p=>{i.delete(p.resourceKey);let m=l.get(p.resourceKey);m&&(chunkQIFQTG57_cjs.fb(m),l.delete(p.resourceKey));},c=(p,m)=>{let h=m.currentPackage().parts.get(p)??a.get(p);if(h)return h;if(p===m.part().name)return m.part();throw new Error(`Missing inline drawing part ${p}`)},u=(p,m)=>{let b=c(p,m);a.set(p,b);let h=o.get(p);return h||(h=BS({ownerPartName:p,part:b,pkg:m.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:s,forgetReadyHandle:d}),o.set(p,h),h)},f=p=>{let m=p.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===p.part().name?p.part():void 0);if(x&&y.isCompatibleWith(x,m)){a.set(h,x);continue}y.dispose(),o.delete(h),a.delete(h);}n=p.packageRevision(),t=m;return}for(let h of o.values())h.dispose();o.clear(),a.clear();for(let h of l.values())chunkQIFQTG57_cjs.fb(h);l.clear(),i.clear(),e.resourceLookup||r.dispose(),n=p.packageRevision(),t=m,r=e.resourceLookup??chunkQIFQTG57_cjs.pb(m,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return u(e.session.part().name,e.session).context},contextForPart(p){return u(p,e.session).context},cacheTokenForPart(p){return u(p,e.session).cacheTokenForPart()},drawingTokenForParagraph(p,m){return u(m,e.session).drawingTokenForParagraph(p)},mintValidatedBytes(p,m){let b=i.get(p.resourceKey);return !b||b.contentId!==p.contentId?null:chunkQIFQTG57_cjs.db(p,m)},sync(p){p.packageRevision()!==n&&f(p);},dispose(){for(let p of o.values())p.dispose();o.clear(),a.clear();for(let p of l.values())chunkQIFQTG57_cjs.fb(p);l.clear(),i.clear(),e.resourceLookup||r.dispose();}})}function Vp(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 OS(e){let n=t=>{if(t.kind==="textValue"||chunkQIFQTG57_cjs.bc(t)||chunkQIFQTG57_cjs.$b(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 Zp(e,n){for(let t of n.resultParagraphIds){let r=chunkQIFQTG57_cjs.Ea(e,t);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&OS(r))return true}return false}var Yp=new WeakMap,Kp=new WeakMap,Up=new WeakMap;function Id(e){let n=Yp.get(e);if(n)return n;let t=new Set;for(let r of chunkQIFQTG57_cjs.vc(e))t.add(r.beginParagraphId),t.add(r.endParagraphId);return Yp.set(e,t),t}function Td(e){let n=Kp.get(e);if(n)return n;let t=new Set;for(let r of chunkQIFQTG57_cjs.vc(e))Zp(e,r)||t.add(r.beginParagraphId);return Kp.set(e,t),t}function vd(e){let n=Up.get(e);if(n)return n;let t=new Set;for(let r of chunkQIFQTG57_cjs.vc(e))if(!Zp(e,r))for(let o of r.resultParagraphIds)t.add(o);return Up.set(e,t),t}var Ai=4096,Nt=20,Dn=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 Bd(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 ir(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 Jp(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 Ve=(e,n)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let t of e.attributes??[])if(t.localName===n)return t.value}},lr=(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 qp(e,n,t){let r=Ve(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 CS(e){if(!e)return 1;let n=Ve(e,"num");return !n||!/^\d{1,7}$/.test(n)?1:Math.max(1,Math.min(12,Number(n)))}function kS(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:Bd(Ve(o,"w"),1,31680),gapTwips:a===n-1?0:Jp(Ve(o,"space"),t)});}return r}function LS(e){let n=e?lr(e,"type"):void 0,t=n?Ve(n,"val"):void 0;return t==="continuous"||t==="evenPage"||t==="oddPage"||t==="nextColumn"?t:"nextPage"}var ES=new Set(["hyphen","period","colon","emDash","enDash"]);function Qp(e){let n=lr(e,"pgNumType");if(!n||n.kind==="textValue")return;let t={},r=Ve(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=Ve(n,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(t.fmt=o);let a=Ve(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=Ve(n,"chapSep");return i!==void 0&&ES.has(i)&&(t.chapSep=i),t}function Di(e){if(!e)return Dn;let n=lr(e,"pgSz"),t=lr(e,"pgMar"),r=lr(e,"cols"),o=Dn,a=n?Ve(n,"orient"):void 0,i=n?Bd(Ve(n,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,l=n?Bd(Ve(n,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,s=Qp(e),d=CS(r),c=r?Jp(Ve(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?qp(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:l},margins:{topTwips:t?ir(Ve(t,"top"),1440):o.margins.topTwips,rightTwips:t?ir(Ve(t,"right"),1440):o.margins.rightTwips,bottomTwips:t?ir(Ve(t,"bottom"),1440):o.margins.bottomTwips,leftTwips:t?ir(Ve(t,"left"),1440):o.margins.leftTwips,headerTwips:t?ir(Ve(t,"header"),720):o.margins.headerTwips,footerTwips:t?ir(Ve(t,"footer"),720):o.margins.footerTwips,gutterTwips:t?ir(Ve(t,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?qp(r,"sep",false):false,definitions:u?[]:kS(r,d,c)},landscape:a==="landscape"||i>l,titlePage:chunkQIFQTG57_cjs.sa(e,"titlePg"),breakType:LS(e),...s!==void 0?{pageNumbering:s}:{}}}function MS(e){let n=t=>{if(t.kind!=="textValue"){if(t.kind==="body")return lr(t,"sectPr");for(let r of t.children??[]){let o=n(r);if(o)return o}}};return n(e.root)}function _i(e){let n=e.children.find(r=>r.kind==="paragraphProperties");if(!n)return;let t=lr(n,"sectPr");return t&&t.kind!=="textValue"?t:void 0}function NS(e){let n=zi(e);return n[n.length-1]?.properties??Dn}function zi(e,n="all-markup"){return em(e,n).sections}function em(e,n="all-markup"){let t=xt(e,n),r=[],o=0,a=false;for(let l=0;l<t.length;l+=1){let s=t[l];if(s.kind!=="paragraph")continue;let d=_i(s);if(d){if(r.length>=Ai){a=true;continue}r.push({index:r.length,properties:Di(d),blockStart:o,blockEndExclusive:l+1}),o=l+1;}}if(a){if(r.length>0){let l=r[r.length-1];r[r.length-1]={...l,blockEndExclusive:t.length};}return {sections:r,truncated:true}}let i=MS(e);if(o<t.length||r.length===0){if(r.length>=Ai){let l=r[r.length-1];return r[r.length-1]={...l,blockEndExclusive:t.length},{sections:r,truncated:true}}r.push({index:r.length,properties:Di(i),blockStart:o,blockEndExclusive:t.length});}else if(i){if(r.length>=Ai)return {sections:r,truncated:true};r.push({index:r.length,properties:Di(i),blockStart:o,blockEndExclusive:t.length});}return {sections:r,truncated:a}}function sr(e){let n=e.pageSize.widthTwips/Nt,t=e.pageSize.heightTwips/Nt,r=(e.margins.leftTwips+e.margins.gutterTwips)/Nt,o=e.margins.rightTwips/Nt,a=e.margins.topTwips/Nt,i=e.margins.bottomTwips/Nt;return n-r-o<=0||t-a-i<=0?bo:{width:n,height:t,margin:{top:a,right:o,bottom:i,left:r},headerDistance:Math.max(0,e.margins.headerTwips)/Nt,footerDistance:Math.max(0,e.margins.footerTwips)/Nt}}function Od(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(p=>Math.max(1,p.widthTwips/20)),l=o.slice(0,-1).map(p=>Math.max(0,p.gapTwips/20));let c=l.reduce((p,m)=>p+m,0),u=Math.max(r*1,t-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(1,m*p));}}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 f=Math.max(1,(t-l.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let s=[],d=0;for(let c=0;c<r;c+=1)s.push(d),d+=i[c]+(l[c]??0);return {count:r,widths:i,gaps:l,lefts:s,separator:e.separator===true&&r>1}}function FS(e,n,t){return ia(e,n,()=>t)}function ia(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:ut(s.numFmt,d),displayNumber:d});}return r}function nm(e){let n=new Map;for(let t of e)n.set(t.noteId,t.mark);return n}var Qr=chunkQIFQTG57_cjs.sd,la=512,Cd=6,AS=1/3;function tm(e,n){return `note-${e}-${n}`}function DS(e){if(!e)return [];let n=[];for(let t of chunkQIFQTG57_cjs.ud(e.root)){if(n.length>=Qr)break;chunkQIFQTG57_cjs.ld(t)&&n.push(t);}return n}function rm(e,n){if(e){for(let t of chunkQIFQTG57_cjs.ud(e.root))if(chunkQIFQTG57_cjs.kd(t)===n)return t}}function kd(e,n,t){let r=chunkQIFQTG57_cjs.id(e),o=chunkQIFQTG57_cjs.jd(e);if(!r||o===null)return null;let a=chunkQIFQTG57_cjs.$c(r,o),i=Ni(e),l=tm(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},f=t.ownerPartName?t.drawingsForPart?.(t.ownerPartName):void 0,p=ar(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.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...f?{inlineDrawingLayout:f.inlineDrawingLayout,...f.drawingTokenForParagraph?{drawingTokenForParagraph:f.drawingTokenForParagraph}:{}}:{}}),m=p.blocks,b=p.bottom,h;if(m.length>la){m=m.slice(0,la);let y=m[m.length-1];b=y?y.box.y+y.box.height:0,h="note-fragment-limit";}if(b>c){let y=[],x=0;for(let I of m){let S=I.box.y+I.box.height;if(S>c+.001&&y.length>0)break;y.push(I),x=S;}m=y,b=x,h=h??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkQIFQTG57_cjs.kd(e),fragments:m,flowHeight:b,...h?{fallbackReason:h}:{}}}function Hi(e,n,t,r){if(!e)return null;let o=chunkQIFQTG57_cjs.vd(e.root,n);return o?kd(o,t,{...r,ownerPartName:e.name}):null}function om(e,n){return "single"}function am(e){let n=Ni(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(st(r)).length>0||!_S(t))return false}return true}function _S(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="paragraphProperties"){if(n.kind==="run"){if(!zS(n))return false;continue}return false}return true}function zS(e){for(let n of e.children)if(n.kind!=="textValue"&&n.kind!=="runProperties"&&!(chunkQIFQTG57_cjs.gd(n)||chunkQIFQTG57_cjs.hd(n)||chunkQIFQTG57_cjs.fd(n))){if(n.kind==="text"){if(n.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function sa(e,n,t,r,o,a){let i=om(),l=rm(e,n);if(l){if(am(l))return {kind:n,fragments:[],flowHeight:Cd,synthetic:false,ruleStyle:i};let s=kd(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:Cd,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:n,fragments:s.fragments,flowHeight:s.flowHeight,synthetic:false}}}return {kind:n,fragments:[],flowHeight:Cd,synthetic:true,ruleStyle:i}}function im(e,n){let t=Math.max(1,e*AS);return {x:0,y:Math.max(0,(n-.75)/2),width:t,height:.75}}function ji(e,n,t,r){if(e.ruleStyle!==void 0||e.synthetic){let o=im(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 Ed=8,um=4096,fm=256,pm=14,Md=12;function Nd(e,n){return n>=e.range.start&&n<e.range.end}function mm(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 Ad(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 Wi(e,n,t){let r=mm(e.fragments);if(!t)return n.filter(i=>r.some(l=>l.paragraphId===i.paragraphId&&Nd(l,i.atomOffset)));let o=[],a=new Set;for(let i of r){let l=t.get(i.paragraphId);if(l)for(let s of l)a.has(s)||Nd(i,s.atomOffset)&&(a.add(s),o.push(s));}return o}function gm(){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=sa(n,t,r,i,o,a);return e.set(d,u),u.fallbackReason&&l.push(u.fallbackReason),u}}}function HS(e,n){let t=[];for(let r of e){if(t.length>=Qr)break;t.push({...r,sectionIndex:n.get(r.paragraphId)??0});}return t}function eo(e,n){return e.footnotePropsBySection[n]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Dd(e,n){return e.endnotePropsBySection[n]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function hm(e,n){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,defaultTabStopPt:e.defaultTabStopPt,noteMarks:n,drawingsForPart:e.drawingsForPart}}function jS(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 lm(e,n){return n===0?[...e]:e.map(t=>t.kind==="paragraph"?jS(t,n):{...t,box:{...t.box,y:t.box.y+n}})}function GS(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 b=e.lines[t];if(b.box.y+b.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(b=>b.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,l-i)},...s&&s.length>0?{borders:s}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,l-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(b=>b.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function WS(e){let n=0;for(let t of e)n=Math.max(n,t.box.y+t.box.height);return n}function $i(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<la;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=n+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=GS(f,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 b=t?.fullContentHeight??n,y=f.lines[0]?.box.height??f.box.height;if(r.length===0&&n>=b-.001&&y>b+.001){t?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),I=x[0]?.box.y??0;return {head:[],headHeight:0,tail:lm(x,-I),tailHeight:Math.max(0,e.flowHeight-I)}}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=lm(l,-s),c=WS(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}function $S(e,n){let t="FootnoteReference";if(!n)return {...Yn,verticalAlign:"superscript"};let r=ht([],[{localName:"rStyle",attributes:{val:t}}],n);return dn(r,n.themeFonts)}function XS(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=eo(n,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<Md;p+=1){let m=ut(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=Dd(n,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<Md;p+=1){let m=ut(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let l=$S("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 ym(e,n,t){let r=ia("footnote",e,l=>eo(t,l)),o=ia("endnote",n,l=>Dd(t,l)),a=new Map;for(let l of r)a.set(Qt("footnote",l.noteId),l.mark);for(let l of o)a.set(Qt("endnote",l.noteId),l.mark);let i=XS(a,t,e,n);return {marks:a,...i?{reservedMarkText:i}:{}}}function Xi(e){let n=0;for(let t of e.fragments)n=Math.max(n,t.box.y+t.box.height);return n}function Fd(e){let{footnotes:n,endnotes:t,noteStream:r,...o}=e;return o}function VS(e,n){if(n.marks.size===0)return e;let t=false,r=e.pages.map(o=>{let a=bm(o.fragments,n);return a===o.fragments?o:(t=true,{...o,fragments:a})});return t?{revision:e.revision,pages:r}:e}function bm(e,n){let t=false,r=e.map(o=>{if(o.kind==="paragraph"){let l=YS(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=bm(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 YS(e,n){let t=false,r=e.lines.map(o=>{let a=KS(o,n);return a!==o&&(t=true),a});return t?{...e,lines:r}:e}function KS(e,n){let t=false,r=e.spans.map(o=>{let a=US(o,n);return a!==o&&(t=true),a});return t?{...e,spans:r}:e}function US(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 ZS(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function xm(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function qS(e){for(let n=e.length-1;n>=0;n-=1)if(xm(e[n]))return n;return Math.max(0,e.length-1)}function _d(e,n,t,r,o,a,i,l){let s=new Map(a),d=n.filter(R=>R.noteKind==="footnote"),c=e.contentBox.width,u=hm(t,r),f=[],p=0,m=um,b=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),y=l?.separatorCache?l.separatorCache.get(t.footnotesPart,b,c,"footnote",h,u,i):(()=>{let R=sa(t.footnotesPart,b,c,u,"footnote",h);return R.fallbackReason&&i.push(R.fallbackReason),R})(),x=Math.max(0,e.contentBox.height-Xi(e)-y.flowHeight),I=Math.max(0,e.contentBox.height-pm-y.flowHeight),S=l?.reserveColumnBudget?I:x,F={fullContentHeight:Math.max(0,e.contentBox.height-y.flowHeight),reasons:i};for(let[R,B]of a){let k=R.match(/^(footnote|endnote):(-?\d+)$/);if(!k||k[1]!=="footnote")continue;let M=Number(k[2]),L=Math.max(0,S-p);if(B.height<=L+.001)f.push({noteKind:"footnote",noteId:M,scopeId:R,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:B.height},fragments:B.fragments}),p+=B.height,s.delete(R);else {let H=$i({fragments:B.fragments,flowHeight:B.height},L,F);H.head.length>0&&(f.push({noteKind:"footnote",noteId:M,scopeId:R,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:H.headHeight},fragments:H.head}),p+=H.headHeight),H.tail.length>0?s.set(R,{fragments:H.tail,height:H.tailHeight,mark:null}):s.delete(R);}}for(let R of d){if(f.length>=Qr){i.push("note-count-limit");break}let B=Hi(t.footnotesPart,R.noteId,c,u);if(!B){i.push("missing-note-body");continue}let k=r.marks.get(Qt("footnote",R.noteId))??null,M=Math.max(0,S-p);if(m-=B.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(B.flowHeight<=M+.001)f.push({noteKind:"footnote",noteId:R.noteId,scopeId:B.scopeId,mark:R.customMarkFollows?null:k,box:{x:e.contentBox.x,y:0,width:c,height:B.flowHeight},fragments:B.fragments}),p+=B.flowHeight;else {let L=$i(B,M,F);L.head.length>0&&(f.push({noteKind:"footnote",noteId:R.noteId,scopeId:B.scopeId,mark:R.customMarkFollows?null:k,box:{x:e.contentBox.x,y:0,width:c,height:L.headHeight},fragments:L.head}),p+=L.headHeight),L.tail.length>0&&s.set(B.scopeId,{fragments:L.tail,height:L.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:s};let A=y.flowHeight,C=A+p,v=Xi(e),T;o==="beneathText"?T=e.contentBox.y+v:(T=e.contentBox.y+e.contentBox.height-C,T=Math.max(T,e.contentBox.y+v));let g=T+A,z=f.map(R=>{let B={...R,box:{...R.box,y:g}};return g+=R.box.height,B}),G=ji(y,e.contentBox.x,c,T);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:T,width:c,height:C},separator:{kind:b,box:G,fragments:y.fragments,synthetic:y.synthetic,...y.ruleStyle!==void 0?{ruleStyle:y.ruleStyle}:{}},notes:z},nextCarry:s}}function Sm(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 zd(e,n){let t=new Set;for(let r of mm(e.fragments))t.add(n.get(r.paragraphId)??0);return [...t].sort((r,o)=>r-o)}function wm(e,n,t){for(let r=e.length-1;r>=0;r-=1)if(zd(e[r],t).includes(n))return r;return Math.max(0,e.length-1)}function JS(e,n,t){let r=wm(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=zd(a,t);if(i.length!==0&&!i.includes(n))return o}return e.length}function QS(e){return e.map((n,t)=>n.index===t&&n.id===`page-${t}`?n:{...n,id:`page-${t}`,index:t})}function e0(e){let n=QS(e);return [...Ct({revision:0,pages:n}).pages]}function n0(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=hm(t,r),f=l?.separatorKind??"separator",p=M=>M==="footnote"?t.footnotesPart:t.endnotesPart,m=t.endnotesPart??t.footnotesPart,b=Math.max(0,e.contentBox.height),h=l?.separatorCache?l.separatorCache.get(m,f,c,"endnote",b,u,i):(()=>{let M=sa(m,f,c,u,"endnote",b);return M.fallbackReason&&i.push(M.fallbackReason),M})(),y=h.flowHeight,x=Xi(e),I=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,S=ZS(e),_=Math.max(0,S-I-y),A={fullContentHeight:Math.max(0,S-y),reasons:i},C=[],v=0,T=um;for(let[M,L]of a){let H=M.match(/^(footnote|endnote):(-?\d+)$/);if(!H)continue;let N=H[1],V=Number(H[2]),j=Math.max(0,_-v);if(L.height<=j+.001)C.push({noteKind:N,noteId:V,scopeId:M,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:L.height},fragments:L.fragments}),v+=L.height,s.delete(M);else {let Y=$i({fragments:L.fragments,flowHeight:L.height},j,A);Y.head.length>0&&(C.push({noteKind:N,noteId:V,scopeId:M,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:Y.headHeight},fragments:Y.head}),v+=Y.headHeight),Y.tail.length>0?s.set(M,{fragments:Y.tail,height:Y.tailHeight,mark:null}):s.delete(M);}}for(let M=0;M<n.length;M+=1){let L=n[M];if(C.length>=Qr){i.push("note-count-limit"),d.push(...n.slice(M));break}let H=p(L.noteKind),N=Hi(H,L.noteId,c,u);if(!N){i.push("missing-note-body");continue}let V=r.marks.get(Qt(L.noteKind,L.noteId))??null,j=Math.max(0,_-v);if(T-=N.fragments.length,T<0){i.push("note-area-fragment-limit"),d.push(...n.slice(M));break}if(N.flowHeight<=j+.001)C.push({noteKind:L.noteKind,noteId:L.noteId,scopeId:N.scopeId,mark:L.customMarkFollows?null:V,box:{x:e.contentBox.x,y:0,width:c,height:N.flowHeight},fragments:N.fragments}),v+=N.flowHeight;else {let Y=$i(N,j,A);Y.head.length>0&&(C.push({noteKind:L.noteKind,noteId:L.noteId,scopeId:N.scopeId,mark:L.customMarkFollows?null:V,box:{x:e.contentBox.x,y:0,width:c,height:Y.headHeight},fragments:Y.head}),v+=Y.headHeight),Y.tail.length>0&&s.set(N.scopeId,{fragments:Y.tail,height:Y.tailHeight,mark:null}),d.push(...n.slice(M+1));break}}if(C.length===0&&a.size===0)return {area:void 0,nextCarry:s,remainingRefs:d};if(C.length===0)return {area:void 0,nextCarry:s,remainingRefs:d};let g=e.contentBox.y+I,z=g+y,G=C.map(M=>{let L={...M,box:{...M.box,y:z}};return z+=M.box.height,L}),E=ji(h,e.contentBox.x,c,g),R=y+v,B=Math.max(0,S-I),k=Math.min(R,B);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:g,width:c,height:k},separator:{kind:f,box:E,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:G},nextCarry:s,remainingRefs:d}}function t0(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=Sm(d,d.index+1,"footnote-drain"),u=_d(c,[],t,r,"pageBottom",s,o,{separatorCache:i}),f=u.area?.notes.length??0;if(s=u.nextCarry,f===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 r0(e,n,t,r="endnote-overflow"){let o=Sm(t,n,r);return {pages:[...e.slice(0,n),o,...e.slice(n)],pageIndex:n}}function sm(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 dm(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,f=n,p=0,m="separator",b=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(f>=d.length||f>=b){if(l.remaining<=0){i.push("note-overflow-page-limit");break}let F=d[Math.min(Math.max(f,1),d.length)-1]??d[d.length-1],A=Math.min(f,b,d.length),C=r0(d,A,F,"endnote-overflow");d=C.pages,f=C.pageIndex,y&&(b=A+1),p+=1,l.remaining-=1;}let I=d[f];if(!xm(I)){f+=1;continue}let S=n0(I,c,r,o,a,u,i,{separatorKind:m,...x?{separatorCache:x}:{}});u=S.nextCarry,c=S.remainingRefs;let _=S.area?.notes.length??0;if(S.area){let F=d[f];d[f]={...F,endnotes:F.endnotes?{...S.area,notes:[...F.endnotes.notes,...S.area.notes],box:{...S.area.box,y:F.endnotes.box.y,height:F.endnotes.box.height+S.area.box.height}}:S.area};}else {if(u.size===0&&c.length===0)break;if(!S.area&&u.size===0&&c.length>0){f+=1,m="separator";continue}}if(_===0&&(u.size>0||c.length>0)&&I.fragments.length===0&&I.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(u.size>0||c.length>0){m="continuationSeparator",f+=1;continue}break}return (c.length>0||u.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),y?d=sm(d,h,Math.min(b,d.length)):p>0&&(d=sm(d,h,d.length)),d}function Rm(e,n,t,r){let o=new Map,a=[],i=new Map,l=Ad(n),s=gm();for(let c of e.pages){let u=Fd(c),p=Wi(u,n,l).filter(S=>S.noteKind==="footnote"),m=p[0]?.sectionIndex??0,b=eo(t,m);if(b.pos==="sectEnd"||b.pos==="docEnd")continue;let h=Math.max(0,u.contentBox.height-pm),{area:y,nextCarry:x}=_d(u,p,t,r,b.pos,i,a,{reserveColumnBudget:true,separatorCache:s});i=x;let I=Math.min(y?.box.height??0,h);if(I>0){let S=o.get(c.index)??0;o.set(c.index,Math.max(S,I));}}let d=true;for(let c of e.pages){let u=o.get(c.index)??0;if(u<=0)continue;if(Xi(Fd(c))+u>c.contentBox.height+.5){d=false;break}}return {reserves:o,stable:d,reasons:a}}function Pm(e,n,t,r){let o=[...r?.fallbackReasons??[]],a=r?.paragraphSectionIndex??new Map,i={remaining:fm},l=Ad(n),s=gm(),d=[],c=[];for(let x of e.pages)for(let I of Wi(x,n,l)){let S={noteId:I.noteId,sectionIndex:I.sectionIndex,pageIndex:x.index,customMarkFollows:I.customMarkFollows};I.noteKind==="footnote"?d.push(S):c.push(S);}let u=ym(d,c,t),f=new Map,p=new Map,m=[],b=e.pages.map(x=>{let I=Fd(x),S=Wi(x,n,l),_=S.filter(T=>T.noteKind==="footnote"),F=S.filter(T=>T.noteKind==="endnote");for(let T of F)if(Dd(t,T.sectionIndex).pos==="sectEnd"){let z=p.get(T.sectionIndex)??[];z.push(T),p.set(T.sectionIndex,z);}else m.push(T);for(let T of _){let g=eo(t,T.sectionIndex);if(g.pos==="sectEnd"){let z=p.get(T.sectionIndex)??[];z.push(T),p.set(T.sectionIndex,z);}else g.pos==="docEnd"&&m.push(T);}let A=_[0]?.sectionIndex??0,C=eo(t,A),v;if(C.pos==="pageBottom"||C.pos==="beneathText"){let T=_.filter(z=>{let G=eo(t,z.sectionIndex).pos;return G==="pageBottom"||G==="beneathText"}),g=_d(I,T,t,u,C.pos,f,o,{separatorCache:s});v=g.area,f=g.nextCarry;}return {...I,...v?{footnotes:v}:{}}}),h=b.length;if(f.size>0){let x=t0(b,f,t,u,o,i,s);b=x.pages,f=x.carry;}if(p.size>0&&b.length>0){let x=[...p.keys()].sort((I,S)=>I-S);for(let I of x){let S=p.get(I),_=wm(b,I,a),F=JS(b,I,a),A=_;for(let C=0;C<=_;C+=1)if(zd(b[C],a).includes(I)){A=C;break}b=dm(b,_,S,t,u,"sectEnd",o,i,{stopBeforeIndex:F,sectionStartIndex:A,separatorCache:s});}}return m.length>0&&b.length>0&&(b=dm(b,qS(b),m,t,u,"docEnd",o,i,{separatorCache:s})),b.length!==h&&(b=e0(b)),{layout:VS({revision:e.revision,pages:b},u),fallbackReasons:o,noteMarks:u}}function o0(e){return chunkQIFQTG57_cjs.Ud(e).map(n=>({noteKind:n.noteKind,noteId:n.noteId,paragraphId:n.paragraphId,atomOffset:n.atomOffset,customMarkFollows:n.customMarkFollows}))}function a0(e,n){let t=new Map,r=xt(e);for(let o=0;o<n.length;o+=1){let a=n[o];for(let i=a.blockStart;i<a.blockEndExclusive;i+=1){let l=r[i];if(!l)continue;if(l.kind==="paragraph"){t.set(l.id,o);continue}let s=(d,c)=>{if(!(c>32)&&d.kind!=="textValue"){if(d.kind==="paragraph"){t.set(d.id,o);return}for(let u of d.children)s(u,c+1);}};s(l,0);}}return t}function dr(e){let n=new Map;for(let[t,r]of e)r>0&&n.set(t,r);return n}function Ld(e,n){let t=dr(e),r=dr(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 cm(e,n){let t=dr(e);for(let[r,o]of n)o<=0||t.set(r,Math.max(t.get(r)??0,o));return t}function Gi(e){return [...dr(e)].map(([n,t])=>`${n}=${t}`).sort().join(",")}function Im(e,n,t,r,o){let a=o0(e),i=a0(e,n),l=HS(a,i),s=Tm(l,r),d=t.session?.notePageBottomReserves,c=d?dr(d):new Map,u=[],f=o({...t,noteMarks:s,pageBottomReserves:c}),p=new Set([Gi(c)]);for(let b=0;b<Ed;b+=1){let h=Rm(f,l,r,s);if(u=[...h.reasons],h.stable&&Ld(h.reserves,c))break;let y=h.stable?dr(h.reserves):cm(c,h.reserves);if(Ld(y,c)){u.push("note-reflow-exhausted");break}let x=Gi(y);if(p.has(x)){y=cm(c,h.reserves);let I=Gi(y);if(Ld(y,c)||p.has(I)){u.push("note-reflow-exhausted");break}}c=y,p.add(Gi(c)),f=o({...t,noteMarks:s,pageBottomReserves:c}),b===Ed-1&&u.push("note-reflow-exhausted");}let m=Pm(f,l,r,{fallbackReasons:u,paragraphSectionIndex:i});return t.session&&(t.session.previous=m.layout,t.session.notePageBottomReserves=dr(c)),m.layout}function Tm(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 ym(t,r,n)}var vm=new WeakMap;function Bm(e){let n=vm.get(e);if(n!==void 0)return n;let t=e.kind==="table"?JSON.stringify([e.id,e.tableId,e.fragmentIndex,e.nestingDepth,e.columnEdges,e.box,e.rows]):JSON.stringify([e.id,e.box,e.range,e.props,e.spacing,e.indent,e.bottomBorder,e.borders,e.shading,e.shadingBox,e.marker,e.lines.map(r=>[r.id,r.box,r.contentX,r.baseline,r.spans])]);return vm.set(e,t),t}function Om(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&&Bm(r)!==Bm(o))return false}return true}function Cm(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 i0=4,km=256;function l0(e){return `txbx-${e}`}function Vi(e,n){let t=e.textboxStory;if(!t)return null;let r=Je(e.extentEmu.cx),o=Je(e.extentEmu.cy),a=Je(t.insetsEmu.left),i=Je(t.insetsEmu.right),l=Je(t.insetsEmu.top),s=Je(t.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-l-s),u=Je(t.strokeWidthEmu),f={fillHex:t.fillHex,strokeHex:t.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((n.depth??0)>=i0)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:l},...f,fallbackReason:"textbox-nesting-limit"};let m=Wp(t.content,n.displayMode),b=l0(e.drawingNodeId),h=0,y=ar(m,0,d,0,0,{measurer:n.measurer,cache:n.cache,producer:`${n.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${b}-line-${h++}`,styleCascade:n.styleCascade,...n.pageContext?{pageContext:n.pageContext}:{},...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,I=y.bottom,S;if(x.length>km){x=x.slice(0,km);let A=x[x.length-1];I=A?A.box.y+A.box.height:0,S="textbox-fragment-limit";}if(I>c+.001){let A=x.filter(C=>C.box.y<c-.001);A.length<x.length&&(x=A,S=S??"textbox-height-clip");}let _=Math.max(0,c-I),F=t.verticalAnchor==="center"?_/2:t.verticalAnchor==="bottom"?_:0;return {fragments:x,flowHeight:I,contentOffset:{x:a,y:l+F},...f,...S?{fallbackReason:S}:{}}}var s0=128;function d0(e){return chunk73X5I53C_cjs.y(chunkQIFQTG57_cjs.wa(e))}function c0(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 u0(e,n,t,r,o,a,i,l=s0,s,d,c,u,f,p){let m=cs(e.root),b=c0(l),h=xt(e),y=d0(e),x,I=S=>{let _=Ot(m)||c?S:void 0,F=_?.pageNumber??p?.pageNumber??1,A=gs(_,m)+(c?`|pn:${F}`:"");if(A===""){if(x)return x}else {let E=b.get(A);if(E)return E}let C=0,v=[],T=()=>{let E=_?.pageNumber??p?.pageNumber??1,R=p?.pageWidth??n,B=p?.pageHeight??Math.max(1,n),k=p?.marginLeft??0,M=p?.marginRight??0,L=p?.marginTop??0,H=p?.marginBottom??0,N=Math.max(1,B-L-H);return Object.freeze({pageNumber:E,pageWidth:R,pageHeight:B,marginLeft:k,marginRight:M,marginTop:L,marginBottom:H,contentWidth:n,contentHeight:N,physicalContentHeight:N,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},g=Object.freeze([]),z;if(c){let E=false;for(let R=0;R<nr;R+=1){v.splice(0,v.length),C=0,z=ar(h,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+A+(d?`|rev:${d}`:""),nextLineId:()=>`hf-${e.name}-line-${C++}`,styleCascade:a,pageContext:_,...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{},inlineDrawingLayout:c,anchorFrameBase:T,pageContentClip:()=>Do(T()),layoutTextboxStoryFor:k=>Vi(k,{measurer:t,producer:r+A+(d?`|rev:${d}`:""),cache:o,styleCascade:a,..._?{pageContext:_}:{},...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{}}),collectAnchoredDrawings:k=>{v.push(...k);},columnBoxForParagraph:k=>Object.freeze({x:0,y:k.y,width:n,height:k.height}),pageExclusionZones:()=>g,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let B=Fs(v,c,0,n);if(B.length===0){E=true,g=B;break}if(R>0&&Jn(g)===Jn(B)){E=true,g=B;break}g=B;}if(!E)throw new $r(`header/footer exclusion reflow did not converge within ${nr} passes`)}else z=ar(h,0,Math.max(1,n),0,0,{measurer:t,cache:o,producer:r+A+(d?`|rev:${d}`:""),nextLineId:()=>`hf-${e.name}-line-${C++}`,styleCascade:a,pageContext:_,...s!==void 0?{defaultTabStopPt:s}:{},...d?{displayMode:d}:{}});let G={partName:e.name,contentKey:y,fragments:z.blocks,flowHeight:z.bottom,pageFieldNeeds:m,...v.length>0?{anchoredDrawings:Object.freeze([...v])}:{},withPageContext:E=>!Ot(m)&&!G.anchoredDrawings?.length?x??G:I(E)};return A===""?x=G:b.set(A,G),G};return I(i)}function Hd(e,n,t){let r=t-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let b=p(m);return {...b,box:o(b.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},l=a(e.header),s=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${n}`,index:n,box:o(e.box),contentBox:o(e.contentBox),...l?{header:l}:{},...s?{footer:s}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}function Yi(){return {previous:null,checkpoints:[],keys:[],context:"",endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null}}function Lm(e,n){return [...e].map(([t,r])=>`${t}=${r.flowHeight}`).sort().join(",")}function Mm(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${Lm(e.headers)};f:${Lm(e.footers)}`:""}function Ki(e,n,t){if(e.sectionFurniture)return e.sectionFurniture[n];if(n===t-1)return e.furniture}function f0(e,n){return e.map((t,r)=>{let o=sr(t.properties),a=Ki(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,Mm(a),l,d].join(":")}).join("|")}function p0(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},()=>Yi()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1};return e.multi=o,o}function m0(e){return e!=="continuous"}function g0(e,n){return e.width===n.width&&e.height===n.height}function h0(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 Em(e,n,t){e.previous=n,e.endLineCounter=t,e.keys=[],e.checkpoints=[],e.context="";}function Nm(e,n,t,r,o){let{session:a,...i}=r,l=f0(n,r),s=p0(a,l,n.length),d=[],c=[],u=[],f=0,p=0,m=0,b=0,h=0,y=0,x=0,I=true,S=null,_="",F=1;for(let v=0;v<n.length;v+=1){let T=n[v],g=e.slice(T.blockStart,T.blockEndExclusive),z=sr(T.properties),G=Ki(r,v,n.length),E=d.length,R=f,B=s?.spans[v],k=Mm(G);if(g.length===0&&!m0(T.properties.breakType)){u.push({startIndex:E,pageCount:0,sheetY:R,remappedPages:[]});continue}let M=v>0&&T.properties.breakType==="continuous"&&d.length>0&&I&&S!==null&&g0(S,z)&&_===k,L=s?.sections[v],H=T.properties.columns.count>1&&n[v+1]?.properties.breakType==="continuous",N=o(g,t,{...i,geometry:z,furniture:G,sectionColumns:T.properties.columns,...H?{balanceColumns:H}:{},lineCounterStart:p,pageIndexStart:M?E-1:E,...M?{flowStartY:y,spaceBeforeCarry:x}:{},...L?{session:L}:{}});p=N.lineCounter,y=N.endCursorY,x=N.endSpaceAfter,I=N.endsOpenPage,S=z,_=k,L?(m+=L.stats.placed,b+=L.stats.total):(m+=g.length,b+=g.length);let V=L!==void 0&&L.stats.placed===0&&L.stats.reusedPages===N.pages.length&&B!==void 0&&B.pageCount===N.pages.length,j=B!==void 0&&B.startIndex===E&&B.sheetY===R&&B.remappedPages.length===N.pages.length,Y=T.properties.pageNumbering,$=Y?.start!==void 0?Y.start:F,U=Y?.fmt,fe;if(M){let be=d.length-1,ce=d[be],Ie=h0(ce,N.pages[0]);if(Ie!==ce){d[be]=Ie;let pe=c.lastIndexOf(ce);pe!==-1&&(c[pe]=Ie);}let ve=[];for(let pe of N.pages.slice(1)){let xe=Hd(pe,d.length+ve.length,f);ve.push(xe),f=xe.box.y+xe.box.height+24;}let he=ve.length+1;fe=Ar(ve,$+1,he,U);for(let pe of fe)d.push(pe),c.push(pe);F=$+he;}else if(V&&j){fe=B.remappedPages,h+=fe.length;for(let be of fe)d.push(be),c.push(be),f=be.box.y+be.box.height+24;F=$+fe.length;}else {let be=[];for(let ce of N.pages){let Ie=Hd(ce,d.length+be.length,f);be.push(Ie),f=Ie.box.y+Ie.box.height+24;}fe=Ar(be,$,be.length,U);for(let ce of fe)d.push(ce),c.push(ce);F=$+fe.length;}u.push({startIndex:E,pageCount:fe.length,sheetY:R,remappedPages:fe});}if(d.length===0){let v=sr(n[0]?.properties??Dn),T=o([],t,{...i,geometry:v,sectionColumns:n[0]?.properties.columns??Dn.columns}),g=Ct({revision:t,pages:T.pages});return s&&(s.spans=[],s.previousRemapped=T.pages,s.previousFinalized=g,s.previousPageCount=g.pages.length),a&&(Em(a,g,p),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),g}let A=Ct({revision:t,pages:d}),C=A;if(s?.previousFinalized&&s.previousPageCount===A.pages.length&&s.previousRemapped.length===c.length){let v=s.previousFinalized.pages,T=s.previousRemapped,g=A.pages.map((z,G)=>c[G]===T[G]&&v[G]?v[G]:z);C={revision:t,pages:g};}return s&&(s.spans=u,s.previousRemapped=c,s.previousFinalized=C,s.previousPageCount=C.pages.length),a&&(Em(a,C,p),a.stats={placed:m,total:b||1,reusedPages:h,fullPasses:a.stats.fullPasses+(m===b&&h===0?1:0)}),C}function Ui(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 y0=2,Fm=new WeakMap,Am=new WeakMap;function Dm(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(Fi(a.resource));};for(let r of e.anchoredDrawings??[])n.push(Fi(r.resource));for(let r of e.fragments)t(r);return n.length===0?"":`!${n.join("!")}`}function b0(e,n,t){let r=t.displayMode??ft,o=zi(e,r),a=xt(e,r),i=jm(e),l={...t,producer:`${t.producer??"unversioned-measurer"}|cc:${i}`,tocFieldChromeParagraphIds:t.tocFieldChromeParagraphIds??Id(e),emptyTocPlaceholderParagraphIds:t.emptyTocPlaceholderParagraphIds??Td(e),emptyTocSuppressedResultParagraphIds:t.emptyTocSuppressedResultParagraphIds??vd(e)},s=t.drawingSourceOrder;!s&&t.inlineDrawingLayout&&(s=Am.get(t.inlineDrawingLayout),s||(s=(()=>{let f=new Map;return chunkQIFQTG57_cjs.bb(e).forEach((p,m)=>{f.set(p.drawingNodeId,m);}),f})(),Am.set(t.inlineDrawingLayout,s)));let d=id(s?{...l,drawingSourceOrder:s}:l,a),c=f=>{if(o.length>1)return Nm(a,o,n,f,no);let p=o[0],m=f.geometry??(p?sr(p.properties):bo),b=Ki(f,0,o.length)??f.furniture,h=no(a,n,{...f,geometry:m,furniture:b,sectionColumns:p?.properties.columns??Dn.columns}),y=p?.properties.pageNumbering,x=Gm({revision:h.layout.revision,pages:Ar(h.pages,y?.start??1,h.pages.length,y?.fmt)},h.layout),I=Ct(x);return f.session&&(f.session.multi=null,f.session.previous=I),I},u=f=>{let p=N0(f,e,i);return t.session&&(t.session.previous=p),p};return t.notes?u(Im(e,o,d,t.notes,c)):u(c(d))}function cr(e,n,t){let r=t.geometry,o=r.width-r.margin.left-r.margin.right,a=Od(t.sectionColumns??Dn.columns,o);if(t.inlineDrawingLayout&&t.drawingExclusionPass===void 0&&!t.drawingExclusionConverged){let P=K=>t.drawingSourceOrder?.get(K),W=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),D=new Map,te=null,se=false,le=new Set,oe=t.session?.previous?.pages;if(oe){D=_o(oe,t.inlineDrawingLayout,o,P,W),te=no(e,n,{...t,drawingExclusionPass:0,drawingExclusionZonesByPage:D});let K=_o(te.pages,t.inlineDrawingLayout,o,P,W);if(qa(D,K))return te;D=new Map(K),le.add(Ja(K));}for(let K=0;K<nr;K+=1){te=no(e,n,{...t,session:void 0,drawingExclusionPass:K,drawingExclusionZonesByPage:D});let me=_o(te.pages,t.inlineDrawingLayout,o,P,W);if(me.size===0){se=true,D=me;break}let Re=Ja(me);if(le.has(Re)){se=true,D=me;break}if(le.add(Re),K>0&&qa(D,me)){se=true,D=me;break}D=new Map(me);}if(!se)for(let K=0;K<y0&&!se;K+=1){te=no(e,n,{...t,session:void 0,drawingExclusionPass:nr+K,drawingExclusionZonesByPage:D});let me=_o(te.pages,t.inlineDrawingLayout,o,P,W),Re=Ja(me);if(qa(D,me)||le.has(Re)){se=true,D=me;break}le.add(Re),D=new Map(me);}if(!se)throw new $r(`wrap exclusion reflow did not converge within ${nr} passes`);return no(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??ft,f=t.tocFieldChromeParagraphIds,p=t.emptyTocPlaceholderParagraphIds,m=t.emptyTocSuppressedResultParagraphIds,b=(t.producer??"unversioned-measurer")+(s?`|sc:${s.cacheToken}`:"")+(d&&d.size>0?`|num:${d.size}`:"")+(c!==void 0?`|dts:${c}`:"")+(u===ft?"":`|rev:${u}`),h=a.widths[0],y=t.furniture,x=r.headerDistance??36,I=r.footerDistance??36,S=P=>{let W=0;for(let D of P?.values()??[])W=Math.max(W,D.flowHeight);return W},_=r.height*.4,F=Math.min(_,Math.max(r.margin.top,y?x+S(y.headers):0)),A=Math.min(_,Math.max(r.margin.bottom,y?I+S(y.footers):0)),C=r.height-F-A,v=r.height-r.margin.top-r.margin.bottom,T=t.pageBottomReserves,g=t.session,z=t.lineCounterStart??0,G=y?`|hf:${x},${I},${y.titlePage?1:0}${y.evenAndOddHeaders?1:0};`+[...y.headers].map(([P,W])=>`h${P}=${W.flowHeight}@${W.contentKey}${Dm(W)}`).sort().join(",")+";"+[...y.footers].map(([P,W])=>`f${P}=${W.flowHeight}@${W.contentKey}${Dm(W)}`).sort().join(","):"",E=t.flowStartY??0,R=t.spaceBeforeCarry??0,B=t.pageIndexStart??0,k=T?`|nr:${[...T].map(([P,W])=>`${P}=${W}`).join(",")}`:"",M=t.noteMarks?`|nm:${t.noteMarks.reservedMarkText??""}:${t.noteMarks.marks.size}`:"",L=t.columnRegionBottom,H=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${L!==void 0?`;bal:${L}`:""}`,N=`${b}|${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|lc:${z}|fs:${E},${R}|pi:${B}${G}${k}${M}${H}`,V=[],j=()=>{let P=Math.max(1,C-(T?.get(V.length)??0));return L!==void 0&&V.length===0?Math.max(1,Math.min(P,L)):P},Y=(P,W)=>{let D=P.kind==="paragraph"?t.drawingTokenForParagraph?.(P)??t.drawingLayoutToken??"":P.kind==="table"&&t.drawingTokenForParagraph?Vp(P,t.drawingTokenForParagraph):"",te=Fm.get(P);if(te&&te.contentWidth===W&&te.producer===b&&te.drawingToken===D)return te.entry;let se;if(P.kind==="table")se={kind:"table",table:P,key:er({paragraph:P,properties:[],width:W,producer:b,...D?{drawingToken:D}:{}})};else {let le=d?.get(P.id),oe=Xo(P,W,s,le),{props:K,indent:me,available:Re,alignment:Pe,spacing:Oe,lineSpacing:Le,contextualSpacing:Ce,styleId:qe,shading:re,inheritedRunProperties:Fe,markRunProperties:Ee}=oe,Ae=wf(P.children.find(cn=>cn.kind==="paragraphProperties"),s),nt=Ql(Ae),We=To(oe.tabStops,c),zt=We===oe.tabStops?oe.tabStopsCacheToken:Zt(We);se={kind:"paragraph",paragraph:P,props:K,indent:me,available:Re,alignment:Pe,spacing:Oe,lineSpacing:Le,contextualSpacing:Ce,styleId:qe,borders:Ae,borderGroupKey:nt===""?"":`${nt}@${me.left},${me.left+Re}`,shading:re,inheritedRunProperties:Fe,markRunProperties:Ee,tabStops:We,keeps:Rf(K),...le?{listItem:le}:{},key:er({paragraph:P,properties:[...K,...Fe,...Ee,{localName:"tabStops",attributes:{token:zt}},...le?[{localName:"list",attributes:{token:le.cacheToken}}]:[]],width:Re,producer:b,...D?{drawingToken:D}:{}})};}return Fm.set(P,{contentWidth:W,producer:b,drawingToken:D,entry:se}),se},$=e.map(P=>Y(P,h)),U=$.map(P=>P.key),fe=Dp($,h,s,u),be=$.map(P=>P.kind==="paragraph"&&P.keeps.keepNext),ce=Tf(U,P=>be[P]),Ie=g?.previous??null,ve=Ie!==null&&g!==void 0&&g.context===N,he=a.count===1&&ve,pe=0;if(ve){let P=Math.min(ce.length,g.keys.length);for(;pe<P&&ce[pe]===g.keys[pe];)pe+=1;}let xe=0;if(he){let P=Math.min(ce.length,g.keys.length)-pe;for(;xe<P&&ce[ce.length-1-xe]===g.keys[g.keys.length-1-xe];)xe+=1;}if(ve&&pe===$.length&&$.length===g.keys.length){let P=Gm({revision:n,pages:Ie.pages},Ie);return g.previous=P,g.stats={placed:0,total:$.length,reusedPages:Ie.pages.length,fullPasses:g.stats.fullPasses},l?.retain(new Set(U)),{layout:P,pages:P.pages,lineCounter:g.endLineCounter,endCursorY:g.endCursorY,endSpaceAfter:g.endSpaceAfter,endsOpenPage:g.endsOpenPage}}let Te=[],He=0,an=0,rn=()=>a.lefts[He],Me=()=>a.widths[He],Qn=()=>({text:{left:rn(),width:Me()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),et=()=>Te.length>an,Se=[],on=[],vn=new Map,q=E,_n=E,ee=0,ne=z,O=R,w=[],X=0,J=0,ie=0,ue=E===0;if(he&&pe>0&&pe<g.checkpoints.length){let P=g.checkpoints[pe];V.push(...Ie.pages.slice(0,P.pageCount)),Te=[...P.pageFragments],Se=[...P.pendingAnchoredDrawings],q=P.cursorY,ee=P.flowColumnIndex,He=P.flowColumnIndex,ne=P.lineCounter,O=P.previousSpaceAfter,X=pe,ue=false,ie=V.length,w.push(...g.checkpoints.slice(0,pe));}let Be=P=>({x:0,y:P*(r.height+24),width:r.width,height:r.height}),ye=P=>y?.titlePage&&P===0?"first":y?.evenAndOddHeaders&&(B+P+1)%2===0?"even":"default",Ze=(P,W,D)=>{if(!y)return;let te=ye(W),se=(P==="header"?y.headers:y.footers).get(te);if(!se)return;let le=Le=>{let Ce=P==="header"?D.y+x:D.y+r.height-I-Le.flowHeight;return {kind:P,variant:te,partName:Le.partName,...Le.rId?{rId:Le.rId}:{},box:{x:D.x+r.margin.left,y:Ce,width:o,height:Le.flowHeight},fragments:Le.fragments,...Le.anchoredDrawings?{anchoredDrawings:Le.anchoredDrawings}:{}}},oe=B+W+1,K={pageNumber:oe,pageCount:Math.max(oe,V.length+1),sectionPageCount:W+1},me=se.pageFieldNeeds,Pe=Ot(me)||(se.anchoredDrawings?.length??0)>0?se.withPageContext(K):se,Oe=le(Pe);return Ot(me)?{...Oe,pageFieldProjector:Le=>le(se.withPageContext(Le))}:Oe},_e=a.count,Qe=rn,en=P=>Object.freeze({x:a.lefts[ee]??0,y:P.y,width:a.widths[ee]??h,height:P.height}),we=()=>Object.freeze({pageNumber:B+V.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:h,contentHeight:j(),physicalContentHeight:v,ownerPartName:t.inlineDrawingLayout?.ownerPartName??chunkQIFQTG57_cjs.m,storyKind:"body"}),Bn=()=>Do(we()),ln=P=>t.drawingSourceOrder?.get(P),Ye=P=>{if(P.length===0)return;for(let D of P)Se.some(te=>te.drawingNodeId===D.drawingNodeId)||Se.push(D.sourceOrder===void 0&&ln(D.drawingNodeId)!==void 0?Object.freeze({...D,sourceOrder:ln(D.drawingNodeId)}):D);if(!t.inlineDrawingLayout)return;let W=lf(Se,{pageBottom:j()});if(Se.splice(0,Se.length,...W.drawings),W.deferred.length>0)for(let D of W.deferred){let te=(vn.get(D.drawingNodeId)??0)+1;vn.set(D.drawingNodeId,te),te>=Cs?Se.push(Ns(D,"page-defer-exhausted")):on.push(D);}},Ge=()=>{if(on.length===0)return;let P=on.map(W=>Es(W,q-W.y));on=[],Ye(P);},nn=()=>{let P=V.length,W=Be(P),D=Ze("header",P,W),te=Ze("footer",P,W),se=Te.reduce((le,oe)=>Math.max(le,oe.box.y+oe.box.height),_n);V.push({id:`page-${P}`,index:P,box:W,contentBox:{x:W.x+r.margin.left,y:W.y+F,width:o,height:C},fragments:Te,...a.separator?{columnSeparators:a.gaps.map((le,oe)=>({x:a.lefts[oe]+a.widths[oe]+le/2-.375,y:_n,width:.75,height:Math.max(0,se-_n)}))}:{},...Se.length>0?{anchoredDrawings:af(Se)}:{},...D?{header:D}:{},...te?{footer:te}:{}}),Te=[],Se=[],q=0,He=0,ee=0,_n=0,an=0;},Dt=(P,W)=>{if(P.kind!=="paragraph"||P.listItem!==void 0||P.shading!==void 0)return false;let{top:D,bottom:te,left:se,right:le,between:oe}=P.borders;if(D??te??se??le??oe)return false;let K=t.inlineDrawingLayout;return K&&In(P.paragraph,K).length>0?false:W.every(me=>me.drawings.length===0&&!me.pageBreakAfter&&!me.columnBreakAfter&&me.spans.every(Re=>Re.text.length===0))},zn=()=>{if(He+1<a.count){He+=1,ee=He,q=_n,O=0,an=Te.length;return}nn(),Ge();},tl=P=>Vi(P,{measurer:i,producer:b,cache:l,styleCascade:s,...c!==void 0?{defaultTabStopPt:c}:{},...u?{displayMode:u}:{},inlineDrawingLayout:t.inlineDrawingLayout,drawingTokenForParagraph:t.drawingTokenForParagraph}),St={measurer:i,cache:l,producer:b,nextLineId:()=>`line-${ne++}`,styleCascade:s,listItems:d,...c!==void 0?{defaultTabStopPt:c}:{},...t.projectLink?{projectLink:t.projectLink}:{},...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:t.drawingLayoutToken?{drawingLayoutToken:t.drawingLayoutToken}:{},...t.inlineDrawingLayout?{anchorFrameBase:we,pageContentClip:Bn,layoutTextboxStoryFor:tl,publishAnchoredDrawings:Ye,collectAnchoredDrawings:Ye,columnBoxForParagraph:en,pageExclusionZones:()=>t.drawingExclusionZonesByPage?.get(V.length)??Object.freeze([]),paragraphOrderIndex:P=>fe.get(P),onAnchorShift:(P,W)=>vs(Se,P,W),onAnchorRepublish:(P,W)=>{for(let D=Se.length-1;D>=0;D-=1)Se[D].anchorParagraphId===P&&Se.splice(D,1);Se.push(...W);}}:{},borderOwnershipBudget:si(),vMergeResolveBudget:md(),displayMode:u},rl=P=>Pi(d?.get(P.paragraph.id)??P.listItem,P.indent,i,P.tabStops,P.available),ol=(P,W,D=0)=>{let te=P.paragraph.id,le=!(p?.has(te)??false)&&((f?.has(te)??false)||(m?.has(te)??false)),oe=P.available,K=Qe(),Re=(t.drawingExclusionZonesByPage?.get(V.length)??Object.freeze([])).filter(qe=>{let re=fe.get(P.paragraph.id),Fe=fe.get(qe.anchorParagraphId);if(re!==void 0&&Fe!==void 0){if(Fe>re)return false}else {let Ee=$.findIndex(Ae=>Ae.kind==="paragraph"&&Ae.paragraph.id===qe.anchorParagraphId);if(Ee<0||Ee>W)return false}return !(_e>1&&qe.columnIndex!==ee)}),Pe=Jn(Re),Oe=t.drawingTokenForParagraph?.(P.paragraph)??t.drawingLayoutToken??(t.inlineDrawingLayout?"drawing":void 0),Le=l&&!le?Pe||Oe?er({paragraph:P.paragraph,properties:P.props,width:oe,producer:b,...Oe?{drawingToken:Oe}:{},...Pe?{exclusionToken:`${ee}|${q.toFixed(3)}|${Pe}`}:{},...D>0?{startOffset:D}:{}}):D===0?P.key:`${P.key}|from:${D}`:null,Ce=_e>1;return ri(P.paragraph,te,P.indent.left,oe,i,l,Le,P.inheritedRunProperties,P.tabStops,void 0,s?(qe,re)=>ht(qe,re,s):void 0,{lineSpacing:P.lineSpacing,firstLineOffset:D===0?rl(P):0,startOffset:D,marginExtent:{left:0,right:P.indent.left+oe+P.indent.right},...t.projectLink?{projectLink:t.projectLink}:{},displayMode:u,...t.noteMarks?{noteMarks:t.noteMarks}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},contentLeft:Ce?K:0,contentRight:Ce?K+Me():P.indent.left+oe+P.indent.right,paragraphStartY:q,...Re.length>0?{pageExclusionZones:Re}:{},...le?{suppressEmptyPlaceholderLine:true}:{},...s?{themeFonts:s.themeFonts}:{},markRunProperties:P.markRunProperties})},$d=(P,W)=>(t.drawingExclusionZonesByPage?.get(V.length)??Object.freeze([])).filter(te=>{let se=fe.get(P.paragraph.id),le=fe.get(te.anchorParagraphId);if(se!==void 0&&le!==void 0){if(le>se)return false}else {let oe=$.findIndex(K=>K.kind==="paragraph"&&K.paragraph.id===te.anchorParagraphId);if(oe<0||oe>W)return false}return !(_e>1&&te.columnIndex!==ee||te.anchorParagraphId===P.paragraph.id&&te.input.mode==="topAndBottom")}),Xd=(P,W,D,te,se,le,oe)=>{let K=$d(P,W);if(!t.inlineDrawingLayout||te<=se)return K;let me=Nn(P.paragraph),Re=new Map,Pe=0;for(let re=se;re<te;re+=1){let Fe=D[re];for(let Ae of me.values())Ae>=Fe.start&&Ae<Fe.end&&Re.set(Ae,Pe);let Ee=oe.get(re)??D[re].exclusionSkipBefore??0;Pe+=Ee+D[re].height;}if(Re.size===0)return K;let Oe=_e>1,Le=P.available,Ce=Qe(),qe=Za({paragraph:P.paragraph,paragraphId:P.paragraph.id,drawingLayout:t.inlineDrawingLayout,contentLeft:Oe?Ce:0,contentRight:Oe?Ce+Me():P.indent.left+Le+P.indent.right,paragraphStartY:le,anchorLineTopByModelStart:Re,columnIndex:ee});return Object.freeze([...K,...qe])},pg=(P,W,D,te,se,le,oe,K)=>{if(t.inlineDrawingLayout){let Oe=[...Nn(P.paragraph).values()];if(Oe.length>0){let Le=Math.min(...Oe);if(oe.end<=Le||Oe.some(Ce=>Ce>=oe.start&&Ce<oe.end)&&oe.end<=Le+1)return 0}}let me=Xd(P,W,D,te,se,le,K),Re=me.length>0?gt(q,oe.height,me):0,Pe=oe.exclusionSkipBefore??0;return Re>.001?Re:Pe},mg=P=>{let W=Me(),D=Zr(P,W,0,s,u);if(!D||D.rows.length===0)return;let te=D.columnWidthsPt.reduce((re,Fe)=>re+Fe,0),se=()=>D.float?op(D.float,te,Qn()):rn()+Jo(D,Me()),le=se();D.float&&D.float.vertAnchor==="text"&&!D.float.ySpec&&(q=Math.max(0,Math.min(q+D.float.yPt,j())));let oe=[];for(let re of D.rows)if(re.isHeader)oe.push(re);else break;let K=0,me=q,Re=[],Pe=new Map,Oe=[],Le=()=>{if(Re.length===0)return;let re=Sd(Re,D,Oe,St.borderOwnershipBudget,St.vMergeResolveBudget,void 0,(Ee,Ae)=>{vs(Se,Ee,Ae);},St),Fe=re[re.length-1];Te.push(Li({kind:"table",id:`${P.id}#f${K}`,tableId:P.id,fragmentIndex:K,rows:re,box:{x:le,y:me,width:D.columnWidthsPt.reduce((Ee,Ae)=>Ee+Ae,0),height:Fe.box.y+Fe.box.height-me}},D.columnWidthsPt,0,Pe)),K+=1,Re=[],Oe=[];},Ce=re=>{if(oe.length===0)return;let Fe=0;for(let Ee of oe)Fe+=xd(Ee,D.columnWidthsPt,le,0,St,D.cellSpacingPt);if(Fe>j()+.001)throw new Tn("table-row-overheight",`Table header group (${oe.length} row(s)) is taller than the page content box`);q+Fe>j()+.001&&q>0&&(Le(),zn(),le=se(),me=q);for(let Ee of oe){let Ae=aa(Ee,D.columnWidthsPt,le,q,re,0,St,D.cellSpacingPt);if(Ae.bottom>j()+.001)throw new Tn("table-row-overheight",`Table header row ${Ee.id} overflowed the page content box`);Re.push(Ae.record),Oe.push(Ee),q=Ae.bottom;}},qe=re=>{Le(),zn(),le=se(),me=q,Ce(true);};Ce(false);for(let re of D.rows.slice(oe.length)){let Fe=xd(re,D.columnWidthsPt,le,0,St,D.cellSpacingPt),Ee=hd(re),Ae=false,nt=0,We=false;for(Fe<=j()+.001&&q+Fe>j()+.001&&q>0&&(qe(),We=true);;){if(nt+=1,nt>Mi)throw new Tn("table-row-fragment-limit",`Table row ${re.id} exceeded ${Mi} page fragments`);let zt=j()-q;if(zt<=.001&&q>0){if(We)throw new Tn("table-row-overheight",`Table row ${re.id} cannot fit after repeated header rows`);qe(),We=true;continue}if(!Ae&&Fe<=zt+.001){let tt=aa(re,D.columnWidthsPt,le,q,false,0,St,D.cellSpacingPt);if(tt.bottom>j()+.001)throw new Tn("table-row-overheight",`Table row ${re.id} overflowed the page content box after placement`);Re.push(tt.record),Oe.push(re),q=tt.bottom;break}if(re.cantSplit||re.height.rule==="exact"){if(q>0&&!We){qe(),We=true;continue}throw new Tn("table-row-overheight",re.height.rule==="exact"?`Table row ${re.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${re.id} has w:cantSplit and is taller than the available page content`)}let cn=bd(re,D.columnWidthsPt,le,q,j(),false,Ae,0,St,Ee,D.cellSpacingPt);if(!cn.fitted&&q>0&&!We){qe(),We=true;continue}if(!cn.fitted)throw new Tn(cn.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",cn.nestedSplitBlocked?`Table row ${re.id} contains a nested table taller than the page content box`:`Table row ${re.id} has content that cannot fit a page content box`);if(cn.bottom>j()+.001)throw new Tn("table-row-overheight",`Table row ${re.id} overflowed the page content box`);let to=cn.remainder!==null,pr=Gp(re,Ae,to);if(Re.push(cn.record),Oe.push(pr),q=cn.bottom,!to)break;Ee=cn.remainder,Ae=true,We=false,qe();}}Le();},_t=false,al=$.length;for(let P=X;P<$.length;P+=1){let W=Y(e[P],Me());if(w[P]={pageCount:V.length,pageFragments:[...Te],pendingAnchoredDrawings:[...Se],cursorY:q,lineCounter:ne,previousSpaceAfter:O,flowColumnIndex:ee},he&&xe>0&&P>=$.length-xe){let Q=g.checkpoints[P+(g.keys.length-$.length)];if(Q&&Q.cursorY===q&&Q.lineCounter===ne&&Q.previousSpaceAfter===O&&Q.flowColumnIndex===ee&&Q.pageCount===V.length&&Om(Q.pageFragments,Te)&&Cm(Q.pendingAnchoredDrawings,Se)){let ae=Ie.pages.slice(Q.pageCount);V.push(...ae),ie+=ae.length,_t=true,al=P,ne=g.endLineCounter;break}}if(J+=1,W.kind==="table"){O=0,mg(W.table);continue}let{paragraph:D,props:te,spacing:se,contextualSpacing:le,styleId:oe,borders:K,shading:me,keeps:Re}=W,{indent:Pe,alignment:Oe,markRunProperties:Le}=W,Ce=W.available,qe=P>0?$[P-1]:void 0,re=$[P+1],Fe=Q=>Q?.kind==="paragraph"&&Q.styleId===oe&&oe!==null,Ee=le?{before:Fe(qe)?0:se.before,after:Fe(re)?0:se.after}:se,Ae=d?.get(D.id)??W.listItem,nt=rl(W),We=D.id,zt=W.borderGroupKey,cn=Q=>zt!==""&&Q?.kind==="paragraph"&&Q.borderGroupKey===zt,to=cn(qe),pr=cn(re),tt=to?void 0:K.top,mr=pr?K.between:K.bottom,Ht=Tt(tt),Jd=Tt(mr);Kl(te)&&(Te.length>0||V.length===0)&&(nn(),O=0);let Ke=ol(W,P);if(Ke.length===0)continue;let hg=_i(D)!==void 0&&Dt(W,Ke),Qd=()=>hg&&L===void 0&&He+1>=a.count,il=Q=>{let ae=Y(D,Me());ae.kind==="paragraph"&&(Pe=ae.indent,Oe=ae.alignment,Ce=ae.available,Le=ae.markRunProperties,nt=Q===0?rl(ae):0,Ke=[...ol(ae,P,Q)]);};{let Q=Lr(Ee.before,O),ae=Le.length===0?Yn:dn(Le,s?.themeFonts),sn=Ke.length<=1?Jd+Ee.after:0,Hn=q+Q+Ht,yn=Xd(W,P,Ke,0,0,Hn,new Map),Wt=Ke[0]?pf(Hn,Ke[0],yn,sn):i.lineMetrics(ae).height+sn,Rt=Q+Ht+Wt;if(Re.keepNext&&!be[P-1]){let Ue=If($,P,O,rt=>{let jn=$[rt];return jn?.kind==="paragraph"?ol(jn,rt).map(On=>On.height):[]});Ue!==null&&Ue+Ht<=j()&&(Rt=Math.max(Rt,Ue+Ht));}q+Rt>j()&&q>0&&!Qd()&&(zn(),O=0,il(0));}let yg=q===0&&!et(),ll=es(Ee.before,O,yg,ue);ll>0&&(q+=ll),Ht>0&&(q+=Ht),ue=false;let jt=0,Ne=[],ec=Ke[0]?.start??0,gr=ll,Gt=Ht,sl=false,ro=q,nc=0,pa=new Map;O=0;let tc=t.inlineDrawingLayout!==void 0&&In(W.paragraph,t.inlineDrawingLayout).length>0,rc=false,dl=null,oc=ys(W.paragraph),bg=()=>{let Q=Ne[0];if(!Q)return 0;let ae=nc;if(ae<=.001)return 0;let sn=gt(ro,Q.box.height,$d(W,P));return Math.max(0,ae-sn)},ma=Q=>{if(Ne.length===0)return;let ae=rn(),sn=Qe(),Hn=Ne[0].box.y,yn=Hn-gr-Gt,Wt=Ne[Ne.length-1].box.y+Ne[Ne.length-1].box.height,Rt=Q?Ee.after:0,Ue=[],rt,jn=Hn,On=Wt,Pt=K.left?fn(K.left):0,ao=K.right?fn(K.right):0,hr=K.left?ae+Pe.left-K.left.spacePt-Pt:ae+Pe.left,ul=K.right?ae+Pe.left+Ce+K.right.spacePt+ao:ae+Pe.left+Ce,yr=Math.max(ul-hr,0);if(Gt>0&&tt){let bn=fn(tt),xn=Hn-tt.spacePt-bn;Ue.push({side:"top",edge:tt,box:{x:hr,y:xn,width:yr,height:bn}}),jn=xn;}if(Q&&mr){let bn=fn(mr),xn=Wt+mr.spacePt,at={x:hr,y:xn,width:yr,height:bn};Ue.push({side:pr?"between":"bottom",edge:mr,box:at}),pr||(rt={edge:mr,box:at}),On=xn+bn;}Q&&(q=Math.max(q,On+Rt));let br=Math.max(On+Rt-yn,0),ke=to&&jt===0?yn:jn,ot=pr&&Q?yn+br:On,xr=Math.max(ot-ke,0);if(K.left&&Ue.push({side:"left",edge:K.left,box:{x:ae+Pe.left-K.left.spacePt-Pt,y:ke,width:Pt,height:xr}}),K.right&&Ue.push({side:"right",edge:K.right,box:{x:ae+Pe.left+Ce+K.right.spacePt,y:ke,width:ao,height:xr}}),K.bar){let bn=fn(K.bar);Ue.push({side:"bar",edge:K.bar,box:{x:ae+Pe.left-K.bar.spacePt-bn,y:Hn,width:bn,height:Math.max(Wt-Hn,0)}});}let Sr=jt===0?Ii(Ae,i,Ne[0]?{y:Ne[0].box.y,height:Ne[0].box.height}:void 0):void 0,ga=Sr?{...Sr,box:{...Sr.box,x:Sr.box.x+ae}}:void 0;if(Te.push({kind:"paragraph",id:`${We}#f${jt}`,paragraphId:We,fragmentIndex:jt,range:{paragraphId:We,start:ec,end:Ne[Ne.length-1].range.end},props:te,spacing:{before:gr,after:Rt},indent:Pe,...rt?{bottomBorder:rt}:{},...Ue.length>0?{borders:Ue}:{},...me===void 0?{}:{shading:me,shadingBox:K.left||K.right?{x:hr,y:jn,width:yr,height:Math.max(On-jn,0)}:Po(Ne,ae+Pe.left,Ce)},...ga?{marker:ga}:{},...Q&&oc?{markRevision:oc}:{},lines:Ne,box:{x:sn+Pe.left,y:yn,width:Ce,height:br}}),t.inlineDrawingLayout&&tc&&!rc){rc=true;let bn=[...Nn(W.paragraph).values()],xn=bn.length>0&&bn.every(Sn=>Ne.some($t=>Sn>=$t.range.start&&Sn<$t.range.end)),at,wr,fl;if(xn){let Sn=yn-bg();at=Ne,wr={x:sn+Pe.left,y:Sn,width:Ce,height:br},fl=en({x:sn+Pe.left,y:Sn,height:br});}else {let Sn=dl??{columnX:sn,columnWidth:Me(),startY:yn},$t=Sn.startY;at=Ke.map((Cn,xg)=>{let Sg={id:`anchor-line-${xg}`,range:{paragraphId:We,start:Cn.start,end:Cn.end},box:{x:Sn.columnX+Pe.left,y:$t,width:Ce,height:Cn.height},contentX:Cn.spans.length>0?Cn.spans[0].box.x+Sn.columnX:Sn.columnX+Pe.left,baseline:Cn.baseline,leading:Cn.leading,trailingSpacing:Cn.trailingSpacing,spans:Cn.spans.map(pl=>({...pl,box:{...pl.box,x:pl.box.x+Sn.columnX,y:$t}}))};return $t+=Cn.height+(Cn.exclusionSkipBefore??0),Sg});let ac=Sn.startY;wr={x:Sn.columnX+Pe.left,y:ac,width:Ce,height:Math.max($t-ac,Ne[0]?.box.height??0)},fl=en(wr);}Ye(Wr({paragraph:W.paragraph,paragraphId:We,paragraphBox:wr,lines:at,drawingLayout:t.inlineDrawingLayout,frameBase:we(),columnBox:fl,cellBox:null,pageClip:Bn(),measurer:i,sourceOrderOf:ln,layoutTextboxStory:tl}));}jt+=1,ec=Ne[Ne.length-1].range.end,Ne=[],gr=0,Gt=0;},wt=0,cl=0,oo=Ke.length+8;for(let Q=0;Q<Ke.length;Q+=1){let ae=Ke[Q],sn=Q===Ke.length-1,Hn=sn?Jd+Ee.after:0;Q===wt&&(ro=q,tc&&dl===null&&jt===0&&(dl=Object.freeze({columnX:Qe(),columnWidth:Me(),startY:ro})));let yn=pg(W,P,Ke,Q,wt,ro,ae,pa),Wt=yn+Math.max(0,ae.height-ae.trailingSpacing)+Hn;if(q+Wt>j()&&!Qd()&&(Ne.length>0||Te.length>0||V.length>0)){let ke=!et(),ot=cl<oo?Pf(Q,wt,Ke.length,Re,ke):Q,xr=ot<Q;for(let xn=Q;xn>ot;xn-=1){Ne.pop();let at=Ke[xn-1],wr=pa.get(xn-1)??at.exclusionSkipBefore??0;pa.delete(xn-1),q-=at.height+wr,ne-=1;}let Sr=xr&&Ne.length===0&&jt===0,ga=Ke[ot].start,bn=Me();if(ma(false),zn(),gr=0,Sr?q=Gt:Gt=0,Me()!==bn){il(ga),oo=Math.max(oo,Ke.length+8),wt=0,xr&&(cl+=1),Q=-1;continue}if(wt=ot,ro=q,xr){cl+=1,Q=ot-1;continue}}let Ue=Qe();pa.set(Q,yn),q+=yn;let rt=Ue+Pe.left+(Q===0?nt:0),jn=Math.max(1,Ce-(Q===0?nt:0)),On=ae.spans.map(ke=>({...ke,range:{...ke.range,paragraphId:We},box:{...ke.box,x:ke.box.x+Ue,y:q}})),Pt=ni(On,i,rt,jn,Oe,sn,Oe==="center"||Oe==="right"?ae.width:void 0),ao=On.length>0&&Pt.length>0?Pt[0].box.x-On[0].box.x:Oe!=="left"&&Oe!=="both"?(()=>{let ke=jn-ae.width;return ke<=0?0:Oe==="center"?ke/2:ke})():0,hr=Object.freeze({x:0,y:0,width:h,height:j()}),ul=ae.drawings.map(ke=>{let ot=Object.freeze({...ke,paragraphId:We,x:Ue+ke.x,y:q+ke.y,advanceStart:ke.advanceStart+Ue,advanceEnd:ke.advanceEnd+Ue,paintBounds:Object.freeze({...ke.paintBounds,x:Ue+ke.paintBounds.x,y:q+ke.paintBounds.y}),hitBounds:Object.freeze({...ke.hitBounds,x:Ue+ke.hitBounds.x,y:q+ke.hitBounds.y})});return Ua(ot,hr)}),yr=ti(ul,ao),br={id:`line-${ne}`,range:{paragraphId:We,start:ae.start,end:ae.end},spans:Pt,box:{x:Qe()+Pe.left,y:q,width:Ce,height:ae.height},contentX:Pt[0]?.box.x??rt+ao,baseline:ae.baseline,leading:ae.leading,trailingSpacing:ae.trailingSpacing,...ae.deletedRanges?{deletedRanges:ae.deletedRanges}:{},...yr.length>0?{drawings:yr}:{}};if(ne+=1,Ne.length===0&&(nc=yn),Ne.push(br),q+=ae.height,ae.columnBreakAfter){let ke=Me();if(ma(sn),zn(),gr=0,Gt=0,sl=true,!sn&&Me()!==ke){il(ae.end),oo=Math.max(oo,Ke.length+8),wt=0,Q=-1;continue}wt=Q+1;}else ae.pageBreakAfter&&(ma(sn),nn(),gr=0,Gt=0,sl=true,wt=Q+1);}ma(true),O=sl?0:Ee.after;}_t||(w[$.length]={pageCount:V.length,pageFragments:[...Te],pendingAnchoredDrawings:[...Se],cursorY:q,lineCounter:ne,previousSpaceAfter:O,flowColumnIndex:ee});let Vd=_t&&g?g.endCursorY:q,Yd=_t&&g?g.endSpaceAfter:O,Kd=!_t&&(Te.length>0||V.length===0),Ud=_t&&g?g.endsOpenPage:Kd;Kd&&nn();let Zd=0,gg=Cs*4+8;for(;(Se.length>0||on.length>0)&&Zd<gg;)Zd+=1,Se.length===0&&Ge(),nn();on.length>0&&(Se.push(...on.map(P=>Ns(P,"page-defer-exhausted"))),on=[],nn()),l?.retain(new Set(U));let qd={revision:n,pages:V};return g&&(g.previous=qd,g.checkpoints=_t?[...w.slice(0,al),...g.checkpoints.slice(al+(g.keys.length-$.length))]:w,g.keys=ce,g.context=N,g.endLineCounter=ne,g.endCursorY=Vd,g.endSpaceAfter=Yd,g.endsOpenPage=Ud,g.stats={placed:J,total:$.length,reusedPages:ie,fullPasses:g.stats.fullPasses+(X===0?1:0)}),{layout:qd,pages:V,lineCounter:ne,endCursorY:Vd,endSpaceAfter:Yd,endsOpenPage:Ud}}function _m(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 x0=.25,S0=20;function no(e,n,t){let r=Od(t.sectionColumns??Dn.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),cr(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(..._m(y,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,y=cr(e,n,{...t,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===y.pages.length)return o.balanceLimit=h,s(y)}let d=cr(e,n,l);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),cr(e,n,t);let c=_m(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),cr(e,n,t);let f=a+u/r.count,p=Math.max(...c)+.01,m=h=>{try{let y=cr(e,n,{...l,columnRegionBottom:h});return y.pages.length===1&&y.endsOpenPage}catch{return false}};for(let h=0;h<S0&&p-f>x0;h+=1){let y=(f+p)/2;m(y)?p=y:f=y;}let b=cr(e,n,{...t,columnRegionBottom:p});return o&&(o.balanceLimit=p),s(b)}var w0="http://schemas.openxmlformats.org/wordprocessingml/2006/main",R0="http://schemas.microsoft.com/office/word/2010/wordml",P0="http://schemas.microsoft.com/office/word/2012/wordml";function I0(e){if(e.kind!=="textValue"){for(let n of e.attributes)if(n.localName==="val"&&n.namespaceUri===w0)return n.value}}function qi(e){for(let n of e.children)if(n.kind!=="textValue"&&(n.kind==="contentControlProperties"||n.localName==="sdtPr"))return n}function da(e,n){if(e){for(let t of e.children)if(t.kind!=="textValue"&&t.localName===n)return t}}function ur(e,n){let t=da(e,n);return t?I0(t):void 0}function Gd(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Hm(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===R0)return "checkbox";if(r==="repeatingSection"&&o===P0)return "repeatingSection"}return "richText"}function T0(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(chunkQIFQTG57_cjs.Jb(o)&&r<chunkQIFQTG57_cjs.Ib){let a=n(chunkQIFQTG57_cjs.Mb(o),r+1);if(a)return a}}return null};return n(chunkQIFQTG57_cjs.Mb(e),0)??"inline"}function jm(e){let n=zm.get(e);if(n!==void 0)return n;let t=v0(e);return zm.set(e,t),t}var zm=new WeakMap;function v0(e){let n=[],t=(r,o)=>{if(r.kind!=="textValue"){if(chunkQIFQTG57_cjs.Jb(r)){if(o>=chunkQIFQTG57_cjs.Ib)return;let a=qi(r);n.push([r.id,ur(a,"alias")??"",ur(a,"tag")??"",Gd(ur(a,"lock")),Hm(a),da(a,"showingPlcHdr")?"1":"0",da(a,"dataBinding")?"1":"0"].join(":"));for(let i of chunkQIFQTG57_cjs.Mb(r))t(i,o+1);return}for(let a of r.children)t(a,o);}};return t(e.root,0),n.join("|")}function Ji(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(chunkQIFQTG57_cjs.Jb(e)){let t=0;for(let r of chunkQIFQTG57_cjs.Mb(e))t+=Ji(r);return t}let n=0;for(let t of e.children)n+=Ji(t);return n}function B0(e){let n=[],t=(i,l)=>{for(let s of i){if(s.kind==="paragraph"||s.kind==="table"){l.push(s.id);continue}if(chunkQIFQTG57_cjs.Jb(s)){t(chunkQIFQTG57_cjs.Mb(s),l);continue}(s.kind==="tableRow"||s.kind==="tableCell")&&t(s.children,l);}},r=(i,l,s,d,c)=>{let u=s;for(let f of i)if(!(f.kind==="textValue"||f.kind==="paragraphProperties")){if(chunkQIFQTG57_cjs.Jb(f)){if(d>=chunkQIFQTG57_cjs.Ib){u+=Ji(f);continue}let p=qi(f),m=Gd(ur(p,"lock")),b=[...c,m],h=u,y=r(chunkQIFQTG57_cjs.Mb(f),l,u,d+1,b);n.push({control:f,nestingDepth:d,lockStack:b,level:"inline",paragraphId:l,range:{start:h,end:y},blockIds:[]}),u=y;continue}if(f.kind==="hyperlink"){u=r(f.children,l,u,d,c);continue}u+=Ji(f);}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):chunkQIFQTG57_cjs.Jb(h)&&o([h],l,s);continue}if(!chunkQIFQTG57_cjs.Jb(d)||l>=chunkQIFQTG57_cjs.Ib)continue;let c=qi(d),u=Gd(ur(c,"lock")),f=[...s,u],p=T0(d),m=chunkQIFQTG57_cjs.Mb(d);if(p==="inline"){o(m,l+1,f);continue}let b=[];t(m,b),n.push({control:d,nestingDepth:l,lockStack:f,level:p,blockIds:b}),o(m,l+1,f);}},a=e.root.children.find(i=>i.kind==="body");return a&&a.kind!=="textValue"&&o(a.children,0,[]),n}function O0(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 f=Math.max(0,c.box.height-c.leading-(c.trailingSpacing??0));for(let p of c.spans)a({pageIndex:s,paragraphId:p.range.paragraphId,start:p.range.start,end:p.range.end,line:u,box:{x:p.box.x,y:p.box.y+c.leading,width:p.box.width,height:f}});}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 f of u.blocks)l(s,f);};for(let s of e.pages)for(let d of s.fragments)l(s.index,d);return {blocksById:t,spansByParagraph:r}}function C0(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=La(i);return l?[{pageIndex:a,box:l}]:[]})}function k0(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=La(s.boxes);return d?[{pageIndex:s.pageIndex,box:d}]:[]})}function L0(e,n,t){let r=qi(e.control),o=ur(r,"alias"),a=ur(r,"tag"),i=e.lockStack[e.lockStack.length-1]??"unlocked",l=e.level==="inline"&&e.paragraphId&&e.range?k0(e.paragraphId,e.range,n):C0(e.blockIds,n);return {id:e.control.id,...o!==void 0?{alias:o}:{},...a!==void 0?{tag:a}:{},controlType:Hm(r),lock:i,effectiveLock:Xl(e.lockStack),placeholder:da(r,"showingPlcHdr")!==void 0,bound:da(r,"dataBinding")!==void 0,nestingDepth:e.nestingDepth,level:e.level,fragments:l}}function E0(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 M0(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&&E0(e.fragments,n.fragments)}function Zi(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(!M0(e[t],n[t]))return false;return true}function Gm(e,n){return {revision:e.revision,pages:e.pages,...n.contentControls!==void 0?{contentControls:n.contentControls}:{},...n.controlContextToken!==void 0?{controlContextToken:n.controlContextToken}:{}}}function N0(e,n,t=jm(n),r){let o=B0(n),a=O0(e),i=o.map(u=>L0(u,a)),l=new Map;for(let u of i)for(let f of u.fragments){let p=l.get(f.pageIndex),m={...u,fragments:[f]};p?p.push(m):l.set(f.pageIndex,[m]);}if(e.controlContextToken===t&&Zi(e.contentControls,i)&&e.pages.every(u=>Zi(u.contentControls,l.get(u.index)??[])))return e;let s=false,d=e.pages.map(u=>{let f=l.get(u.index)??[];return Zi(u.contentControls,f)||f.length===0&&!u.contentControls?u:(s=true,{...u,contentControls:f})}),c=s?d:e.pages;return c===e.pages&&e.controlContextToken===t&&Zi(e.contentControls,i)?e:{revision:e.revision,pages:c,contentControls:i,controlContextToken:t}}var Vm="Calibri, Carlito, Helvetica, Arial, sans-serif",F0=4096,A0=256;function Wm(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 $m(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 Xm=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function Ym(e=null){return e!=null&&typeof e.measureText=="function"}function Km(e={}){let n=e.scale??1;if(!(n>0)||!Number.isFinite(n))return null;let t=e.fallbackFamily??Vm,r=e.context??null;if(!Ym(r))return null;let o=r,a=$m(Wm(e.maxWidthEntries,F0)),i=$m(Wm(e.maxMetricsEntries,A0)),l=e.fontAlias,s=c=>{let u=c.fontFamily&&Xm.test(c.fontFamily)?c.fontFamily:null,f=u?l?.(u):void 0,p=f&&Xm.test(f)?f:null,m=u?p?`"${p}", "${u}", ${t}`:`"${u}", ${t}`:t,b=c.bold?"bold":"normal",h=c.italic?"italic":"normal",y=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*n;return `${h} ${b} ${y}px ${m}`},d=(c,u,f)=>c/n*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=s(u),p=`${f}\0${c}`,m=a.get(p);if(m!==void 0)return d(m,c,u);o.font=f;let b=o.measureText(c).width;return a.set(p,b),d(b,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=s(c),p=i.get(f);if(p)return p;let m=u*1.15,b=u*.8;o.font=f;let h=o.measureText("Hxg"),y=h.fontBoundingBoxAscent,x=h.fontBoundingBoxDescent;if(typeof y=="number"&&Number.isFinite(y)&&y>0&&(b=y/n,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let S=(y+x)/n;S>0&&(m=S);}m>0||(m=u*1.15);let I={height:m,baseline:b};return i.set(f,I),I}}}function D0(e=1,n={}){let t=Km({...n,scale:n.scale??e});return t?{measurer:t,producer:n.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:Ui(),producer:"fixed-measurer"}}function _0(e){return e.box}function Um(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)Um(o,n);}function z0(e){let n=new Map,t=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkQIFQTG57_cjs.ae*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=chunkQIFQTG57_cjs.ke(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 H0(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 j0(e,n){let t=chunkQIFQTG57_cjs.oe(e.root);if(t.length===0)return G0;let r=new Map;n.pages.forEach((i,l)=>{(d=>{for(let c of d){let u=new Set;Um(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:l,box:_0(c)}),r.set(f,p);}}})(i.fragments);});let o=z0(e.root),a=[];for(let i of t){let l=chunkQIFQTG57_cjs.me(i.node),s=[...i.ancestors.map(f=>chunkQIFQTG57_cjs.me(f).lock),l.lock],d=o.get(i.node.id)??[],c=new Map;for(let f of d)for(let p of r.get(f)??[]){let m=c.get(p.pageIndex);c.set(p.pageIndex,m?H0(m,p.box):p.box);}let u=[...c.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:l.type,level:chunkQIFQTG57_cjs.ne(i.node),depth:i.depth,lock:l.lock,effectiveLock:chunkQIFQTG57_cjs.re(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 G0=Object.freeze([]);var Zm=e=>e.verticalAlign==="baseline"?1:.75;function qm(e){let n=Math.round(e.fontSizePt*2);return Math.max(1,n)}function W0(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=(p,m)=>`${p.identity}|${qm(m)}`,f=(p,m,b)=>n.shape({text:p,fontSizeHalfPoints:qm(b),bidiLevel:0,environment:Yt({font:m,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:l,language:s,direction:"ltr",features:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})});return {measure(p,m){if(p.length===0)return 0;let b=t(m);if(!b)return r.measure(p,m);let h=`${u(b,m)}|${p}`,y=d.get(h);if(y===void 0){let x=0;try{for(let I of f(p,b,m).glyphs)x+=I.advanceX;}catch{return r.measure(p,m)}y=x/i,d.set(h,y);}return y*Zm(m)*(m.horizontalScalePercent/100)+p.length*m.characterSpacingPt},lineMetrics(p){let m=t(p);if(!m)return r.lineMetrics(p);let b=Zm(p),h=u(m,p),y=c.get(h);if(y)return b===1?y:{height:y.height*b,baseline:y.baseline*b};let x,I=true;try{let S=f(" ",m,p),_=S.metrics.ascent/i,F=S.metrics.descent/i,A=_+F;A>0?x={height:A,baseline:_}:(x=r.lineMetrics(p),I=!1);}catch{x=r.lineMetrics(p),I=false;}return I?(c.set(h,x),b===1?x:{height:x.height*b,baseline:x.baseline*b}):x}}}function $0(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=X0(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 X0(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 Jm=["text-local","paragraph-local","flow-structural","global"];function Qm(e,n){return Jm.indexOf(n)>Jm.indexOf(e)?n:e}function V0(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function Y0(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 I=x.step();if(I)return I;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=p(t());y.impact=Qm(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 f=h=>({impact:h.impact,paragraphIds:h.paragraphIds,created:h.created,deleted:h.deleted,dependencyKeys:h.dependencyKeys,structural:h.structural,revision:h.revision});function p(h){return a||(a=V0(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,b();}));}function b(){i&&(i(),i=null),l&&(l.cancel(),l=null,d+=1);let h=a;if(!h)return false;a=null;let y=f(h),x=c(y);return !x||x.revision!==t()?(s+=1,u(y),m(),false):(r(x,y),true)}return {notify(h){let y=p(h.toRevision);y.impact=Qm(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=p(h);x.impact="flow-structural",x.structural=true,y&&x.dependencyKeys.add(y),m();},flush:b,pending:()=>a?f(a):null,cancel(){i?.(),i=null,l?.cancel(),l=null,a=null;},get staleDiscards(){return s},get cancelledRuns(){return d}}}var eg=new WeakMap;function fr(e){let n=eg.get(e);if(n)return n;let t=new Map,r=(o,a)=>{let i=l=>{for(let s of l){if(s.kind==="paragraph"){for(let d of s.lines){let c=t.get(d.range.paragraphId),u={line:d,pageIndex:a};c?c.push(u):t.set(d.range.paragraphId,[u]);}continue}for(let d of s.rows)if(!d.isHeaderRepeat)for(let c of d.cells)i(c.blocks);}};i(o);};for(let o of e.pages){for(let a of Rn(o))for(let i of a.lines){let l=t.get(i.range.paragraphId),s={line:i,pageIndex:o.index};l?l.push(s):t.set(i.range.paragraphId,[s]);}o.header&&r(o.header.fragments,o.index),o.footer&&r(o.footer.fragments,o.index);for(let a of [o.footnotes,o.endnotes])if(a)for(let i of a.notes)r(i.fragments,o.index);}return eg.set(e,t),t}function ca(e,n,t){for(let o of e.drawings??[]){if(n===o.start)return o.advanceStart;if(n===o.start+1)return o.advanceEnd}let r=e.contentX;for(let o of e.spans){if(n<=o.range.start)return o.box.x;if(n>=o.range.end){r=o.box.x+o.box.width;continue}return ki(o,n,t)}return r}function K0(e,n,t){let r=fr(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 U0(e,n,t){for(let{line:r}of fr(e).get(n)??[])if(r.range.start===t&&r.drawings?.some(o=>o.start===t))return r;return null}function Z0(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 q0(e,n){for(let t of e.spans)if(!(n<=t.range.start||n>=t.range.end)&&(t.projected||t.text.length!==t.range.end-t.range.start))return true;return false}function rg(e){let n=e.spans[e.spans.length-1]?.text;return n===`
10
+ `||n===chunkQIFQTG57_cjs.Vb}function og(e,n,t,r,o,a){for(let i=t.range.start;i<=t.range.end;i+=1)if(!(i===t.range.end&&i>t.range.start&&rg(t)&&K0(n,t,i))){if(i===t.range.start&&i>o&&e.length>0){let l=e[e.length-1];if(l.position.paragraphId===t.range.paragraphId&&l.position.offset===i)continue}q0(t,i)||Z0(t,i)||e.push({position:{paragraphId:t.range.paragraphId,offset:i},x:ca(t,i,a),y:t.box.y,height:t.box.height,lineId:t.id,pageIndex:r});}}function ag(e,n,t,r,o){for(let a of n){if(a.kind==="paragraph"){for(let i of a.lines)og(r,e,i,t,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let l of i.cells)ag(e,l.blocks,t,r,o);}}function ig(e,n){let t=[];for(let r of e.pages)for(let o of Rn(r))for(let a of o.lines)og(t,e,a,r.index,o.range.start,n);return t}function J0(e,n,t,r){if(!e.pages[n])return [];let o=[];return ag(e,t,n,o,r),o}function Q0(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function lg(e,n,t){let r=Q0(t),o=fr(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){if(n.offset<s.range.start||n.offset>s.range.end)continue;if(n.offset===s.range.end&&n.offset>s.range.start&&rg(s)){l??={line:s,pageIndex:d};continue}if(n.offset===s.range.end&&n.offset>s.range.start&&U0(e,n.paragraphId,n.offset))continue;let c=ra(s,n.offset,r.measurer);return {position:n,x:c.x,y:c.y,height:c.height,lineId:s.id,pageIndex:d}}if(l){let s=ra(l.line,n.offset,r.measurer);return {position:n,x:s.x,y:s.y,height:s.height,lineId:l.line.id,pageIndex:l.pageIndex}}return null}function ew(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return Bi(e,t,n)?.caret??null}function nw(e,n){let t=n.pageIndex!==void 0&&e.pages[n.pageIndex]?n.pageIndex:0;return Ci(e,t,n)}function tw(e){return $l(e)}function rw(e,n){let t=dg(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){let l=Qi(e,i,t.from,t.to);if(!l)continue;let s=ca(i,l.start),d=ca(i,l.end);r.push({pageIndex:o.index,x:Math.min(s,d),y:i.box.y,width:Math.abs(d-s),height:i.box.height});}return r}function ow(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 n){let s=Qi(e,i,l.from,l.to);if(!s)continue;let d=ca(i,s.start),c=ca(i,s.end),u=r.get(l.key)??[];u.push({pageIndex:o.index,x:Math.min(d,c),y:i.box.y,width:Math.abs(c-d),height:i.box.height}),r.set(l.key,u);}return r}function Qi(e,n,t,r){let o=sg(e),a=o.get(n.range.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.range.start,t.offset):n.range.start,d=a===l?Math.min(n.range.end,r.offset):n.range.end;return d>s?{start:s,end:d}:null}var ng=new WeakMap,tg=new WeakMap;function el(e){let n=ng.get(e);if(n)return n;let t=new Set,r=[];for(let o of e.pages)for(let a of Rn(o))t.has(a.paragraphId)||(t.add(a.paragraphId),r.push(a.paragraphId));return ng.set(e,r),r}function sg(e){let n=tg.get(e);if(n)return n;let t=new Map;for(let[r,o]of el(e).entries())t.set(o,r);return tg.set(e,t),t}function dg(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=el(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 ua(e,n){let t=[],r=new Set;for(let{line:a}of fr(e).get(n)??[]){for(let i of a.spans){if(i.range.end===i.range.start)continue;let l=`${i.range.start}:${i.range.end}`;r.has(l)||(r.add(l),t.push({start:i.range.start,text:i.text}));}for(let i of a.drawings??[]){let l=i.start,s=l+1,d=`${l}:${s}`;r.has(d)||(r.add(d),t.push({start:l,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}var aw=/[\p{L}\p{N}_'\u2019]/u;function cg(e,n,t){let r=a=>{let i=e[a];return i!==void 0&&aw.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}function iw(e,n,t,r=null,o={}){let a=o.stops?[...o.stops]:ig(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=ua(e,n.paragraphId),d=t==="wordLeft"?-1:1,c=cg(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(p=>p.pageIndex===d);if(c.length===0)return {position:(t==="pageUp"?a[0]:a[a.length-1]).position,desiredX:s};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-l.y)*1e3+Math.abs(p.x-s);m<f&&(f=m,u=p);}return {position:u.position,desiredX:s}}case "up":case "down":{let s=r??l.x,d=[];for(let m of a)d.includes(m.lineId)||d.push(m.lineId);let c=d.indexOf(l.lineId),u=t==="up"?c-1:c+1;if(u<0||u>=d.length)return {position:(t==="up"?a[0]:a[a.length-1]).position,desiredX:s};let f=a.filter(m=>m.lineId===d[u]),p=f[0];for(let m of f)Math.abs(m.x-s)<Math.abs(p.x-s)&&(p=m);return {position:p.position,desiredX:s}}default:return null}}function lw(e,n){return lg(e,n)}function sw(e,n){let t=dg(e,n);if(!t)return [];if(t.from.paragraphId===t.to.paragraphId&&t.from.offset===t.to.offset)return dw(e,t.from);let r=[];if(t.from.paragraphId===t.to.paragraphId){for(let{line:d}of fr(e).get(t.from.paragraphId)??[]){let c=Qi(e,d,t.from,t.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&r.push(u);}return r}let o=el(e),a=sg(e),i=fr(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=Qi(e,c,t.from,t.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&r.push(f);}return r}function dw(e,n){let t=null;for(let{line:r}of fr(e).get(n.paragraphId)??[])for(let o of r.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 ug=new WeakMap;function At(e){let n=ug.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 f of d.rows){let p=u.get(f.id);p===void 0&&(p=u.size,u.set(f.id,p),r.get(c).set(p,f.cells));for(let m of f.cells)t.get(c).push({pageIndex:s,tableId:c,row:f,cell:m,rowIndex:p,isHeaderRepeat:f.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 ug.set(e,i),i}function fg(e){let n=0;for(let t of e.rows.values())for(let r of t)n=Math.max(n,Ft(r).to+1);return n}var Ft=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function cw(e,n,t){if(n.tableId!==t.tableId)return null;let r=At(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(Ft(n).from,Ft(t).from),l=Math.max(Ft(n).to,Ft(t).to),s=p=>{let{from:m,to:b}=Ft(p);return b>=i&&m<=l},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&s(m)),c=r.rows.size+fg(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[b,h]of r.rows)if(!(b<o||b>a))for(let y of h){if(!s(y))continue;let{from:x,to:I}=Ft(y);x<i&&(i=x,m=true),I>l&&(l=I,m=true);}for(;o>0&&d(o);)o-=1,m=true;for(;d(a+1);)a+=1,m=true;if(!m)break}let u=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:m,to:b}=Ft(p.cell);b<i||m>l||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.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:uw(e,n.tableId,u)}}function nl(e,n){let t=new Set(n),r=[],o=new Set;for(let a of At(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"){t.has(e.paragraphId)||(t.add(e.paragraphId),n.push(e.paragraphId));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 uw(e,n,t){let r=nl(e,t),o=r[0],a=r[r.length-1];return !o||!a?fw(e,n):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:ua(e,a).length}}}function fw(e,n){let t=At(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 pw(e,n){let t=new Set(nl(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 mw(e,n){let t=new Set(n),r=[];for(let o of At(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 gw(e,n){let t=At(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=nl(e,[i.cell.id]).map(d=>ua(e,d)).join(`
11
+ `),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(`
12
+ `)}function Wd(e,n){let t=null,r=-1;for(let[o,a]of At(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:fg(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return t}function Iv(e,n,t){if(t){let a=Wd(e,n);if(!a||a.tableId!==t.tableId)return null;let i=t.cellIds[0];if(!i)return null;let l=At(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=Wd(e,n);if(!r)return null;let o=At(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.$=Ea;exports.$a=Kn;exports.$b=ud;exports.$c=Rm;exports.A=Ca;exports.Aa=Jh;exports.Ab=gi;exports.Ac=Di;exports.Ad=lw;exports.B=Bh;exports.Ba=Qh;exports.Bb=hi;exports.Bc=_i;exports.Bd=sw;exports.C=Oh;exports.Ca=ey;exports.Cb=yi;exports.Cc=NS;exports.Cd=cw;exports.D=Ch;exports.Da=rs;exports.Db=$s;exports.Dc=zi;exports.Dd=nl;exports.E=jl;exports.Ea=Er;exports.Eb=Df;exports.Ec=em;exports.Ed=pw;exports.F=Qc;exports.Fa=as;exports.Fb=Xs;exports.Fc=sr;exports.Fd=mw;exports.G=eu;exports.Ga=is;exports.Gb=rr;exports.Gc=FS;exports.Gd=gw;exports.H=nu;exports.Ha=To;exports.Hb=Fn;exports.Hc=ia;exports.Hd=Wd;exports.I=tu;exports.Ia=ay;exports.Ib=Si;exports.Ic=nm;exports.Id=Iv;exports.J=ru;exports.Ja=Mr;exports.Jb=qo;exports.Jc=Qr;exports.K=ou;exports.Ka=ls;exports.Kb=tp;exports.Kc=la;exports.L=Mh;exports.La=Zt;exports.Lb=rp;exports.Lc=tm;exports.M=Nh;exports.Ma=sy;exports.Mb=Jo;exports.Mc=DS;exports.N=Br;exports.Na=dy;exports.Nb=Zr;exports.Nc=rm;exports.O=Fh;exports.Oa=ct;exports.Ob=ed;exports.Oc=kd;exports.P=Wl;exports.Pa=Bt;exports.Pb=ip;exports.Pc=Hi;exports.Q=bo;exports.Qa=wu;exports.Qb=Wx;exports.Qc=om;exports.R=Rn;exports.Ra=us;exports.Rb=qr;exports.Rc=am;exports.S=au;exports.Sa=Ru;exports.Sb=nd;exports.Sc=sa;exports.T=iu;exports.Ta=fs;exports.Tb=td;exports.Tc=im;exports.U=Ow;exports.Ua=Pu;exports.Ub=od;exports.Uc=ji;exports.V=zh;exports.Va=ut;exports.Vb=ad;exports.Vc=Ed;exports.W=Hh;exports.Wa=ps;exports.Wb=bp;exports.Wc=fm;exports.X=$l;exports.Xa=ms;exports.Xb=xp;exports.Xc=Md;exports.Y=La;exports.Ya=Yn;exports.Yb=Sp;exports.Yc=Nd;exports.Z=Xl;exports.Za=dn;exports.Zb=id;exports.Zc=Ad;exports._=lu;exports._a=Lt;exports._b=Ri;exports._c=Wi;exports.a=Wn;exports.aa=Or;exports.ab=wy;exports.ac=ta;exports.ad=Pm;exports.b=Yt;exports.ba=Kl;exports.bb=hs;exports.bc=Qx;exports.bd=Tm;exports.c=Gc;exports.ca=cu;exports.cb=ft;exports.cc=Bi;exports.cd=u0;exports.d=Ll;exports.da=So;exports.db=Un;exports.dc=KP;exports.dd=Yi;exports.e=Ia;exports.ea=uu;exports.eb=ys;exports.ec=eS;exports.ed=Ui;exports.f=Pg;exports.fa=fu;exports.fb=Iy;exports.fc=Ci;exports.fd=b0;exports.g=mo;exports.ga=kr;exports.gb=pt;exports.gc=Cp;exports.gd=Vm;exports.h=Ig;exports.ha=pu;exports.hb=Qt;exports.hc=ki;exports.hd=Ym;exports.i=Tg;exports.ia=Ul;exports.ib=bs;exports.ic=ra;exports.id=Km;exports.j=ze;exports.ja=Zl;exports.jb=er;exports.jc=fS;exports.jd=D0;exports.k=eh;exports.ka=ql;exports.kb=Ay;exports.kc=qP;exports.kd=j0;exports.l=$c;exports.la=Jl;exports.lb=RR;exports.lc=JP;exports.ld=W0;exports.m=gh;exports.ma=st;exports.mb=Os;exports.mc=QP;exports.md=$0;exports.n=Ta;exports.na=wo;exports.nb=Qa;exports.nc=eI;exports.nd=Y0;exports.o=yh;exports.oa=fn;exports.ob=ai;exports.oc=nI;exports.od=ig;exports.p=bh;exports.pa=Tt;exports.pb=hf;exports.pc=Mi;exports.pd=J0;exports.q=xh;exports.qa=Uh;exports.qb=Yr;exports.qc=Tn;exports.qd=lg;exports.r=Al;exports.ra=Ql;exports.rb=Ub;exports.rc=xt;exports.rd=ew;exports.s=_l;exports.sa=Lr;exports.sb=Ur;exports.sc=Ni;exports.sd=nw;exports.t=Mn;exports.ta=es;exports.tb=xf;exports.tc=kI;exports.td=tw;exports.u=Rh;exports.ua=Na;exports.ub=ht;exports.uc=Id;exports.ud=rw;exports.v=Ph;exports.va=Ro;exports.vb=Xo;exports.vc=Td;exports.vd=ow;exports.w=Ih;exports.wa=ns;exports.wb=vf;exports.wc=vd;exports.wd=el;exports.x=Oa;exports.xa=ts;exports.xb=Yo;exports.xc=Ai;exports.xd=ua;exports.y=vh;exports.ya=Po;exports.yb=li;exports.yc=Dn;exports.yd=cg;exports.z=zl;exports.za=qh;exports.zb=Mf;exports.zc=Qp;exports.zd=iw;