@docx-editor.dev/core 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +6 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +16 -10
- package/dist/binding.js +1 -1
- package/dist/chunk-24APKZAN.cjs +11 -0
- package/dist/chunk-2YH4MSHX.cjs +2 -0
- package/dist/chunk-5Y7AADI6.js +1 -0
- package/dist/chunk-AREFLNUP.js +11 -0
- package/dist/chunk-AS7YZNQE.cjs +2 -0
- package/dist/chunk-AVGCKH6A.cjs +20 -0
- package/dist/chunk-CDYVDQRI.cjs +5 -0
- package/dist/chunk-FGBADUSK.cjs +1 -0
- package/dist/chunk-HOEWFH5U.cjs +1 -0
- package/dist/chunk-KFELX7CN.js +2 -0
- package/dist/{chunk-OKEDGR65.js → chunk-KXPVOPR5.js} +1 -1
- package/dist/chunk-LGFKIF4M.cjs +1 -0
- package/dist/chunk-M52QXFKI.js +1 -0
- package/dist/chunk-MNUKSXRO.js +1 -0
- package/dist/chunk-PBOIGBDO.js +2 -0
- package/dist/chunk-PMHGONET.cjs +1 -0
- package/dist/chunk-PXKZUTHX.cjs +2 -0
- package/dist/chunk-Q4AB7E4O.cjs +1 -0
- package/dist/chunk-QJYH6AYD.js +1 -0
- package/dist/chunk-QRC37MWG.cjs +20 -0
- package/dist/chunk-RJSB6RJ7.js +20 -0
- package/dist/chunk-SB54HLFJ.js +20 -0
- package/dist/chunk-VP7SDFCM.js +1 -0
- package/dist/chunk-XCESLTJL.js +2 -0
- package/dist/{chunk-KIAP7PFQ.cjs → chunk-YL4Q5LZP.cjs} +1 -1
- package/dist/chunk-Z4527AXR.js +5 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +4 -3
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.ts +8 -7
- package/dist/{custom-node-writes-DntmaAVW.d.ts → custom-node-writes-C9ArIlJh.d.ts} +2 -2
- package/dist/{editor-a6VvsfYU.d.ts → editor-sRxrFJd8.d.ts} +29 -21
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.ts +27 -58
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -0
- package/dist/export.d.ts +337 -0
- package/dist/export.js +2 -0
- package/dist/font-resolver-BYEHQGTw.d.ts +251 -0
- package/dist/headless-document-view-DELC4E5v.d.ts +134 -0
- package/dist/hf-references-DTrHkktY.d.ts +70 -0
- package/dist/{index-C5ZnSRkF.d.ts → index-C3Gvq4jN.d.ts} +55 -246
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -16
- package/dist/index.js +1 -1
- package/dist/{shaped-measurer-CFPnXFs9.d.cts → layout-shaping-DoGR5cf8.d.ts} +86 -12
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +1106 -729
- package/dist/layout.js +1 -1
- package/dist/{note-properties-CDFiNXcD.d.ts → note-properties-DSe8igrz.d.ts} +2 -2
- package/dist/{omml-equation-BY49UOIF.d.ts → omml-equation-BpRmfDAf.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-gOY5GA8K.d.cts → protocol-DZzKxH5r.d.ts} +18 -12
- package/dist/{review-items-CCS1h93f.d.ts → review-items-DYRx187i.d.ts} +2 -2
- package/dist/{review-reads-BjZYeMd4.d.ts → review-reads-LbGUdNzn.d.ts} +22 -25
- package/dist/{revision-projection-BeXVrSSV.d.ts → revision-projection-DHRJH48u.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BK91NCCG.d.ts → semantic-cell-selection-BXVWCBYm.d.ts} +4 -4
- package/dist/{semantic-interaction-BmQ7h2cq.d.ts → semantic-interaction-DZsDmPg5.d.ts} +1 -1
- package/dist/{semantic-paint-WJD2KeG1.d.ts → semantic-paint-f7SqN4oW.d.ts} +2 -2
- package/dist/{semantic-records-BpozY7-j.d.cts → semantic-records-EIdwId-a.d.ts} +301 -205
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +15 -65
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-D6HzlPR4.d.ts → tree-op-types-egdarvH_.d.ts} +7 -3
- package/dist/{tree-package-fragment-CWFjgH6a.d.ts → tree-package-fragment-DjkH4ESI.d.ts} +4 -70
- package/dist/{tree-session-contract-B2HfGt79.d.ts → tree-session-contract-CGOOgPjW.d.ts} +29 -23
- package/dist/{tree-store-APgWx6qn.d.ts → tree-store-DKJB0IcA.d.ts} +2 -2
- package/package.json +7 -2
- package/dist/automation.d.cts +0 -82
- package/dist/binding.d.cts +0 -153
- package/dist/chunk-2PIHW2QM.cjs +0 -1
- package/dist/chunk-2QTY5S6T.js +0 -1
- package/dist/chunk-4Z5MODAE.cjs +0 -2
- package/dist/chunk-5TKAPFZT.cjs +0 -2
- package/dist/chunk-DRQHIQ4R.cjs +0 -1
- package/dist/chunk-F2K6SDHA.cjs +0 -20
- package/dist/chunk-FBA57EUJ.js +0 -2
- package/dist/chunk-KTAQ7BRQ.js +0 -20
- package/dist/chunk-LBAHXZCU.cjs +0 -5
- package/dist/chunk-MCDUQYWP.js +0 -5
- package/dist/chunk-MQP26KCF.js +0 -1
- package/dist/chunk-NDJGSR6M.cjs +0 -19
- package/dist/chunk-NJNFJPGB.cjs +0 -11
- package/dist/chunk-O5M4CR4P.cjs +0 -2
- package/dist/chunk-UKUOZXUD.js +0 -19
- package/dist/chunk-VQ4R5LTU.js +0 -2
- package/dist/chunk-ZBEJHJN2.js +0 -11
- package/dist/chunk-ZVTW7RGD.js +0 -2
- package/dist/collaboration/replication.d.cts +0 -216
- package/dist/collaboration.d.cts +0 -176
- package/dist/contracts/document.d.cts +0 -273
- package/dist/contracts/editor.d.cts +0 -10
- package/dist/contracts/interaction.d.cts +0 -10
- package/dist/contracts/modules.d.cts +0 -130
- package/dist/contracts/types.d.cts +0 -562
- package/dist/custom-node-writes-C46r3_5O.d.cts +0 -310
- package/dist/document-properties-D6Ahr8D6.d.cts +0 -28
- package/dist/document-properties-D6Ahr8D6.d.ts +0 -28
- package/dist/editor-AJ06hyyg.d.cts +0 -1994
- package/dist/editor.d.cts +0 -393
- package/dist/failure-BnGjoXf0.d.cts +0 -64
- package/dist/index-Cbw4lkOt.d.cts +0 -3391
- package/dist/index.d.cts +0 -23
- package/dist/layout.d.cts +0 -2486
- package/dist/note-properties-Y6qYh2Hv.d.cts +0 -67
- package/dist/omml-equation-DB8d-jCq.d.cts +0 -84
- package/dist/output.d.cts +0 -74
- package/dist/protocol-BsmQgblT.d.ts +0 -1358
- package/dist/review-items-CaAkgi5s.d.cts +0 -360
- package/dist/review-reads-DEsV0OOW.d.cts +0 -163
- package/dist/revision-projection-DXbrfNGD.d.cts +0 -156
- package/dist/semantic-cell-selection-BMhku3B1.d.cts +0 -451
- package/dist/semantic-interaction-DUAnxbgf.d.cts +0 -160
- package/dist/semantic-paint-DufNL1Zr.d.cts +0 -247
- package/dist/semantic-records-92UnKeU_.d.ts +0 -2821
- package/dist/shaped-measurer-BWbindlI.d.ts +0 -168
- package/dist/store.d.cts +0 -2500
- package/dist/tree-op-types-BUulYD5y.d.cts +0 -3099
- package/dist/tree-package-fragment-Dhyw7oPm.d.cts +0 -732
- package/dist/tree-session-contract-BY9xd7s_.d.cts +0 -613
- package/dist/tree-store-DEEQ9wz_.d.cts +0 -416
package/dist/chunk-NDJGSR6M.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkDRQHIQ4R_cjs=require('./chunk-DRQHIQ4R.cjs'),chunk5TKAPFZT_cjs=require('./chunk-5TKAPFZT.cjs'),chunk4Z5MODAE_cjs=require('./chunk-4Z5MODAE.cjs'),chunkNJNFJPGB_cjs=require('./chunk-NJNFJPGB.cjs');var aw=Symbol("validated-resolved-font"),iw=4,Sc=64*1024*1024,Rc=256,Pc=128*1024*1024,sr=class extends Error{name="FontResolutionError";request;code;limit;actual;diagnostic;expectedHash;actualHash;constructor(t,n,r={}){super(`Font resolution failed (${t}) for ${Fo(n)}`),this.code=t,this.request=Mo(n),this.limit=r.limit,this.actual=r.actual,this.diagnostic=r.diagnostic,this.expectedHash=r.expectedHash,this.actualHash=r.actualHash;}},Ym=e=>{if(e.family.trim().length===0)throw new TypeError("Font family must not be empty");if(!Number.isInteger(e.weight)||e.weight<1||e.weight>1e3)throw new RangeError("Font weight must be an integer from 1 through 1000");if(e.style!=="normal"&&e.style!=="italic")throw new TypeError("Font style must be normal or italic")},Mo=e=>(Ym(e),Object.freeze({family:e.family,weight:e.weight,style:e.style})),Um=e=>{if(!Number.isFinite(e.heightEm)||!Number.isFinite(e.baselineEm)||e.heightEm<=0||e.heightEm>iw||e.baselineEm<0||e.baselineEm>e.heightEm)throw new RangeError("Font substitution line metrics must fit within a bounded em box");return Object.freeze({heightEm:e.heightEm,baselineEm:e.baselineEm})},Fo=e=>(Ym(e),JSON.stringify([e.family,e.weight,e.style])),wc=class{[aw]=true;id;identity;request;family;byteLength;hash;faceIndex;substitution;constructor(t,n){if(t.id.length===0)throw new TypeError("Resolved font id must not be empty");if(!Number.isInteger(t.faceIndex)||t.faceIndex<0)throw new RangeError("Font face index must be a non-negative integer");this.id=t.id,this.request=Mo(t.request),this.family=this.request.family,this.hash=t.hash,this.faceIndex=t.faceIndex,this.identity=`${this.hash}#${this.faceIndex}`,this.byteLength=t.byteLength,this.substitution=null,n&&(this.substitution=Object.freeze({requested:Mo(n.requested),resolved:Mo(n.resolved),...n.lineMetrics?{lineMetrics:Um(n.lineMetrics)}:{}})),Object.freeze(this);}get bytes(){return ws(this).slice()}},qm=new WeakSet,Zm=new WeakMap,Jm=new WeakMap,Qm=(e,t,n,r)=>{let o=new wc(e,r);return Zm.set(o,t),Jm.set(o,n),qm.add(o),o},ws=e=>{Eo(e);let t=Zm.get(e);if(!t)throw new TypeError("Resolved font has no owned byte capability");return t},vs=e=>{Eo(e);let t=Jm.get(e);if(!t)throw new TypeError("Resolved font has no admitted table metadata");return t},Eo=e=>{if(typeof e!="object"||e===null||!qm.has(e))throw new TypeError("Shaping requires a validated resolved font")},eg=(e,t)=>e[t]<<8|e[t+1],Bo=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Km=(e,t)=>{if(t>e.byteLength-12)return {valid:false,diagnostic:"truncated sfnt header"};let n=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]);if(!(e[t]===0&&e[t+1]===1&&e[t+2]===0&&e[t+3]===0)&&n!=="OTTO"&&n!=="true"&&n!=="typ1")return {valid:false,diagnostic:"unsupported sfnt signature"};let o=eg(e,t+4),a=t+12+o*16;if(!Number.isSafeInteger(a)||a>e.byteLength)return {valid:false,diagnostic:"truncated sfnt table directory"};for(let i=0;i<o;i+=1){let s=t+12+i*16,l=Bo(e,s+8),d=Bo(e,s+12);if(l>e.byteLength||d>e.byteLength-l)return {valid:false,diagnostic:"sfnt table range exceeds font bytes"}}return {valid:true}},sw=(e,t)=>{let r=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?Bo(e,12+t*4):0,o=eg(e,r+4),a=new Set;for(let i=0;i<o;i+=1){let s=r+12+i*16;a.add(String.fromCharCode(e[s],e[s+1],e[s+2],e[s+3]));}return Object.freeze(a)},Is=(e,t)=>{if(!Number.isSafeInteger(t)||t<0)return {valid:false,diagnostic:"invalid font face index"};if(e.byteLength<12)return {valid:false,diagnostic:"truncated sfnt header"};if(String.fromCharCode(e[0],e[1],e[2],e[3])!=="ttcf")return t!==0?{valid:false,diagnostic:"standalone sfnt has only face index zero"}:Km(e,0);let r=Bo(e,4);if(r!==65536&&r!==131072)return {valid:false,diagnostic:"unsupported TTC version"};let o=Bo(e,8),a=12+o*4;if(o===0||!Number.isSafeInteger(a)||a>e.byteLength||t>=o)return {valid:false,diagnostic:"invalid TTC face directory"};let i=Bo(e,12+t*4);return i<a?{valid:false,diagnostic:"invalid TTC face offset"}:Km(e,i)},lw=(e,t,n,r)=>{if(e.availability==="forbidden")return {kind:"forbidden"};if(e.bytes.byteLength>t)return {kind:"overLimit",actual:e.bytes.byteLength};let o=e.bytes.slice();r?.onOwnedByteCopy?.(),r?.onHash?.();let a=chunkNJNFJPGB_cjs.a(o);if(e.hash!==a)return {kind:"hashMismatch",expectedHash:e.hash,actualHash:a};let i=Is(o,e.faceIndex);if(!i.valid)return {kind:"malformed",diagnostic:i.diagnostic};r?.onTableScan?.();let s=sw(o,e.faceIndex);try{let d=n(o,e.faceIndex);if(!d.valid)return {kind:"malformed",diagnostic:d.diagnostic}}catch(d){return {kind:"malformed",diagnostic:d instanceof Error?d.message:"font validator threw"}}let l={kind:"resolved",font:Qm({...e,byteLength:o.byteLength},o,s)};return r?.onAdmission?.(),l},dw=e=>{if(!Number.isSafeInteger(e.epoch)||e.epoch<0)throw new RangeError("Font resource epoch must be a non-negative safe integer");if(!Number.isSafeInteger(e.maxFontBytes)||e.maxFontBytes<=0||e.maxFontBytes>Sc)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${Sc}`);if(typeof e.validateFont!="function")throw new TypeError("Font snapshot requires a validator");if(e.resources.length>Rc)throw new RangeError(`Font source count must not exceed ${Rc}`);let t=0;for(let l of e.resources){if(l.bytes.byteLength>Pc-t)throw new RangeError(`Aggregate font bytes must not exceed ${Pc}`);t+=l.bytes.byteLength;}let n=e.epoch,r=e.maxFontBytes,o=e.validateFont,a=new Map;for(let l of e.resources){let d=Fo(l.request);if(a.has(d))throw new TypeError(`Duplicate font resource request: ${d}`);a.set(d,lw(l,r,o,e.instrumentation));}let i=new Map;for(let l of e.substitutions??[]){let d=Fo(l.from);if(i.has(d))throw new TypeError(`Duplicate font substitution request: ${d}`);i.set(d,Object.freeze({to:Mo(l.to),...l.lineMetrics?{lineMetrics:Um(l.lineMetrics)}:{}}));}return Object.freeze({epoch:n,resolve:l=>{let d=Mo(l),c=Fo(d),u=i.get(c),f=u?.to??d,p=a.get(Fo(f));return p?p.kind==="forbidden"?new sr("forbidden",d):p.kind==="overLimit"?new sr("overLimit",d,{limit:r,actual:p.actual}):p.kind==="malformed"?new sr("malformed",d,{diagnostic:p.diagnostic}):p.kind==="hashMismatch"?new sr("hashMismatch",d,{expectedHash:p.expectedHash,actualHash:p.actualHash}):u?Qm({request:p.font.request,id:p.font.id,hash:p.font.hash,faceIndex:p.font.faceIndex,byteLength:p.font.byteLength},ws(p.font),vs(p.font),{requested:d,resolved:u.to,...u.lineMetrics?{lineMetrics:u.lineMetrics}:{}}):p.font:new sr("missing",d)}})};var xn=e=>{if(!Number.isSafeInteger(e))throw new RangeError("Fixed-point value must be a safe integer");return e},Ts=(e,t)=>{if(e.trim().length===0||/[\u0000-\u001f\u007f]/.test(e))throw new TypeError(`${t} must be non-blank and contain no control characters`)},cw=(e,t)=>{if(!/^[\x20-\x7e]{4}$/.test(e))throw new TypeError(`${t} must be a four-byte ASCII tag`)},tg=(e,t,n)=>{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(cw(a,`${t} key`),!Number.isFinite(i)||n&&(!Number.isSafeInteger(i)||i<0))throw new RangeError(`${t} value must be ${n?"a non-negative safe integer":"finite"}`);if(n&&i>4294967295)throw new RangeError(`${t} value must fit an unsigned 32-bit integer`);o[a]=i;}return Object.freeze(o)},vc=e=>Object.freeze({family:e.family,weight:e.weight,style:e.style}),uw=e=>e?Object.freeze({requested:vc(e.requested),resolved:vc(e.resolved),...e.lineMetrics?{lineMetrics:Object.freeze({...e.lineMetrics})}:{}}):void 0,ng=new WeakSet,Tc=e=>{if(Eo(e),!ng.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");ng.add(e);}},Ic=e=>(Tc(e),e),Os=e=>(Tc(e),Object.freeze({identity:e.identity,id:e.id,family:e.family,request:vc(e.request),hash:e.hash,faceIndex:e.faceIndex,byteLength:e.byteLength,substitution:uw(e.substitution)??null})),_r=e=>{if(Ts(e.shapingLibrary.name,"shaping library name"),Ts(e.shapingLibrary.version,"shaping library version"),Ts(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(Ts(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 t=Ic(e.font),n=e.fallbackOrder.map(Ic),r=new Set;for(let o of n){let a=JSON.stringify(Os(o));if(r.has(a))throw new TypeError("fallback order contains a duplicate font");r.add(a);}return Object.freeze({font:t,variationAxes:tg(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:tg(e.features,"OpenType feature",true),fallbackOrder:Object.freeze([...n]),fixedPointScale:e.fixedPointScale,roundingMode:e.roundingMode})},og=e=>{let t=_r(e);return Object.freeze({font:Os(t.font),variationAxes:Object.freeze(Object.entries(t.variationAxes).map(n=>Object.freeze(n))),shapingLibrary:Object.freeze({name:t.shapingLibrary.name,version:t.shapingLibrary.version}),unicodeDataVersion:t.unicodeDataVersion,normalization:t.normalization,script:t.script,language:t.language,direction:t.direction,features:Object.freeze(Object.entries(t.features).map(n=>Object.freeze(n))),fallbackOrder:Object.freeze(t.fallbackOrder.map(Os)),fixedPointScale:t.fixedPointScale,roundingMode:t.roundingMode})},kc=e=>JSON.stringify(og(e)),Dr=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},en=e=>{try{return xn(e)}catch{throw new RangeError("Shaped run contains a non-integer fixed-point value")}},rg=new WeakMap,ks=e=>{let t=rg.get(e);if(t)return t;Tc(e);let n=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 rg.set(e,n),n},Cs=(e,t)=>{let n=_r(t);if(e.direction!=="ltr"&&e.direction!=="rtl")throw new TypeError("Shaped run direction must be ltr or rtl");if(e.direction!==n.direction)throw new TypeError("Shaped run direction does not match shaping environment");if(Dr(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(l=>{Dr(l.id,"glyph id"),Dr(l.cluster,"glyph cluster");let d=r.get(l.outline);if(!d){if(!Number.isSafeInteger(l.outline.unitsPerEm)||l.outline.unitsPerEm<=0)throw new RangeError("Glyph outline units per em must be a positive safe integer");d=Object.isFrozen(l.outline)?l.outline:Object.freeze({path:l.outline.path,unitsPerEm:l.outline.unitsPerEm}),r.set(l.outline,d);}return Object.freeze({id:l.id,cluster:l.cluster,originX:en(l.originX),originY:en(l.originY),advanceX:en(l.advanceX),advanceY:en(l.advanceY),offsetX:en(l.offsetX),offsetY:en(l.offsetY),outline:d})}),a=e.fontSpans.map(l=>{if(Dr(l.glyphStart,"font span start"),Dr(l.glyphEnd,"font span end"),l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Font span glyph range is invalid");l.fallbackIndex!==null&&Dr(l.fallbackIndex,"fallback index");let d=Ic(l.font);if(l.fallbackIndex===null){if(ks(d)!==ks(n.font))throw new TypeError("Shaped primary font does not match shaping environment")}else {let c=n.fallbackOrder[l.fallbackIndex];if(!c)throw new RangeError("Shaped fallback index is outside fallback order");if(ks(d)!==ks(c))throw new TypeError("Shaped fallback font does not match shaping environment provenance")}return Object.freeze({...l,font:d})});for(let l=0;l<a.length;l+=1){let d=l===0?0:a[l-1].glyphEnd;if(a[l].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(l=>{for(let[c,u]of [["cluster text start",l.textStart],["cluster text end",l.textEnd],["cluster glyph start",l.glyphStart],["cluster glyph end",l.glyphEnd],["cluster font span",l.fontSpan]])Dr(u,c);if(l.textEnd<=l.textStart||l.textEnd>e.text.length||l.glyphEnd<=l.glyphStart||l.glyphEnd>o.length)throw new RangeError("Shaped cluster range is invalid");let d=a[l.fontSpan];if(!d||l.glyphStart<d.glyphStart||l.glyphEnd>d.glyphEnd)throw new RangeError("Shaped cluster does not belong to its declared font span");return Object.freeze({...l,advance:en(l.advance),caretEdges:Object.freeze(l.caretEdges.map(en))})}),s=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:s})},fw=(e,t)=>{let n=Cs(e,t);return Object.freeze({text:n.text,direction:n.direction,script:t.script,language:t.language,bidiLevel:n.bidiLevel,glyphs:n.glyphs,clusters:n.clusters,fontSpans:Object.freeze(n.fontSpans.map(r=>Object.freeze({glyphStart:r.glyphStart,glyphEnd:r.glyphEnd,fallbackIndex:r.fallbackIndex,font:Os(r.font)}))),metrics:n.metrics})};function No(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function ag(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>No(t))}function gw(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function ig(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function sg(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${ag(e instanceof Error?e.message:String(e))})`}function lg(e){let t=ag(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function dg(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var Ja=Object.freeze({name:"HarfBuzz",version:"14.3.0"}),Qa=null,qa=null;function hw(){return Qa?Promise.resolve():qa||(qa=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==Ja.version)throw new Ve("shapingLibraryMismatch",{diagnostic:dg(Ja.version,t)});Qa=e;}).catch(e=>{throw qa=null,e instanceof Ve?e:ig(e)?new Ve("unsupportedRuntime",{diagnostic:sg(e),cause:e}):new Ve("wasmUnavailable",{diagnostic:lg(e),cause:e})}),qa)}function yw(){return Qa!==null}function bw(){if(!Qa)throw new Ve("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Qa}var Ve=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},xw=16*1024*1024,Sw=1e6,Rw=1e6,Pw=1e6,ww=4,vw=512,Iw=1024*1024,Tw=16*1024*1024,kw=32*1024*1024,Ow=64*1024*1024,Cw=64*1024*1024,Fw=1e6,Mw=1e6,Bw=1e6,Ew=64,Lw=4096,Nw=4*1024*1024,Aw=64*1024*1024,Dw=64*1024*1024,_w=256*1024*1024,Hw=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),cg=["cmap","head","hhea","hmtx","maxp"],zw=(e,t)=>e[t]<<8|e[t+1],jw=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,Ww=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?jw(e,12+t*4):0,Gw=(e,t)=>{let n=Ww(e,t),r=zw(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},Vw=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),$w=(e,t)=>{let n=Is(e,t);if(!n.valid)return n;let r=Gw(e,t);for(let o of cg)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},Xw=$w,Sn=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},Kw=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let d=i*2n;(d>t||d===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let s=r?-a:a,l=Number(s);if(!Number.isSafeInteger(l))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return l},ug=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");return xn(Kw(BigInt(e)*BigInt(n),BigInt(t),r))},Yw=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>ug(i,a,o,r)},Uw=(e,t)=>{if(t.length===0)return [];let n=[...new Set(t.map(i=>i.cluster))].sort((i,s)=>i-s),r=new Map;for(let i=0;i<n.length;i+=1)r.set(n[i],n[i+1]??e.length);let o=[],a=0;for(;a<t.length;){let i=t[a].cluster,s=a+1;for(;s<t.length&&t[s].cluster===i;)s+=1;let l=t.slice(a,s).reduce((c,u)=>c+u.advanceX,0),d=xn(l);o.push({textStart:i,textEnd:r.get(i),glyphStart:a,glyphEnd:s,advance:d,caretEdges:Object.freeze([xn(0),d]),fontSpan:0}),a=s;}return o},Rn=64,Dn=8,Hr=8,qw=32,fg=Rn+2*Dn,Zw=Rn+Dn+Hr,Jw=Rn+Dn+Hr,Qw=Rn+Dn+Hr,pg=Rn+8*Dn,mg=Rn+8*Hr+Dn,ev=Rn+6*Hr+Dn,tv=Rn+3*Hr+2*Dn,nv=Rn+3*Hr,ei=e=>Rn+e.length*Uint16Array.BYTES_PER_ELEMENT,Cc=e=>Qw+ei(e),Za=e=>qw+e*Dn,rv=(e,t)=>fg+ei(e)+Zw+Cc(t),ov=e=>pg+ei(e)+Za(e.length)+e.length*mg,av=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return pg+ei(e.text)+Za(e.glyphs.length)+e.glyphs.length*mg+Za(e.clusters.length)+e.clusters.length*ev+e.clusters.reduce((n,r)=>n+Za(r.caretEdges.length),0)+Za(e.fontSpans.length)+e.fontSpans.length*tv+nv+[...t].reduce((n,r)=>n+Cc(r.path),0)},iv=(e,t)=>fg+ei(e)+Jw+t,Oc=class{#t;#s;#u;#f;#p;#y;#b;#m;#g;#l;#h;#d;#e;#o=new Map;#a=new Map;#n=new Map;#i=0;#r=0;#c;constructor(t,n){this.#t=t,this.#s=Sn(n.maxFontBytes??xw,"maximum font bytes",Cw),this.#u=Sn(n.maxInputUtf16??Sw,"maximum input UTF-16 code units",Fw),this.#f=Sn(n.maxCodepoints??Rw,"maximum input code points",Mw),this.#p=Sn(n.maxGlyphs??Pw,"maximum shaped glyphs",Bw),this.#y=Sn(n.maxCachedFaces??ww,"maximum cached faces",Ew),this.#b=Sn(n.maxCachedShapes??vw,"maximum cached shape results",Lw),this.#m=Sn(n.maxOutlineBytes??Iw,"maximum outline bytes",Nw),this.#g=Sn(n.maxCachedOutlineBytes??Tw,"maximum cached outline bytes",Aw),this.#l=Sn(n.maxShapedRunBytes??kw,"maximum shaped run bytes",Dw),this.#h=Sn(n.maxCachedShapeBytes??Ow,"maximum cached shape bytes",_w),this.#d=n.instrumentation?.onFaceCacheEvent,this.#e=n.instrumentation,this.#c=new this.#t.Buffer;}dispose(){this.#o.clear(),this.#a.clear(),this.#n.clear(),this.#i=0,this.#r=0,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#c=void 0;}#S(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#d?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=vs(t);for(let c of cg)if(!o.has(c))throw new Ve("malformedFont",{diagnostic:`missing required ${c} table`});this.#e?.onByteCopy?.();let a=new this.#t.Blob(Vw(n)),i=new this.#t.Face(a,t.faceIndex),s=new this.#t.Font(i),l=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(l.ascender)||!Number.isSafeInteger(l.descender)||!Number.isSafeInteger(l.lineGap))throw new Ve("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});if(s.setScale(i.upem,i.upem),this.#o.size>=this.#y){let c=this.#o.keys().next().value;c!==void 0&&(this.#o.delete(c),this.#d?.(Object.freeze({kind:"evicted",identity:c})));}let d={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem};return this.#o.set(t.identity,d),this.#d?.(Object.freeze({kind:"created",identity:t.identity})),d}#R(t,n,r){let o=JSON.stringify([t.identity,t.unitsPerEm,r,n]),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=t.font.glyphToPath(n),s=Cc(i);if(s>this.#m)throw new Ve("outlineOverLimit",{limit:this.#m,actual:s});let l=Object.freeze({path:i,unitsPerEm:t.unitsPerEm}),d=rv(o,i);if(d>this.#g)return this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#i})),l;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:l,bytes:d}),this.#i+=d,this.#e?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#i})),l}#x(t){if(t.length>this.#u)throw new Ve("textOverLimit",{limit:this.#u,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#f)throw new Ve("codepointsOverLimit",{limit:this.#f,actual:n})}}shape(t){if(!this.#c)throw new Ve("disposed");if(Eo(t.environment.font),t.environment.font.byteLength>this.#s)throw new Ve("fontOverLimit",{limit:this.#s,actual:t.environment.font.byteLength});this.#x(t.text);let n=ov(t.text);if(n>this.#l)throw new Ve("shapedRunOverLimit",{limit:this.#l,actual:n});let r=_r(t.environment),o=JSON.stringify([t.text,t.fontSizeHalfPoints,t.bidiLevel,kc(r)]),a=this.#n.get(o);if(a)return this.#n.delete(o),this.#n.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!==Ja.name||r.shapingLibrary.version!==Ja.version)throw new Ve("shapingLibraryMismatch");if(r.normalization!=="none")throw new Ve("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new Ve("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new Ve("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new Ve("unsupportedFallback");let i=ws(r.font),s=vs(r.font);if([...Hw].some(d=>s.has(d)))throw new Ve("unsupportedColorFont");let l=t.text;this.#x(l);try{let d=this.#S(r.font,i),{face:c,font:u}=d,f=this.#c;f.reset(),f.addText(l),f.setDirection(r.direction==="rtl"?this.#t.Direction.RTL:this.#t.Direction.LTR),f.setScript(r.script),f.setLanguage(r.language),f.setClusterLevel(this.#t.ClusterLevel.MONOTONE_CHARACTERS);let p=Object.entries(r.features).map(([S,R])=>new this.#t.Feature(S,R));this.#e?.onShapeCall?.(),this.#t.shape(u,f,p);let m=f.getGlyphInfosAndPositions();if(m.length>this.#p)throw new Ve("glyphOverLimit",{limit:this.#p,actual:m.length});let g=Yw(c.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),h=xn(0),y=xn(0),x=new Map,w=JSON.stringify(Object.entries(r.variationAxes).sort(([S],[R])=>S.localeCompare(R))),T=m.map(S=>{let R=g(S.xAdvance??0),k=g(S.yAdvance??0),v={id:S.codepoint,cluster:S.cluster,originX:h,originY:y,advanceX:R,advanceY:k,offsetX:g(S.xOffset??0),offsetY:g(S.yOffset??0),outline:x.get(S.codepoint)??(()=>{let b=this.#R(d,S.codepoint,w);return x.set(S.codepoint,b),b})()};return h=xn(h+R),y=xn(y+k),v}),F=u.hExtents(),C=Cs({text:l,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:T,clusters:Uw(l,T),fontSpans:T.length===0?[]:[{glyphStart:0,glyphEnd:T.length,font:r.font,fallbackIndex:null}],metrics:{ascent:g(F.ascender),descent:g(-F.descender),lineGap:g(F.lineGap)}},r),M=av(C);if(M>this.#l)throw new Ve("shapedRunOverLimit",{limit:this.#l,actual:M});let P=iv(o,M);if(P>this.#h)return this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),C;for(;this.#n.size>=this.#b||this.#r+P>this.#h;){let S=this.#n.keys().next().value;if(S===void 0)break;let R=this.#n.get(S);this.#n.delete(S),this.#r-=R.bytes,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:C,bytes:P}),this.#r+=P,this.#e?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),C}catch(d){throw d instanceof Ve?d:new Ve("malformedFont",{diagnostic:d instanceof Error?d.message:"HarfBuzz shaping failed"})}}},sv=(e={})=>new Oc(bw(),e);var lv=/^[0-9A-Fa-f]{6}$/;function Fs(e){if(!(e===void 0||e==="auto"||e==="nil")&&lv.test(e))return e.toUpperCase()}function ti(e){if(e&&e.val!=="nil")return Fs(e.fill)}function Fc(e){if(!e||e.localName!=="shd")return;let t={};for(let n of e.attributes)t[n.localName]=n.value;return ti(t)}function Mc(e){let t;for(let n of e)n.localName==="shd"&&(t=ti(n.attributes));return t}function ni(e,t,n){if(e.length===0)return;let r=e[0].box.y,o=e[e.length-1].box;return {x:t,y:r,width:n,height:Math.max(o.y+o.height-r,0)}}var dv=new Set(["b","bCs","caps","emboss","i","iCs","imprint","outline","shadow","smallCaps","strike","vanish"]);function Pn(e){let t=e.attributes?.val;return t===void 0||!(t==="0"||t==="false"||t==="off")}var gg=new WeakMap;function Ms(e){let t=[],n;for(let r of e){let o=r.role==="carried"?gg.get(r.properties):void 0,a;for(let i of r.properties){if(!dv.has(i.localName)){r.emit&&t.push(i);continue}o||(a||(a=new Map),a.set(i.localName,Pn(i)));}if(o){if(o.size>0){n||(n=new Map);for(let[i,s]of o)n.set(i,s);}continue}if(a){n||(n=new Map);for(let[i,s]of a){let l=n.get(i);r.role==="direct"?n.set(i,{value:s,forced:false}):s?r.role==="defaults"?n.set(i,{value:true,forced:true}):n.set(i,{value:l?.forced===true?true:!(l?.value??false),forced:l?.forced===true}):n.set(i,{value:false,forced:false});}}}if(!n)return t;for(let[r,o]of n)t.push(o.value?{localName:r}:{localName:r,attributes:{val:"0"}});return gg.set(t,n),t}var wn=Object.freeze({fontFamily:null,fontFamilyEastAsia:null,fontSizePt:10,color:null,bold:false,italic:false,underline:null,strike:false,doubleStrike:false,highlight:null,shading:null,verticalAlign:"baseline",baselineShiftPt:0,caps:false,smallCaps:false,characterSpacingPt:0,horizontalScalePercent:100,kerningMinPt:0,hidden:false}),cv=/^[0-9A-Fa-f]{6}$/;function ri(e,t=false){return e===void 0||!(t?/^-?\d{1,7}$/:/^\d{1,7}$/).test(e)?null:Number(e)}function hg(e){return e===void 0||e==="auto"?null:cv.test(e)?e.toUpperCase():null}var bg={major:null,minor:null,majorEastAsia:null,minorEastAsia:null};function Le(e,t){let n={...wn};for(let r of e)switch(r.localName){case "rFonts":{let o=r.attributes,i=(t?chunkDRQHIQ4R_cjs.a(o?.asciiTheme,t)??chunkDRQHIQ4R_cjs.a(o?.hAnsiTheme,t):null)??o?.ascii??o?.hAnsi;i&&i.length<=128&&(n.fontFamily=i);let l=(t?chunkDRQHIQ4R_cjs.a(o?.eastAsiaTheme,t):null)??o?.eastAsia;l&&l.length<=128&&(n.fontFamilyEastAsia=l);break}case "sz":{let o=ri(r.attributes?.val);o!==null&&o>0&&(n.fontSizePt=o/2);break}case "color":{n.color=hg(r.attributes?.val);break}case "b":n.bold=Pn(r);break;case "i":n.italic=Pn(r);break;case "u":{let o=r.attributes?.val??"single";n.underline=o==="none"||!Pn(r)?null:{variant:o,color:hg(r.attributes?.color)};break}case "strike":n.strike=Pn(r);break;case "dstrike":n.doubleStrike=Pn(r);break;case "highlight":{let o=r.attributes?.val;n.highlight=o&&o!=="none"?o:null;break}case "shd":{n.shading=ti(r.attributes)??null;break}case "vertAlign":{let o=r.attributes?.val;o==="superscript"||o==="subscript"?n.verticalAlign=o:o==="baseline"&&(n.verticalAlign="baseline");break}case "position":{let o=ri(r.attributes?.val,true);o!==null&&(n.baselineShiftPt=o/2);break}case "caps":n.caps=Pn(r);break;case "smallCaps":n.smallCaps=Pn(r);break;case "spacing":{let o=ri(r.attributes?.val,true);o!==null&&(n.characterSpacingPt=o/20);break}case "w":{let o=ri(r.attributes?.val);o!==null&&o>0&&(n.horizontalScalePercent=o);break}case "kern":{let o=ri(r.attributes?.val);o!==null&&(n.kerningMinPt=o/2);break}case "vanish":n.hidden=Pn(r);break;}return n}var yg=new WeakMap;function Bs(e,t){if(e.fontFamily===t)return e;let n=yg.get(e);n||(n=new Map,yg.set(e,n));let r=n.get(t);return r||(r=Object.freeze({...e,fontFamily:t}),n.set(t,r)),r}function lr(e,t){return t.caps?e.toUpperCase():e}function _n(e,t,n){return n.measure(lr(e,t),t)}function uv(e,t){return e.fontFamily===t.fontFamily&&e.fontFamilyEastAsia===t.fontFamilyEastAsia&&e.fontSizePt===t.fontSizePt&&e.color===t.color&&e.bold===t.bold&&e.italic===t.italic&&e.strike===t.strike&&e.doubleStrike===t.doubleStrike&&e.highlight===t.highlight&&e.shading===t.shading&&e.verticalAlign===t.verticalAlign&&e.baselineShiftPt===t.baselineShiftPt&&e.caps===t.caps&&e.smallCaps===t.smallCaps&&e.characterSpacingPt===t.characterSpacingPt&&e.horizontalScalePercent===t.horizontalScalePercent&&e.kerningMinPt===t.kerningMinPt&&e.hidden===t.hidden&&e.underline?.variant===t.underline?.variant&&e.underline?.color===t.underline?.color}function Bc(e){return e.verticalAlign==="superscript"?e.baselineShiftPt+e.fontSizePt*.33:e.verticalAlign==="subscript"?e.baselineShiftPt-e.fontSizePt*.16:e.baselineShiftPt}var re=(e,t,n)=>e>=t&&e<=n,oi=class extends Error{name="UnsupportedScriptError";code="unsupportedScript";codePoint;constructor(t){super(`Unsupported Unicode script at U+${t.toString(16).toUpperCase()}`),this.codePoint=t;}},xg=e=>{if(re(e,65313,65338)||re(e,65345,65370))return {slot:"hAnsi",script:"Latn"};if(re(e,1424,1535)||re(e,64285,64335))return {slot:"cs",script:"Hebr"};if(re(e,1536,1791)||re(e,1872,1919)||re(e,2160,2207)||re(e,2208,2303)||re(e,64336,65023)||re(e,65136,65279)||re(e,126464,126719))return {slot:"cs",script:"Arab"};if(re(e,4352,4607)||re(e,11904,12351)||re(e,12352,12543)||re(e,12544,12687)||re(e,12784,12799)||re(e,13312,19903)||re(e,19968,40959)||re(e,44032,55215)||re(e,63744,64255)||re(e,65382,65437)||re(e,65440,65500)||re(e,131072,201551))return {slot:"eastAsia",script:"Hani"};if(re(e,2304,2431)||re(e,43232,43263))return {slot:"cs",script:"Deva"};if(re(e,2432,2559))return {slot:"cs",script:"Beng"};if(re(e,880,1023)||re(e,7936,8191))return {slot:"hAnsi",script:"Grek"};if(re(e,1024,1327)||re(e,7296,7311)||re(e,11744,11775)||re(e,42560,42655))return {slot:"hAnsi",script:"Cyrl"};if(re(e,3584,3711))return {slot:"cs",script:"Thai"};if(re(e,6016,6143)||re(e,6624,6655))return {slot:"cs",script:"Khmr"};if(re(e,768,879)||re(e,6832,6911)||re(e,7616,7679)||re(e,8400,8447)||re(e,8192,8303)||re(e,65056,65071)||e<=47||re(e,58,64)||re(e,91,96)||re(e,123,191)||e===5760||re(e,8192,11263)||re(e,65024,65039)||re(e,65280,65381)||re(e,65438,65439)||re(e,65501,65535)||re(e,126976,129791)||re(e,917760,917999))return null;if(e<=127)return {slot:"ascii",script:"Latn"};if(re(e,192,687)||re(e,7424,7551)||re(e,7552,7615)||re(e,7680,7935)||re(e,11360,11391)||re(e,42784,43007)||re(e,43824,43887))return {slot:"hAnsi",script:"Latn"};throw new oi(e)};function fv(e){let t=[];for(let r=0;r<e.length;){let o=e.codePointAt(r),a=r+(o>65535?2:1);t.push({from:r,to:a,classified:xg(o)}),r=a;}let n=null;for(let r of t)r.classified?n=r.classified:n&&(r.classified=n);n=null;for(let r=t.length-1;r>=0;r-=1){let o=t[r];o.classified?n=o.classified:n&&(o.classified=n);}return t}function pv(e,t,n){let r=fv(e),o=[],a=r.every(({from:i})=>e.codePointAt(i)<=127)?"ascii":"hAnsi";for(let i of r){let s=n.levels[t+i.from]??0,l=(s&1)===1?"rtl":"ltr",d=i.classified??{slot:a,script:"Zyyy"},c=o.at(-1);c&&c.to===i.from&&c.bidiLevel===s&&c.slot===d.slot&&c.script===d.script?o[o.length-1]={...c,to:i.to}:o.push({from:i.from,to:i.to,direction:l,bidiLevel:s,script:d.script,slot:d.slot});}return o}function Ct(e,t){if(t!=="eastAsia")return e;let n=e.fontFamilyEastAsia;return n===null?e:Bs(e,n)}var mv=e=>{let t;try{t=xg(e);}catch(n){if(n instanceof oi)return "base";throw n}return t===null?"common":t.slot==="eastAsia"?"eastAsia":"base"},gv=e=>{for(let t=0;t<e.length;t+=1)if(e.charCodeAt(t)>=128)return false;return true};function Sg(e){let t=[],n=(i,s,l)=>{let d=t.at(-1);d&&d.segment===i&&d.to===s?t[t.length-1]={segment:i,from:d.from,to:l}:t.push({segment:i,from:s,to:l});},r=null,o=[],a=i=>{for(let s of o)i==="eastAsia"&&!s.ascii&&n(s.segment,s.from,s.to);o.length=0;};for(let i=0;i<e.length;i+=1){let s=e[i];if(gv(s)){/[0-9A-Za-z]/.test(s)&&(a("base"),r="base");continue}for(let l=0;l<s.length;){let d=s.codePointAt(l),c=l+(d>65535?2:1),u=mv(d);u==="common"?r===null?o.push({segment:i,from:l,to:c,ascii:d<=127}):r==="eastAsia"&&d>127&&n(i,l,c):(a(u),r=u,u==="eastAsia"&&n(i,l,c)),l=c;}}return t}var hv="und";function yv(){return typeof Intl.Segmenter=="function"}function bv(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error("Intl.Segmenter is required for deterministic grapheme segmentation (locale: und)");return e}function xv(){let e=new(bv())("und",{granularity:"grapheme"});return {segment(t){let n=[],r=0;for(let o of e.segment(t)){let a=o.index,i=a+o.segment.length;n.push({index:r,text:o.segment,utf16From:a,utf16To:i}),r+=1;}return n}}}var Nc=xv(),Ac=Nc,Rg=0;function Dc(){return Rg}var Ao=null,zr=null,Es=null,ai=null;function tn(e){if(Ao===e&&zr)return zr;if(Es===e&&ai){let n=ai;return Es=Ao,ai=zr,Ao=e,zr=n,n}let t=Ac.segment(e);return Es=Ao,ai=zr,Ao=e,zr=t,t}function Sv(e){Ac=e,Pg();}function Rv(){Ac=Nc,Pg();}function Pg(){Rg+=1,Ao=null,zr=null,Es=null,ai=null,Ec=null,Ls=null,Lc=0;}function Pv(e){return tn(e).length}var Ec=null,Ls=null,Lc=0;function wv(e){if(Ec===e&&Ls)return {offsets:Ls,count:Lc};let t=tn(e),n=new Int32Array(e.length+1);for(let r of t)for(let o=r.utf16From;o<r.utf16To&&o<e.length;o+=1)n[o]=r.index;return n[e.length]=t.length,Ec=e,Ls=n,Lc=t.length,{offsets:n,count:t.length}}function Ns(e,t){let n=Math.max(0,Math.min(t,e.length)),{offsets:r}=wv(e);return r[n]}function vv(e,t){let n=tn(e);if(n.length===0)return 0;let r=Math.max(0,Math.min(t,n.length));return r>=n.length?e.length:n[r].utf16From}function _c(e){let t=new Set([0,e.text.length]);for(let r of tn(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function As(e,t){return _c(e).includes(t)}function Iv(e,t){return As(e,t)}function Tv(e,t,n){return n>=t&&As(e,t)&&As(e,n)}function kv(e){let t=tn(e.text);return _c(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var zc="und";function Tg(){return typeof Intl.Segmenter=="function"}function Ov(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${zc})`);return e}function kg(){let e=new(Ov())(zc,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var Cv=/^[\p{L}\p{N}']$/u,Fv=/^\s$/u;function wg(e){return Cv.test(e)}function vg(e){return Fv.test(e)}function Hc(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function Og(e){let t=tn(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(vg(o.text)){let a=r+1;for(;a<t.length&&vg(t[a].text);)a+=1;n.push(Hc(t,r,a,false)),r=a;continue}if(wg(o.text)){let a=r+1;for(;a<t.length&&wg(t[a].text);)a+=1;n.push(Hc(t,r,a,true)),r=a;continue}n.push(Hc(t,r,r+1,false)),r+=1;}return n}function Cg(){return {segment:Og}}function Fg(e={}){let t=e.isIntlAvailable??Tg,n=e.createIntlBoundary??kg,r=e.createFallbackBoundary??Cg;if(!t())return r();try{return n()}catch{return r()}}var Ig;function Mg(){return Ig??=Fg(),Ig}function Mv(e,t=Mg()){return t.segment(e)}function Bv(e,t){return t.map(n=>({graphemeFrom:Ns(e,n.utf16From),graphemeTo:Ns(e,n.utf16To),wordLike:n.wordLike}))}var Bg={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},Gc=Object.keys(Bg),Eg=Gc.filter(e=>Bg[e]==="coarse-gate"),Ds=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},Do=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},Ev={resourceEpoch:Ds,configEpoch:Ds,extensionFingerprint:Do,shapingHash:Do,producerVersion:Ds},Lv=(e,t)=>{Ev[t](e[t],t);},_o=e=>{for(let t of Gc)Lv(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},Nv=(e,t)=>{let n=_o(e),r=_o(t),o=Gc.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},jc=e=>{let t=e.map(({key:n,fingerprint:r})=>(Do(n,"resource dependency key"),Do(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},Av=e=>(Ds(e.revision,"revision"),Do(e.dependencyFingerprint,"dependencyFingerprint"),Do(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:jc(e.resourceDependencies),..._o(e)})),Dv=(e,t)=>{let n=jc(e),r=jc(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function _v(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=Dv(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Eg)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Wc=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=_v(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:Av(r)});}evictEpoch(t){let n=_o(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Eg.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=_o(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(l=>n.get(l.key)!==l.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function qe(e,t=false){return vt(e.fragments,t)}var Lg=new WeakMap;function vt(e,t=false){let n=Lg.get(e),r=t?"withRepeats":"withoutRepeats",o=n?.[r];if(o)return o;let a=[],i=s=>{for(let l of s){if(l.kind==="paragraph"){a.push(l);continue}for(let d of l.rows)if(!(d.isHeaderRepeat&&!t))for(let c of d.cells)i(c.blocks);}};return i(e),n||(n={},Lg.set(e,n)),n[r]=a,a}function Vc(e){let t=[];for(let n of e.pages)for(let r of qe(n))t.push(...r.lines);return t}function Hv(e){return e.anchoredDrawings??[]}var Ng=16;function ii(e,t){let n=o=>{if(o.kind==="table"){for(let a of o.rows)for(let i of a.cells)for(let s of i.blocks)n(s);return}for(let a of o.lines)for(let i of a.drawings??[])t(i);},r=(o,a)=>{if(!(a>Ng)){for(let i of o.anchoredDrawings??[])t(i),i.textboxStory&&r(i.textboxStory,a+1);for(let i of o.fragments)n(i);}};r(e,0);}function $c(e,t){let n=(r,o)=>{if(!(o>Ng)){for(let a of r.anchoredDrawings??[])a.textboxStory&&n(a.textboxStory,o+1);for(let a of vt(r.fragments,true))t(a);}};n(e,0);}function Ag(e,t){let n=[];for(let r of e.pages)for(let o of qe(r))o.paragraphId===t&&n.push(o);return n.sort((r,o)=>r.fragmentIndex-o.fragmentIndex)}function si(e,t,n,r){for(let o of r??Vc(e)){let a=o.range.paragraphId===t?o.range.start:Number.NaN,i=o.range.paragraphId===t?o.range.end:Number.NaN;for(let s of o.spans)s.range.paragraphId===t&&(a=Number.isNaN(a)?s.range.start:Math.min(a,s.range.start),i=Number.isNaN(i)?s.range.end:Math.max(i,s.range.end));for(let s of o.drawings??[])s.paragraphId===t&&(a=Number.isNaN(a)?s.start:Math.min(a,s.start),i=Number.isNaN(i)?s.start+1:Math.max(i,s.start+1));if(!Number.isNaN(a)&&n>=a&&n<=i)return o}return null}function _s(e){return e.contentControls??[]}function li(e){if(e.length===0)return null;let t=1/0,n=1/0,r=-1/0,o=-1/0;for(let a of e)t=Math.min(t,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),o=Math.max(o,a.y+a.height);return {x:t,y:n,width:r-t,height:o-n}}function Hs(e){let t=false,n=false;for(let r of e)(r==="contentLocked"||r==="sdtContentLocked")&&(t=true),(r==="sdtLocked"||r==="sdtContentLocked")&&(n=true);return t&&n?"sdtContentLocked":t?"contentLocked":n?"sdtLocked":"unlocked"}var di=Object.freeze({width:612,height:792,margin:Object.freeze({top:72,right:72,bottom:72,left:72})});var Dg=1,zs=1;function Ho(e){let t=Math.max(e,1),n=3;if(t>=n){let i=t/3;if(i>=1)return {strokePt:i,gapPt:i,extentPt:t,insetPt:0}}let r=1,o=1,a=Math.max(t,n);return {strokePt:r,gapPt:o,extentPt:a,insetPt:(t-a)/2}}var zv=new Set(["double","triple","thinThickSmallGap","thickThinSmallGap","thinThickThinSmallGap","thinThickMediumGap","thickThinMediumGap","thinThickThinMediumGap","thinThickLargeGap","thickThinLargeGap","thinThickThinLargeGap","doubleWave"]);function jv(e){return zv.has(e)}function _g(e,t){return jv(e)?Ho(t).extentPt:t}function Kc(e){let t=false;for(let n of e){if(n.localName!=="pageBreakBefore")continue;let r=n.attributes?.val;t=r===void 0||Ws(r);}return t}var zg=31680/20,ui=12,jg=3168,Wg=14,jo=Object.freeze({rule:"auto",value:240}),Wv=132,Gv=1584,Gg=["top","left","bottom","right","between","bar"],Vv=Object.freeze({}),$v=/^[0-9A-Fa-f]{6}$/,Xv=new Set(["nil","none"]);function js(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function Xc(e,t){return !Number.isFinite(e)||e<=0?0:e>t?t:e}function Hg(e){let t=js(e,true);return t===null?0:Xc(chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(t)),zg)}function Ws(e){return e!=="0"&&e!=="false"&&e!=="off"}function Kv(e){return e===void 0||e==="auto"?null:$v.test(e)?e.toUpperCase():null}function ci(e,t){return e.attributes.find(n=>n.localName===t)?.value}function vn(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function _B(e,t){let n=null;for(let r of e)r.localName===t&&(n={...n??{},...r.attributes??{}});return n}function Yc(e,t){let n=0,r=0,o=false,a=false;for(let i of e){if(i.localName!=="spacing")continue;let s=i.attributes?.before,l=i.attributes?.after;s!==void 0&&(n=Hg(s)),l!==void 0&&(r=Hg(l));let d=i.attributes?.beforeAutospacing,c=i.attributes?.afterAutospacing;d!==void 0&&(o=Ws(d)),c!==void 0&&(a=Ws(c));}if(o||a){let i=t?.inList||t?.inTableCell?0:Wg;o&&(n=i),a&&(r=i);}return {before:n,after:r}}function Uc(e){let t,n;for(let a of e){if(a.localName!=="spacing")continue;let i=a.attributes?.lineRule;(i==="auto"||i==="exact"||i==="atLeast")&&(t=i);let s=a.attributes?.line;if(s!==void 0){let l=js(s,true);l!==null&&(n=l);}}if(n===void 0)return jo;let r=t??"auto";if(r==="auto"){let a=n/240;return a>0?{rule:"auto",value:Math.min(a,Wv)*240}:jo}let o=n/20;return o>0?{rule:r,value:Math.min(o,Gv)}:jo}function qc(e,t,n){let r=e.rule==="auto"?t*(e.value/240):e.rule==="exact"?e.value:Math.max(t,e.value),o=r-t;return o<0?{height:r,baseline:Math.max(0,Math.min(n,r))}:e.rule==="exact"?{height:r,baseline:n+o/2}:{height:r,baseline:n}}function Zc(e){let t=false;for(let n of e){if(n.localName!=="contextualSpacing")continue;let r=n.attributes?.val;t=r===void 0||Ws(r);}return t}function zo(e){if(!e)return;let t=ci(e,"val");if(!t||Xv.has(t))return;let n=js(ci(e,"sz")),r=n===null?.5:Xc(n/8,ui)||.5,o=js(ci(e,"space")),a=o===null?0:Xc(o,jg),i=ci(e,"shadow"),s=i!==void 0&&i!=="0"&&i!=="false"&&i!=="off";return {val:t,color:Kv(ci(e,"color")),widthPt:r,spacePt:a,...s?{shadow:true}:{}}}function Vg(e){let t=zo(vn(e,"top")),n=zo(vn(e,"left")??vn(e,"start")),r=zo(vn(e,"bottom")),o=zo(vn(e,"right")??vn(e,"end")),a=zo(vn(e,"between")),i=zo(vn(e,"bar"));return {...t?{top:t}:{},...n?{left:n}:{},...r?{bottom:r}:{},...o?{right:o}:{},...a?{between:a}:{},...i?{bar:i}:{}}}function Hn(e){if(!e||e.kind==="textValue")return {};let t=vn(e,"pBdr");return t?Vg(t):{}}function fi(e){let t=Vv;for(let n of e){if(!n||n.kind==="textValue")continue;let r=vn(n,"pBdr");r&&(t=Vg(r));}return t}function Ft(e){return _g(e.val,e.widthPt)}function dr(e){return e?e.spacePt+Ft(e):0}function Yv(e){return dr(e)}function Jc(e){let t=[];for(let n of Gg){let r=e[n];r&&t.push(`${n}:${r.val},${r.color??"auto"},${r.widthPt},${r.spacePt},${r.shadow?1:0}`);}return t.join("|")}function Wo(e,t){return Math.max(e,t)-t}function Qc(e,t,n,r){return n&&!r?0:Wo(e,t)}var Uv=64,qv=31680,Zv=720,Jv=36,eu=new Map([["dot","."],["hyphen","-"],["underscore","_"],["heavy","_"],["middleDot","\xB7"]]),Go=Object.freeze({stops:Object.freeze([]),defaultIntervalPt:36}),Qv=new Map([["left","left"],["start","left"],["center","center"],["right","right"],["end","right"],["decimal","decimal"]]),e0=new Set(["dot","hyphen","underscore","heavy","middleDot"]);function pi(e){return e.kind!=="textValue"}function Gs(e,t){return e.attributes.find(n=>n.localName===t)?.value}function tu(e,t){for(let n of e.children)if(pi(n)&&n.localName===t)return n}function $g(e){return e===void 0||!/^-?\d{1,9}$/.test(e)?null:Number(e)}function t0(e){return !Number.isFinite(e)||e<0?null:e>31680?31680:e}function Xg(e,t){if(!t)return;let n=0;for(let r of t.children){if(n>=128)break;if(n+=1,!pi(r)||r.localName!=="tab")continue;let o=t0($g(Gs(r,"pos"))??NaN);if(o===null)continue;let a=Gs(r,"val")??"left";if(a==="clear"){e.delete(o);continue}let i=Qv.get(a);if(i===void 0||e.size>=64&&!e.has(o))continue;let s=Gs(r,"leader");e.set(o,{alignment:i,...s!==void 0&&e0.has(s)?{leader:s}:{}});}}function Kg(e,t=36){let n=[...e.entries()].sort((o,a)=>o[0]-a[0]),r=[];for(let o=0;o<n.length&&o<64;o+=1){let[a,i]=n[o];r.push({positionPt:a/20,alignment:i.alignment,...n0(i)});}return {stops:Object.freeze(r),defaultIntervalPt:t}}function n0(e){return e.leader?{leader:e.leader}:{}}function nu(e){let t=new Map;for(let n of e)!n||!pi(n)||Xg(t,tu(n,"tabs"));return Kg(t)}function ru(e){if(!e||!pi(e))return Go;let t=new Map;return Xg(t,tu(e,"tabs")),Kg(t)}function mi(e,t){return t===void 0||!Number.isFinite(t)||t<=0||t===e.defaultIntervalPt?e:{stops:e.stops,defaultIntervalPt:t}}function r0(e){if(!e||!pi(e))return 36;let t=tu(e,"defaultTabStop");if(!t)return 36;let n=$g(Gs(t,"val"));return n===null||n<=0||n>31680?36:n/20}function Vo(e,t,n){let r=Math.max(t,n);for(let i of e.stops)if(i.positionPt>t)return {positionPt:Math.min(i.positionPt,r),alignment:i.alignment,...i.leader?{leader:i.leader}:{}};let o=e.defaultIntervalPt>0?e.defaultIntervalPt:36,a=Math.ceil((t+1e-9)/o)*o;return a<=t&&(a+=o),{positionPt:Math.min(a,r),alignment:"left"}}function ou(e,t,n,r,o){let a=n;switch(e){case "center":a=n-r/2;break;case "right":a=n-r;break;case "decimal":a=n-o;break;default:a=n;}let i=a-t;return i>0?i:0}function jr(e){return `tabs(${e.stops.map(n=>`${n.alignment}@${Math.round(n.positionPt*1e3)}${n.leader?`/${n.leader}`:""}`).join(",")}|d${Math.round(e.defaultIntervalPt*1e3)})`}var Vs=4,Yg=4096,It=64,lu=Object.freeze({hasPage:false,hasNumPages:false,hasSectionPages:false}),Ug=/\s*\\\*\s*MERGEFORMAT\s*$/i;function Wr(e){if(e.length>chunkNJNFJPGB_cjs.Xc)return null;let t=e.replace(/\s+/g," ").trim().toUpperCase();return t.length>chunkNJNFJPGB_cjs.Xc?null:t.replace(Ug,"").trim()}var o0=/\s*\\#\s*(?:"([^"]*)"|([^\\"]+))$/;function a0(e){if(e.length>chunkNJNFJPGB_cjs.Xc)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkNJNFJPGB_cjs.Xc)return null;let n=t.replace(Ug,"").trim(),r=o0.exec(n);if(!r)return {keyword:n.toUpperCase(),picture:void 0};let o=r[1]??r[2]??"";return {keyword:n.slice(0,r.index).trim().toUpperCase(),picture:o.length>0?o:void 0}}function $o(e){let t=a0(e);if(t===null)return null;let{keyword:n,picture:r}=t;return n!=="PAGE"&&n!=="NUMPAGES"&&n!=="SECTIONPAGES"?null:r===void 0?{kind:n}:{kind:n,picture:r}}function qg(e){return $o(e)?.kind??null}function ft(e,t){return chunkNJNFJPGB_cjs.Mc(e,t)}function zn(e){return chunkNJNFJPGB_cjs.Nc(e)}function jn(){return {nodes:0,exhausted:false}}function et(e){return e.exhausted?false:(e.nodes+=1,e.nodes>Yg?(e.exhausted=true,false):true)}function Gr(){return {nesting:0,instruction:"",instructionOverflow:false,deletedInstruction:"",deletedInstructionOverflow:false,sawLiveInstruction:false,nestingOverflow:false,phase:"idle",inner:[]}}function gi(e){e.nesting=0,e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="idle",e.inner.length=0;}function Xo(e){return e.sawLiveInstruction?{instruction:e.instruction,overflow:e.instructionOverflow}:{instruction:e.deletedInstruction,overflow:e.deletedInstructionOverflow}}function i0(e){return e.sawLive?{instruction:e.instruction,overflow:e.overflow}:{instruction:e.deletedInstruction,overflow:e.deletedOverflow}}function Vr(e){e.nesting===0&&(e.instruction="",e.instructionOverflow=false,e.deletedInstruction="",e.deletedInstructionOverflow=false,e.sawLiveInstruction=false,e.nestingOverflow=false,e.phase="instruction",e.inner.length=0),e.nesting+=1,e.nesting>Vs?e.nestingOverflow=true:e.nesting>=2&&(e.inner[e.nesting-2]={instruction:"",overflow:false,deletedInstruction:"",deletedOverflow:false,sawLive:false,separated:false});}function Ko(e){return e.nesting<2||e.nesting>Vs?null:e.inner[e.nesting-2]??null}function Zg(e){if(e.nesting===1)return e.phase==="instruction";let t=Ko(e);return t!==null&&!t.separated}function iu(e,t){if(!Zg(e))return false;if(e.nesting===1)return t?!e.deletedInstructionOverflow:!e.instructionOverflow;let n=Ko(e);return t?!n.deletedOverflow:!n.overflow}function Jg(e){if(e.nesting===1){e.sawLiveInstruction=true;return}let t=Ko(e);t&&(t.sawLive=true);}function su(e,t){if(e.nesting===1){t?(e.deletedInstructionOverflow=true,e.deletedInstruction=""):(e.instructionOverflow=true,e.instruction="");return}let n=Ko(e);n&&(t?(n.deletedOverflow=true,n.deletedInstruction=""):(n.overflow=true,n.instruction=""));}function au(e){su(e,false),su(e,true);}function s0(e,t,n=false){if(!iu(e,n))return;let r=Ko(e);n||Jg(e);let o=r?n?r.deletedInstruction:r.instruction:n?e.deletedInstruction:e.instruction;if(o.length+t.length>chunkNJNFJPGB_cjs.Xc){su(e,n);return}r?n?r.deletedInstruction=o+t:r.instruction=o+t:n?e.deletedInstruction=o+t:e.instruction=o+t;}function $r(e,t,n,r){if(!Zg(e))return;let o=chunkNJNFJPGB_cjs.Oc(t);if(o||Jg(e),!iu(e,o))return;if(r>It){au(e);return}let a=[],i=t.kind==="textValue"?[]:t.children??[];for(let s=i.length-1;s>=0;s-=1)a.push({node:i[s],depth:r+1});for(;a.length>0;){let s=a.pop();if(!et(n)){au(e);return}if(s.depth>It){au(e);return}if(s.node.kind==="textValue"){if(s0(e,s.node.value,o),!iu(e,o))return;continue}let l=s.node.children??[];for(let d=l.length-1;d>=0;d-=1)a.push({node:l[d],depth:s.depth+1});}}function Xr(e){if(e.nesting===1){if(e.phase!=="instruction"||(e.phase="result",e.nestingOverflow))return null;let r=Xo(e);return r.overflow?null:$o(r.instruction)}let t=Ko(e);if(!t||t.separated)return null;t.separated=true;let n=i0(t);return n.overflow?null:$o(n.instruction)}function Kr(e){e.nesting>0&&(e.nesting-=1),e.nesting===0&&gi(e);}function Qg(e){return e.phase==="instruction"&&e.nesting>=1}function eh(e){return e.phase==="result"&&e.nesting>=1}function du(e){let t=false,n=false,r=false,o=jn(),a=Gr(),i=()=>t&&n&&r,s=p=>{p==="PAGE"?t=true:p==="NUMPAGES"?n=true:r=true;},l=false,d=[],c=(p,m)=>{if(p.kind!=="runProperties"){if(ft(p,"begin")){Vr(a),a.nestingOverflow&&(l=true);return}if(zn(p)){$r(a,p,o,m);return}if(ft(p,"separate")){let g=a.nesting,h=a.phase,y=Xr(a);if(l)return;y&&(g<=1||h==="result")&&d.push(y.kind);return}if(ft(p,"end")&&(Kr(a),a.nesting===0)){if(!l)for(let g of d)s(g);d.length=0;}}},u=(p,m)=>{if(p.kind==="run")for(let g of p.children){if(!et(o))return;if(c(g,m+1),(g.kind==="drawing"||g.kind==="generic")&&!zn(g)&&"children"in g&&g.children.length>0){let h={...a,inner:a.inner.map(w=>({...w}))},y=l,x=d;d=[],f(g,m+1),Object.assign(a,h),l=y,d=x;}if(i()||o.exhausted)return}},f=(p,m)=>{if(!i()&&et(o)&&!(m>It)&&p.kind!=="textValue"){if(p.kind==="paragraph"){gi(a),l=false,d.length=0;for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return;gi(a),l=false,d.length=0;return}if(p.kind==="run"){u(p,m);return}if(chunkNJNFJPGB_cjs.Pc(p)){let g=qg(chunkNJNFJPGB_cjs.Rc(p)??"");if(g){s(g);return}}for(let g of p.children)if(f(g,m+1),i()||o.exhausted)return}};return f(e,0),!t&&!n&&!r?lu:{hasPage:t,hasNumPages:n,hasSectionPages:r}}function $s(e,t){if(!Number.isFinite(e)||e<0||t.length===0||t.length>64||t.includes(".")||t.includes(";")||t.includes("'"))return null;let n=String(Math.floor(e)),r=[],o=false;for(let m=0;m<t.length;m+=1)r.push(o),t[m]==="0"&&(o=true);let a=n.length,i=false,s=0,l=0,d=[],c=-1;for(let m=t.length-1;m>=0;m-=1){let g=t[m];if(g==="0"||g==="#"){i=true,s+=1,c=d.length,a>0?(a-=1,d.push(n[a])):d.push(g==="0"?"0":" ");continue}if(g===","){l===0&&(l=s),s=0,(a>0||r[m])&&(c=d.length,d.push(","));continue}d.push(g);}if(!i)return null;let u=[];for(;a>0;)l>0&&s>=l&&(u.push(","),s=0),a-=1,s+=1,u.push(n[a]);let f=d.slice(c+1).reverse().join(""),p=d.slice(0,c+1).reverse().join("");return f+u.reverse().join("")+p}var l0=64,d0=64,c0=[{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 Wn(e){if(!Number.isFinite(e))return 1;let t=Math.trunc(e);return t<0?1:t>9999?9999:t}function cr(e){return String(Wn(e))}function th(e){let t=Wn(e);return t<10?`0${t}`:String(t)}function cu(e){let t=Wn(e);t>3999&&(t=3999);let n="";for(let{value:r,glyph:o}of c0)for(;t>=r;)if(n+=o,t-=r,n.length>=64)return n.slice(0,64);return n||"I"}function nh(e){return cu(e).toLowerCase()}function uu(e){let t=Wn(e),n="";for(;t>0&&n.length<8;)t-=1,n=String.fromCharCode(65+t%26)+n,t=Math.floor(t/26);return n||"A"}function rh(e){return uu(e).toLowerCase()}function u0(e){let t=Wn(e),n=t%100,r=t%10,o=n>=11&&n<=13?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return `${t}${o}`}function f0(e){return Wn(e).toString(16).toUpperCase()}function p0(e){let t=["*","\u2020","\u2021","\xA7"],n=Wn(e);if(n<=0)return t[0];let r=(n-1)%t.length,o=Math.min(Math.floor((n-1)/t.length)+1,m0);return t[r].repeat(o)}var m0=8,Xs=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],g0=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"];function Ks(e){let t=Wn(e);if(t<20)return Xs[t];if(t<100){let r=t%10;return g0[Math.floor(t/10)]+(r===0?"":`-${Xs[r]}`)}if(t<1e3){let r=t%100;return `${Xs[Math.floor(t/100)]} hundred${r===0?"":` ${Ks(r)}`}`}let n=t%1e3;return `${Xs[Math.floor(t/1e3)]} thousand${n===0?"":` ${Ks(n)}`}`}function oh(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function h0(e){return oh(Ks(e))}var y0=new Map([["zero","zeroth"],["one","first"],["two","second"],["three","third"],["five","fifth"],["eight","eighth"],["nine","ninth"],["twelve","twelfth"]]);function b0(e){let t=y0.get(e);return t!==void 0?t:e.endsWith("y")?`${e.slice(0,-1)}ieth`:`${e}th`}function x0(e){let t=Ks(e),n=Math.max(t.lastIndexOf(" "),t.lastIndexOf("-")),r=n<0?"":t.slice(0,n+1);return oh(r+b0(t.slice(n+1)))}function nn(e,t){switch(e){case "decimal":return cr(t);case "decimalZero":return th(t);case "upperRoman":return cu(t);case "lowerRoman":return nh(t);case "upperLetter":return uu(t);case "lowerLetter":return rh(t);case "ordinal":return u0(t);case "cardinalText":return h0(t);case "ordinalText":return x0(t);case "hex":return f0(t);case "chicago":return p0(t);case "numberInDash":return `- ${cr(t)} -`;case "none":case "bullet":return "";default:return cr(t)}}function Ys(e,t,n){let r=e.length>64?e.slice(0,64):e,o="";for(let a=0;a<r.length&&!(o.length>=64);a+=1){let i=r[a];if(i==="%"&&a+1<r.length){let s=r[a+1];if(s>="1"&&s<="9"){let l=Number(s)-1,d=n[l]??"decimal",c=t[l]??1,u=d==="bullet"?"":nn(d,c);for(let f of u){if(o.length>=64)break;o+=f;}a+=1;continue}}o+=i;}return o}var Yo="0";function ur(e,t){return e!=="PAGE"||!t||t==="decimal"}function qs(e,t,n){return t===void 0||!ur(e,n)?Yo:$s(0,t)??Yo}function Uo(e,t){if(!Number.isFinite(e)||e<0)return "";let n=Math.floor(e),r=t&&t.length>0?t:"decimal";if(r==="none"||r==="bullet")return cr(n);let o=nn(r,n);return o.length>0?o:cr(n)}function Gn(e,t,n){if(e==="PAGE"){if(n!==void 0&&ur(e,t.format)){let o=$s(t.pageNumber,n);if(o!==null)return o}return Uo(t.pageNumber,t.format)}let r=e==="NUMPAGES"?t.pageCount:t.sectionPageCount??t.pageCount;if(!Number.isFinite(r)||r<0)return "";if(n!==void 0){let o=$s(r,n);if(o!==null)return o}return cr(Math.floor(r))}function fr(e){return e.hasPage||e.hasNumPages||e.hasSectionPages}function mu(e,t=lu){if(!e||!fr(t))return "";let n=[];return t.hasPage&&(n.push(`p${e.pageNumber}`),e.format&&n.push(`f${e.format}`)),t.hasNumPages&&n.push(`n${e.pageCount}`),t.hasSectionPages&&n.push(`s${e.sectionPageCount??e.pageCount}`),`|fld:${n.join("/")}`}function qo(e,t,n,r){let o=false,a=e.map((i,s)=>{let l=t+s,d=i.pageFieldSource;return d&&d.pageNumber===l&&d.sectionPageCount===n&&d.format===r?i:(o=true,{...i,pageFieldSource:{pageNumber:l,sectionPageCount:n,...r?{format:r}:{}}})});return o?a:e}function S0(e){for(let t of e.spans)if(t.fieldAtom?.pageField||t.fieldAtom?.pageRef)return true;return false}function ih(e){if(e.kind==="paragraph"){for(let t of e.lines)if(S0(t))return true;return false}for(let t of e.rows)for(let n of t.cells)for(let r of n.blocks)if(ih(r))return true;return false}function gu(e,t){let n=t,r=false;for(let o of e)n=Math.max(n,o.box.y+o.box.height),!r&&ih(o)&&(r=true);return {usedBottom:n,hasBodyPageFields:r}}var fu=new WeakMap;function hu(e,t,n,r){let o=fu.get(e);if(o)return t.length>0&&n!==t&&o.revision===r?(fu.delete(e),false):true;let a=t.length===0||t===n;return a&&Number.isFinite(r)&&fu.set(e,{revision:r}),a}function sh(e,t){if(e.kind==="paragraph"){for(let n of e.lines)for(let r of n.spans){let o=r.fieldAtom?.pageRef?.targetParagraphId;o!==void 0&&t.add(o);}return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)sh(o,t);}function lh(e,t,n,r){if(e.kind==="paragraph"){t.has(e.paragraphId)&&!r.has(e.paragraphId)&&r.set(e.paragraphId,n);return}for(let o of e.rows)for(let a of o.cells)for(let i of a.blocks)lh(i,t,n,r);}var ah=new WeakMap;function Zs(e){let t=ah.get(e);if(t!==void 0)return t;let n=R0(e);return ah.set(e,n),n}function R0(e){let t=null;for(let o of e)if(o.hasBodyPageFields!==false)for(let a of o.fragments)sh(a,t??=new Set);if(!t||t.size===0)return null;let n=new Map;for(let o of e){if(n.size>=t.size)break;let a=o.pageFieldSource,i={pageNumber:a?.pageNumber??o.index+1,...a?.format?{format:a.format}:{}};for(let s of o.fragments)lh(s,t,i,n);}let r="";for(let[o,a]of n)r+=`${o}@${a.pageNumber}/${a.format??""};`;return {hosts:n,token:r}}function yu(e){return Zs(e)?.token??""}function P0(e,t,n){let r=null;for(let o=0;o<e.spans.length;o+=1){let a=e.spans[o],i=a.fieldAtom?.pageRef;if(i){let d=n?.hosts.get(i.targetParagraphId);if(!d)continue;let c=Uo(d.pageNumber,d.format);if(c.length===0)continue;let f=hu(i.calibration,i.cached,c,n.revision)?c:i.cached;if(f.length===0||f===a.text)continue;r||(r=e.spans.slice()),r[o]={...a,text:f};continue}let s=a.fieldAtom?.pageField;if(!s)continue;let l=Gn(s.kind,t,s.picture);l!==a.text&&(r||(r=e.spans.slice()),r[o]={...a,text:l});}return r?{...e,spans:r}:e}function dh(e,t,n){let r=null;for(let o=0;o<e.length;o+=1){let a=e[o],i=a;if(a.kind==="paragraph"){let s=null;for(let l=0;l<a.lines.length;l+=1){let d=a.lines[l],c=P0(d,t,n);c!==d&&(s||(s=a.lines.slice()),s[l]=c);}s&&(i={...a,lines:s});}else {let s=null;for(let l=0;l<a.rows.length;l+=1){let d=a.rows[l],c=null;for(let u=0;u<d.cells.length;u+=1){let f=d.cells[u],p=dh(f.blocks,t,n);p!==f.blocks&&(c||(c=d.cells.slice()),c[u]={...f,blocks:p});}c&&(s||(s=a.rows.slice()),s[l]={...d,cells:c});}s&&(i={...a,rows:s});}i!==a&&(r||(r=e.slice()),r[o]=i);}return r??e}var Us=new WeakMap;function w0(e,t){return e.pageNumber===t.pageNumber&&e.pageCount===t.pageCount&&(e.sectionPageCount??e.pageCount)===(t.sectionPageCount??t.pageCount)&&e.format===t.format}function bu(e,t,n){let r=Us.get(e);r&&Us.set(t,{context:r.context,projector:r.projector,dy:r.dy+n});}var pu=new WeakMap;function pr(e){let t=e.pages.length;if(t===0)return e;let n=Zs(e.pages),r=n?.token??"",o=false,a=e.pages.map(i=>{let s=pu.get(i);if(s&&s.pageCount===t&&s.pageRefToken===r)return s.result!==i&&(o=true),s.result;let l=i.pageFieldSource,d={pageNumber:l?.pageNumber??i.index+1,pageCount:t,sectionPageCount:l?.sectionPageCount??t,...l?.format?{format:l.format}:{}},c=g=>{if(!g)return g;let h=g.pageFieldProjector,y=0;if(!h){let M=Us.get(g);if(!M||w0(M.context,d))return g;h=M.projector,y=M.dy;}o=true;let x=h(d),{pageFieldProjector:w,box:T,...F}=x,C={...F,box:y===0?T:{...T,y:T.y+y}};return Us.set(C,{context:d,projector:h,dy:y}),C},u=c(i.header),f=c(i.footer),p=i.hasBodyPageFields===false?i.fragments:dh(i.fragments,d,n?{hosts:n.hosts,revision:e.revision}:void 0);if(u===i.header&&f===i.footer&&p===i.fragments)return pu.set(i,{pageCount:t,pageRefToken:r,result:i}),i;p!==i.fragments&&(o=true);let m={...i,...u!==void 0?{header:u}:{},...f!==void 0?{footer:f}:{},...p!==i.fragments?{fragments:p}:{}};return pu.set(i,{pageCount:t,pageRefToken:r,result:m}),m});return o?{revision:e.revision,pages:a}:e}var v0=`
|
|
2
|
-
\r`,I0=/[ \t\n\r]*\\\*[ \t\n\r]*(?:"[^"]*"|[^ \t\n\r"\\]+)?[ \t\n\r]*$/;function ch(e,t){let n=t;for(;n<e.length&&v0.includes(e[n]);)n+=1;return n}function uh(e,t){if(e[t]==='"'){let r=t+1;for(;r<e.length&&e[r]!=='"';)r+=1;return r<e.length?r+1:r}let n=t;for(;n<e.length&&!`
|
|
3
|
-
\r"`.includes(e[n]);)n+=1;return n}function Js(e){if(e.length===0||e.length>256)return null;let t=ch(e,0);if(e[t]==='"')return null;let n=uh(e,t),r=e.slice(t,n).toUpperCase();if(r!=="MACROBUTTON"&&r!=="GOTOBUTTON")return null;let o=ch(e,n);if(o>=e.length)return null;let a=uh(e,o),i=e.slice(a).trim();for(;;){let s=i.replace(I0,"").trimEnd();if(s===i)break;i=s;}if(i[0]==='"'){let s=i.indexOf('"',1);s===-1?i=i.slice(1):s===i.length-1&&(i=i.slice(1,-1));}return i.length===0?null:{display:i}}var fh=Object.freeze({TITLE:"title",AUTHOR:"creator",SUBJECT:"subject",KEYWORDS:"keywords",LASTSAVEDBY:"lastModifiedBy",COMMENTS:"description"}),T0=/\s*\\[A-Z*@#!]\s*(?:"[^"]*"|[^\s"\\]+)?\s*$/;function k0(e){let t=e;for(;;){let n=t.replace(T0,"").trimEnd();if(n===t)return t;t=n;}}function O0(e){let t=e.trimStart();if(t.length===0)return null;if(t[0]==='"'){let o=t.indexOf('"',1),a=o===-1?t.slice(1):t.slice(1,o);return a.length>0?a:null}let n=t.search(/\s/),r=n===-1?t:t.slice(0,n);return r.length>0?r:null}function Qs(e){let t=Wr(e);if(t===null||t.length===0)return null;let n=k0(t),r=fh[n];if(r)return {property:r};if(!n.startsWith("DOCPROPERTY"))return null;let o=n.slice(11);if(o.length===0||!/^\s/.test(o))return null;let a=O0(o);if(a===null)return null;let i=fh[a];return i?{property:i}:null}function el(e,t){if(!t)return null;let n=t[e.property];return n!==void 0&&n.length>0?n:null}var C0=chunkNJNFJPGB_cjs.Xc,F0=2048,M0=256;function B0(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
|
|
4
|
-
`||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
|
|
5
|
-
\r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}var E0=new Set(["\\l","\\o","\\t","\\m","\\n","\\*","\\#","\\@"]);function tl(e){if(e.length===0||e.length>C0)return null;let t=B0(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="HYPERLINK")return null;let r=null,o=false,a=null,i=false,s=null,l=false;for(let d=1;d<t.length;d+=1){let c=t[d];if(!c.quoted&&c.value.startsWith("\\")){let u=c.value.toLowerCase();if(!E0.has(u))continue;let f=t[d+1];if(!f||!f.quoted&&f.value.startsWith("\\"))continue;d+=1;let p=f.value.length>0&&f.value.length<=M0;u==="\\l"?i||(i=true,p&&(a=f.value)):u==="\\o"&&(l||(l=true,p&&(s=f.value)));continue}o||(o=true,c.value.length>0&&c.value.length<=F0&&(r=c.value));}return r===null&&a===null?null:{target:r,anchor:a,tooltip:s}}function L0(e){let t=e.toUpperCase(),n=e[0]===e[0]?.toUpperCase();switch(t){case "ARABIC":return "decimal";case "ALPHABETIC":return n?"upperLetter":"lowerLetter";case "ROMAN":return n?"upperRoman":"lowerRoman";case "ORDINAL":return "ordinal";case "CARDTEXT":return "cardinalText";case "ORDTEXT":return "ordinalText";case "HEX":return "hex";default:return null}}function mr(e){if(Wr(e)===null)return null;let n=e.replace(/\s+/g," ").trim().split(" "),r=n[0]?.toUpperCase();if(r!=="AUTONUM"&&r!=="AUTONUMLGL"&&r!=="AUTONUMOUT")return null;let o=null,a=false;for(let i=1;i<n.length;i+=1){let l=n[i].toUpperCase();if(l==="\\E"){a=true;continue}if(l==="\\*"){let d=n[i+1];if(d===void 0)return null;if(i+=1,d.toUpperCase()==="MERGEFORMAT")continue;if(o=L0(d),o===null)return null;continue}return null}return {kind:r,numFmt:o,suppressPeriod:a}}function ph(e,t){let n=nn(e.numFmt??"decimal",t);return n.length===0?"":e.suppressPeriod?n:`${n}.`}var Yr=1024;function hi(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkNJNFJPGB_cjs.ca&&n.localName===t)return n.value}function xu(e){return e.kind==="drawing"||e.localName==="drawing"||e.localName==="pict"}function gh(e,t){let n="",r=(o,a)=>{if(!(o.kind==="textValue"||n.length>=Yr)&&!(t.exhausted||a>It)&&et(t)){if(o.kind==="text"){for(let i of o.children)i.kind==="textValue"&&(n+=i.value.slice(0,Yr-n.length));return}for(let i of o.children)r(i,a+1);}};for(let o of e.children)r(o,1);return n}var mh=new WeakMap;function hh(e,t){let n=mh.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,s="",l=jn(),d=u=>{let f=Yr-s.length;if(f<=0){a=true;return}s+=u.length>f?u.slice(0,f):u;},c=(u,f)=>{if(!(a||u.kind==="textValue")&&!(l.exhausted||f>It)){if(u.kind==="bookmarkStart"){!o&&hi(u,"name")===t&&(o=true,i=hi(u,"id"));return}if(u.kind==="bookmarkEnd"){o&&i!==void 0&&hi(u,"id")===i&&(a=true);return}if(u.kind==="run"){if(!o)return;for(let p of u.children){if(a||!et(l))return;if(p.kind==="text")for(let m of p.children)m.kind==="textValue"&&d(m.value);else p.kind==="tab"&&d(" ");}return}if(!(xu(u)||chunkNJNFJPGB_cjs.Pc(u))&&et(l))for(let p of u.children)c(p,f+1);}};for(let u of e.children){if(a||!et(l))break;c(u,1);}return n||(n=new Map,mh.set(e,n)),n.set(t,s),s}var Su=256,N0=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:false}),A0=Object.freeze({suppressNonDelimiterText:true,noteRef:false,pageRef:false}),D0=Object.freeze({suppressNonDelimiterText:false,noteRef:true,pageRef:false}),_0=Object.freeze({suppressNonDelimiterText:false,noteRef:false,pageRef:true}),nl=new WeakMap;function gr(e){return nl.get(e)??N0}function H0(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "){n+=1;continue}if(r==='"'){let a=e.indexOf('"',n+1);if(a===-1)return null;t.push(e.slice(n+1,a)),n=a+1;continue}let o=n;for(;o<e.length&&e[o]!==" ";)o+=1;t.push(e.slice(n,o)),n=o;}return t}function rn(e){if(e.length>chunkNJNFJPGB_cjs.Xc)return null;let t=e.replace(/\s+/g," ").trim();if(t.length>chunkNJNFJPGB_cjs.Xc)return null;let n=H0(t);if(n===null||n.length<2)return null;let r=n[0].toUpperCase();if(r!=="REF"&&r!=="NOTEREF"&&r!=="PAGEREF")return null;let o=n[1];if(o.length===0||o.length>Su||o.startsWith("\\"))return null;if(r==="NOTEREF")return z0(n,o);if(r==="PAGEREF")return j0(n,o);let a=false,i=false,s=false,l=false,d=false;for(let f=2;f<n.length;f+=1){let p=n[f].toUpperCase();if(p==="\\R")i=true;else if(p==="\\W")s=true;else if(p==="\\N")a=true;else if(p==="\\T")l=true;else if(p==="\\H")d=true;else if(p==="\\*"&&n[f+1]?.toUpperCase()==="MERGEFORMAT")f+=1;else {if(p==="\\*MERGEFORMAT")continue;return null}}let u={bookmark:o,numberSwitch:a?"n":i?"r":s?"w":null,hyperlink:d};return l&&nl.set(u,A0),u}function z0(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return nl.set(r,D0),r}function j0(e,t){let n=false;for(let o=2;o<e.length;o+=1){let a=e[o].toUpperCase();if(a==="\\H")n=true;else if(a==="\\*"&&e[o+1]?.toUpperCase()==="MERGEFORMAT")o+=1;else {if(a==="\\*MERGEFORMAT")continue;return null}}let r={bookmark:t,numberSwitch:null,hyperlink:n};return nl.set(r,_0),r}function yi(e,t,n){if(!e.has(t)&&e.size>=8){let r=e.keys().next();r.done||e.delete(r.value);}e.set(t,n);}var ve="all-markup";function W0(e){let t=new Set;for(let r of e)t.add(r);if(t.size===0)return;let n=[...t].sort();return Object.freeze({hiddenAuthors:t,includes:r=>!t.has(r.author),includesNode:(r,o)=>!t.has(o),cacheKey:JSON.stringify(n)})}function Zo(e,t){return e.includes?.(t)??bh(e,t.nodeId,t.author)}function bh(e,t,n){return e.includesNode?.(t,n)??!e.hiddenAuthors.has(n)}function Ru(e,t,n){return Zo(e,t)?n:e.excludedNodeMode?.(t.nodeId,t.author)??"proposed"}function xh(e,t,n,r){return bh(e,t,n)?r:e.excludedNodeMode?.(t,n)??"proposed"}var $n=Object.freeze([]),G0=32,V0={revisionInsert:"insert",revisionDelete:"delete",revisionMoveFrom:"moveFrom",revisionMoveTo:"moveTo"};function Vn(e,t){for(let n of e.attributes)if(n.localName===t&&n.namespaceUri===e.namespaceUri&&(n.kind==="wmlVal"||n.kind==="genericExtension"||n.kind==="xmlSpace"))return n.value}function Ht(e){if(e.kind==="textValue")return null;let t=V0[e.kind];if(t===void 0)return null;let n=Vn(e,"date");return {kind:t,id:Vn(e,"id")??"",author:Vn(e,"author")??"",...n===void 0?{}:{date:n},nodeId:e.id}}function $t(e,t){return e.length===0?[t]:[...e,t]}function Mt(e){return e.kind!=="textValue"&&chunkNJNFJPGB_cjs.ja(e.kind)}var hr=G0;function Ie(e,t,n){if(e.length===0||t==="all-markup"&&!n)return true;for(let r of e){let o=n?Ru(n,r,t):t;if(o==="all-markup")continue;if(o==="proposed"?r.kind==="delete"||r.kind==="moveFrom":r.kind==="insert"||r.kind==="moveTo")return false}return true}function ol(e,t,n){if(!n&&t==="all-markup")return e;if(!Ie(e,t,n))return null;if(!n)return e;let r=e.filter(o=>Zo(n,o));return r.length===0?$n:r}function yh(e,t,n){return t==="all-markup"&&(!n||Zo(n,e))}function Sh(e,t){return t?e.filter(n=>{if(n.localName!=="rPrChange"&&n.localName!=="pPrChange")return true;let r="revisionNodeId"in n&&typeof n.revisionNodeId=="string"?n.revisionNodeId:"";return Zo(t,{kind:"format",id:n.attributes?.id??"",author:n.attributes?.author??"",...n.attributes?.date===void 0?{}:{date:n.attributes.date},nodeId:r})}):e}function al(e,t,n){if(t!=="all-markup")return {revisions:$n,formatRevision:null};if(!n)return {revisions:Ur(e),formatRevision:bi(e)};let r=Ur(e).filter(a=>yh(a,t,n)),o=bi(e);return {revisions:r,formatRevision:o&&yh(o,t,n)?o:null}}function Rh(e,t,n){let r=Ur(e);if(!n)return r.length>0||bi(e)!==null;if(r.some(a=>Zo(n,a)))return true;let o=bi(e);return o!==null&&Zo(n,o)}function Ur(e){if(e.kind==="textValue")return rl;let t=e.children.find(o=>o.kind==="paragraphProperties");if(!t||t.kind==="textValue")return rl;let n=t.children.find(o=>o.kind==="runProperties");if(!n||n.kind==="textValue")return rl;let r=[];for(let o of n.children){if(o.kind==="textValue"||o.namespaceUri!==chunkNJNFJPGB_cjs.ca)continue;let a=$0[o.localName];if(a===void 0)continue;let i=Vn(o,"date");r.push({kind:a,id:Vn(o,"id")??"",author:Vn(o,"author")??"",...i===void 0?{}:{date:i},nodeId:o.id});}return r.length>0?r:rl}var $0={ins:"insert",del:"delete",moveFrom:"moveFrom",moveTo:"moveTo"};function bi(e){if(e.kind==="textValue")return null;let t=e.children.find(r=>r.kind==="paragraphProperties");if(!t||t.kind==="textValue")return null;let n=t.children.find(r=>r.kind==="runProperties");if(!n||n.kind==="textValue")return null;for(let r of n.children){if(r.kind==="textValue"||r.namespaceUri!==chunkNJNFJPGB_cjs.ca||r.localName!=="rPrChange")continue;let o=Vn(r,"date");return {kind:"format",id:Vn(r,"id")??"",author:Vn(r,"author")??"",...o===void 0?{}:{date:o},nodeId:r.id}}return null}var rl=Object.freeze([]);function Pu(e){return e.find(t=>Ph(t))??e[0]}function Ph(e){return e.kind==="delete"||e.kind==="moveFrom"}function il(e,t){let n=Pu(e);return {...n?{markRevisions:e,markRevision:n}:{},...t?{markFormatRevision:t}:{}}}function X0(e){return Pu(Ur(e))??null}function K0(e){for(let t of e){if(t.localName!=="rPrChange"&&t.localName!=="pPrChange")continue;let n=t.attributes??{},r=n.date;return {kind:"format",id:n.id??"",author:n.author??"",...r===void 0?{}:{date:r},nodeId:""}}return null}function on(e){return e.some(t=>t.kind==="delete"||t.kind==="moveFrom")}var Y0=hr;function Jo(e,t){if(e.kind!=="textValue"){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkNJNFJPGB_cjs.ca&&n.localName===t)return n}}function U0(e){if(e.kind==="textValue")return false;let t=Jo(e,"paragraphProperties")??Jo(e,"pPr");if(!t)return false;let n=Jo(t,"runProperties")??Jo(t,"rPr");return n===void 0?false:Jo(n,"del")!==void 0||Jo(n,"moveFrom")!==void 0}function wu(e,t,n,r,o=[]){if(e.kind==="textValue"||t>Y0)return true;let a=(i,s)=>{for(let l of i){if(l.kind==="textValue")continue;if(l.kind==="run"){for(let u of l.children){if(u.kind==="text"){for(let f of u.children)if(f.kind==="textValue"&&f.value.length>0)return false;continue}if(u.kind!=="runProperties")return false}continue}if(chunkNJNFJPGB_cjs.nc(l)){if(s>=chunkNJNFJPGB_cjs.mc)continue;let u=chunkNJNFJPGB_cjs.pc(l);if(u&&!a(u,s+1))return false;continue}if(l.kind==="hyperlink"){if(!wu(l,s+1,n,r,o))return false;continue}if(!Mt(l))continue;let d=Ht(l);if(!d)continue;let c=$t(o,d);if(Ie(c,n,r)&&!wu(l,s+1,n,r,c))return false}return true};return a(e.children,t)}function vu(e,t,n){if(t==="all-markup"&&!n)return false;for(let r of Ur(e)){let o=n?Ru(n,r,t):t;if(o==="all-markup")continue;let a=r.kind==="delete"||r.kind==="moveFrom";if(o==="proposed"&&a||o==="original"&&!a)return true}return false}function Iu(e,t="proposed",n){return e.kind!=="paragraph"||!vu(e,t,n)?false:wu(e,0,t,n)}function q0(e){let t=e.root;if(t.localName==="hdr"||t.localName==="ftr")return t;let n=r=>{if(r.kind!=="textValue"){if(r.kind==="body")return r;for(let o of r.children){let a=n(o);if(a)return a}}};return n(t)}function Z0(e,t,n){return !(e.kind==="paragraph"&&Iu(e,t,n))}var kh=new WeakMap;function Qo(e){return kh.get(e)??null}function Oh(e,t){let n=t.children.filter(a=>wh(a)),r=e.flatMap(a=>a.children.filter(i=>!wh(i))),o={...t,children:[...n,...r]};return kh.set(o,{merged:o,members:e}),o}function wh(e){return e.kind!=="textValue"&&(e.kind==="paragraphProperties"||e.localName==="pPr")}function J0(e,t,n){if(t==="all-markup"&&!n)return e.map(s=>s.block);let r=[],o=[],a=null,i=()=>{r.push(...vh(o)),o=[],a=null;};for(let{block:s,parentKey:l}of e){if(o.length>0&&l!==a&&i(),s.kind!=="paragraph"){i(),r.push(s);continue}let d=vu(s,t,n);if((d||o.length>0)&&!tI(s,t,n)){i(),r.push(s);continue}if(d){o.push(s),a=l;continue}if(o.length===0){r.push(s);continue}let c=[...o,s];o=[],a=null,r.push(Oh(c,s));}return r.push(...vh(o)),r}function vh(e){if(e.length<2)return e;let t=e[e.length-1];return [Oh(e,t)]}function xi(e,t,n){return J0(eI(e),t,n).filter(o=>Z0(o,t,n))}var Q0=new Set(["pPr","bookmarkStart","bookmarkEnd","proofErr","permStart","permEnd"]);function Ch(e){for(let t of e.children){if(t.kind==="textValue"){if(t.value.length>0)return false;continue}if(t.namespaceUri!==chunkNJNFJPGB_cjs.ca||!Q0.has(t.localName))return false}return true}function eI(e){let t=[],n=(r,o,a)=>{for(let i of r)if(i.kind!=="textValue"){if(i.kind==="paragraph"||i.kind==="table"){t.push({block:i,parentKey:a});continue}chunkNJNFJPGB_cjs.nc(i)&&o<chunkNJNFJPGB_cjs.mc&&n(chunkNJNFJPGB_cjs.qc(i),o+1,i.id);}};return n(e,0,""),t}var Ih=new WeakMap;function tI(e,t,n){let r=`${t}|${n?.cacheKey??""}`,o=Ih.get(e),a=o?.get(r);if(a!==void 0)return a;let i=nI(e,t,n);return o?yi(o,r,i):Ih.set(e,new Map([[r,i]])),i}function nI(e,t,n){if(!rI(e))return false;let r=sl(e,[],void 0,void 0,void 0,void 0,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n),o=0;for(let a of r)o=Math.max(o,a.end);return o<=chunkNJNFJPGB_cjs.Ie(e).length}function rI(e){let t=0,n=false,r=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===chunkNJNFJPGB_cjs.ca&&o.localName==="fldChar"){let a=o.attributes.find(i=>i.localName==="fldCharType")?.value;a==="begin"?t+=1:a==="end"&&(t-=1,t<0&&(n=true));}for(let a of o.children)r(a);}};return r(e),t===0&&!n}var Th=chunkNJNFJPGB_cjs.Nf(16);function zt(e,t="all-markup",n){let r=`${t}|${n?.cacheKey??""}`,o=Th.get(e),a=o?.get(r);if(a)return a;let i=q0(e),s=i?xi(i.children,t,n):[];return o?yi(o,r,s):Th.set(e,new Map([[r,s]])),s}function ea(e,t="all-markup",n){return e.kind!=="note"?[]:xi(e.children,t,n)}function Tu(e,t="all-markup",n){return e.kind==="textValue"?[]:xi(e.children,t,n)}function oI(e){let t=Object.entries(e.attributes??{}).sort(([n],[r])=>n<r?-1:n>r?1:0).map(([n,r])=>`${n}=${r}`).join("\0,");return `${e.localName}(\0${t}\0)`}function aI(e){return e.map(oI).join("\0;")}var Fh=new WeakMap,ku=1<<18;function Si(e,t){return `${e}|${t?"drawing":""}`}function Ce(e){let t="";for(let n of e)t+=`${n.length}:${n}`;return t}var Mh=new WeakMap;function Eh(e,t){if(!t||t.size===0)return "";let n=Mh.get(e),r=n?.get(t);if(r!==void 0)return r;let o=Ou(e,a=>t.get(a.id)?.cacheToken??"");return o.length<=ku&&(n||(n=new WeakMap,Mh.set(e,n)),n.set(t,o)),o}function Ou(e,t){let n=[],r=false,o=a=>{if(a.kind==="paragraph"){let i=t(a);i&&(r=true),n.push(i);return}if("children"in a)for(let i of a.children)o(i);};return o(e),r?n.join("\0"):""}function Lh(e){if(e.kind==="textValue")return `t:${e.value}`;let t=e.kind==="paragraph"||e.kind==="table";if(t){let r=Fh.get(e);if(r!==void 0)return r}let n=iI(e);return t&&n.length<=ku&&Fh.set(e,n),n}function iI(e){if(e.kind==="textValue")return `t:${e.value}`;let t=[`${e.kind}:${"localName"in e?e.localName:""}#${"id"in e?e.id:""}`];if("attributes"in e&&Array.isArray(e.attributes)){let n=[...e.attributes].map(r=>`${r.namespaceUri??""}:${r.localName}=${r.value}`).sort();for(let r of n)t.push(r);}for(let n of e.children??[])t.push(Lh(n));return `(${t.join("|")})`}var Bh=new WeakMap;function ta(e){let t=Math.round(e.width*1e3),n=e.drawingToken??"",r=e.exclusionToken??"",o=aI(e.properties),a=Bh.get(e.paragraph);if(a&&a.producer===e.producer&&a.width===t&&a.drawingToken===n&&a.exclusionToken===r&&a.propertiesToken===o)return a.key;let i=[e.producer,t,n,r,o,Lh(e.paragraph)].join("\0");return i.length<=ku&&Bh.set(e.paragraph,{producer:e.producer,width:t,drawingToken:n,exclusionToken:r,propertiesToken:o,key:i}),i}var Nh=new WeakMap;function Ah(e,t){Nh.set(e,t);}function Dh(e,t,n,r){if(!e)return;let o=t??new Set;for(let a of n)o.add(a);for(let a of r){let i=Nh.get(a);if(i)for(let s of i)o.add(s);}t||e.retain(o);}var sI=8,lI=8;function dI(e={}){let t=Math.max(1,e.maxEntries??4096),n=t*8,r=new Map,o=0,a=0,i=0,s=0,l=0;return {get(d){let c=r.get(d);if(c===void 0){s+=1;return}return i+=1,r.delete(d),c.generation=o,r.set(d,c),c.value},set(d,c){for(r.has(d)&&r.delete(d),r.set(d,{value:c,generation:o});r.size>t;){let u=r.entries().next();if(u.done||u.value[1].generation>=o&&r.size<=n)break;r.delete(u.value[0]),l+=1;}},retentionPassDue(){return a+=1,a%sI===0},retain(d){o+=1;for(let c of d){let u=r.get(c);u&&(u.generation=o);}for(let[c,u]of r)o-u.generation>lI&&(r.delete(c),l+=1);},clear(){r.clear();},get stats(){return {hits:i,misses:s,evictions:l,size:r.size}}}}var Fu=512,Hh=9,an=31680/20,cI=8,uI=128;function Ri(e,t){return e.kind!=="textValue"&&e.namespaceUri===chunkNJNFJPGB_cjs.ca&&e.localName===t}function nt(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Bt(e,t){for(let n of e.children)if(Ri(n,t))return n}function Xn(e,t=false){return e===void 0||!(t?/^-?\d{1,9}$/:/^\d{1,9}$/).test(e)?null:Number(e)}function fI(e){let t=e/20;return !Number.isFinite(t)||t<=0?0:t>an?an:t}function Cu(e){let t=e/20;return Number.isFinite(t)?t>an?an:t<-an?-an:t:0}function pI(e){let t={left:0,right:0,hanging:0,firstLine:0};if(!e)return t;let n=Bt(e,"ind");if(!n)return t;let r=Xn(nt(n,"left")??nt(n,"start"),true),o=Xn(nt(n,"right")??nt(n,"end"),true),a=Xn(nt(n,"hanging")),i=Xn(nt(n,"firstLine"),true);return {left:r===null?0:Cu(r),right:o===null?0:Cu(o),hanging:a===null?0:fI(a),firstLine:i===null?0:Cu(i),stated:{left:r!==null,right:o!==null,firstLineOffset:a!==null||i!==null}}}function mI(e){return e==="space"?"space":e==="nothing"?"nothing":"tab"}function gI(e){return e==="center"?"center":e==="right"||e==="end"?"right":"left"}function hI(e,t){let n=Bt(e,t);if(!n)return false;let r=nt(n,"val");return r!=="0"&&r!=="false"&&r!=="off"}function _h(e,t){let n=Bt(e,t);if(!n)return;let r=nt(n,"val");if(!(r===void 0||r.length===0||r.length>uI))return r}function yI(e,t){for(let n of e){if(n.localName!==t)continue;let r=n.attributes?.val;return !(r==="0"||r==="false")}return false}function zh(e){let t=Xn(nt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Bt(e,"start"),r=1;if(n){let y=Xn(nt(n,"val"));y!==null&&y>=0&&(r=Math.min(y,9999));}let o=Bt(e,"numFmt"),a=(o?nt(o,"val"):void 0)??"decimal",i=Bt(e,"lvlText"),s=i?nt(i,"val")??"":"",l=Bt(e,"lvlJc"),d=gI(l?nt(l,"val"):void 0),c=Bt(e,"suff"),u=mI(c?nt(c,"val"):void 0),f=Bt(e,"lvlRestart"),p;if(f){let y=Xn(nt(f,"val"));y!==null&&y>=0&&y<=9&&(p=y);}let m=Bt(e,"pPr"),g=Bt(e,"rPr"),h=g?na(g):[];return {ilvl:t,start:r,numFmt:a.length>64?"decimal":a,lvlText:s.length>64?s.slice(0,64):s,lvlJc:d,suff:u,indent:pI(m),...p!==void 0?{lvlRestart:p}:{},isLgl:hI(e,"isLgl"),runProperties:h,vanish:yI(h,"vanish")}}function bI(e){let t=nt(e,"abstractNumId");if(t===void 0||t.length===0||t.length>64)return null;let n=new Map;for(let a of e.children){if(!Ri(a,"lvl"))continue;if(n.size>=9)break;let i=zh(a);i&&!n.has(i.ilvl)&&n.set(i.ilvl,i);}let r=_h(e,"numStyleLink"),o=_h(e,"styleLink");return {abstractNumId:t,levels:n,...r!==void 0?{numStyleLink:r}:{},...o!==void 0?{styleLink:o}:{}}}function xI(e){let t=Xn(nt(e,"ilvl"));if(t===null||t<0||t>8)return null;let n=Bt(e,"startOverride"),r;if(n){let i=Xn(nt(n,"val"));i!==null&&i>=0&&(r=Math.min(i,9999));}let o=Bt(e,"lvl"),a=o?zh(o)??void 0:void 0;return r===void 0&&a===void 0?{ilvl:t,override:{}}:{ilvl:t,override:{...r!==void 0?{startOverride:r}:{},...a?{level:a}:{}}}}function SI(e){let t=nt(e,"numId");if(t===void 0||t.length===0||t.length>64)return null;let n=Bt(e,"abstractNumId"),r=n?nt(n,"val"):void 0;if(!r||r.length>64)return null;let o=new Map;for(let a of e.children){if(!Ri(a,"lvlOverride"))continue;if(o.size>=Hh)break;let i=xI(a);i&&!o.has(i.ilvl)&&o.set(i.ilvl,i.override);}return {numId:t,abstractNumId:r,overrides:o}}function RI(e){let t=new Map,n=new Map;if(!e)return {abstractNums:t,nums:n};let r=0,o=0;for(let a of e.children){if(Ri(a,"abstractNum")){if(r>=Fu)continue;r+=1;let i=bI(a);i&&!t.has(i.abstractNumId)&&t.set(i.abstractNumId,i);continue}if(Ri(a,"num")){if(o>=Fu)continue;o+=1;let i=SI(a);i&&!n.has(i.numId)&&n.set(i.numId,i);}}return {abstractNums:t,nums:n}}function PI(e,t,n){let r=new Set([t.abstractNumId]),o=t;for(let a=0;a<cI;a+=1){let i=o.numStyleLink;if(i===void 0)return o;let s=n(i);if(s===void 0)return null;let l=e.nums.get(s);if(!l)return null;let d=e.abstractNums.get(l.abstractNumId);if(!d||r.has(d.abstractNumId))return null;r.add(d.abstractNumId),o=d;}return null}function jh(e,t){let n=false,r=new Map(e.abstractNums);for(let[o,a]of e.abstractNums){if(a.numStyleLink===void 0)continue;let i=PI(e,a,t);!i||i.levels===a.levels||i.levels.size===0||(r.set(o,{...a,levels:i.levels}),n=true);}return n?{abstractNums:r,nums:e.nums}:e}function qr(e,t,n){if(n<0||n>8)return null;let r=e.nums.get(t);if(!r)return null;let o=e.abstractNums.get(r.abstractNumId);if(!o)return null;let a=r.overrides.get(n),i=a?.level??o.levels.get(n);return i?{abstractNumId:r.abstractNumId,level:i,...a?.startOverride!==void 0?{startOverride:a.startOverride}:{}}:null}var Mu=Object.freeze({abstractNums:new Map,nums:new Map});function wI(e,t){let n=e.nums.get(t),r=[];for(let o=0;o<=8;o+=1){let a=qr(e,t,o);if(!a){r.push(1);continue}let i=n?.overrides.get(o)?.startOverride;r.push(i??a.level.start);}return r}function vI(e,t,n){let r=[];for(let o=0;o<=8;o+=1){let a=qr(e,t,o);r.push(a?.level.numFmt??"decimal");}return {formats:r,starts:[...n]}}function Wh(e,t){return t?e.map(n=>n==="bullet"||n==="none"?n:"decimal"):e}function II(e,t){if(t===0)return null;if(t===void 0)return e-1;let n=t-1;return n>=e?null:n}function Bu(e){let t=new Map,n=new Map,r=new Map,o=a=>{let i=t.get(a);i||(i=[0,0,0,0,0,0,0,0,0],t.set(a,i));let s=n.get(a);s||(s=[false,false,false,false,false,false,false,false,false],n.set(a,s));let l=r.get(a);return l||(l=wI(e,a),r.set(a,l)),{counters:i,initialized:s,starts:l}};return {advance(a,i){if(i<0||i>8||a.length===0||a.length>64)return null;let s=qr(e,a,i);if(!s)return null;let{abstractNumId:l,level:d}=s,{counters:c,initialized:u,starts:f}=o(a),{formats:p}=vI(e,a,f);for(let F=i+1;F<=8;F+=1){let C=qr(e,a,F);if(!C)continue;let M=II(F,C.level.lvlRestart);M!==null&&i<=M&&(u[F]=false);}let m=f[i]??d.start;u[i]?c[i]+=1:(c[i]=m,u[i]=true);let g=c.slice(),h=u.slice(),y=g.map((F,C)=>h[C]?F:f[C]??1),x=Wh(p,d.isLgl),w=d.vanish?"":d.numFmt==="bullet"&&!/%[1-9]/.test(d.lvlText)?d.lvlText:Ys(d.lvlText,y,x),T={abstractNumId:l,numId:a,ilvl:i,level:d,counters:g,markerText:w};return Gh.set(T,y),T}}}var Gh=new WeakMap;function Vh(e){return Gh.get(e)??e.counters}var TI=/[\p{L}\s]/u;function kI(e){let t="";for(let n=0;n<e.length;n+=1){let r=e[n],o=e[n+1];if(r==="%"&&o!==void 0&&o>="1"&&o<="9"){t+=r+o,n+=1;continue}TI.test(r)||(t+=r);}return t}function $h(e,t=false,n=false){let{index:r,numId:o,ilvl:a,expandCounters:i}=e;if(a<0||a>8)return null;let s=[],l=[];for(let p=0;p<=8;p+=1){let m=qr(r,o,p);s.push(p<=a?m?.level??null:null),l.push(m?.level.numFmt??"decimal");}let d=p=>p!==null&&p.numFmt!=="bullet"&&p.numFmt!=="none"&&p.lvlText.length>0;if(!d(s[a]??null))return null;let c=[],u=[];for(let p=a;p>=0&&!(t&&p!==a);p-=1){let m=s[p];d(m)&&(p!==a&&u.some(g=>g.includes(`%${p+1}`))||(c.push(p),u.push(m.lvlText)));}c.reverse();let f="";for(let p of c){let m=s[p],g=n?kI(m.lvlText):m.lvlText;f+=Ys(g,i,Wh(l,m.isLgl));}return f.length>0?f:null}var Xh=21600;function Ze(e){return Number.isFinite(e)?e:0}function Pi(e){if(e.length===0)return Object.freeze([]);let t=[...e].sort((o,a)=>o.start-a.start||o.end-a.end),n=[],r=t[0];for(let o=1;o<t.length;o+=1){let a=t[o];a.start<=r.end+1e-4?r=Object.freeze({start:r.start,end:Math.max(r.end,a.end)}):(n.push(r),r=a);}return n.push(r),Object.freeze(n)}function OI(e,t){let n=[];for(let r of e)for(let o of t){let a=Math.max(r.start,o.start),i=Math.min(r.end,o.end);i>a+1e-6&&n.push(Object.freeze({start:a,end:i}));}return Pi(n)}function Eu(e,t,n){let r=[];for(let o of e){let a=Math.max(o.start,t),i=Math.min(o.end,n);i>a+1e-6&&r.push(Object.freeze({start:a,end:i}));}return Pi(r)}function CI(e,t,n){let r=[],o=t;for(let a of e)a.start>o&&r.push(Object.freeze({start:o,end:a.start})),o=Math.max(o,a.end);return o<n&&r.push(Object.freeze({start:o,end:n})),Object.freeze(r)}function Yh(e,t){return ra(e,t)}function Lu(e,t,n){return Yh(ra(e,t),n)}function FI(e,t){let n=[],r=Math.min(e.length,yt);if(r<2)return Object.freeze([]);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r],s=a.y,l=i.y;if(s===l)continue;let d=Math.min(s,l),c=Math.max(s,l);if(t<d||t>c||t===c&&l>s||t===d&&l<s)continue;let u=(t-s)/(l-s),f=a.x+u*(i.x-a.x);Number.isFinite(f)&&n.push({x:f,delta:l>s?1:-1});}return n.sort((o,a)=>o.x-a.x||o.delta-a.delta),Object.freeze(n)}function MI(e,t){let n=[],r=Math.min(e.length,yt);for(let o=0;o<r;o+=1){let a=e[o],i=e[(o+1)%r];if(a.y!==i.y||Math.abs(t-a.y)>1e-6)continue;let s=Math.min(a.x,i.x),l=Math.max(a.x,i.x);l>s&&n.push(Object.freeze({start:s,end:l}));}return Pi(n)}function Kh(e,t,n){let r=BI(FI(e,t),n),o=MI(e,t);return Pi([...r,...o])}function BI(e,t){if(e.length===0)return Object.freeze([]);let n=[];if(t==="evenodd"){for(let a=0;a+1<e.length;a+=2){let i=e[a].x,s=e[a+1].x;s>i&&n.push(Object.freeze({start:i,end:s}));}return Object.freeze(n)}let r=0,o=null;for(let a of e){let i=r;r+=a.delta,i===0&&r!==0?o=a.x:i!==0&&r===0&&o!==null&&(a.x>o&&n.push(Object.freeze({start:o,end:a.x})),o=null);}return Object.freeze(n)}function EI(e,t){return Object.freeze({top:Ze(e.top)+Ze(t.top),right:Ze(e.right)+Ze(t.right),bottom:Ze(e.bottom)+Ze(t.bottom),left:Ze(e.left)+Ze(t.left)})}function LI(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y,l=r.x-n.x,d=r.y-n.y,c=i*d-s*l;if(Math.abs(c)<1e-12)return null;let f=((n.x-e.x)*s-(n.y-e.y)*i)/c,p=((n.x-e.x)*d-(n.y-e.y)*l)/c;if(f<-1e-9||f>1+1e-9||p<-1e-9||p>1+1e-9)return null;let m=e.y+f*s;return !Number.isFinite(m)||m<o-1e-6||m>a+1e-6?null:m}function NI(e,t,n,r){let o=[],a=Math.min(e.length,yt),i=Math.min(t.length,yt);if(a<2||i<2)return Object.freeze([]);let s=yt*yt,l=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(l>=s)return Object.freeze(o);l+=1;let p=t[f],m=t[(f+1)%i],g=LI(c,u,p,m,n,r);g!==null&&o.push(g);}}return Object.freeze(o)}function AI(e,t,n){let r=new Set;r.add(t),r.add(n);for(let o of e){let a=Math.min(o.length,yt);for(let i=0;i<a;i+=1){let s=o[i].y;Number.isFinite(s)&&s>=t-1e-6&&s<=n+1e-6&&r.add(s);}for(let i=0;i<a;i+=1){let s=o[i],l=o[(i+1)%a],d=s.y,c=l.y;if(d!==c)for(let u of [t,n]){let f=Math.min(d,c),p=Math.max(d,c);u>=f&&u<=p&&r.add(u);}}}if(e.length>=2)for(let o of NI(e[0],e[1],t,n))r.add(o);return Object.freeze([...r].sort((o,a)=>o-a))}function DI(e,t,n,r){let o=Kh(e,n,r);return t&&t.length>=3&&(o=OI(o,Kh(t,n,"nonzero"))),o}function Uh(e,t,n,r,o=null){let a=Ze(n.top),i=Ze(n.bottom),s=Ze(n.left),l=Ze(n.right),d=t-i,c=t+a,u=AI(o&&o.length>=3?[e,o]:[e],d,c),f=[],p=u.length>=2?u.flatMap((m,g)=>{if(g+1>=u.length)return [];let h=u[g+1];return h<=m+1e-6?[m]:[m,h,(m+h)/2]}):[d];for(let m of p){let g=DI(e,o,m,r);for(let h of g)f.push(Object.freeze({start:h.start-s,end:h.end+l}));}return Pi(f)}function qh(e){let{x:t,y:n,width:r,height:o}=e;return Object.freeze([Object.freeze({x:t,y:n}),Object.freeze({x:t+r,y:n}),Object.freeze({x:t+r,y:n+o}),Object.freeze({x:t,y:n+o})])}function _I(e){let t=Math.max(0,Ze(e.extentWidthPt)),n=Math.max(0,Ze(e.extentHeightPt)),r=dl(e.transform,t,n),o=Math.min(e.polygonEmu.length,yt);if(o<3)return qh({x:e.anchorX,y:e.anchorY,width:t,height:n});let a=r.width/Xh,i=r.height/Xh,s=[];for(let l=0;l<o;l+=1){let d=e.polygonEmu[l];s.push(Object.freeze({x:Ze(d.x)*a,y:Ze(d.y)*i}));}return cl({points:Object.freeze(s),sourceWidth:r.width,sourceHeight:r.height,offsetX:r.offsetX,offsetY:r.offsetY,crop:{left:0,top:0,right:0,bottom:0},transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:e.anchorX,anchorY:e.anchorY})}function HI(e,t){let n=t.effectInsets??ll,r=t.wrapDistances??ll,o=Ze(t.contentLeft),a=Ze(t.contentRight);if(t.mode==="topAndBottom"){let c=Yh(ra(t.contentBounds,n),r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Eu([{start:o,end:a}],o,a)}if(t.mode==="square"){let c=Lu(t.contentBounds,n,r);return e<c.y||e>=c.y+c.height?Object.freeze([]):Eu([{start:c.x,end:c.x+c.width}],o,a)}let i=t.polygon&&t.polygon.length>=3?t.polygon:qh(t.contentBounds),s=t.mode==="through"?"evenodd":"nonzero",l=EI(r,n),d=Uh(i,e,l,s,t.clipPolygon);return Eu(d,o,a)}function zI(e){return e.length===0?null:Object.freeze({start:Math.min(...e.map(t=>t.start)),end:Math.max(...e.map(t=>t.end))})}function jI(e,t,n,r,o){if(n==="bothSides"||t.length===0)return e;let a=zI(t);if(!a)return e;if(n==="left")return Object.freeze(e.filter(l=>l.end<=a.start+1e-4));if(n==="right")return Object.freeze(e.filter(l=>l.start>=a.end-1e-4));let i=Math.max(0,a.start-r),s=Math.max(0,o-a.end);return i===s?Object.freeze(e.filter(l=>l.start>=a.end-1e-4)):i>s?Object.freeze(e.filter(l=>l.end<=a.start+1e-4)):Object.freeze(e.filter(l=>l.start>=a.end-1e-4))}function Zh(e,t){let n=HI(e,t),r=CI(n,t.contentLeft,t.contentRight);return jI(r,n,t.textSide,t.contentLeft,t.contentRight)}function WI(e,t,n,r){return n.length<3?false:Uh(n,t,r,"nonzero").some(a=>e>=a.start-1e-6&&e<=a.end+1e-6)}function Nu(e,t,n){let r=n.effectInsets??ll,o=n.hitBounds;if(e<o.x||e>o.x+o.width||t<o.y||t>o.y+o.height)return false;if(n.clipPolygon&&n.clipPolygon.length>=3)return WI(e,t,n.clipPolygon,r);let a=ra(n.contentBounds,r);return e>=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height}function Jh(e){let t=Object.freeze({top:Ze(e.wrapDistancesEmu.top/In),right:Ze(e.wrapDistancesEmu.right/In),bottom:Ze(e.wrapDistancesEmu.bottom/In),left:Ze(e.wrapDistancesEmu.left/In)}),n=e.mode==="tight"||e.mode==="through"?_I({polygonEmu:e.polygonEmu,extentWidthPt:e.extentWidthPt,extentHeightPt:e.extentHeightPt,anchorX:e.contentBounds.x,anchorY:e.contentBounds.y,transform:e.transform}):null;return Object.freeze({mode:e.mode,contentBounds:e.contentBounds,polygon:n,clipPolygon:e.geometry.clipPolygon,wrapDistances:t,effectInsets:e.geometry.effectInsets,textSide:e.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}var Et=1e5,yt=chunkNJNFJPGB_cjs.m.maxPolygonPoints,ll=Object.freeze({top:0,right:0,bottom:0,left:0}),GI=32,VI=.1,$I=new Set(["rect","ellipse","roundRect"]);function he(e){return Number.isFinite(e)?e:0}function Xt(e,t,n){return Number.isFinite(e)?Math.min(n,Math.max(t,e)):t}function Qh(e,t){let n=e+t;return Number.isFinite(n)?n:0}function ey(e,t,n){let r=Xt(e,0,n),o=Xt(t,0,n);if(r<=0||o<=0)return {left:r,right:o};let a=r+o;if(a>=n){let i=(n-1)/a;r*=i,o*=i;}return {left:r,right:o}}function XI(e){let t=ey(Xt(e.left,0,Et),Xt(e.right,0,Et),Et),n=ey(Xt(e.top,0,Et),Xt(e.bottom,0,Et),Et);return Object.freeze({left:t.left,top:n.left,right:t.right,bottom:n.right})}function KI(e){let t=XI({left:e.left*Et,top:e.top*Et,right:e.right*Et,bottom:e.bottom*Et});return Object.freeze({left:t.left/Et,top:t.top/Et,right:t.right/Et,bottom:t.bottom/Et})}function YI(e){let t=n=>{if(!Number.isFinite(n))return 0;let r=n/In;return !Number.isFinite(r)||Math.abs(r)>72e4?0:r};return Object.freeze({top:t(e.top),right:t(e.right),bottom:t(e.bottom),left:t(e.left)})}function ra(e,t){let n=he(t.left),r=he(t.right),o=he(t.top),a=he(t.bottom);return Object.freeze({x:e.x-n,y:e.y-o,width:Math.max(0,Qh(e.width,n+r)),height:Math.max(0,Qh(e.height,o+a))})}function UI(e,t,n){let r=e*Xt(n.left,0,1),o=t*Xt(n.top,0,1),a=e*(1-Xt(n.right,0,1)),i=t*(1-Xt(n.bottom,0,1));if(a<=r||i<=o){let s=e/2,l=t/2;return Object.freeze({left:s,top:l,right:s,bottom:l})}return Object.freeze({left:r,top:o,right:a,bottom:i})}function dl(e,t,n){let r=e.extentEmu?.cx??0,o=e.extentEmu?.cy??0,a=e.offsetEmu??{x:0,y:0},i=r>0?he(yr(r)??t):Math.max(0,he(t)),s=o>0?he(yr(o)??n):Math.max(0,he(n));return Object.freeze({offsetX:he(yr(a.x)??0),offsetY:he(yr(a.y)??0),width:i,height:s})}function qI(e,t,n,r){let o=UI(t,n,r),a=o.right-o.left,i=o.bottom-o.top,s=t>0?t:1,l=n>0?n:1,d=[],c=Math.min(e.length,yt);for(let u=0;u<c;u+=1){let f=e[u],p=a<=0?o.left:o.left+Xt(f.x/s,0,1)*a,m=i<=0?o.top:o.top+Xt(f.y/l,0,1)*i;d.push(Object.freeze({x:he(p),y:he(m)}));}return Object.freeze(d)}function ty(e,t,n){let r=e.x-t.x,o=e.y-t.y;n.flipHorizontal&&(r=-r),n.flipVertical&&(o=-o);let a=he(n.rotationDegrees)*Math.PI/180,i=Math.cos(a),s=Math.sin(a),l=r*i-o*s,d=r*s+o*i;return Object.freeze({x:he(l+t.x),y:he(d+t.y)})}function ny(e){if(e.length===0)return Object.freeze({x:0,y:0,width:0,height:0});let t=e[0].x,n=e[0].x,r=e[0].y,o=e[0].y,a=Math.min(e.length,yt);for(let i=1;i<a;i+=1){let s=e[i];!Number.isFinite(s.x)||!Number.isFinite(s.y)||(t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),o=Math.max(o,s.y));}return Object.freeze({x:t,y:r,width:Math.max(0,n-t),height:Math.max(0,o-r)})}function Au(e){let t=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),n=wi(0,0,e.sourceWidth,e.sourceHeight),r=[];for(let s of n)r.push(ty(Object.freeze({x:s.x+e.offsetX,y:s.y+e.offsetY}),t,e.transform));let o=ny(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,he(e.layoutWidth))/a,scaleY:Math.max(0,he(e.layoutHeight))/i,anchorX:he(e.anchorX),anchorY:he(e.anchorY)})}function ZI(e,t){return Object.freeze({x:he(t.anchorX+(e.x-t.bboxX)*t.scaleX),y:he(t.anchorY+(e.y-t.bboxY)*t.scaleY)})}function cl(e){let t=e.mapping??Au({sourceWidth:e.sourceWidth,sourceHeight:e.sourceHeight,offsetX:e.offsetX,offsetY:e.offsetY,transform:e.transform,layoutWidth:e.layoutWidth,layoutHeight:e.layoutHeight,anchorX:e.anchorX,anchorY:e.anchorY}),n=qI(e.points,e.sourceWidth,e.sourceHeight,e.crop),r=Math.min(n.length>0?n.length:e.points.length,yt),o=n.length>0?n:e.points.slice(0,r),a=Object.freeze({x:e.offsetX+e.sourceWidth/2,y:e.offsetY+e.sourceHeight/2}),i=[];for(let s=0;s<r;s+=1){let l=o[s],d=Object.freeze({x:he(l.x+e.offsetX),y:he(l.y+e.offsetY)});i.push(ZI(ty(d,a,e.transform),t));}return Object.freeze(i)}function wi(e,t,n,r){if(n<=0||r<=0){let o=Object.freeze({x:e,y:t});return Object.freeze([o,o,o,o])}return Object.freeze([Object.freeze({x:e,y:t}),Object.freeze({x:e+n,y:t}),Object.freeze({x:e+n,y:t+r}),Object.freeze({x:e,y:t+r})])}function JI(e,t,n){if(!e||!$I.has(e))return null;if(t<=0||n<=0)return wi(0,0,Math.max(0,t),Math.max(0,n));if(e==="rect")return wi(0,0,t,n);if(e==="ellipse"){let s=[],l=t/2,d=n/2,c=t/2,u=n/2,f=Math.min(GI,yt);for(let p=0;p<f;p+=1){let m=p/f*Math.PI*2;s.push(Object.freeze({x:l+c*Math.cos(m),y:d+u*Math.sin(m)}));}return Object.freeze(s)}let r=Math.min(t,n)*VI,o=Math.max(0,r),a=t,i=n;return Object.freeze([Object.freeze({x:o,y:0}),Object.freeze({x:a-o,y:0}),Object.freeze({x:a,y:o}),Object.freeze({x:a,y:i-o}),Object.freeze({x:a-o,y:i}),Object.freeze({x:o,y:i}),Object.freeze({x:0,y:i-o}),Object.freeze({x:0,y:o})])}function aa(e){return Object.freeze({x:he(e.x),y:he(e.y)})}function QI(e,t){if(e.length===0)return Object.freeze([]);let n=t.x+t.width,r=t.y+t.height,o=(i,s,l)=>{if(i.length===0)return Object.freeze([]);let d=[],c=Math.min(i.length,yt);for(let u=0;u<c;u+=1){let f=aa(i[u]),p=aa(i[(u+1)%c]),m=s(f),g=s(p);if(m&&g?d.push(p):m&&!g?d.push(aa(l(f,p))):!m&&g&&(d.push(aa(l(f,p))),d.push(p)),d.length>=yt)break}return Object.freeze(d.slice(0,yt))},a=e.slice(0,yt).map(aa);return a=[...o(a,i=>i.x>=t.x,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(t.x-i.x)/l:0;return Object.freeze({x:t.x,y:he(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.x<=n,(i,s)=>{let l=s.x-i.x,d=Math.abs(l)>1e-6?(n-i.x)/l:0;return Object.freeze({x:n,y:he(i.y+d*(s.y-i.y))})})],a=[...o(a,i=>i.y>=t.y,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(t.y-i.y)/l:0;return Object.freeze({x:he(i.x+d*(s.x-i.x)),y:t.y})})],a=[...o(a,i=>i.y<=r,(i,s)=>{let l=s.y-i.y,d=Math.abs(l)>1e-6?(r-i.y)/l:0;return Object.freeze({x:he(i.x+d*(s.x-i.x)),y:r})})],Object.freeze(a)}function eT(e){let t=ny(e);return Object.freeze({x:t.x,y:t.y,width:t.width,height:t.height})}function ul(e,t){let n=tT(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=a=>{if(!a||a.length===0)return a;let i=QI(a,t);return i.length>=3?Object.freeze(i.map(aa)):Object.freeze([])};return Object.freeze({...e,paintBounds:n,hitBounds:r,transformedCorners:Object.freeze(o(e.transformedCorners)??e.transformedCorners),clipPolygon:o(e.clipPolygon)})}function tT(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function nT(e){let t=Math.max(0,he(e.extentWidth)),n=Math.max(0,he(e.extentHeight)),r=he(e.anchorX),o=he(e.anchorY),a=KI(e.crop),i=YI(e.effectExtentEmu),s=dl(e.transform,t,n),l=Object.freeze({x:r,y:o,width:t,height:n}),d={sourceWidth:s.width,sourceHeight:s.height,offsetX:s.offsetX,offsetY:s.offsetY,crop:a,transform:e.transform,layoutWidth:t,layoutHeight:n,anchorX:r,anchorY:o},c=Au(d),u=Object.freeze({left:0,top:0,right:0,bottom:0}),f=cl({points:wi(0,0,s.width,s.height),...d,crop:u,mapping:c}),p=JI(e.presetGeometry,s.width,s.height),m="none",g=p;g||(m=e.presetGeometry?"unsupported-preset":"none",g=wi(0,0,s.width,s.height));let h=cl({points:g,...d,crop:u,mapping:c}),y=eT(h.length>=3?h:f),x=ra(y,i);return Object.freeze({contentBounds:l,paintBounds:x,hitBounds:x,transformedCorners:f,clipPolygon:h.length>=3?h:f,clipFallback:m,effectInsets:i})}function ia(e){let t=e.projection.picture,n=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})});return nT({extentWidth:e.extentWidth,extentHeight:e.extentHeight,anchorX:e.anchorX,anchorY:e.anchorY,effectExtentEmu:e.projection.effectExtentEmu,crop:t?.crop??{left:0,top:0,right:0,bottom:0},transform:t?.transform??n,presetGeometry:t?.presetGeometry??null})}function rT(e){let{transform:t,contentWidth:n,contentHeight:r}=e;if(n<=0||r<=0)return null;let o=dl(t,n,r),a=o.width,i=o.height,s=Au({sourceWidth:a,sourceHeight:i,offsetX:o.offsetX,offsetY:o.offsetY,transform:t,layoutWidth:n,layoutHeight:r,anchorX:0,anchorY:0}),l=he(t.rotationDegrees),d=Math.abs(l%360)>1e-4,c=t.flipHorizontal?-1:1,u=t.flipVertical?-1:1,f=s.scaleX,p=s.scaleY,m=a>0?a/n:1,g=i>0?i/r:1;if(!d&&c===1&&u===1&&Math.abs(f-1)<1e-4&&Math.abs(p-1)<1e-4&&Math.abs(o.offsetX)<1e-4&&Math.abs(o.offsetY)<1e-4&&Math.abs(m-1)<1e-4&&Math.abs(g-1)<1e-4)return null;let y=l*Math.PI/180,x=Math.cos(y),w=Math.sin(y),T=o.offsetX+a/2,F=o.offsetY+i/2,C=f*x*c,M=-f*w*u,P=p*w*c,S=p*x*u,R=f*(T-x*c*(a/2)+w*u*(i/2)-s.bboxX),k=p*(F-w*c*(a/2)-x*u*(i/2)-s.bboxY);return Object.freeze({a:he(C*m),b:he(P*m),c:he(M*g),d:he(S*g),e:he(R),f:he(k)})}function _E(e){let t=rT(e);if(t)return `matrix(${oa(t.a)}, ${oa(t.b)}, ${oa(t.c)}, ${oa(t.d)}, ${oa(t.e)}, ${oa(t.f)})`}function oa(e){return Number.isFinite(e)?String(e):"0"}var oT=new Map([["http://schemas.openxmlformats.org/drawingml/2006/chart","chart"],["http://schemas.openxmlformats.org/drawingml/2006/diagram","diagram"],["http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","group"],["http://schemas.microsoft.com/office/word/2010/wordprocessingShape","textbox"],["http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","canvas"]]),aT=Object.freeze({rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:Object.freeze({x:0,y:0}),extentEmu:Object.freeze({cx:0,cy:0})}),iT=Object.freeze({left:0,top:0,right:0,bottom:0});function ay(e){let t=e.picture,n=null;if(!t){for(let r of e.diagnostics){if(r.code!=="unsupported-graphic")continue;let o=r.detail??"";n=oT.get(o)??"graphic";break}n===null&&(n="graphic");}return Object.freeze({hyperlinkHref:e.hyperlinkHref,effects:e.effects,crop:t?.crop??iT,transform:t?.transform??aT,placeholderGraphicKind:t?null:n,vectorShape:e.vectorShape})}var In=12700;function pt(e){return e/In}function yr(e){if(!Number.isFinite(e)||Math.abs(e)>1e4*In*72)return null;let t=e/In;return Number.isFinite(t)?t:null}function Kn(e){let t=pt(e.inlineDistancesEmu.left),n=pt(e.inlineDistancesEmu.right),r=pt(e.inlineDistancesEmu.top),o=pt(e.inlineDistancesEmu.bottom),a=pt(e.effectExtentEmu.left),i=pt(e.effectExtentEmu.right),s=pt(e.effectExtentEmu.top),l=pt(e.effectExtentEmu.bottom),d=pt(e.extentEmu.cx),c=pt(e.extentEmu.cy);return Object.freeze({distL:t,distR:n,distT:r,distB:o,effectL:a,effectR:i,effectT:s,effectB:l,width:d,height:c,totalWidth:t+a+d+i+n,lineContribution:r+s+c+l+o})}function iy(e,t,n){let r=Math.max(n.distT+n.effectT,e-n.height),o=Math.max(t,r-n.effectT+n.height+n.effectB+n.distB),a=r+n.height+n.effectB;return Object.freeze({extentTopY:r,lineHeight:o,baseline:Math.max(e,a)})}function fl(e,t,n){if(Math.abs(t)<1e-4&&Math.abs(n)<1e-4)return e;let r=a=>Object.freeze({...a,x:a.x+t,y:a.y+n}),o=a=>Object.freeze({x:a.x+t,y:a.y+n});return Object.freeze({...e,contentBounds:r(e.contentBounds),paintBounds:r(e.paintBounds),hitBounds:r(e.hitBounds),transformedCorners:Object.freeze(e.transformedCorners.map(o)),clipPolygon:e.clipPolygon?Object.freeze(e.clipPolygon.map(o)):null})}function pl(e,t,n){return Math.abs(t)<1e-4&&Math.abs(n)<1e-4?e:Object.freeze({...e,x:e.x+t,y:e.y+n,advanceStart:e.advanceStart+t,advanceEnd:e.advanceEnd+t,paintBounds:Object.freeze({...e.paintBounds,x:e.paintBounds.x+t,y:e.paintBounds.y+n}),hitBounds:Object.freeze({...e.hitBounds,x:e.hitBounds.x+t,y:e.hitBounds.y+n}),geometry:fl(e.geometry,t,n)})}function Du(e,t){return e.length===0?e:e.map(n=>{let r=n.geometry.effectInsets.bottom,o=t-n.height-r,a=o-n.y;return Math.abs(a)<1e-4&&n.baselineOffset===t?n:Object.freeze({...n,y:o,baselineOffset:t,geometry:fl(n.geometry,0,a),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+a}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+a})})})}function _u(e,t){let n=Math.max(e.x,t.x),r=Math.max(e.y,t.y),o=Math.min(e.x+e.width,t.x+t.width),a=Math.min(e.y+e.height,t.y+t.height);return o<=n||a<=r?Object.freeze({x:n,y:r,width:0,height:0}):Object.freeze({x:n,y:r,width:o-n,height:a-r})}function ml(e,t){let n=_u(e.paintBounds,t),r=n.width>0&&n.height>0?n:Object.freeze({...n}),o=e.x-e.geometry.contentBounds.x,a=e.y-e.geometry.contentBounds.y,i=fl(e.geometry,o,a);return Object.freeze({...e,paintBounds:n,hitBounds:r,geometry:ul(i,t)})}var ry=new Set(["character","column","insideMargin","leftMargin","margin","outsideMargin","page","rightMargin"]),oy=new Set(["bottomMargin","insideMargin","line","margin","outsideMargin","page","paragraph","topMargin"]);function Tn(e){return e.onPageParityRead?.(),e.pageNumber%2===1}function sy(e,t){return !(!t.layoutInCell||t.cellBox===null||!Number.isFinite(t.cellBox.height)||t.cellBox.height<=0||!Number.isFinite(t.cellBox.width)||t.cellBox.width<=0)}function ly(e,t){if(sy(e,t)){let l=t.cellBox;if(!l)return null;let{x:d,width:c}=l;switch(e){case "page":case "column":case "margin":case "leftMargin":return {left:d,right:d+c,center:d+c/2};case "rightMargin":return {left:d,right:d+c,center:d+c/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "insideMargin":return Tn(t)?{left:d,right:d+c,center:d+c/2}:{left:d+c,right:d+c,center:d+c};case "outsideMargin":return Tn(t)?{left:d+c,right:d+c,center:d+c}:{left:d,right:d+c,center:d+c/2};default:return null}}let n=-t.marginLeft,r=t.contentWidth+t.marginRight,o=0,a=t.contentWidth,i=t.columnBox.x,s=t.columnBox.x+t.columnBox.width;switch(e){case "page":return {left:n,right:r,center:(n+r)/2};case "margin":return {left:o,right:a,center:o+t.contentWidth/2};case "column":return {left:i,right:s,center:i+t.columnBox.width/2};case "character":return {left:t.anchorCharacterX,right:t.anchorCharacterX,center:t.anchorCharacterX};case "leftMargin":return {left:n,right:n,center:n};case "rightMargin":return {left:r,right:r,center:r};case "insideMargin":return Tn(t)?{left:o,right:o,center:o}:{left:a,right:a,center:a};case "outsideMargin":return Tn(t)?{left:r,right:r,center:r}:{left:n,right:n,center:n};default:return null}}function dy(e,t){if(sy(e,t)){let l=t.cellBox;if(!l)return null;let{y:d,height:c}=l;switch(e){case "page":case "margin":case "topMargin":case "bottomMargin":return {top:d,bottom:d+c,center:d+c/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "insideMargin":return Tn(t)?{top:d,bottom:d+c,center:d+c/2}:{top:d+c,bottom:d+c,center:d+c};case "outsideMargin":return Tn(t)?{top:d+c,bottom:d+c,center:d+c}:{top:d,bottom:d+c,center:d+c/2};default:return null}}let n=-t.contentInsetTop,r=t.contentBandHeight,o=n+t.pageHeight-t.marginBottom,a=r+t.contentInsetBottom,i=0,s=t.contentHeight;switch(e){case "page":return {top:n,bottom:a,center:(n+a)/2};case "margin":return {top:i,bottom:s,center:i+t.contentHeight/2};case "paragraph":return {top:t.paragraphBox.y,bottom:t.paragraphBox.y+t.paragraphBox.height,center:t.paragraphBox.y+t.paragraphBox.height/2};case "line":return {top:t.anchorLineBox.y,bottom:t.anchorLineBox.y+t.anchorLineBox.height,center:t.anchorLineBox.y+t.anchorLineBox.height/2};case "topMargin":return {top:n,bottom:n,center:n};case "bottomMargin":return {top:o,bottom:o,center:o};case "insideMargin":return Tn(t)?{top:i,bottom:i,center:i}:{top:s,bottom:s,center:s};case "outsideMargin":return Tn(t)?{top:a,bottom:a,center:a}:{top:n,bottom:n,center:n};default:return null}}function cy(e){return e===null?0:yr(e)}function sT(e,t,n){let r=Tn(n);if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.width)&&n.cellBox.width>0){let{x:o,width:a}=n.cellBox;return e==="inside"?r?o:o+a-t:e==="outside"?r?o+a-t:o:null}return e==="inside"?r?0:n.contentWidth-t:e==="outside"?r?n.contentWidth-t:0:null}function lT(e,t,n){let r=Tn(n),o=n.contentBandHeight;if(n.layoutInCell&&n.cellBox&&Number.isFinite(n.cellBox.height)&&n.cellBox.height>0){let{y:a,height:i}=n.cellBox;return e==="inside"?r?a:a+i-t:e==="outside"?r?a+i-t:a:null}return e==="inside"?r?0:o-t:e==="outside"?r?o-t:0:null}function dT(e,t,n,r,o){let a=ly(e,o);if(!a)return null;let i=cy(n);if(i===null)return null;if(t==="left")return a.left+i;if(t==="center")return a.center-r/2+i;if(t==="right")return a.right-r+i;if(t==="inside"||t==="outside"){let s=sT(t,r,o);if(s!==null)return s+i}return a.left+i}function cT(e,t,n,r,o){let a=dy(e,o);if(!a)return null;let i=cy(n);if(i===null)return null;if(t==="top")return a.top+i;if(t==="center")return a.center-r/2+i;if(t==="bottom")return a.bottom-r+i;if(t==="inside"||t==="outside"){let s=lT(t,r,o);if(s!==null)return s+i}return a.top+i}function vi(e){let t=e.contentBandHeight;return Object.freeze({x:-e.marginLeft,y:-e.contentInsetTop,width:e.pageWidth,height:t+e.contentInsetTop+e.contentInsetBottom})}function Hu(e,t){let n=Kn(e),r=e.position,o=e.anchor,a="page",i="page";if(!r||!o)return Object.freeze({x:0,y:0,horizontalFrame:a,verticalFrame:i,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"});if(o.simplePos){let g=yr(r.simplePosition.xEmu),h=yr(r.simplePosition.yEmu);return Object.freeze(g===null||h===null?{x:0,y:0,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0,layoutFallback:"unresolvable-frame"}:{x:g-t.marginLeft,y:h-t.contentInsetTop,horizontalFrame:r.horizontal.relativeFrom,verticalFrame:r.vertical.relativeFrom,horizontalFrameOrigin:0,verticalFrameOrigin:0})}let s=r.horizontal.relativeFrom,l=r.vertical.relativeFrom,d=ly(s,t),c=dy(l,t),u=d?.left??0,f=c?.top??0;if(!ry.has(s)||!oy.has(l))return Object.freeze({x:0,y:0,horizontalFrame:ry.has(s)?s:a,verticalFrame:oy.has(l)?l:i,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"});let p=dT(s,r.horizontal.align,r.horizontal.offsetEmu,n.width,t),m=cT(l,r.vertical.align,r.vertical.offsetEmu,n.height,t);return Object.freeze(p===null||m===null?{x:0,y:0,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f,layoutFallback:"unresolvable-frame"}:{x:p,y:m,horizontalFrame:s,verticalFrame:l,horizontalFrameOrigin:u,verticalFrameOrigin:f})}function uT(e){let t=e.input.projection,n=t.anchor,r=Kn(t),o=ia({projection:t,anchorX:e.resolved.x,anchorY:e.resolved.y,extentWidth:r.width,extentHeight:r.height}),a=e.clipRegion?_u(o.paintBounds,e.clipRegion):o.paintBounds,i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"anchoredDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.anchorParagraphId,anchorParagraphId:e.anchorParagraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:e.resolved.x,y:e.resolved.y,width:r.width,height:r.height,horizontalFrame:e.resolved.horizontalFrame,verticalFrame:e.resolved.verticalFrame,horizontalFrameOrigin:e.resolved.horizontalFrameOrigin,verticalFrameOrigin:e.resolved.verticalFrameOrigin,behindDocument:n?.behindDocument??false,allowOverlap:n?.allowOverlap??true,layoutInCell:n?.layoutInCell??true,relativeHeight:n?.relativeHeight??0,wrap:t.wrap==="inline"?"inFront":t.wrap,...e.sourceOrder!==void 0?{sourceOrder:e.sourceOrder}:{},...e.resolved.layoutFallback?{layoutFallback:e.resolved.layoutFallback}:{},...e.textboxStory?{textboxStory:e.textboxStory}:{},...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{},paintBounds:a,hitBounds:i,geometry:e.clipRegion?ul(o,e.clipRegion):o,resource:e.input.resource,accessibility:chunkNJNFJPGB_cjs.cb(t),...ay(t)})}function jt(e,t){if(e.kind!=="paragraph")return [];let n=[],r=(o,a)=>{if(o.kind==="drawing"){let i=t.projectionForAtom?.(o.id)??t.project(o);i?.kind==="anchored"&&n.push({atomId:o.id,projection:i,revisions:a});return}if(chunkNJNFJPGB_cjs.bb(o)){let i=t.projectionForAtom?.(o.id)??null;i?.kind==="anchored"&&n.push({atomId:o.id,projection:i,revisions:a});return}if("children"in o){let i=Mt(o)?Ht(o):null,s=i?$t(a,i):a;for(let l of o.children)r(l,s);}};for(let o of e.children)r(o,$n);return Object.freeze(n)}function sn(e){let t=new Map;if(e.kind!=="paragraph")return t;let n=0,r=a=>{if(a.kind==="drawing"||chunkNJNFJPGB_cjs.bb(a)){t.set(a.id,n),n+=1;return}if(a.kind==="textValue"){n+=a.value.length;return}if("children"in a)for(let i of a.children)r(i);},o=a=>{if(a.kind==="run"){for(let i of a.children)r(i);return}if(a.kind==="hyperlink"||Mt(a))for(let i of a.children)o(i);};for(let a of e.children)o(a);return t}function fT(e,t,n){let r=(a,i,s)=>_n(a,Ct(i,s),n);for(let a of e.spans){if(t<a.range.start)break;if(t<a.range.end){if(n&&a.text!==void 0&&a.style!==void 0){let l=t-a.range.start;return a.box.x+r(a.text.slice(0,l),a.style,a.fontSlot)}let i=a.range.end-a.range.start;if(i<=0)return a.box.x;let s=t-a.range.start;return a.box.x+a.box.width*s/i}if(t===a.range.end)return n&&a.text!==void 0&&a.style!==void 0?a.box.x+r(a.text,a.style,a.fontSlot):a.box.x+a.box.width}let o;for(let a of e.spans)a.range.end<=t&&(o=a);return o?n&&o.text!==void 0&&o.style!==void 0?o.box.x+r(o.text,o.style,o.fontSlot):o.box.x+o.box.width:e.box.x}function pT(e,t){let n=e.range.start;for(let r of e.spans)r.range.end<=t&&(n=r.range.end);return n}function zu(e,t,n){if(!(Math.abs(n)<=.001))for(let r=0;r<e.length;r+=1){let o=e[r];o.anchorParagraphId===t&&(e[r]=Object.freeze({...o,y:o.y+n,geometry:fl(o.geometry,0,n),paintBounds:Object.freeze({...o.paintBounds,y:o.paintBounds.y+n}),hitBounds:Object.freeze({...o.hitBounds,y:o.hitBounds.y+n})}));}}function br(e){let t=jt(e.paragraph,e.drawingLayout);if(t.length===0)return [];let n=sn(e.paragraph),r=e.displayMode??ve,o=[];for(let a of t){let i=a.projection;if(i.hidden)continue;let s=ol(a.revisions,r,e.revisionAuthorFilter);if(s===null)continue;let l=n.get(a.atomId);if(l===void 0||e.fragmentRange&&(l<e.fragmentRange.start||l>=e.fragmentRange.end))continue;let d=e.lines.find(x=>l>=x.range.start&&l<x.range.end);if(!d)continue;let c=i.anchor?.layoutInCell??true,f=i.position?.horizontal.relativeFrom==="character"?pT(d,l):l,p=Object.freeze({...e.frameBase,paragraphBox:e.paragraphBox,anchorLineBox:d.box,anchorCharacterX:fT(d,f,e.measurer),columnBox:e.columnBox,cellBox:e.cellBox,layoutInCell:c}),m=Hu(i,p),h=c&&e.cellBox!==null&&Number.isFinite(e.cellBox.height)&&e.cellBox.height>0&&Number.isFinite(e.cellBox.width)&&e.cellBox.width>0?e.cellBox:vi(e.frameBase),y=uT({input:Object.freeze({drawingNodeId:a.atomId,ownerPartName:e.drawingLayout.ownerPartName,projection:i,resource:e.drawingLayout.resourceOf(i)}),anchorParagraphId:e.paragraphId,start:f,resolved:m,clipRegion:h,revisions:s,...e.sourceOrderOf?{sourceOrder:e.sourceOrderOf(a.atomId)}:{},...i.textboxStory&&e.layoutTextboxStory?{textboxStory:e.layoutTextboxStory(i)}:{}});o.push(y);}return Object.freeze(o)}function uy(e){let t=Kn(e.input.projection),n=e.slotX+t.distL+t.effectL,r=ia({projection:e.input.projection,anchorX:n,anchorY:e.y,extentWidth:t.width,extentHeight:t.height}),o=e.contentTop!==void 0&&e.contentBottom!==void 0?Object.freeze({x:e.contentLeft,y:e.contentTop,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,e.contentBottom-e.contentTop)}):Object.freeze({x:e.contentLeft,y:r.paintBounds.y,width:Math.max(0,e.contentRight-e.contentLeft),height:r.paintBounds.height}),a=_u(r.paintBounds,o),i=a.width>0&&a.height>0?a:Object.freeze({...a});return Object.freeze({kind:"inlineDrawing",drawingNodeId:e.input.drawingNodeId,paragraphId:e.paragraphId,ownerPartName:e.input.ownerPartName,start:e.start,x:n,y:e.y,width:t.width,height:t.height,distL:t.distL,distR:t.distR,distT:t.distT,distB:t.distB,advanceStart:e.slotX,advanceEnd:e.slotX+t.totalWidth,baselineOffset:e.baseline,paintBounds:a,hitBounds:i,geometry:ul(r,o),resource:e.input.resource,accessibility:chunkNJNFJPGB_cjs.cb(e.input.projection),...ay(e.input.projection),...e.revisions&&e.revisions.length>0?{revisions:e.revisions}:{}})}var mT=256,Gu=8,Zr=8,sa=class extends Error{name="DrawingExclusionConvergenceError";constructor(t="drawing exclusion reflow did not converge"){super(t);}};function gT(e,t){let n=Math.max(1,t.columnCount);if(n<=1)return 0;let r=e.x+e.width/2;if(t.columnLefts&&t.columnWidths&&t.columnLefts.length===n){for(let i=0;i<n;i+=1){let s=t.columnLefts[i],l=s+t.columnWidths[i];if(r>=s-.001&&r<l+.001)return i}return n-1}let o=t.columnGapPt,a=(t.contentWidth-o*(n-1))/n;for(let i=0;i<n;i+=1){let s=i*(a+o),l=s+a;if(r>=s-.001&&r<l+.001)return i}return n-1}function Wu(e){return e.behindDocument?"behind":"inFront"}function py(e){return e!=="inline"&&e!=="behind"&&e!=="inFront"}function hT(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 yT(e){return e==="squareLeft"?"left":e==="squareRight"?"right":"bothSides"}function Vu(e){let t=hT(e.projection.wrap);if(!t||!e.projection.wrapGeometry)return null;let n=e.projection.wrapGeometry,r=Object.freeze({x:e.anchorX,y:e.anchorY,width:e.geometry.contentBounds.width,height:e.geometry.contentBounds.height});return Jh({mode:t,contentBounds:r,geometry:e.geometry,wrapDistancesEmu:n.distancesEmu,polygonEmu:n.polygon,crop:e.projection.picture?.crop??{},transform:e.projection.picture?.transform??{rotationDegrees:0,flipHorizontal:false,flipVertical:false,offsetEmu:{x:0,y:0},extentEmu:{cx:0,cy:0}},extentWidthPt:e.geometry.contentBounds.width,extentHeightPt:e.geometry.contentBounds.height,textSide:t==="square"?yT(e.projection.wrap):n.textSide,contentLeft:e.contentLeft,contentRight:e.contentRight})}function $u(e){if(e.mode==="topAndBottom"||e.mode==="square")return Lu(e.contentBounds,e.effectInsets,e.wrapDistances);let t=[e.contentBounds.y,e.contentBounds.y+e.contentBounds.height];if(e.polygon)for(let o of e.polygon)t.push(o.y);let n=Math.min(...t)-e.effectInsets.top-e.wrapDistances.top,r=Math.max(...t)+e.effectInsets.bottom+e.wrapDistances.bottom;return Object.freeze({x:e.contentLeft,y:n,width:Math.max(0,e.contentRight-e.contentLeft),height:Math.max(0,r-n)})}function bT(e){if(e.drawing.behindDocument||!py(e.drawing.wrap))return null;let t=e.yOverride??e.drawing.y,n=Vu({projection:e.projection,geometry:e.drawing.geometry,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.drawing.x,anchorY:t});return n?Object.freeze({drawingNodeId:e.drawing.drawingNodeId,anchorParagraphId:e.drawing.anchorParagraphId,anchorModelStart:e.drawing.start,sourceOrder:e.sourceOrder,paintLayer:Wu(e.drawing),relativeHeight:e.drawing.relativeHeight,allowOverlap:e.drawing.allowOverlap,columnIndex:e.columnIndex??0,y:t,verticalBand:$u(n),input:n}):null}function my(e,t){let n=e.sourceOrder??Number.MAX_SAFE_INTEGER,r=t.sourceOrder??Number.MAX_SAFE_INTEGER;return n!==r?n-r:e.drawingNodeId.localeCompare(t.drawingNodeId)}function xT(e,t){let n=Wu(e),r=Wu(t);return n!==r?n==="behind"?-1:1:e.relativeHeight!==t.relativeHeight?e.relativeHeight-t.relativeHeight:my(e,t)}function gy(e){return Object.freeze([...e].sort(xT))}function ju(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Xu(e,t){if(Math.abs(t)<=1e-4)return e;let n=e.geometry;return Object.freeze({...e,y:e.y+t,paintBounds:Object.freeze({...e.paintBounds,y:e.paintBounds.y+t}),hitBounds:Object.freeze({...e.hitBounds,y:e.hitBounds.y+t}),geometry:Object.freeze({...n,contentBounds:Object.freeze({...n.contentBounds,y:n.contentBounds.y+t}),paintBounds:Object.freeze({...n.paintBounds,y:n.paintBounds.y+t}),hitBounds:Object.freeze({...n.hitBounds,y:n.hitBounds.y+t}),transformedCorners:n.transformedCorners.map(r=>Object.freeze({x:r.x,y:r.y+t})),clipPolygon:n.clipPolygon?n.clipPolygon.map(r=>Object.freeze({x:r.x,y:r.y+t})):null})})}function hy(e,t){let n=t.maxAttempts??mT,r=[...e].sort(my),o=[],a=[],i=[];for(let s of r){if(s.allowOverlap){o.push(s);continue}let l=s,d=0;for(;d<n&&o.some(g=>ju(g.paintBounds,l.paintBounds));){let p=o.find(g=>ju(g.paintBounds,l.paintBounds)),m=p.paintBounds.y+p.paintBounds.height-l.paintBounds.y+.001;l=Xu(l,m),d+=1;}let c=o.some(f=>ju(f.paintBounds,l.paintBounds)),u=l.paintBounds.y+l.paintBounds.height>t.pageBottom+.001;if(c||u){a.push(l),i.push(l.drawingNodeId);continue}o.push(l);}return Object.freeze({drawings:Object.freeze(o),deferred:Object.freeze(a),deferredNodeIds:Object.freeze(i)})}function la(e,t,n,r){let o=[{start:n,end:r}];for(let a of t){let i=a.verticalBand;if(e<i.y||e>=i.y+i.height)continue;let s=Zh(e,a.input),l=[];for(let d of o)for(let c of s){let u=Math.max(d.start,c.start),f=Math.min(d.end,c.end);f>u+1e-6&&l.push(Object.freeze({start:u,end:f}));}if(o=l,o.length===0)break}return Object.freeze(o)}function yy(e,t){for(let n of t)if(e>=n.start-1e-6&&e<n.end-1e-6)return Math.max(0,n.end-e);return 0}function ST(e,t){for(let n of t)if(n.end>e+1e-6)return n;return null}function Ku(e,t){let n=ST(e,t);if(!n)return null;let r=Math.max(e,n.start),o=n.end-r;return o<=.001?null:Object.freeze({x:r,available:o})}function RT(e,t,n){let r=e.contentBounds;return Object.freeze({...e,contentBounds:Object.freeze({...r,x:r.x+t,y:r.y+n}),contentLeft:e.contentLeft+t,contentRight:e.contentRight+t,...e.polygon?{polygon:e.polygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{},...e.clipPolygon?{clipPolygon:e.clipPolygon.map(o=>Object.freeze({x:o.x+t,y:o.y+n}))}:{}})}function Yu(e,t){return Object.freeze({...e,layoutFallback:t})}function by(e,t,n,r){return e.length===0?e:Object.freeze(e.map(o=>{let a=o.verticalBand,i=o.input;return Object.freeze({...o,y:o.y-n,verticalBand:Object.freeze({...a,x:a.x-t,y:a.y-n}),input:Object.freeze({...RT(i,-t,-n),contentLeft:r?.left,contentRight:r?.right??i.contentRight-t})})}))}function xy(e,t,n){return Object.freeze(e.filter(r=>{let o=n(r.anchorParagraphId);return o===void 0?r.sourceOrder<=t:o<=t}))}function Sy(e){let t=jt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=sn(e.paragraph),r=e.displayMode??ve,o=Math.max(1,e.contentRight-e.contentLeft),a=[];for(let i of t){if(!Ie(i.revisions,r,e.revisionAuthorFilter)||i.projection.anchor?.behindDocument||!py(i.projection.wrap)||i.projection.wrap==="topAndBottom")continue;let s=n.get(i.atomId);if(s===void 0)continue;let l=e.anchorLineTopByModelStart.get(s);if(l===void 0)continue;let d=Object.freeze({x:e.contentLeft,y:l,width:o,height:14}),c=e.anchorCellBox!=null,u=Hu(i.projection,{pageNumber:1,pageWidth:e.contentRight+e.contentLeft+o,pageHeight:792,marginLeft:e.contentLeft,marginRight:0,marginBottom:0,contentInsetTop:0,contentInsetBottom:0,contentWidth:o,contentHeight:648,contentBandHeight:648,paragraphBox:d,anchorLineBox:d,anchorCharacterX:e.contentLeft,columnBox:d,cellBox:c?e.anchorCellBox:null,layoutInCell:c,ownerPartName:e.drawingLayout.ownerPartName,storyKind:"body"}),f=e.paragraphStartY+l,p=Kn(i.projection),m=ia({projection:i.projection,anchorX:u.x,anchorY:f,extentWidth:p.width,extentHeight:p.height}),g=Vu({projection:i.projection,geometry:m,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:u.x,anchorY:f});g&&a.push(Object.freeze({drawingNodeId:i.atomId,anchorParagraphId:e.paragraphId,anchorModelStart:s,sourceOrder:e.sourceOrderOf?.(i.atomId)??Number.MAX_SAFE_INTEGER,paintLayer:i.projection.anchor?.behindDocument?"behind":"inFront",relativeHeight:i.projection.anchor?.relativeHeight??0,allowOverlap:i.projection.anchor?.allowOverlap??true,columnIndex:0,y:f,verticalBand:$u(g),input:g}));}return a.sort((i,s)=>i.sourceOrder-s.sourceOrder),Object.freeze(a)}function gl(e){let t=jt(e.paragraph,e.drawingLayout);if(t.length===0)return Object.freeze([]);let n=sn(e.paragraph),r=e.displayMode??ve,o=[];for(let a of t){if(!Ie(a.revisions,r,e.revisionAuthorFilter)||a.projection.anchor?.behindDocument||a.projection.wrap!=="topAndBottom")continue;let i=n.get(a.atomId);if(i===void 0)continue;let s=e.anchorLineTopByModelStart.get(i);if(s===void 0)continue;let l=e.paragraphStartY+s,d=Kn(a.projection),c=ia({projection:a.projection,anchorX:e.contentLeft,anchorY:l,extentWidth:d.width,extentHeight:d.height}),u=Vu({projection:a.projection,geometry:c,contentLeft:e.contentLeft,contentRight:e.contentRight,anchorX:e.contentLeft,anchorY:l});u&&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:e.columnIndex??0,y:l,verticalBand:$u(u),input:u}));}return o.sort((a,i)=>a.sourceOrder-i.sourceOrder),Object.freeze(o)}var PT=8;function wT(e,t,n,r){return e<r&&t>n}function On(e,t,n){if(t<=0||n.length===0)return 0;let r=0;for(let o=0;o<PT;o+=1){let a=e+r,i=a+t,s=a,l=false;for(let c of n){if(c.input.mode!=="topAndBottom")continue;let u=c.verticalBand.y,f=u+c.verticalBand.height;wT(a,i,u,f)&&(l=true,s=Math.max(s,f));}if(!l)break;let d=s-e;if(d<=r+.001)break;r=d;}return r}function vT(e){return e.map(t=>`${t.start.toFixed(3)}-${t.end.toFixed(3)}`).join(",")}function IT(e){let t=e.contentBounds,n=e.wrapDistances,r=e.effectInsets,o=e.polygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"",a=e.clipPolygon?.map(i=>`${i.x.toFixed(3)},${i.y.toFixed(3)}`).join(";")??"";return [e.mode,e.textSide,t.x.toFixed(3),t.y.toFixed(3),t.width.toFixed(3),t.height.toFixed(3),n.top.toFixed(3),n.right.toFixed(3),n.bottom.toFixed(3),n.left.toFixed(3),r.top.toFixed(3),r.right.toFixed(3),r.bottom.toFixed(3),r.left.toFixed(3),o,a].join(":")}function kn(e){return e.length===0?"":e.map(t=>{let n=t.verticalBand,r=t.y+t.input.contentBounds.height/2,o=la(r,[t],t.input.contentLeft,t.input.contentRight);return [t.drawingNodeId,String(t.sourceOrder),String(t.columnIndex),t.y.toFixed(3),n.x.toFixed(3),n.y.toFixed(3),n.width.toFixed(3),n.height.toFixed(3),IT(t.input),vT(o)].join("|")}).join(`
|
|
6
|
-
`)}function Uu(e,t,n,r,o,a){let i=[];for(let s of e){let l=t.projectionForAtom?.(s.drawingNodeId);if(!l)continue;let d=s.sourceOrder??o?.(s.drawingNodeId)??Number.MAX_SAFE_INTEGER,c=a!==void 0?gT(s,a):0,u=bT({drawing:s,projection:l,sourceOrder:d,contentLeft:n,contentRight:r,columnIndex:c});u&&i.push(u);}return i.sort((s,l)=>s.sourceOrder-l.sourceOrder),Object.freeze(i)}function hl(e,t,n,r,o){let a=o??Object.freeze({columnCount:1,columnGapPt:0,contentWidth:n}),i=new Map;for(let s of e){let l=s.anchoredDrawings??[],d=Uu(l,t,0,n,r,a);d.length>0&&i.set(s.index,d);}return i}var fy=new WeakMap;function TT(e){return e?`${e.columnCount};${e.columnGapPt};${e.contentWidth};${(e.columnLefts??[]).join(",")};${(e.columnWidths??[]).join(",")}`:""}function qu(e,t,n,r,o,a){let i=TT(a),s=fy.get(e);if(s&&s.drawingLayout===t&&s.drawingLayoutEpoch===n&&s.contentWidth===r&&s.drawingSourceOrder===o&&s.columnToken===i)return s.zones;let l=hl(e,t,r,o?d=>o.get(d):void 0,a);return fy.set(e,{drawingLayout:t,drawingLayoutEpoch:n,contentWidth:r,drawingSourceOrder:o,columnToken:i,zones:l}),l}function yl(e,t){if(e.size!==t.size)return false;for(let[n,r]of e){let o=t.get(n);if(!o||kn(r)!==kn(o))return false}return true}function bl(e){return e.size===0?"":[...e.entries()].sort(([t],[n])=>t-n).map(([t,n])=>`${t}:${kn(n)}`).join(`
|
|
7
|
-
`)}var da=.7,kT=1.25,OT="Cambria Math";function Sl(e){return Bs(e,OT)}function Cn(e,t,n,r){return Object.freeze({x:e,y:t,width:n,height:r})}function Wt(e,t,n){return Object.freeze({...e,box:Cn(t,n,e.box.width,e.box.height)})}var CT=4,FT=8,Ry=new WeakMap;function MT(e){let t=Sl(e);return [t.fontFamily??"",t.fontSizePt,t.bold?1:0,t.italic?1:0,t.verticalAlign,t.baselineShiftPt,t.caps?1:0,t.smallCaps?1:0,t.characterSpacingPt,t.horizontalScalePercent,t.kerningMinPt].join("|")}function BT(e,t){if(t===void 0)return {projections:new WeakMap};let n=Ry.get(e);n||(n=new Map,Ry.set(e,n));let r=n.get(t);if(r)return n.delete(t),n.set(t,r),r;if(n.size>=CT){let a=n.keys().next().value;a!==void 0&&n.delete(a);}let o={projections:new WeakMap};return n.set(t,o),o}function ca(e,t,n){let r=n.styles.get(t);if(r)return r;let o=t===1?e:Object.freeze({...e,fontSizePt:e.fontSizePt*t,characterSpacingPt:e.characterSpacingPt*t});return n.styles.set(t,o),o}function Py(e,t,n,r){let o=r.metrics.get(n);if(o)return o;let a=e.lineMetrics(ca(t,n,r));return r.metrics.set(n,a),a}function xl(e,t,n,r,o,a){let i=ca(r,o,a),s=Py(n,r,o,a);return Object.freeze({kind:e,text:t,fontSizePt:i.fontSizePt,box:Cn(0,0,_n(t,i,n),s.height),baseline:s.baseline})}function ET(e,t){if(e.length===0)return Object.freeze({kind:"row",items:Object.freeze([]),box:Cn(0,0,0,t.height),baseline:t.baseline});let n=Math.max(...e.map(i=>i.baseline)),r=Math.max(...e.map(i=>i.box.height-i.baseline)),o=0,a=e.map(i=>{let s=Wt(i,o,n-i.baseline);return o+=i.box.width,s});return Object.freeze({kind:"row",items:Object.freeze(a),box:Cn(0,0,o,n+r),baseline:n})}function Kt(e,t,n,r,o){switch(e.kind){case "text":return xl("text",e.value,t,n,r,o);case "fallback":return xl("fallback",e.text||"\u2026",t,n,r,o);case "row":return ET(e.items.map(a=>Kt(a,t,n,r,o)),Py(t,n,r,o));case "fraction":{let a=ca(n,r,o),i=Kt(e.numerator,t,n,r*da,o),s=Kt(e.denominator,t,n,r*da,o),l=Math.max(.75,a.fontSizePt*.08),d=Math.max(.75,a.fontSizePt*.08),c=Math.max(.6,a.fontSizePt*.055),u=Math.max(i.box.width,s.box.width)+l*2,f=i.box.height+d,p=f+c+d,m=p+s.box.height,g=Math.min(m,f+c/2+a.fontSizePt*.22);return Object.freeze({kind:"fraction",numerator:Wt(i,(u-i.box.width)/2,0),denominator:Wt(s,(u-s.box.width)/2,p),bar:Cn(l/2,f,u-l,c),box:Cn(0,0,u,m),baseline:g})}case "radical":{let a=ca(n,r,o),i=Kt(e.radicand,t,n,r,o),s=xl("text","\u221A",t,n,r,o),l=e.degree?Kt(e.degree,t,n,r*.55,o):void 0,d=Math.max(.55,a.fontSizePt*.05),c=Math.max(.35,a.fontSizePt*.035),u=d+c,f=l?Math.max(0,l.box.width*.65):0,p=f+s.box.width,m=u+i.baseline,g=Math.max(u+i.box.height,m+(s.box.height-s.baseline));return Object.freeze({kind:"radical",sign:Wt(s,f,m-s.baseline),radicand:Wt(i,p,u),...l?{degree:Wt(l,0,0)}:{},bar:Cn(p,0,i.box.width,d),box:Cn(0,0,p+i.box.width,g),baseline:m})}case "script":{let a=ca(n,r,o),i=Kt(e.base,t,n,r,o),s=e.subscript?Kt(e.subscript,t,n,r*da,o):void 0,l=e.superscript?Kt(e.superscript,t,n,r*da,o):void 0,d=Math.max(.4,a.fontSizePt*.04),c=i.box.width+d,u=0,f=l?Math.max(0,l.box.height-i.baseline*.45):0,p=f+i.baseline,m=p+a.fontSizePt*.08,g=c+Math.max(s?.box.width??0,l?.box.width??0,-d),h=Math.max(f+i.box.height,l?u+l.box.height:0,s?m+s.box.height:0);return Object.freeze({kind:"script",base:Wt(i,0,f),...s?{subscript:Wt(s,c,m)}:{},...l?{superscript:Wt(l,c,u)}:{},box:Cn(0,0,g,h),baseline:p})}case "nary":{let a=ca(n,r,o),i=xl("text",e.operator,t,n,r*kT,o),s=Kt(e.body,t,n,r,o),l=e.lowerLimit?Kt(e.lowerLimit,t,n,r*da,o):void 0,d=e.upperLimit?Kt(e.upperLimit,t,n,r*da,o):void 0,c=Math.max(.5,a.fontSizePt*.05),u=Math.max(i.box.width,l?.box.width??0,d?.box.width??0),p=d?d.box.height+c:0,m=p+i.baseline,g=p+i.box.height+(l?c:0),h=u+c,y=m-s.baseline,w=-Math.min(0,p,y,l?g:0),T=m+w,F=Math.max(p+i.box.height,l?g+l.box.height:0,y+s.box.height)+w;return Object.freeze({kind:"nary",operator:Wt(i,(u-i.box.width)/2,p+w),body:Wt(s,h,y+w),...l?{lowerLimit:Wt(l,(u-l.box.width)/2,g+w)}:{},...d?{upperLimit:Wt(d,(u-d.box.width)/2,w)}:{},box:Cn(0,0,h+s.box.width,F),baseline:T})}}}function wy(e,t,n){let r=Sl(n),o={styles:new Map,metrics:new Map};return Object.freeze({sourceNodeId:e.sourceNodeId,geometry:Kt(e.expression,t,r,1,o),fallbackText:e.fallbackText,truncated:e.truncated})}function vy(e,t){let n=BT(e,t);return (r,o)=>{let a=MT(o),i=n.projections.get(r),s=i?.get(a);if(s&&i)return i.delete(a),i.set(a,s),s;let l=wy(r,e,o);if(i||(i=new Map,n.projections.set(r,i)),i.size>=FT){let d=i.keys().next().value;d!==void 0&&i.delete(d);}return i.set(a,l),l}}function Zu(e,t,n,r=0){return (n.length>0?On(e,t.height,n):t.exclusionSkipBefore??0)+Math.max(0,t.height-t.trailingSpacing)+r}function Iy(e){return Object.freeze({spans:e.spans.map(t=>Object.freeze({...t,box:Object.freeze({...t.box})})),drawings:e.drawings.map(t=>Object.freeze({...t,paintBounds:Object.freeze({...t.paintBounds}),hitBounds:Object.freeze({...t.hitBounds})})),start:e.start,end:e.end,width:e.width,height:e.height,baseline:e.baseline,leading:e.leading,trailingSpacing:e.trailingSpacing,...e.pageBreakAfter?{pageBreakAfter:true}:{},...e.columnBreakAfter?{columnBreakAfter:true}:{},...e.deletedRanges?{deletedRanges:Object.freeze(e.deletedRanges)}:{},...e.exclusionSkipBefore?{exclusionSkipBefore:e.exclusionSkipBefore}:{},...e.anchorRevisions?{anchorRevisions:Object.freeze(e.anchorRevisions)}:{}})}var LT=.001;function Lt(e){return na(e)}var Pl=new Set(["-","\u2010","\u2013","\u2014"]);function Ty(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];r===" "?(n>0&&t[t.length-1]!==n&&t.push(n),t.push(n+1)):(r===" "||Pl.has(r)&&n>0&&e[n-1]!==" "&&n+1<e.length&&e[n+1]!==" "&&!Pl.has(e[n+1]))&&t.push(n+1);}return t[t.length-1]!==e.length&&t.push(e.length),t}function NT(e,t,n){for(let r=t;r<e.length;r+=1){let o=e[r];if(o.inlineDrawing)return true;let a=r===t?n:0;for(let i=a;i<o.text.length;i+=1){let s=o.text[i];if(s===`
|
|
8
|
-
`||s===chunkNJNFJPGB_cjs.Cc)return false;if(s!==" "&&s!==" ")return true}}return false}function AT(e,t,n,r){let o=0,a=0,i=false;for(let s=t;s<e.length;s+=1){let l=e[s],d=Ct(l.style,l.fontSlot),c=s===t?n:0;for(let u=c;u<l.text.length;){let f=l.text[u];if(f===" "||f===`
|
|
9
|
-
`||f===chunkNJNFJPGB_cjs.Cc)return {width:o,decimalOffset:i?a:o};let p=u+1,m=l.text.slice(u,p),g=r.measure(lr(m,d),d);!i&&f==="."?i=true:i||(a+=g),o+=g,u=p;}}return {width:o,decimalOffset:i?a:o}}function DT(e,t,n,r){let o=e.relativeTo==="indent"||!r?{left:t,right:n}:r;return {positionPt:e.alignment==="right"?o.right:e.alignment==="center"?(o.left+o.right)/2:o.left,alignment:e.alignment,...e.leader?{leader:e.leader}:{}}}var Rl=31680;function Ii(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return null;let t=Number(e);return Number.isFinite(t)?t>Rl?chunkNJNFJPGB_cjs.jd(Rl):t<-Rl?chunkNJNFJPGB_cjs.jd(-Rl):chunkNJNFJPGB_cjs.jd(t):null}function Ti(e){let t=0,n=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=Ii(o),s=Ii(a);i!==null&&(t=chunkNJNFJPGB_cjs.ld(i)),s!==null&&(n=chunkNJNFJPGB_cjs.ld(s));}return {left:t,right:n}}function ky(e){let t="left";for(let n of e)if(n.localName==="jc")switch(n.attributes?.val){case "center":t="center";break;case "right":case "end":t="right";break;case "both":case "distribute":t="both";break;default:t="left";}return t}function _T(e){return e.endsWith(" ")}function wl(e,t,n,r,o,a,i){if(e.length===0||o==="left")return e;let s=e[e.length-1],l=s.text.replace(/\s+$/,""),d=l===s.text?0:s.box.width-_n(l,Ct(s.style,s.fontSlot),t),c=i??s.box.x-n+s.box.width-d,u=r-c;if(u<=0)return e;if(o==="both"){if(a)return e;let p=[];for(let y=1;y<e.length;y+=1)_T(e[y-1].text)&&p.push(y);if(p.length===0)return e;let m=u/p.length,g=new Set(p),h=0;return e.map((y,x)=>(g.has(x)&&(h+=m),h===0?y:{...y,box:{...y.box,x:y.box.x+h}}))}let f=o==="center"?u/2:u;return e.map(p=>({...p,box:{...p.box,x:p.box.x+f}}))}function vl(e,t){return t===0||e.length===0?e:e.map(n=>pl(n,t,0))}function Il(e,t,n,r,o,a,i,s=[],l=Go,d,c,u){let f=i!==null&&a?a.get(i):void 0;if(f)return f;let p=u?.lineSpacing??jo,m=u?.firstLineOffset??0,g=[],h=sl(e,s,d,c,u?.projectLink,u?.noteMarks,u?.displayMode??ve,g,u?.inlineDrawingLayout,u?.themeFonts,u?.projectFieldLink,u?.documentProperties,u?.bodyPageFields??false,u?.refFields,u?.revisionAuthorFilter),y=Math.max(0,u?.startOffset??0),x=h.flatMap(G=>{if(G.end<=y)return [];if(G.start>=y)return [G];let I=y-G.start;return [{...G,text:G.projected?G.text:G.text.slice(I),start:y}]}),w=vy(o,u?.equationCacheToken),T=G=>G.equation?w(G.equation,G.style):null;if(x.length===0&&u?.suppressEmptyPlaceholderLine)return [];let F=G=>({...G.revisions===void 0?{}:{revisions:G.revisions},...G.fieldAtom===void 0?{}:{fieldAtom:G.fieldAtom}}),C=u?.markRunProperties??s,M=C.length===0?wn:Le(C,u?.themeFonts),P=n+r,S=u?.contentLeft??n,R=u?.contentRight??P,k=u?.contentOriginX??0,v=[],b={spans:[],start:y,end:y,drawings:[],width:0,height:0,baseline:0,leading:0,trailingSpacing:0},H=false,D=new Map,V=u?.displayMode??ve,E=(()=>{let G=new Set;if(!u?.inlineDrawingLayout)return G;let I=sn(e);for(let $ of jt(e,u.inlineDrawingLayout)){if(!Ie($.revisions,V,u?.revisionAuthorFilter)||$.projection.wrap!=="topAndBottom")continue;let te=I.get($.atomId);te!==void 0&&G.add(te);}return G})(),O=(()=>{let G=new Set;if(!u?.inlineDrawingLayout)return G;let I=sn(e);for(let $ of jt(e,u.inlineDrawingLayout)){if(!Ie($.revisions,V,u?.revisionAuthorFilter)||$.projection.anchor?.behindDocument||$.projection.wrap==="topAndBottom"||$.projection.wrap==="inline"||$.projection.wrap==="behind"||$.projection.wrap==="inFront")continue;let te=I.get($.atomId);te!==void 0&&G.add(te);}return G})(),A=[...(u?.pageExclusionZones??[]).filter(G=>G.anchorParagraphId===t).map(G=>G.anchorModelStart),...E,...O],j=(()=>{let G=new Map;if(A.length===0)return G;let I=0,$=0,te=0,ye=()=>te===0?m:0,Q=()=>Math.max(1,r-ye()),ge=ce=>{I=ce,$=0,te+=1;};for(let ce of x){let Be=T(ce);if(Be){let Ke=Be.geometry.box.width;$>0&&$+Ke>Q()&&ge(ce.start),A.includes(ce.start)&&G.set(ce.start,I),$+=Ke;continue}if(ce.inlineDrawing){let Ke=Kn(ce.inlineDrawing.projection).totalWidth;$>0&&$+Ke>Q()&&ge(ce.start),A.includes(ce.start)&&G.set(ce.start,I),$+=Ke;continue}if(ce.text===`
|
|
10
|
-
`||ce.text===chunkNJNFJPGB_cjs.Cc){ge(ce.end);continue}let bt=0;for(let Ke of Ty(ce.text)){let Me=ce.text.slice(bt,Ke);if(Me.length===0)continue;let je=Ct(ce.style,ce.fontSlot),Ye=o.measure(Me,je),le=ce.start+bt;$>0&&$+Ye>Q()&&ge(le),A.includes(le)&&G.set(le,I),A.includes(ce.start)&&G.set(ce.start,I),$+=Ye,bt=Ke;}}for(let ce of A)G.has(ce)||G.set(ce,I);return G})();for(let G of O){let I=j.get(G);I!==void 0&&D.set(G,I);}let L=G=>{if(G.anchorParagraphId!==t)return true;let I=j.get(G.anchorModelStart);return I!==void 0&&b.start>=I||b.end>=G.anchorModelStart},N=()=>{let G=u?.pageExclusionZones?.filter(te=>!(!L(te)||te.anchorParagraphId===t&&(te.input.mode==="topAndBottom"||u?.anchorCellBox!=null)))??[],I=u?.inlineDrawingLayout&&u.anchorCellBox!=null&&D.size>0?Sy({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:S,contentRight:R,paragraphStartY:u.paragraphStartY??0,anchorLineTopByModelStart:D,anchorCellBox:u.anchorCellBox,displayMode:V,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]),$=u?.inlineDrawingLayout&&D.size>0?gl({paragraph:e,paragraphId:t,drawingLayout:u.inlineDrawingLayout,contentLeft:S,contentRight:R,paragraphStartY:u?.paragraphStartY??0,anchorLineTopByModelStart:D,displayMode:V,...u.revisionAuthorFilter?{revisionAuthorFilter:u.revisionAuthorFilter}:{}}):Object.freeze([]);return Object.freeze([...G,...I,...$])},_=()=>v.length===0?m:0,W=()=>k+n+_(),q=()=>Math.max(1,r-_()),X=()=>v.reduce((G,I)=>G+I.height+(I.exclusionSkipBefore??0),0),Y=()=>(u?.paragraphStartY??0)+X(),U=G=>{E.has(G)&&D.set(G,X());},z=()=>{if(H)return;let G=N();if(G.length===0||b.spans.length>0||b.drawings.length>0)return;let I=o.lineMetrics(M),$=On(Y(),b.height>0?b.height:I.height,G);$>.001&&(H=true,b.exclusionSkipBefore=$);},ae=()=>Y()+(b.exclusionSkipBefore??0)+.001,Te=()=>{let G=N();if(G.length===0)return true;z();let I=la(ae(),G,S,R),$=W()+b.width,te=Ku($,I);return te?(te.x>$+.001&&(b.width=te.x-W()),true):false},Pe=()=>{let G=q(),I=N();if(I.length===0)return G;if(z(),!Te())return 0;let $=la(ae(),I,S,R),te=W()+b.width,ye=yy(te,$);return ye<=.001?0:Math.min(G,b.width+ye)},de=()=>Math.max(0,Pe()-b.width),Ne=()=>{let G=N();if(G.length===0||!G.some(Q=>Q.anchorParagraphId!==t||b.end>Q.anchorModelStart))return false;let $=la(ae(),G,S,R),te=W()+b.width,ye=false;for(let Q of $){if(!ye){te>=Q.start-1e-6&&te<Q.end-1e-6&&(ye=true);continue}if(Q.end-Q.start>.001)return b.width=Q.start-W(),true}return false},be=G=>{if(A.length===0||G<Math.min(...A))return;let I=N().filter(ge=>ge.anchorParagraphId===t&&G>=ge.anchorModelStart);if(I.length===0)return;z();let $=la(ae(),I,S,R),te=W()+b.width,ye=-1;for(let ge=0;ge<$.length;ge+=1){let ce=$[ge];if(te>=ce.start-.001&&te<ce.end-.001){ye=ge;break}}if(ye>=0)return;let Q=Ku(te,$);Q&&Q.x>te+.001&&(b.width=Q.x-W());},it=G=>{N().filter($=>$.input.mode==="topAndBottom"&&$.anchorParagraphId===t&&G>=$.anchorModelStart).length!==0&&((b.spans.length>0||b.drawings.length>0)&&Je(),z());},pe=(G,I=0)=>I>64?de()>=G:(z(),Te()?G<=de()+.001?true:b.spans.length>0||b.drawings.length>0?Ne()&&G<=de()+.001?true:(Je(),pe(G,I+1)):Ne()?pe(G,I+1):true:b.spans.length>0||b.drawings.length>0?(Je(),pe(G,I+1)):true),fe=(G,I)=>g.filter($=>$.start<I&&$.end>G).map($=>({start:Math.max($.start,G),end:Math.min($.end,I)})),me=-1,ke=0,Re=0,Ae="",ut=(G,I)=>{let $=o.lineMetrics(G),te=iy($.baseline,b.height||$.height,I);return b.height===0?(b.height=te.lineHeight,b.baseline=te.baseline):(te.lineHeight>b.height&&(b.height=te.lineHeight),b.baseline=Math.max(b.baseline,te.baseline)),{extentTopY:te.extentTopY}},mt=()=>{if(b.drawings.length===0)return;b.spans.length===0&&(b.baseline=Math.max(b.baseline,...b.drawings.map(I=>I.y+I.height)));let G=Du(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...G),b.baseline=Math.max(b.baseline,...b.drawings.map(I=>I.y+I.height));},$e=()=>{if(b.drawings.length===0)return;let G=Du(b.drawings,b.baseline);b.drawings.splice(0,b.drawings.length,...G);},Ut=G=>{let I=0;for(let $ of b.spans)I=Math.max(I,o.lineMetrics(Ct($.style,$.fontSlot)).height);return I>0?I:G},Tt=()=>{if(b.drawings.length===0)return;let G=Math.max(0,...b.drawings.map(I=>I.y+I.height+I.distB));b.height=Math.max(b.height,G);},kr=()=>{mt(),Tt();},qt=()=>{if(!(b.spans.length<2))for(let G=1;G<b.spans.length;G+=1){let I=b.spans[G-1],$=b.spans[G],te=$.box.x-(I.box.x+I.box.width);te<=.001||b.drawings.some(Q=>Q.start>=I.range.end&&Q.start<$.range.start)||(b.spans[G]={...$,wrapAdvanceBefore:te});}},Je=G=>{let I=o.lineMetrics(M),$=b.baseline;b.height===0?(b.height=I.height,b.baseline=I.baseline,$=I.baseline):G?.includeParagraphMark&&(b.height=Math.max(b.height,I.height)),kr();let te=b.height,ye=p.rule==="auto"&&b.drawings.length>0,Q=ye?Ut(I.height):te,ge=qc(p,Q,b.baseline);ye||(b.baseline=ge.baseline),b.leading=Math.max(0,b.baseline-$),b.height=ge.height,$e(),p.rule!=="exact"&&Tt(),b.trailingSpacing=b.drawings.length===0&&p.rule!=="exact"?Math.max(0,ge.height-te):0,(()=>{let bt=N();if(bt.length===0)return;let Ke=On(Y(),b.height,bt);Ke>.001?b.exclusionSkipBefore=Ke:delete b.exclusionSkipBefore;})(),qt();let Be=fe(b.start,b.end);Be.length>0&&(b.deletedRanges=Be),v.push(b),me=-1,ke=0,H=false,b={spans:[],drawings:[],start:b.end,end:b.end,width:0,height:0,baseline:0,leading:0,trailingSpacing:0},z();},St=false;for(let G=0;G<x.length;G+=1){let I=x[G];if(I.breakKind==="column"){let Q=o.lineMetrics(I.style);b.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:I.text,props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:0,height:Q.height},...I.link?{link:I.link}:{},...F(I)}),b.height=Math.max(b.height,Q.height),b.baseline=Math.max(b.baseline,Q.baseline),b.end=I.end,Je(),v[v.length-1].columnBreakAfter=true,St=true;continue}if(I.equation){let Q=T(I),ge=Q.geometry.box.width;if((b.spans.length>0||b.drawings.length>0)&&b.width+ge>Pe()&&Je(),!pe(ge))continue;let Be=Math.max(0,b.height-b.baseline),bt=Math.max(0,Q.geometry.box.height-Q.geometry.baseline);b.baseline=Math.max(b.baseline,Q.geometry.baseline),b.height=b.baseline+Math.max(Be,bt),b.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:"\uFFFC",props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:ge,height:Q.geometry.box.height},projected:true,equation:Q,...F(I)}),b.width+=ge,b.end=I.end,me=-1,Ae="";continue}if(I.projected&&!I.inlineDrawing&&I.text==="\uFFFC"){U(I.start),I.anchoredAtom&&I.revisions!==void 0&&Ie(I.revisions,V,u?.revisionAuthorFilter)&&(b.anchorRevisions=[...b.anchorRevisions??[],...I.revisions]),b.end=I.end;continue}if(I.inlineDrawing){U(I.start);let Q=Kn(I.inlineDrawing.projection),ge=Q.totalWidth;if((b.spans.length>0||b.drawings.length>0)&&b.width+ge>Pe()&&Je(),!pe(ge))continue;let{extentTopY:Be}=ut(I.style,Q),bt=W()+b.width;b.drawings.push(uy({input:I.inlineDrawing,paragraphId:t,start:I.start,slotX:bt,y:Be,baseline:b.baseline,contentLeft:S,contentRight:R,...I.revisions?{revisions:I.revisions}:{}})),b.width+=ge,b.end=I.end,me=-1,Ae="";continue}if(I.text===chunkNJNFJPGB_cjs.Cc){let Q=o.lineMetrics(I.style);b.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:chunkNJNFJPGB_cjs.Cc,props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:0,height:Q.height},...I.link?{link:I.link}:{},...F(I)}),b.height=Math.max(b.height,Q.height),b.baseline=Math.max(b.baseline,Q.baseline),b.end=I.end,Je(),v[v.length-1].pageBreakAfter=true,St=false;continue}if(I.text===`
|
|
11
|
-
`){let Q=o.lineMetrics(I.style);b.spans.push({range:{paragraphId:t,start:I.start,end:I.end},text:`
|
|
12
|
-
`,props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:0,height:Q.height},...I.link?{link:I.link}:{},...F(I)}),b.height=Math.max(b.height,Q.height),b.baseline=Math.max(b.baseline,Q.baseline),b.end=I.end,Je(),St=true;continue}St=false,it(I.start),A.length>0&&I.start>=Math.min(...A)&&be(I.start);let $=Ct(I.style,I.fontSlot),te=o.lineMetrics($),ye=0;for(let Q of Ty(I.text)){let ge=I.text.slice(ye,Q);if(ge.length===0)continue;let ce=!!I.projected||!!I.positionalTab||I.end-I.start!==I.text.length,Be=ce?{paragraphId:t,start:I.start,end:I.end}:{paragraphId:t,start:I.start+ye,end:I.start+Q};if(ge===" "){(b.spans.length>0||b.drawings.length>0)&&b.width>=Pe()&&NT(x,G,Q)&&Je();let ue=W()+b.width,ee=AT(x,G,Q,o),xe=I.positionalTab?DT(I.positionalTab,n,P,u?.marginExtent):null,We=xe===null?Vo(l,ue,P):xe.positionPt>ue?xe:{...Vo(l,ue,P),...xe.leader?{leader:xe.leader}:{}},Nt=ou(We.alignment,ue,We.positionPt,ee.width,ee.decimalOffset);b.spans.push({range:Be,text:" ",props:I.props,style:I.style,box:{x:ue,y:0,width:Nt,height:te.height},...We.leader?{tabLeader:We.leader,tabLeaderAdvancePt:o.measure(eu.get(We.leader)??".",I.style)}:{},...I.link?{link:I.link}:{},...We.leader?{tabLeader:We.leader}:{},...ce&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...F(I)}),b.width+=Nt,b.height=Math.max(b.height,te.height),b.baseline=Math.max(b.baseline,te.baseline),b.end=ce?I.end:I.start+Q,Ae=" ",ye=Q;continue}let bt=I.measureText??ge,Ke=o.measure(lr(bt,$),$),Me=ye>0||Ae===""||/[\s\u00a0]$/.test(Ae)||/^[\s\u00a0]/.test(ge)||Pl.has(Ae[Ae.length-1])&&!Pl.has(ge[0]);if(Me&&(me=b.spans.length,ke=b.width,Re=b.end),be(I.start+ye),b.width+Ke>Pe()+LT&&(b.spans.length>0||b.drawings.length>0))if(Me||me<=0){if(!(Ne()&&b.width+Ke<=Pe()+.001)){if(Je(),!pe(Ke))continue}}else {let ue=b.spans.splice(me);b.width=ke,b.end=Re,b.height=0,b.baseline=0;for(let ee of b.spans){let xe=o.lineMetrics(Ct(ee.style,ee.fontSlot));b.height=Math.max(b.height,xe.height),b.baseline=Math.max(b.baseline,xe.baseline);}Je();for(let ee of ue){let xe=o.lineMetrics(Ct(ee.style,ee.fontSlot));b.spans.push({...ee,box:{...ee.box,x:W()+b.width}}),b.width+=ee.box.width,b.height=Math.max(b.height,xe.height),b.baseline=Math.max(b.baseline,xe.baseline),b.end=ee.range.end;}me=0,ke=0;}else if(b.spans.length===0&&b.drawings.length===0&&Ke>Pe()+.001&&!pe(Ke))continue;let je=ge,Ye=I.start+ye,le=Ke;if(!ce&&I.measureText===void 0)for(;b.spans.length===0&&je.length>1&&le>Pe();){let ue=1,ee=je.length-1,xe=1;for(;ue<=ee;){let un=ue+ee>>1;o.measure(lr(je.slice(0,un),$),$)<=Pe()?(xe=un,ue=un+1):ee=un-1;}let We=je.slice(0,xe),Nt=o.measure(lr(We,$),$);b.spans.push({range:{paragraphId:t,start:Ye,end:Ye+xe},text:We,props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:Nt,height:te.height},...I.link?{link:I.link}:{},...I.noteNav?{noteNav:I.noteNav}:{},...I.fontSlot?{fontSlot:I.fontSlot}:{},...F(I)}),b.width+=Nt,b.height=Math.max(b.height,te.height),b.baseline=Math.max(b.baseline,te.baseline),b.end=Ye+xe,Je(),je=je.slice(xe),Ye+=xe,le=o.measure(lr(je,$),$);}b.spans.push({range:ce?Be:{paragraphId:t,start:Ye,end:I.start+Q},text:je,props:I.props,style:I.style,box:{x:W()+b.width,y:0,width:le,height:te.height},...I.link?{link:I.link}:{},...ce&&!I.positionalTab?{projected:true}:{},...I.noteNav?{noteNav:I.noteNav}:{},...I.fontSlot?{fontSlot:I.fontSlot}:{},...F(I)}),b.width+=le,b.height=Math.max(b.height,te.height),b.baseline=Math.max(b.baseline,te.baseline),b.end=ce?I.end:I.start+Q,Ae=ge,ye=Q;}}return (b.spans.length>0||b.drawings.length>0||v.length===0||St)&&Je({includeParagraphMark:true}),i!==null&&a&&a.set(i,v.map(Iy)),v}var Ol=32,My=4096,HT=128,zT=/[\u0000-\u001F\u007F-\u009F]/;function Qr(e){return e.kind!=="textValue"}function ua(e,t){return e.attributes.find(n=>n.localName===t)?.value}function fa(e,t){for(let n of e.children)if(Qr(n)&&n.localName===t)return n}function Jr(e){return !(e===void 0||e.length===0||e.length>HT||zT.test(e)||chunkNJNFJPGB_cjs.I(e))}function jT(e){return e==="1"||e==="true"||e==="on"}function Tl(e){return e.map(t=>t.attributes?{n:t.localName,a:t.attributes}:{n:t.localName})}function ki(e){if(e){for(let t of e.children)if(Qr(t)&&(t.kind==="runProperties"||t.localName==="rPr"))return t}}function Cl(e){if(e){for(let t of e.children)if(Qr(t)&&(t.kind==="paragraphProperties"||t.localName==="pPr"))return t}}var Oy=new Set(["rPrChange","pPrChange","ins","del","moveFrom","moveTo"]);function pa(e){return e.some(t=>Oy.has(t.localName))?e.filter(t=>!Oy.has(t.localName)):e}function WT(e){let t=fa(e,"docDefaults");if(!t)return {run:[],paragraph:[],paragraphNode:void 0};let n=fa(t,"rPrDefault"),r=fa(t,"pPrDefault"),o=ki(n),a=Cl(r);return {run:pa(Lt(o)),paragraph:pa(Lt(a)),paragraphNode:a}}function GT(e){let t=ua(e,"styleId");if(!Jr(t))return null;let n=ua(e,"type")??"",r=(()=>{let u=fa(e,"basedOn");return u?ua(u,"val"):void 0})(),o=Jr(r)?r:null,a=(()=>{let u=fa(e,"next");return u?ua(u,"val"):void 0})(),i=Jr(a)?a:null,s=Cl(e),l=ki(e),d=new Map,c=0;for(let u of e.children){if(u.kind==="textValue"||u.localName!=="tblStylePr")continue;if(c>=VT)break;c+=1;let f=ua(u,"type");f&&!d.has(f)&&d.set(f,u);}return {styleId:t,type:n,basedOn:o,next:i,isDefault:jT(ua(e,"default")),paragraphProperties:pa(Lt(s)),runProperties:pa(Lt(l)),paragraphPropertiesNode:s,tablePropertiesNode:fa(e,"tblPr"),conditionalTableFormats:d}}var VT=32,kl=Object.freeze({tablePropertyNodes:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),paragraphProperties:Object.freeze([]),runProperties:Object.freeze([]),conditional:new Map});function By(e,t){let n=t&&Jr(t)?t:null,r=n?Fy(e,n):null;if(r)return r;let o=e.defaultTableStyleId;return !o||o===n?kl:Fy(e,o)??kl}var Cy=new WeakMap;function Fy(e,t){let n=Cy.get(e);n||(n=new Map,Cy.set(e,n));let r=n.get(t);if(r)return r;let o=$T(e,t);return o?(n.set(t,o),o):null}function $T(e,t){let n=ef(e,t,"table");if(n.length===0)return null;let r=[],o=[],a=[],i=[],s=new Map;for(let l of n){l.tablePropertiesNode&&r.push(l.tablePropertiesNode),l.paragraphPropertiesNode&&o.push(l.paragraphPropertiesNode),a.push(...l.paragraphProperties),i.push(...l.runProperties);for(let[d,c]of l.conditionalTableFormats)s.set(d,c);}return Object.freeze({tablePropertyNodes:Object.freeze(r),paragraphPropertyNodes:Object.freeze(o),paragraphProperties:Object.freeze(a),runProperties:Object.freeze(i),conditional:XT(s)})}function XT(e){let t=Object.freeze({get:n=>e.get(n),has:n=>e.has(n),forEach:(n,r)=>{for(let[o,a]of e)n.call(r,a,o,t);},keys:()=>e.keys(),values:()=>e.values(),entries:()=>e.entries(),[Symbol.iterator]:()=>e[Symbol.iterator](),[Symbol.toStringTag]:"Map",get size(){return e.size}});return t}function Ey(e){return e.paragraphPropertyNodes.length>0||e.paragraphProperties.length>0||e.runProperties.length>0||e.conditional.size>0}var Ju=Object.freeze({paragraphProperties:Object.freeze([]),paragraphPropertyNodes:Object.freeze([]),runProperties:Object.freeze([])});function Ly(e,t){let n=[...e.paragraphPropertyNodes],r=[...e.paragraphProperties],o=[...e.runProperties];for(let a of t){let i=e.conditional.get(a);if(!i)continue;let s=Cl(i);s&&(n.push(s),r.push(...pa(Lt(s))));let l=ki(i);l&&o.push(...pa(Lt(l)));}return n.length===0&&r.length===0&&o.length===0?Ju:{paragraphProperties:r,paragraphPropertyNodes:n,runProperties:o}}function KT(e,t=bg){let n=new Map;if(!e)return {cacheToken:chunk5TKAPFZT_cjs.y({empty:true,theme:t}),docDefaultsRun:[],docDefaultsParagraph:[],docDefaultsParagraphNode:void 0,defaultParagraphStyleId:null,defaultCharacterStyleId:null,defaultTableStyleId:null,themeFonts:t,styles:n};let r=WT(e),o=null,a=null,i=null,s=0;for(let d of e.children){if(!Qr(d)||d.localName!=="style")continue;if(s>=My)break;s+=1;let c=GT(d);if(!c)continue;let{isDefault:u,...f}=c;n.set(f.styleId,f),f.type==="paragraph"?u?o=f.styleId:o===f.styleId&&(o=null):f.type==="character"?u?a=f.styleId:a===f.styleId&&(a=null):f.type==="table"&&(u?i=f.styleId:i===f.styleId&&(i=null));}return {cacheToken:chunk5TKAPFZT_cjs.y({dR:Tl(r.run),dP:Tl(r.paragraph),defP:o,defC:a,defT:i,theme:t,styles:[...n.values()].map(d=>({id:d.styleId,type:d.type,basedOn:d.basedOn,p:Tl(d.paragraphProperties),r:Tl(d.runProperties)}))}),docDefaultsRun:r.run,docDefaultsParagraph:r.paragraph,docDefaultsParagraphNode:r.paragraphNode,defaultParagraphStyleId:o,defaultCharacterStyleId:a,defaultTableStyleId:i,themeFonts:t,styles:n}}function Qu(e,t){let n=null;for(let r of e){if(r.localName!==t)continue;let o=r.attributes?.val;n=Jr(o)?o:null;}return n}function ef(e,t,n){let r=e.styles.get(t);if(!r||r.type!==n)return [];let o=[],a=new Set,i=t,s=0;for(;i!==null&&s<Ol&&!(a.has(i)||!Jr(i));){a.add(i);let l=e.styles.get(i);if(!l)break;o.push(l),i=l.basedOn,s+=1;}return o.reverse()}function ma(e,t,n){let r=Lt(t),o=Qu(r,"pStyle")??e.defaultParagraphStyleId,a=o?ef(e,o,"paragraph"):[],i=[...e.docDefaultsParagraph,...n?.paragraphProperties??[],...a.flatMap(p=>p.paragraphProperties)],s=[...i,...r],l=[];e.docDefaultsParagraphNode&&l.push(e.docDefaultsParagraphNode),n&&l.push(...n.paragraphPropertyNodes);for(let p of a)p.paragraphPropertiesNode&&l.push(p.paragraphPropertiesNode);t&&l.push(t);let d=ki(t&&Qr(t)?t:void 0),c=Lt(d),u=Ms([{properties:e.docDefaultsRun,role:"defaults",emit:true},{properties:n?.runProperties??[],role:"xor",emit:true},{properties:a.flatMap(p=>p.runProperties),role:"xor",emit:true}]),f=c.length===0?u:Ms([{properties:u,role:"carried",emit:true},{properties:c,role:"direct",emit:true}]);return {paragraphProperties:s,inheritedParagraphProperties:i,paragraphPropertyNodes:l,runProperties:u,markRunProperties:f,styleId:o??null}}function Ny(e){let t;for(let n of e){if(!n||n.kind==="textValue")continue;let r=false;for(let o of n.children)if(Qr(o)&&o.localName==="pBdr"){r=true;break}r&&(t=Hn(n).bottom);}return t}function Yn(e,t,n){let r=[];if(n){let i=Qu(t,"rStyle")??n.defaultCharacterStyleId;i&&(r=ef(n,i,"character").flatMap(s=>s.runProperties));}if(e.length===0&&r.length===0)return t;if(r.length===0&&t.length===0)return e;let o=r.length===0?e:Ms([...e.length>0?[{properties:n?.docDefaultsRun??[],role:"defaults",emit:false}]:[],{properties:e,role:"carried",emit:true},{properties:r,role:"xor",emit:true}]);return t.length===0?o:[...o,...t]}function eo(e,t,n,r,o,a=false){let i=Cl(e),s=n?ma(n,i,o):null,l=s?[...s.paragraphProperties]:Lt(i),d=Lt(ki(i&&Qr(i)?i:void 0)),c=s?s.runProperties:[],u=s?s.markRunProperties:d,f=Ti(l),p=0,m=0;if(r)p=r.indent.hanging,m=r.indent.firstLine;else for(let y of l){if(y.localName!=="ind")continue;let x=Ii(y.attributes?.hanging),w=Ii(y.attributes?.firstLine);(y.attributes?.hanging!==void 0||y.attributes?.firstLine!==void 0)&&(p=x!==null?Math.max(0,chunkNJNFJPGB_cjs.ld(x)):0,m=w!==null?chunkNJNFJPGB_cjs.ld(w):0);}let g=r?{left:r.indent.left,right:r.indent.right,hanging:p,firstLine:m}:{left:f.left,right:f.right,hanging:p,firstLine:m},h=s?nu(s.paragraphPropertyNodes):ru(i);return {props:l,indent:g,available:Math.max(1,t-g.left-g.right),alignment:ky(l),spacing:Yc(l,{inList:r!==void 0,inTableCell:a}),lineSpacing:Uc(l),contextualSpacing:Zc(l),styleId:s?s.styleId:Qu(l,"pStyle")??null,bottomBorder:s?Ny(s.paragraphPropertyNodes):Hn(i).bottom,borders:s?fi(s.paragraphPropertyNodes):Hn(i),shading:Mc(l),inheritedRunProperties:c,markRunProperties:u,tabStops:h,tabStopsCacheToken:jr(h),...r?{listItem:r}:{}}}var YT=new Map([[167,"\u2663"],[168,"\u2666"],[169,"\u2665"],[170,"\u2660"],[174,"\u2192"],[176,"\xB0"],[180,"\xD7"],[183,"\u2022"],[222,"\u21D2"]]),Ay=new Map([[108,"\u25CF"],[110,"\u25A0"],[111,"\u25A1"],[167,"\u25AA"],[216,"\u27A2"],[252,"\u2714"],[253,"\u2718"]]),Dy=new Map([[167,"\u25AA"],[183,"\u2022"]]),_y=new Map([["symbol",YT],["wingdings",Ay],["wingdings 2",Dy],["wingdings 3",Dy],["webdings",Ay]]),UT=64;function Oi(e){return !e||e.length>UT?false:_y.has(e.toLowerCase())}function ga(e,t,n){if(e.length===0||!Oi(t))return e;let r=_y.get(t.toLowerCase());if(n?.(t)===true)return e;let o="",a=false;for(let i of e){let s=i.codePointAt(0);if(s>=61440&&s<=61695){let l=r.get(s-61440);if(l!==void 0){o+=l,a=true;continue}}o+=i;}return a?o:e}var rf=new WeakMap;function DL(e,t){let n=t.dependencyKeys.size===0||[...t.dependencyKeys].every(r=>r===chunkNJNFJPGB_cjs.g.story);rf.set(e,{preservesNumberedSequence:t.impact==="text-local"&&!t.structural&&t.created.size===0&&t.deleted.size===0&&n});}function ZT(e){let t=rf.get(e);return rf.delete(e),t}function JT(e){return [e.fontFamily??"",e.fontSizePt,e.bold?1:0,e.italic?1:0,e.characterSpacingPt,e.horizontalScalePercent,e.verticalAlign,e.hidden?1:0,e.kerningMinPt,e.caps?1:0,e.smallCaps?1:0].join(",")}var Ky=new WeakMap;function Yy(e){return Ky.get(e)}function of(e){return e.kind!=="textValue"}function Hy(e,t){for(let n of e.attributes)if(n.localName===t)return n.value}function Fl(e,t){for(let n of e.children)if(of(n)&&n.localName===t)return n}function Uy(e){if(!of(e))return null;let t=Fl(e,"numPr");if(!t)return null;let n=Fl(t,"numId"),r=Fl(t,"ilvl"),o;if(n){let i=Hy(n,"val");o=i!==void 0&&i!=="0"&&i.length<=64?i:null;}let a;if(r){let i=Hy(r,"val"),s=/^\d{1,2}$/.test(i??"")?Number(i):0;a=s<=8?s:null;}return {numId:o,ilvl:a}}function qy(e){let t=null,n=0;for(let r of e){let o=Uy(r);o&&(o.numId!==void 0&&(t=o.numId),o.ilvl!==void 0&&(o.ilvl===null?t=null:n=o.ilvl));}return t===null?null:{numId:t,ilvl:n}}function QT(e,t){let n=new Set,r=e.styles.get(t);for(let o=0;r!==void 0&&o<Ol;o+=1){if(n.has(r.styleId))return;n.add(r.styleId);let a=r.paragraphPropertiesNode,i=a?Uy(a):null;if(i&&i.numId!==void 0)return i.numId??void 0;r=r.basedOn===null?void 0:e.styles.get(r.basedOn);}}var tf=new WeakMap;function Ci(e,t){if(!t)return e;let n=tf.get(e);if(n&&n.styleCascade===t)return n.linked;let r=jh(e,a=>QT(t,a)),o={styleCascade:t,linked:r};return tf.set(e,o),tf.set(r,o),r}function zy(e){return Number.isFinite(e)?e>an?an:e<-an?-an:e:0}function jy(e){let t=null;for(let n of e){if(n.localName!=="ind")continue;let r=n.attributes?.hanging,o=n.attributes?.firstLine;r===void 0&&o===void 0||(t={hanging:r!==void 0&&/^\d{1,9}$/.test(r)?zy(Number(r)/20):0,firstLine:o!==void 0&&/^-?\d{1,9}$/.test(o)?zy(Number(o)/20):0});}return t}function Wy(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.left!==void 0||t.attributes?.start!==void 0))}function Gy(e){return e.some(t=>t.localName==="ind"&&(t.attributes?.right!==void 0||t.attributes?.end!==void 0))}function Zy(e,t,n=[]){let r=e.stated??{left:false,right:false,firstLineOffset:false},o=Ti(t),a=Ti(n),i={hanging:e.hanging,firstLine:e.firstLine},s=Wy(n)?a.left:r.left?e.left:Wy(t)?o.left:e.left,l=Gy(n)?a.right:r.right?e.right:Gy(t)?o.right:e.right,d=jy(n)??(r.firstLineOffset?i:jy(t)??i);return {left:s,right:l,...d}}function ln(e,t=8){let n=[],r=(o,a)=>{for(let i of o){if(i.kind==="paragraph"){n.push(i);continue}if(!(i.kind!=="table"||a>=t)){for(let s of chunkNJNFJPGB_cjs.rf(i.children))if(s.kind==="tableRow")for(let l of chunkNJNFJPGB_cjs.rf(s.children)){if(l.kind!=="tableCell")continue;let d=chunkNJNFJPGB_cjs.rc(l.children);r(d,a+1);}}}};return r(e,0),n}var Vy=new WeakMap;function Jy(e,t){let n=Vy.get(e);if(n&&n.styleCascade===t)return n;let r=e.children.find(l=>l.kind==="paragraphProperties"),o=t?ma(t,r):null,a=o?o.paragraphPropertyNodes:r?[r]:[],i=r&&of(r)?Fl(r,"rPr"):void 0,s={styleCascade:t,numPr:qy(a),inheritedParagraphProperties:o?.inheritedParagraphProperties??[],directProps:Lt(r),inheritedMarkProps:o?o.markRunProperties:Lt(i),perLevel:new WeakMap};return Vy.set(e,s),s}function Ml(e,t,n,r){let o=new Map;if(t.nums.size===0)return o;let a=Ci(t,n),i=Bu(a);for(let s of ln(e)){let l=Jy(s,n),d=l.numPr;if(!d)continue;let c=i.advance(d.numId,d.ilvl);if(!c)continue;let u=l.perLevel.get(c.level);if(!u){let y=Zy(c.level.indent,l.inheritedParagraphProperties,l.directProps),x=Yn(l.inheritedMarkProps,c.level.runProperties,n);u={indent:y,markerStyle:Le(x,n?.themeFonts)},l.perLevel.set(c.level,u);}let{indent:f,markerStyle:p}=u,m=ga(c.markerText,p.fontFamily,r),g=Ce([c.numId,c.ilvl,c.level.numFmt,c.level.lvlText,f.left,f.right,f.hanging,f.firstLine,c.level.lvlJc,c.level.suff,c.level.vanish?1:0,m,JT(p)].map(String)),h={numId:c.numId,ilvl:c.ilvl,abstractNumId:c.abstractNumId,numFmt:c.level.numFmt,markerText:m,markerAlign:c.level.lvlJc,suffix:c.level.suff,indent:f,markerStyle:p,cacheToken:g};Ky.set(h,{index:a,numId:c.numId,ilvl:c.ilvl,expandCounters:Vh(c)}),o.set(s.id,h);}return o}var Qy=new WeakMap,eb=new WeakMap;function $y(e,t,n){let r=n?eb.get(n):Qy.get(t);if(r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable)return r}function ek(e,t,n){t?eb.set(t,n):Qy.set(e,n);}function tb(e,t,n){if(e.listItems===void 0){let i=$y(e,t,n);if(i&&n===void 0)return {...e,numberingIndex:i.linkedIndex,...i.listItems?{listItems:i.listItems}:{}}}let r=e.listItems===void 0?$y(e,t,n):void 0,o=r&&r.rawIndex===e.numberingIndex&&r.styleCascade===e.styleCascade&&r.isFontAvailable===e.isFontAvailable?r.linkedIndex:Ci(e.numberingIndex??Mu,e.styleCascade),a=e.listItems??(o.nums.size>0?ok(t,e.numberingIndex,o,e.styleCascade,e.isFontAvailable,n):void 0);return e.listItems===void 0&&ek(t,n,{rawIndex:e.numberingIndex,styleCascade:e.styleCascade,isFontAvailable:e.isFontAvailable,linkedIndex:o,listItems:a}),{...e,numberingIndex:o,...a?{listItems:a}:{}}}function Un(e,t){return tb(e,t,void 0)}function nb(e,t,n){return tb(e,t,n)}var Xy=new WeakMap,tk=Object.freeze([]);function nk(e,t){let n=Xy.get(e);if(n&&n.styleCascade===t)return n.numbered;let r=ln([e]).filter(a=>Jy(a,t).numPr!==null),o=r.length>0?r:tk;return Xy.set(e,{styleCascade:t,numbered:o}),o}var ha=new WeakMap,nf=new WeakMap;function rk(e,t){return e.length===t.length&&e.every((n,r)=>{let o=t[r];if(!o||n.id!==o.id)return false;let a=n.children.find(s=>s.kind==="paragraphProperties"),i=o.children.find(s=>s.kind==="paragraphProperties");return a===i})}function ok(e,t,n,r,o,a){let i=e[0],s=e[e.length-1],l=a?nf.get(a):(i?ha.get(i):void 0)??(s?ha.get(s):void 0);if((a?ZT(a):void 0)?.preservesNumberedSequence&&l&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o)return l.listItems;let c=new Array(e.length),u=l!==void 0&&l.rawIndex===t&&l.styleCascade===r&&l.isFontAvailable===o&&l.blocks.length===e.length;for(let m=0;m<e.length;m+=1){let g=e[m],h=l&&l.blocks[m]===g?l.numberedByBlock[m]:nk(g,r);c[m]=h,u&&!rk(h,l.numberedByBlock[m])&&(u=false);}if(l&&u){let m={...l,blocks:e,numberedByBlock:c};return a?nf.set(a,m):(i&&ha.set(i,m),s&&s!==i&&ha.set(s,m)),l.listItems}let f=Ml(e,n,r,o),p={rawIndex:t,styleCascade:r,isFontAvailable:o,blocks:e,numberedByBlock:c,listItems:f};return a?nf.set(a,p):(i&&ha.set(i,p),s&&s!==i&&ha.set(s,p)),f}function Bl(e,t,n,r){if((!e.markerText||e.indent.hanging<=0&&t<=0)&&!e.markerText||!e.markerText)return null;let o=e.indent.left,a=e.indent.hanging,i=a>0?0:Math.max(0,e.indent.firstLine),s=Math.min(0,o),l=i>0?o+i:Math.max(s,o-a),d=Math.max(a,t),c=l;return e.markerAlign==="right"?c=i>0?l+d-t:o-t:e.markerAlign==="center"&&(c=l+(d-t)/2),c<s&&(c=s),{x:c,y:n,width:Math.max(t,0),height:r}}function ak(e,t,n=Go,r=Number.POSITIVE_INFINITY){if(!e.markerText)return 0;let o=t.measure(e.markerText,e.markerStyle),a=Bl(e,o,0,0);if(!a)return 0;let i=e.indent.left,s=a.x+a.width;return e.suffix==="nothing"?s-i:e.suffix==="space"?s+t.measure(" ",e.markerStyle)-i:s<=i?0:Vo(n,s,r).positionPt-i}function El(e,t,n,r,o){return e?ak(e,n,r,o===void 0?void 0:t.left+o):t.hanging>0?-t.hanging:t.firstLine}function ik(e,t,n){return to(e,t,()=>n)}function to(e,t,n){let r=[],o=null,a=-1,i=-1;for(let s of t){let l=n(s.sectionIndex);if(s.customMarkFollows){r.push({noteId:s.noteId,mark:null});continue}o===null?(o=l.numStart,a=s.sectionIndex,i=s.pageIndex??-1):l.numRestart==="eachSect"&&s.sectionIndex!==a?(o=l.numStart,a=s.sectionIndex):l.numRestart==="eachPage"&&s.pageIndex!==void 0&&s.pageIndex!==i?(o=l.numStart,i=s.pageIndex):l.numRestart==="eachSect"?a=s.sectionIndex:l.numRestart==="eachPage"&&s.pageIndex!==void 0&&(i=s.pageIndex);let d=o;o+=1,r.push({noteId:s.noteId,mark:nn(l.numFmt,d),displayNumber:d});}return r}function rb(e){let t=new Map;for(let n of e)t.set(n.noteId,n.mark);return t}var Ll=4096,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 af(e,t,n=31680*2){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<=0||r>n?t:r}function no(e,t){if(e===void 0||!/^-?\d{1,7}$/.test(e))return t;let n=Number(e);return !Number.isFinite(n)||Math.abs(n)>31680?t:n}function lb(e,t,n=31680){if(e===void 0||!/^\d{1,7}$/.test(e))return t;let r=Number(e);return !Number.isFinite(r)||r<0||r>n?t:r}var rt=(e,t)=>{if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes??[])if(n.localName===t)return n.value}},ro=(e,t)=>{if(e.kind!=="textValue"){for(let n of e.children??[])if(n.kind!=="textValue"&&"localName"in n&&n.localName===t)return n}};function ob(e,t,n){let r=rt(e,t);return r===void 0?n:r==="0"||r==="false"||r==="off"||r==="no"?false:r==="1"||r==="true"||r==="on"||r==="yes"?true:n}function sk(e){if(!e)return 1;let t=rt(e,"num");return !t||!/^\d{1,7}$/.test(t)?1:Math.max(1,Math.min(12,Number(t)))}function lk(e,t,n){if(!e||e.kind==="textValue")return [];let r=[];for(let o of e.children??[]){if(r.length>=t||o.kind==="textValue"||!("localName"in o)||o.localName!=="col")continue;let a=r.length;r.push({widthTwips:af(rt(o,"w"),1,31680),gapTwips:a===t-1?0:lb(rt(o,"space"),n)});}return r}function dk(e){let t=e?ro(e,"type"):void 0,n=t?rt(t,"val"):void 0;return n==="continuous"||n==="evenPage"||n==="oddPage"||n==="nextColumn"?n:"nextPage"}var ck=new Set(["hyphen","period","colon","emDash","enDash"]);function db(e){let t=ro(e,"pgNumType");if(!t||t.kind==="textValue")return;let n={},r=rt(t,"start");if(r!==void 0&&/^-?\d{1,7}$/.test(r)){let s=Number(r);Number.isFinite(s)&&s>=0&&s<=9999&&(n.start=s);}let o=rt(t,"fmt");o!==void 0&&o.length>0&&o.length<=64&&!/[<>&"']/.test(o)&&(n.fmt=o);let a=rt(t,"chapStyle");if(a!==void 0&&/^\d{1,2}$/.test(a)){let s=Number(a);Number.isFinite(s)&&s>=0&&s<=9&&(n.chapStyle=s);}let i=rt(t,"chapSep");return i!==void 0&&ck.has(i)&&(n.chapSep=i),n}var ab=new WeakMap;function Nl(e){if(!e)return dn;let t=ab.get(e);if(t!==void 0)return t;let n=uk(e);return ab.set(e,n),n}function uk(e){let t=ro(e,"pgSz"),n=ro(e,"pgMar"),r=ro(e,"cols"),o=dn,a=t?rt(t,"orient"):void 0,i=t?af(rt(t,"w"),o.pageSize.widthTwips):o.pageSize.widthTwips,s=t?af(rt(t,"h"),o.pageSize.heightTwips):o.pageSize.heightTwips,l=db(e),d=sk(r),c=r?lb(rt(r,"space"),o.columns.gapTwips):o.columns.gapTwips,u=r?ob(r,"equalWidth",true):true;return {pageSize:{widthTwips:i,heightTwips:s},margins:{topTwips:n?no(rt(n,"top"),1440):o.margins.topTwips,rightTwips:n?no(rt(n,"right"),1440):o.margins.rightTwips,bottomTwips:n?no(rt(n,"bottom"),1440):o.margins.bottomTwips,leftTwips:n?no(rt(n,"left"),1440):o.margins.leftTwips,headerTwips:n?no(rt(n,"header"),720):o.margins.headerTwips,footerTwips:n?no(rt(n,"footer"),720):o.margins.footerTwips,gutterTwips:n?no(rt(n,"gutter"),0):o.margins.gutterTwips},columns:{count:d,gapTwips:c,equalWidth:u,separator:r?ob(r,"sep",false):false,definitions:u?[]:lk(r,d,c)},landscape:a==="landscape"||i>s,titlePage:chunkNJNFJPGB_cjs.la(e,"titlePg"),breakType:dk(e),...l!==void 0?{pageNumbering:l}:{}}}function fk(e){let t=n=>{if(n.kind!=="textValue"){if(n.kind==="body")return ro(n,"sectPr");for(let r of n.children??[]){let o=t(r);if(o)return o}}};return t(e.root)}var ib=new WeakMap;function xr(e){let t=ib.get(e);if(t!==void 0)return t??void 0;let n=e.children.find(a=>a.kind==="paragraphProperties"),r=n?ro(n,"sectPr"):void 0,o=r&&r.kind!=="textValue"?r:void 0;return ib.set(e,o??null),o}function pk(e){let t=cb(e);return t[t.length-1]?.properties??dn}function cb(e,t="all-markup",n){return ub(e,t,n).sections}function mk(e,t="all-markup",n){let r=zt(e,t,n),o=oo(e,r).sections,a=zt(e,"all-markup"),i=oo(e,a).sections,s=Math.max(0,i.length-1),l=new Map;for(let d of i){if(d.blockStart===d.blockEndExclusive)continue;let c=a[d.blockEndExclusive-1];c?.kind==="paragraph"&&xr(c)&&l.set(c.id,d.index);}return o.map(d=>{if(d.blockStart===d.blockEndExclusive)return s;let c=r[d.blockEndExclusive-1];return c?.kind!=="paragraph"||!xr(c)?s:l.get(c.id)??s})}function ub(e,t="all-markup",n){return oo(e,zt(e,t,n))}var sb=chunkNJNFJPGB_cjs.Nf(16);function oo(e,t){let n=sb.get(t);if(n&&n.part===e)return n.result;let r=gk(e,t);return sb.set(t,{part:e,result:r}),r}function gk(e,t){let n=[],r=0,o=false;for(let i=0;i<t.length;i+=1){let s=t[i];if(s.kind!=="paragraph")continue;let l=xr(s);if(l){if(n.length>=Ll){o=true;continue}n.push({index:n.length,properties:Nl(l),blockStart:r,blockEndExclusive:i+1}),r=i+1;}}if(o){if(n.length>0){let i=n[n.length-1];n[n.length-1]={...i,blockEndExclusive:t.length};}return {sections:n,truncated:true}}let a=fk(e);if(r<t.length||n.length===0){if(n.length>=Ll){let i=n[n.length-1];return n[n.length-1]={...i,blockEndExclusive:t.length},{sections:n,truncated:true}}n.push({index:n.length,properties:Nl(a),blockStart:r,blockEndExclusive:t.length});}else if(a){if(n.length>=Ll)return {sections:n,truncated:true};n.push({index:n.length,properties:Nl(a),blockStart:r,blockEndExclusive:t.length});}return {sections:n,truncated:o}}function ao(e){let t=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.pageSize.widthTwips)),n=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.pageSize.heightTwips)),r=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.margins.leftTwips+e.margins.gutterTwips)),o=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.margins.rightTwips)),a=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.margins.topTwips)),i=chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.margins.bottomTwips));return t-r-o<=0||n-a-i<=0?di:{width:t,height:n,margin:{top:a,right:o,bottom:i,left:r},headerDistance:chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(Math.max(0,e.margins.headerTwips))),footerDistance:chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(Math.max(0,e.margins.footerTwips)))}}var fb=4096,pb=new WeakMap;function yb(e,t){let n=pb.get(e);if(n&&n.sections===t)return n.input;let r={sections:t,footnotePropsBySection:e.footnotePropsBySection,endnotePropsBySection:e.endnotePropsBySection,documentFootnoteProps:e.documentFootnoteProps,documentEndnoteProps:e.documentEndnoteProps};return pb.set(e,{sections:t,input:r}),r}function bb(e,t,n){let r=chunkNJNFJPGB_cjs.pe(e),o=chunkNJNFJPGB_cjs.qe(r),a=chunkNJNFJPGB_cjs.re(r),i=chunkNJNFJPGB_cjs.se(void 0,o),s=chunkNJNFJPGB_cjs.te(void 0,a),l=oo(t,n).sections,d=c=>{if(c.blockStart===c.blockEndExclusive)return;let u=n[c.blockEndExclusive-1];return u?.kind==="paragraph"?xr(u):void 0};return {sections:l,footnotePropsBySection:l.map(c=>chunkNJNFJPGB_cjs.se(chunkNJNFJPGB_cjs.ne(d(c)),o)),endnotePropsBySection:l.map(c=>chunkNJNFJPGB_cjs.te(chunkNJNFJPGB_cjs.oe(d(c)),a)),documentFootnoteProps:i,documentEndnoteProps:s}}var hk=Object.freeze([]);function yk(e){for(let t of e.attributes){if(t.localName!=="customMarkFollows"||t.namespaceUri!==chunkNJNFJPGB_cjs.ca&&t.namespaceUri!=="")continue;let n=t.value;return !(n==="0"||n==="false"||n==="off")}return false}var mb=new WeakMap;function bk(e){let t=mb.get(e);if(t)return t;let n=null;for(let o of chunkNJNFJPGB_cjs.He(e)){let a=o.node;if(a.kind!=="noteReference")continue;let i=chunkNJNFJPGB_cjs.ae(a),s=chunkNJNFJPGB_cjs.Zd(a);i===null||s===null||(n??=[]).push({nodeId:a.id,noteKind:i,noteId:s,customMarkFollows:yk(a)});}let r=n===null?hk:Object.freeze(n);return mb.set(e,r),r}function xk(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function Sk(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}var Rk=new Map,gb=new WeakMap;function xb(e,t){let n=gb.get(e);if(n&&n.input===t)return n.index;let r=[],o=[],a=[],i=[],s=0,l=0;for(let f=0;f<e.length&&s<fb;f+=1){for(;l<t.sections.length-1&&f>=t.sections[l].blockEndExclusive;)l+=1;let p=t.sections.length>0?l:0;for(let m of ln([e[f]]))for(let g of bk(m)){if(s>=fb)break;s+=1;let h={noteId:g.noteId,sectionIndex:p,customMarkFollows:g.customMarkFollows};g.noteKind==="footnote"?(r.push(h),o.push(g.nodeId)):(a.push(h),i.push(g.nodeId));}}let d=null,c=(f,p,m,g)=>{if(p.length===0||(f==="footnote"?t.footnotePropsBySection.length>0?t.footnotePropsBySection:[t.documentFootnoteProps]:t.endnotePropsBySection.length>0?t.endnotePropsBySection:[t.documentEndnoteProps]).some(x=>x.numRestart==="eachPage"))return;let y=to(f,p,g);for(let x=0;x<y.length;x+=1){let w=y[x].mark,T=m[x];w!==null&&w.length>0&&T!==void 0&&(d??=new Map).set(T,w);}};c("footnote",r,o,f=>xk(t,f)),c("endnote",a,i,f=>Sk(t,f));let u=d??Rk;return gb.set(e,{input:t,index:u}),u}function sf(e,t){for(let n of e.attributes)if(n.namespaceUri===chunkNJNFJPGB_cjs.ca&&n.localName===t)return n.value}var hb=new WeakMap;function Sb(e,t){let n=hb.get(e),r=n?.get(t);if(r!==void 0)return r;let o=false,a=false,i,s=null,l=jn(),d=(c,u)=>{if(!(a||c.kind==="textValue")&&!(l.exhausted||u>It)){if(c.kind==="bookmarkStart"){!o&&sf(c,"name")===t&&(o=true,i=sf(c,"id"));return}if(c.kind==="bookmarkEnd"){o&&i!==void 0&&sf(c,"id")===i&&(a=true);return}if(o&&c.kind==="noteReference"){s=c.id,a=true;return}if(et(l))for(let f of c.children)d(f,u+1);}};for(let c of e.children){if(a||!et(l))break;d(c,1);}return n||(n=new Map,hb.set(e,n)),n.set(t,s),s}var Pk=512,wk=2048,Rb=4096,kb=Object.freeze([]),Ob=Object.freeze([]),vk=Object.freeze({fields:Ob,bookmarks:kb});function lf(e){return e.replace(/\u00A0/g," ").replace(/\s+/g," ").trim()}var Pb=new WeakMap;function Ik(e){let t=Pb.get(e);if(t)return t;let n=null,r=null,o=jn(),a=Gr(),i=null,s=null,l=$n,d=$n,c=()=>{if(a.nesting!==1||a.phase!=="instruction"||a.nestingOverflow)return;let m=Xo(a);if(m.overflow||s===null)return;let g=rn(m.instruction);if(g){i={spec:g,autonum:null,anchorId:s,cached:"",revisions:d};return}let h=mr(m.instruction);h&&(i={spec:null,autonum:h,anchorId:s,cached:"",revisions:d});},u=()=>{i&&((n??=[]).push({spec:i.spec,autonum:i.autonum,anchorId:i.anchorId,cached:lf(i.cached),revisions:i.revisions}),i=null);},f=(m,g)=>{if(m.kind!=="textValue"&&!(o.exhausted||g>It)){if(m.kind==="bookmarkStart"){let h=hi(m,"name");h!==void 0&&h.length>0&&h.length<=Su&&(r??=[]).push(h);return}if(m.kind==="run"){for(let h of m.children){if(!et(o))return;if(h.kind!=="runProperties"){if(ft(h,"begin")){Vr(a),a.nesting===1&&(s=h.id,d=l,i=null);continue}if(zn(h)){$r(a,h,o,g+1);continue}if(ft(h,"separate")){c(),Xr(a);continue}if(ft(h,"end")){let y=a.nesting===1;c(),Kr(a),y&&u();continue}if(i&&a.nesting===1&&a.phase==="result")if(h.kind==="text")for(let y of h.children)y.kind==="textValue"&&i.cached.length<Yr&&(i.cached+=y.value.slice(0,Yr-i.cached.length));else h.kind==="tab"&&i.cached.length<Yr&&(i.cached+=" ");}}return}if(chunkNJNFJPGB_cjs.Pc(m)){let h=chunkNJNFJPGB_cjs.Rc(m)??"",y=rn(h),x=y===null?mr(h):null;(y||x)&&(n??=[]).push({spec:y,autonum:x,anchorId:m.id,cached:lf(gh(m,o)),revisions:l});return}if(!xu(m)&&et(o)){if(Mt(m)){let h=Ht(m);if(h){let y=l;l=$t(y,h);for(let x of m.children)f(x,g+1);l=y;return}}for(let h of m.children)f(h,g+1);}}};for(let m of e.children){if(!et(o))break;f(m,1);}let p=n===null&&r===null?vk:Object.freeze({fields:n??Ob,bookmarks:r??kb});return Pb.set(e,p),p}var Tk=Object.freeze({fieldsByParagraph:null,bookmarkOwners:null}),wb=new WeakMap;function kk(e){let t=wb.get(e);if(t)return t;let n=null,r=null;for(let a of ln([e])){let i=Ik(a);i.fields.length>0&&(n??=new Map).set(a.id,i.fields);for(let s of i.bookmarks)r??=new Map,!r.has(s)&&r.size<wk&&r.set(s,a);}let o=n===null&&r===null?Tk:Object.freeze({fieldsByParagraph:n,bookmarkOwners:r});return wb.set(e,o),o}var Al=new WeakMap;function Ok(e){let t=e[0],n=e[e.length-1],r=(t?Al.get(t):void 0)??(n?Al.get(n):void 0)??new Map;return t&&Al.set(t,r),n&&Al.set(n,r),r}var Dl=new WeakMap;function Ck(e){let t=e[0],n=e[e.length-1],r=(t?Dl.get(t):void 0)??(n?Dl.get(n):void 0)??new Map;return t&&Dl.set(t,r),n&&Dl.set(n,r),r}function vb(e){return e.length>1&&e.endsWith(".")?e.slice(0,-1):e}var Ib=new WeakMap;function _l(e,t=ve,n){if(!e)return [];let r=`${t}|${n?.cacheKey??""}`,o=Ib.get(e),a=o?.get(r);if(a)return a;let i=[];for(let s of chunkNJNFJPGB_cjs.ie(e.root)){if(i.length>=chunkNJNFJPGB_cjs.ge)break;if(!chunkNJNFJPGB_cjs.$d(s))continue;let l=ea(s,t,n);l.length>0&&i.push(l);}return o?yi(o,r,i):Ib.set(e,new Map([[r,i]])),i}var Tb=new WeakMap;function Fk(e,t,n,r,o,a){let i=new Map,s=[],l=0,d=P=>{for(let S of P){let R=kk(S);if(s.push(R),!!R.fieldsByParagraph)for(let[k,v]of R.fieldsByParagraph){if(l>=Pk)break;i.set(k,v),l+=v.length;}}};if(d(e),n){for(let P of _l(n.footnotesPart,o,a))d(P);for(let P of _l(n.endnotesPart,o,a))d(P);}if(i.size===0)return null;let c=new Set;for(let P of i.values())for(let S of P)S.spec&&c.add(S.spec.bookmark);let u=new Map;for(let P of s)if(P.bookmarkOwners)for(let[S,R]of P.bookmarkOwners)c.has(S)&&!u.has(S)&&u.set(S,R);let f=new Map,p=new Map,m=new Map;for(let[P,S]of i)for(let R of S){if(!R.autonum||!Ie(R.revisions,o,a))continue;let k=(m.get(R.autonum.kind)??0)+1;m.set(R.autonum.kind,k);let v=ph(R.autonum,k);v.length!==0&&(f.set(R.anchorId,v),p.has(P)||p.set(P,v));}let g=P=>{let S=gr(P);if(S.pageRef)return null;let R=u.get(P.bookmark);if(!R)return null;if(S.noteRef){if(r===void 0)return null;let v=Sb(R,P.bookmark);return v===null?null:xb(e,r).get(v)??null}if(P.numberSwitch!==null){let v=t?.get(R.id);if(!v){if(S.suppressNonDelimiterText)return null;let E=p.get(R.id);return E!==void 0?vb(E):null}let b=Yy(v),H=b!==void 0?$h(b,P.numberSwitch==="n",S.suppressNonDelimiterText):null,D=!S.suppressNonDelimiterText&&v.numFmt!=="bullet"&&v.numFmt!=="none"&&v.markerText.length>0?v.markerText:null,V=H??D;return V===null?null:vb(V)}if(S.suppressNonDelimiterText)return null;let k=hh(R,P.bookmark);return k.length>0?k:null},h=new Map,y=P=>{let S=gr(P),R=`${S.suppressNonDelimiterText?"t":""}${S.noteRef?"x":""}`,k=`${P.numberSwitch??"-"}${R}\0${P.bookmark}`;if(h.has(k))return h.get(k)??null;let v=g(P);return h.set(k,v),v},x=Ok(e),w=Ck(e),T=new Map,F=new Map,C=new Map,M=[];for(let[P,S]of i){let R=[];for(let v of S){if(v.spec===null){let V=v.autonum?f.get(v.anchorId)??null:null;R.push(V!==null?`a${V}`:`c${v.cached}`);continue}if(gr(v.spec).pageRef){let V=u.get(v.spec.bookmark);if(V){let E=w.get(v.anchorId);E===void 0&&w.size<Rb&&(E=Object.freeze({}),w.set(v.anchorId,E)),E!==void 0&&F.set(v.anchorId,{spec:v.spec,projection:{targetParagraphId:V.id,cached:v.cached,calibration:E}});}R.push(`c${v.cached}${V?.id??""}`);continue}let b=y(v.spec),H=x.get(v.anchorId);H===void 0&&(H=v.cached.length===0||b!==null&&lf(b)===v.cached,v.cached.length>0&&x.size<Rb&&x.set(v.anchorId,H));let D=H?b:null;T.set(v.anchorId,{spec:v.spec,live:D}),R.push(D!==null?`l${D}`:`c${v.cached}`);}let k=R.join("");C.set(P,k),M.push(k);}return {valuesToken:M.join(""),tokenForParagraph:P=>C.get(P)??"",liveValueOf:(P,S)=>{let R=T.get(P);return !R||R.live===null||R.spec.bookmark!==S.bookmark||R.spec.numberSwitch!==S.numberSwitch||gr(R.spec)!==gr(S)?null:R.live},autonumValueOf:P=>f.get(P)??null,pageRefProjectionOf:(P,S)=>{let R=F.get(P);return !R||R.spec.bookmark!==S.bookmark||gr(R.spec)!==gr(S)?null:R.projection}}}function Mk(e,t,n){return Fi(e,t,n,void 0)}function Fi(e,t,n,r,o=ve,a){let i=n?.footnotesPart??null,s=n?.endnotesPart??null,l=Tb.get(e);if(l&&l.listItems===t&&l.footnotesPart===i&&l.endnotesPart===s&&l.noteNumbering===r&&l.displayMode===o&&l.authorFilterKey===(a?.cacheKey??""))return l.context;let d=Fk(e,t,n,r,o,a);return Tb.set(e,{listItems:t,footnotesPart:i,endnotesPart:s,noteNumbering:r,displayMode:o,authorFilterKey:a?.cacheKey??"",context:d}),d}function Cb(e,t){let n=[];for(let r of ln([e])){let o=t.tokenForParagraph(r.id);o&&n.push(o);}return n.join(";")}function Mi(e){if(e.kind==="text"||e.kind==="deletedText"){let t="";for(let n of e.children)n.kind==="textValue"&&(t+=n.value);return t}return e.kind==="tab"?" ":e.kind==="hardBreak"?chunkNJNFJPGB_cjs.Fc(e):""}function na(e){if(!e||e.kind==="textValue")return [];let t=[];for(let n of e.children){if(n.kind==="textValue")continue;let r={};for(let a of n.attributes)r[a.localName]=a.value;let o=Object.keys(r).length>0;if(n.localName==="rPrChange"||n.localName==="pPrChange"){let a=o?{localName:n.localName,attributes:r,revisionNodeId:n.id}:{localName:n.localName,revisionNodeId:n.id};t.push(a);continue}t.push(o?{localName:n.localName,attributes:r}:{localName:n.localName});}return t}function Hl(e,t,n){let r=na(e.kind==="run"?e.children.find(o=>o.kind==="runProperties"):void 0);return n?[...n(t,r)]:t.length===0?r:[...t,...r]}var Sr=61440,Bi=61695,df=128;function ya(e){return e.kind==="generic"&&e.namespaceUri===chunkNJNFJPGB_cjs.ca&&e.localName==="sym"}function Fb(e,t){if(!(e.kind==="textValue"||!("attributes"in e))){for(let n of e.attributes)if(n.localName===t&&(n.namespaceUri===chunkNJNFJPGB_cjs.ca||n.namespaceUri===""))return n.value}}function Bk(e){return !e||e.length>4||!/^[0-9A-Fa-f]{1,4}$/.test(e)?null:Number.parseInt(e,16)}function zl(e){return !(!Number.isInteger(e)||e<32||e>1114111||e>=127&&e<=159||e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65534)===65534||e===65532)}function ba(e){if(!ya(e))return null;let t=Bk(Fb(e,"char"));if(t===null)return null;let n=Fb(e,"font"),r=n&&n.length<=df?n:null,o=Oi(r),a=o&&t<=255&&t+Sr<=Bi?t+Sr:t;if(o&&a>=Sr&&a<=Bi){let i=ga(String.fromCodePoint(a),r),s=i.codePointAt(0)<Sr;return {text:i,font:r,unicode:s}}return zl(t)?{text:String.fromCodePoint(t),font:r,unicode:t<57344||t>63743}:null}function cf(e,t,n){if(!t.font)return {props:e,style:Le(e,n)};let r=[...e,{localName:"rFonts",attributes:{ascii:t.font,hAnsi:t.font}}];return {props:r,style:Le(r,n)}}var Ek=256,Lk=9;function Nk(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r===" "||r===" "||r===`
|
|
13
|
-
`||r==="\r"){n+=1;continue}if(r==='"'){let a=n+1;for(;a<e.length&&e[a]!=='"';)a+=1;t.push({value:e.slice(n+1,a),quoted:true}),n=a<e.length?a+1:a;continue}let o=n;for(;o<e.length&&!`
|
|
14
|
-
\r"`.includes(e[o]);)o+=1;t.push({value:e.slice(n,o),quoted:false}),n=o;}return t}function Ak(e){if(e.quoted)return null;let t=e.value;if(t.length===0||t.length>Lk)return null;let n;if(t.startsWith("0x")||t.startsWith("0X")){let r=t.slice(2);if(!/^[0-9A-Fa-f]{1,6}$/.test(r))return null;n=Number.parseInt(r,16);}else {if(!/^\d{1,7}$/.test(t))return null;n=Number.parseInt(t,10);}return n>1114111||n>=55296&&n<=57343?null:n}function jl(e){if(e.length===0||e.length>Ek)return null;let t=Nk(e);if(t.length<2)return null;let n=t[0];if(n.quoted||n.value.toUpperCase()!=="SYMBOL")return null;let r=Ak(t[1]);if(r===null)return null;let o=null,a=null,i=false;for(let s=2;s<t.length;s+=1){let l=t[s];if(l.quoted||!l.value.startsWith("\\"))continue;let d=l.value.toLowerCase();if(d==="\\f"){let c=t[s+1];c&&c.value.length>0&&c.value.length<=df&&(c.quoted||!c.value.startsWith("\\"))&&(o=c.value,s+=1);continue}if(d==="\\s"){let c=t[s+1];if(c&&(c.quoted||!c.value.startsWith("\\"))&&(s+=1,/^\d{1,3}$/.test(c.value))){let u=Number(c.value);u>=1&&u<=999&&(a=u);}continue}d==="\\u"&&(i=true);}return {code:r,font:o,sizePt:a,unicode:i}}function Wl(e,t,n){let r=[];e.font&&r.push({localName:"rFonts",attributes:{ascii:e.font,hAnsi:e.font}}),e.sizePt!==null&&r.push({localName:"sz",attributes:{val:String(e.sizePt*2)}});let o=r.length>0?[...t,...r]:t,a=Le(o,n);if(e.unicode)return zl(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null;let i=e.font??a.fontFamily;if(Oi(i)){let s=e.code<=255&&e.code+Sr<=Bi?e.code+Sr:e.code;if(s>=Sr&&s<=Bi)return {text:ga(String.fromCodePoint(s),i),props:o,style:a}}return zl(e.code)?{text:String.fromCodePoint(e.code),props:o,style:a}:null}function Gl(){let e=null,t=0,n=false,r=false,o=()=>{e=null,t=0,n=false,r=false;};return {get active(){return e!==null},onSeparate(a,i){e===null&&a!==null&&(e=a,t=i,n=false,r=false);},onEnd(a,i){if(e===null||a>t)return null;let s=a===t,d=s&&i&&!(n&&!r)?Gn(e.kind,i,e.picture):"";return o(),s?d:null},reset:o,noteResult(a){n=true,a&&(r=true);}}}function Dk(e){let{simple:t,depth:n,pageContext:r,budget:o,revisions:a,displayMode:i,inheritedRunProperties:s,cascadeRuns:l,themeFonts:d}=e,c="",u,f,p=false,m=Gr(),g=Gl(),h=(x,w)=>{u||(u=x,f=w);},y=(x,w,T)=>{if(!(x.kind==="textValue"||w>It)){for(let F of x.children)if(F.kind!=="textValue"){if(!et(o))return;if(F.kind==="run"){let C=Hl(F,s,l),M=Le(C,d);for(let P of F.children){if(P.kind==="runProperties")continue;if(ft(P,"begin")){Vr(m),m.nesting===1&&g.reset();continue}if(zn(P)){$r(m,P,o,w+1);continue}if(ft(P,"separate")){let b=m.nesting,H=m.phase,D=Xr(m);(b===1||H==="result"&&!m.nestingOverflow)&&g.onSeparate(r?D:null,b);continue}if(ft(P,"end")){let b=g.onEnd(m.nesting,r);b!==null&&(c+=b),Kr(m);continue}if(chunkNJNFJPGB_cjs.Uc(P))continue;if(ya(P)){if(Ie(T,i,e.authorFilter)&&(p=true),g.active){g.noteResult(!M.hidden&&Ie(T,i,e.authorFilter));continue}let b=ba(P);if(!b?.unicode||M.hidden||!Ie(T,i,e.authorFilter))continue;h(C,M),c+=b.text;continue}let S=Mi(P);if(S.length===0)continue;let R=on(T),k=!Ie(T,i,e.authorFilter)||P.kind==="deletedText"&&!R;k||(p=true);let v=M.hidden||k;if(g.active){g.noteResult(!v),v||h(C,M);continue}v||(h(C,M),c+=S);}continue}if(chunkNJNFJPGB_cjs.Pc(F)){let C=g.active?null:$o(chunkNJNFJPGB_cjs.Rc(F)??"");if(C&&r){if(!Ie(T,i,e.authorFilter))continue;let M=c.length;y(F,w+1,T),c=c.slice(0,M),c+=Gn(C.kind,r,C.picture);continue}y(F,w+1,T);continue}if(F.kind==="hyperlink"){y(F,w+1,T);continue}if(Mt(F)&&T.length<hr){let C=Ht(F);y(F,w+1,C?$t(T,C):T);continue}y(F,w+1,T);}}};return y(t,n,a),{text:c,resultProps:u,resultStyle:f,sawResultContent:p}}function Mb(e){let{simple:t,pageContext:n,inheritedRunProperties:r,themeFonts:o}=e,a=Dk(e),i=chunkNJNFJPGB_cjs.Rc(t)??"",s=a.resultProps??r,l=$o(i);if(l&&n){let g=a.resultStyle??Le(r,o);return g.hidden?null:{text:Gn(l.kind,n,l.picture),props:s,style:g}}if(l&&e.bodyPageFields&&!n&&a.text.length===0&&!a.sawResultContent){let g=a.resultStyle??Le(r,o);if(g.hidden)return null;let y=l.picture!==void 0&&ur(l.kind,e.bodyPageFields.format)?l.picture:void 0;return {text:qs(l.kind,y,e.bodyPageFields.format),props:s,style:g,pageField:y===void 0?{kind:l.kind}:{kind:l.kind,picture:y}}}let d=jl(i);if(d){let g=Wl(d,s,o);if(g)return g.style.hidden?null:{text:g.text,props:g.props,style:g.style}}if(e.refFields){let g=rn(i);if(g){let h=e.refFields.liveValueOf(t.id,g);if(h!==null){let y=a.resultStyle??Le(r,o);return y.hidden?null:{text:h,props:s,style:y}}if(e.bodyPageFields&&e.refFields.pageRefProjectionOf){let y=e.refFields.pageRefProjectionOf(t.id,g);if(y){let x=a.resultStyle??Le(r,o);if(x.hidden)return null;if(a.text.length>0)return {text:a.text,props:s,style:x,pageRef:y};if(!a.sawResultContent)return {text:Yo,props:s,style:x,pageRef:y}}}}else if(e.refFields.autonumValueOf&&mr(i)){let h=e.refFields.autonumValueOf(t.id);if(h!==null){let y=a.resultStyle??Le(r,o);return y.hidden?null:{text:h,props:s,style:y}}}}let c=a.text.length===0&&!a.sawResultContent;if(c){let g=Qs(i);if(g){let h=el(g,e.documentProperties);if(h!==null){let y=a.resultStyle??Le(r,o);return y.hidden?null:{text:h,props:s,style:y}}}}let u=c?Js(i):null;if(u){let g=a.resultStyle??Le(r,o);return g.hidden?null:{text:u.display,props:s,style:g}}if(a.text.length===0)return null;let f=a.resultStyle??Le(r,o);if(f.hidden)return null;let p=e.currentLink?null:tl(i),m=p?e.projectFieldLink?.(p)??null:null;return {text:a.text,props:s,style:f,...m?{link:m}:{}}}var _k="\u2612",Hk="\u2610";function zk(e){let t=Wr(e);return t==="FORMCHECKBOX"?"checkbox":t==="FORMDROPDOWN"?"dropdown":null}function uf(e,t){e.symbolSpec=jl(t),!e.symbolSpec&&(e.linkSpec=tl(t),!e.linkSpec&&(e.formSpec=zk(t),!e.formSpec&&(e.buttonSpec=Js(t),!e.buttonSpec&&(e.docPropertySpec=Qs(t),!e.docPropertySpec&&(e.refSpec=rn(t),!e.refSpec&&(e.autonumSpec=mr(t)))))));}function Bb(e,t){if(e.formSpec==="checkbox"){if(e.formData?.kind!=="checkbox")return null;let n=e.formData.checked?_k:Hk;if(e.formData.sizeHalfPoints===null)return {text:n,props:e.props,style:e.style};let r=[...e.props,{localName:"sz",attributes:{val:String(e.formData.sizeHalfPoints)}}];return {text:n,props:r,style:Le(r,t)}}if(e.formSpec==="dropdown"){if(e.cachedText.length>0||e.sawResultContent||e.formData?.kind!=="dropdown")return null;let n=e.formData.entries[e.formData.selectedIndex]??"";return n.length===0?null:{text:n,props:e.props,style:e.style}}return null}function Eb(e,t){if(e.symbolSpec){let r=Wl(e.symbolSpec,e.props,t.themeFonts);if(r)return {text:r.text,props:r.props,style:r.style}}let n=Bb(e,t.themeFonts);if(n)return {text:n.text,props:n.props,style:n.style};if(e.kind&&t.pageContext)return {text:Gn(e.kind,t.pageContext,e.picture??void 0),props:e.props,style:e.style};if(e.refSpec&&t.refFields){let r=t.refFields.liveValueOf(e.beginId,e.refSpec);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.refSpec&&t.refFields?.pageRefProjectionOf&&t.bodyPageFields){let r=t.refFields.pageRefProjectionOf(e.beginId,e.refSpec);if(r){if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style,pageRefField:r};if(!e.sawResultContent)return {text:Yo,props:e.props,style:e.style,pageRefField:r}}}if(e.autonumSpec&&t.refFields?.autonumValueOf){let r=t.refFields.autonumValueOf(e.beginId);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.cachedText.length>0)return {text:e.cachedText,props:e.props,style:e.style};if(!e.sawResultContent){if(e.kind&&t.bodyPageFields){let o=e.picture!==null&&ur(e.kind,t.bodyPageFields.format)?e.picture:void 0;return {text:qs(e.kind,o,t.bodyPageFields.format),props:e.props,style:e.style,pageField:{kind:e.kind,...o!==void 0?{picture:o}:{}}}}if(e.docPropertySpec){let r=el(e.docPropertySpec,t.documentProperties);if(r!==null)return {text:r,props:e.props,style:e.style}}if(e.buttonSpec)return {text:e.buttonSpec.display,props:e.props,style:e.style}}return null}function Rr(e,t,n){if(n<=t)return;let r=e[e.length-1];if(r&&r.end>=t){r.end=Math.max(r.end,n);return}e.push({start:t,end:n});}var jk=new Set(["left","center","right"]),Wk=new Set(["margin","indent","leftMargin"]),Gk=new Set(["dot","hyphen","underscore","middleDot"]);function Lb(e){if(e.kind==="textValue"||e.localName!=="ptab"||e.namespaceUri!==chunkNJNFJPGB_cjs.ca)return null;let t="left",n="margin",r;for(let o of e.attributes)o.namespaceUri===chunkNJNFJPGB_cjs.ca&&(o.localName==="alignment"?t=o.value:o.localName==="relativeTo"?n=o.value:o.localName==="leader"&&(r=o.value));return {alignment:jk.has(t)?t:"left",relativeTo:Wk.has(n)?n:"margin",...r!==void 0&&Gk.has(r)?{leader:r}:{}}}function ff(e,t,n,r){return {...e,text:e.text.slice(t,n),start:e.start+t,end:e.start+n,...r?{fontSlot:r}:{}}}function pf(e){if(!e.some(({style:s})=>s.fontFamilyEastAsia!==null&&s.fontFamilyEastAsia!==s.fontFamily))return e;let t=[],n=[];for(let s=0;s<e.length;s+=1){let l=e[s];l.positionalTab||l.breakKind||l.inlineDrawing||l.anchoredAtom||l.equation||l.text.length!==0&&(t.push(s),n.push(l.text));}let r=Sg(n);if(r.length===0)return e;let o=new Map;for(let s of r){let l=o.get(s.segment);l?l.push({from:s.from,to:s.to}):o.set(s.segment,[{from:s.from,to:s.to}]);}let a=[],i=0;for(let s=0;s<e.length;s+=1){let l=e[s];if(t[i]!==s){a.push(l);continue}let d=o.get(i);i+=1;let{style:c}=l;if(!d||c.fontFamilyEastAsia===null||c.fontFamilyEastAsia===c.fontFamily){a.push(l);continue}if(!(!l.projected&&!l.fieldAtom&&!l.noteNav&&l.measureText===void 0&&l.end-l.start===l.text.length)){let p=d.length===1&&d[0].from===0&&d[0].to===l.text.length;a.push(p?{...l,fontSlot:"eastAsia"}:l);continue}let f=0;for(let p of d)p.from>f&&a.push(ff(l,f,p.from,void 0)),a.push(ff(l,p.from,p.to,"eastAsia")),f=p.to;f<l.text.length&&a.push(ff(l,f,l.text.length,void 0));}return a}function Nb(e){return e.kind==="drawing"||chunkNJNFJPGB_cjs.bb(e)}function Ab(e){let{node:t,layout:n,revisions:r,displayMode:o}=e,a=n.projectionForAtom?.(t.id)??(t.kind==="drawing"?n.project(t):null);if(!a||a.kind!=="inline")return a?.kind==="anchored"&&!a.hidden?{recordDeleted:false,emit:true,extras:{anchoredAtom:true}}:{recordDeleted:false,emit:true};let i=on(r),s=e.hiddenRun||!Ie(r,o,e.authorFilter);return a.hidden||s?a.hidden?{recordDeleted:i,emit:true}:{recordDeleted:i,emit:false}:{recordDeleted:i,emit:true,extras:{inlineDrawing:Object.freeze({drawingNodeId:t.id,ownerPartName:n.ownerPartName,projection:a,resource:n.resourceOf(a)})}}}Object.freeze({marks:Object.freeze(new Map)});function io(e,t){return chunkNJNFJPGB_cjs.Pd(e,t)}function mf(e,t){if(!chunkNJNFJPGB_cjs.ee(e))return null;if(chunkNJNFJPGB_cjs.Wd(e)||chunkNJNFJPGB_cjs.Xd(e))return {text:"",projected:true,kind:null,noteId:null};let n=chunkNJNFJPGB_cjs.Ud(e),r=chunkNJNFJPGB_cjs.ae(e)??chunkNJNFJPGB_cjs.be(e);if(!r)return null;let o=chunkNJNFJPGB_cjs.Zd(e),a=o!==null?io(r,o):n?void 0:t?.activeNoteKey,i=o!==null?o:a?Vk(a,r)??null:null,s=a,l=s!==void 0?n?"to-note":"to-body":void 0,d={projected:true,kind:r,noteId:i,...l?{nav:l}:{},...s?{scopeId:s}:{}};if(n&&o!==null&&chunkNJNFJPGB_cjs.ce(e))return {text:"",...d};if(!t||!a)return {text:"",...d};let c=t.marks.get(a);return c==null?{text:"",...d}:t.reservedMarkText&&t.reservedMarkText.length>0?{text:c,measureText:t.reservedMarkText,...d}:{text:c,...d}}function Vk(e,t){let n=`${t}:`;if(!e.startsWith(n))return null;let r=e.slice(n.length);if(!/^-?\d+$/.test(r))return null;let o=Number(r);return Number.isSafeInteger(o)?o:null}function _b(e){return chunkNJNFJPGB_cjs.Ud(e)||chunkNJNFJPGB_cjs.Vd(e)||chunkNJNFJPGB_cjs.Wd(e)||chunkNJNFJPGB_cjs.Xd(e)}function $k(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return (t>>>0).toString(16).padStart(8,"0")}var Db=new WeakMap;function Hb(e){if(!e)return "";let t=Db.get(e);if(t!==void 0)return t;let n=JSON.stringify([[...e.marks],e.reservedMarkText??null,e.activeNoteKey??null]),r=`${e.marks.size}:${$k(n)}`;return Db.set(e,r),r}function sl(e,t=[],n,r,o,a,i=ve,s,l,d,c,u,f=false,p,m){if(e.kind==="textValue")return [];if(e.kind!=="paragraph")return [];let g=[],h=0,y,x=chunkNJNFJPGB_cjs.Yc(e,{maxNesting:Vs,maxInstructionChars:chunkNJNFJPGB_cjs.Xc}),w=x.filter(L=>L.addressing==="atomic"),T=new Set(w.filter(L=>L.kind==="complex").map(L=>L.node.id)),F=new Set(x.filter(L=>L.kind==="complex"&&L.addressing==="editable-result").map(L=>L.node.id)),C=new Set;for(let L of w)for(let N of L.removeNodeIds)C.add(N);let M=Gr(),P=jn(),S=null,R=null,k=Gl(),v=$n,b=(L,N,_,W,q,X,Y)=>{if(L.length===0&&!W&&!Y?.inlineDrawing)return;let U=Y?.linkOverride??y,z=Y?.revisionsOverride??v,ae=m?ol(z,i,m):z;if(ae===null)return;let Te=m?Sh(N,m):N,Pe=U?{link:U}:{},de=ae.length===0?{}:{revisions:ae};if(W){g.push({text:L,props:Te,style:_,start:q,end:X,projected:true,...Y?.measureText!==void 0?{measureText:Y.measureText}:{},...Y?.noteNav?{noteNav:Y.noteNav}:{},...Y?.inlineDrawing?{inlineDrawing:Y.inlineDrawing}:{},...Y?.anchoredAtom?{anchoredAtom:true}:{},...Y?.equation?{equation:Y.equation}:{},...Y?.fieldAtom?{fieldAtom:Y.fieldAtom}:{},...Pe,...de});return}L.length!==0&&g.push({text:L,props:Te,style:_,start:q,end:X,...Y?.positionalTab?{positionalTab:Y.positionalTab}:{},...Y?.breakKind?{breakKind:Y.breakKind}:{},...Pe,...de});},H=()=>{if(!S||!S.atomic){S=null,R=null;return}let L=S.atomStart,N=L+1;if(S.style.hidden){S=null,R=null;return}if(!Ie(S.resultRevisions,i,m)){s&&on(S.resultRevisions)&&Rr(s,L,N),S=null,R=null;return}let{resultLink:_,linkSpec:W,resultRevisions:q,formField:X}=S,Y,U=()=>{if(Y)return Y;let ae=!_&&W?c?.(W)??null:null,Te=_??ae;return Y={...q.length>0?{revisionsOverride:q}:{},...Te?{linkOverride:Te}:{},fieldAtom:{formField:X}},Y},z=Eb(S,{pageContext:n,themeFonts:d,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});if(z){let ae=U(),Te=z.pageField||z.pageRefField?{...ae,fieldAtom:{formField:S.formField,...z.pageField?{pageField:z.pageField}:{},...z.pageRefField?{pageRef:z.pageRefField}:{}}}:ae;b(z.text,z.props,z.style,true,L,N,Te);}S=null,R=null;},D=()=>{if(!S)return;let L=!S.resultLink&&S.linkSpec?c?.(S.linkSpec)??null:null,N=_=>L&&!_.link?{..._,link:L}:_;if(S.atomic){h=S.atomStart;for(let _ of S.buffered)g.push({...N(_),start:h,end:h+(_.end-_.start)}),h+=_.end-_.start;S.cachedText.length>0&&S.buffered.length===0&&(b(S.cachedText,S.props,S.style,false,h,h+S.cachedText.length,L?{linkOverride:L}:void 0),h+=S.cachedText.length);}else {for(let _ of S.buffered)g.push(N(_));h=S.bufferOffset;}S=null,R=null;},V=(L,N,_)=>{if(Nb(L)){let U=h;h+=1;let z=h;if(!l)return;let ae=Ab({node:L,layout:l,hiddenRun:_.hidden,revisions:v,displayMode:i,authorFilter:m});ae.recordDeleted&&s&&Rr(s,U,z),ae.emit&&b("\uFFFC",N,_,true,U,z,ae.extras);return}if(_b(L)){let U=mf(L,a),z=h,ae=z+1;if(h=ae,_.hidden||!U||U.text.length===0&&!U.measureText)return;let Te=U.scopeId&&U.nav?{scopeId:U.scopeId,direction:U.nav}:void 0;b(U.text.length>0?U.text:U.measureText??"",N,_,true,z,ae,{...U.measureText!==void 0?{measureText:U.measureText}:{},...Te?{noteNav:Te}:{}});return}let W=Lb(L);if(W){_.hidden||b(" ",N,_,false,h,h,{positionalTab:W});return}if(ya(L)){let U=ba(L);if(!U||_.hidden||!Ie(v,i,m))return;let z=cf(N,U,d);b(U.text,z.props,z.style,true,h,h);return}let q=Mi(L);if(q.length===0)return;let X=on(v);_.hidden||!Ie(v,i,m)||L.kind==="deletedText"&&!X||b(q,N,_,false,h,h+q.length,{...L.kind==="hardBreak"?{breakKind:chunkNJNFJPGB_cjs.Dc(L)}:{}}),X&&s&&Rr(s,h,h+q.length),h+=q.length;},E=(L,N)=>{if(L.kind!=="run")return;let _=Hl(L,t,r),W=Le(_,d),q=()=>{S&&(S.capturedResultStyle||(S.props=_,S.style=W,S.capturedResultStyle=true),S.capturedResultRevisions||(S.resultRevisions=v,S.capturedResultRevisions=true,!S.resultLink&&y&&(S.resultLink=y)));};for(let X of L.children){if(!et(P)){if(D(),gi(M),k.reset(),X.kind==="runProperties"||ft(X,"begin")||ft(X,"separate")||ft(X,"end")||zn(X)||C.has(X.id)&&R===null)continue;V(X,_,W);continue}if(X.kind!=="runProperties"){if(ft(X,"begin")){let Y=T.has(X.id);Vr(M),M.nesting===1&&(D(),k.reset(),R=Y?X.id:null,S={kind:null,picture:null,symbolSpec:null,linkSpec:null,formSpec:null,buttonSpec:null,docPropertySpec:null,refSpec:null,autonumSpec:null,formData:chunkNJNFJPGB_cjs.Wc(X),beginId:X.id,atomic:Y,editableResult:F.has(X.id),atomStart:h,props:_,style:W,capturedResultStyle:false,cachedText:"",sawResultContent:false,buffered:[],bufferOffset:h,resultRevisions:v,capturedResultRevisions:v.length>0,formField:chunkNJNFJPGB_cjs.Vc(X),...y?{resultLink:y}:{}},Y&&(h+=1));continue}if(zn(X)){$r(M,X,P,N+1);continue}if(ft(X,"separate")){let Y=M.nesting===1&&M.phase==="instruction",U=M.nesting,z=Xr(M);if(Y&&S){S.kind=z?.kind??null,S.picture=z?.picture??null;let ae=Xo(M);!S.kind&&!ae.overflow&&!M.nestingOverflow&&uf(S,ae.instruction),S.props=_,S.style=W;}else S?.atomic&&M.phase==="result"&&!M.nestingOverflow&&k.onSeparate(n?z:null,U);continue}if(ft(X,"end")){let Y=M.nesting===1;if(Y&&S?.atomic&&M.phase==="instruction"){let z=Xo(M);!z.overflow&&!M.nestingOverflow&&uf(S,z.instruction);}let U=k.onEnd(M.nesting,n);U!==null&&S?.atomic&&(S.cachedText+=U),Kr(M),Y&&(S?.atomic?H():D());continue}if(!(Qg(M)&&S?.atomic)){if(S&&eh(M)){if(ya(X)){if(S.atomic){if(Ie(v,i,m)&&(S.sawResultContent=true),k.active){k.noteResult(!W.hidden&&Ie(v,i,m));continue}if(!W.hidden&&Ie(v,i,m)){let Pe=ba(X);Pe?.unicode&&(q(),S.cachedText+=Pe.text);}continue}let ae=ba(X);if(!ae||W.hidden||!Ie(v,i,m))continue;let Te=cf(_,ae,d);S.buffered.push({text:ae.text,props:Te.props,style:Te.style,start:h,end:h,projected:true,...v.length>0?{revisions:v}:{},...y?{link:y}:{},fieldAtom:{formField:S.formField}});continue}let Y=Mi(X);if(Y.length===0)continue;let U=on(v),z=!Ie(v,i,m)||X.kind==="deletedText"&&!U;if(S.atomic&&!z&&(S.sawResultContent=true),U&&s&&(S.atomic?Rr(s,S.atomStart,S.atomStart+1):Rr(s,h,h+Y.length)),z){S.atomic&&k.active&&k.noteResult(false),S.atomic||(h+=Y.length,S.bufferOffset=h);continue}if(S.atomic){if(k.active){if(k.noteResult(!W.hidden),W.hidden)continue;q();continue}if(W.hidden)continue;q(),S.cachedText+=Y;continue}if(W.hidden){h+=Y.length,S.bufferOffset=h;continue}S.capturedResultStyle||(S.props=_,S.style=W,S.capturedResultStyle=true),S.buffered.push({text:Y,props:_,style:W,start:h,end:h+Y.length,...v.length>0?{revisions:v}:{},...y?{link:y}:{},fieldAtom:{formField:S.formField}}),h+=Y.length,S.bufferOffset=h;continue}C.has(X.id)&&R===null&&T.size>0,V(X,_,W);}}}};if(!et(P))return pf(g);let O=chunkNJNFJPGB_cjs.Va(),A=(L,N)=>{let _=h;if(h+=1,L.kind==="textValue"||(on(v)&&s&&Rr(s,_,_+1),!Ie(v,i,m)))return;let W=Mb({simple:L,depth:N,pageContext:n,budget:P,revisions:v,displayMode:i,authorFilter:m,inheritedRunProperties:t,cascadeRuns:r,themeFonts:d,currentLink:y,projectFieldLink:c,documentProperties:u,bodyPageFields:f,...p?{refFields:p}:{}});W&&b(W.text,W.props,W.style,true,_,_+1,{fieldAtom:{formField:false,...W.pageField?{pageField:W.pageField}:{},...W.pageRef?{pageRef:W.pageRef}:{}},...W.link?{linkOverride:W.link}:{}});},j=(L,N,_,W)=>{let q=chunkNJNFJPGB_cjs.ic(L);if(q){let z=h++;on(v)&&s&&Rr(s,z,h);let ae=Sl(Le(t,d));return ae.hidden||!Ie(v,i,m)?void 0:b("\uFFFC",t,ae,true,z,h,{equation:q})}if(chunkNJNFJPGB_cjs.Pc(L)){A(L,N);return}if(L.kind==="run"){E(L,N);return}if(chunkNJNFJPGB_cjs.nc(L)){if(W>=chunkNJNFJPGB_cjs.mc||N>It)return;for(let z of chunkNJNFJPGB_cjs.qc(L))j(z,N+1,_,W+1);return}if(N>It||N>=hr)return;let X=L.kind!=="textValue"&&"localName"in L?chunkNJNFJPGB_cjs.Ua(_,L):_;if(L.kind==="hyperlink"){let z=y;y=o?.(L)??void 0;for(let ae of L.children)j(ae,N+1,X,W);y=z;return}if(!Mt(L))return;let Y=Ht(L);if(!Y||!et(P))return;let U=v;v=$t(U,Y);for(let z of L.children)j(z,N+1,X,W);v=U;};for(let L of e.children)j(L,1,O,0);return D(),pf(g)}var zb=new WeakMap;function Xk(e){let t=zb.get(e);if(t!==void 0)return t;let n=o=>o.some(a=>a.localName==="pBdr"),r=n(e.docDefaultsParagraph);if(!r){for(let o of e.styles.values())if(n(o.paragraphProperties)){r=true;break}}return zb.set(e,r),r}function jb(e,t){return !t||!Xk(t)?Hn(e):fi(ma(t,e).paragraphPropertyNodes)}var Kk=Object.freeze({keepNext:false,keepLines:false,widowControl:true});function gf(e){let t=e?.val;return t!=="0"&&t!=="false"&&t!=="off"}function Wb(e){let t=false,n=false,r=true;for(let o of e)switch(o.localName){case "keepNext":t=gf(o.attributes);break;case "keepLines":n=gf(o.attributes);break;case "widowControl":r=gf(o.attributes);break;}return !t&&!n&&r?Kk:{keepNext:t,keepLines:n,widowControl:r}}function Gb(e,t,n,r,o){if(e<=t)return e;if(r.keepLines&&!o)return t;if(!r.widowControl||n<2)return e;let a=e;return n-a<2&&(a-=1),a-t===1&&(a-=1),a<t&&(a=t),a===t&&o?e:a}function Vb(e,t,n,r){let o=0,a=n;for(let i=t;i-t<8;i+=1){let s=e[i];if(!s||s.kind!=="paragraph"||!s.spacing||!s.keeps)return null;o+=Math.max(s.spacing.before,a)-a;let l=r(i);if(!s.keeps.keepNext||i+1>=e.length)return o+=l[0]??0,s.keeps.widowControl&&l.length>1&&(o+=l[1]),o;for(let d of l)o+=d;o+=s.spacing.after,a=s.spacing.after;}return null}function Yk(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==void 0&&(n===e&&(n=[...e]),n[r]=`${n[r]}~mk~${o}`);}return n}function Uk(e,t,n){let r=e;for(let o=0;o<e.length;o+=1){if(!t(o))continue;let a=n(o);if(a===null)continue;let i=o>0&&n(o-1)===a,s=o+1<e.length&&n(o+1)===a;r===e&&(r=[...e]),r[o]=`${r[o]}~cs~${i?1:0}${s?1:0}`;}return r}function qk(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);if(o==="")continue;let a=r>0&&t(r-1)===o,i=r+1<e.length&&t(r+1)===o;n===e&&(n=[...e]),n[r]=`${n[r]}~bg~${a?1:0}${i?1:0}`;}return n}function Zk(e,t){let n=e;for(let r=0;r<e.length;r+=1){let o=t(r);o!==""&&(n===e&&(n=[...e]),n[r]=`${n[r]}~toc~${o}`);}return n}function Jk(e,t){let n=e,r=0;for(let o=e.length-2;o>=0;o-=1)t(o)&&r<8?(n===e&&(n=[...e]),n[o]=`${e[o]}~kn~${n[o+1]}`,r+=1):r=0;return n}function $b(e,t){let n=Uk(e,t.contextualSpacingAt,t.styleIdAt);return n=qk(n,t.borderGroupKeyAt),t.tocVerdicts.length>0&&(n=Zk(n,r=>t.tocVerdicts[r])),n=Yk(n,t.markerTextAt),n=Jk(n,t.keepsNextAt),n}var Xb=new WeakMap;function Ei(e){let t=Jc(e.borders);return t===""?"":`${t}@${e.indent.left},${e.indent.right}`}function hf(e,t,n){Xb.set(e,{styleCascade:t.styleCascade,tableCellStyle:t.tableCellStyle,listItem:t.listItems?.get(e.id),key:n});}function Qk(e,t){let n=t.listItems?.get(e.id),r=Xb.get(e);if(r&&r.styleCascade===t.styleCascade&&r.tableCellStyle===t.tableCellStyle&&r.listItem===n)return r.key;let o=Ei(eo(e,1,t.styleCascade,n,t.tableCellStyle,true));return hf(e,t,o),o}function Kb(e,t){return e&&e.kind==="paragraph"?Qk(e,t):""}function Vl(e){let t=[],n=0;for(let r of e.members){let o=chunkNJNFJPGB_cjs.Ie(r).length;t.push({paragraphId:r.id,base:n,length:o}),n+=o;}return {members:t,total:n}}function yf(e,t){let n;for(let r of e.members){if(r.base>t)break;(n===void 0||r.length>0||r.base>n.base)&&(n=r);}return n??e.members[e.members.length-1]}function Yb(e,t){let n=yf(t,e.start);if(!n)return e;let r=e.end-n.base;return {paragraphId:n.paragraphId,start:e.start-n.base,end:Math.min(r,n.length)}}function eO(e,t){return {...e,range:Yb(e.range,t)}}function $l(e,t){return e.map(n=>{let r=n.spans.map(u=>eO(u,t)),o=r[0],a=n.drawings?.map(u=>{let f=yf(t,u.start);return f?{...u,paragraphId:f.paragraphId,start:u.start-f.base}:u}),i=o?r.filter(u=>u.range.paragraphId===o.range.paragraphId):[],s=o?(a??[]).filter(u=>u.paragraphId===o.range.paragraphId):[],l=o?{paragraphId:o.range.paragraphId,start:Math.min(o.range.start,...s.map(u=>u.start)),end:Math.max(i[i.length-1].range.end,...s.map(u=>u.start+1))}:Yb(n.range,t),d=a,c=n.deletedRanges?.map(u=>({deleted:u,member:yf(t,u.start)})).filter(({member:u})=>u?.paragraphId===l.paragraphId).map(({deleted:u,member:f})=>({start:u.start-(f?.base??0),end:u.end-(f?.base??0)}));return {...n,range:l,spans:r,...d?{drawings:d}:{},...c?{deletedRanges:c}:{}}})}function Ub(e){return e.publishAnchoredDrawings??e.collectAnchoredDrawings}function bf(e,t,n,r,o){let a=Ub(o);if(!(e.length===0||!a||!o.inlineDrawingLayout||!o.anchorFrameBase||!o.pageContentClip))for(let i of e){let s=null,l=null,d=i.lines;for(let u of t){for(let f of u.blocks)if(f.kind==="paragraph"&&f.paragraphId===i.paragraphId){s=f.box,d=f.lines,l=u.box;break}if(s)break}if(!s)continue;let c=l??Object.freeze({x:i.cellOriginX,y:n,width:i.cellContentWidth,height:r});a(br({paragraph:i.paragraph,paragraphId:i.paragraphId,paragraphBox:s,lines:d,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(s)??s,cellBox:c,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{}}));}}function qb(e,t){let n=Ub(e),r=e.deferAnchoredDrawings;return !n&&!r?{rowDeps:e,flushDeferred:()=>{}}:{rowDeps:{...e,publishAnchoredDrawings:n,collectAnchoredDrawings:void 0,deferAnchoredDrawings:i=>{t.push(i);}},flushDeferred:(i,s,l)=>{if(t.length!==0){if(n&&!e.anchorDeferOnly)bf(t,i,s,l,e);else if(r)for(let d of t)r(d);t.length=0;}}}}var tO={state:"none"},Zb=(e,t)=>t.state==="omitted"?e:t;function Xl(e,t,n={}){return e.state==="omitted"?t:e.state==="none"?tO:e}function xf(e,t){let n=Zb;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right),insideH:n(e.insideH,t.insideH),insideV:n(e.insideV,t.insideV)}}function Sf(e,t){let n=Zb;return {top:n(e.top,t.top),left:n(e.left,t.left),bottom:n(e.bottom,t.bottom),right:n(e.right,t.right)}}function Kl(e=1048576){let t=e|0;return {intervalsRemaining:t>0?t:0}}function Jb(e,t,n,r){let o=Math.max(0,Math.min(t|0,1024)),a=new Array(e.length);for(let i=0;i<e.length;i+=1){if(r&&r.intervalsRemaining<=0){a[i]=[];continue}a[i]=nO(e[i],o,n,r);}return a}function nO(e,t,n,r){let o=[];for(let c=0;c<e.length;c+=1){let u=e[c],f=Math.max(0,u.gridColumn|0),p=Math.min(t,f+Math.max(0,u.gridSpan|0));f>=p||(o.push({x:f,kind:1,cellIndex:c,cell:u}),o.push({x:p,kind:0,cellIndex:c,cell:u}));}if(o.length===0)return [];o.sort((c,u)=>c.x!==u.x?c.x-u.x:c.kind!==u.kind?c.kind-u.kind:c.cellIndex-u.cellIndex);let a=new Map,i,s=o[0].x,l=[],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>s&&i&&(!r||r.intervalsRemaining>0)){let u=l[l.length-1];u&&u.end===s&&u.cellIndex===i.cellIndex&&u.cell===i.cell?l[l.length-1]={start:u.start,end:c.x,cell:u.cell,cellIndex:u.cellIndex}:(l.push({start:s,end:c.x,cell:i.cell,cellIndex:i.cellIndex}),n&&(n.ownershipSlotsWritten+=1),r&&(r.intervalsRemaining-=1));}c.kind===1?a.set(c.cellIndex,{cell:c.cell,cellIndex:c.cellIndex}):a.delete(c.cellIndex),d(),s=c.x;}return l}function rO(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>1;e[o].start<=t?n=o+1:r=o;}return n}function Rf(e,t,n,r){r&&(r.columnLookups+=1);let o=e[t];if(!o||n<0)return;let a=rO(o,n)-1;if(a<0)return;let i=o[a];if(!(n>=i.end))return {cell:i.cell,cellIndex:i.cellIndex}}var nx=256,ot={state:"omitted"},Ql={state:"none"},rx={top:ot,left:ot,bottom:ot,right:ot,insideH:ot,insideV:ot},ox={top:ot,left:ot,bottom:ot,right:ot},Qb={single:1,thick:2,double:3,dotted:4,dashed:5,triple:10},aO=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 xa(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Pf(e,t){return e.attributes.find(n=>n.localName===t)?.value}function iO(e){return e===void 0||!/^\d{1,9}$/.test(e)?null:Number(e)}function sO(e){if(e===null)return .5;let t=e/8;return !Number.isFinite(t)||t<=0?.5:t>ui?ui:t}function ed(e){if(!e)return ot;let t=Pf(e,"val");if(!t)return ot;if(t==="nil"||t==="none")return Ql;let n=aO.get(t)??"single",r=Pf(e,"color"),o=r===void 0||r==="auto"?null:Fs(r)??null;return {state:"edge",style:n,color:o,widthPt:sO(iO(Pf(e,"sz")))}}function ax(e,t){if(!e)return ox;let n={top:ot,left:ot,bottom:ot,right:ot};for(let r of t){let o=r==="left"?"start":r==="right"?"end":void 0,a=xa(e,r)??(o?xa(e,o):void 0);n[r]=ed(a);}return n}function td(e){let t=e&&xa(e,"tblBorders");return t?{...ax(t,["top","left","bottom","right"]),insideH:ed(xa(t,"insideH")),insideV:ed(xa(t,"insideV"))}:rx}function nd(e){return ax(e&&xa(e,"tcBorders"),["top","left","bottom","right"])}function wf(e){return e.state!=="edge"?0:Math.max(1,Math.round(e.widthPt*8))}function ex(e){if(!e)return 0;let t=Number.parseInt(e.slice(0,2),16),n=Number.parseInt(e.slice(2,4),16),r=Number.parseInt(e.slice(4,6),16);return t+n+r}function ix(e,t,n=true){if(e.state==="omitted")return t.state==="omitted"?ot:t;if(t.state==="omitted")return e;if(e.state==="none")return t.state==="none"?Ql:t;if(t.state==="none")return e;let r=wf(e),o=wf(t);if(r>o)return e;if(o>r)return t;let a=Qb[e.style],i=Qb[t.style];if(a!==i)return a>i?e:t;let s=ex(e.color),l=ex(t.color);return s<l?e:l<s?t:n?e:t}function Yl(e){if(e.state==="edge")return {style:e.style,color:e.color,widthPt:e.widthPt}}function lO(e,t,n){return n?t==="top"||t==="bottom"?e.insideH:e.insideV:e[t]}function dO(e,t){return e===void 0&&t===void 0?true:!e||!t?false:e.style===t.style&&e.color===t.color&&e.widthPt===t.widthPt}function Ul(e){if(e.length===0)return [];let t=[],n={...e[0]};for(let r=1;r<e.length;r+=1){let o=e[r];n.gridEnd===o.gridStart&&dO(n.edge,o.edge)?n={...n,gridEnd:o.gridEnd}:(t.push(n),n={...o});}return t.push(n),t}function ql(e,t,n){let r=e.filter(a=>a.edge!==void 0);if(r.length!==1)return;let o=r[0];if(!(o.gridStart!==t||o.gridEnd!==n))return o.edge}function tx(e,t,n){let r=0,o=Math.min(n,e.length);for(let a=Math.max(0,t);a<o;a+=1)r+=e[a];return r}function cO(e){if(!(!e||e.style!=="double"))return Ho(e.widthPt)}function Zl(e){return e==="dashed"?"dashed":e==="dotted"?"dotted":"solid"}function uO(e,t){return t?e==="outer"?t.insetPt:t.insetPt+t.strokePt+t.gapPt:0}function fO(e,t,n){return n?e==="outer"?t-n.insetPt:t-n.insetPt-n.strokePt-n.gapPt:t}function pO(e,t){return t?e==="outer"?t.insetPt+t.strokePt:t.insetPt+t.extentPt:0}function mO(e,t,n){return n?e==="outer"?t-n.insetPt-n.strokePt:t-n.insetPt-n.extentPt:t}function Pr(e,t){e.length>=nx||!(t.width>0)||!(t.height>0)||e.push(t);}function gO(e,t,n,r,o,a,i,s,l,d,c){let u=Ho(n.widthPt),{strokePt:f,gapPt:p,extentPt:m,insetPt:g}=u,h=Math.abs(r)<1e-6,y=Math.abs(o-a)<1e-6,x=Math.abs(r)<1e-6,w=Math.abs(o-i)<1e-6;if(t==="top"||t==="bottom"){let C=t==="top"?g:i-g-f,M=t==="top"?g+f+p:i-g-m;for(let P of ["outer","inner"]){let S=r,R=o;h&&(S=uO(P,s)),y&&(R=fO(P,a,l)),Pr(e,{side:t,role:P,color:n.color,cssStyle:"solid",x:S,y:P==="outer"?C:M,width:R-S,height:f});}return}let T=t==="left"?g:a-g-f,F=t==="left"?g+f+p:a-g-m;for(let C of ["outer","inner"]){let M=r,P=o;x&&(M=pO(C,d)),w&&(P=mO(C,i,c)),Pr(e,{side:t,role:C,color:n.color,cssStyle:"solid",x:C==="outer"?T:F,y:M,width:f,height:P-M});}}function hO(e,t,n,r,o,a,i){let s=n.widthPt,l=Math.max(1,s),d=s*3+l*2;if(t==="top"||t==="bottom"){let u=t==="top"?0:i-d;for(let f=0;f<3;f+=1)Pr(e,{side:t,role:f===0?"outer":f===1?"middle":"inner",color:n.color,cssStyle:"solid",x:r,y:u+f*(s+l),width:o-r,height:s});return}let c=t==="left"?0:a-d;for(let u=0;u<3;u+=1)Pr(e,{side:t,role:u===0?"outer":u===1?"middle":"inner",color:n.color,cssStyle:"solid",x:c+u*(s+l),y:r,width:s,height:o-r});}function yO(e,t,n,r,o,a,i){let s=n.widthPt;t==="top"?Pr(e,{side:t,role:"edge",color:n.color,cssStyle:Zl(n.style),x:r,y:0,width:o-r,height:s}):t==="bottom"?Pr(e,{side:t,role:"edge",color:n.color,cssStyle:Zl(n.style),x:r,y:i-s,width:o-r,height:s}):t==="left"?Pr(e,{side:t,role:"edge",color:n.color,cssStyle:Zl(n.style),x:0,y:r,width:s,height:o-r}):Pr(e,{side:t,role:"edge",color:n.color,cssStyle:Zl(n.style),x:a-s,y:r,width:s,height:o-r});}function Jl(e,t){if(e.length===0)return;let n=e[0];return cO(n.edge)}function bO(e,t,n,r,o,a,i,s,l,d){let c=(v,b,H)=>{let D=[];for(let V of b){if(!V.edge)continue;let E,O;H?(E=tx(i,s,V.gridStart),O=tx(i,s,V.gridEnd)):(E=l[V.gridStart-d]??0,O=l[V.gridEnd-d]??a),D.push({side:v,gridStart:V.gridStart,gridEnd:V.gridEnd,startPt:E,endPt:O,edge:V.edge});}return D},u=c("top",e,true),f=c("left",t,false),p=c("bottom",n,true),m=c("right",r,false),g=[...u,...m,...p,...f],h=Jl(t),y=Jl(r),x=Jl(e),w=Jl(n),T=(v,b)=>v.length===1&&Math.abs(v[0].startPt)<1e-6&&Math.abs(v[0].endPt-b)<1e-6,F=T(u,o),C=T(f,a),M=T(p,o),P=T(m,a),S=[],R=(v,b,H)=>{for(let D of b){let{edge:V,startPt:E,endPt:O}=D;V.style==="double"?gO(S,v,V,E,O,o,a,v==="top"||v==="bottom"?h:void 0,v==="top"||v==="bottom"?y:void 0,v==="left"||v==="right"?x:void 0,v==="left"||v==="right"?w:void 0):V.style==="triple"?hO(S,v,V,E,O,o,a):H||yO(S,v,V,E,O,o,a);}};R("top",u,F),R("left",f,C),R("bottom",p,M),R("right",m,P);let k={};return F&&u[0]&&(k.top=u[0].edge),C&&f[0]&&(k.left=f[0].edge),M&&p[0]&&(k.bottom=p[0].edge),P&&m[0]&&(k.right=m[0].edge),g.length>0&&(k.edgeSegments=g),S.length>0&&(k.strokes=S),k}function vf(e,t,n,r,o,a){let i=e.length,s=e.map(u=>u.map(()=>({})));o&&(o.ownershipSlotsWritten=0,o.columnLookups=0);let l=Jb(e,n,o,a),d=(u,f,p)=>Xl(u.borders[f],lO(t,f,p),{}),c=(u,f,p,m)=>u.state==="none"&&f.state!=="edge"||f.state==="none"&&u.state!=="edge"?Ql:ix(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){s[u][p]={};continue}let g=m.mergeRowSpan??1,h=u+g-1,y=u===0,x=h===i-1,w=m.gridColumn===0,T=m.gridColumn+m.gridSpan-1,F=T>=n-1,C=[];if(y)for(let E=m.gridColumn;E<=T;E+=1)C.push({gridStart:E,gridEnd:E+1,edge:Yl(d(m,"top",false))});let M=[];if(w)for(let E=u;E<=h;E+=1)M.push({gridStart:E,gridEnd:E+1,edge:Yl(d(m,"left",false))});let P=[];for(let E=m.gridColumn;E<=T;E+=1){let O;if(x)O=d(m,"bottom",false);else {let A=Rf(l,h+1,E,o);A?.cell.vMergeContinue?O=ot:O=c(m.borders.bottom,A?A.cell.borders.top:ot,d(m,"bottom",true),A?d(A.cell,"top",true):t.insideH);}P.push({gridStart:E,gridEnd:E+1,edge:Yl(O)});}let S=[];for(let E=u;E<=h;E+=1){let O;if(F)O=d(m,"right",false);else {let A=Rf(l,E,T+1,o);O=c(m.borders.right,A?A.cell.borders.left:ot,d(m,"right",true),A?d(A.cell,"left",true):t.insideV);}S.push({gridStart:E,gridEnd:E+1,edge:Yl(O)});}let R=Ul(C),k=Ul(M),v=Ul(P),b=Ul(S);if(!r){let E={},O=ql(R,m.gridColumn,T+1),A=ql(k,u,h+1),j=ql(v,m.gridColumn,T+1),L=ql(b,u,h+1);O&&(E.top=O),A&&(E.left=A),j&&(E.bottom=j),L&&(E.right=L);let N=[],_=(W,q)=>{for(let X of q)X.edge&&N.push({side:W,gridStart:X.gridStart,gridEnd:X.gridEnd,startPt:X.gridStart,endPt:X.gridEnd,edge:X.edge});};_("top",R),_("left",k),_("bottom",v),_("right",b),N.length>0&&(E.edgeSegments=N),s[u][p]=E;continue}let H=r.cellBoxes[u][p],D=[0],V=0;for(let E=u;E<=h;E+=1){let O=r.rowBands[E];V+=O.height,D.push(V);}D.length>1&&(D[D.length-1]=H.height),s[u][p]=bO(R,k,v,b,H.width,H.height,r.columnWidthsPt,m.gridColumn,D,u);}}return s}function wr(e){return e?"state"in e?e.state==="edge"?e.widthPt:0:e.widthPt:0}var If=rx,Tf=ox;var lx=31680/20,cn=Object.freeze({type:"auto",value:0}),xO=100,SO=Object.freeze({mm:72/25.4,cm:72/2.54,in:72,pt:1,pc:12,pi:12});function RO(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function Of(e,t){return e.attributes.find(n=>n.localName===t)?.value}function dx(e){if(/^\d{1,9}$/.test(e)){let r=Number(e)/20;return Number.isFinite(r)?{kind:"length",pt:r}:null}let t=/^(\d{1,7}(?:\.\d{1,4})?)%$/.exec(e);if(t){let r=Number(t[1]);return Number.isFinite(r)?{kind:"percent",percent:r}:null}let n=/^(\d{1,9}(?:\.\d{1,4})?)(mm|cm|in|pt|pc|pi)$/.exec(e);if(n){let r=Number(n[1])*SO[n[2]];return Number.isFinite(r)?{kind:"length",pt:r}:null}return null}function so(e){if(!e)return cn;let t=Of(e,"type");if(t!==void 0&&t!=="pct"&&t!=="dxa")return t==="nil"?{type:"nil",value:0}:cn;let n=Of(e,"w");if(n===void 0)return cn;let r=dx(n);if(!r)return cn;let o=/^\d{1,9}$/.test(n);if(r.kind==="percent"||o&&t==="pct"){let a=r.kind==="percent"?r.percent:Number(n)/50;return !Number.isFinite(a)||a<=0?cn:{type:"pct",value:Math.min(a,xO)}}return !Number.isFinite(r.pt)||r.pt<=0?cn:{type:"dxa",value:Math.min(r.pt,lx)}}function Li(e,t){if(!e)return;let n=so(e);if(n.type==="dxa")return Math.min(n.value,t)}function cx(e){let t=RO(e,"tblGrid");if(!t)return [];let n=[];for(let r of t.children)if(r.kind!=="textValue"&&r.localName==="gridCol"&&(n.push(r),n.length>=1024))break;return n}function PO(e){let t=[];for(let n of e){let r=Of(n,"w"),o=r===void 0?null:dx(r);if(!o||o.kind!=="length"||!Number.isFinite(o.pt)||o.pt<=0){t.push(void 0);continue}t.push(o.pt>lx?void 0:o.pt);}return t}var kf=1,sx=.001;function wO(e,t,n,r){let o=[];for(let i=0;i<n;i+=1)o.push(e[i]);let a=t.filter(i=>i.start<n&&(i.preferred.type==="dxa"||i.preferred.type==="pct"&&r>0)).sort((i,s)=>i.span-s.span);for(let i of a){let s=Math.min(i.start+i.span,n);if(s<=i.start)continue;let l=i.preferred.type==="pct"?r*i.preferred.value/100:i.preferred.value;if(!Number.isFinite(l)||l<=0)continue;if(s-i.start===1){let f=o[i.start];o[i.start]=f===void 0?l:Math.max(f,l);continue}let d=[],c=l;for(let f=i.start;f<s;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 ux(e){let{columnCount:t,tableWidth:n}=e,r=Number.isFinite(e.contentWidthPt)&&e.contentWidthPt>0,o=r?e.contentWidthPt:kf,a=n.type==="dxa"?n.value:n.type==="pct"?o*n.value/100:0,i=PO(e.gridCols),s=wO(i,e.claims,t,a),l=0,d=0;for(let y of s)y===void 0?d+=1:l+=y;let c=[];if(d>0){let y=l>0?l/Math.max(t-d,1):o/t,x=Math.max(o-l,0)/d,w=Math.max(Math.min(x,y),kf);for(let T of s)c.push(T??w);}else for(let y of s)c.push(y);let u=c.reduce((y,x)=>y+x,0);if(!Number.isFinite(u)||u<=0)return new Array(t).fill(o/t);let f=t*kf,p=e.layoutFixed||!r?Number.POSITIVE_INFINITY:o,m=Math.max(a>0?Math.min(a,p):Math.min(u,p),f),g=n.type==="pct"&&a>0;if(u<=m+sx&&!g||Math.abs(u-m)<=sx)return c;let h=m/u;return c.map(y=>y*h)}function Sa(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function vO(e,t){return e.attributes.find(n=>n.localName===t)?.value}var px=3,fx=108/20,Ni=31680/20,Cf={top:0,right:fx,bottom:0,left:fx};function rd(e){if(!e)return;let t=vO(e,"w");if(t===void 0||!/^\d{1,9}$/.test(t))return;let n=Number(t);if(!Number.isFinite(n)||n<0)return;let r=n/20;return r>Ni?Ni:r}function od(e){if(!e)return {};let t=rd(Sa(e,"top")),n=rd(Sa(e,"left")??Sa(e,"start")),r=rd(Sa(e,"bottom")),o=rd(Sa(e,"right")??Sa(e,"end"));return {...t===void 0?{}:{top:t},...n===void 0?{}:{left:n},...r===void 0?{}:{bottom:r},...o===void 0?{}:{right:o}}}function ad(e,t){return {top:t.top??e.top,right:t.right??e.right,bottom:t.bottom??e.bottom,left:t.left??e.left}}var sd=16,Tx=31680/20,mx=1023,IO=256,gx=31680/20;function hx(e){let t=e&&Fe(e,"jc");if(!t)return;let n=at(t,"val");if(n==="center")return "center";if(n==="right"||n==="end")return "right";if(n==="left"||n==="start")return "left"}var yx=31680/20;function Fe(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}function at(e,t){return e.attributes.find(n=>n.localName===t)?.value}function Ff(e,t){for(let n of e.children)if(n.kind!=="textValue"&&n.namespaceUri===chunkNJNFJPGB_cjs.ca&&n.localName===t)return n}function id(e,t){return e.attributes.find(n=>n.namespaceUri===chunkNJNFJPGB_cjs.ca&&n.localName===t)?.value}function TO(e){let t=e&&Fe(e,"gridSpan"),n=t&&at(t,"val");if(!n||!/^\d{1,7}$/.test(n))return 1;let r=Number(n);return Number.isInteger(r)&&r>1?Math.min(r,1024):1}function bx(e,t){let n=e&&Fe(e,t),r=n&&at(n,"val");if(!r||!/^\d{1,7}$/.test(r))return 0;let o=Number(r);return Number.isInteger(o)&&o>0?Math.min(o,1024):0}function kO(e){let t=e&&Fe(e,"vMerge");return t?at(t,"val")!=="restart":false}function OO(e){let t=e&&Fe(e,"vAlign"),n=t&&at(t,"val");return n==="center"?"center":n==="bottom"?"bottom":"top"}function xx(e){return Fc(e&&Fe(e,"shd"))}function Sx(e,t){let n=e&&Fe(e,t);if(!n)return false;let r=at(n,"val");return r===void 0||r!=="0"&&r!=="false"&&r!=="off"}var Ai=Object.freeze({rule:"auto"});function CO(e){let t=e&&Fe(e,"trHeight");if(!t)return Ai;let n=at(t,"hRule"),r=n==="auto"||n==="exact"||n==="atLeast"?n:void 0;if(r==="auto")return Ai;let o=at(t,"val");if(o===void 0||!/^\d{1,9}$/.test(o))return Ai;let a=Number(o);if(!Number.isFinite(a)||a<=0)return Ai;let i=Math.min(a/20,Tx);return i>0?{rule:r==="exact"?"exact":"atLeast",valuePt:i}:Ai}function Di(e,t){let n=e.columnWidthsPt.reduce((o,a)=>o+a,0),r=t-n;return !Number.isFinite(r)||r<=0?0:e.alignment==="center"?r/2:e.alignment==="right"?r:Math.min(e.indentPt,r)}function Rx(e){if(e==="page")return "page";if(e==="margin")return "margin";if(e==="text")return "text"}function Px(e){if(e===void 0||!/^-?\d{1,9}$/.test(e))return;let t=Number(e);if(!Number.isFinite(t))return;let n=t/20;return Math.max(-yx,Math.min(yx,n))}function wx(e){let t=e&&Fe(e,"tblpPr");if(!t)return;let n=at(t,"tblpXSpec"),r=n==="left"||n==="center"||n==="right"||n==="inside"||n==="outside"?n:void 0,o=at(t,"tblpYSpec"),a=o==="inline"||o==="top"||o==="center"||o==="bottom"||o==="inside"||o==="outside"?o:void 0;return {horzAnchor:Rx(at(t,"horzAnchor"))??"text",vertAnchor:Rx(at(t,"vertAnchor"))??"text",...r?{xSpec:r}:{},xPt:Px(at(t,"tblpX"))??0,...a?{ySpec:a}:{},yPt:Px(at(t,"tblpY"))??0}}function kx(e,t,n){let r=n[e.horzAnchor],o=r.width-t,a;if(e.xSpec==="center"?a=r.left+o/2:e.xSpec==="right"||e.xSpec==="outside"?a=r.left+o:e.xSpec?a=r.left:a=r.left+e.xPt,!Number.isFinite(a))return r.left;let i=n.page.left+n.page.width;return Math.max(n.page.left,Math.min(a,i))}var FO=Object.freeze({firstRow:false,lastRow:false,firstColumn:false,lastColumn:false,rowBanding:true,columnBanding:true});function qn(e,t){let n=at(e,t);if(n!==void 0)return n!=="0"&&n!=="false"&&n!=="off"}function MO(e){let t=e&&Fe(e,"tblLook");if(!t)return FO;let n=at(t,"val"),r=n&&/^[0-9A-Fa-f]{1,4}$/.test(n)?Number.parseInt(n,16):0;return {firstRow:qn(t,"firstRow")??(r&32)!==0,lastRow:qn(t,"lastRow")??(r&64)!==0,firstColumn:qn(t,"firstColumn")??(r&128)!==0,lastColumn:qn(t,"lastColumn")??(r&256)!==0,rowBanding:qn(t,"noHBand")===void 0?(r&512)===0:!qn(t,"noHBand"),columnBanding:qn(t,"noVBand")===void 0?(r&1024)===0:!qn(t,"noVBand")}}var Mf=["firstRow","lastRow","firstCol","lastCol","band1Vert","band2Vert","band1Horz","band2Horz","nwCell","neCell","swCell","seCell"],vx=["firstRow","lastRow","firstColumn","lastColumn","oddVBand","evenVBand","oddHBand","evenHBand","firstRowFirstColumn","firstRowLastColumn","lastRowFirstColumn","lastRowLastColumn"];function Ix(e,t){let n=e&&Fe(e,"cnfStyle");if(!n)return;let r=at(n,"val");if(r&&/^[01]{1,12}$/.test(r))for(let o=0;o<r.length&&o<Mf.length;o+=1)r[o]==="1"&&t.add(Mf[o]);for(let o=0;o<vx.length;o+=1)qn(n,vx[o])===true&&t.add(Mf[o]);}var BO=["band1Vert","band2Vert","band1Horz","band2Horz","firstCol","lastCol","firstRow","lastRow","nwCell","neCell","swCell","seCell"];function EO(e){let t=new Set;Ix(e.rowProperties,t),Ix(e.cellProperties,t);let{look:n,rowIndex:r,rowCount:o,gridColumn:a,gridSpan:i,columnCount:s}=e,l=t.has("firstRow")||n.firstRow&&r===0,d=t.has("lastRow")||n.lastRow&&r===o-1,c=t.has("firstCol")||n.firstColumn&&a===0,u=t.has("lastCol")||n.lastColumn&&a+i>=s;if(!(t.has("band1Vert")||t.has("band2Vert"))&&n.columnBanding&&!c&&!u){let g=a-(n.firstColumn?1:0);t.add(g%2===0?"band1Vert":"band2Vert");}if(!(t.has("band1Horz")||t.has("band2Horz"))&&n.rowBanding&&!l&&!d){let g=r-(n.firstRow?1:0);t.add(g%2===0?"band1Horz":"band2Horz");}c&&t.add("firstCol"),u&&t.add("lastCol"),l&&t.add("firstRow"),d&&t.add("lastRow"),l&&c&&t.add("nwCell"),l&&u&&t.add("neCell"),d&&c&&t.add("swCell"),d&&u&&t.add("seCell");let m=[];for(let g of BO)t.has(g)&&m.push(g);return m}var LO=new WeakMap,NO=new WeakMap;function Ra(e,t,n,r,o="all-markup",a){let i=a?NO:LO,s=i.get(e);if(s&&s.contentWidthPt===t&&s.depth===n&&s.styleCascade===r&&s.displayMode===o&&s.authorFilter===a)return s.structure;let l=AO(e,t,n,r,o,a),d={contentWidthPt:t,depth:n,styleCascade:r,displayMode:o,authorFilter:a,structure:l};return i.set(e,d),l}function AO(e,t,n,r,o,a){if(n>=sd||e.kind!=="table")return null;let i=Fe(e,"tblPr"),s=i&&Fe(i,"tblStyle")?at(Fe(i,"tblStyle"),"val"):void 0,l=r?By(r,s):kl,d=MO(i),c=Cf,u=If;for(let N of l.tablePropertyNodes)c=ad(c,od(Fe(N,"tblCellMar"))),u=xf(u,td(N));let f=ad(c,od(i&&Fe(i,"tblCellMar"))),p=xf(u,i?td(i):If),m=new Map,g=Ey(l),h=N=>{if(!g)return Ju;let _=N.join("|"),W=m.get(_);if(W)return W;let q=Ly(l,N);return m.size<IO&&m.set(_,q),q},y=[],x=[],w=1;for(let N of chunkNJNFJPGB_cjs.rf(e.children)){if(N.kind!=="tableRow")continue;let _=Ff(N,"trPr"),W=_?Ff(_,"ins")??Ff(_,"del"):void 0,q=W?.localName,X=W?id(W,"author")??"":void 0,Y=W&&X!==void 0&&a?xh(a,W.id,X,o):o;if(Y==="proposed"&&q==="del"||Y==="original"&&q==="ins")continue;let U=Y==="all-markup"?W:void 0,z=[],ae=[],Te=[],Pe=Math.min(bx(_,"gridBefore"),mx);Pe>0&&x.push({start:0,span:Pe,preferred:so(_&&Fe(_,"wBefore"))});let de=Pe,Ne=chunkNJNFJPGB_cjs.rf(N.children);for(let pe of Ne){if(pe.kind!=="tableCell")continue;let fe=Fe(pe,"tcPr"),me=Math.min(de,mx),ke=Math.min(TO(fe),1024-me),Re=so(fe&&Fe(fe,"tcW"));z.push(me),ae.push(ke),Te.push(Re),x.push({start:me,span:ke,preferred:Re}),de=me+ke;}let be=bx(_,"gridAfter"),it=Math.min(de+be,1024);be>0&&de<1024&&x.push({start:de,span:Math.min(be,1024-de),preferred:so(_&&Fe(_,"wAfter"))}),it>w&&(w=it),y.push({node:N,revision:U,cells:Ne,properties:_,starts:z,spans:ae,preferred:Te,gridColumns:it});}let T=cx(e),F=T.length>0?T.length:w,C=y.length,M=[];for(let N=0;N<y.length;N+=1){let _=y[N],W=_.node,q=_.properties,X=0,Y=[];for(let de of _.cells){if(de.kind!=="tableCell")continue;let Ne=Fe(de,"tcPr"),be=_.starts[X],it=_.spans[X],pe=_.preferred[X]??cn,fe=EO({look:d,rowIndex:N,rowCount:C,gridColumn:be,gridSpan:it,columnCount:F,rowProperties:q,cellProperties:Ne});X+=1;let me,ke=Tf;for(let mt of fe){let $e=l.conditional.get(mt);if(!$e)continue;let Ut=Fe($e,"tcPr");me=xx(Ut)??me,ke=Sf(ke,nd(Ut));}let Re=xx(Ne)??me,Ae=ad(f,od(Ne&&Fe(Ne,"tcMar"))),ut=xi(de.children,o,a);Y.push({id:de.id,gridSpan:it,gridColumn:be,...T[be]?.id?{gridColumnId:T[be].id}:{},vMergeContinue:kO(Ne),vAlign:OO(Ne),margins:Ae,borders:Sf(ke,Ne?nd(Ne):Tf),...Re===void 0?{}:{shading:Re},preferredWidth:pe,styleFormatting:h(fe),blocks:ut});}let U=_.revision,z=U?U.localName==="ins"?"insert":"delete":void 0,ae=U&&id(U,"id"),Te=U&&id(U,"author"),Pe=U&&id(U,"date");M.push({id:W.id,...z?{revisionKind:z}:{},...ae!==void 0?{revisionId:ae}:{},...Te!==void 0?{revisionAuthor:Te}:{},...Pe!==void 0?{revisionDate:Pe}:{},isHeader:Sx(q,"tblHeader"),cantSplit:Sx(q,"cantSplit"),height:CO(q),cells:Y});}let P=cn,S,R,k,v,b;for(let N of l.tablePropertyNodes){let _=Fe(N,"tblW");_&&(P=so(_));let W=Fe(N,"tblLayout");W&&(S=at(W,"type")==="fixed"),R=Li(Fe(N,"tblInd"),gx)??R,k=hx(N)??k,v=Li(Fe(N,"tblCellSpacing"),Ni)??v,b=wx(N)??b;}let H=i&&Fe(i,"tblW"),D=H?so(H):P,V=i&&Fe(i,"tblLayout"),E=V?at(V,"type")==="fixed":S??false,O=Li(i&&Fe(i,"tblInd"),gx)??R??0,A=hx(i)??k??"left",j=n===0?wx(i)??b:void 0,L=Li(i&&Fe(i,"tblCellSpacing"),Ni)??v??0;return {columnWidthsPt:ux({gridCols:T,claims:x,columnCount:F,contentWidthPt:t,tableWidth:D,layoutFixed:E}),rows:M,tableWidth:D,layoutFixed:E,indentPt:O,alignment:A,...j?{float:j}:{},cellSpacingPt:L,tableBorders:p,defaultMargins:f}}function ld(e,t,n,r=0){if(!e||!e.markerText||!n)return;let o=t.measure(e.markerText,e.markerStyle),a=Bl(e,o,n.y,n.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 Ox=new WeakMap,Cx=new WeakMap,Fx=new WeakMap,Mx=new WeakMap;function Bx(e){let t=Mx.get(e);if(t)return t;let n=new Set,r=[];for(let o of qe(e)){for(let a of o.lines)for(let i of tt(a))n.has(i.paragraphId)||(n.add(i.paragraphId),r.push(i.paragraphId));o.lines.length===0&&!n.has(o.paragraphId)&&(n.add(o.paragraphId),r.push(o.paragraphId));}return Mx.set(e,r),r}function lo(e){let t=Ox.get(e);if(t)return t;let n=new Set,r=[];for(let o of e.pages)for(let a of Bx(o))n.has(a)||(n.add(a),r.push(a));return Ox.set(e,r),r}function co(e){let t=Cx.get(e);if(t)return t;let n=new Map;for(let[r,o]of lo(e).entries())n.set(o,r);return Cx.set(e,n),n}function Ex(e){let t=Fx.get(e);if(t)return t;let n=new Set,r=[],o=a=>{for(let i of vt(a)){for(let s of i.lines)for(let l of tt(s))n.has(l.paragraphId)||(n.add(l.paragraphId),r.push(l.paragraphId));i.lines.length===0&&!n.has(i.paragraphId)&&(n.add(i.paragraphId),r.push(i.paragraphId));}};for(let a of e.pages){for(let i of Bx(a))n.has(i)||(n.add(i),r.push(i));for(let i of [a.header,a.footer])i&&o(i.fragments);for(let i of [a.footnotes,a.endnotes])if(i){i.separator&&o(i.separator.fragments);for(let s of i.notes)o(s.fragments);}}return Fx.set(e,r),r}var Lx=new WeakMap;function Bf(e){let t=Lx.get(e);if(t)return t;let n=[...qe(e)];for(let r of [e.header,e.footer])r&&n.push(...vt(r.fragments));for(let r of [e.footnotes,e.endnotes])if(r)for(let o of r.notes)n.push(...vt(o.fragments));return Lx.set(e,n),n}function Dx(e,t,n){return e.paragraphId===t&&n>=e.start&&n<e.end}var Nx=new WeakMap;function tt(e){let t=Nx.get(e);if(t)return t;let n={paragraphId:e.range.paragraphId,start:e.range.start,end:e.range.end,spans:e.spans,drawings:e.drawings??[]},o=e.spans.some(a=>a.range.paragraphId!==e.range.paragraphId)?DO(e):[n];return Nx.set(e,o),o}function DO(e){let t=[];for(let n of e.spans){let r=t[t.length-1];if(r&&r.paragraphId===n.range.paragraphId){t[t.length-1]={...r,start:Math.min(r.start,n.range.start),end:Math.max(r.end,n.range.end),spans:[...r.spans,n]};continue}t.push({paragraphId:n.range.paragraphId,start:n.range.start,end:n.range.end,spans:[n],drawings:[]});}return t.map(n=>({...n,drawings:(e.drawings??[]).filter(r=>r.paragraphId===n.paragraphId)}))}function Fn(e,t){return tt(e).find(n=>n.paragraphId===t)??null}function uo(e,t,n,r){let o=co(e),a=o.get(t.paragraphId)??-1,i=o.get(n.paragraphId)??-1,s=o.get(r.paragraphId)??-1;if(a<i||a>s)return null;let l=a===i?Math.max(t.start,n.offset):t.start,d=a===s?Math.min(t.end,r.offset):t.end;return d>l?{start:l,end:d}:null}function vD(e,t){for(let n of e.pages)for(let r of qe(n)){let o=vr(r).indexOf(t);if(o>0)return vr(r).slice(0,o).reverse()}return []}var Ax=new WeakMap;function vr(e){let t=Ax.get(e);if(t)return t;let n=[];for(let r of e.lines??[])for(let o of tt(r))n.includes(o.paragraphId)||n.push(o.paragraphId);return n.includes(e.paragraphId)||n.push(e.paragraphId),Ax.set(e,n),n}function _O(e,t){let n=vr(e);if(n.length===1)return n[0]===t?{start:e.range.start,end:e.range.end}:null;let r=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;for(let a of e.lines??[]){let i=Fn(a,t);i&&(r=Math.min(r,i.start),o=Math.max(o,i.end));}return o>=r?{start:r,end:o}:null}function Zn(e,t,n){let r=_O(e,t);return r!==null&&n>=r.start&&n<r.end}function ID(e,t){for(let n of e.pages)for(let r of Bf(n))if(r.paragraphId===t)return r;for(let n of e.pages)for(let r of Bf(n))if(vr(r).includes(t))return r;return null}var Df=8,_x=new WeakMap;function cd(e){let t=_x.get(e);if(t)return t;let n=[],r=new Map,o=new Map,a=new Map,i=new Map,s=new Map,l=(c,u)=>{for(let f of c){if(f.kind==="paragraph"){if(!u)for(let p of f.lines)o.set(p.range.paragraphId,p.id);continue}for(let p of f.rows){if(!p.isHeaderRepeat&&!r.has(p.id)){let m=a.get(f.tableId)??0;r.set(p.id,m),a.set(f.tableId,m+1);}for(let m of p.cells){if(!p.isHeaderRepeat&&!u){let g=`${f.tableId}|${m.gridColumn}`;if(m.blocks.length===0){let h=s.get(g);h&&i.set(m,h);}else s.set(g,{row:p,cell:m});}l(m.blocks,u||p.isHeaderRepeat);}}}};for(let c of e.pages)n.push(c.box.y),l(c.fragments,false);let d={pageTops:n,rowIndexById:r,lastLineIdOfParagraph:o,mergeOriginOf:i};return _x.set(e,d),d}function zi(e,t){let n=cd(e).pageTops;if(n.length===0)return -1;let r=0,o=n.length-1,a=0;for(;r<=o;){let i=r+o>>1;n[i]<=t?(a=i,r=i+1):o=i-1;}return a}function HO(e,t){let n=e.pages[zi(e,t.y)];if(!n)return false;for(let r of [n.header,n.footer])if(r&&fd(r.box,t))return true;return false}function Nf(e,t,n,r=false){if(!e||e.length===0)return null;let o=[...e].sort((a,i)=>a.behindDocument!==i.behindDocument?a.behindDocument?-1:1:i.relativeHeight-a.relativeHeight);for(let a of o){if(r&&a.behindDocument||!_i(a,t))continue;let i={paragraphId:a.anchorParagraphId,offset:a.start};return {position:i,caret:{position:i,x:a.x,y:a.y,height:a.height,lineId:"",pageIndex:n},pageIndex:n,lineId:"",cell:null,contentControlId:null,onGlyphs:true,drawing:Object.freeze({drawingNodeId:a.drawingNodeId,paragraphId:a.anchorParagraphId,start:a.start})}}return null}function ud(e,t,n,r={}){let o=e.pages[t];if(!o)return null;let a={layout:e,pageIndex:o.index,verticalWeight:r.verticalWeight??Df,measurer:r.measurer},i=Hx(e,o.index,n),s=(o.anchoredDrawings??[]).filter(f=>!f.behindDocument),l=(o.anchoredDrawings??[]).filter(f=>f.behindDocument),d=Nf(s,n,a.pageIndex);if(d)return {...d,contentControlId:i};let c=dd(o.fragments,n,a,null);if(c?.onGlyphs)return {...c,contentControlId:i};let u=Nf(l,n,a.pageIndex);if(u)return {...u,contentControlId:i};if(c)return {...c,contentControlId:i};for(let f=1;f<e.pages.length;f+=1)for(let p of [t-f,t+f]){let m=e.pages[p];if(!m)continue;let g=dd(m.fragments,n,{...a,pageIndex:m.index},null);if(g)return {...g,contentControlId:Hx(e,m.index,n)}}return null}function ED(e,t,n,r,o={}){let a=e.pages[t];if(!a)return null;let i={layout:e,pageIndex:a.index,verticalWeight:o.verticalWeight??Df,measurer:o.measurer};return dd(n,r,i,null)}function zO(e,t,n={}){let r=e.pages[zi(e,t.y)];if(!r)return null;for(let o of [r.header,r.footer]){if(!o?.anchoredDrawings||o.anchoredDrawings.length===0)continue;let a=Object.freeze({x:t.x-o.box.x,y:t.y-o.box.y}),i=Nf(o.anchoredDrawings,a,r.index);if(i)return i}return ud(e,r.index,{x:t.x-r.contentBox.x,y:t.y-r.contentBox.y},n)}function fd(e,t){return t.x>=e.x&&t.x<e.x+e.width&&t.y>=e.y&&t.y<e.y+e.height}function pd(e,t,n){let r=e.contentControls??[],o=null;for(let a of r)for(let i of a.fragments)i.pageIndex===t&&fd(i.box,n)&&(!o||a.nestingDepth>o.nestingDepth)&&(o=a);return o}function Hx(e,t,n){return pd(e,t,n)?.id??null}function Af(e,t,n){let r=Math.max(e.x-t.x,0,t.x-(e.x+e.width)),o=Math.max(e.y-t.y,0,t.y-(e.y+e.height));return r+o*n}function jO(e,t,n){return e.kind!=="table"||Math.max(e.box.y-t.y,0,t.y-(e.box.y+e.box.height))>0?Af(e.box,t,n):0}function dd(e,t,n,r){if(e.length===0)return null;let o=null;for(let i of e){if(!fd(i.box,t))continue;o=i;let s=zx(i,t,n,r);if(s)return s;break}let a=e.filter(i=>i!==o).map(i=>({block:i,score:jO(i,t,n.verticalWeight)})).sort((i,s)=>i.score-s.score);for(let{block:i}of a){let s=zx(i,t,n,r);if(s)return s}return null}function zx(e,t,n,r){return e.kind==="paragraph"?WO(e,t,n,r,fd(e.box,t)):qO(e,t,n)}function WO(e,t,n,r,o){let a=GO(e.lines,t.y);if(!a)return null;let i=KO(a,t.x,t.y,n),s=$O(a,t.x),l=Math.min(Math.max(i.offset,s.start),s.end),d={paragraphId:s.paragraphId,offset:l},c=ji(a,l,n.measurer,s);return {position:d,caret:{position:d,x:i.x,y:c.y,height:c.height,lineId:a.id,pageIndex:n.pageIndex},pageIndex:n.pageIndex,lineId:a.id,cell:r,onGlyphs:o&&i.withinSpan&&t.y>=a.box.y&&t.y<a.box.y+a.box.height,contentControlId:null,drawing:i.drawing&&i.withinSpan?VO(i.drawing):null}}function GO(e,t){if(e.length===0)return null;for(let o of e)if(t>=o.box.y&&t<o.box.y+o.box.height)return o;let n=e[0],r=Number.POSITIVE_INFINITY;for(let o of e){let a=t<o.box.y?o.box.y-t:t-(o.box.y+o.box.height);a<r&&(r=a,n=o);}return n}function VO(e){return Object.freeze({drawingNodeId:e.drawingNodeId,paragraphId:e.paragraphId,start:e.start})}function $O(e,t){let n=tt(e),r=n[0];for(let o of n){let a=o.spans[0];if(a===void 0)continue;let i=o.spans[o.spans.length-1];if(t>=a.box.x&&(r=o),t<i.box.x+i.box.width)break}return r}function XO(e,t,n){for(let r of n??e.drawings??[])if(r.start===t||r.start+1===t)return r;return null}function _i(e,t){let n=e.hitBounds;return t.x<n.x||t.x>=n.x+n.width||t.y<n.y||t.y>=n.y+n.height?false:Nu(t.x,t.y,e.geometry)}function KO(e,t,n,r){let o=e.spans;for(let l of e.drawings??[])if(_i(l,{x:t,y:n}))return {offset:l.start,x:l.hitBounds.x,withinSpan:true,drawing:l};if(o.length===0&&(e.drawings?.length??0)>0){let l=e.drawings[0];if(t<=l.advanceStart)return {offset:e.range.start,x:l.advanceStart,withinSpan:false,drawing:l};let d=e.drawings[e.drawings.length-1];if(t>=d.advanceEnd)return Ef(e,d.advanceEnd,r);for(let c of e.drawings??[])if(t>=c.advanceStart&&t<c.advanceEnd){let u=t>=c.x+c.width/2;return {offset:u?c.start+1:c.start,x:u?c.advanceEnd:c.advanceStart,withinSpan:_i(c,{x:t,y:n}),drawing:c}}}if(o.length===0)return {offset:e.range.start,x:e.contentX,withinSpan:false};let a=o[0];if(t<=a.box.x)return {offset:e.range.start,x:a.box.x,withinSpan:false};let i=o[o.length-1],s=i.box.x+i.box.width;if(t>=s)return Ef(e,s,r);for(let l of o)if(t>=l.box.x&&t<l.box.x+l.box.width)return YO(l,t,r);for(let l=0;l<o.length;l+=1){let d=o[l];for(let c of e.drawings??[]){if(t>=c.advanceStart&&t<c.advanceEnd){let u=_i(c,{x:t,y:n}),f=t>=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(_i(c,{x:t,y:n}))return {offset:c.start,x:c.hitBounds.x,withinSpan:true,drawing:c};if(t<d.box.x&&t>=c.hitBounds.x+c.hitBounds.width)return {offset:c.start+1,x:c.hitBounds.x+c.hitBounds.width,withinSpan:false,drawing:c};if(t<c.hitBounds.x&&t>=(o[l-1]?.box.x??e.contentX))return {offset:c.start,x:c.hitBounds.x,withinSpan:false,drawing:c}}}if(t<d.box.x){let c=o[l-1],u=c.box.x+c.box.width;return t-u<=d.box.x-t?{offset:c.range.end,x:u,withinSpan:false}:{offset:d.range.start,x:d.box.x,withinSpan:false}}}return Ef(e,s,r)}function Ef(e,t,n){let r=Xx(n.layout,e);if(r===e.range.end)return {offset:r,x:t,withinSpan:false};for(let o=e.spans.length-1;o>=0;o-=1){let a=e.spans[o];if(r<a.range.start)continue;let i=r-a.range.start,s=n.measurer?Hi(a,i,n.measurer):a.box.width*(a.range.end>a.range.start?i/(a.range.end-a.range.start):0);return {offset:r,x:a.box.x+s,withinSpan:false}}return {offset:r,x:t,withinSpan:false}}function Xx(e,t){let n=t.range.end;if(n>t.range.start&&Lf(t,n-1)===chunkNJNFJPGB_cjs.Cc)return n-1;if(cd(e).lastLineIdOfParagraph.get(t.range.paragraphId)===t.id)return n;let r=n;for(r>t.range.start&&Lf(t,r-1)===`
|
|
15
|
-
`&&(r-=1);r>t.range.start&&Lf(t,r-1)===" ";)r-=1;return r}function Lf(e,t){for(let n of e.spans)if(!(t<n.range.start||t>=n.range.end))return n.text.length!==n.range.end-n.range.start?null:n.text[t-n.range.start]??null;return null}var jx=new WeakMap,Wx=new WeakMap;function Gx(e){let t=Dc(),n=jx.get(e);if(n&&n.epoch===t)return n.boundaries;let r=[0];for(let o of tn(e.text))r.push(o.utf16To);return r[r.length-1]!==e.text.length&&r.push(e.text.length),jx.set(e,{epoch:t,boundaries:r}),r}function Hi(e,t,n){let r=e.caretEdges;if(r&&t>=0&&t<r.length)return r[t];let o=Wx.get(n);o||(o=new WeakMap,Wx.set(n,o));let a=o.get(e);a||(a=new Map,o.set(e,a));let i=a.get(t);if(i!==void 0)return i;let s=t<=0?0:_n(e.text.slice(0,t),Ct(e.style,e.fontSlot),n);return a.set(t,s),s}function _f(e){return e.text===" "||e.projected?true:e.text.length!==e.range.end-e.range.start}function md(e,t,n){let r=e.range.end-e.range.start;if(r<=0)return e.box.x;let o=Math.max(0,Math.min(t-e.range.start,r)),a=e.caretEdges;return a&&o<a.length?e.box.x+a[o]:!n||_f(e)?e.box.x+e.box.width*(o/r):e.box.x+Hi(e,o,n)}function ji(e,t,n,r){let o=XO(e,t,r?.drawings);if(o)return {x:t>o.start?o.advanceEnd:o.advanceStart,y:o.y,height:o.height};let a=r?r.spans:e.spans;if(a.length===0){let d=e.leading??0,c=Math.max(0,e.box.height-d-(e.trailingSpacing??0));if(c<=0&&e.box.height<=0){let u=Math.max(0,e.baseline);return {x:e.contentX,y:e.box.y-u,height:u}}return {x:e.contentX,y:e.box.y+d,height:c}}let i=a[0];for(let d=0;d<a.length;d+=1){let c=a[d];if(t>c.range.start&&t<c.range.end){i=c;break}if(t===c.range.end){let u=a[d+1];if(u&&u.range.start===t&&_f(c)){i=u;break}if(u&&u.range.start===t&&c.text.endsWith(" ")&&u.box.x-(c.box.x+c.box.width)>.25){i=u;break}i=c;}else t>c.range.end&&(i=c);}let s=md(i,t,n),l=n?.lineMetrics(Ct(i.style,i.fontSlot));return !l||l.height<=0?{x:s,y:e.box.y,height:e.box.height}:{x:s,y:e.box.y+e.baseline-l.baseline-Bc(i.style),height:l.height}}function YO(e,t,n){let r=t-e.box.x,o=e.range.end-e.range.start;if(o<=0||_f(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(!n.measurer){let p=Math.max(0,Math.min(1,r/Math.max(e.box.width,Number.EPSILON))),m=Math.round(p*o),g=Gx(e),h=g[0],y=Number.POSITIVE_INFINITY;for(let x of g){let w=Math.abs(x-m);w<y&&(y=w,h=x);}return {offset:e.range.start+h,x:e.box.x+e.box.width*(h/o),withinSpan:true}}let a=Gx(e),i=1,s=a.length-1;for(;i<s;){let p=i+s>>1;Hi(e,a[p],n.measurer)<r?i=p+1:s=p;}let l=a[i],d=a[i-1],c=Hi(e,l,n.measurer),u=Hi(e,d,n.measurer),f=r-u<=c-r;return {offset:e.range.start+(f?d:l),x:e.box.x+(f?u:c),withinSpan:true}}function Vx(e,t,n,r){if(e.length===0)return null;for(let i of e){let s=n(i);if(t>=s&&t<s+r(i))return i}let o=e[0],a=Number.POSITIVE_INFINITY;for(let i of e){let s=n(i),l=t<s?s-t:t-(s+r(i));l<a&&(a=l,o=i);}return o}function UO(e,t,n,r){return {tableId:t.tableId,rowId:n.id,cellId:r.id,rowIndex:cd(e).rowIndexById.get(n.id)??0,gridColumn:r.gridColumn,gridSpan:r.gridSpan}}function qO(e,t,n,r){let o=e.rows.filter(d=>!d.isHeaderRepeat),a=o.length>0?o:e.rows,i=[],s=Vx(a,t.y,d=>d.box.y,d=>d.box.height);if(s){let d=Vx(s.cells,t.x,c=>c.box.x,c=>c.box.width);d&&i.push(ZO(n,s,d));}let l=[];for(let d of a)for(let c of d.cells)c.blocks.length!==0&&(i.some(u=>u.cell===c)||l.push({entry:{row:d,cell:c},score:Af(c.box,t,n.verticalWeight)}));l.sort((d,c)=>d.score-c.score);for(let{row:d,cell:c}of [...i,...l.map(u=>u.entry)]){let u=UO(n.layout,e,d,c),f=dd(c.blocks,t,n,u);if(f)return f}return null}function ZO(e,t,n){return n.blocks.length>0?{row:t,cell:n}:cd(e.layout).mergeOriginOf.get(n)??{row:t,cell:n}}function Kx(e,t){let n=t.paintBounds;return n.width<=0||n.height<=0?null:Object.freeze({pageIndex:e,x:n.x,y:n.y,width:n.width,height:n.height,record:t})}function JO(e,t,n){for(let r of t.lines)for(let o of r.drawings??[])if(o.drawingNodeId===n)return Kx(e,o);return null}function Yx(e,t,n){if(t.kind==="paragraph")return JO(e,t,n);for(let r of t.rows)for(let o of r.cells)for(let a of o.blocks){let i=Yx(e,a,n);if(i)return i}return null}function $x(e,t,n){for(let r of t){let o=Yx(e,r,n);if(o)return o}return null}function QO(e,t){for(let n of e.pages){for(let o of n.anchoredDrawings??[])if(o.drawingNodeId===t)return Kx(n.index,o);let r=$x(n.index,n.fragments,t);if(r)return r;for(let o of [n.header,n.footer]){if(!o)continue;for(let i of o.anchoredDrawings??[]){if(i.drawingNodeId!==t)continue;let s=i.paintBounds;return s.width<=0||s.height<=0?null:Object.freeze({pageIndex:n.index,x:o.box.x+s.x-n.contentBox.x,y:o.box.y+s.y-n.contentBox.y,width:s.width,height:s.height,record:i})}let a=$x(n.index,o.fragments,t);if(a){let i=a.record.paintBounds;return Object.freeze({pageIndex:n.index,x:n.header?.box.x===o.box.x||n.footer?.box.x===o.box.x?o.box.x+i.x-n.contentBox.x:a.x,y:o.box.y+i.y-n.contentBox.y,width:a.width,height:a.height,record:a.record})}}}return null}function eC(e){let t=[0],n=0;for(let r of e)n+=r,t.push(n);return t}function tC(e,t){let n=t.get(e.id);return n===void 0&&(e.isHeaderRepeat?n=0:(n=t.size,t.set(e.id,n))),{...e,rowIndex:n}}function gd(e,t,n,r){return {...e,nestingDepth:n,columnEdges:e.columnEdges??eC(t),rows:e.rows.map(o=>tC(o,r))}}var Ux=new WeakMap,Pa=4,Hf=6,qx=14,nC={rowDivider:4,columnDivider:4,rightEdge:4,insertRow:3,insertColumn:3,tableBody:0};function zf(e,t,n,r,o){for(let a of e){if(a.kind!=="table")continue;let i=a.nestingDepth??r;for(let s of a.rows){o({pageIndex:t,table:a,row:s,rowOrdinal:s.rowIndex,nestingDepth:i,editable:!s.isHeaderRepeat,pageContentBox:n});for(let l of s.cells)zf(l.blocks,t,n,i+1,o);}}}function AD(e){let t=Ux.get(e);if(t)return t;let n=[];for(let o=0;o<e.pages.length;o+=1){let a=e.pages[o],i=s=>{n.push(s);};zf(a.fragments,o,a.contentBox,0,i);for(let s of [a.header,a.footer])s&&zf(s.fragments,o,s.box,0,i);}let r=Object.freeze({sourceRevision:e.revision,occurrences:Object.freeze(n)});return Ux.set(e,r),r}function DD(e){let t=e.sourceRevision;switch(e.kind){case "rowDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.edgeY}`;case "columnDivider":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.leftGridColumnId}:${e.rightGridColumnId}:${e.edgeX}`;case "rightEdge":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}:${e.gridColumnId}:${e.edgeX}`;case "insertRow":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.isHeaderRepeat}`;case "insertColumn":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.rowId}:${e.gridColumnId}:${e.isHeaderRepeat}`;case "tableBody":return `${t}:${e.kind}:${e.pageIndex}:${e.tableId}:${e.nestingDepth}:${e.editable}`}}function _D(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 HD(e,t){if(t.kind==="insertRow"){for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat)return n.editable?{kind:"insertRow",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}:null;return null}for(let n of e.occurrences)if(n.pageIndex===t.pageIndex&&n.table.tableId===t.tableId&&n.row.id===t.rowId&&n.row.isHeaderRepeat===t.isHeaderRepeat&&n.editable)for(let r=0;r<n.table.columnEdges.length-1;r+=1){let o=Wi(n.row,r);if(o===t.gridColumnId)return {kind:"insertColumn",pageIndex:n.pageIndex,sourceRevision:e.sourceRevision,tableId:n.table.tableId,rowId:n.row.id,gridColumnId:o,isHeaderRepeat:n.row.isHeaderRepeat,nestingDepth:n.nestingDepth}}return null}function Wi(e,t){for(let n of e.cells)if(n.gridColumn===t)return n.gridColumnId??null;return null}function rC(e,t,n,r,o){if(!e.pages[t.pageIndex])return null;let i=t.pageContentBox,s=n-i.x-o,l=r-i.y,d=t.table,c=s-d.box.x,u=l-d.box.y;return c<-Pa||u<-qx||c>d.box.width+Pa||u>d.box.height+Hf?null:{x:c,y:u}}function oC(e,t,n,r){if(t.row.isHeaderRepeat)return null;let o=t.table,a=t.row.box.y-o.box.y+t.row.box.height;if(!o.columnEdges.slice(1).some(l=>Math.abs(n-l)<=Pa)&&n>=0&&n<=o.box.width&&Math.abs(r-a)<=Pa)return {kind:"rowDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeY:a};if(r<t.row.box.y-t.table.box.y||r>t.row.box.y-t.table.box.y+t.row.box.height)return null;for(let l=1;l<o.columnEdges.length-1;l+=1){let d=o.columnEdges[l];if(Math.abs(n-d)>Pa)continue;let c=Wi(t.row,l-1),u=Wi(t.row,l);if(!(!c||!u))return {kind:"columnDivider",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,leftGridColumnId:c,rightGridColumnId:u,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:d,sheetY:t.pageContentBox.y+o.box.y+r}}let s=o.columnEdges.at(-1);if(Math.abs(n-s)<=Pa){let l=o.columnEdges.length-2,d=Wi(t.row,l);return d?{kind:"rightEdge",pageIndex:t.pageIndex,sourceRevision:e.sourceRevision,tableId:o.tableId,rowId:t.row.id,gridColumnId:d,isHeaderRepeat:t.row.isHeaderRepeat,nestingDepth:t.nestingDepth,edgeX:s,sheetY:t.pageContentBox.y+o.box.y+r}:null}return null}function zD(e,t,n,r,o=0,a){let i=a??zi(r,n),s=i>=0?o:0,l=null,d=-1,c=-1,u=f=>{if(!f)return;let p=nC[f.kind];f.nestingDepth<d||f.nestingDepth===d&&p<=c||(d=f.nestingDepth,c=p,l=f);};for(let f of e.occurrences){if(i>=0&&f.pageIndex!==i)continue;let p=rC(r,f,t,n,s);if(!p||(u(oC(e,f,p.x,p.y)??{kind:"tableBody",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,nestingDepth:f.nestingDepth,editable:f.editable}),!f.editable))continue;let m=f.row.box.y-f.table.box.y;p.x<=Hf&&Math.abs(p.y-(m+f.row.box.height/2))<=f.row.box.height/2+Hf&&u({kind:"insertRow",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});for(let g=0;g<f.table.columnEdges.length-1;g+=1){let h=f.table.columnEdges[g],y=f.table.columnEdges[g+1],x=(h+y)/2;if(Math.abs(p.x-x)>(y-h)/2+2||p.y>qx)continue;let w=Wi(f.row,g);if(w){u({kind:"insertColumn",pageIndex:f.pageIndex,sourceRevision:e.sourceRevision,tableId:f.table.tableId,rowId:f.row.id,gridColumnId:w,isHeaderRepeat:f.row.isHeaderRepeat,nestingDepth:f.nestingDepth});break}}}return l}var Zx=1048576;function jf(e=Zx){let t=e|0;return {cellsRemaining:t>0?t:0}}function hd(e,t,n,r){let o=new Map,a=new Map,i=r?.pageFragment===true,s=i?new Set:null,l=i,c=p=>{let m=a.get(p);m&&(o.set(m.id,m.span),a.delete(p));},u=()=>n!==void 0&&n.cellsRemaining<=0,f=()=>{for(let p of [...a.keys()])c(p);};for(let p of e){if(u()){f();break}l&&p.isHeaderRepeat!==true&&(l=false,f(),s?.clear());let m=new Set,g=false;for(let h of p.cells){if(n){if(n.cellsRemaining<=0){g=true;break}n.cellsRemaining-=1;}let 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:s&&!s.has(y)&&(a.set(y,{id:h.id,span:1}));}else c(y),a.set(y,{id:h.id,span:1});s?.add(y);}if(g){f();break}for(let h of [...a.keys()])m.has(h)||c(h);}return f(),o}var yd=.001;function aC(e,t){return {...e,height:{rule:"auto"},cells:[t]}}function iC(e){let t=hd(e),n=[],r=new Map;for(let o=0;o<e.length;o+=1)for(let a of e[o].cells){let i=t.get(a.id);if(i===void 0||i<2)continue;let s=Math.min(o+i-1,e.length-1);if(s<=o)continue;n.push({span:{headRow:o,endRow:s,headCellId:a.id},cell:a});let l=r.get(o);l?l.add(a.id):r.set(o,new Set([a.id]));}return {heads:n,headIdsByRow:r}}function sC(e,t){if(e.length===0||!e.some(P=>P.cells.some(S=>S.vMergeContinue)))return null;let{heads:n,headIdsByRow:r}=iC(e);if(n.length===0)return null;let o=new Map(n.map(P=>[P.span,P])),a=new Map;for(let P of n){let S=a.get(P.span.headRow);S?S.push(P.span):a.set(P.span.headRow,[P.span]);}for(let P of a.values())P.sort((S,R)=>R.endRow-S.endRow);let i=new Map,s=new Map,l=new Map,d=new Map,c=new Set,u=new Set,f=new Set,p=new Set,m=new Map,g=new Map,h=(P,S,R)=>{let k=new Set;for(let V of r.get(P)??[])(f.has(V)||V===S)&&k.add(V);let v=R===void 0?"":`@${R.toFixed(2)}`,b=`${P}${v}\0${[...k].sort().join("\0")}`,H=i.get(b);if(H!==void 0)return H;let D=t(e[P],k,R);return i.set(b,D),D},y=(P,S)=>{let R=S===void 0?P:`${P.headCellId}@${S.toFixed(2)}`,k=s.get(R);if(k!==void 0)return k;let v=o.get(P),b=t(aC(e[P.headRow],v.cell),void 0,S);return s.set(R,b),b},x=(P,S,R)=>h(P,S,R)+(l.get(P)??0),w=P=>{for(let S=P.headRow+1;S<=P.endRow;S+=1)if(r.has(S))return true;return false},T=(P,S)=>{let R=0;for(let k=P.headRow;k<=P.endRow;k+=1)R+=x(k,P.headCellId,S===void 0?void 0:S+R);return R},F=(P,S)=>{let R=new Map,k=0;for(let v=P.headRow;v<=P.endRow;v+=1){let b=x(v,P.headCellId,S===void 0?void 0:S+k);R.set(v,b),k+=b;}return R},C=P=>{for(let S=P.endRow;S>=P.headRow;S-=1)if(e[S].height.rule!=="exact")return S},M=(P,S)=>{if(w(P)||p.has(P.headRow)&&!u.has(P))return Number.POSITIVE_INFINITY;let R=T(P,S);return C(P)===void 0?R:Math.max(R,y(P,S))};return {spansAt:P=>a.get(P)??[],heightOf:M,accept:(P,S)=>{if(u.has(P)||w(P)||p.has(P.headRow))return;let R=F(P,S),k=0;for(let D of R.values())k+=D;let v=C(P),b=y(P,S);if(v===void 0&&b>k+yd)return;let H=v===void 0?0:b-k;u.add(P),f.add(P.headCellId),p.add(P.headRow),H>yd&&(l.set(v,(l.get(v)??0)+H),R.set(v,(R.get(v)??0)+H));for(let[D,V]of R)c.add(D),d.set(D,Math.max(d.get(D)??0,V));m.set(P,S),g.set(P,H>yd?v:void 0);},withdrawAt:P=>{for(let S of a.get(P)??[]){if(!u.delete(S))continue;f.delete(S.headCellId),p.delete(S.headRow),m.delete(S);let R=g.get(S);R!==void 0&&l.delete(R),g.delete(S);for(let k=S.headRow;k<=S.endRow;k+=1)c.delete(k),d.delete(k);}},rowOptions:P=>{if(!c.has(P))return;let S;for(let R of a.get(P)??[])u.has(R)&&(S??=new Map,S.set(R.headCellId,M(R,m.get(R))));return {...S?{detachedSpanHeightPtByCellId:S}:{},heightFloorPt:d.get(P)??x(P)}}}}function Jx(e,t,n,r){for(let o of e?.spansAt(t)??[])n+e.heightOf(o,n)>r+yd||e.accept(o,n);return e?.rowOptions(t)}function Qx(e,t,n,r,o){return sC(e.rows,(a,i,s)=>o(a,e.columnWidthsPt,typeof t=="function"?t():t,n,r,e.cellSpacingPt,i?{detachedSpanHeightPtByCellId:new Map([...i].map(l=>[l,Number.POSITIVE_INFINITY]))}:void 0,s))}function eS(e,t,n){for(let r of e?.spansAt(t)??[])e.accept(r,n);return e?.rowOptions(t)}function bd(e,t){return {top:e.top+wr(t.top),right:e.right+wr(t.right),bottom:e.bottom+wr(t.bottom),left:e.left+wr(t.left)}}function lC(e,t,n){return {top:t?{state:"none"}:e.top,left:e.left,bottom:n?{state:"none"}:e.bottom,right:e.right}}function xd(e,t,n){return !t&&!n?e:{...e,cells:e.cells.map(r=>({...r,borders:lC(r.borders,t,n)}))}}function dC(e,t,n,r){if(!(!r.onAnchorRepublish||!r.inlineDrawingLayout||!r.anchorFrameBase||!r.pageContentClip))for(let o of e){if(o.kind!=="paragraph")continue;let a=t.find(s=>s.kind==="paragraph"&&s.id===o.paragraphId);!a||a.kind!=="paragraph"||jt(a,r.inlineDrawingLayout).length===0||r.onAnchorRepublish(o.paragraphId,br({paragraph:a,paragraphId:o.paragraphId,paragraphBox:o.box,lines:o.lines,drawingLayout:r.inlineDrawingLayout,frameBase:r.anchorFrameBase(),columnBox:r.columnBoxForParagraph?.(o.box)??o.box,cellBox:n,pageClip:r.pageContentClip(),measurer:r.measurer,...r.layoutTextboxStoryFor?{layoutTextboxStory:r.layoutTextboxStoryFor}:{},...r.displayMode?{displayMode:r.displayMode}:{}}));}}function Sd(e,t){return t===0?[...e]:e.map(n=>n.kind==="table"?{...n,box:{...n.box,y:n.box.y+t},rows:n.rows.map(r=>({...r,box:{...r.box,y:r.box.y+t},cells:r.cells.map(o=>({...o,box:{...o.box,y:o.box.y+t},blocks:Sd(o.blocks,t)}))}))}:{...n,box:{...n.box,y:n.box.y+t},...n.shadingBox?{shadingBox:{...n.shadingBox,y:n.shadingBox.y+t}}:{},...n.bottomBorder?{bottomBorder:{...n.bottomBorder,box:{...n.bottomBorder.box,y:n.bottomBorder.box.y+t}}}:{},...n.borders?{borders:n.borders.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}:{},...n.marker?{marker:{...n.marker,box:{...n.marker.box,y:n.marker.box.y+t}}}:{},lines:n.lines.map(r=>({...r,box:{...r.box,y:r.box.y+t},spans:r.spans.map(o=>({...o,box:{...o.box,y:o.box.y+t}})),...r.drawings?{drawings:r.drawings.map(o=>pl(o,0,t))}:{}}))})}function Gi(e,t,n,r,o,a,i,s){if(e.length===0)return [];let l=new Map;for(let h of n)for(let y of h.cells)l.set(y.id,y);let d=hd(e,a,o,{pageFragment:true}),c=e.map((h,y)=>({...h,cells:h.cells.map(x=>{let w=d.get(x.id);if(x.vMergeContinue&&w===void 0)return {...x,paintInert:true,rowSpan:1,borders:{},blocks:[]};let T=x.vMergeContinue,F=w??1,C=x.box.height;if(F>1){let R=e[y+F-1];C=R.box.y+R.box.height-x.box.y;}let M=l.get(x.id),P=x.blocks;if(M&&M.vAlign!=="top"&&P.length>0){let R=bd(M.margins,M.borders),k=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;for(let b of P)k=Math.min(k,b.box.y),v=Math.max(v,b.box.y+b.box.height);if(Number.isFinite(k)&&Number.isFinite(v)){let b=C-R.top-R.bottom-(v-k),D=x.box.y+R.top+(b>0?M.vAlign==="center"?b/2:b:0)-k;if(Math.abs(D)>.001){P=Sd(P,D);for(let V of P)V.kind==="paragraph"&&i?.(V.paragraphId,D);}}}let S=Object.freeze({x:x.box.x,y:x.box.y,width:x.box.width,height:C});return M&&s&&(F>1||M.vAlign!=="top"&&P.length>0)&&dC(P,M.blocks,S,s),{...x,...T?{vMergeContinue:false,paintInert:false}:{},rowSpan:F,blocks:P,box:{...x.box,height:C}}})})),u=c.map(h=>h.cells.map(y=>{let x=l.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=t.columnWidthsPt.length,p=t.tableBorders,m={columnWidthsPt:t.columnWidthsPt,rowBands:c.map(h=>({y:h.box.y,height:h.box.height})),cellBoxes:c.map(h=>h.cells.map(y=>({width:y.box.width,height:y.box.height})))},g=vf(u,p,f,m,void 0,r);return c.map((h,y)=>({...h,cells:h.cells.map((x,w)=>{let T=g[y][w];return x.paintInert||x.vMergeContinue?{...x,borders:{},paintInert:true}:{...x,borders:T}})}))}function nS(e,t,n,r,o){let a=new Map,i=0,s=l=>{let d=Ra(l,t,0,n,r,o);if(d)for(let c of d.rows)for(let u of c.cells)for(let f of u.blocks)f.localName==="p"?a.set(f.id,i++):f.localName==="tbl"&&s(f);};for(let l of e)l.kind==="paragraph"&&l.paragraph?a.set(l.paragraph.id,i++):l.kind==="table"&&l.table&&s(l.table);return a}var Pd=4096,tS=1,Yt=class extends Error{code;constructor(t,n){super(n),this.name="TablePaginationError",this.code=t;}};function Wf(e){return e.cells.map(()=>({blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false}))}function Rd(e,t,n){let r=0;for(let o=t;o<n&&o<e.length;o+=1)r+=e[o];return r}function cC(e,t,n,r,o,a,i){let s=e.id,l=o.listItems?.get(s),d=eo(e,n,o.styleCascade,l,i?.tableCellStyle,true),{props:c,indent:u,available:f,alignment:p,spacing:m,lineSpacing:g,bottomBorder:h,borders:y,shading:x,inheritedRunProperties:w,markRunProperties:T,tabStops:F,tabStopsCacheToken:C}=d,M={styleCascade:o.styleCascade,tableCellStyle:i?.tableCellStyle,listItems:o.listItems},P=Ei(d);hf(e,M,P);let S=ue=>P!==""&&Kb(ue,M)===P,R=S(i?.borderNeighbours?.previous),k=S(i?.borderNeighbours?.next),v=R?void 0:y.top,b=k?y.between:h,H=mi(F,o.defaultTabStopPt),D=H===F?C:jr(H),V=El(l,u,o.measurer,H,f),E=o.pageExclusionZones?.()??Object.freeze([]),O=o.paragraphOrderIndex?.(s)??Number.MAX_SAFE_INTEGER,A=o.paragraphOrderIndex?xy(E,O,ue=>o.paragraphOrderIndex?.(ue)):E,j=by(A,t,0,{left:0,right:u.left+f+u.right}),L=kn(j),N=L?`${r.toFixed(3)}|${L}`:"",_=o.refFields?.tokenForParagraph(s)??"",W=o.hostedListTokenForParagraph?.(e)??"",q=ta({paragraph:e,properties:[...c,...w,...T,{localName:"tabStops",attributes:{token:D}},...l?[{localName:"list",attributes:{token:l.cacheToken}}]:[],...W?[{localName:"txbxList",attributes:{token:W}}]:[],..._?[{localName:"refFields",attributes:{token:_}}]:[]],width:f,producer:o.producer,drawingToken:Si(o.drawingTokenForParagraph?.(e)||o.drawingLayoutToken||"",o.inlineDrawingLayout!==void 0),...N?{exclusionToken:N}:{}});o.cache&&o.onCellBreakKey?.(q);let X=Il(e,s,u.left,f,o.measurer,o.cache,o.cache?q:null,w,H,o.pageContext,o.styleCascade?(ue,ee)=>Yn(ue,ee,o.styleCascade):void 0,{lineSpacing:g,equationCacheToken:o.producer,firstLineOffset:V,marginExtent:{left:0,right:u.left+f+u.right},...o.projectLink?{projectLink:o.projectLink}:{},...o.projectFieldLink?{projectFieldLink:o.projectFieldLink}:{},...o.documentProperties?{documentProperties:o.documentProperties}:{},...o.bodyPageFields?{bodyPageFields:o.bodyPageFields}:{},...o.refFields?{refFields:o.refFields}:{},displayMode:o.displayMode,...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{},...o.noteMarks?{noteMarks:o.noteMarks}:{},...o.inlineDrawingLayout?{inlineDrawingLayout:o.inlineDrawingLayout}:{},contentLeft:0,contentRight:u.left+f+u.right,paragraphStartY:r,anchorCellBox:Object.freeze({x:0,y:0,width:u.left+f+u.right,height:Math.max(1,f)}),...j.length>0?{pageExclusionZones:j}:{},...o.styleCascade?{themeFonts:o.styleCascade.themeFonts}:{},markRunProperties:T}),Y=i?.lineStart??0,U=i?.fragmentIndex??0,z=i?.maxBottom??Number.POSITIVE_INFINITY,ae=i?.includeAfter??true,Te=i?.includeBottomBorder??true,Pe=()=>l!==void 0||o.displayMode==="all-markup"&&Rh(e,"all-markup",o.revisionAuthorFilter),de=(i?.collapseHeight??false)&&!Pe(),Ne=Y===0&&!de?Wo(m.before,a):0,be=t+u.left,it=Y===0&&!de?dr(v):0,pe=[],fe=r+Ne+it,me=Y,ke=false;for(let ue=Y;ue<X.length;ue+=1){let ee=X[ue],xe=ue===X.length-1,We=xe&&Te&&b&&!de?dr(b):0,Nt=xe&&ae&&!de?m.after:0,un=de?0:j.length>0?On(fe,ee.height,j):ee.exclusionSkipBefore??0;if((de?fe:fe+un+ee.height+We+Nt)>z+.001)break;fe+=un;let La=t+u.left+(ue===0?V:0),xo=Math.max(1,f-(ue===0?V:0)),Or=ee.spans.map(Ue=>({...Ue,range:{...Ue.range,paragraphId:s},box:{...Ue.box,x:Ue.box.x+t,y:fe}})),Bn=wl(Or,o.measurer,La,xo,p,xe,p==="center"||p==="right"?ee.width:void 0),En=Or.length>0&&Bn.length>0?Bn[0].box.x-Or[0].box.x:p!=="left"&&p!=="both"?(()=>{let Ue=xo-ee.width;return Ue<=0?0:p==="center"?Ue/2:Ue})():0,Na=Object.freeze({x:t,y:r,width:n,height:Math.max(0,z-r)}),So=vl(ee.drawings.map(Ue=>ml(Object.freeze({...Ue,paragraphId:s,x:t+Ue.x,advanceStart:t+Ue.advanceStart,advanceEnd:t+Ue.advanceEnd,y:fe+Ue.y,paintBounds:Object.freeze({...Ue.paintBounds,x:t+Ue.paintBounds.x,y:fe+Ue.paintBounds.y}),hitBounds:Object.freeze({...Ue.hitBounds,x:t+Ue.hitBounds.x,y:fe+Ue.hitBounds.y})}),Na)),En);pe.push({id:o.nextLineId(s,ee.start,ue),range:{paragraphId:s,start:ee.start,end:ee.end},spans:Bn,...So.length>0?{drawings:So}:{},box:{x:t+u.left,y:fe,width:f,height:de?0:ee.height},contentX:Bn[0]?.box.x??La+En,baseline:de?Math.max(0,Math.min(ee.baseline,i?.collapseBandAbove??0)):ee.baseline,leading:de?0:ee.leading,trailingSpacing:de?0:ee.trailingSpacing,...ee.deletedRanges?{deletedRanges:ee.deletedRanges}:{},...ee.anchorRevisions?{anchorRevisions:ee.anchorRevisions}:{}}),de||(fe+=ee.height),me=ue+1,ke=true;}if(!ke)return {fragment:null,bottom:r,spaceAfter:a,nextLineIndex:Y,complete:false,fitted:false};let Re=me>=X.length,Ae=pe[0].box.y,ut=fe,mt=[],$e,Ut=Ae,Tt=ut,kr=y.left?Ft(y.left):0,qt=y.right?Ft(y.right):0,Je=y.left?be-y.left.spacePt-kr:be,St=y.right?be+f+y.right.spacePt+qt:be+f,G=Math.max(St-Je,0);if(it>0&&v){let ue=Ft(v),ee=Ae-v.spacePt-ue;mt.push({side:"top",edge:v,box:{x:Je,y:ee,width:G,height:ue}}),Ut=ee;}if(Re&&Te&&b&&!de){let ue=Ft(b),ee=ut+b.spacePt,xe={x:Je,y:ee,width:G,height:ue};k||($e={edge:b,box:xe}),mt.push({side:k?"between":"bottom",edge:b,box:xe}),Tt=ee+ue;}let I=Re&&ae&&!de?m.after:0,$=R&&Y===0?r:Ut,te=k&&Re?Tt+I:Tt,ye=Math.max(te-$,0);if(y.left&&mt.push({side:"left",edge:y.left,box:{x:be-y.left.spacePt-kr,y:$,width:kr,height:ye}}),y.right&&mt.push({side:"right",edge:y.right,box:{x:be+f+y.right.spacePt,y:$,width:qt,height:ye}}),y.bar){let ue=Ft(y.bar);mt.push({side:"bar",edge:y.bar,box:{x:be-y.bar.spacePt-ue,y:Ae,width:ue,height:Math.max(ut-Ae,0)}});}let Q=Tt+I,ge=x===void 0?void 0:y.left||y.right?{x:Je,y:Ut,width:G,height:Math.max(Tt-Ut,0)}:ni(pe,be,f),Be=Re&&o.displayMode==="all-markup"?al(e,"all-markup",o.revisionAuthorFilter):null,bt=Be?.revisions??[],Ke=Be?.formatRevision??null,Me=Y===0?ld(l,o.measurer,pe[0]?{y:pe[0].box.y,height:pe[0].box.height}:void 0,t):void 0,je=Qo(e),Ye=je?$l(pe,Vl(je)):pe,le={kind:"paragraph",id:`${s}#f${U}`,paragraphId:s,fragmentIndex:U,range:{paragraphId:s,start:Ye[0].range.start,end:Ye[Ye.length-1].range.end},props:c,spacing:{before:Ne,after:I},indent:u,tabStops:H,...$e?{bottomBorder:$e}:{},...mt.length>0?{borders:mt}:{},...x===void 0?{}:{shading:x},...ge===void 0?{}:{shadingBox:ge},...Me?{marker:Me}:{},...il(bt,Ke),lines:Ye,box:{x:be,y:r,width:f,height:Q-r}};if(o.inlineDrawingLayout&&o.anchorFrameBase&&o.pageContentClip){let ue=Object.freeze({x:t,y:r,width:n,height:Math.max(0,z-r)}),ee=le.box,xe={paragraph:e,paragraphId:s,paragraphBox:ee,lines:Ye};o.deferAnchoredDrawings?o.deferAnchoredDrawings({...xe,cellOriginX:t,cellContentWidth:n}):o.collectAnchoredDrawings&&o.collectAnchoredDrawings(br({paragraph:e,paragraphId:s,paragraphBox:ee,lines:Ye,drawingLayout:o.inlineDrawingLayout,frameBase:o.anchorFrameBase(),columnBox:o.columnBoxForParagraph?.(ee)??ee,cellBox:ue,pageClip:o.pageContentClip(),measurer:o.measurer,...o.layoutTextboxStoryFor?{layoutTextboxStory:o.layoutTextboxStoryFor}:{},...o.displayMode?{displayMode:o.displayMode}:{},...o.revisionAuthorFilter?{revisionAuthorFilter:o.revisionAuthorFilter}:{}}));}return {fragment:le,bottom:Q,spaceAfter:I,nextLineIndex:me,complete:Re,fitted:true}}function fo(e,t,n,r,o,a){let i=rS(e,t,n,r,Number.POSITIVE_INFINITY,o,a,{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false});return {blocks:i.blocks,bottom:i.bottom}}function rS(e,t,n,r,o,a,i,s,l,d=false){let c=[],u=r,f=s.previousSpaceAfter,p=s.blockIndex,m=s.lineIndex,g=s.paragraphFragmentIndex,h=false,y=false,x=s.precededByEmittedTable;for(;p<e.length;){let w=e[p];if(w.kind==="table"){m!==0&&(m=0),f=0;let C=pC(w,t,n,u,a+1,i);if(!C){x=false,p+=1;continue}if(C.bottom>o+.001){y=!h;break}c.push(C.fragment),u=C.bottom,h=true,x=true,p+=1,m=0;continue}if(w.kind!=="paragraph"){x=false,p+=1,m=0;continue}let T=d&&p===e.length-1&&x&&Ch(w),F=cC(w,t,Math.max(1,n-t),u,i,f,{lineStart:m,fragmentIndex:g,maxBottom:o,includeAfter:true,includeBottomBorder:true,collapseHeight:T,collapseBandAbove:u-r,...l?{tableCellStyle:l}:{},borderNeighbours:{previous:p>0?e[p-1]:void 0,next:e[p+1]}});if(!F.fitted||!F.fragment)break;if(c.push(F.fragment),u=F.bottom,h=true,F.complete)f=F.spaceAfter,x=false,p+=1,m=0,g=0;else return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:F.nextLineIndex,previousSpaceAfter:0,paragraphFragmentIndex:g+1,precededByEmittedTable:x},complete:false,fitted:true,nestedSplitBlocked:false}}return {blocks:c,bottom:u,cursor:{blockIndex:p,lineIndex:m,previousSpaceAfter:f,paragraphFragmentIndex:g,precededByEmittedTable:x},complete:p>=e.length,fitted:h,nestedSplitBlocked:y}}function wa(e,t,n,r,o,a,i,s=0,l,d=Number.POSITIVE_INFINITY){return Gf(e,t,n,r,Number.POSITIVE_INFINITY,o,false,a,i,Wf(e),s,l,d)}function Gf(e,t,n,r,o,a,i,s,l,d,c=0,u,f=o){let p=u?.detachedSpanHeightPtByCellId,m=Rd(t,0,t.length),g=Number.isFinite(c)&&c>0?c/2:0,h=l.measurer.lineMetrics(wn).height,y=e.height,x=y.rule==="exact"?y.valuePt:void 0,w=y.rule==="atLeast"?y.valuePt:void 0,T=[],{rowDeps:F,flushDeferred:C}=qb(l,T),M=a&&l.pageOccurrenceKey?{...F,nextLineId:(O,A,j)=>F.nextLineId(O,A,j,l.pageOccurrenceKey())}:F,P=x===void 0?o:Math.min(o,r+Math.max(0,x)),S=[],R=false,k=false,v=r;for(let O=0;O<e.cells.length;O+=1){let A=e.cells[O],j=d[O]??{blockIndex:0,lineIndex:0,previousSpaceAfter:0,paragraphFragmentIndex:0,precededByEmittedTable:false},L=A.gridSpan,N=A.gridColumn,_=n+Rd(t,0,N),W=Rd(t,N,Math.min(N+L,t.length))||m,q=Math.min(g,Math.max((W-tS)/2,0)),X=_+q,Y=Math.max(W-2*q,tS),U=bd(A.margins,A.borders),z=i?wr(A.borders.top):U.top,ae=r+z,Te=p?.get(A.id),Pe=Te!==void 0,de=Pe?Math.min(f,r+Te):P,Ne=de-U.bottom,be=[],it=ae,pe=j,fe=true,me=false,ke=false;if(!A.vMergeContinue)if(Ne<ae+.001)fe=j.blockIndex>=A.blocks.length;else {let Ae=rS(A.blocks,X+U.left,X+Y-U.right,ae,Ne,s,M,j,A.styleFormatting,true);be=Ae.blocks,it=Ae.bottom,pe=Ae.cursor,fe=Ae.complete,me=Ae.fitted,ke=Ae.nestedSplitBlocked,me&&(R=true),ke&&(k=true);}let Re=Math.min(de,me?it+U.bottom:r+z+h+U.bottom);Re>v&&!Pe&&(v=Re),S.push({cell:A,x:X,width:Y,gridColumn:N,blocks:be,contentTop:ae,contentBottom:it,insets:{...U,top:z},nextCursor:pe,complete:A.vMergeContinue?true:fe,fitted:me,nestedSplitBlocked:ke});}v=Math.min(P,Math.max(v,r));for(let O of S){if(p?.has(O.cell.id)===true)continue;let A=O.fitted?O.contentBottom+O.insets.bottom:r+O.insets.top+h+O.insets.bottom;A>v&&A<=P+.001&&(v=A);}if(v<=r+.001&&S.length>0){let O=r;for(let A of S){let j=r+A.insets.top+h+A.insets.bottom;j>O&&(O=j);}v=Math.min(P,O);}v=Math.min(P,v);let b=false;if(x!==void 0){let O=r+x;O<=o+.001?(v=O,b=true):v=Math.min(o,v);}else {let O=i?0:u?.heightFloorPt??0,A=r+Math.max(w??0,O);A>v&&A<=o+.001&&S.every(L=>L.complete)&&(v=A);}v=Math.min(o,v);let H=Math.max(0,v-r),D=S.map(O=>{let A=O.blocks,j=b?true:O.complete;if(!O.cell.vMergeContinue&&j&&O.cell.vAlign!=="top"&&A.length>0){let L=O.contentBottom-O.contentTop,N=H-O.insets.top-O.insets.bottom-L;if(N>0){let _=O.cell.vAlign==="center"?N/2:N;A=Sd(A,_);}}return {id:O.cell.id,gridColumn:O.gridColumn,...O.cell.gridColumnId?{gridColumnId:O.cell.gridColumnId}:{},gridSpan:O.cell.gridSpan,vMergeContinue:O.cell.vMergeContinue,...O.cell.vMergeContinue?{paintInert:true}:{},rowSpan:1,...O.cell.shading===void 0?{}:{shading:O.cell.shading},blocks:A,box:{x:O.x,y:r,width:O.width,height:H}}}),V=b||S.every(O=>O.complete)?null:S.map(O=>O.nextCursor),E=b||S.every(O=>O.complete);return C(D,r,H),{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:D,box:{x:n,y:r,width:m,height:H}},bottom:v,remainder:E?null:V,fitted:R||e.cells.every(O=>O.vMergeContinue)||b,nestedSplitBlocked:k}}function uC(e){return {...e,measuringOnly:true,collectAnchoredDrawings:void 0,publishAnchoredDrawings:void 0,deferAnchoredDrawings:void 0,onAnchorRepublish:void 0,onAnchorShift:void 0,anchorDeferOnly:true}}function Vf(e,t,n,r,o,a=0,i,s){let l=0,d=s!==void 0,c={...uC(o),...d?{}:{pageExclusionZones:void 0},nextLineId:()=>`probe-${l++}`};return wa(e,t,n,s??0,false,r,c,a,i).record.box.height}function fC(e,t,n,r,o,a,i,s,l){let d=u=>wa(e,t.columnWidthsPt,n,r,i,o,a,t.cellSpacingPt,u),c=d(s);return c.remainder===null||s===void 0?c:(l(),d(void 0))}var $f=(e,t,n,r,o)=>r.measuringOnly===true?null:Qx(o?{...e,rows:o}:e,t,n,r,Vf);function pC(e,t,n,r,o,a){if(o>=sd)return null;let i=Math.max(1,n-t),s=Ra(e,i,o,a.styleCascade,a.displayMode,a.revisionAuthorFilter);if(!s||s.rows.length===0)return null;let l=[],d={...a,publishAnchoredDrawings:void 0,collectAnchoredDrawings:void 0,anchorDeferOnly:true,deferAnchoredDrawings:y=>{l.push(y);}},c=t+Di(s,i),u=$f(s,c,o,d),f=[],p=r;for(let[y,x]of s.rows.entries()){let w=l.length,T=fC(x,s,c,p,o,d,false,eS(u,y,p),()=>{l.length=w,u?.withdrawAt(y);});f.push(T.record),p=T.bottom;}let m=Gi(f,s,s.rows,a.borderOwnershipBudget,a.vMergeResolveBudget,void 0,void 0,void 0);for(let y of l)for(let x of m)if(x.cells.some(T=>T.blocks.some(F=>F.kind==="paragraph"&&F.paragraphId===y.paragraphId))){bf([y],x.cells,x.box.y,x.box.height,a);break}let g=Rd(s.columnWidthsPt,0,s.columnWidthsPt.length),h=new Map;return {fragment:gd({kind:"table",id:`${e.id}#f0`,tableId:e.id,fragmentIndex:0,rows:m,box:{x:c,y:r,width:g,height:p-r}},s.columnWidthsPt,o,h),bottom:p}}function oS(e,t){let{columnWidth:n,columnLeft:r,contentHeight:o,advanceColumn:a,anchorFrames:i,styleCascade:s,displayMode:l,revisionAuthorFilter:d,deps:c,shiftAnchor:u,publishFragment:f}=t,p=n(),m=Ra(e,p,0,s,l,d);if(!m||m.rows.length===0)return;let g=m.columnWidthsPt.reduce((E,O)=>E+O,0),h=()=>m.float?kx(m.float,g,i()):r()+Di(m,n()),y=h();m.float&&m.float.vertAnchor==="text"&&!m.float.ySpec&&(t.cursorY=Math.max(0,Math.min(t.cursorY+m.float.yPt,o())));let x=E=>Vf(E,m.columnWidthsPt,y,0,c,m.cellSpacingPt),w=[];for(let E of m.rows)if(E.isHeader)w.push(E);else break;let T=0,F=t.cursorY,C=[],M=new Map,P=[],S=()=>{if(C.length===0)return;let E=Gi(C,m,P,c.borderOwnershipBudget,c.vMergeResolveBudget,void 0,u,c),O=E[E.length-1];f(gd({kind:"table",id:`${e.id}#f${T}`,tableId:e.id,fragmentIndex:T,rows:E,box:{x:y,y:F,width:m.columnWidthsPt.reduce((A,j)=>A+j,0),height:O.box.y+O.box.height-F}},m.columnWidthsPt,0,M)),T+=1,C=[],P=[];},R=E=>{if(w.length===0)return;let O=0;for(let A of w)O+=x(A);if(O>o()+.001)throw new Yt("table-row-overheight",`Table header group (${w.length} row(s)) is taller than the page content box`);t.cursorY+O>o()+.001&&t.cursorY>0&&(S(),a(),y=h(),F=t.cursorY);for(let A of w){let j=wa(A,m.columnWidthsPt,y,t.cursorY,E,0,c,m.cellSpacingPt);if(j.bottom>o()+.001)throw new Yt("table-row-overheight",`Table header row ${A.id} overflowed the page content box`);C.push(j.record),P.push(A),t.cursorY=j.bottom;}},k=E=>{S(),a(),y=h(),F=t.cursorY,R(true);};R(false);let v=m.rows.slice(w.length),b=$f(m,()=>y,0,c,v),H,D=0,V=(E,O)=>{H=Jx(b,E,t.cursorY,o()),D=H?.heightFloorPt??(O?x(O):D);};for(let[E,O]of v.entries()){V(E,O);let A=Wf(O),j=false,L=0,N=false;for(!(H!==void 0&&H.detachedSpanHeightPtByCellId===void 0)&&D<=o()+.001&&t.cursorY+D>o()+.001&&t.cursorY>0&&(k(),N=true,V(E));;){if(L+=1,L>Pd)throw new Yt("table-row-fragment-limit",`Table row ${O.id} exceeded ${Pd} page fragments`);let W=o()-t.cursorY;if(W<=.001&&t.cursorY>0){if(N)throw new Yt("table-row-overheight",`Table row ${O.id} cannot fit after repeated header rows`);k(),N=true,V(E);continue}if(!j&&D<=W+.001){let U=wa(O,m.columnWidthsPt,y,t.cursorY,false,0,c,m.cellSpacingPt,H,o());if(U.bottom>o()+.001)throw new Yt("table-row-overheight",`Table row ${O.id} overflowed the page content box after placement`);let z=U.remainder!==null;if(C.push(U.record),P.push(z?xd(O,j,true):O),t.cursorY=U.bottom,!z)break;A=U.remainder,j=true,N=false,k();continue}if(!j&&(O.cantSplit||O.height.rule==="exact")){if(t.cursorY>0&&!N){k(),N=true,V(E);continue}let U=t.unreservedContentHeight?.()??o();if(U>o()+.001&&D<=U-t.cursorY+.001){let z=wa(O,m.columnWidthsPt,y,t.cursorY,false,0,c,m.cellSpacingPt,H,U);if(z.bottom<=U+.001&&z.remainder===null){C.push(z.record),P.push(O),t.cursorY=z.bottom;break}}throw new Yt("table-row-overheight",O.height.rule==="exact"?`Table row ${O.id} has w:trHeight hRule=exact taller than the available page content`:`Table row ${O.id} has w:cantSplit and is taller than the available page content`)}let q=Gf(O,m.columnWidthsPt,y,t.cursorY,o(),false,j,0,c,A,m.cellSpacingPt,H);if(!q.fitted&&t.cursorY>0&&!N){k(),N=true,V(E);continue}if(!q.fitted)throw new Yt(q.nestedSplitBlocked?"table-row-split-unsupported":"table-row-overheight",q.nestedSplitBlocked?`Table row ${O.id} contains a nested table taller than the page content box`:`Table row ${O.id} has content that cannot fit a page content box`);if(q.bottom>o()+.001)throw new Yt("table-row-overheight",`Table row ${O.id} overflowed the page content box`);let X=q.remainder!==null,Y=xd(O,j,X);if(C.push(q.record),P.push(Y),t.cursorY=q.bottom,!X)break;A=q.remainder,j=true,N=false,k();}}S();}function aS(e){let t=e.picture;return t?.embeddedRelationshipId?`embed:${e.ownerPartName}:${t.embeddedRelationshipId}`:t?.linkedRelationshipId?`link:${e.ownerPartName}:${t.linkedRelationshipId}`:`nonpicture:${e.drawingNodeId}`}var iS=new WeakMap,Xf=new Map,mC=16,gC=32;function uS(e,t){let n=iS.get(e);if(n)return n;let r;if(e.kind==="drawing"||chunkNJNFJPGB_cjs.bb(e))r={atoms:new Map([[e.id,e]]),visited:1,deepest:0};else if(!("children"in e)||e.children.length===0)r={atoms:Xf,visited:1,deepest:0};else if((t<2||e.children.length>=mC)&&t<gC){let o=null,a=1,i=0;for(let s of e.children){let l=uS(s,t+1);if(a+=l.visited,l.deepest+1>i&&(i=l.deepest+1),l.atoms.size>0){o||(o=new Map);for(let[d,c]of l.atoms)o.set(d,c);}}r={atoms:o??Xf,visited:a,deepest:i};}else {let o=new Map,a=0,i=0,s=[{node:e,depth:0}];for(;s.length>0;){let l=s.pop();if(a+=1,a>chunkNJNFJPGB_cjs.$a)break;l.depth>i&&(i=l.depth);let d=l.node;if(d.kind==="drawing"||chunkNJNFJPGB_cjs.bb(d)){o.set(d.id,d);continue}if("children"in d)for(let c=d.children.length-1;c>=0;c-=1)s.push({node:d.children[c],depth:l.depth+1});}r={atoms:o.size>0?o:Xf,visited:a,deepest:i};}return iS.set(e,r),r}function sS(e){let t=uS(e.root,0);return t.visited>chunkNJNFJPGB_cjs.$a||t.deepest>chunkNJNFJPGB_cjs.Za.maxDrawingDepth?null:t.atoms}var Kf=new Float64Array(1),wd=new Uint32Array(Kf.buffer);function hC(e){let t=2166136261,n=268435859,r=[];for(let o of e.components){r.push(o.fillHex??"",String(o.fillAlpha),o.strokeHex??"",String(o.strokeAlpha),String(o.strokeWidthEmu),String(o.subpathsEmu.length));for(let a of o.subpathsEmu){r.push(String(a.length));for(let i of a)Kf[0]=i.x,t=Math.imul(t^wd[0],16777619),n=Math.imul(n^wd[1],16777651),Kf[0]=i.y,t=Math.imul(t^wd[1],16777619),n=Math.imul(n^wd[0],16777651);}}return [String(e.extentEmu.cx),String(e.extentEmu.cy),String(e.components.length),r.join(","),(t>>>0).toString(36),(n>>>0).toString(36)].join(";")}function Yf(e){let t=e.position,n=e.anchor,r=e.picture,o=e.wrapGeometry,a=e.vectorShape;return Ce([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??"",n?.simplePos?"sp":"pv",n?String(n.relativeHeight):"",n?n.layoutInCell?"1":"0":"",r?Ce([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??""]):"",a?hC(a):"",o?Ce([o.element,o.textSide,String(o.distancesEmu.top),String(o.distancesEmu.right),String(o.distancesEmu.bottom),String(o.distancesEmu.left),String(o.polygon.length)]):"",t?Ce([t.horizontal.relativeFrom,t.horizontal.align??"",String(t.horizontal.offsetEmu??""),t.vertical.relativeFrom,t.vertical.align??"",String(t.vertical.offsetEmu??""),String(t.simplePosition.xEmu),String(t.simplePosition.yEmu)]):""])}function Vi(e){switch(e.kind){case "ready":return Ce(["ready",e.resourceKey,e.contentId,`${e.pixelWidth}x${e.pixelHeight}`]);case "pending":return Ce(["pending",e.resourceKey]);case "external":return Ce(["external",e.relationshipId,e.sinkSafe?"1":"0"]);case "missing":return "missing";case "unrenderable":return `unrenderable:${e.reason}`;default:return e.kind}}var yC=1;function Uf(e,t){if(e.kind==="drawing"||chunkNJNFJPGB_cjs.bb(e)){t.push(e.id);return}if("children"in e)for(let n of e.children)Uf(n,t);}function bC(e){if(e.kind!=="paragraph")return [];let t=[];for(let n of e.children)Uf(n,t);return Object.freeze(t)}function xC(e){let{ownerPartName:t,part:n,pkg:r,lookup:o,onResourceSettled:a,rememberReadyHandle:i,forgetReadyHandle:s}=e,l=false,d=0,c=new Map,u=new Set,f=new Map,p=new WeakMap,m=new WeakMap,g=0,h=chunkNJNFJPGB_cjs.ab(r,t),y=chunkNJNFJPGB_cjs.Xa(r),x=chunkNJNFJPGB_cjs.fb(n,{resolveRelationship:h,resolveSchemeColor:y.resolveSchemeColor,resolveStyleMatrixReference:y.resolveStyleMatrixReference}),w=sS(n),T=(R,k)=>{if(l||u.has(k))return;u.add(k);let v=d;o.resolveForProjection(R).then(b=>{l||v!==d||(c.set(k,b),b.kind==="ready"&&i(b.validatedHandle),g+=1,f.set(k,g),a(t));}).catch(()=>{l||v!==d||(c.set(k,Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),g+=1,f.set(k,g),a(t));}).finally(()=>{u.delete(k);});},F=R=>{let k=aS(R),v=c.get(k);if(v)return v;let b=R.picture?.linkedRelationshipId;if(b){let D=o.resolveLinked(t,b);return c.set(k,D),g+=1,f.set(k,g),D}let H=Object.freeze({kind:"pending",resourceKey:k});return c.set(k,H),g+=1,f.set(k,g),T(R,k),H},C=R=>x.get(R)??null,M=Object.freeze({ownerPartName:t,projectionForAtom:C,project:R=>C(R.id),resourceOf:F}),P=R=>{let k=m.get(R);if(k)return k;let v=bC(R),b=null,H=(V,E)=>{if(!(E>=yC))for(let O of V){let A=x.get(O)?.textboxStory;if(!A)continue;let j=[];if(Uf(A.content,j),j.length!==0){b||(b=[...v]);for(let L of j)b.push(L);H(j,E+1);}}};H(v,0);let D=b??v;return m.set(R,D),D};return {context:M,cacheTokenForPart:()=>`${t}|${g}|${d}|${x.size}`,drawingTokenForParagraph:R=>{let k=p.get(R);if(k?.resourceEpoch===g)return k.token;let v=P(R);if(v.length===0)return p.set(R,{resourceEpoch:g,token:""}),"";let b=v.map(D=>SC(x.get(D)??null,D,F,V=>f.get(aS(V))??0)).sort(),H=Ce(b);return p.set(R,{resourceEpoch:g,token:H}),H},isCompatibleWith:(R,k)=>{let v=chunkNJNFJPGB_cjs.Xa(k);if(v.cacheToken!==y.cacheToken)return false;if(R===n)return true;let b=sS(R);if(w&&b&&w.size===b.size){let D=true;for(let[V,E]of w)if(b.get(V)!==E){D=false;break}if(D)return true}let H=chunkNJNFJPGB_cjs.fb(R,{resolveRelationship:chunkNJNFJPGB_cjs.ab(k,t),resolveSchemeColor:v.resolveSchemeColor,resolveStyleMatrixReference:v.resolveStyleMatrixReference});if(H.size!==x.size)return false;for(let[D,V]of x){let E=H.get(D);if(!E||Yf(E)!==Yf(V))return false}return true},dispose:()=>{l=true,d+=1;for(let R of c.values())R.kind==="ready"&&s(R.validatedHandle);c.clear(),u.clear(),f.clear();}}}var lS=0;function A1(e){let t=e.session.packageRevision(),n=e.session.currentPackage(),r=e.resourceLookup??chunkNJNFJPGB_cjs.sb(n,{decodePort:e.decodePort}),o=new Map,a=new Map,i=new WeakMap,s=new Map,l=new Map,d=m=>{s.set(m.resourceKey,m);let g=chunkNJNFJPGB_cjs.hb(m);g&&l.set(m.resourceKey,g);},c=m=>{s.delete(m.resourceKey);let g=l.get(m.resourceKey);g&&(chunkNJNFJPGB_cjs.ib(g),l.delete(m.resourceKey));},u=(m,g)=>{let y=g.currentPackage().parts.get(m)??a.get(m);if(y)return y;if(m===g.part().name)return g.part();throw new Error(`Missing inline drawing part ${m}`)},f=(m,g)=>{let h=o.get(m);if(h)return h;let y=u(m,g);a.set(m,y);let x=xC({ownerPartName:m,part:y,pkg:g.currentPackage(),lookup:r,onResourceSettled:()=>e.onResourcesChanged(),rememberReadyHandle:d,forgetReadyHandle:c});return o.set(m,x),lS+=1,i.set(x,lS),x},p=m=>{let g=m.currentPackage();if(g.partBytes===n.partBytes&&g.relationships===n.relationships&&g.contentTypes===n.contentTypes){for(let[y,x]of o){let w=g.parts.get(y)??(y===m.part().name?m.part():void 0);if(w&&x.isCompatibleWith(w,g)){a.set(y,w);continue}x.dispose(),o.delete(y),a.delete(y);}t=m.packageRevision(),n=g;return}for(let y of o.values())y.dispose();o.clear(),a.clear();for(let y of l.values())chunkNJNFJPGB_cjs.ib(y);l.clear(),s.clear(),e.resourceLookup||r.dispose(),t=m.packageRevision(),n=g,r=e.resourceLookup??chunkNJNFJPGB_cjs.sb(g,{decodePort:e.decodePort});};return Object.freeze({get bodyContext(){return f(e.session.part().name,e.session).context},contextForPart(m){return f(m,e.session).context},cacheTokenForPart(m){let g=f(m,e.session);return `${i.get(g)??0}|${g.cacheTokenForPart()}`},drawingTokenForParagraph(m,g){let h=f(g,e.session);return `${i.get(h)??0}|${h.drawingTokenForParagraph(m)}`},mintValidatedBytes(m,g){return chunkNJNFJPGB_cjs.gb(m,g)},sync(m){m.packageRevision()!==t&&p(m);},dispose(){for(let m of o.values())m.dispose();o.clear(),a.clear();for(let m of l.values())chunkNJNFJPGB_cjs.ib(m);l.clear(),s.clear(),e.resourceLookup||r.dispose();}})}function SC(e,t,n,r){if(!e)return Ce([t,"refused"]);let o=[t,Yf(e),Vi(n(e))];return r&&o.push(String(r(e))),Ce(o)}function fS(e,t,n){if(t===void 0)return cS(e,n);let r=dS.get(e);if(r&&r.epoch===t)return r.token;let o=cS(e,n);return dS.set(e,{epoch:t,token:o}),o}var dS=new WeakMap;function cS(e,t){return Ou(e,t)}var pS=new WeakMap;function RC(e){let t=pS.get(e);if(t!==void 0)return t;let n=PC(e);return pS.set(e,n),n}function PC(e){let t=n=>{if(n.kind==="textValue"||chunkNJNFJPGB_cjs.Kc(n)||chunkNJNFJPGB_cjs.Ic(n)!==null)return false;if(n.kind==="text"||n.localName==="t"){for(let r of n.children)if(r.kind==="textValue"&&r.value.trim().length>0)return true;return false}for(let r of n.children)if(r.kind!=="textValue"&&t(r))return true;return false};for(let n of e.children)if(n.kind!=="textValue"&&t(n))return true;return false}function yS(e,t){for(let n of t.resultParagraphIds){let r=chunkNJNFJPGB_cjs.Ca(e,n);if(!(!r||r.kind==="textValue"||r.kind!=="paragraph")&&RC(r))return true}return false}var mS=new WeakMap,gS=new WeakMap,hS=new WeakMap;function qf(e){let t=mS.get(e);if(t)return t;let n=new Set;for(let r of chunkNJNFJPGB_cjs.fd(e))n.add(r.beginParagraphId),n.add(r.endParagraphId);return mS.set(e,n),n}function Zf(e){let t=gS.get(e);if(t)return t;let n=new Set;for(let r of chunkNJNFJPGB_cjs.fd(e))yS(e,r)||n.add(r.beginParagraphId);return gS.set(e,n),n}function Jf(e){let t=hS.get(e);if(t)return t;let n=new Set;for(let r of chunkNJNFJPGB_cjs.fd(e))if(!yS(e,r))for(let o of r.resultParagraphIds)n.add(o);return hS.set(e,n),n}var wC=4,Qf=256;function vC(e){return `txbx-${e}`}var bS=new WeakMap;function vS(e,t,n,r="all-markup",o){if(!t||t.nums.size===0)return;let a=bS.get(e);if(a&&a.rawIndex===t&&a.styleCascade===n&&a.displayMode===r&&a.authorFilter===o)return a.listItems;let i=Ci(t,n),s=Tu(e,r,o),l=Ml(s,i,n),d=l.size>0?l:void 0;return bS.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,listItems:d}),d}var IC=2e4,TC=Object.freeze({contents:Object.freeze([]),truncated:false}),xS=new WeakMap;function kC(e){let t=xS.get(e);if(t)return t;let n=[],r=0,o=false,a=[e];for(;a.length>0;){let s=a.pop();if(r+=1,r>IC){o=true;break}if(s.kind!=="textValue"&&s.localName==="txbxContent"){n.push(s);continue}if("children"in s)for(let l=s.children.length-1;l>=0;l-=1)a.push(s.children[l]);}let i=n.length>0||o?Object.freeze({contents:Object.freeze(n),truncated:o}):TC;return xS.set(e,i),i}var SS=1,RS=new WeakMap;function OC(e){let t=RS.get(e);return t===void 0&&(t=SS,SS+=1,RS.set(e,t)),t}var PS=new WeakMap;function CC(e,t,n,r="all-markup",o){if(t.nums.size===0)return "";let a=kC(e);if(a.contents.length===0&&!a.truncated)return "";let i=PS.get(e);if(i&&i.rawIndex===t&&i.styleCascade===n&&i.displayMode===r&&i.authorFilter===o)return i.token;let s=[];for(let d of a.contents){let c=vS(d,t,n,r,o);if(c)for(let[u,f]of c)s.push(Ce([u,f.cacheToken]));}a.truncated&&s.push(`truncated:${OC(t)}`);let l=s.length===0?"":`|txbxlist:${Ce(s)}`;return PS.set(e,{rawIndex:t,styleCascade:n,displayMode:r,authorFilter:o,token:l}),l}function vd(e,t,n,r){return !e||e.nums.size===0?{}:{hostedListTokenForParagraph:o=>CC(o,e,t,n,r)}}function Id(e,t){let n=e.textboxStory;if(!n)return null;let r=pt(e.extentEmu.cx),o=pt(e.extentEmu.cy),a=pt(n.insetsEmu.left),i=pt(n.insetsEmu.right),s=pt(n.insetsEmu.top),l=pt(n.insetsEmu.bottom),d=Math.max(1,r-a-i),c=Math.max(0,o-s-l),u=pt(n.strokeWidthEmu),f={fillHex:n.fillHex,strokeHex:n.strokeHex,strokeWidthPt:u,contentWidth:d,contentHeight:c};if((t.depth??0)>=wC)return {fragments:[],flowHeight:0,contentOffset:{x:a,y:s},...f,fallbackReason:"textbox-nesting-limit"};let m=Tu(n.content,t.displayMode,t.revisionAuthorFilter),g=vS(n.content,t.numberingIndex,t.styleCascade,t.displayMode,t.revisionAuthorFilter),h=vC(e.drawingNodeId),y=0,x=fo(m,0,d,0,0,{measurer:t.measurer,cache:t.cache,producer:`${t.producer}|txbx:${e.drawingNodeId}`,nextLineId:()=>`${h}-line-${y++}`,styleCascade:t.styleCascade,...g?{listItems:g}:{},...t.pageContext?{pageContext:t.pageContext}:{},...t.documentProperties?{documentProperties:t.documentProperties}:{},...t.defaultTabStopPt!==void 0?{defaultTabStopPt:t.defaultTabStopPt}:{},...t.displayMode?{displayMode:t.displayMode}:{},...t.revisionAuthorFilter?{revisionAuthorFilter:t.revisionAuthorFilter}:{},...t.inlineDrawingLayout?{inlineDrawingLayout:t.inlineDrawingLayout}:{},...t.drawingTokenForParagraph?{drawingTokenForParagraph:t.drawingTokenForParagraph}:{}}),w=x.blocks,T=x.bottom,F,C=[];if(w.length>Qf){wS(w.slice(Qf),C),w=w.slice(0,Qf);let S=w[w.length-1];T=S?S.box.y+S.box.height:0,F="textbox-fragment-limit";}if(T>c+.001){let S=w.filter(R=>R.box.y<c-.001);S.length<w.length&&(wS(w.filter(R=>R.box.y>=c-.001),C),w=S,F=F??"textbox-height-clip");}let M=Math.max(0,c-T),P=n.verticalAnchor==="center"?M/2:n.verticalAnchor==="bottom"?M:0;return {fragments:w,flowHeight:T,contentOffset:{x:a,y:s+P},...f,...F?{fallbackReason:F}:{},...C.length>0?{clippedResourceToken:Ce(C)}:{}}}function wS(e,t){ii({fragments:e},n=>{t.push(Vi(n.resource));});}var FC=128,IS=new WeakMap;function MC(e){let t=IS.get(e);if(t!==void 0)return t;let n=chunk5TKAPFZT_cjs.y(chunkNJNFJPGB_cjs.na(e));return IS.set(e,n),n}function BC(e){let t=Math.max(1,Math.floor(e)),n=new Map;return {get(r){let o=n.get(r);if(o!==void 0)return n.delete(r),n.set(r,o),o},set(r,o){for(n.has(r)&&n.delete(r),n.set(r,o);n.size>t;){let a=n.keys().next();if(a.done)break;n.delete(a.value);}},get size(){return n.size}}}function EC(e,t,n,r,o,a,i,s=FC,l,d=ve,c,u,f,p,m,g){let h=g?.revisionAuthorFilter,y=du(e.root),x=BC(s),w=zt(e,d,h),T=Un({numberingIndex:g?.numberingIndex,styleCascade:a},w).listItems,F=MC(e),C=vd(g?.numberingIndex,a,d,h),M,P=S=>{let R=fr(y)||c?S:void 0,k=R?.pageNumber??p?.pageNumber??1,v=mu(R,y)+(c?`|pn:${k}`:"");if(v===""){if(M)return M}else {let A=x.get(v);if(A)return A}let b=0,H=[],D=()=>{let A=R?.pageNumber??p?.pageNumber??1,j=p?.pageWidth??t,L=p?.pageHeight??Math.max(1,t),N=p?.marginLeft??0,_=p?.marginRight??0,W=p?.marginTop??0,q=p?.marginBottom??0,X=Math.max(1,L-W-q);return Object.freeze({pageNumber:A,pageWidth:j,pageHeight:L,marginLeft:N,marginRight:_,marginBottom:q,contentInsetTop:W,contentInsetBottom:q,contentWidth:t,contentHeight:X,contentBandHeight:X,ownerPartName:e.name,storyKind:e.name.includes("ftr")?"footer":"header"})},V=Object.freeze([]),E;if(c){let A=false;for(let j=0;j<Zr;j+=1){H.splice(0,H.length),b=0,E=fo(w,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+v+(d===ve?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${b++}`,styleCascade:a,...T?{listItems:T}:{},...C,pageContext:R,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...h?{revisionAuthorFilter:h}:{},...m?{documentProperties:m}:{},inlineDrawingLayout:c,anchorFrameBase:D,pageContentClip:()=>vi(D()),layoutTextboxStoryFor:N=>Id(N,{measurer:n,producer:r+v+(d===ve?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),cache:o,styleCascade:a,...R?{pageContext:R}:{},...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...h?{revisionAuthorFilter:h}:{},...m?{documentProperties:m}:{},inlineDrawingLayout:c,...u?{drawingTokenForParagraph:u}:{},...g?.numberingIndex?{numberingIndex:g.numberingIndex}:{}}),collectAnchoredDrawings:N=>{H.push(...N);},columnBoxForParagraph:N=>Object.freeze({x:0,y:N.y,width:t,height:N.height}),pageExclusionZones:()=>V,...u?{drawingTokenForParagraph:u}:f?{drawingLayoutToken:f}:{}});let L=Uu(H,c,0,t);if(L.length===0){A=true,V=L;break}if(j>0&&kn(V)===kn(L)){A=true,V=L;break}V=L;}if(!A)throw new sa(`header/footer exclusion reflow did not converge within ${Zr} passes`)}else E=fo(w,0,Math.max(1,t),0,0,{measurer:n,cache:o,producer:r+v+(d===ve?"":`|rev:${d}`)+(h?`|reviewers:${h.cacheKey}`:""),nextLineId:()=>`hf-${e.name}-line-${b++}`,styleCascade:a,...T?{listItems:T}:{},pageContext:R,...l!==void 0?{defaultTabStopPt:l}:{},displayMode:d,...h?{revisionAuthorFilter:h}:{},...m?{documentProperties:m}:{}});let O={partName:e.name,part:e,contentKey:F,fragments:E.blocks,flowHeight:E.bottom,pageFieldNeeds:y,...H.length>0?{anchoredDrawings:Object.freeze([...H])}:{},withPageContext:A=>!fr(y)&&!O.anchoredDrawings?.length?M??O:P(A)};return v===""?M=O:x.set(v,O),O};return P(i)}function po(e,t,n){let r=n-e.box.y,o=u=>({...u,y:u.y+r}),a=u=>{if(!u)return;let f={...u,box:o(u.box),...u.anchoredDrawings?{anchoredDrawings:u.anchoredDrawings}:{}};if(!u.pageFieldProjector)return bu(u,f,r),f;let p=u.pageFieldProjector;return {...f,pageFieldProjector:m=>{let g=p(m);return {...g,box:o(g.box)}}}},i=u=>{if(u)return {...u,box:o(u.box),...u.separator?{separator:{...u.separator,box:o(u.separator.box)}}:{},notes:u.notes.map(f=>({...f,box:o(f.box)}))}},s=a(e.header),l=a(e.footer),d=i(e.footnotes),c=i(e.endnotes);return {...e,id:`page-${t}`,index:t,box:o(e.box),contentBox:o(e.contentBox),...s?{header:s}:{},...l?{footer:l}:{},...d?{footnotes:d}:{},...c?{endnotes:c}:{}}}var TS=new WeakMap;function LC(e){let t=TS.get(e);if(t!==void 0)return t;let n=[];$c(e,o=>{let a=o.marker;a&&n.push(Ce([o.paragraphId,a.text,a.numFmt,String(a.level)]));});let r=n.length===0?"":`|list:${Ce(n)}`;return TS.set(e,r),r}var kS=new WeakMap;function NC(e){let t=kS.get(e);if(t!==void 0)return t;let n=[];ii(e,o=>{n.push(Vi(o.resource)),o.kind==="anchoredDrawing"&&o.textboxStory?.clippedResourceToken&&n.push(`clip:${o.textboxStory.clippedResourceToken}`);});let r=n.length===0?"":`!${Ce(n)}`;return kS.set(e,r),r}function ep(e,t){return Ce([e,String(t.flowHeight),t.contentKey,NC(t),LC(t)])}function OS(e,t,n){if(!e)return "";let r=(o,a)=>Ce([...a].map(([i,s])=>ep(`${o}${i}`,s)).sort());return `|hf:${t},${n},${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};`+Ce([r("h",e.headers),r("f",e.footers)])}function tp(e,t,n){return e?.titlePage&&n===0?"first":e?.evenAndOddHeaders&&(t+n+1)%2===0?"even":"default"}function CS(e){let{furniture:t,pageHeight:n,marginTop:r,marginBottom:o}=e,a=n*.4,i=new Map,s=(l,d,c)=>Math.min(a,Math.max(c,d?l+d.flowHeight:0));return l=>{if(l===0&&e.continuedPageInsets)return e.continuedPageInsets;let d=tp(t,e.pageIndexStart,l),c=i.get(d);if(c)return c;let u=s(e.headerDistance,t?.headers.get(d),r),f=s(e.footerDistance,t?.footers.get(d),o),p=Object.freeze({top:u,bottom:f,height:n-u-f});return i.set(d,p),p}}var FS=new WeakMap;function $i(e,t){FS.set(e,t);}function np(e,t,n,r){return FS.get(e)?.(t,n,r)}var mo=24;function MS(e){let{furniture:t,geometry:n,headerDistance:r,footerDistance:o,pageIndexStart:a}=e,i=c=>({x:0,y:c*(n.height+mo),width:n.width,height:n.height}),s=c=>tp(t,a,c),l=(c,u,f)=>{if(!t)return;let p=s(u),m=(c==="header"?t.headers:t.footers).get(p);if(!m)return;let g=C=>{let M=c==="header"?f.y+r:f.y+n.height-o-C.flowHeight;return {kind:c,variant:p,partName:C.partName,...C.part?{part:C.part}:{},...C.rId?{rId:C.rId}:{},box:{x:f.x+n.margin.left,y:M,width:e.contentWidth,height:C.flowHeight},fragments:C.fragments,...C.anchoredDrawings?{anchoredDrawings:C.anchoredDrawings}:{}}},h=a+u+1,y={pageNumber:h,pageCount:Math.max(h,e.pageCount()+1),sectionPageCount:u+1},x=m.pageFieldNeeds,T=fr(x)||(m.anchoredDrawings?.length??0)>0?m.withPageContext(y):m,F=g(T);return fr(x)?{...F,pageFieldProjector:C=>g(m.withPageContext(C))}:F};return {pageBox:i,variantFor:s,furnitureFor:l,overflowShellAt:(c,u)=>{let f=c-a,p=l("header",f,u),m=l("footer",f,u);return {insets:e.insetsFor(f),...p?{header:p}:{},...m?{footer:m}:{}}}}}function BS(e){if(e.delta===0)return true;let t=e.delta%2===0||!e.evenAndOddHeaders&&!e.parityDependent&&!e.usedPageParity,r=!(e.titlePage||e.continuedInsets)||e.markPageCount>0&&e.delta+e.markPageCount>0;return t&&r&&!e.hasNoteReserves&&!e.hasExclusionZones}var AC="http://schemas.openxmlformats.org/wordprocessingml/2006/main",DC="http://schemas.microsoft.com/office/word/2010/wordml",_C="http://schemas.microsoft.com/office/word/2012/wordml";function HC(e){if(e.kind!=="textValue"){for(let t of e.attributes)if(t.localName==="val"&&t.namespaceUri===AC)return t.value}}function va(e){for(let t of e.children)if(t.kind!=="textValue"&&(t.kind==="contentControlProperties"||t.localName==="sdtPr"))return t}function go(e,t){if(e){for(let n of e.children)if(n.kind!=="textValue"&&n.localName===t)return n}}function Jn(e,t){let n=go(e,t);return n?HC(n):void 0}function Xi(e){return e==="sdtLocked"||e==="contentLocked"||e==="sdtContentLocked"?e:"unlocked"}function Td(e){if(!e)return "richText";for(let t of e.children){if(t.kind==="textValue")continue;let n=t.kind,r=t.localName,o=t.namespaceUri;if(n==="contentControlDropDownList"||r==="dropDownList")return "dropdown";if(n==="contentControlComboBox"||r==="comboBox")return "comboBox";if(n==="contentControlDate"||r==="date")return "date";if(r==="picture")return "picture";if(n==="contentControlText"||r==="text")return "plainText";if(r==="richText")return "richText";if(n==="contentControlCheckbox"||r==="checkbox"&&o===DC)return "checkbox";if(r==="repeatingSection"&&o===_C)return "repeatingSection"}return "richText"}function ES(e){let t=(n,r)=>{for(let o of n)if(o.kind!=="textValue"){if(o.kind==="tableRow")return "row";if(o.kind==="tableCell")return "cell";if(o.kind==="paragraph"||o.kind==="table")return "block";if(chunkNJNFJPGB_cjs.nc(o)&&r<chunkNJNFJPGB_cjs.mc){let a=t(chunkNJNFJPGB_cjs.qc(o),r+1);if(a)return a}}return null};return t(chunkNJNFJPGB_cjs.qc(e),0)??"inline"}function Ia(e){let t=LS.get(e);if(t!==void 0)return t;let n=zC(e);return kd!==null&&kd===n?n=kd:kd=n,LS.set(e,n),n}var kd=null,LS=new WeakMap,NS=new WeakMap;function zC(e){let t=(n,r)=>{if(n.kind==="textValue")return "";let o=n.kind==="paragraph"||n.kind==="table"||chunkNJNFJPGB_cjs.nc(n);if(o){let i=NS.get(n);if(i!==void 0&&i.depth===r)return i.token}let a;if(chunkNJNFJPGB_cjs.nc(n)){if(r>=chunkNJNFJPGB_cjs.mc)return "";let i=va(n),s=[n.id,Jn(i,"alias")??"",Jn(i,"tag")??"",Xi(Jn(i,"lock")),Td(i),go(i,"showingPlcHdr")?"1":"0",go(i,"dataBinding")?"1":"0"].join(":"),l=chunkNJNFJPGB_cjs.qc(n).map(d=>t(d,r+1)).filter(d=>d.length>0);a=[s,...l].join("|");}else a=n.children.map(i=>t(i,r)).filter(i=>i.length>0).join("|");return o&&NS.set(n,{depth:r,token:a}),a};return t(e.root,0)}function DS(e,t){let n=[t],r=new Set([t]);for(let o of e.pages)for(let a of [o.header,o.footer])!a?.part||r.has(a.part)||(r.add(a.part),n.push(a.part));return n}var rp=new WeakMap,AS=new WeakMap;function _S(e){if(e.length===1)return Ki(e[0]);let t=rp.get(e[0]);if(t&&Od(t.parts,e))return t.index;let n=e.map(d=>Ki(d)),r=AS.get(n[0]);if(r&&Od(r.indexes,n))return rp.set(e[0],{parts:e,index:r.index}),r.index;let o=[],a=new Set,i=new Set;for(let d of n){for(let c of d.controls)o.push(c);for(let c of d.neededBlockIds)a.add(c);for(let c of d.neededParagraphIds)i.add(c);}let s=`${[...a].sort().join(",")};${[...i].sort().join(",")}`,l={controls:o,neededBlockIds:a,neededParagraphIds:i,neededToken:s};return AS.set(n[0],{indexes:n,index:l}),rp.set(e[0],{parts:e,index:l}),l}function Cd(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(chunkNJNFJPGB_cjs.nc(e)){let n=0;for(let r of chunkNJNFJPGB_cjs.qc(e))n+=Cd(r);return n}let t=0;for(let n of e.children)t+=Cd(n);return t}var op=new WeakMap;function Od(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var HS=new WeakMap;function jC(e){for(let t of chunkNJNFJPGB_cjs.If(e))if(t.root.kind!=="textValue"){for(let n of t.root.children)if(n.kind!=="textValue")return n}return null}function Ki(e){let t=op.get(e);if(t!==void 0)return t;let n=GC(e),r=jC(e),o=r?HS.get(r):void 0;if(o&&Od(o.lists,n))return op.set(e,o.index),o.index;let a=[];for(let d of n)for(let c of d)a.push(c);let i=new Set,s=new Set;for(let d of a){for(let c of d.blockIds)i.add(c);d.paragraphId!==void 0&&s.add(d.paragraphId);}let l={controls:a,neededBlockIds:i,neededParagraphIds:s,neededToken:`${[...i].sort().join(",")};${[...s].sort().join(",")}`};return r&&HS.set(r,{lists:n,index:l}),op.set(e,l),l}var WC=Object.freeze([]);function GC(e){let t=[],n=(i,s)=>{for(let l of i){if(l.kind==="paragraph"||l.kind==="table"){s.push(l.id);continue}if(chunkNJNFJPGB_cjs.nc(l)){n(chunkNJNFJPGB_cjs.qc(l),s);continue}(l.kind==="tableRow"||l.kind==="tableCell")&&n(l.children,s);}},r=(i,s,l,d,c)=>{let u=l;for(let f of i)if(!(f.kind==="textValue"||f.kind==="paragraphProperties")){if(chunkNJNFJPGB_cjs.nc(f)){if(d>=chunkNJNFJPGB_cjs.mc){u+=Cd(f);continue}let p=va(f),m=Xi(Jn(p,"lock")),g=[...c,m],h=u,y=r(chunkNJNFJPGB_cjs.qc(f),s,u,d+1,g);t.push({control:f,nestingDepth:d,lockStack:g,level:"inline",paragraphId:s,range:{start:h,end:y},blockIds:[]}),u=y;continue}if(f.kind==="hyperlink"){u=r(f.children,s,u,d,c);continue}u+=Cd(f);}return u},o=(i,s,l)=>{for(let d of i){if(d.kind==="textValue")continue;if(d.kind==="paragraph"){r(d.children,d.id,0,s,l);continue}if(d.kind==="table"){for(let h of d.children)h.kind==="tableRow"&&o([h],s,l);continue}if(d.kind==="tableRow"){for(let h of d.children)h.kind==="tableCell"?o(h.children,s,l):chunkNJNFJPGB_cjs.nc(h)&&o([h],s,l);continue}if(!chunkNJNFJPGB_cjs.nc(d)||s>=chunkNJNFJPGB_cjs.mc)continue;let c=va(d),u=Xi(Jn(c,"lock")),f=[...l,u],p=ES(d),m=chunkNJNFJPGB_cjs.qc(d);if(p==="inline"){o(m,s+1,f);continue}let g=[];n(m,g),t.push({control:d,nestingDepth:s,lockStack:f,level:p,blockIds:g}),o(m,s+1,f);}},a=[];for(let i of chunkNJNFJPGB_cjs.If(e))if(i.root.kind!=="textValue")for(let s of i.root.children){if(s.kind==="textValue")continue;let l=zS.get(s);if(l!==void 0){a.push(l);continue}let d=t.length;o([s],0,[]);let c=t.length===d?WC:Object.freeze(t.slice(d));zS.set(s,c),a.push(c);}return a}var zS=new WeakMap,ap=1<<20,jS=new WeakMap,WS=null,GS=0;function VC(e){return e!==WS&&(WS=e,GS+=1),GS}function $C(e,t,n,r){let o=jS.get(e);if(o!==void 0&&o.neededStamp===n)return o;let a=[],i=[],s=e.index*ap,l=0,d=0,c=p=>l===0&&d===0?p:{x:p.x+l,y:p.y+d,width:p.width,height:p.height},u=(p,m)=>{if(m.kind==="paragraph"){t.neededBlockIds.has(m.paragraphId)&&(a.push({pageIndex:p,blockId:m.paragraphId,box:c(m.box)}));let g=t.neededParagraphIds.has(m.paragraphId);for(let h of m.lines){let y=s;if(s=Math.min(s+1,e.index*ap+ap-1),!g)continue;let x=Math.max(0,h.box.height-h.leading-(h.trailingSpacing??0));for(let w of h.spans)i.push({pageIndex:p,paragraphId:w.range.paragraphId,start:w.range.start,end:w.range.end,line:y,box:{x:w.box.x+l,y:w.box.y+h.leading+d,width:w.box.width,height:x}});}return}t.neededBlockIds.has(m.tableId)&&(a.push({pageIndex:p,blockId:m.tableId,box:c(m.box)}));for(let g of m.rows)if(!g.isHeaderRepeat)for(let h of g.cells)for(let y of h.blocks)u(p,y);};for(let p of e.fragments)u(e.index,p);for(let p of [e.header,e.footer])if(p){l=p.box.x-e.contentBox.x,d=p.box.y-e.contentBox.y;for(let m of p.fragments)u(e.index,m);}l=0,d=0;let f={neededStamp:n,blocks:a,spans:i};return jS.set(e,f),f}function XC(e,t,n){let r=VC(t.neededToken),o=new Map,a=new Map,i=new Set;for(let s of e.pages){let l=$C(s,t,r);for(let d of l.blocks){let c=o.get(d.blockId);c?c.push(d):o.set(d.blockId,[d]);}for(let d of l.spans){let c=a.get(d.paragraphId);c?(d.start<c[c.length-1].start&&i.add(d.paragraphId),c.push(d)):a.set(d.paragraphId,[d]);}}return {blocksById:o,spansByParagraph:a,repeatedParagraphs:i}}function KC(e,t,n){let r=new Map,o=new Set;for(let a of e)if(!o.has(a)){o.add(a);for(let i of t.blocksById.get(a)??[]){let s=r.get(i.pageIndex);s?s.push(i.box):r.set(i.pageIndex,[i.box]);}}return [...r.entries()].sort(([a],[i])=>a-i).flatMap(([a,i])=>{let s=li(i);return s?[{pageIndex:a,box:s}]:[]})}function YC(e,t,n,r){let o=n.spansByParagraph.get(e)??[],a=new Map,i=n.repeatedParagraphs.has(e),s=0,l=o.length;for(;!i&&s<l;){let d=s+(l-s>>1);(t.start===t.end?o[d].end<t.start:o[d].end<=t.start)?s=d+1:l=d;}i&&(s=0);for(let d=s;d<o.length;d+=1){let c=o[d];if(c.end<=t.start)continue;if(c.start>=t.end){if(i)continue;break}let u=a.get(c.line);u?u.boxes.push(c.box):a.set(c.line,{pageIndex:c.pageIndex,boxes:[c.box]});}if(a.size===0&&t.start===t.end){let d=[],c=new Set;for(let u=s;u<o.length;u+=1){let f=o[u];if(f.start>t.start){if(i)continue;break}if(t.start>f.end||c.has(f.pageIndex))continue;c.add(f.pageIndex);let p=f.start===f.end?f.box.x:f.box.x+f.box.width*(t.start-f.start)/Math.max(1,f.end-f.start);if(d.push({pageIndex:f.pageIndex,box:{x:p,y:f.box.y,width:0,height:f.box.height}}),!i)break}if(d.length>0)return d}return [...a.entries()].sort(([d],[c])=>d-c).flatMap(([,d])=>{let c=li(d.boxes);return c?[{pageIndex:d.pageIndex,box:c}]:[]})}var VS=new WeakMap;function UC(e){let t=VS.get(e);if(t!==void 0)return t;let n=va(e),r=Jn(n,"alias"),o=Jn(n,"tag"),a={...r!==void 0?{alias:r}:{},...o!==void 0?{tag:o}:{},controlType:Td(n),placeholder:go(n,"showingPlcHdr")!==void 0,bound:go(n,"dataBinding")!==void 0};return VS.set(e,a),a}function qC(e,t,n){let r=e.level==="inline"&&e.paragraphId&&e.range?YC(e.paragraphId,e.range,t):KC(e.blockIds,t);return {...lp(e),fragments:r}}function ZC(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&(r.pageIndex!==o.pageIndex||r.box.x!==o.box.x||r.box.y!==o.box.y||r.box.width!==o.box.width||r.box.height!==o.box.height))return false}return true}function JC(e,t){return e.id===t.id&&e.alias===t.alias&&e.tag===t.tag&&e.controlType===t.controlType&&e.lock===t.lock&&e.effectiveLock===t.effectiveLock&&e.placeholder===t.placeholder&&e.bound===t.bound&&e.nestingDepth===t.nestingDepth&&e.level===t.level&&ZC(e.fragments,t.fragments)}function Ta(e,t){if(!e)return t.length===0;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(!JC(e[n],t[n]))return false;return true}function ip(e,t){return {revision:e.revision,pages:e.pages,...t.contentControls!==void 0?{contentControls:t.contentControls}:{},...t.controlContextToken!==void 0?{controlContextToken:t.controlContextToken}:{}}}var $S=new WeakMap;function sp(e,t,n=Ia(t),r){let o=DS(e,t);if(o.length>1){let f=o.map(p=>Ia(p));n=f.some(p=>p!=="")?f.join("|"):"";}if(n===""){let f=e.pages.some(m=>m.contentControls!==void 0&&m.contentControls.length>0);if(!f&&e.controlContextToken===n&&Ta(e.contentControls,[]))return e;let p=f?e.pages.map(m=>m.contentControls!==void 0&&m.contentControls.length>0?{...m,contentControls:[]}:m):e.pages;return {revision:e.revision,pages:p,contentControls:[],controlContextToken:n}}let a=_S(o),i=XC(e,a),s=a.controls.map(f=>qC(f,i)),l=new Map;for(let f of s)for(let p of f.fragments){let m=l.get(p.pageIndex),g={...f,fragments:[p]};m?m.push(g):l.set(p.pageIndex,[g]);}if(e.controlContextToken===n&&Ta(e.contentControls,s)&&e.pages.every(f=>Ta(f.contentControls,l.get(f.index)??[])))return e;let d=false,c=e.pages.map(f=>{let p=l.get(f.index)??[];if(Ta(f.contentControls,p)||p.length===0&&!f.contentControls)return f;d=true;let m=$S.get(f);if(m&&Ta(m.controls,p))return m.wrapped;let g={...f,contentControls:p};return $S.set(f,{controls:p,wrapped:g}),g}),u=d?c:e.pages;return u===e.pages&&e.controlContextToken===n&&Ta(e.contentControls,s)?e:{revision:e.revision,pages:u,contentControls:s,controlContextToken:n}}function QC(e,t){return Ki(e).controls.filter(r=>t?r.paragraphId!==void 0?t.has(r.paragraphId):XS(r.control).some(o=>t.has(o)):true).map(lp)}function XS(e){let t=[],n=r=>{for(let o of r)if(o.kind!=="textValue"){if(o.kind==="paragraph"){t.push(o.id);continue}if(chunkNJNFJPGB_cjs.nc(o)){n(chunkNJNFJPGB_cjs.qc(o));continue}n(o.children);}};return n(chunkNJNFJPGB_cjs.qc(e)),t}function eF(e,t){let n=null;for(let r of Ki(e).controls)(r.paragraphId===t||r.blockIds.includes(t)||XS(r.control).includes(t))&&(!n||r.nestingDepth>=n.nestingDepth)&&(n=r);return n?lp(n):null}function lp(e){let t=UC(e.control);return {id:e.control.id,...t.alias!==void 0?{alias:t.alias}:{},...t.tag!==void 0?{tag:t.tag}:{},controlType:t.controlType,lock:e.lockStack[e.lockStack.length-1]??"unlocked",effectiveLock:Hs(e.lockStack),placeholder:t.placeholder,bound:t.bound,nestingDepth:e.nestingDepth,level:e.level,fragments:[]}}var ka=1;function dp(e,t){let n=Math.max(ka,t),r=Math.max(1,Math.min(12,Math.floor(e.count))),o=e.definitions??[],a=e.equalWidth===false&&o.length===r&&o.every(c=>c.widthTwips>0),i,s;if(a){i=o.map(p=>Math.max(ka,chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(p.widthTwips)))),s=o.slice(0,-1).map(p=>Math.max(0,chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(p.gapTwips))));let c=s.reduce((p,m)=>p+m,0),u=Math.max(r*ka,n-c),f=i.reduce((p,m)=>p+m,0);if(f>u){let p=u/f;i=i.map(m=>Math.max(ka,m*p));}}else {let c=Math.max(0,chunkNJNFJPGB_cjs.ld(chunkNJNFJPGB_cjs.jd(e.gapTwips))),u=Math.min(c,Math.max(0,(n-r*ka)/(r-1||1)));s=Array.from({length:Math.max(0,r-1)},()=>u);let f=Math.max(ka,(n-s.reduce((p,m)=>p+m,0))/r);i=Array.from({length:r},()=>f);}let l=[],d=0;for(let c=0;c<r;c+=1)l.push(d),d+=i[c]+(s[c]??0);return {count:r,widths:i,gaps:s,lefts:l,separator:e.separator===true&&r>1}}var KS=new WeakMap,YS=new WeakMap;function tF(e,t,n){let r=e.map(o=>`${o.blockStart}-${o.blockEndExclusive}`).join(",");return `${t};${n?.cacheKey??""};${r}`}function cp(e){let t=Qo(e);return t?t.members.map(n=>n.id):[e.id]}function up(e){let t=YS.get(e);if(t)return t;let n=[],r=(o,a)=>{if(!(a>32||o.kind==="textValue")){if(o.kind==="paragraph"){n.push(o.id);return}for(let i of o.children)r(i,a+1);}};return r(e,0),YS.set(e,n),n}function nF(e,t){if(e.kind!==t.kind)return false;let n=e.kind==="paragraph"?cp(e):up(e),r=t.kind==="paragraph"?cp(t):up(t);return n.length===r.length&&n.every((o,a)=>o===r[a])}function US(e,t,n,r,o){let a=zt(e,n,r),i=tF(t,n,r),s=o?KS.get(o):void 0;if(s?.boundsFingerprint===i&&s.blocks.length===a.length&&a.every((d,c)=>d===s.blocks[c]||nF(d,s.blocks[c])))return s.blocks=a,s.map;let l=new Map;for(let d=0;d<t.length;d+=1){let c=t[d];for(let u=c.blockStart;u<c.blockEndExclusive;u+=1){let f=a[u];if(!f)continue;let p=f.kind==="paragraph"?cp(f):up(f);for(let m of p)l.set(m,d);}}return o&&KS.set(o,{blocks:a,boundsFingerprint:i,map:l}),l}var Oa=chunkNJNFJPGB_cjs.ge,Yi=512,fp=6,rF=1/3;function qS(e,t){return `note-${e}-${t}`}function oF(e){if(!e)return [];let t=[];for(let n of chunkNJNFJPGB_cjs.ie(e.root)){if(t.length>=Oa)break;chunkNJNFJPGB_cjs.$d(n)&&t.push(n);}return t}function ZS(e,t){if(e){for(let n of chunkNJNFJPGB_cjs.ie(e.root))if(chunkNJNFJPGB_cjs._d(n)===t)return n}}function mp(e,t,n){let r=chunkNJNFJPGB_cjs.Yd(e),o=chunkNJNFJPGB_cjs.Zd(e);if(!r||o===null)return null;let a=chunkNJNFJPGB_cjs.Pd(r,o),i=n.displayMode??ve,s=ea(e,i,n.revisionAuthorFilter),l=qS(r,o),d=0,c=Math.max(1,t),u=n.maxFlowHeightPt??Number.POSITIVE_INFINITY,f=n.noteMarks?{...n.noteMarks,activeNoteKey:a}:{marks:new Map,activeNoteKey:a},p=n.ownerPartName?n.drawingsForPart?.(n.ownerPartName):void 0,m=(n.ownerPartName?n.projectLinkForPart?.(n.ownerPartName):void 0)??n.projectLink,g=Un({numberingIndex:n.numberingIndex,styleCascade:n.styleCascade},s).listItems,h=fo(s,0,c,0,0,{measurer:n.measurer,cache:n.cache,producer:n.producer+(i===ve?"":`|rev:${i}`)+(n.revisionAuthorFilter?`|reviewers:${n.revisionAuthorFilter.cacheKey}`:"")+`|${a}`,nextLineId:()=>`${l}-line-${d++}`,styleCascade:n.styleCascade,...g?{listItems:g}:{},noteMarks:f,...m?{projectLink:m}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.refFields?{refFields:n.refFields}:{},...n.defaultTabStopPt!==void 0?{defaultTabStopPt:n.defaultTabStopPt}:{},...p?{inlineDrawingLayout:p.inlineDrawingLayout,...p.drawingTokenForParagraph?{drawingTokenForParagraph:p.drawingTokenForParagraph}:{}}:{},displayMode:i,...n.revisionAuthorFilter?{revisionAuthorFilter:n.revisionAuthorFilter}:{}}),y=h.blocks,x=h.bottom,w;if(y.length>Yi){y=y.slice(0,Yi);let T=y[y.length-1];x=T?T.box.y+T.box.height:0,w="note-fragment-limit";}if(x>u){let T=[],F=0;for(let C of y){let M=C.box.y+C.box.height;if(M>u+.001&&T.length>0)break;T.push(C),F=M;}y=T,x=F,w=w??"note-height-cap";}return {noteKind:r,noteId:o,scopeId:a,noteType:chunkNJNFJPGB_cjs._d(e),fragments:y,flowHeight:x,...w?{fallbackReason:w}:{}}}function pp(e,t,n,r){if(!e)return null;let o=chunkNJNFJPGB_cjs.je(e.root,t);return o?mp(o,n,{...r,ownerPartName:e.name}):null}function Ui(e,t,n,r,o){if(!o)return pp(e,t,n,r);let a=`${e?.name??"none"}\0${t}\0${n}`,i=o.get(a);if(i!==void 0)return i;let s=pp(e,t,n,r);return o.set(a,s),s}function JS(e,t){return "single"}function QS(e){let t=ea(e);if(t.length===0)return true;for(let n of t){if(n.kind!=="paragraph")return false;let r=n.children.find(o=>o.kind==="paragraphProperties");if(Object.keys(Hn(r)).length>0||!aF(n))return false}return true}function aF(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="paragraphProperties"){if(t.kind==="run"){if(!iF(t))return false;continue}return false}return true}function iF(e){for(let t of e.children)if(t.kind!=="textValue"&&t.kind!=="runProperties"&&!(chunkNJNFJPGB_cjs.Wd(t)||chunkNJNFJPGB_cjs.Xd(t)||chunkNJNFJPGB_cjs.Vd(t))){if(t.kind==="text"){if(t.children.map(r=>r.value).join("").trim().length>0)return false;continue}return false}return true}function Fd(e,t,n,r,o,a){let i=JS(),s=ZS(e,t);if(s){if(QS(s))return {kind:t,fragments:[],flowHeight:fp,synthetic:false,ruleStyle:i};let l=mp(s,n,{...r,...e?{ownerPartName:e.name}:{}});if(l&&l.flowHeight>0){let d=a??Number.POSITIVE_INFINITY;return l.flowHeight>d+.001?{kind:t,fragments:[],flowHeight:fp,synthetic:true,ruleStyle:i,fallbackReason:"note-separator-height-cap"}:{kind:t,fragments:l.fragments,flowHeight:l.flowHeight,synthetic:false}}}return {kind:t,fragments:[],flowHeight:fp,synthetic:true,ruleStyle:i}}function eR(e,t){let n=Math.max(1,e*rF);return {x:0,y:Math.max(0,(t-.75)/2),width:n,height:.75}}function Md(e,t,n,r){if(e.ruleStyle!==void 0||e.synthetic){let o=eR(n,e.flowHeight);return {x:t+o.x,y:r+o.y,width:o.width,height:Math.max(o.height,e.ruleStyle==="double"?2.25:.75)}}return {x:t,y:r,width:n,height:e.flowHeight}}function Ca(e,t){return Math.max(0,e-14-t)}var qi=.5,tR=2*qi;function Bd(e,t,n){if(!e)return "";let r=[];for(let[o,a]of e){let i=o-t;i>=0&&i<n&&r.push([i,a]);}return r.length===0?"":(r.sort((o,a)=>o[0]-a[0]),`|nr:${r.map(([o,a])=>`${o}=${a}`).join(",")}`)}function nR(e,t,n){n<=0||e.set(t,Math.max(e.get(t)??0,n));}function Ir(e){let t=new Map;for(let[n,r]of e)r>0&&t.set(n,r);return t}function Ed(e,t){let n=Ir(e),r=Ir(t);if(n.size!==r.size)return false;for(let[o,a]of n)if((r.get(o)??0)!==a)return false;return true}function rR(e,t){let n=Ir(e);for(let[r,o]of t)o<=0||n.set(r,Math.max(n.get(r)??0,o));return n}function Fa(e){return [...Ir(e)].map(([t,n])=>`${t}=${n}`).sort().join(",")}function sF(e,t){return t===0?e:{...e,box:{...e.box,y:e.box.y+t},...e.shadingBox?{shadingBox:{...e.shadingBox,y:e.shadingBox.y+t}}:{},...e.bottomBorder?{bottomBorder:{...e.bottomBorder,box:{...e.bottomBorder.box,y:e.bottomBorder.box.y+t}}}:{},...e.borders?{borders:e.borders.map(n=>({...n,box:{...n.box,y:n.box.y+t}}))}:{},...e.marker?{marker:{...e.marker,box:{...e.marker.box,y:e.marker.box.y+t}}}:{},lines:e.lines.map(n=>({...n,box:{...n.box,y:n.box.y+t},spans:n.spans.map(r=>({...r,box:{...r.box,y:r.box.y+t}}))}))}}function gp(e,t){return t===0?[...e]:e.map(n=>n.kind==="paragraph"?sF(n,t):{...n,box:{...n.box,y:n.box.y+t}})}function Zi(e){let t=0;for(let n of e)t=Math.max(t,n.box.y+n.box.height);return t}function Ji(e){let t=0;for(let n of e.fragments)t=Math.max(t,hp(n));return t}function hp(e){let t=e.kind==="paragraph"?e.spacing.after:0;return e.box.y+e.box.height-t}function Ld(e){let t=Number.POSITIVE_INFINITY;for(let n of e.fragments){let r=n.kind==="paragraph"?n.lines[0]?.box.y??n.box.y:n.box.y;t=Math.min(t,r);}return Number.isFinite(t)?t:0}var oR=new WeakMap;function Qi(e,t){let n=oR.get(e.fragments);n||(n=new WeakMap,oR.set(e.fragments,n));let r=n.get(t);if(r)return r;let o=lF(e,t);return n.set(t,o),o}function lF(e,t){let n=0,r=0,o=0,a=false;for(let d of e.fragments){if(d.kind==="paragraph"){if(!Zn(d,t.paragraphId,t.atomOffset))continue;let c=dF(d,t),u=c?.top??d.box.y,f=c?.bottom??d.box.y+d.box.height;f>r&&(n=u,r=f,o=d.box.y,a=c!==null);continue}if(cF(d,[t])){let c=d.box.y+d.box.height;c>r&&(n=d.box.y,r=c,a=false);}}let i=d=>Math.min(Math.max(0,d),e.contentBox.height),s=i(n),l=i(r);return {top:s,bottom:l,blockTop:i(o),evictable:a&&l>s}}function dF(e,t){for(let n of e.lines)for(let r of tt(n))if(Dx(r,t.paragraphId,t.atomOffset))return {top:n.box.y,bottom:n.box.y+n.box.height};return null}function cF(e,t){let n=r=>{for(let o of r){if(o.kind==="paragraph"){for(let a of t)if(Zn(o,a.paragraphId,a.atomOffset))return true;continue}for(let a of o.rows)if(!a.isHeaderRepeat){for(let i of a.cells)if(n(i.blocks))return true}}return false};for(let r of e.rows)if(!r.isHeaderRepeat){for(let o of r.cells)if(n(o.blocks))return true}return false}function yp(e){if(e.footnotes===void 0&&e.endnotes===void 0&&e.noteStream===void 0)return e;let{footnotes:t,endnotes:n,noteStream:r,...o}=e;return o}function uF(e,t){if(e.lines.length===0)return e.box.y+e.box.height<=t+.001?{head:e,tail:null}:{head:null,tail:e};let n=0;for(;n<e.lines.length;n+=1){let g=e.lines[n];if(g.box.y+g.box.height>t+.001)break}if(n===0)return {head:null,tail:e};if(n>=e.lines.length)return {head:e,tail:null};let r=e.lines.slice(0,n),o=e.lines.slice(n),a=r[r.length-1],i=e.box.y,s=a.box.y+a.box.height,l=e.borders?.filter(g=>g.side!=="bottom"),d={...e,range:{paragraphId:e.paragraphId,start:r[0].range.start,end:a.range.end},spacing:{before:e.spacing.before,after:0},lines:r,box:{...e.box,height:Math.max(0,s-i)},...l&&l.length>0?{borders:l}:{borders:void 0},bottomBorder:void 0,...e.shadingBox?{shadingBox:{...e.shadingBox,height:Math.max(0,s-e.shadingBox.y)}}:{}},c=o[o.length-1],u=o[0].box.y,f=c.box.y+c.box.height,p=e.borders?.filter(g=>g.side!=="top"),m={...e,id:`${e.paragraphId}#f${e.fragmentIndex+1}`,fragmentIndex:e.fragmentIndex+1,range:{paragraphId:e.paragraphId,start:o[0].range.start,end:o[o.length-1].range.end},spacing:{before:0,after:e.spacing.after},lines:o,box:{x:e.box.x,y:u,width:e.box.width,height:Math.max(0,f-u)},marker:void 0,...p&&p.length>0?{borders:p}:{borders:void 0},...e.bottomBorder?{bottomBorder:e.bottomBorder}:{},...e.shadingBox?{shadingBox:{x:e.shadingBox.x,y:u,width:e.shadingBox.width,height:Math.max(0,f-u)}}:{}};return {head:d,tail:m}}function es(e,t,n){if(e.flowHeight<=t+.001)return {head:e.fragments,headHeight:e.flowHeight,tail:[],tailHeight:0};if(t<=.001)return {head:[],headHeight:0,tail:e.fragments,tailHeight:e.flowHeight};let r=[],o=0,a=0,i=null;for(let u=0;u<e.fragments.length&&u<Yi;u+=1){let f=e.fragments[u],p=f.box.y+f.box.height;if(p<=t+.001){r.push(f),o=p,a=u+1;continue}if(f.kind==="paragraph"){let m=uF(f,t);if(m.head)r.push(m.head),o=m.head.box.y+m.head.box.height,i=m.tail,a=u+1;else {let g=n?.fullContentHeight??t,y=f.lines[0]?.box.height??f.box.height;if(r.length===0&&t>=g-.001&&y>g+.001){n?.reasons?.push("note-line-exceeds-page"),a=u+1,i=null;let x=e.fragments.slice(a),w=x[0]?.box.y??0;return {head:[],headHeight:0,tail:gp(x,-w),tailHeight:Math.max(0,e.flowHeight-w)}}a=u,i=null;}break}a=u;break}let s=[...i?[i]:[],...e.fragments.slice(a)];if(s.length===0)return {head:r,headHeight:o,tail:[],tailHeight:0};let l=s[0]?.box.y??0,d=gp(s,-l),c=Zi(d);return {head:r,headHeight:o,tail:d,tailHeight:c}}var fF=9;function aR(e){let{bodyPage:t,nextPage:n}=e;if(!n||n.contentBox.width!==t.contentBox.width||n.contentBox.height!==t.contentBox.height)return 0;let r=n,o=e.pageBottomRefsOf(r);if(o.length===0)return 0;let a,i;for(let k of o){let v=Qi(r,k);v.bottom<=v.top||(!a||v.bottom<a.bottom-.001)&&(a=v,i=k);}if(!a||!i)return 0;let s=a.bottom-a.top,l=Ji(t),d=t.contentBox.height;if(d-l<s-.001)return 0;let c,u=0;for(let k of r.fragments){if(k.kind!=="paragraph"||u>=fF)return 0;if(u+=1,Zn(k,i.paragraphId,i.atomOffset)){c=k;break}}if(!c)return 0;let f=o.filter(k=>Zn(c,k.paragraphId,k.atomOffset));if(f.length===0)return 0;let p=Ld(r),m=Math.max(0,a.bottom-p),g=Math.max(0,hp(c)-p),h=t.contentBox.width,y=Ca(d,e.plainSeparatorHeight),x=0;for(let k of f){let v=Ui(e.footnotesPart,k.noteId,h,e.opts,e.noteLayoutCache);if(!v)continue;let b=Qi(r,k),H=b.evictable?b.bottom-b.blockTop:0;v.flowHeight>y-H+.001||(x+=v.flowHeight);}if(x<=0)return 0;let w=(e.existingAreaHeight>0?e.existingAreaHeight:e.plainSeparatorHeight)+x,T=Math.max(0,d-l-qi);if(!(l+m+s+w<=d+.001))return T;if(l+g+s+w<=d+.001)return 0;let{usedReservePt:M}=e;if(M===void 0)return 0;let P=Math.max(0,d-M-l),S=m+s>P+.001,R=Math.abs(M-T)<=tR;return S&&!R?0:T}function iR(e){let t=0;return e.map((n,r)=>{let o=`page-${r}`,i=n.index===r&&n.id===o&&n.box.y===t?n:po(n,r,t);return t+=n.box.height+mo,i})}function sR(e){if(e.kind!=="tableRow")return null;let t=e.children.find(a=>a.namespaceUri===chunkNJNFJPGB_cjs.ca&&a.localName==="trPr");if(!t)return null;let n=null;for(let a of t.children)if(a.kind!=="textValue"&&a.namespaceUri===chunkNJNFJPGB_cjs.ca&&!(a.localName!=="ins"&&a.localName!=="del")){n=a;break}if(!n)return null;let r=a=>n.attributes.find(i=>i.namespaceUri===chunkNJNFJPGB_cjs.ca&&i.localName===a)?.value,o=r("date");return {kind:n.localName==="ins"?"insert":"delete",id:r("id")??"",author:r("author")??"",...o===void 0?{}:{date:o},nodeId:n.id}}function lR(e,t,n){let r=[];for(let o of e){let a=Mt(o)?Ht(o):sR(o);if(a){if(r.length>=hr)return false;r=$t(r,a);}}return Ie(r,t,n)}function dR(e){let t=[];for(let n of e){let r=Mt(n)?Ht(n):sR(n);r&&t.push([r.kind,r.nodeId,r.author]);}return JSON.stringify(t)}function Nd(e){return `${e.noteKind}|${e.noteId}|${e.paragraphId}|${e.customMarkFollows?1:0}|${e.sectionIndex}`}function cR(e){return e.map(t=>`${Nd(t)}|${t.atomOffset}`).join(";")}function bp(e){return e.map(Nd).join(";")}function xp(e,t){if(e===t)return true;if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r.atomOffset!==o.atomOffset||Nd(r)!==Nd(o))return false}return true}var Rp=64,wR=8,fR=Rp+2*wR,vR=4096,IR=256,Sp=12;function Ad(e){return `${e.pos},${e.numFmt},${e.numStart},${e.numRestart}`}function pF(e){return e.drawingsForPart!==void 0&&e.drawingLayoutEpoch===void 0||e.projectLinkForPart!==void 0&&e.linkRelsEpoch===void 0?null:[e.producer,e.defaultTabStopPt??"",e.drawingLayoutEpoch??"",e.linkRelsEpoch??"",e.displayMode??ve,e.revisionAuthorFilter?.cacheKey??"",e.refFields?.valuesToken??"",e.documentProperties?JSON.stringify(e.documentProperties):"",Ad(e.documentFootnoteProps),Ad(e.documentEndnoteProps),e.footnotePropsBySection.map(Ad).join(";"),e.endnotePropsBySection.map(Ad).join(";")].join("\0")}var pR=new WeakMap;function mF(e,t,n){if(!e)return {memo:null,allHits:t,reused:false};let r=pF(n);if(r===null)return e.notes=null,{memo:null,allHits:t,reused:false};let o=cR(t),a=null,i=e.notes;if(i){let l=pR.get(i),d=i.inputFingerprint===r&&l!==void 0&&l.footnotesPart===n.footnotesPart&&l.endnotesPart===n.endnotesPart&&l.measurer===n.measurer&&l.cache===n.cache&&l.styleCascade===n.styleCascade&&l.numberingIndex===n.numberingIndex;if(d&&i.hitsFingerprint===o)return {memo:i,allHits:i.allHits,reused:true};if(a=d?bp(t):null,a!==null&&i.identityFingerprint===a)return i.hitsFingerprint=o,i.allHits=t,{memo:i,allHits:t,reused:true}}let s={hitsFingerprint:o,identityFingerprint:a??bp(t),inputFingerprint:r,allHits:t,provisionalMarks:kp(t,n),finalMarks:null,settledReserves:null,reflowSpent:null,pageAttach:new WeakMap,pageReserve:new WeakMap};return pR.set(s,{footnotesPart:n.footnotesPart,endnotesPart:n.endnotesPart,measurer:n.measurer,cache:n.cache,styleCascade:n.styleCascade,numberingIndex:n.numberingIndex}),e.notes=s,{memo:s,allHits:t,reused:false}}function gF(e,t){return t>=e.range.start&&t<e.range.end}var mR=new WeakMap;function TR(e){let t=mR.get(e);if(t)return t;let n=[],r=o=>{for(let a of o){if(a.kind==="paragraph"){n.push(a);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)r(s.blocks);}};return r(e),mR.set(e,n),n}var gR=new WeakMap;function Pp(e){let t=gR.get(e);if(t)return t;let n=new Map;for(let r of e){let o=n.get(r.paragraphId);o?o.push(r):n.set(r.paragraphId,[r]);}return gR.set(e,n),n}var hR=new WeakMap;function ns(e,t,n){let r=TR(e.fragments);if(!n)return t.filter(s=>r.some(l=>Zn(l,s.paragraphId,s.atomOffset)));let o=hR.get(e.fragments);if(o&&o.refIndex===n)return o.result;let a=[],i=new Set;for(let s of r)for(let l of vr(s)){let d=n.get(l);if(d)for(let c of d)i.has(c)||Zn(s,l,c.atomOffset)&&(i.add(c),a.push(c));}return hR.set(e.fragments,{refIndex:n,result:a}),a}function kR(){let e=new Map;return {get(t,n,r,o,a,i,s){let d=`${t?.name??"none"}\0${o}\0${n}\0${r}\0${a}`,c=e.get(d);if(c)return c;let u=Fd(t,n,r,i,o,a);return e.set(d,u),u.fallbackReason&&s.push(u.fallbackReason),u}}}function yR(e){return e==="sectEnd"||e==="docEnd"}var bR=new WeakMap;function OR(e){let t=bR.get(e);return t||(t=new Map,bR.set(e,t)),t}function CR(e,t,n,r,o,a,i,s){if(e)return e.get(t,n,r,o,a,i,s);let l=Fd(t,n,r,i,o,a);return l.fallbackReason&&s.push(l.fallbackReason),l}function hF(e,t){let n=[];for(let r of e){if(n.length>=Oa)break;n.push({...r,sectionIndex:t.get(r.paragraphId)??0});}return n}function ho(e,t){return e.footnotePropsBySection[t]??e.footnotePropsBySection[0]??e.documentFootnoteProps}function wp(e,t){return e.endnotePropsBySection[t]??e.endnotePropsBySection[0]??e.documentEndnoteProps}function vp(e,t){return {measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:e.defaultTabStopPt,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,projectLink:e.projectLink,projectLinkForPart:e.projectLinkForPart,projectFieldLink:e.projectFieldLink,documentProperties:e.documentProperties,refFields:e.refFields,noteMarks:t,drawingsForPart:e.drawingsForPart}}function yF(e,t){let n="FootnoteReference";if(!t)return {...wn,verticalAlign:"superscript"};let r=Yn([],[{localName:"rStyle",attributes:{val:n}}],t);return Le(r,t.themeFonts)}function bF(e,t,n,r){let o=new Set;for(let c of e.values())c&&c.length>0&&o.add(c);let a=Math.max(t.footnotePropsBySection.length,t.endnotePropsBySection.length,1,...n.map(c=>c.sectionIndex+1),...r.map(c=>c.sectionIndex+1)),i=false;for(let c=0;c<a;c+=1){let u=ho(t,c);if(u.numRestart==="eachPage"){i=true;for(let p=0;p<Sp;p+=1){let m=nn(u.numFmt,u.numStart+p);m.length>0&&o.add(m);}}let f=wp(t,c);if(f.numRestart==="eachPage"){i=true;for(let p=0;p<Sp;p+=1){let m=nn(f.numFmt,f.numStart+p);m.length>0&&o.add(m);}}}if(!i||o.size===0)return;let s=yF("footnote",t.styleCascade),l,d=-1;for(let c of o){let u=t.measurer.measure(c,s);(u>d+.001||Math.abs(u-d)<=.001&&c.length>(l?.length??0))&&(l=c,d=u);}return l}function FR(e,t,n){let r=to("footnote",e,s=>ho(n,s)),o=to("endnote",t,s=>wp(n,s)),a=new Map;for(let s of r)a.set(io("footnote",s.noteId),s.mark);for(let s of o)a.set(io("endnote",s.noteId),s.mark);let i=bF(a,n,e,t);return {marks:a,...i?{reservedMarkText:i}:{}}}function xF(e,t){if(t.marks.size===0)return e;let n=false,r=e.pages.map(o=>{if(!SF(o.fragments))return o;let a=MR(o.fragments,t);return a===o.fragments?o:(n=true,{...o,fragments:a})});return n?{revision:e.revision,pages:r}:e}var xR=new WeakMap;function SF(e){let t=xR.get(e);if(t!==void 0)return t;let n=false,r=o=>{for(let a of o){if(n)return;if(a.kind==="paragraph"){for(let i of a.lines)for(let s of i.spans)if(s.projected&&s.noteNav?.direction==="to-note"){n=true;return}continue}for(let i of a.rows)for(let s of i.cells)r(s.blocks);}};return r(e),xR.set(e,n),n}function MR(e,t){let n=false,r=e.map(o=>{if(o.kind==="paragraph"){let s=RF(o,t);return s!==o&&(n=true),s}let a=false,i=o.rows.map(s=>{let l=false,d=s.cells.map(c=>{let u=MR(c.blocks,t);return u===c.blocks?c:(l=true,{...c,blocks:u})});return l?(a=true,{...s,cells:d}):s});return a?(n=true,{...o,rows:i}):o});return n?r:e}function RF(e,t){let n=false,r=e.lines.map(o=>{let a=PF(o,t);return a!==o&&(n=true),a});return n?{...e,lines:r}:e}function PF(e,t){let n=false,r=e.spans.map(o=>{let a=wF(o,t);return a!==o&&(n=true),a});return n?{...e,spans:r}:e}function wF(e,t){if(!e.projected||e.noteNav?.direction!=="to-note")return e;let n=t.marks.get(e.noteNav.scopeId);if(n===void 0)return e;let r=n??"";return e.text===r?e:{...e,text:r}}function vF(e){return e.footnotes?Math.max(0,Math.min(e.contentBox.height,e.footnotes.box.y-e.contentBox.y)):e.contentBox.height}function BR(e){return !(e.noteStream==="footnote-drain"||e.fragments.length===0&&(e.footnotes?.notes.length??0)>0)}function IF(e){for(let t=e.length-1;t>=0;t-=1)if(BR(e[t]))return t;return Math.max(0,e.length-1)}function Ip(e,t,n,r,o,a,i,s){let l=new Map(a),d=t.filter(j=>j.noteKind==="footnote"),c=e.contentBox.width,u=vp(n,r),f=[],p=0,m=vR,g=a.size>0?"continuationSeparator":"separator",h=Math.max(0,e.contentBox.height),y=j=>CR(s?.separatorCache,n.footnotesPart,j,c,"footnote",h,u,i),x=y(g),w=Ji(e),T=Math.max(0,e.contentBox.height-w-x.flowHeight),F=Ca(e.contentBox.height,x.flowHeight),C=s?.reserveColumnBudget?F:T,P={fullContentHeight:Math.max(0,e.contentBox.height-x.flowHeight),reasons:i},S=s?.reserveBandOf?g==="separator"?F:Ca(e.contentBox.height,y("separator").flowHeight):0,R=s?.reserveBandOf?Ld(e):0;for(let[j,L]of a){let N=j.match(/^(footnote|endnote):(-?\d+)$/);if(!N||N[1]!=="footnote")continue;let _=Number(N[2]),W=Math.max(0,C-p);if(L.height<=W+.001)f.push({noteKind:"footnote",noteId:_,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:L.height},fragments:L.fragments}),p+=L.height,l.delete(j);else {let q=es({fragments:L.fragments,flowHeight:L.height},W,P);q.head.length>0&&(f.push({noteKind:"footnote",noteId:_,scopeId:j,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:q.headHeight},fragments:q.head}),p+=q.headHeight),q.tail.length>0?l.set(j,{fragments:q.tail,height:q.tailHeight,mark:null}):l.delete(j);}}let k;for(let j of d){if(f.length>=Oa){i.push("note-count-limit");break}let L=s?.reserveBandOf?.(j);if(k!==void 0&&L&&L.evictable&&L.bottom>k+.001)continue;let N=Ui(n.footnotesPart,j.noteId,c,u,s?.noteLayoutCache);if(!N){i.push("missing-note-body");continue}let _=r.marks.get(io("footnote",j.noteId))??null,W=L?Math.min(C,Math.max(0,e.contentBox.height-Math.max(14,L.bottom)-x.flowHeight)):C,q=Math.max(0,W-p);if(L&&L.evictable&&s?.evictionAllowed!==false&&N.flowHeight>q+.001&&N.flowHeight<=S-(L.bottom-L.blockTop)+.001&&L.top>R+.001&&L.top>=14){k=k===void 0?L.top:Math.min(k,L.top);continue}if(m-=N.fragments.length,m<0){i.push("note-area-fragment-limit");break}if(N.flowHeight<=q+.001)f.push({noteKind:"footnote",noteId:j.noteId,scopeId:N.scopeId,mark:j.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:N.flowHeight},fragments:N.fragments}),p+=N.flowHeight;else {let X=es(N,q,P);X.head.length>0&&(f.push({noteKind:"footnote",noteId:j.noteId,scopeId:N.scopeId,mark:j.customMarkFollows?null:_,box:{x:e.contentBox.x,y:0,width:c,height:X.headHeight},fragments:X.head}),p+=X.headHeight),X.tail.length>0&&l.set(N.scopeId,{fragments:X.tail,height:X.tailHeight,mark:null});}}if(f.length===0&&a.size===0)return {area:void 0,nextCarry:l,evictionTopPt:k};let v=x.flowHeight,b=v+p,H=Zi(e.fragments),D;o==="beneathText"?D=e.contentBox.y+Math.max(w,Math.min(H,e.contentBox.height-b)):(D=e.contentBox.y+e.contentBox.height-b,D=Math.max(D,e.contentBox.y+w));let V=D+v,E=f.map(j=>{let L={...j,box:{...j.box,y:V}};return V+=j.box.height,L}),O=Md(x,e.contentBox.x,c,D);return {area:{kind:"footnotes",placement:o==="beneathText"?"beneathText":"pageBottom",box:{x:e.contentBox.x,y:D,width:c,height:b},separator:{kind:g,box:O,fragments:x.fragments,synthetic:x.synthetic,...x.ruleStyle!==void 0?{ruleStyle:x.ruleStyle}:{}},notes:E},nextCarry:l,evictionTopPt:k}}function ER(e,t){let n=Math.min(Math.max(t,0),e.length-1);for(;n>0&&e[n].noteStream!==void 0;)n-=1;return n}function TF(e){return t=>{let n=np(e,t.sectionAnchorIndex,t.landingIndex,t.template.box);return kF(t.template,t.landingIndex,t.noteStream,n)}}function kF(e,t,n,r){let o=r?{x:e.contentBox.x,y:e.box.y+r.insets.top,width:e.contentBox.width,height:r.insets.height}:e.contentBox,a=r?r.header:e.header,i=r?r.footer:e.footer;return {id:`page-${t}`,index:t,box:e.box,contentBox:o,fragments:[],...n?{noteStream:n}:{},...a?{header:a}:{},...i?{footer:i}:{},...e.pageFieldSource?{pageFieldSource:{...e.pageFieldSource,pageNumber:e.pageFieldSource.pageNumber+1}}:{}}}function OF(e,t){let n=null,r=false,o=e.map((a,i)=>{if(a.noteStream===void 0)return n=a.index,a;if(n===null)return a;let s=np(t,n,i,a.box);if(!s)return a;let l=a.box.y+s.insets.top;if(l===a.contentBox.y&&s.insets.height===a.contentBox.height&&s.header?.variant===a.header?.variant&&s.footer?.variant===a.footer?.variant)return a;let c={...a.contentBox,y:l,height:s.insets.height},u=l+c.height,f=a.contentBox.y+a.contentBox.height,p=CF(a,l-a.contentBox.y,u-f);if(!p.fits(l,u))return a;r=true;let{header:m,footer:g,...h}=a;return {...h,contentBox:c,...p.footnotes?{footnotes:p.footnotes}:{},...p.endnotes?{endnotes:p.endnotes}:{},...s.header?{header:s.header}:{},...s.footer?{footer:s.footer}:{}}});return r?o:[...e]}function SR(e,t){if(t===0)return e;let n=r=>({...r,y:r.y+t});return {...e,box:n(e.box),...e.separator?{separator:{...e.separator,box:n(e.separator.box)}}:{},notes:e.notes.map(r=>({...r,box:n(r.box)}))}}function CF(e,t,n){let r=i=>i.placement==="pageBottom"?n:t,o=e.footnotes?SR(e.footnotes,r(e.footnotes)):void 0,a=e.endnotes?SR(e.endnotes,r(e.endnotes)):void 0;return {...o?{footnotes:o}:{},...a?{endnotes:a}:{},fits(i,s){let l=d=>d===void 0||d.box.y>=i-.001&&d.box.y+d.box.height<=s+.001;return l(o)&&l(a)}}}function Tp(e,t){let n=new Set;for(let r of TR(e.fragments))n.add(t.get(r.paragraphId)??0);return [...n].sort((r,o)=>r-o)}function LR(e,t,n){for(let r=e.length-1;r>=0;r-=1)if(Tp(e[r],n).includes(t))return r;return Math.max(0,e.length-1)}function FF(e,t,n){let r=LR(e,t,n);for(let o=r+1;o<e.length;o+=1){let a=e[o];if(a.noteStream==="footnote-drain"||a.noteStream==="endnote-overflow"||a.fragments.length===0&&(a.footnotes?.notes.length??0)>0)continue;let i=Tp(a,n);if(i.length!==0&&!i.includes(t))return o}return e.length}function MF(e,t){let n=iR(e);return [...pr({revision:t,pages:n}).pages]}function BF(e,t,n,r,o,a,i,s){let l=new Map(a),d=[];if(t.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};let c=e.contentBox.width,u=vp(n,r),f=s?.separatorKind??"separator",p=O=>O==="footnote"?n.footnotesPart:n.endnotesPart,m=n.endnotesPart??n.footnotesPart,g=Math.max(0,e.contentBox.height),h=CR(s?.separatorCache,m,f,c,"endnote",g,u,i),y=h.flowHeight,x=Zi(e.fragments),w=e.endnotes?Math.max(x,e.endnotes.box.y-e.contentBox.y+e.endnotes.box.height):x,T=vF(e),F=Math.max(0,T-w-y),M={fullContentHeight:Math.max(0,T-y),reasons:i},P=[],S=0,R=vR;for(let[O,A]of a){let j=O.match(/^(footnote|endnote):(-?\d+)$/);if(!j)continue;let L=j[1],N=Number(j[2]),_=Math.max(0,F-S);if(A.height<=_+.001)P.push({noteKind:L,noteId:N,scopeId:O,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:A.height},fragments:A.fragments}),S+=A.height,l.delete(O);else {let W=es({fragments:A.fragments,flowHeight:A.height},_,M);W.head.length>0&&(P.push({noteKind:L,noteId:N,scopeId:O,mark:null,continuation:true,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),S+=W.headHeight),W.tail.length>0?l.set(O,{fragments:W.tail,height:W.tailHeight,mark:null}):l.delete(O);}}for(let O=0;O<t.length;O+=1){let A=t[O];if(P.length>=Oa){i.push("note-count-limit"),d.push(...t.slice(O));break}let j=p(A.noteKind),L=Ui(j,A.noteId,c,u,s?.noteLayoutCache);if(!L){i.push("missing-note-body");continue}let N=r.marks.get(io(A.noteKind,A.noteId))??null,_=Math.max(0,F-S);if(R-=L.fragments.length,R<0){i.push("note-area-fragment-limit"),d.push(...t.slice(O));break}if(L.flowHeight<=_+.001)P.push({noteKind:A.noteKind,noteId:A.noteId,scopeId:L.scopeId,mark:A.customMarkFollows?null:N,box:{x:e.contentBox.x,y:0,width:c,height:L.flowHeight},fragments:L.fragments}),S+=L.flowHeight;else {let W=es(L,_,M);W.head.length>0&&(P.push({noteKind:A.noteKind,noteId:A.noteId,scopeId:L.scopeId,mark:A.customMarkFollows?null:N,box:{x:e.contentBox.x,y:0,width:c,height:W.headHeight},fragments:W.head}),S+=W.headHeight),W.tail.length>0&&l.set(L.scopeId,{fragments:W.tail,height:W.tailHeight,mark:null}),d.push(...t.slice(O+1));break}}if(P.length===0&&a.size===0)return {area:void 0,nextCarry:l,remainingRefs:d};if(P.length===0)return {area:void 0,nextCarry:l,remainingRefs:d};let k=e.contentBox.y+w,v=k+y,b=P.map(O=>{let A={...O,box:{...O.box,y:v}};return v+=O.box.height,A}),H=Md(h,e.contentBox.x,c,k),D=y+S,V=Math.max(0,T-w),E=Math.min(D,V);return {area:{kind:"endnotes",placement:o,box:{x:e.contentBox.x,y:k,width:c,height:E},separator:{kind:f,box:H,fragments:h.fragments,synthetic:h.synthetic,...h.ruleStyle!==void 0?{ruleStyle:h.ruleStyle}:{}},notes:b},nextCarry:l,remainingRefs:d}}function EF(e,t,n,r,o,a,i,s,l){let d=e,c=t,u=e[ER(e,e.length-1)].index;for(;c.size>0&&a.remaining>0;){let f=d[d.length-1],p=l({template:f,landingIndex:d.length,noteStream:"footnote-drain",sectionAnchorIndex:u}),m=Ip(p,[],n,r,"pageBottom",c,o,{separatorCache:i,noteLayoutCache:s}),g=m.area?.notes.length??0;if(c=m.nextCarry,g===0){o.push("note-overflow-stalled"),m.area&&(d=[...d,{...p,footnotes:m.area}],a.remaining-=1);break}d=[...d,{...p,footnotes:m.area}],a.remaining-=1;}return c.size>0&&!o.includes("note-overflow-stalled")&&o.push("note-overflow-page-limit"),{pages:d,carry:c}}function LF(e,t,n,r,o,a="endnote-overflow"){let i=r({template:n,landingIndex:t,noteStream:a,sectionAnchorIndex:o});return {pages:[...e.slice(0,t),i,...e.slice(t)],pageIndex:t}}function RR(e,t,n){if(n<=t||t>=e.length)return e;let r=Math.min(n,e.length),o=e[t],a=o.pageFieldSource?.pageNumber??t+1,i=o.pageFieldSource?.format,s=r-t,l=[...e];for(let d=t;d<r;d+=1){let c=l[d];l[d]={...c,pageFieldSource:{pageNumber:a+(d-t),sectionPageCount:s,...i?{format:i}:{}}};}return l}function PR(e,t,n,r,o,a,i,s,l){if(n.length===0||e.length===0)return e;let d=e[ER(e,t)].index,c=[...e],u=[...n],f=new Map,p=t,m=0,g="separator",h=l?.stopBeforeIndex??Number.POSITIVE_INFINITY,y=l?.sectionStartIndex??t,x=l?.stopBeforeIndex!==void 0,w=l?.separatorCache;for(;u.length>0||f.size>0;){if(p>=c.length||p>=h){if(s.remaining<=0){i.push("note-overflow-page-limit");break}let M=c[Math.min(Math.max(p,1),c.length)-1]??c[c.length-1],P=Math.min(p,h,c.length),S=LF(c,P,M,l.mint,d,"endnote-overflow");c=S.pages,p=S.pageIndex,x&&(h=P+1),m+=1,s.remaining-=1;}let T=c[p];if(!BR(T)){p+=1;continue}let F=BF(T,u,r,o,a,f,i,{separatorKind:g,...w?{separatorCache:w}:{},...l.noteLayoutCache?{noteLayoutCache:l.noteLayoutCache}:{}});f=F.nextCarry,u=F.remainingRefs;let C=F.area?.notes.length??0;if(F.area){let M=c[p];c[p]={...M,endnotes:M.endnotes?{...F.area,notes:[...M.endnotes.notes,...F.area.notes],box:{...F.area.box,y:M.endnotes.box.y,height:M.endnotes.box.height+F.area.box.height}}:F.area};}else {if(f.size===0&&u.length===0)break;if(!F.area&&f.size===0&&u.length>0){p+=1,g="separator";continue}}if(C===0&&(f.size>0||u.length>0)&&T.fragments.length===0&&T.noteStream==="endnote-overflow"){i.push("note-overflow-stalled");break}if(f.size>0||u.length>0){g="continuationSeparator",p+=1;continue}break}return (u.length>0||f.size>0)&&(i.includes("note-overflow-stalled")||i.push("note-overflow-page-limit")),x?c=RR(c,y,Math.min(h,c.length)):m>0&&(c=RR(c,y,c.length)),c}function NR(e,t,n,r,o,a){let i=o??null,s=new Map,l=[],d=new Map,c=Pp(t),u=kR(),f=OR(r),p=vp(n,r),m=w=>w.noteKind==="footnote"&&!yR(ho(n,w.sectionIndex).pos),g=t.some(m),h=w=>ns(w,t,c).filter(m),y=(w,T,F)=>nR(s,w,Math.min(T,F));for(let w=0;w<e.pages.length;w+=1){let T=e.pages[w],F=yp(T),M=ns(F,t,c).filter(N=>N.noteKind==="footnote"),P=M[0]?.sectionIndex??0,S=ho(n,P),R=e.pages[w+1],k=a?a.get(T.index)??0:void 0,v=Ca(F.contentBox.height,0),b=N=>g?aR({bodyPage:F,nextPage:R,existingAreaHeight:N,usedReservePt:k,pageBottomRefsOf:h,footnotesPart:n.footnotesPart,opts:p,plainSeparatorHeight:u.get(n.footnotesPart,"separator",F.contentBox.width,"footnote",Math.max(0,F.contentBox.height),p,l).flowHeight,noteLayoutCache:f}):0;if(yR(S.pos)){y(T.index,b(0),v);continue}if(i&&d.size===0){let N=i.pageReserve.get(T);if(N&&N.marks===r&&xp(M,N.pageRefs)){for(let _ of N.reasons)l.push(_);y(T.index,Math.max(N.reserve,b(N.areaHeight)),v);continue}}let H=d.size===0,D=l.length,{area:V,nextCarry:E,evictionTopPt:O}=Ip(F,M,n,r,S.pos,d,l,{reserveColumnBudget:true,reserveBandOf:N=>Qi(F,N),separatorCache:u,noteLayoutCache:f,evictionAllowed:!R||R.contentBox.width===F.contentBox.width&&R.contentBox.height===F.contentBox.height});d=E;let A=O!==void 0?Math.max(0,F.contentBox.height-O-qi):0,j=V?.box.height??0,L=Math.min(Math.max(j,A),v);i&&H&&d.size===0&&i.pageReserve.set(T,{pageRefs:M,marks:r,reserve:L,areaHeight:j,reasons:l.slice(D)}),y(T.index,Math.max(L,b(j)),v);}let x=true;for(let w of e.pages){let T=s.get(w.index)??0;if(T<=0)continue;if(Ji(w)+T>w.contentBox.height+.5){x=false;break}}return {reserves:s,stable:x,reasons:l}}function AR(e,t,n,r){let o=r?.memo??null,a=[...r?.fallbackReasons??[]],i=r?.paragraphSectionIndex??new Map,s={remaining:IR},l=Pp(t),d=kR(),c=TF(e),u=[],f=[];for(let C of e.pages)for(let M of ns(C,t,l)){let P={noteId:M.noteId,sectionIndex:M.sectionIndex,pageIndex:C.index,customMarkFollows:M.customMarkFollows};M.noteKind==="footnote"?u.push(P):f.push(P);}let p=o?[...u,...f].map(C=>`${C.noteId}|${C.sectionIndex}|${C.pageIndex??""}|${C.customMarkFollows?1:0}`).join(";"):"",m;o&&o.finalMarks&&o.finalMarks.sitesFingerprint===p?m=o.finalMarks.marks:(m=FR(u,f,n),o&&(o.finalMarks={sitesFingerprint:p,marks:m}));let g=OR(m),h=new Map,y=new Map,x=[],w=e.pages.map(C=>{let M=ns(C,t,l),P=M.filter(E=>E.noteKind==="footnote"),S=M.filter(E=>E.noteKind==="endnote");for(let E of S)if(wp(n,E.sectionIndex).pos==="sectEnd"){let A=y.get(E.sectionIndex)??[];A.push(E),y.set(E.sectionIndex,A);}else x.push(E);for(let E of P){let O=ho(n,E.sectionIndex);if(O.pos==="sectEnd"){let A=y.get(E.sectionIndex)??[];A.push(E),y.set(E.sectionIndex,A);}else O.pos==="docEnd"&&x.push(E);}if(o&&h.size===0){let E=o.pageAttach.get(C);if(E&&E.marks===m&&xp(P,E.pageRefs)){for(let O of E.reasons)a.push(O);return E.attached}}let R=yp(C),k=P[0]?.sectionIndex??0,v=ho(n,k),b,H=h.size===0,D=a.length;if(v.pos==="pageBottom"||v.pos==="beneathText"){let E=P.filter(A=>{let j=ho(n,A.sectionIndex).pos;return j==="pageBottom"||j==="beneathText"}),O=Ip(R,E,n,m,v.pos,h,a,{separatorCache:d,noteLayoutCache:g});b=O.area,h=O.nextCarry;}let V=b?{...R,footnotes:b}:R;if(o&&H&&h.size===0){let E={pageRefs:P,marks:m,attached:V,reserve:0,reasons:a.slice(D)};if(o.pageAttach.set(V,E),V!==C){let O=o.pageReserve.get(C);O&&o.pageReserve.set(V,O);}}return V}),T=w.length;if(h.size>0){let C=EF(w,h,n,m,a,s,d,g,c);w=C.pages,h=C.carry;}if(y.size>0&&w.length>0){let C=[...y.keys()].sort((M,P)=>M-P);for(let M of C){let P=y.get(M),S=LR(w,M,i),R=FF(w,M,i),k=S;for(let v=0;v<=S;v+=1)if(Tp(w[v],i).includes(M)){k=v;break}w=PR(w,S,P,n,m,"sectEnd",a,s,{stopBeforeIndex:R,sectionStartIndex:k,separatorCache:d,noteLayoutCache:g,mint:c});}}return x.length>0&&w.length>0&&(w=PR(w,IF(w),x,n,m,"docEnd",a,s,{separatorCache:d,noteLayoutCache:g,mint:c})),w.length!==T&&(w=OF(w,e),w=MF(w,e.revision)),{layout:xF({revision:e.revision,pages:w},m),fallbackReasons:a,noteMarks:m}}function NF(e,t,n){return (t==="all-markup"&&n===void 0?chunkNJNFJPGB_cjs.Qe(e):chunkNJNFJPGB_cjs.Re(e,{includeReference:(a,i)=>lR(i,t,n),projectionKey:`${t};${n?.cacheKey??""}`,ancestryKey:dR})).map(a=>({noteKind:a.noteKind,noteId:a.noteId,paragraphId:a.paragraphId,atomOffset:a.atomOffset,customMarkFollows:a.customMarkFollows}))}function DR(e,t,n,r,o){let a=n.displayMode??ve,i=n.revisionAuthorFilter,s=NF(e,a,i);if(s.length===0)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),o({...n,noteMarks:void 0,pageBottomReserves:void 0});let l=US(e,t,a,i,n.session),d=hF(s,l),c=mF(n.session,d,r),u=c.memo,f=c.allHits,p=u?.provisionalMarks??kp(f,r),m=n.session?.notePageBottomReserves,g=m?Ir(m):new Map,h=[],y=o({...n,noteMarks:p,pageBottomReserves:g}),x=Fa(g),w=c.reused&&u?.settledReserves&&u.settledReserves.part===e&&u.settledReserves.fingerprint===x?u.settledReserves:null;if(w)h=[...w.reasons];else {let F=new Set([x]),C=u&&u.reflowSpent&&u.reflowSpent.part===e?u.reflowSpent:{part:e,adopted:0};u&&(u.reflowSpent=C);let M=0,P=m&&g.size>0?wR:Rp,S=y.pages.length,R=Math.max(8,Math.ceil(S/16)),k=0;for(let v=0;v<P;v+=1){let b=NR(y,f,r,p,u,g);if(h=[...b.reasons],b.stable&&Ed(b.reserves,g))break;if(C.adopted>=fR){h.push("note-reflow-exhausted");break}if(k>=R){h.push("note-reflow-exhausted");break}let H=Ir(b.reserves);if(Ed(H,g)){h.push("note-reflow-exhausted");break}let D=Fa(H);if(F.has(D)){H=rR(g,b.reserves);let V=Fa(H);if(Ed(H,g)||F.has(V)){h.push("note-reflow-exhausted");break}}g=H,F.add(Fa(g)),C.adopted+=1,M+=1,y=o({...n,noteMarks:p,pageBottomReserves:g}),k=y.pages.length>S?k+1:0,S=y.pages.length,v===P-1&&h.push("note-reflow-exhausted");}u&&(M===0||C.adopted>=fR)&&(u.settledReserves={part:e,fingerprint:Fa(g),reasons:[...h]});}let T=AR(y,f,r,{fallbackReasons:h,paragraphSectionIndex:l,memo:u});return n.session&&(n.session.previous=T.layout,n.session.notePageBottomReserves=Ir(g)),T.layout}function kp(e,t){let n=[],r=[];for(let o of e){let a={noteId:o.noteId,sectionIndex:o.sectionIndex,customMarkFollows:o.customMarkFollows};o.noteKind==="footnote"?n.push(a):r.push(a);}return FR(n,r,t)}function _R(e,t){let n=e.projectLink??t.projectLink,r=e.projectFieldLink??t.projectFieldLink,o=e.documentProperties??t.documentProperties,a=e.refFields??t.refFields,i=e.displayMode??t.displayMode,s=e.revisionAuthorFilter??t.revisionAuthorFilter;return {...e,...n?{projectLink:n}:{},...r?{projectFieldLink:r}:{},...o?{documentProperties:o}:{},...a?{refFields:a}:{},...i?{displayMode:i}:{},...s?{revisionAuthorFilter:s}:{}}}var HR=null;function WR(e,t){let n=HR;if(n&&n.base===e&&n.token===t)return n.producer;let r=`${e??"unversioned-measurer"}|cc:${t}`;return HR={base:e,token:t,producer:r},r}var zR=new WeakMap,jR=null;function AF(e,t,n,r,o,a,i){return e!=null&&e.base===t&&e.noteMarks===n&&e.defaultTabStopPt===r&&e.displayMode===o&&e.authorFilter===a&&e.pageNumberFormat===i}function GR(e,t,n,r,o,a,i){let s=t?zR.get(t):jR;if(AF(s,e,n,r,o,a,i))return s.producer;let l=(e??"unversioned-measurer")+(t?`|sc:${t.cacheToken}`:"")+(n?`|nm:${Hb(n)}`:"")+(r!==void 0?`|dts:${r}`:"")+(o===ve?"":`|rev:${o}`)+(a?`|reviewers:${a.cacheKey}`:"")+(i!==void 0?`|pnf:${i}`:""),d={base:e,noteMarks:n,defaultTabStopPt:r,displayMode:o,authorFilter:a,pageNumberFormat:i,producer:l};return t?zR.set(t,d):jR=d,l}var DF={kind:"covered",id:"hashed",paragraphId:"covered",fragmentIndex:"covered",range:"hashed",props:"hashed",spacing:"hashed",indent:"hashed",bottomBorder:"hashed",borders:"hashed",shading:"hashed",shadingBox:"hashed",markRevisions:"hashed",markRevision:"covered",markFormatRevision:"hashed",marker:"hashed",tabStops:"hashed",lines:"hashed",box:"hashed"},_F={kind:"covered",id:"hashed",tableId:"hashed",fragmentIndex:"hashed",nestingDepth:"hashed",columnEdges:"hashed",rows:"hashed",box:"hashed"};function XR(e){return Object.keys(e).filter(t=>e[t]==="hashed")}var HF=XR(DF),zF=XR(_F),VR=new WeakMap;function $R(e){let t=VR.get(e);if(t!==void 0)return t;let n=e.kind==="table"?JSON.stringify(zF.map(r=>e[r])):JSON.stringify(HF.map(r=>e[r]));return VR.set(e,n),n}function KR(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1){let r=e[n],o=t[n];if(r!==o&&$R(r)!==$R(o))return false}return true}function Op(e,t){if(e.length!==t.length)return false;for(let n=0;n<e.length;n+=1)if(e[n]!==t[n])return false;return true}var YR=Object.freeze([]),UR=new Map;function qR(e,t){if(e===t)return true;if(e.size!==t.size)return false;for(let[n,r]of e)if(t.get(n)!==r)return false;return true}function Dd(){return {previous:null,checkpoints:[],keys:[],context:"",producer:"",parityDependent:false,startPageParity:0,prepass:null,startLineCounter:0,endLineCounter:0,endCursorY:0,endSpaceAfter:0,endsOpenPage:true,stats:{placed:0,total:0,reusedPages:0,fullPasses:0},balanceLimit:null,multi:null,notePageBottomReserves:null,notes:null}}function ZR(e,t,n){return Ce([...e].map(([r,o])=>`${n}${r}=${o.flowHeight}`).sort())}function eP(e){return e?`hf:${e.titlePage?1:0}${e.evenAndOddHeaders?1:0};h:${ZR(e.headers,false,"h")};f:${ZR(e.footers,false,"f")}`:""}function _d(e,t,n){if(e.sectionFurniture)return e.sectionFurniture[t];if(t===n-1)return e.furniture}function jF(e,t){let n=e.map((r,o)=>{let a=ao(r.properties),i=_d(t,o,e.length),s=r.properties.pageNumbering,l=s?`pn:${Ce([s.start??"",s.fmt??"",s.chapStyle??"",s.chapSep??""].map(String))}`:"pn:",d=r.properties.columns,c=`cols:${d.count},${d.gapTwips},${d.equalWidth===false?0:1},${d.separator?1:0};${(d.definitions??[]).map(u=>`${u.widthTwips}/${u.gapTwips}`).join(",")}`;return Ce([r.properties.breakType,a.width,a.height,a.margin.top,a.margin.right,a.margin.bottom,a.margin.left,a.headerDistance??36,a.footerDistance??36,eP(i),l,c].map(String))});return Ce(n)}function WF(e,t,n){if(!e)return null;let r=e.multi;if(r&&r.structureKey===t&&r.sections.length===n)return r;let o={structureKey:t,sections:Array.from({length:n},()=>Dd()),spans:[],previousRemapped:[],previousFinalized:null,previousPageCount:-1,previousPageRefToken:""};return e.multi=o,o}function GF(e){return e!=="continuous"}function VF(e,t){return e.width===t.width&&e.height===t.height}function $F(e){let t=e.contentBox.y-e.box.y;return {top:t,bottom:e.box.height-t-e.contentBox.height,height:e.contentBox.height}}function XF(e,t){if(t.fragments.length===0&&!t.columnSeparators?.length&&!t.anchoredDrawings?.length)return e;let n=e.anchoredDrawings||t.anchoredDrawings?Object.freeze([...e.anchoredDrawings??[],...t.anchoredDrawings??[]]):void 0;return {...e,fragments:t.fragments.length>0?[...e.fragments,...t.fragments]:e.fragments,...(e.columnSeparators?.length||t.columnSeparators?.length)&&{columnSeparators:[...e.columnSeparators??[],...t.columnSeparators??[]]},...n?{anchoredDrawings:n}:{}}}function JR(e,t,n){e.previous=t,e.startLineCounter=0,e.endLineCounter=n,e.keys=[],e.checkpoints=[],e.context="",e.producer="";}var QR=new WeakMap;function KF(e,t,n,r,o,a){let i=QR.get(e);if(i&&i.globalIndex===t&&i.sheetY===n&&i.pageNumber===r&&i.sectionPageCount===o&&i.format===a)return i.published;let s=po(e,t,n),l=qo([s],r,o,a)[0];return QR.set(e,{globalIndex:t,sheetY:n,pageNumber:r,sectionPageCount:o,format:a,published:l}),l}function tP(e,t,n,r,o){let{session:a,...i}=r,s=jF(t,r),l=WF(a,s,t.length),d=i.cache&&i.retainKeys!==false?i.retainKeys??(i.cache.retentionPassDue?.()??true?new Set:false):false,c=()=>{d&&!i.retainKeys&&i.cache?.retain(d);},u=[],f=[],p=[],m=0,g=0,h=0,y=0,x=0,w=0,T=0,F=true,C=[],M=null,P="",S=1;for(let b=0;b<t.length;b+=1){let H=t[b],D=e.slice(H.blockStart,H.blockEndExclusive),V=ao(H.properties),E=_d(r,b,t.length),O=u.length,A=m,j=l?.spans[b],L=eP(E);if(D.length===0&&!GF(H.properties.breakType)){p.push({startIndex:O,pageCount:0,sheetY:A,remappedPages:[],sourcePages:[]});continue}let N=b>0&&H.properties.breakType==="continuous"&&u.length>0&&F&&M!==null&&VF(M,V)&&P===L,_=l?.sections[b],W=H.properties.columns.count>1&&t[b+1]?.properties.breakType==="continuous",q=N?$F(u[u.length-1]):void 0,X=H.properties.pageNumbering?.fmt,Y=N?u[u.length-1]?.pageFieldSource?.format:void 0,U=N&&!ur("PAGE",Y)?Y:X,z=o(D,n,{...i,retainKeys:d,geometry:V,furniture:E,sectionColumns:H.properties.columns,...W?{balanceColumns:W}:{},lineCounterStart:g,pageIndexStart:N?O-1:O,...N?{flowStartY:w,spaceBeforeCarry:T}:{},...q?{continuedPageInsets:q}:{},...U!==void 0?{bodyPageNumberFormat:U}:{},..._?{session:_}:{}});C.push({startIndex:O,at:z.overflowShellAt}),g=z.lineCounter,w=z.endCursorY,T=z.endSpaceAfter,F=z.endsOpenPage,M=V,P=L,_?(h+=_.stats.placed,y+=_.stats.total):(h+=D.length,y+=D.length);let ae=_!==void 0&&_.stats.placed===0&&_.stats.reusedPages===z.pages.length&&j!==void 0&&j.pageCount===z.pages.length&&j.sourcePages.length===z.pages.length&&j.sourcePages.every((fe,me)=>fe===z.pages[me]),Te=j!==void 0&&j.startIndex===O&&j.sheetY===A&&j.remappedPages.length===z.pages.length,Pe=H.properties.pageNumbering,de=Pe?.start!==void 0?Pe.start:S,Ne=Pe?.fmt,be=j?.remappedPages[0],it=j===void 0||j.remappedPages.length===0||be?.pageFieldSource!==void 0&&be.pageFieldSource.pageNumber===de&&be.pageFieldSource.sectionPageCount===j.remappedPages.length&&be.pageFieldSource.format===Ne,pe;if(N){let fe=u.length-1,me=u[fe],ke=XF(me,z.pages[0]);if(ke!==me){u[fe]=ke;let ut=f.lastIndexOf(me);ut!==-1&&(f[ut]=ke);}let Re=[];for(let ut of z.pages.slice(1)){let mt=po(ut,u.length+Re.length,m);Re.push(mt),m=mt.box.y+mt.box.height+mo;}let Ae=Re.length+1;pe=qo(Re,de+1,Ae,Ne);for(let ut of pe)u.push(ut),f.push(ut);S=de+Ae;}else if(ae&&Te&&it){pe=j.remappedPages,x+=pe.length;for(let fe of pe)u.push(fe),f.push(fe),m=fe.box.y+fe.box.height+mo;S=de+pe.length;}else {let fe=[];for(let me of z.pages){let ke=KF(me,u.length+fe.length,m,de+fe.length,z.pages.length,Ne);fe.push(ke),m=ke.box.y+ke.box.height+mo;}pe=fe;for(let me of pe)u.push(me),f.push(me);S=de+pe.length;}p.push({startIndex:O,pageCount:pe.length,sheetY:A,remappedPages:pe,sourcePages:z.pages});}if(u.length===0){let b=ao(t[0]?.properties??dn),H=o([],n,{...i,retainKeys:d,geometry:b,sectionColumns:t[0]?.properties.columns??dn.columns});c();let D=pr({revision:n,pages:H.pages});return $i(D,(V,E,O)=>H.overflowShellAt(E,O)),l&&(l.spans=[],l.previousRemapped=H.pages,l.previousFinalized=D,l.previousPageCount=D.pages.length,l.previousPageRefToken=yu(H.pages)),a&&(JR(a,D,g),a.stats={placed:0,total:0,reusedPages:0,fullPasses:a.stats.fullPasses+1}),D}let R=pr({revision:n,pages:u}),k=R,v=yu(u);if(l?.previousFinalized&&l.previousPageCount===R.pages.length&&l.previousRemapped.length===f.length&&l.previousPageRefToken===v){let b=l.previousFinalized.pages,H=l.previousRemapped,D=R.pages.map((V,E)=>f[E]===H[E]&&b[E]?b[E]:V);k={revision:n,pages:D};}return l&&(l.spans=p,l.previousRemapped=f,l.previousFinalized=k,l.previousPageCount=k.pages.length,l.previousPageRefToken=v),a&&(JR(a,k,g),a.stats={placed:h,total:y||1,reusedPages:x,fullPasses:a.stats.fullPasses+(h===y&&x===0?1:0)}),$i(k,(b,H,D)=>{let V=C[0];for(let O of C)O.startIndex<=b&&(V=O);return (V??C[C.length-1])?.at(H,D)}),c(),k}function Hd(e=6,t=14){let n=r=>r.fontSizePt/11;return {measure:(r,o)=>r.length*e*n(o)*(o.horizontalScalePercent/100)+r.length*o.characterSpacingPt,lineMetrics:r=>{let o=r.verticalAlign==="baseline"?1:.75,a=t*n(r)*o;return {height:a,baseline:a*.8}}}}var YF=2,nP=new WeakMap,rP=new WeakMap;function Cp(e){if(e===void 0||e.size===0)return "";let t=rP.get(e);if(t!==void 0)return t;let n=[...e].join(",");return rP.set(e,n),n}function UF(e){let t=Cp(e.chrome),n=Cp(e.placeholder),r=Cp(e.suppressed);return t===""&&n===""&&r===""?"":`${t}|${n}|${r}`}function qF(e,t){let n=t.chrome?.has(e)??false,r=t.placeholder?.has(e)??false,o=t.suppressed?.has(e)??false;return !n&&!r&&!o?"":`${n?1:0}${r?1:0}${o?1:0}`}var oP=new WeakMap;function ZF(e,t,n){let r=n.displayMode??ve,o=n.revisionAuthorFilter,a=zt(e,r,o),i=oo(e,a).sections,s=Ia(e),l={...n,producer:WR(n.producer,s),tocFieldChromeParagraphIds:n.tocFieldChromeParagraphIds??qf(e),emptyTocPlaceholderParagraphIds:n.emptyTocPlaceholderParagraphIds??Zf(e),emptyTocSuppressedResultParagraphIds:n.emptyTocSuppressedResultParagraphIds??Jf(e)},d=n.drawingSourceOrder;!d&&n.inlineDrawingLayout&&(d=oP.get(n.inlineDrawingLayout),d||(d=(()=>{let h=new Map;return chunkNJNFJPGB_cjs.eb(e).forEach((y,x)=>{h.set(y.drawingNodeId,x);}),h})(),oP.set(n.inlineDrawingLayout,d)));let c=n.session?nb(d?{...l,drawingSourceOrder:d}:l,a,n.session):Un(d?{...l,drawingSourceOrder:d}:l,a),u=Fi(a,c.listItems,n.notes?{footnotesPart:n.notes.footnotesPart,endnotesPart:n.notes.endnotesPart}:void 0,n.notes?yb(n.notes,i):void 0,r,o),f=u===null?c:{...c,refFields:u},p=h=>{if(i.length>1)return tP(a,i,t,h,Ma);let y=i[0],x=h.geometry??(y?ao(y.properties):di),w=_d(h,0,i.length)??h.furniture,T=y?.properties.pageNumbering,F=Ma(a,t,{...h,geometry:x,furniture:w,sectionColumns:y?.properties.columns??dn.columns,...T?.fmt?{bodyPageNumberFormat:T.fmt}:{}}),C=T,M=ip({revision:F.layout.revision,pages:qo(F.pages,C?.start??1,F.pages.length,C?.fmt)},F.layout),P=pr(M);return $i(P,(S,R,k)=>F.overflowShellAt(R,k)),h.session&&(h.session.multi=null,h.session.previous=P),P},m=h=>{let y=sp(h,e,s);return n.session&&(n.session.previous=y),y};if(!n.notes)return n.session&&(n.session.notes=null,n.session.notePageBottomReserves=null),m(p(f));let g=_R(n.notes,u?{...n,refFields:u}:n);return m(DR(e,i,f,g,p))}function aP(e,t,n,r){let o=`line:${e}:${n}:${t}`;return r===void 0?o:`${o}:occ:${r}`}function yo(e,t,n){let r=n.geometry,o=r.width-r.margin.left-r.margin.right,a=dp(n.sectionColumns??dn.columns,o);if(n.inlineDrawingLayout&&n.drawingExclusionPass===void 0&&!n.drawingExclusionConverged){let B=J=>n.drawingSourceOrder?.get(J),K=Object.freeze({columnCount:a.count,columnGapPt:a.gaps[0]??0,contentWidth:o,columnLefts:a.lefts,columnWidths:a.widths}),Z=new Map,ie=null,Ee=false,De=new Set,Se=n.session?.previous?.pages;if(Se){if(Z=qu(Se,n.inlineDrawingLayout,n.drawingLayoutEpoch,o,n.drawingSourceOrder,K),ie=Ma(e,t,{...n,drawingExclusionPass:0,drawingExclusionZonesByPage:Z}),ie.pages===Se)return ie;let J=qu(ie.pages,n.inlineDrawingLayout,n.drawingLayoutEpoch,o,n.drawingSourceOrder,K);if(yl(Z,J))return ie;Z=new Map(J),De.add(bl(J));}for(let J=0;J<Zr;J+=1){ie=Ma(e,t,{...n,session:void 0,drawingExclusionPass:J,drawingExclusionZonesByPage:Z});let we=hl(ie.pages,n.inlineDrawingLayout,o,B,K);if(we.size===0){Ee=true,Z=we;break}let ne=bl(we);if(De.has(ne)){Ee=true,Z=we;break}if(De.add(ne),J>0&&yl(Z,we)){Ee=true,Z=we;break}Z=new Map(we);}if(!Ee)for(let J=0;J<YF&&!Ee;J+=1){ie=Ma(e,t,{...n,session:void 0,drawingExclusionPass:Zr+J,drawingExclusionZonesByPage:Z});let we=hl(ie.pages,n.inlineDrawingLayout,o,B,K),ne=bl(we);if(yl(Z,we)||De.has(ne)){Ee=true,Z=we;break}De.add(ne),Z=new Map(we);}if(!Ee)throw new sa(`wrap exclusion reflow did not converge within ${Zr} passes`);return Ma(e,t,{...n,drawingExclusionConverged:true,drawingExclusionZonesByPage:Z})}let i=n.measurer,s=n.cache,l=n.styleCascade,d=n.listItems,c=n.refFields,u=n.defaultTabStopPt,f=n.displayMode??ve,p=n.revisionAuthorFilter,m=f==="all-markup",g=n.tocFieldChromeParagraphIds,h=n.emptyTocPlaceholderParagraphIds,y=n.emptyTocSuppressedResultParagraphIds,x={chrome:g,placeholder:h,suppressed:y},w=UF(x),T=GR(n.producer,l,n.noteMarks,u,f,p,n.bodyPageNumberFormat),F=a.widths[0],C=n.furniture,M=r.headerDistance??36,P=r.footerDistance??36,S=n.pageBottomReserves,R=n.session,k=n.lineCounterStart??0,v=OS(C,M,P),b=n.flowStartY??0,H=n.spaceBeforeCarry??0,D=n.pageIndexStart??0,V=CS({...C?{furniture:C}:{},pageHeight:r.height,marginTop:r.margin.top,marginBottom:r.margin.bottom,headerDistance:M,footerDistance:P,pageIndexStart:D,...n.continuedPageInsets?{continuedPageInsets:n.continuedPageInsets}:{}}),E=Object.freeze(n.bodyPageNumberFormat!==void 0?{format:n.bodyPageNumberFormat}:{}),O=R?.previous?R.previous.pages.length+1:1/0,A=n.columnRegionBottom,j=`|cols:${a.widths.join(",")};${a.gaps.join(",")};${a.separator?1:0}${A!==void 0?`;bal:${A}`:""}`,L=n.continuedPageInsets,N=L?`|cont:${L.top},${L.height}`:"",_=B=>`${r.width}x${r.height}|${r.margin.top},${r.margin.right},${r.margin.bottom},${r.margin.left}|fs:${b},${H}${N}${v}${B}${j}`,W=_(Bd(S,D,O)),q=D&1,X=false,Y=null,U=()=>{X=true;},z=[],ae=MS({...C?{furniture:C}:{},geometry:r,headerDistance:M,footerDistance:P,pageIndexStart:D,contentWidth:o,insetsFor:V,pageCount:()=>z.length}),{pageBox:Te,furnitureFor:Pe,overflowShellAt:de}=ae,Ne=B=>{let K=Math.max(1,V(z.length).height-B);return A!==void 0&&z.length===0?Math.max(1,Math.min(K,A)):K},be=()=>Ne(S?.get(D+z.length)??0),it=()=>Ne(0),pe=n.inlineDrawingLayout!==void 0,fe=vd(n.numberingIndex,l,f,p),me=(B,K)=>{let Z=B.kind==="paragraph"?n.drawingTokenForParagraph?.(B)||n.drawingLayoutToken||"":B.kind==="table"&&n.drawingTokenForParagraph?fS(B,n.drawingLayoutEpoch,n.drawingTokenForParagraph)||n.drawingLayoutToken||"":n.drawingLayoutToken||"",ie=fe.hostedListTokenForParagraph?.(B)??"",Ee=B.kind==="table"?Eh(B,d):d?.get(B.id)?.cacheToken??"",De=Ee===""&&ie===""?"":Ce([Ee,ie]),Se=c===void 0?"":B.kind==="table"?Cb(B,c):c.tokenForParagraph(B.id),J=nP.get(B);if(J&&J.contentWidth===K&&J.producer===T&&J.drawingToken===Z&&J.listToken===De&&J.refToken===Se&&J.drawingContext===pe)return J.entry;let we=Si(Z,pe),ne;if(B.kind==="table")ne={kind:"table",table:B,key:ta({paragraph:B,properties:[...De?[{localName:"list",attributes:{token:De}}]:[],...Se?[{localName:"refFields",attributes:{token:Se}}]:[]],width:K,producer:T,drawingToken:we})};else {let Oe=d?.get(B.id),Xe=eo(B,K,l,Oe),{props:Rt,indent:ze,available:Vt,alignment:kt,spacing:fn,lineSpacing:Zt,contextualSpacing:Cr,styleId:Aa,shading:pn,inheritedRunProperties:Da,markRunProperties:_a}=Xe,Ha=jb(B.children.find(nr=>nr.kind==="paragraphProperties"),l),tr=mi(Xe.tabStops,u),Fr=tr===Xe.tabStops?Xe.tabStopsCacheToken:jr(tr);ne={kind:"paragraph",paragraph:B,props:Rt,indent:ze,available:Vt,alignment:kt,spacing:fn,lineSpacing:Zt,contextualSpacing:Cr,styleId:Aa,borders:Ha,borderGroupKey:Ei({borders:Ha,indent:ze}),shading:pn,inheritedRunProperties:Da,markRunProperties:_a,tabStops:tr,keeps:Wb(Rt),...Oe?{listItem:Oe}:{},key:ta({paragraph:B,properties:[...Rt,...Da,..._a,{localName:"tabStops",attributes:{token:Fr}},...Oe?[{localName:"list",attributes:{token:Oe.cacheToken}}]:[],...ie?[{localName:"txbxList",attributes:{token:ie}}]:[],...Se?[{localName:"refFields",attributes:{token:Se}}]:[]],width:Vt,producer:T,drawingToken:we})};}return nP.set(B,{contentWidth:K,producer:T,drawingToken:Z,listToken:De,refToken:Se,drawingContext:pe,entry:ne}),ne},ke=(n.drawingTokenForParagraph!==void 0||n.drawingLayoutToken!==void 0)&&n.drawingLayoutEpoch===void 0?null:Si(n.drawingLayoutEpoch??"",pe),Re=R?.prepass,Ae=Re!=null&&ke!==null&&Re.drawingEpoch===ke&&Re.producer===T&&Re.contentWidth===F&&Re.styleCascade===l&&Re.listItems===d&&Re.numberingIndex===n.numberingIndex&&Re.tocToken===w&&Re.refToken===(c?.valuesToken??"")&&Re.bodies.length===e.length&&Re.bodies.every((B,K)=>B===e[K]),ut=Ae?Re:mt();function mt(){let B=e.map(ne=>me(ne,F)),K=B.map(ne=>ne.key),Z=B.map(ne=>ne.kind==="paragraph"&&ne.keeps.keepNext),ie=B.map(ne=>ne.kind==="paragraph"?d?.get(ne.paragraph.id)?.markerText:void 0),Ee=B.map(ne=>ne.kind==="paragraph"&&ne.contextualSpacing),De=B.map(ne=>ne.kind==="paragraph"?ne.styleId:null),Se=B.map(ne=>ne.kind==="paragraph"?ne.borderGroupKey:""),J=w===""?[]:B.map(ne=>ne.kind==="paragraph"?qF(ne.paragraph.id,x):""),we=$b(K,{contextualSpacingAt:ne=>Ee[ne],styleIdAt:ne=>De[ne]??null,borderGroupKeyAt:ne=>Se[ne],tocVerdicts:J,markerTextAt:ne=>ie[ne],keepsNextAt:ne=>Z[ne]});return {bodies:e,producer:T,contentWidth:F,styleCascade:l,listItems:d,numberingIndex:n.numberingIndex,drawingEpoch:ke??"",prepared:B,keys:K,paragraphDocumentOrder:nS(B,F,l,f,p),keepsNext:Z,markerTexts:ie,tocToken:w,refToken:c?.valuesToken??"",flowKeys:we}}R&&ke!==null&&!Ae&&(R.prepass=ut);let{prepared:$e,keys:Ut,paragraphDocumentOrder:Tt,keepsNext:kr,flowKeys:qt}=ut,Je=()=>{n.retainKeys!==false&&(n.retainKeys===void 0&&s&&!(s.retentionPassDue?.()??true)||Dh(s,n.retainKeys,Ut,$e.flatMap(B=>B.kind==="table"?[B.table]:[])));},St=R?.previous??null,G=St!==null&&R!==void 0&&R.context===W&&R.producer===T&&(!R.parityDependent||R.startPageParity===q),I=a.count===1&&G,$=0;if(G){let B=Math.min(qt.length,R.keys.length);for(;$<B&&qt[$]===R.keys[$];)$+=1;}let te=0;if(I){let B=Math.min(qt.length,R.keys.length)-$;for(;te<B&&qt[qt.length-1-te]===R.keys[R.keys.length-1-te];)te+=1;}if(G&&$===$e.length&&$e.length===R.keys.length){let B=ip({revision:t,pages:St.pages},St),K=k+(R.endLineCounter-R.startLineCounter);return R.previous=B,R.startLineCounter=k,R.endLineCounter=K,R.startPageParity=q,R.stats={placed:0,total:$e.length,reusedPages:St.pages.length,fullPasses:R.stats.fullPasses},Je(),{layout:B,pages:B.pages,lineCounter:K,endCursorY:R.endCursorY,endSpaceAfter:R.endSpaceAfter,endsOpenPage:R.endsOpenPage,overflowShellAt:de}}let ye=[],Q=0,ge=0,ce=()=>a.lefts[Q],Be=()=>a.widths[Q],bt=()=>({text:{left:ce(),width:Be()},margin:{left:0,width:o},page:{left:-r.margin.left,width:r.width}}),Ke=()=>ye.length>ge,Me=[],je=[],Ye=new Map,le=b,ue=b,ee=0,xe=k,We=H,Nt=[],un=()=>({pageCount:z.length,pageFragments:[...ye],pendingAnchoredDrawings:[...Me],deferredAnchoredDrawings:je.length>0?[...je]:YR,anchorPageDeferCounts:Ye.size>0?new Map(Ye):UR,cursorY:le,lineCounter:xe,previousSpaceAfter:We,flowColumnIndex:ee}),bo=0,La=0,xo=0,Or=b===0;if(I&&$>0&&$<R.checkpoints.length){let B=R.checkpoints[$];z.push(...St.pages.slice(0,B.pageCount)),ye=[...B.pageFragments],Me=[...B.pendingAnchoredDrawings],je=[...B.deferredAnchoredDrawings],Ye.clear();for(let[K,Z]of B.anchorPageDeferCounts)Ye.set(K,Z);le=B.cursorY,ee=B.flowColumnIndex,Q=B.flowColumnIndex,xe=B.lineCounter,We=B.previousSpaceAfter,bo=$,Or=false,xo=z.length,Nt.push(...R.checkpoints.slice(0,$));}let Bn=a.count,En=ce,Na=B=>Object.freeze({x:a.lefts[ee]??0,y:B.y,width:a.widths[ee]??F,height:B.height}),So=()=>{let B=V(z.length);return Object.freeze({pageNumber:D+z.length+1,onPageParityRead:U,pageWidth:r.width,pageHeight:r.height,marginLeft:r.margin.left,marginRight:r.margin.right,marginBottom:r.margin.bottom,contentInsetTop:B.top,contentInsetBottom:B.bottom,contentWidth:F,contentHeight:be(),contentBandHeight:B.height,ownerPartName:n.inlineDrawingLayout?.ownerPartName??chunkNJNFJPGB_cjs.s,storyKind:"body"})},Ue=()=>vi(So()),Xd=B=>n.drawingSourceOrder?.get(B),as=B=>{if(B.length===0)return;for(let Z of B)Me.some(ie=>ie.drawingNodeId===Z.drawingNodeId)||Me.push(Z.sourceOrder===void 0&&Xd(Z.drawingNodeId)!==void 0?Object.freeze({...Z,sourceOrder:Xd(Z.drawingNodeId)}):Z);if(!n.inlineDrawingLayout)return;let K=hy(Me,{pageBottom:be()});if(Me.splice(0,Me.length,...K.drawings),K.deferred.length>0)for(let Z of K.deferred){let ie=(Ye.get(Z.drawingNodeId)??0)+1;Ye.set(Z.drawingNodeId,ie),ie>=Gu?Me.push(Yu(Z,"page-defer-exhausted")):je.push(Z);}},Ap=()=>{if(je.length===0)return;let B=je.map(K=>Xu(K,le-K.y));je=[],as(B);},Ro=()=>{let B=z.length,K=Te(B),Z=Pe("header",B,K),ie=Pe("footer",B,K),{usedBottom:Ee,hasBodyPageFields:De}=gu(ye,ue),Se=V(B);z.push({id:`page-${B}`,index:B,box:K,contentBox:{x:K.x+r.margin.left,y:K.y+Se.top,width:o,height:Se.height},fragments:ye,hasBodyPageFields:De,...a.separator?{columnSeparators:a.gaps.map((J,we)=>({x:a.lefts[we]+a.widths[we]+J/2-.375,y:ue,width:.75,height:Math.max(0,Ee-ue)}))}:{},...Me.length>0?{anchoredDrawings:gy(Me)}:{},...Z?{header:Z}:{},...ie?{footer:ie}:{}}),ye=[],Me=[],le=0,Q=0,ee=0,ue=0,ge=0;},KP=(B,K)=>{if(B.kind!=="paragraph"||B.listItem!==void 0||B.shading!==void 0)return false;let{top:Z,bottom:ie,left:Ee,right:De,between:Se}=B.borders;if(Z??ie??Ee??De??Se)return false;let J=n.inlineDrawingLayout;return J&&jt(B.paragraph,J).length>0?false:K.every(we=>we.drawings.length===0&&!we.pageBreakAfter&&!we.columnBreakAfter&&we.spans.every(ne=>ne.text.length===0))},is=()=>{if(Q+1<a.count){Q+=1,ee=Q,le=ue,We=0,ge=ye.length;return}Ro(),Ap();},Dp=B=>Id(B,{measurer:i,producer:T,cache:s,styleCascade:l,...u!==void 0?{defaultTabStopPt:u}:{},...f?{displayMode:f}:{},...p?{revisionAuthorFilter:p}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},...n.numberingIndex?{numberingIndex:n.numberingIndex}:{},inlineDrawingLayout:n.inlineDrawingLayout,drawingTokenForParagraph:n.drawingTokenForParagraph}),YP={measurer:i,cache:s,producer:T,onCellBreakKey:B=>{Y?.push(B);},nextLineId:(B,K,Z,ie)=>(xe+=1,aP(B,K,Z,ie)),pageOccurrenceKey:()=>String(z.length),styleCascade:l,listItems:d,...u!==void 0?{defaultTabStopPt:u}:{},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:E,...c?{refFields:c}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout!==void 0?{inlineDrawingLayout:n.inlineDrawingLayout}:{},...n.drawingTokenForParagraph?{drawingTokenForParagraph:n.drawingTokenForParagraph}:n.drawingLayoutToken?{drawingLayoutToken:n.drawingLayoutToken}:{},...n.inlineDrawingLayout?{anchorFrameBase:So,pageContentClip:Ue,layoutTextboxStoryFor:Dp,...fe,publishAnchoredDrawings:as,collectAnchoredDrawings:as,columnBoxForParagraph:Na,pageExclusionZones:()=>n.drawingExclusionZonesByPage?.get(z.length)??Object.freeze([]),paragraphOrderIndex:B=>Tt.get(B),onAnchorShift:(B,K)=>zu(Me,B,K),onAnchorRepublish:(B,K)=>{for(let Z=Me.length-1;Z>=0;Z-=1)Me[Z].anchorParagraphId===B&&Me.splice(Z,1);Me.push(...K);}}:{},borderOwnershipBudget:Kl(),vMergeResolveBudget:jf(),displayMode:f,...p?{revisionAuthorFilter:p}:{}},Kd=B=>El(d?.get(B.paragraph.id)??B.listItem,B.indent,i,B.tabStops,B.available),Yd=(B,K,Z=0)=>{let ie=B.paragraph.id,De=!(h?.has(ie)??false)&&((g?.has(ie)??false)||(y?.has(ie)??false)),Se=B.available,J=En(),ne=(n.drawingExclusionZonesByPage?.get(z.length)??Object.freeze([])).filter(ze=>{let Vt=Tt.get(B.paragraph.id),kt=Tt.get(ze.anchorParagraphId);if(Vt!==void 0&&kt!==void 0){if(kt>Vt)return false}else {let fn=$e.findIndex(Zt=>Zt.kind==="paragraph"&&Zt.paragraph.id===ze.anchorParagraphId);if(fn<0||fn>K)return false}return !(Bn>1&&ze.columnIndex!==ee)}),Oe=kn(ne),Xe=null;s&&!De&&(Xe=B.key,Oe&&(Xe+=`\0excl:${ee}|${le.toFixed(3)}|${Oe}`),Z>0&&(Xe+=`\0from:${Z}`));let Rt=Bn>1;return Il(B.paragraph,ie,B.indent.left,Se,i,s,Xe,B.inheritedRunProperties,B.tabStops,void 0,l?(ze,Vt)=>Yn(ze,Vt,l):void 0,{lineSpacing:B.lineSpacing,equationCacheToken:T,firstLineOffset:Z===0?Kd(B):0,startOffset:Z,marginExtent:{left:0,right:B.indent.left+Se+B.indent.right},...n.projectLink?{projectLink:n.projectLink}:{},...n.projectFieldLink?{projectFieldLink:n.projectFieldLink}:{},...n.documentProperties?{documentProperties:n.documentProperties}:{},bodyPageFields:E,...c?{refFields:c}:{},displayMode:f,...p?{revisionAuthorFilter:p}:{},...n.noteMarks?{noteMarks:n.noteMarks}:{},...n.inlineDrawingLayout?{inlineDrawingLayout:n.inlineDrawingLayout}:{},contentLeft:Rt?J:0,contentRight:Rt?J+Be():B.indent.left+Se+B.indent.right,paragraphStartY:le,...ne.length>0?{pageExclusionZones:ne}:{},...De?{suppressEmptyPlaceholderLine:true}:{},...l?{themeFonts:l.themeFonts}:{},markRunProperties:B.markRunProperties})},_p=(B,K)=>(n.drawingExclusionZonesByPage?.get(z.length)??Object.freeze([])).filter(ie=>{let Ee=Tt.get(B.paragraph.id),De=Tt.get(ie.anchorParagraphId);if(Ee!==void 0&&De!==void 0){if(De>Ee)return false}else {let Se=$e.findIndex(J=>J.kind==="paragraph"&&J.paragraph.id===ie.anchorParagraphId);if(Se<0||Se>K)return false}return !(Bn>1&&ie.columnIndex!==ee||ie.anchorParagraphId===B.paragraph.id&&ie.input.mode==="topAndBottom")}),Hp=(B,K,Z,ie,Ee,De,Se)=>{let J=_p(B,K);if(!n.inlineDrawingLayout||ie<=Ee)return J;let we=sn(B.paragraph),ne=new Map,Oe=0;for(let kt=Ee;kt<ie;kt+=1){let fn=Z[kt];for(let Cr of we.values())Cr>=fn.start&&Cr<fn.end&&ne.set(Cr,Oe);let Zt=Se.get(kt)??Z[kt].exclusionSkipBefore??0;Oe+=Zt+Z[kt].height;}if(ne.size===0)return J;let Xe=Bn>1,Rt=B.available,ze=En(),Vt=gl({paragraph:B.paragraph,paragraphId:B.paragraph.id,drawingLayout:n.inlineDrawingLayout,contentLeft:Xe?ze:0,contentRight:Xe?ze+Be():B.indent.left+Rt+B.indent.right,paragraphStartY:De,anchorLineTopByModelStart:ne,columnIndex:ee,displayMode:f,...p?{revisionAuthorFilter:p}:{}});return Object.freeze([...J,...Vt])},UP=(B,K,Z,ie,Ee,De,Se,J)=>{if(n.inlineDrawingLayout){let Xe=[...sn(B.paragraph).values()];if(Xe.length>0){let Rt=Math.min(...Xe);if(Se.end<=Rt||Xe.some(ze=>ze>=Se.start&&ze<Se.end)&&Se.end<=Rt+1)return 0}}let we=Hp(B,K,Z,ie,Ee,De,J),ne=we.length>0?On(le,Se.height,we):0,Oe=Se.exclusionSkipBefore??0;return ne>.001?ne:Oe},qP=B=>{let K={cursorY:le,columnWidth:Be,columnLeft:ce,contentHeight:be,unreservedContentHeight:it,advanceColumn:()=>{le=K.cursorY,is(),K.cursorY=le;},anchorFrames:bt,styleCascade:l,displayMode:f,...p?{revisionAuthorFilter:p}:{},deps:YP,shiftAnchor:(Z,ie)=>zu(Me,Z,ie),publishFragment:Z=>ye.push(Z)};oS(B,K),le=K.cursorY;},er=false,Ud=$e.length,qd=0;for(let B=bo;B<$e.length;B+=1){let K=me(e[B],Be());if(Nt[B]=un(),I&&te>0&&B>=$e.length-te){let oe=R.checkpoints[B+(R.keys.length-$e.length)];if(oe&&oe.cursorY===le&&oe.previousSpaceAfter===We&&oe.flowColumnIndex===ee&&KR(oe.pageFragments,ye)&&Op(oe.pendingAnchoredDrawings,Me)&&Op(oe.deferredAnchoredDrawings,je)&&qR(oe.anchorPageDeferCounts,Ye)){let se=z.length-oe.pageCount;if(BS({delta:se,titlePage:C?.titlePage===true,evenAndOddHeaders:C?.evenAndOddHeaders===true,parityDependent:R.parityDependent,usedPageParity:X,markPageCount:oe.pageCount,continuedInsets:L!==void 0,hasNoteReserves:S!==void 0,hasExclusionZones:(n.drawingExclusionZonesByPage?.size??0)>0})){let At=se===0?St.pages.slice(oe.pageCount):St.pages.slice(oe.pageCount).map((Pt,mn)=>po(Pt,z.length+mn,Te(z.length+mn).y));z.push(...At),xo+=At.length,er=true,Ud=B,qd=se,xe+=R.endLineCounter-oe.lineCounter;break}}}if(La+=1,K.kind==="table"){We=0,Y=[];try{qP(K.table),Ah(K.table,Y);}finally{Y=null;}continue}let{paragraph:Z,props:ie,spacing:Ee,contextualSpacing:De,styleId:Se,borders:J,shading:we,keeps:ne}=K,{indent:Oe,alignment:Xe,markRunProperties:Rt}=K,ze=K.available,Vt=B>0?$e[B-1]:void 0,kt=$e[B+1],fn=oe=>oe?.kind==="paragraph"&&oe.styleId===Se&&Se!==null,Zt=De?{before:fn(Vt)?0:Ee.before,after:fn(kt)?0:Ee.after}:Ee,Cr=d?.get(Z.id)??K.listItem,Aa=Kd(K),pn=Z.id,Da=K.borderGroupKey,_a=oe=>Da!==""&&oe?.kind==="paragraph"&&oe.borderGroupKey===Da,Ha=_a(Vt),tr=_a(kt),Fr=Ha?void 0:J.top,nr=tr?J.between:J.bottom,Mr=dr(Fr),Xp=dr(nr);Kc(ie)&&(ye.length>0||z.length===0)&&(Ro(),We=0);let st=Yd(K,B);if(st.length===0)continue;let JP=xr(Z)!==void 0&&KP(K,st),Kp=()=>JP&&A===void 0&&Q+1>=a.count,Zd=oe=>{let se=me(Z,Be());se.kind==="paragraph"&&(Oe=se.indent,Xe=se.alignment,ze=se.available,Rt=se.markRunProperties,Aa=oe===0?Kd(se):0,st=[...Yd(se,B,oe)]);};{let oe=Wo(Zt.before,We),se=Rt.length===0?wn:Le(Rt,l?.themeFonts),xt=st.length<=1?Xp:0,At=le+oe+Mr,Pt=Hp(K,B,st,0,0,At,new Map),mn=st[0]?Zu(At,st[0],Pt,xt):i.lineMetrics(se).height+xt,or=oe+Mr+mn;if(ne.keepNext&&!kr[B-1]){let lt=Vb($e,B,We,Ln=>{let gn=me(e[Ln],Be());return gn.kind==="paragraph"?Yd(gn,Ln).map(Jt=>Jt.height):[]});lt!==null&<+Mr<=be()&&(or=Math.max(or,lt+Mr));}le+or>be()&&le>0&&!Kp()&&(is(),We=0,Zd(0));}let QP=le===0&&!Ke(),Jd=Qc(Zt.before,We,QP,Or);Jd>0&&(le+=Jd),Mr>0&&(le+=Mr),Or=false;let Br=0,Ge=[],Yp=st[0]?.start??0,Po=Jd,Er=Mr,Qd=false,za=le,Up=0,ss=new Map;We=0;let qp=n.inlineDrawingLayout!==void 0&&jt(K.paragraph,n.inlineDrawingLayout).length>0,Zp=false,ec=null,{revisions:ew,formatRevision:tw}=al(K.paragraph,f,p),Jp=Qo(K.paragraph),Qp=Jp?Vl(Jp):null,nw=()=>{let oe=Ge[0];if(!oe)return 0;let se=Up;if(se<=.001)return 0;let xt=On(za,oe.box.height,_p(K,B));return Math.max(0,se-xt)},ls=oe=>{if(Ge.length===0)return;let se=ce(),xt=En(),At=Ge[0].box.y,Pt=At-Po-Er,mn=Ge[Ge.length-1].box.y+Ge[Ge.length-1].box.height,or=oe?Zt.after:0,lt=[],Ln,gn=At,Jt=mn,ar=J.left?Ft(J.left):0,Wa=J.right?Ft(J.right):0,wo=J.left?se+Oe.left-J.left.spacePt-ar:se+Oe.left,nc=J.right?se+Oe.left+ze+J.right.spacePt+Wa:se+Oe.left+ze,vo=Math.max(nc-wo,0);if(Er>0&&Fr){let gt=Ft(Fr),hn=At-Fr.spacePt-gt;lt.push({side:"top",edge:Fr,box:{x:wo,y:hn,width:vo,height:gt}}),gn=hn;}if(oe&&nr){let gt=Ft(nr),hn=mn+nr.spacePt,ir={x:wo,y:hn,width:vo,height:gt};lt.push({side:tr?"between":"bottom",edge:nr,box:ir}),tr||(Ln={edge:nr,box:ir}),Jt=hn+gt;}oe&&(le=Math.max(le,Jt+or));let Io=Math.max(Jt+or-Pt,0),_e=Ha&&Br===0?Pt:gn,Nn=tr&&oe?Pt+Io:Jt,To=Math.max(Nn-_e,0);if(J.left&<.push({side:"left",edge:J.left,box:{x:se+Oe.left-J.left.spacePt-ar,y:_e,width:ar,height:To}}),J.right&<.push({side:"right",edge:J.right,box:{x:se+Oe.left+ze+J.right.spacePt,y:_e,width:Wa,height:To}}),J.bar){let gt=Ft(J.bar);lt.push({side:"bar",edge:J.bar,box:{x:se+Oe.left-J.bar.spacePt-gt,y:At,width:gt,height:Math.max(mn-At,0)}});}let ko=Qp?$l(Ge,Qp):null,Oo=Br===0?ld(Cr,i,Ge[0]?{y:Ge[0].box.y,height:Ge[0].box.height}:void 0):void 0,ds=Oo?{...Oo,box:{...Oo.box,x:Oo.box.x+se}}:void 0;if(ye.push({kind:"paragraph",id:`${pn}#f${Br}`,paragraphId:pn,fragmentIndex:Br,range:ko?ko[ko.length-1].range:{paragraphId:pn,start:Yp,end:Ge[Ge.length-1].range.end},props:ie,spacing:{before:Po,after:or},indent:Oe,...Ln?{bottomBorder:Ln}:{},...lt.length>0?{borders:lt}:{},...we===void 0?{}:{shading:we,shadingBox:J.left||J.right?{x:wo,y:gn,width:vo,height:Math.max(Jt-gn,0)}:ni(Ge,se+Oe.left,ze)},tabStops:K.tabStops,...ds?{marker:ds}:{},...oe&&m?il(ew,tw):{},lines:ko??Ge,box:{x:xt+Oe.left,y:Pt,width:ze,height:Io}}),n.inlineDrawingLayout&&qp&&!Zp){Zp=true;let gt=[...sn(K.paragraph).values()],hn=gt.length>0&>.every(Dt=>Ge.some(Lr=>Dt>=Lr.range.start&&Dt<Lr.range.end)),ir,cs,rc;if(hn){let Dt=Pt-nw();ir=Ge,cs={x:xt+Oe.left,y:Dt,width:ze,height:Io},rc=Na({x:xt+Oe.left,y:Dt,height:Io});}else {let Dt=ec??{columnX:xt,columnWidth:Be(),startY:Pt},Lr=Dt.startY;ir=st.map((Qt,rw)=>{let ow={id:`anchor-line-${rw}`,range:{paragraphId:pn,start:Qt.start,end:Qt.end},box:{x:Dt.columnX+Oe.left,y:Lr,width:ze,height:Qt.height},contentX:Qt.spans.length>0?Qt.spans[0].box.x+Dt.columnX:Dt.columnX+Oe.left,baseline:Qt.baseline,leading:Qt.leading,trailingSpacing:Qt.trailingSpacing,spans:Qt.spans.map(oc=>({...oc,box:{...oc.box,x:oc.box.x+Dt.columnX,y:Lr}}))};return Lr+=Qt.height+(Qt.exclusionSkipBefore??0),ow});let em=Dt.startY;cs={x:Dt.columnX+Oe.left,y:em,width:ze,height:Math.max(Lr-em,Ge[0]?.box.height??0)},rc=Na(cs);}as(br({paragraph:K.paragraph,paragraphId:pn,paragraphBox:cs,lines:ir,drawingLayout:n.inlineDrawingLayout,frameBase:So(),columnBox:rc,cellBox:null,pageClip:Ue(),measurer:i,sourceOrderOf:Xd,layoutTextboxStory:Dp,displayMode:f,...p?{revisionAuthorFilter:p}:{}}));}Br+=1,Yp=Ge[Ge.length-1].range.end,Ge=[],Po=0,Er=0;},rr=0,tc=0,ja=st.length+8;for(let oe=0;oe<st.length;oe+=1){let se=st[oe],xt=oe===st.length-1,At=xt?Xp:0;oe===rr&&(za=le,qp&&ec===null&&Br===0&&(ec=Object.freeze({columnX:En(),columnWidth:Be(),startY:za})));let Pt=UP(K,B,st,oe,rr,za,se,ss),mn=Pt+Math.max(0,se.height-se.trailingSpacing)+At;if(le+mn>be()&&!Kp()&&(Ge.length>0||ye.length>0||z.length>0)){let _e=!Ke(),Nn=tc<ja?Gb(oe,rr,st.length,ne,_e):oe,To=Nn<oe;for(let gt=oe;gt>Nn;gt-=1){Ge.pop();let hn=st[gt-1],ir=ss.get(gt-1)??hn.exclusionSkipBefore??0;ss.delete(gt-1),le-=hn.height+ir,xe-=1;}let ko=To&&Ge.length===0&&Br===0,Oo=st[Nn].start,ds=Be();if(ls(false),is(),Po=0,ko?le=Er:Er=0,Be()!==ds){Zd(Oo),ja=Math.max(ja,st.length+8),rr=0,To&&(tc+=1),oe=-1;continue}if(rr=Nn,za=le,To){tc+=1,oe=Nn-1;continue}}let lt=En();ss.set(oe,Pt),le+=Pt;let Ln=lt+Oe.left+(oe===0?Aa:0),gn=Math.max(1,ze-(oe===0?Aa:0)),Jt=se.spans.map(_e=>({..._e,range:{..._e.range,paragraphId:pn},box:{..._e.box,x:_e.box.x+lt,y:le}})),ar=wl(Jt,i,Ln,gn,Xe,xt,Xe==="center"||Xe==="right"?se.width:void 0),Wa=Jt.length>0&&ar.length>0?ar[0].box.x-Jt[0].box.x:Xe!=="left"&&Xe!=="both"?(()=>{let _e=gn-se.width;return _e<=0?0:Xe==="center"?_e/2:_e})():0,wo=Object.freeze({x:0,y:0,width:F,height:be()}),nc=se.drawings.map(_e=>{let Nn=Object.freeze({..._e,paragraphId:pn,x:lt+_e.x,y:le+_e.y,advanceStart:_e.advanceStart+lt,advanceEnd:_e.advanceEnd+lt,paintBounds:Object.freeze({..._e.paintBounds,x:lt+_e.paintBounds.x,y:le+_e.paintBounds.y}),hitBounds:Object.freeze({..._e.hitBounds,x:lt+_e.hitBounds.x,y:le+_e.hitBounds.y})});return ml(Nn,wo)}),vo=vl(nc,Wa),Io={id:aP(Z.id,se.start,oe),range:{paragraphId:pn,start:se.start,end:se.end},spans:ar,box:{x:En()+Oe.left,y:le,width:ze,height:se.height},contentX:ar[0]?.box.x??Ln+Wa,baseline:se.baseline,leading:se.leading,trailingSpacing:se.trailingSpacing,...se.deletedRanges?{deletedRanges:se.deletedRanges}:{},...vo.length>0?{drawings:vo}:{},...se.anchorRevisions?{anchorRevisions:se.anchorRevisions}:{}};if(xe+=1,Ge.length===0&&(Up=Pt),Ge.push(Io),le+=se.height,se.columnBreakAfter){let _e=Be();if(ls(xt),is(),Po=0,Er=0,Qd=true,!xt&&Be()!==_e){Zd(se.end),ja=Math.max(ja,st.length+8),rr=0,oe=-1;continue}rr=oe+1;}else se.pageBreakAfter&&(ls(xt),Ro(),Po=0,Er=0,Qd=true,rr=oe+1);}ls(true),We=Qd?0:Zt.after;}er||(Nt[$e.length]=un());let zp=er&&R?R.endCursorY:le,jp=er&&R?R.endSpaceAfter:We,Wp=!er&&(ye.length>0||z.length===0),Gp=er&&R?R.endsOpenPage:Wp;Wp&&Ro();let Vp=0,ZP=Gu*4+8;for(;(Me.length>0||je.length>0)&&Vp<ZP;)Vp+=1,Me.length===0&&Ap(),Ro();je.length>0&&(Me.push(...je.map(B=>Yu(B,"page-defer-exhausted"))),je=[],Ro()),Je();let $p={revision:t,pages:z};if(R){R.previous=$p,R.checkpoints=er?[...Nt.slice(0,Ud),...R.checkpoints.slice(Ud+(R.keys.length-$e.length)).map(K=>qd===0?K:{...K,pageCount:K.pageCount+qd})]:Nt,R.keys=qt,R.context=z.length+1===O?W:_(Bd(S,D,z.length+1)),R.producer=T;let B=X||C?.evenAndOddHeaders===true;R.parityDependent=bo===0&&!er?B:R.parityDependent||B,R.startPageParity=q,R.startLineCounter=k,R.endLineCounter=xe,R.endCursorY=zp,R.endSpaceAfter=jp,R.endsOpenPage=Gp,R.stats={placed:La,total:$e.length,reusedPages:xo,fullPasses:R.stats.fullPasses+(bo===0?1:0)};}return {layout:$p,pages:z,lineCounter:xe,endCursorY:zp,endSpaceAfter:jp,endsOpenPage:Gp,overflowShellAt:de}}function iP(e,t,n){let r=t.lefts.map(()=>n);for(let o of e.fragments){let a=0;for(let i=t.count-1;i>=0;i-=1)if(o.box.x+.5>=t.lefts[i]){a=i;break}r[a]=Math.max(r[a],o.box.y+o.box.height);}return r}var JF=.25,QF=20;function Ma(e,t,n){let r=dp(n.sectionColumns??dn.columns,n.geometry.width-n.geometry.margin.left-n.geometry.margin.right);if(!n.balanceColumns||r.count<2||n.columnRegionBottom!==void 0)return n.session&&(n.session.balanceLimit=null),yo(e,t,n);let o=n.session,a=n.flowStartY??0,{session:i,...s}=n,l=h=>{let y=h.pages[0],x=y?Math.max(...iP(y,r,a)):h.endCursorY;return o&&(o.endCursorY=x),{...h,endCursorY:x}};if(o&&o.balanceLimit!==null){let h=o.balanceLimit,y=yo(e,t,{...n,columnRegionBottom:h});if(o.stats.placed===0&&o.stats.reusedPages===y.pages.length)return o.balanceLimit=h,l(y)}let d=yo(e,t,s);if(d.pages.length!==1||!d.endsOpenPage)return o&&(o.balanceLimit=null),yo(e,t,n);let c=iP(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),yo(e,t,n);let f=a+u/r.count,p=Math.max(...c)+.01,m=h=>{try{let y=yo(e,t,{...s,columnRegionBottom:h});return y.pages.length===1&&y.endsOpenPage}catch{return false}};for(let h=0;h<QF&&p-f>JF;h+=1){let y=(f+p)/2;m(y)?p=y:f=y;}let g=yo(e,t,{...n,columnRegionBottom:p});return o&&(o.balanceLimit=p),l(g)}var cP="Calibri, Carlito, Helvetica, Arial, sans-serif",Lz=new Map([["calibri","Carlito"]]),eM=65536,tM=256;function sP(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function lP(e){let t=new Map,n=0;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>e;){let a=t.keys().next();if(a.done)break;t.delete(a.value),n+=1;}},get size(){return t.size},get evictions(){return n}}}var dP=/^[\p{L}\p{N}\p{M} \-.+_]{1,64}$/u;function uP(e=null){return e!=null&&typeof e.measureText=="function"}function fP(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??cP,r=e.context??null;if(!uP(r))return null;let o=r,a=lP(sP(e.maxWidthEntries,eM)),i=lP(sP(e.maxMetricsEntries,tM)),s=e.fontAlias,l=c=>{let u=c.fontFamily&&dP.test(c.fontFamily)?c.fontFamily:null,f=u?s?.(u):void 0,p=f&&dP.test(f)?f:null,m=u?p?`"${p}", "${u}", ${n}`:`"${u}", ${n}`:n,g=c.bold?"bold":"normal",h=c.italic?"italic":"normal",y=c.smallCaps?"small-caps":"normal",x=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75)*t;return `${h} ${y} ${g} ${x}px ${m}`},d=(c,u,f)=>c/t*(f.horizontalScalePercent/100)+u.length*f.characterSpacingPt;return {measure(c,u){if(c.length===0)return 0;let f=l(u),p=`${f}\0${c}`,m=a.get(p);if(m!==void 0)return d(m,c,u);o.font=f;let g=o.measureText(c).width;return a.set(p,g),d(g,c,u)},lineMetrics(c){let u=c.fontSizePt*(c.verticalAlign==="baseline"?1:.75),f=l(c),p=i.get(f);if(p)return p;let m=u*1.15,g=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&&(g=y/t,typeof x=="number"&&Number.isFinite(x)&&x>=0)){let T=(y+x)/t;T>0&&(m=Math.max(T,m));}m>0||(m=u*1.15);let w={height:m,baseline:g};return i.set(f,w),w}}}function nM(e=1,t={}){let n=fP({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:Hd(),producer:"fixed-measurer"}}function rM(e){let t;return n=>{t===void 0&&(t=Zs(e.pages)?.hosts??null);let r=t?.get(n);return r?Uo(r.pageNumber,r.format):null}}function pP(e,t){let n=zt(e,t.displayMode??ve),r=Un({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunkNJNFJPGB_cjs.Pe(t.package,"footnote"),endnotesPart:chunkNJNFJPGB_cjs.Pe(t.package,"endnote")}:void 0,a=Fi(n,r,o,t.package?bb(t.package,e,n):void 0,t.displayMode??ve);return {blocks:n,notes:o,context:a}}function mP(e,t,n,r,o){for(let a of t){if(r.length>=chunkNJNFJPGB_cjs._g)return;if(n.tokenForParagraph(a.id)!==""&&chunkNJNFJPGB_cjs.bh(e,a.id)===null)for(let i of chunkNJNFJPGB_cjs.ah(a)){if(r.length>=chunkNJNFJPGB_cjs._g)return;if(!i.rewritable)continue;let s=rn(i.instruction);if(s===null)continue;let l=n.liveValueOf(i.fieldNodeId,s);if(l===null&&o&&n.pageRefProjectionOf){let d=n.pageRefProjectionOf(i.fieldNodeId,s);if(d){let c=o(d.targetParagraphId);c!==null&&c.length>0&&hu(d.calibration,d.cached,c,Number.NaN)&&(l=c);}}l===null||l===i.cachedText||l.length>chunkNJNFJPGB_cjs.$g||l.includes(`
|
|
16
|
-
`)||l.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:l});}}}function oM(e,t){let{blocks:n,context:r}=pP(e,t);if(r===null)return null;let o=[];return mP(e,ln(n),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Vz(e,t){let{notes:n,context:r}=pP(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:s}of a){if(!s)continue;let l=[];for(let d of _l(s,t.displayMode??ve)){if(l.length>=chunkNJNFJPGB_cjs._g)break;mP(s,ln(d),r,l);}l.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:l}});}return o}function aM(e){return e.box}function gP(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)gP(o,t);}function iM(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkNJNFJPGB_cjs.kf*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let l of r)t.get(l)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let l=chunkNJNFJPGB_cjs.uf(s);l&&n(l,a,i+1),r.pop();let d=t.get(s.id);d&&d.length===0&&a!==null&&d.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function sM(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function lM(e,t){let n=chunkNJNFJPGB_cjs.yf(e.root);if(n.length===0)return dM;let r=new Map;t.pages.forEach((i,s)=>{(d=>{for(let c of d){let u=new Set;gP(c,u);for(let f of u){let p=r.get(f)??[];p.push({pageIndex:s,box:aM(c)}),r.set(f,p);}}})(i.fragments);});let o=iM(e.root),a=[];for(let i of n){let s=chunkNJNFJPGB_cjs.wf(i.node),l=[...i.ancestors.map(f=>chunkNJNFJPGB_cjs.wf(f).lock),s.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?sM(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:s.type,level:chunkNJNFJPGB_cjs.xf(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkNJNFJPGB_cjs.Bf(l),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:d,fragments:u});}return a}var dM=Object.freeze([]);function yP(e,t,n){let r=e.lines?.find(o=>{let a=o.spans;if(!a)return n<o.range.end;let i=a.filter(s=>s.range.paragraphId===t);return i.length===a.length?n<o.range.end:i.length>0&&n<i[i.length-1].range.end});return r?r.box.y:e.fragmentY}function SM(e,t){let n=new Map;for(let r of e.pages)for(let[o,a]of RM(r,t))n.has(o)||n.set(o,a);return n}var hP=new WeakMap;function RM(e,t){let n=hP.get(t);n||(n=new WeakMap,hP.set(t,n));let r=n.get(e);if(r)return r;let o=new Map;for(let a of t(e)){let i=new Set([a.paragraphId]);for(let s of a.lines??[])for(let l of s.spans??[])i.add(l.range.paragraphId);for(let s of i)o.has(s)||o.set(s,{pageIndex:e.index,contentY:e.contentBox.y,fragmentY:a.box.y,...a.lines?{lines:a.lines}:{}});}return n.set(e,o),o}function PM(e,t){let n=chunk4Z5MODAE_cjs.ya(e);if(!n)return null;let r=t.get(n.start.paragraphId);return r?{pageIndex:r.pageIndex,y:r.contentY+yP(r,n.start.paragraphId,n.start.offset)}:null}var wM=.5,vM=4,IM="abcdefghijklmnopqrstuvwxyz",bP=e=>e.verticalAlign==="baseline"?1:.75;function Fp(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function TM(e){let{shaper:t,resolveFont:n,fallback:r,shapingLibrary:o,unicodeDataVersion:a,fixedPointScale:i=1e3,script:s="Latn",language:l="en"}=e,d=new WeakMap,c=new WeakMap,u=new WeakMap,f=new WeakMap,p=new WeakMap,m=x=>{let w=f.get(x);if(w!==void 0)return w;let T=n(x);return f.set(x,T),T},g=(x,w,T)=>{let F=T?c:d,C=F.get(x);C||(C=new Map,F.set(x,C));let M=C.get(w);return M||(M=new Map,C.set(w,M)),M},h=(x,w,T)=>t.shape({text:x,fontSizeHalfPoints:Fp(T),bidiLevel:0,environment:_r({font:w,variationAxes:{},shapingLibrary:o,unicodeDataVersion:a,normalization:"none",script:s,language:l,direction:"ltr",features:T.smallCaps?{smcp:1}:{},fallbackOrder:[],fixedPointScale:i,roundingMode:"halfToEven"})}),y=(x,w)=>{let T=p.get(x);if(T!==void 0)return T;let F=true;try{for(let C of IM){let M=h(C,x,{...w,smallCaps:!0}),P=h(C,x,{...w,smallCaps:!1});if(!(M.glyphs.length!==P.glyphs.length||M.glyphs.some((R,k)=>R.id!==P.glyphs[k]?.id))){F=!1;break}}}catch{F=false;}return p.set(x,F),F};return {measure(x,w){if(x.length===0)return 0;let T=m(w);if(!T)return r.measure(x,w);let F=g(T,Fp(w),w.smallCaps),C=F.get(x);if(C===void 0){let M=0;try{if(w.smallCaps&&!y(T,w))return r.measure(x,w);let P=h(x,T,w);for(let S of P.glyphs)M+=S.advanceX;}catch{return r.measure(x,w)}C=M/i,F.set(x,C);}return C*bP(w)*(w.horizontalScalePercent/100)+x.length*w.characterSpacingPt},lineMetrics(x){let w=m(x);if(!w)return r.lineMetrics(x);let T=bP(x),F=u.get(w);F||(F=new Map,u.set(w,F));let C=Fp(x),M=F.get(C);if(M)return T===1?M:{height:M.height*T,baseline:M.baseline*T};let P,S=true,R=w.substitution?.lineMetrics;if(R){let k=C/2;P={height:R.heightEm*k,baseline:R.baselineEm*k};}else try{let k=h(" ",w,x),v=k.metrics.ascent/i,b=k.metrics.descent/i,H=C/2,D=v+b,V=H*vM,E=D>V?V/D:1,O=D*E,A=Math.min(Math.max(0,k.metrics.lineGap/i),O*wM),j=O+A;j>0?P={height:j,baseline:v*E}:(P=r.lineMetrics(x),S=!1);}catch{P=r.lineMetrics(x),S=false;}return S?(F.set(C,P),T===1?P:{height:P.height*T,baseline:P.baseline*T}):P}}}function kM(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let l of t.pages)r.add(l.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let l of t.pages){let d=l.box.y;d+l.box.height>=n.top&&d<=a&&(i===-1&&(i=l.index),s=l.index);}if(i===-1){let l=OM(t,n.top);l!==null&&(i=l,s=l);}if(i!==-1){let l=Math.max(0,i-o),d=Math.min(t.pages.length-1,s+o);for(let c=l;c<=d;c+=1)r.add(c);}for(let l of e.pinnedPages??[])l>=0&&l<t.pages.length&&r.add(l);return r}function OM(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var xP=["text-local","paragraph-local","flow-structural","global"];function SP(e,t){return xP.indexOf(t)>xP.indexOf(e)?t:e}function CM(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function FM(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,l=0,d=0;function c(h){let y=e.runCooperatively;if(!y)return t(h);let x=y(h);s=x;try{for(;;){let w=x.step();if(w)return w;if(n()!==h.revision)return x.cancel(),d+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function u(h){let y=p(n());y.impact=SP(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=CM(h)),a.revision=Math.max(a.revision,h),a}function m(){!o||i||(i=o(()=>{i=null,g();}));}function g(){i&&(i(),i=null),s&&(s.cancel(),s=null,d+=1);let h=a;if(!h)return false;a=null;let y=f(h),x=c(y);return !x||x.revision!==n()?(l+=1,u(y),m(),false):(r(x,y),true)}return {notify(h){let y=p(n());y.impact=SP(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:g,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return l},get cancelledRuns(){return d}}}function Mn(e,t,n,r){let o=r?r.spans:e.spans;for(let i of r?r.drawings:e.drawings??[]){if(t===i.start)return i.advanceStart;if(t===i.start+1)return i.advanceEnd}let a=r?r.spans[0]?.box.x??e.contentX:e.contentX;for(let i of o){if(t<=i.range.start)return i.box.x;if(t>=i.range.end){a=i.box.x+i.box.width;continue}return md(i,t,n)}return a}function wP(e,t,n,r){return vP(e,t,n,true,r)}function uj(e,t,n,r){return vP(e,t,n,false,r)}var RP=new WeakMap,PP=new WeakMap;function MM(e){let t=RP.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let o of qe(r))for(let a of o.lines)for(let i of tt(a)){let s=n.get(i.paragraphId);(!s||i.end>s.end||i.end===s.end&&i.start>s.start)&&n.set(i.paragraphId,{end:i.end,start:i.start});}return RP.set(e,n),n}function BM(e){let t=PP.get(e);if(t)return t;let n=new Map(e.map((r,o)=>[r,o]));return PP.set(e,n),n}function EM(e){return Math.max(3,Math.min(8,e*.25))}function vP(e,t,n,r,o){let a=zd(t,n);if(!a)return [];let i=BM(n),s=i.get(a.from.paragraphId),l=i.get(a.to.paragraphId),d=MM(e),c=[];for(let u of e.pages)for(let f of qe(u))for(let p of f.lines){let m=tt(p);for(let[g,h]of m.entries()){let y=uo(e,h,a.from,a.to),x=i.get(h.paragraphId),w=d.get(h.paragraphId),T=s!==void 0&&l!==void 0&&x!==void 0&&x>=s&&x<l&&w?.end===h.end&&w.start===h.start&&g===m.length-1;if((!r||!y)&&!T)continue;let F=r&&y?Mn(p,y.start,o,h):null,C=r&&y?Mn(p,y.end,o,h):null,M=T?Mn(p,h.end,o,h):null,P=M!==null?M+EM(Math.max(0,p.box.height-p.leading-(p.trailingSpacing??0))):null,S=[F,C,M,P].filter(v=>v!==null),R=Math.min(...S),k=Math.max(...S);c.push({pageIndex:u.index,x:R,y:p.box.y,width:k-R,height:p.box.height});}}return c}function IP(e,t,n,r){let o=new Map;if(t.length===0)return o;for(let a of e.pages)if(!(n&&!n.has(a.index)))for(let i of qe(a))for(let s of i.lines)for(let l of tt(s))for(let d of t){let c=uo(e,l,d.from,d.to);if(!c)continue;let u=Mn(s,c.start,r,l),f=Mn(s,c.end,r,l),p=o.get(d.key)??[];p.push({pageIndex:a.index,x:Math.min(u,f),y:s.box.y,width:Math.abs(f-u),height:s.box.height}),o.set(d.key,p);}return o}function fj(e,t,n){if(co(e).has(t))return {x:0,y:0};let r=e.pages[n];if(!r)return {x:0,y:0};let o=a=>vt(a).some(i=>i.paragraphId===t);if(r.header&&o(r.header.fragments))return {x:r.header.box.x-r.contentBox.x,y:r.header.box.y-r.contentBox.y};if(r.footer&&o(r.footer.fragments))return {x:r.footer.box.x-r.contentBox.x,y:r.footer.box.y-r.contentBox.y};for(let a of [r.footnotes,r.endnotes])if(a){for(let i of a.notes)if(o(i.fragments))return {x:i.box.x-r.contentBox.x,y:i.box.y-r.contentBox.y}}return {x:0,y:0}}function pj(e,t,n,r,o){let a=new Map,i=[];for(let l of t){let d=zd({anchor:l.from,head:l.to},n);d&&i.push({key:l.key,from:d.from,to:d.to});}if(i.length===0)return a;let s=(l,d,c,u)=>{for(let f of vt(l))for(let p of f.lines){for(let m of tt(p))for(let g of i){let h=uo(e,m,g.from,g.to);if(!h)continue;let y=Mn(p,h.start,o,m),x=Mn(p,h.end,o,m),w=a.get(g.key)??[];w.push({pageIndex:d,x:Math.min(y,x)+c,y:p.box.y+u,width:Math.abs(x-y),height:p.box.height}),a.set(g.key,w);}}};for(let l of e.pages)if(!(r&&!r.has(l.index))){s(l.fragments,l.index,0,0);for(let d of [l.header,l.footer])d&&s(d.fragments,l.index,d.box.x-l.contentBox.x,d.box.y-l.contentBox.y);for(let d of [l.footnotes,l.endnotes])if(d)for(let c of d.notes)s(c.fragments,l.index,c.box.x-l.contentBox.x,c.box.y-l.contentBox.y);}return a}function Mp(e){let t=new Map;for(let n=0;n<e.length;n+=1){let r=e[n].position,o=t.get(r.paragraphId);o||(o=new Map,t.set(r.paragraphId,o)),o.has(r.offset)||o.set(r.offset,n);}return {stops:e,index:t}}var jd=class{#t=new WeakMap;#s=new WeakMap;get(t,n,r,o){let a;if(!r)a=this.#t.get(t)??new Map,this.#t.has(t)||this.#t.set(t,a);else {let l=this.#s.get(t);l||(l=new WeakMap,this.#s.set(t,l)),a=l.get(r)??new Map,l.has(r)||l.set(r,a);}let i=a.get(n);if(i)return i;let s=o();return a.set(n,s),s}};function TP(e){let t=[],n=new Set;for(let r of e)n.has(r.lineId)||(n.add(r.lineId),t.push(r.lineId));return t}function kP(e,t,n){let r=null;for(let o of e)o.lineId===t&&(!r||Math.abs(o.x-n)<Math.abs(r.x-n))&&(r=o);return r}function rs(e,t){let n=null;for(let r of e)r.position.paragraphId===t.paragraphId&&(!n||Math.abs(r.position.offset-t.offset)<Math.abs(n.position.offset-t.offset))&&(n=r);return n}function Bp(e,t,n){let r=null;for(let o of e){if(o.position.paragraphId!==t.paragraphId)continue;let a=o.position.offset;n===1?a>t.offset&&(!r||a<r.position.offset)&&(r=o):a<t.offset&&(!r||a>r.position.offset)&&(r=o);}return r}function OP(e,t,n){let r=n.index.get(e.paragraphId)?.get(e.offset),o=r===void 0?rs(n.stops,e):n.stops[r];if(!o)return null;let a=o.lineId,i=n.stops.filter(s=>s.lineId===a);return (t===-1?i[0]:i[i.length-1])?.position??null}function CP(e,t,n,r,o){let a=o(e.paragraphId),i=a.index.get(e.paragraphId)?.get(e.offset);if(i===void 0){let c=Bp(a.stops,e,t);if(c)return {position:c.position,desiredX:null}}else {let c=i+t;if(c>=0&&c<a.stops.length)return {position:a.stops[c].position,desiredX:null}}let s=n[r+t];if(!s)return {position:e,desiredX:null};let l=o(s).stops,d=t===-1?l[l.length-1]:l[0];return d?{position:d.position,desiredX:null}:null}function FP(e,t,n){let r=e===-1?t[0]:t[t.length-1];if(!r)return null;let o=n(r).stops;return (e===-1?o[0]:o[o.length-1])?.position??null}function MP(e,t,n,r,o,a){let i=a(e.paragraphId),s=i.index.get(e.paragraphId)?.get(e.offset),l=s===void 0?rs(i.stops,e):i.stops[s];if(!l)return null;let d=n??l.x,c=TP(i.stops),u=c.indexOf(l.lineId),f=c[u+t];if(f){let m=kP(i.stops,f,d);return m?{position:m.position,desiredX:d}:null}for(let m=o+t;m>=0&&m<r.length;m+=t){let g=a(r[m]),h=TP(g.stops),y=t===-1?h[h.length-1]:h[0];if(!y)continue;let x=kP(g.stops,y,d);if(x)return {position:x.position,desiredX:d}}let p=t===-1?i.stops[0]:i.stops[i.stops.length-1];return p?{position:p.position,desiredX:d}:null}var BP=new WeakMap,EP=new WeakMap;function Gt(e){let t=BP.get(e);if(t)return t;let n=new Map;for(let r of e.pages)for(let[o,a]of AM(r)){let i=n.get(o);i?i.push(...a):n.set(o,[...a]);}return BP.set(e,n),n}function AM(e){let t=EP.get(e);if(t)return t;let n=new Map,r=(a,i)=>{for(let s of tt(a)){let l={line:a,pageIndex:i},d=n.get(s.paragraphId);d?d.push(l):n.set(s.paragraphId,[l]);}},o=(a,i)=>{let s=l=>{for(let d of l){if(d.kind==="paragraph"){for(let c of d.lines)r(c,i);continue}for(let c of d.rows)if(!c.isHeaderRepeat)for(let u of c.cells)s(u.blocks);}};s(a);};for(let a of qe(e))for(let i of a.lines)r(i,e.index);e.header&&o(e.header.fragments,e.index),e.footer&&o(e.footer.fragments,e.index);for(let a of [e.footnotes,e.endnotes])if(a)for(let i of a.notes)o(i.fragments,e.index);return EP.set(e,n),n}function xj(e,t,n){let r=Gt(e).get(t);if(r&&r.length>0){let o=si(e,t,n,r.map(a=>a.line));if(o)return o}return si(e,t,n)}var LP=new WeakMap;function Ep(e,t){let n=LP.get(e);n||(n=new Map,LP.set(e,n));let r=n.get(t);if(r)return r;let o=[];for(let{line:i}of Gt(e).get(t)??[])if(i.range.paragraphId===t)for(let s of i.deletedRanges??[])o.push({start:s.start,end:s.end});o.sort((i,s)=>i.start-s.start);let a=[];for(let i of o){let s=a[a.length-1];s&&i.start<=s.end?s.end=Math.max(s.end,i.end):a.push(i);}return n.set(t,a),a}function NP(e,t){for(let n of e)if(t>n.start&&t<n.end)return true;return false}function AP(e,t){for(let n of Ep(e,t.paragraphId))if(t.offset>n.start&&t.offset<n.end)return {paragraphId:t.paragraphId,offset:n.end};return t}var DM=/[\p{L}\p{N}_'\u2019]/u;function os(e,t,n,r=_M){let o=i=>{let s=e[i];return s!==void 0&&DM.test(s)},a=Math.max(0,Math.min(t,e.length));if(n===-1){for(;a>0&&!o(a-1);)if(a-=1,r.has(a))return a;for(;a>0&&o(a-1);)if(a-=1,r.has(a))return a;return a}for(;a<e.length&&!o(a);)if(a+=1,r.has(a))return a;for(;a<e.length&&o(a);)if(a+=1,r.has(a))return a;return a}var _M=new Set;function HM(e,t,n){let r=Gt(e).get(t.range.paragraphId)??[],o=false;for(let a of r){if(a.line===t){o=true;continue}if(o&&a.line.range.start===n)return true}return false}function zM(e,t,n){for(let{line:r}of Gt(e).get(t)??[])if(r.range.start===n&&r.drawings?.some(o=>o.start===n))return r;return null}function jM(e,t,n){for(let r of n?n.spans:e.spans)if(!(t<=r.range.start||t>=r.range.end)&&(r.projected||r.text.length!==r.range.end-r.range.start))return true;return false}function HP(e){let t=e.spans[e.spans.length-1]?.text;return t===`
|
|
17
|
-
`||t===chunkNJNFJPGB_cjs.Cc}function WM(e,t){if(t.end-t.start!==1||!e.drawings?.some(n=>n.start===t.start))return false;for(let n of t.spans)if(n.range.end>n.range.start)return false;return true}function Vd(e,t,n,r,o,a,i){for(let s of tt(n))i!==void 0&&s.paragraphId!==i||GM(e,t,n,s,r,o,a);}function GM(e,t,n,r,o,a,i){let s=tt(n).length>1,l=Ep(t,r.paragraphId),d=c=>r.spans.some(u=>u.range.start<=c&&c<=u.range.end);for(let c=r.start;c<=r.end;c+=1)if(!(c===r.end&&c>r.start&&!s&&HP(n)&&HM(t,n,c))){if(c===r.start&&c>a&&e.length>0){let u=e[e.length-1];if(u.position.paragraphId===r.paragraphId&&u.position.offset===c)continue}jM(n,c,r)||NP(l,c)&&!d(c)||e.push({position:{paragraphId:r.paragraphId,offset:c},x:Mn(n,c,i,r),y:n.box.y,height:n.box.height,lineId:n.id,pageIndex:o});}}function zP(e,t,n,r,o){for(let a of t){if(a.kind==="paragraph"){for(let i of a.lines)Vd(r,e,i,n,a.range.start,o);continue}for(let i of a.rows)if(!i.isHeaderRepeat)for(let s of i.cells)zP(e,s.blocks,n,r,o);}}var VM=new jd;function jP(e,t){let n=[];for(let r of e.pages)for(let o of qe(r))for(let a of o.lines)Vd(n,e,a,r.index,o.range.start,t);return n}function $M(e,t,n){let o=(Gt(e).get(t.paragraphId)??[]).find(({line:i})=>{let s=Fn(i,t.paragraphId);return s!==null&&t.offset>=s.start&&t.offset<=s.end});if(!o||tt(o.line).length<2)return null;let a=[];return Vd(a,e,o.line,o.pageIndex,0,n),Mp(a)}function Wd(e,t,n){return VM.get(e,t,n,()=>{let r=[];for(let{line:o,pageIndex:a}of Gt(e).get(t)??[])Vd(r,e,o,a,0,n,t);return Mp(r)})}function XM(e,t,n,r){if(!e.pages[t])return [];let o=[];return zP(e,n,t,o,r),o}function KM(e){return e?typeof e.measure=="function"?{measurer:e}:e:{}}function YM(e,t,n){let r=e.pages[t];if(!r)return [];let o=[];for(let a of qe(r,true))if(a.paragraphId===n)for(let i of a.lines)o.push({line:i,pageIndex:t});return o}function WP(e,t,n){let r=KM(n),o=Gt(e).get(t.paragraphId)??[],a=r.preferredPageIndex,i=a===void 0?[]:YM(e,a,t.paragraphId),s=new Set(o.map(f=>f.line.id)),l=i.filter(f=>!s.has(f.line.id)),d=l.length>0?[...o,...l]:o,c=a===void 0?d:[...d].sort((f,p)=>{let m=f.pageIndex===a?0:1,g=p.pageIndex===a?0:1;return m-g}),u=null;for(let{line:f,pageIndex:p}of c){let m=Fn(f,t.paragraphId);if(!m||t.offset<m.start||t.offset>m.end)continue;if(t.offset===m.end&&t.offset>m.start&&tt(f).length===1&&(HP(f)||WM(f,m))){u??={line:f,pageIndex:p};continue}if(t.offset===m.end&&t.offset>m.start&&zM(e,t.paragraphId,t.offset))continue;let g=ji(f,t.offset,r.measurer,m);return {position:t,x:g.x,y:g.y,height:g.height,lineId:f.id,pageIndex:p}}if(u){let f=ji(u.line,t.offset,r.measurer,Fn(u.line,t.paragraphId));return {position:t,x:f.x,y:f.y,height:f.height,lineId:u.line.id,pageIndex:u.pageIndex}}return null}function UM(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return ud(e,n,t)?.caret??null}function qM(e,t){let n=t.pageIndex!==void 0&&e.pages[t.pageIndex]?t.pageIndex:0;return pd(e,n,t)}function ZM(e){return _s(e)}var DP=new WeakMap;function Gd(e,t){let n=DP.get(e);return n||(n=new Map,e.forEach((r,o)=>{n.has(r)||n.set(r,o);}),DP.set(e,n)),n.get(t)??-1}function zd(e,t){if(e.anchor.paragraphId===e.head.paragraphId)return e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor};let n=Gd(t,e.anchor.paragraphId),r=Gd(t,e.head.paragraphId);return n===-1||r===-1?null:n<r||n===r&&e.anchor.offset<=e.head.offset?{from:e.anchor,to:e.head}:{from:e.head,to:e.anchor}}function Ba(e,t){let n=[],r=new Set;for(let{line:a}of Gt(e).get(t)??[]){let i=Fn(a,t);if(i){for(let s of i.spans){if(s.range.end===s.range.start)continue;let l=`${s.range.start}:${s.range.end}`;if(r.has(l))continue;r.add(l);let d=s.range.end-s.range.start,c=s.text.length===d?s.text:s.text.slice(0,d).padEnd(d," ");n.push({start:s.range.start,text:c});}for(let s of i.drawings){let l=s.start,d=l+1,c=`${l}:${d}`;r.has(c)||(r.add(c),n.push({start:l,text:"\uFFFC"}));}}}n.sort((a,i)=>a.start-i.start);let o="";for(let a of n)a.start>o.length&&(o+=" ".repeat(a.start-o.length)),o=o.slice(0,a.start)+a.text;return o}function Lp(e,t){let n=new Set;for(let{line:r}of Gt(e).get(t)??[]){let o=Fn(r,t);if(o)for(let a of o.spans)a.range.end!==a.range.start&&a.revisions?.some(i=>i.kind==="delete"||i.kind==="moveFrom")&&(n.add(a.range.start),n.add(a.range.end));}return n}function _P(e,t,n,r){let o=lo(e),a=co(e).get(t.paragraphId);return a===void 0?null:CP(t,n,o,a,i=>Wd(e,i,r))}function JM(e,t,n,r=null,o={}){if(!o.stops&&(n==="left"||n==="right"))return _P(e,t,n==="left"?-1:1,o.measurer);if(!o.stops&&(n==="wordLeft"||n==="wordRight")){let l=n==="wordLeft"?-1:1,d=os(Ba(e,t.paragraphId),t.offset,l,Lp(e,t.paragraphId));return d===t.offset?_P(e,t,l,o.measurer):{position:{paragraphId:t.paragraphId,offset:d},desiredX:null}}if(!o.stops&&(n==="lineStart"||n==="lineEnd")){let l=OP(t,n==="lineStart"?-1:1,$M(e,t,o.measurer)??Wd(e,t.paragraphId,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="documentStart"||n==="documentEnd")){let l=FP(n==="documentStart"?-1:1,lo(e),d=>Wd(e,d,o.measurer));return l?{position:l,desiredX:null}:null}if(!o.stops&&(n==="up"||n==="down")){let l=co(e).get(t.paragraphId);return l===void 0?null:MP(t,n==="up"?-1:1,r,lo(e),l,d=>Wd(e,d,o.measurer))}let a=o.stops?[...o.stops]:jP(e,o.measurer);if(a.length===0)return null;let i=a.findIndex(l=>l.position.paragraphId===t.paragraphId&&l.position.offset===t.offset);if(i===-1){if(n==="left"||n==="right"){let d=Bp(a,t,n==="left"?-1:1)??rs(a,t);return d?{position:d.position,desiredX:null}:null}let l=rs(a,t);if(!l)return null;i=a.indexOf(l);}let s=a[i];switch(n){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===s.lineId)[0].position,desiredX:null};case "lineEnd":{let l=a.filter(d=>d.lineId===s.lineId);return {position:l[l.length-1].position,desiredX:null}}case "wordLeft":case "wordRight":{let l=Ba(e,t.paragraphId),d=n==="wordLeft"?-1:1,c=os(l,t.offset,d,Lp(e,t.paragraphId));return c===t.offset?{position:a[d===-1?Math.max(0,i-1):Math.min(a.length-1,i+1)].position,desiredX:null}:{position:{paragraphId:t.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 l=r??s.x,d=s.pageIndex+(n==="pageUp"?-1:1),c=a.filter(p=>p.pageIndex===d);if(c.length===0)return {position:(n==="pageUp"?a[0]:a[a.length-1]).position,desiredX:l};let u=c[0],f=Number.POSITIVE_INFINITY;for(let p of c){let m=Math.abs(p.y-s.y)*1e3+Math.abs(p.x-l);m<f&&(f=m,u=p);}return {position:u.position,desiredX:l}}case "up":case "down":{let l=r??s.x,d=[],c=new Set;for(let g of a)c.has(g.lineId)||(c.add(g.lineId),d.push(g.lineId));let u=d.indexOf(s.lineId),f=n==="up"?u-1:u+1;if(f<0||f>=d.length)return {position:(n==="up"?a[0]:a[a.length-1]).position,desiredX:l};let p=a.filter(g=>g.lineId===d[f]),m=p[0];for(let g of p)Math.abs(g.x-l)<Math.abs(m.x-l)&&(m=g);return {position:m.position,desiredX:l}}default:return null}}function QM(e,t,n){return WP(e,t,n)}function eB(e,t,n){let r=zd(t,n);if(!r)return [];if(r.from.paragraphId===r.to.paragraphId&&r.from.offset===r.to.offset)return tB(e,r.from);let o=[];if(r.from.paragraphId===r.to.paragraphId){for(let{line:l}of Gt(e).get(r.from.paragraphId)??[]){let d=Fn(l,r.from.paragraphId);if(!d)continue;let c=uo(e,d,r.from,r.to);if(c)for(let u of d.spans)u.range.end>c.start&&u.range.start<c.end&&o.push(u);}return o}let a=Gt(e),i=Gd(n,r.from.paragraphId),s=Gd(n,r.to.paragraphId);if(i===-1||s===-1)return [];for(let l=i;l<=s;l+=1)for(let{line:d}of a.get(n[l])??[]){let c=Fn(d,n[l]);if(!c)continue;let u=uo(e,c,r.from,r.to);if(u)for(let f of c.spans)f.range.end>u.start&&f.range.start<u.end&&o.push(f);}return o}function tB(e,t){let n=null;for(let{line:r}of Gt(e).get(t.paragraphId)??[])for(let o of Fn(r,t.paragraphId)?.spans??[]){if(o.range.start<t.offset&&t.offset<=o.range.end)return [o];n===null&&o.range.start===t.offset&&(n=o);}return n?[n]:[]}var GP=new WeakMap;function Qn(e){let t=GP.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=(s,l,d,c)=>{for(let u of s){if(u.kind==="paragraph")continue;let f=u.tableId,p=o.get(f);p||(p=new Map,o.set(f,p),n.set(f,[]),r.set(f,new Map));for(let m of u.rows){let g=p.get(m.id);g===void 0&&(g=p.size,p.set(m.id,g),r.get(f).set(g,m.cells));for(let h of m.cells)n.get(f).push({pageIndex:l,tableId:f,row:m,cell:h,rowIndex:g,isHeaderRepeat:m.isHeaderRepeat,offsetX:d,offsetY:c}),a(h.blocks,l,d,c);}}};for(let s of e.pages){a(s.fragments,s.index,0,0);for(let l of [s.header,s.footer])l&&a(l.fragments,s.index,l.box.x-s.contentBox.x,l.box.y-s.contentBox.y);for(let l of [s.footnotes,s.endnotes])if(l)for(let d of l.notes)a(d.fragments,s.index,d.box.x-s.contentBox.x,d.box.y-s.contentBox.y);}let i=new Map;for(let[s,l]of n)i.set(s,{placed:l,rows:r.get(s)??new Map});return GP.set(e,i),i}function $P(e){let t=0;for(let n of e.rows.values())for(let r of n)t=Math.max(t,Tr(r).to+1);return t}var Tr=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function nB(e,t,n){if(t.tableId!==n.tableId)return null;let r=Qn(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(Tr(t).from,Tr(n).from),s=Math.max(Tr(t).to,Tr(n).to),l=p=>{let{from:m,to:g}=Tr(p);return g>=i&&m<=s},d=p=>(r.rows.get(p)??[]).some(m=>m.vMergeContinue&&l(m)),c=r.rows.size+$P(r)+2;for(let p=0;!(p>c);p+=1){let m=false;for(let[g,h]of r.rows)if(!(g<o||g>a))for(let y of h){if(!l(y))continue;let{from:x,to:w}=Tr(y);x<i&&(i=x,m=true),w>s&&(s=w,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:g}=Tr(p.cell);g<i||m>s||f.has(p.cell.id)||(f.add(p.cell.id),u.push(p.cell.id));}return u.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:u,rows:{from:o,to:a},columns:{from:i,to:s},text:rB(e,t.tableId,u)}}function zj(e,t){return XP(e,t,true)}function $d(e,t){return XP(e,t,false)}function XP(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of Qn(e).values())for(let s of i.placed)if(!(s.isHeaderRepeat||!r.has(s.cell.id)))for(let l of s.cell.blocks)n&&l.kind!=="paragraph"||Ea(l,o,a);return o}function Ea(e,t,n){if(e.kind==="paragraph"){for(let r of vr(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Ea(a,t,n);}function rB(e,t,n){let r=$d(e,n),o=r[0],a=r[r.length-1];return !o||!a?oB(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:Ba(e,a).length}}}function oB(e,t){let n=Qn(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)Ea(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of qe(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function aB(e){let t=[...qe(e)];for(let n of [e.header,e.footer])n&&t.push(...vt(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...vt(r.fragments));return t}function iB(e,t){let n=new Set($d(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of aB(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let l of s.spans){let d=`${l.range.paragraphId}:${l.range.start}:${l.range.end}`;o.has(d)||(o.add(d),r.push(l));}return r}function sB(e,t){let n=new Set(t),r=[];for(let o of Qn(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function lB(e,t){let n=Qn(e).get(t.tableId);if(!n)return "";let r=new Set(t.cellIds),o=new Map,a=new Set;for(let i of n.placed){if(i.isHeaderRepeat||!r.has(i.cell.id)||a.has(i.cell.id))continue;a.add(i.cell.id);let s=$d(e,[i.cell.id]).map(d=>Ba(e,d)).join(`
|
|
18
|
-
`),l=o.get(i.rowIndex);l?l.set(i.cell.gridColumn,s):o.set(i.rowIndex,new Map([[i.cell.gridColumn,s]]));}return [...o.keys()].sort((i,s)=>i-s).map(i=>{let s=o.get(i),l=[];for(let d=t.columns.from;d<=t.columns.to;d+=1)l.push(s.get(d)??"");return l.join(" ")}).join(`
|
|
19
|
-
`)}function Np(e,t){let n=null,r=-1;for(let[o,a]of Qn(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)Ea(d,s,new Set);if(!s.includes(t))continue;let l=o.length;l<=r||(r=l,n={tableId:o,rows:a.rows.size,columns:$P(a),rowIndex:i.rowIndex,columnIndex:i.cell.gridColumn});}return n}function jj(e,t,n){if(n){let a=Np(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=Qn(e).get(n.tableId);if(!s)return null;for(let l of s.placed)if(l.cell.id===i)return {tableId:n.tableId,rowId:l.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:l.cell.gridColumn,isHeaderRepeat:l.isHeaderRepeat};return null}let r=Np(e,t);if(!r)return null;let o=Qn(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)Ea(s,i,new Set);if(i.includes(t))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}var VP=new WeakMap;function Wj(e,t){let n=VP.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of Qn(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let d of i.cell.blocks)Ea(d,s,new Set);let l={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let d of s){let c=r.get(d);c&&c.tableId.length>=o.length||r.set(d,l);}}return VP.set(e,r),r.get(t)??null}exports.$=Og;exports.$a=ou;exports.$b=qy;exports.$c=Xx;exports.$d=TM;exports.A=wn;exports.Aa=Wg;exports.Ab=vu;exports.Ac=ed;exports.Ad=Fd;exports.Ae=lB;exports.B=Le;exports.Ba=jo;exports.Bb=Iu;exports.Bc=td;exports.Bd=eR;exports.Be=Np;exports.C=lr;exports.Ca=Gg;exports.Cb=xi;exports.Cc=nd;exports.Cd=Md;exports.Ce=jj;exports.D=_n;exports.Da=_B;exports.Db=zt;exports.Dc=wf;exports.Dd=Rp;exports.De=Wj;exports.E=uv;exports.Ea=Yc;exports.Eb=ea;exports.Ec=ix;exports.Ed=IR;exports.F=Bc;exports.Fa=Uc;exports.Fb=ta;exports.Fc=vf;exports.Fd=Sp;exports.G=oi;exports.Ga=qc;exports.Gb=dI;exports.Gc=wr;exports.Gd=gF;exports.H=pv;exports.Ha=Zc;exports.Hb=Fu;exports.Hc=cn;exports.Hd=Pp;exports.I=Ct;exports.Ia=Hn;exports.Ib=Hh;exports.Ic=px;exports.Id=ns;exports.J=hv;exports.Ja=fi;exports.Jb=RI;exports.Jc=Cf;exports.Jd=NR;exports.K=yv;exports.Ka=Ft;exports.Kb=qr;exports.Kc=sd;exports.Kd=AR;exports.L=Nc;exports.La=dr;exports.Lb=Mu;exports.Lc=Tx;exports.Ld=kp;exports.M=Dc;exports.Ma=Yv;exports.Mb=Bu;exports.Mc=Di;exports.Md=Dd;exports.N=tn;exports.Na=Jc;exports.Nb=_E;exports.Nc=Ra;exports.Nd=Hd;exports.O=Sv;exports.Oa=Wo;exports.Ob=Wu;exports.Oc=lo;exports.Od=ZF;exports.P=Rv;exports.Pa=Qc;exports.Pb=wy;exports.Pc=Ex;exports.Pd=cP;exports.Q=Pv;exports.Qa=Uv;exports.Qb=Rl;exports.Qc=tt;exports.Qd=Lz;exports.R=Ns;exports.Ra=qv;exports.Rb=ky;exports.Rc=vD;exports.Rd=uP;exports.S=vv;exports.Sa=Zv;exports.Sb=Ol;exports.Sc=vr;exports.Sd=fP;exports.T=_c;exports.Ta=Jv;exports.Tb=My;exports.Tc=ID;exports.Td=nM;exports.U=As;exports.Ua=eu;exports.Ub=Jr;exports.Uc=Df;exports.Ud=rM;exports.V=Iv;exports.Va=Go;exports.Vb=KT;exports.Vc=zi;exports.Vd=oM;exports.W=Tv;exports.Wa=nu;exports.Wb=ma;exports.Wc=HO;exports.Wd=Vz;exports.X=kv;exports.Xa=ru;exports.Xb=Ny;exports.Xc=ud;exports.Xd=lM;exports.Y=zc;exports.Ya=mi;exports.Yb=Yn;exports.Yc=ED;exports.Yd=yP;exports.Z=Tg;exports.Za=r0;exports.Zb=eo;exports.Zc=zO;exports.Zd=SM;exports._=kg;exports._a=Vo;exports._b=DL;exports._c=pd;exports._d=PM;exports.a=Sc;exports.aa=Cg;exports.ab=jr;exports.ac=Ci;exports.ad=md;exports.ae=kM;exports.b=Rc;exports.ba=Fg;exports.bb=l0;exports.bc=Zy;exports.bd=ji;exports.be=FM;exports.c=Pc;exports.ca=Mg;exports.cb=d0;exports.cc=ln;exports.cd=QO;exports.ce=wP;exports.d=sr;exports.da=Mv;exports.db=Wn;exports.dc=Ml;exports.dd=AD;exports.de=uj;exports.e=Fo;exports.ea=Bv;exports.eb=cr;exports.ec=Un;exports.ed=DD;exports.ee=IP;exports.f=Is;exports.fa=_o;exports.fb=th;exports.fc=Bl;exports.fd=_D;exports.fe=fj;exports.g=dw;exports.ga=Nv;exports.gb=cu;exports.gc=ik;exports.gd=HD;exports.ge=pj;exports.h=xn;exports.ha=Wc;exports.hb=nh;exports.hc=to;exports.hd=zD;exports.he=xj;exports.i=_r;exports.ia=qe;exports.ib=uu;exports.ic=rb;exports.id=Pd;exports.ie=AP;exports.j=og;exports.ja=vt;exports.jb=rh;exports.jc=Ll;exports.jd=Yt;exports.je=os;exports.k=kc;exports.ka=Vc;exports.kb=nn;exports.kc=dn;exports.kd=A1;exports.ke=jP;exports.l=Cs;exports.la=Hv;exports.lb=Ys;exports.lc=db;exports.ld=qf;exports.le=XM;exports.m=fw;exports.ma=ii;exports.mb=Uo;exports.mc=Nl;exports.md=Zf;exports.me=WP;exports.n=gw;exports.na=Ag;exports.nb=mr;exports.nc=fk;exports.nd=Jf;exports.ne=UM;exports.o=Ja;exports.oa=si;exports.ob=rn;exports.oc=xr;exports.od=EC;exports.oe=qM;exports.p=hw;exports.pa=_s;exports.pb=ve;exports.pc=pk;exports.pd=QC;exports.pe=ZM;exports.q=yw;exports.qa=li;exports.qb=W0;exports.qc=cb;exports.qd=eF;exports.qe=Ba;exports.r=Ve;exports.ra=Hs;exports.rb=Ie;exports.rc=mk;exports.rd=Oa;exports.re=Lp;exports.s=Xw;exports.sa=di;exports.sb=Ur;exports.sc=ub;exports.sd=Yi;exports.se=JM;exports.t=ug;exports.ta=Dg;exports.tb=bi;exports.tc=ao;exports.td=qS;exports.te=QM;exports.u=sv;exports.ua=zs;exports.ub=Pu;exports.uc=Mk;exports.ud=oF;exports.ue=eB;exports.v=Fs;exports.va=Ho;exports.vb=Ph;exports.vc=io;exports.vd=ZS;exports.ve=nB;exports.w=ti;exports.wa=Kc;exports.wb=X0;exports.wc=mf;exports.wd=mp;exports.we=zj;exports.x=Fc;exports.xa=zg;exports.xb=K0;exports.xc=Wb;exports.xd=pp;exports.xe=$d;exports.y=Mc;exports.ya=ui;exports.yb=on;exports.yc=Xl;exports.yd=JS;exports.ye=iB;exports.z=ni;exports.za=jg;exports.zb=U0;exports.zc=nx;exports.zd=QS;exports.ze=sB;
|