@docx-editor.dev/core 2.33.0 → 2.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +11 -11
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +13 -13
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CrPI9ZQc.d.ts → chrome-print-DY0xsXm_.d.ts} +163 -112
- package/dist/{chunk-X34QRAUU.cjs → chunk-37IYWENL.cjs} +1 -1
- package/dist/chunk-37RNWL45.js +4 -0
- package/dist/chunk-5HUVQXET.cjs +4 -0
- package/dist/chunk-5JP3QQF7.js +7 -0
- package/dist/chunk-5KOLFKOB.cjs +5 -0
- package/dist/chunk-6MF5PN2E.js +236 -0
- package/dist/chunk-77JT2AU7.js +2 -0
- package/dist/{chunk-2F2UEAE2.js → chunk-7FUORGCW.js} +1 -1
- package/dist/chunk-A5BTVPET.cjs +236 -0
- package/dist/chunk-AFXFH2T2.js +3 -0
- package/dist/chunk-AVCYP7OY.js +5 -0
- package/dist/chunk-BL2E4QRA.js +1 -0
- package/dist/chunk-DB7X4Y6O.js +4 -0
- package/dist/chunk-DR6W23TB.cjs +2 -0
- package/dist/{chunk-2DR4TH6B.js → chunk-DYLB5U42.js} +1 -1
- package/dist/chunk-E5BKDHIP.cjs +1 -0
- package/dist/chunk-IWXBRUPG.cjs +4 -0
- package/dist/{chunk-L3YXJDPX.js → chunk-KCUXXO3Q.js} +1 -1
- package/dist/chunk-KYA4Y2YB.js +1 -0
- package/dist/{chunk-PXMTQ73F.cjs → chunk-L74TCGVH.cjs} +1 -1
- package/dist/chunk-NBSSQSKY.js +30 -0
- package/dist/{chunk-RFUNFTGV.cjs → chunk-NEM774E3.cjs} +1 -1
- package/dist/chunk-NKZVMMHU.cjs +1 -0
- package/dist/chunk-TXIO5WYQ.cjs +32 -0
- package/dist/chunk-UKG2TXWH.cjs +7 -0
- package/dist/chunk-V7CO55DO.cjs +3 -0
- package/dist/chunk-VLQDQNSS.js +1 -0
- package/dist/chunk-VQOAC3VI.cjs +30 -0
- package/dist/chunk-YWJSQA2O.js +32 -0
- package/dist/chunk-ZJ74LCFI.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +2 -2
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +9 -9
- package/dist/contracts/modules.d.ts +11 -11
- package/dist/contracts/types.d.ts +3 -3
- package/dist/{custom-node-writes-AqY5KpVx.d.ts → custom-node-writes-DparEcZK.d.ts} +45 -7
- package/dist/{diagnostic-context-CuzhOX0g.d.ts → diagnostic-context-CkZKkKvB.d.ts} +1 -1
- package/dist/{diagnostic-hints-BtCaCqQC.d.ts → diagnostic-hints-BTyb8yzX.d.ts} +1 -1
- package/dist/{document-protection-BvbpSXbQ.d.ts → document-protection-DdWxihIN.d.ts} +1 -1
- package/dist/{drawing-graphic-kind-CXYGYbB3.d.ts → drawing-graphic-kind-CK0cMc7H.d.ts} +91 -18
- package/dist/{drawing-preview-package-B9lSLRg4.d.ts → drawing-preview-package-fFjXpOMS.d.ts} +1 -1
- package/dist/{editor-B7OOAAie.d.ts → editor-DDCkWqfD.d.ts} +47 -15
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +2 -2
- package/dist/editor.d.ts +200 -75
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +8 -8
- package/dist/export.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +20 -20
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-Ci_BTnSU.d.ts → layout-shaping-Byj-TwsI.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +289 -129
- package/dist/layout.js +1 -1
- package/dist/{metafile-drawing-DtMFyMKq.d.ts → metafile-drawing-Ce6TuWLm.d.ts} +9 -1
- package/dist/{note-properties-DCIJUKIy.d.ts → note-properties-BiunaIQa.d.ts} +31 -7
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +76 -12
- package/dist/output.js +1 -1
- package/dist/{protocol-Cp_QzVxS.d.ts → protocol-Dn44dL4M.d.ts} +184 -120
- package/dist/{review-paragraph-order-BJQ43_r0.d.ts → review-paragraph-order-BWMXAKuA.d.ts} +1 -1
- package/dist/{revision-projection-OVusTS77.d.ts → revision-projection-DwFhgIR0.d.ts} +1 -1
- package/dist/{semantic-cell-selection-CoI5hHBm.d.ts → semantic-cell-selection-DhalxEBH.d.ts} +2 -2
- package/dist/{semantic-interaction-BbA4dgEo.d.ts → semantic-interaction-QeuzEtAk.d.ts} +2 -4
- package/dist/{semantic-paint-B5JcIv9c.d.ts → semantic-paint-BYDZbTiY.d.ts} +4 -4
- package/dist/{semantic-record-queries-DnO8J5_j.d.ts → semantic-record-queries-Bf5bgQL3.d.ts} +1 -1
- package/dist/{semantic-records-DoK0lNjS.d.ts → semantic-records-CzZiWMY8.d.ts} +99 -94
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +31 -16
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-Df4oY2u4.d.ts → tree-op-types-DKvJSH8T.d.ts} +204 -147
- package/dist/{tree-package-store-DXhX1PE-.d.ts → tree-package-store-Cl3BkWXF.d.ts} +1 -1
- package/dist/{tree-session-contract-CF2625mv.d.ts → tree-session-contract-BL50pqs8.d.ts} +14 -7
- package/dist/{unsupported-elements-CUojsaCr.d.ts → unsupported-elements-Bra4QTOM.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-23MKR33J.js +0 -4
- package/dist/chunk-2DEY5NUC.cjs +0 -32
- package/dist/chunk-2GPGAFOJ.cjs +0 -5
- package/dist/chunk-ALD626VU.cjs +0 -2
- package/dist/chunk-AU33YWEJ.js +0 -236
- package/dist/chunk-AXU63LYW.cjs +0 -1
- package/dist/chunk-CM5VZRBV.js +0 -32
- package/dist/chunk-D7FAFFTN.js +0 -1
- package/dist/chunk-DYUVJNDD.cjs +0 -1
- package/dist/chunk-ESYUKD5D.js +0 -2
- package/dist/chunk-F7TGQMVR.js +0 -5
- package/dist/chunk-FLW7KIQX.js +0 -30
- package/dist/chunk-JG4A6W6I.js +0 -7
- package/dist/chunk-JNGLSBPH.js +0 -2
- package/dist/chunk-KE6ZWRIY.cjs +0 -236
- package/dist/chunk-LI42N7OW.cjs +0 -4
- package/dist/chunk-PLKDS4JT.js +0 -1
- package/dist/chunk-R4R3AAE4.js +0 -1
- package/dist/chunk-SVM6PGMS.js +0 -3
- package/dist/chunk-SZURLHR3.cjs +0 -3
- package/dist/chunk-UYCGCVZ2.cjs +0 -1
- package/dist/chunk-XNBYG4XJ.cjs +0 -30
- package/dist/chunk-ZDFJW5XS.cjs +0 -2
- package/dist/chunk-ZWO4JHNN.cjs +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Eb,cb,ib,
|
|
1
|
+
import {Eb,cb,ib,kg,ig,Sa,Ra,Dm,pa,Ob,Gb,Fb,Ua,qa}from'./chunk-6MF5PN2E.js';var K=new Set(["document","hdr","ftr","footnotes","endnotes"]),rr=24,H=512,z=Eb(rr);function G(t){let n=t.root;return n.namespaceUri===pa&&K.has(n.localName)}function tr(t){let n=[],e=r=>{if(r.kind!=="textValue"){r.namespaceUri===pa&&r.localName==="p"&&n.push(r);for(let a of r.children)e(a);}};return e(t.root),n}function X(t){let n=Ob(t);let e=[],r=new Set;for(let a of tr(n)){let i=Gb(a);if(!i||!Fb(i))continue;let o=i.toUpperCase();if(r.has(o))continue;r.add(o);let l=Dm(n,a.id);l!==null&&e.push(Object.freeze({paragraphId:o,nodeId:a.id,text:l}));}return Object.freeze(e)}function er(t){let n=z.get(t.root);if(n)return n;let e=W(t,"byParagraphId");return z.set(t.root,e),e}function W(t,n){let e=Ob(t);let r=new Map,a=new Set,i=o=>{if(o.kind!=="textValue"){if(o.namespaceUri===pa&&o.localName==="p"){let l=Gb(o);if(l&&Fb(l)){let s=l.toUpperCase();a.has(s)||(a.add(s),o.kind==="paragraph"&&(n==="byParagraphId"?r.set(s,o.id):r.set(o.id,s)));}}for(let l of o.children)i(l);}};return i(e.root),r}function V(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;e+=1)if(t[e].root!==n[e])return false;return true}function $(t){let n=new Map,e=null,r=(o,l,s)=>{for(n.delete(o),n.set(o,{partName:l.name,root:l.root,nodeId:s});n.size>H;){let d=n.keys().next();if(d.done)break;n.delete(d.value);}},a=(o,l)=>{let s=n.get(o);if(!s)return null;let d=l.find(k=>k.name===s.partName);if(!d)return null;if(d.root===s.root)return {part:d,nodeId:s.nodeId};let u=cb(d,s.nodeId);if(!u||u.kind!=="paragraph")return null;let x=Gb(u);return !x||x.toUpperCase()!==o?null:(r(o,d,s.nodeId),{part:d,nodeId:s.nodeId})};return Object.assign(o=>{let l=t(),s=a(o,l);if(s)return s;if(e&&e.ids.has(o)&&V(l,e.roots))return null;for(let d of l){let u=er(d).get(o);if(u!==void 0)return r(o,d,u),{part:d,nodeId:u}}return (!e||!V(l,e.roots))&&(e={roots:l.map(d=>d.root),ids:new Set}),e.ids.size<H&&e.ids.add(o),null},{forgetIds(o){for(let{paragraphId:l,nodeId:s}of o)n.get(l)?.nodeId!==s&&n.delete(l);},forgetAll(){n.clear();},hasHints(){return n.size>0}})}function Y(t,n,e){if(!t.hasHints())return;let r=[...e.dirty,...e.created];if(e.impact!=="text-local"||r.length===0)return t.forgetAll();let a=[];for(let i of r){let o=n.find(d=>i.startsWith(`${d.name}#`)),l=o?cb(o,i):null,s=l?.kind==="paragraph"?Gb(l):null;if(!s)return t.forgetAll();a.push({paragraphId:s.toUpperCase(),nodeId:i});}t.forgetIds(a);}function q(t){let n=null;return e=>{let r=t();n?.root!==r.root&&(n={root:r.root,byNodeId:W(r,"byNodeId")});let a=n.byNodeId.get(e);if(a===void 0)return null;let i=Dm(r,e);return i===null?null:Object.freeze({paragraphId:a,nodeId:e,text:i})}}function Z(t,n){return Ua(t,n)}var or=Object.freeze({kind:"body"}),ar=1e6;function A(t,n){if(n<=0||n>=t.length)return false;let e=t.charCodeAt(n-1),r=t.charCodeAt(n);return e>=55296&&e<=56319&&r>=56320&&r<=57343}function ir(t,n,e){if(n===e)return [];let r=0,a=Math.min(n.length,e.length);for(;r<a&&n.charCodeAt(r)===e.charCodeAt(r);)r+=1;for(;r>0&&(A(n,r)||A(e,r));)r-=1;let i=0;for(;i<n.length-r&&i<e.length-r&&n.charCodeAt(n.length-i-1)===e.charCodeAt(e.length-i-1);)i+=1;for(;i>0&&(A(n,n.length-i)||A(e,e.length-i));)i-=1;let o=n.length-r-i,l=e.slice(r,e.length-i),s=[];return o>0&&s.push({op:"deleteText",paragraphId:t,start:r,end:r+o}),l.length>0&&s.push({op:"insertText",paragraphId:t,offset:r,text:l}),Object.freeze(s)}function lr(t){let n=r=>!!r&&r.kind!=="textValue"&&r.namespaceUri===pa&&r.localName==="t"&&r.attributes.every(a=>a.namespaceUri===qa&&a.localName==="space")&&r.children.every(a=>a.kind==="textValue"),e=[];for(let r of t){let a=e.at(-1);if(!n(a)||!n(r)){e.push(r);continue}let i=a.children.map(o=>o.kind==="textValue"?o.value:"").join("")+r.children.map(o=>o.kind==="textValue"?o.value:"").join("");e[e.length-1]={...a,attributes:/^\s|\s$/.test(i)?[{kind:"xmlSpace",namespaceUri:qa,localName:"space",prefix:"xml",value:"preserve"}]:[],children:[{id:a.children[0]?.id??`${a.id}/text`,kind:"textValue",value:i}]};}return e}function F(t){if(t.kind==="textValue")return t;let n=false,e=t.children.map(r=>{let a=F(r);return a!==r&&(n=true),a});if(t.namespaceUri===pa&&t.localName==="r"){let r=lr(e);(r.length!==e.length||r.some((a,i)=>a!==e[i]))&&(e=[...r],n=true);}return n?{...t,children:e}:t}function sr(t,n,e){let r=t.parts.get(n);if(!r)return t;let a=false,i=new Set;for(let o of e)(o.op==="insertText"||o.op==="deleteText")&&!o.revision&&i.add(o.paragraphId);for(let o of i){let l=cb(r,o);if(!l||l.kind==="textValue")continue;let s=F(l);if(s===l)continue;let d=ib(r,o,s,{deferValidation:true});d.ok&&(r=d.part,a=true);}return a?kg(t,r):t}function dr(t,n){let e=n.documentId.trim();if(e.length===0||e.length>256)throw new TypeError("documentId must contain 1 to 256 characters");let r=()=>X(t.bodyStore().part),a,i=()=>{let p=t.bodyStore().part,c=t.currentPackage();if(a?.pkg===c&&a.body===p)return a.parts;let g=[p];for(let m of c.parts.values())m===p||!G(m)||g.push(m);return a={pkg:c,body:p,parts:Object.freeze(g)},a.parts},o=$(i),l=t.packageRevision,s=t.lastModelChange,d=()=>{let p=t.packageRevision,c=t.lastModelChange;p===l&&c===s||(p===l+1&&c!==null&&c!==s?Y(o,i(),c):o.forgetAll(),l=p,s=c);},u=q(()=>t.bodyStore().part),x=(p,c)=>{if(p.length===0)return {ok:true,changed:false};let g=r(),m=new Set,O=[];for(let h of p){if(typeof h.text!="string"||h.text.length>ar)return {ok:false,reason:"collaboration-text-limit"};if(typeof h.paragraphId!="string"||h.paragraphId.length===0||h.paragraphId.length>256)return {ok:false,reason:"unknown-paragraph-id"};let f=h.paragraphId.toUpperCase();if(m.has(f))return {ok:false,reason:"duplicate-paragraph-id"};m.add(f);let D=g.filter(Q=>Q.paragraphId===f);if(D.length!==1)return {ok:false,reason:"unknown-paragraph-id"};let w=D[0];O.push(...ir(w.nodeId,w.text,h.text));}if(O.length===0)return {ok:true,changed:false};let v=t.transact(or,h=>{for(let f of O)h.apply(f);h.applyPackage(f=>sr(f,f.mainDocumentPart,O));},{origin:c.origin,actorId:c.actorId,operationId:c.operationId,recordsHistory:false});return v.ok?{ok:true,changed:v.change!==null}:{ok:false,reason:v.detail??v.reason}},k={documentId:e,interactive:n.interactive===true,paragraphs:r,paragraphByNodeId:u,paragraphTextOf(p){for(let c of i()){let g=Dm(c,p);if(g!==null)return g}return null},paragraphByStableId(p){let c=p.toUpperCase();d();let g=o(c);if(!g)return null;let m=Dm(g.part,g.nodeId);return m===null?null:Object.freeze({paragraphId:c,nodeId:g.nodeId,text:m})},applyParagraphText(p,c,g){return x([{paragraphId:p,text:c}],g)},applyParagraphTexts:x,applyRemotePackage(p,c){let g=t.publishRemotePackage(p,c);return g.ok?{ok:true,changed:g.change!==null}:{ok:false,reason:g.detail??g.reason}},revision:()=>t.packageRevision,subscribe:p=>t.subscribe(p),observePrimitiveJournal:p=>Z(t,p),hasPendingJournals:()=>Ra(t),flushPendingJournals:()=>{Sa(t);},save:()=>ig(t.currentPackage()),binaryPart(p){let c=t.currentPackage();return c.partBytes.get(p)??c.partBytes.get(p.startsWith("/")?p.slice(1):`/${p}`)??null}};return Object.freeze(k)}function pr(t,n,e){if(n===e||t>n.length)return Math.min(t,e.length);let r=0;for(;r<n.length&&r<e.length&&n[r]===e[r];)r+=1;let a=0;for(;a<n.length-r&&a<e.length-r&&n[n.length-1-a]===e[e.length-1-a];)a+=1;if(t<=r)return Math.min(t,e.length);if(t>n.length-a)return Math.min(e.length,t+e.length-n.length);let i=ur(n,e,r,a),o=i.offsets.get(t);return o===void 0&&(o=(i.table?mr(i.table,t,n,e,r):null)??yr(t,n,e,r,a)??r,i.offsets.set(t,o)),o}var b=[],cr=16;function ur(t,n,e,r){let a=b.findIndex(o=>o.before===t&&o.after===n);if(a>=0){let[o]=b.splice(a,1);return b.push(o),o}let i={before:t,after:n,table:hr(t,n,e,r),offsets:new Map};return b.length>=cr&&b.shift(),b.push(i),i}var gr=1<<18;function hr(t,n,e,r){let a=t.length-r-e,i=n.length-r-e;if(a*i>gr)return null;let o=i+1,l=new Uint32Array((a+1)*o);for(let s=a-1;s>=0;s-=1)for(let d=i-1;d>=0;d-=1)l[s*o+d]=t[e+s]===n[e+d]?l[(s+1)*o+d+1]+1:Math.max(l[(s+1)*o+d],l[s*o+d+1]);return {lengths:l,width:o,columns:i}}function mr(t,n,e,r,a){let{lengths:i,width:o,columns:l}=t,s=n-a,d=0,u=0;for(;d<s;)u<l&&e[a+d]===r[a+u]?(d+=1,u+=1):u>=l||i[(d+1)*o+u]>=i[d*o+u+1]?d+=1:u+=1;return a+u}var fr=[32,16,8,4];function yr(t,n,e,r,a){let i=e.slice(r,e.length-a),o=l=>{let s=i.indexOf(l);return s>=0&&i.indexOf(l,s+1)<0?s:null};for(let l of fr){let s=n.slice(Math.max(r,t-l),t);if(s.length===l){let u=o(s);if(u!==null)return r+u+s.length}let d=n.slice(t,Math.min(n.length-a,t+l));if(d.length===l){let u=o(d);if(u!==null)return r+u}}return null}export{sr as a,dr as b,pr as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var chunkA5BTVPET_cjs=require('./chunk-A5BTVPET.cjs');var w=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,j="Cambria";function $(e){return e!==void 0&&e.trim().length>0&&w.test(e)?e:null}function Q(e){if(e===void 0||e.trim().length===0)return null;if(e.length>1024)return j;let n=v(e);return n.length===0?null:w.test(n)?n:n.startsWith("@")||n.startsWith("\uFF20")?n.length<=128?n:null:j}function Z(e){return e===void 0||e.length>1024?null:$(v(e))}function v(e){let n=e.indexOf(",");return (n<0?e:e.slice(0,n)).trim()}function W(e){return e.kind!=="textValue"}function S(e,n){for(let l of e.children)if(W(l)&&l.localName===n)return l}function V(e,n){return e.attributes.find(l=>l.localName===n)?.value}function ne(e){let n=S(e,"pPr"),l=n?S(n,"outlineLvl"):void 0;if(l){let o=V(l,"val");return o!==void 0&&/^[0-8]$/.test(o)?Number(o):null}let t=S(e,"name"),i=t?/^heading\s+([1-9])$/i.exec(V(t,"val")?.trim()??""):null;return i?Number(i[1])-1:null}function R(e,n=0,l=e.length,t){let i=new Set,o=new Map,d=new Map,u=t?[t]:[];t&&i.add(t);for(let s=n;s<l;s+=1){let r=e[s].node;if(chunkA5BTVPET_cjs.Vg(r,"begin")){u.push(r.id);continue}if(chunkA5BTVPET_cjs.Vg(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(chunkA5BTVPET_cjs.Vg(r,"end")){let a=u.pop();a&&(i.add(a),d.set(r.id,a));}}return {activeBegins:i,separateBegin:o,endBegin:d}}function b(e,n,l){if(chunkA5BTVPET_cjs.Vg(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(chunkA5BTVPET_cjs.Vg(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(chunkA5BTVPET_cjs.Vg(l,"end")){let t=n.endBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&e.pop(),true}return false}function g(e){for(let n of e)if(!n.separated)return false;return true}function ie(e,n){let l=[];chunkA5BTVPET_cjs.fh(e,l,n);let t=R(l),i=[];return {consume:o=>b(i,t,o),visible:()=>g(i)}}function C(e,n){return e==="original"?n.hiddenInOriginal:e==="current"&&n.hiddenInCurrent}var U=4096,H=chunkA5BTVPET_cjs.gh*16;function k(){return {out:[],runs:[],symbols:[],symbolDisplays:[],length:0}}function X(e,n,l,t){if(n.length===0||l===t)return;let i=e.runs[e.runs.length-1];if(i?.runId===n&&i.end===l){e.runs[e.runs.length-1]={runId:n,start:i.start,end:t};return}e.runs.push({runId:n,start:l,end:t});}function O(e,n,l,t){let i=chunkA5BTVPET_cjs.eh(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;chunkA5BTVPET_cjs.ob(n)&&(e.symbols.push(o),e.symbolDisplays.push(chunkA5BTVPET_cjs.Sl(n))),e.out.push(i),e.length+=i.length,X(e,l,o,e.length);}return true}function z(e,n){let l=e.length;n.text.length>0&&e.out.push(n.text),e.length+=n.text.length;for(let t of n.runs)X(e,t.runId,l+t.start,l+t.end);for(let t of n.symbols??[])e.symbols.push(l+t);for(let t of n.symbolDisplays??[])e.symbolDisplays.push(t);}function T(e){let n=e.out.join("");return e.symbols.length>0?{text:n,runs:e.runs,symbols:e.symbols,symbolDisplays:e.symbolDisplays}:{text:n,runs:e.runs}}var G=Object.freeze({text:"",runs:[]});function M(){return {text:chunkA5BTVPET_cjs.Qg,runs:[]}}function q(e,n,l,t){let i=[];if(!chunkA5BTVPET_cjs.fh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(chunkA5BTVPET_cjs.Yg(u.node)){let s=[];if(!chunkA5BTVPET_cjs.fh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!chunkA5BTVPET_cjs.Wg(u.node)&&!O(d,u.node,u.runId,t))return null}}return T(d)}function J(e,n,l,t,i){let o=k(),d=[],u=R(e);for(let s of e){let r=s.node;if(!b(d,u,r)&&!chunkA5BTVPET_cjs.Wg(r)&&g(d)&&!C(n,s)){if(chunkA5BTVPET_cjs.Yg(r)){let a=i>=chunkA5BTVPET_cjs.hh?q(r,n,l,t):Y(r,n,l,t,i+1);if(a===null)return null;z(o,a);continue}if(!O(o,r,s.runId,t))return null}}return T(o)}function Y(e,n,l,t,i){let o=[];return chunkA5BTVPET_cjs.fh(e,o,l)?J(o,n,l,t,i):null}function K(e,n,l){let t=n.node;return e.owned.has(t.id)&&(e.nodesLeft-=1,e.nodesLeft<0&&(e.overflow=true)),t.id===e.endId?true:(t.id===e.span.node.id||b(e.states,e.markers,t)||e.overflow||chunkA5BTVPET_cjs.Wg(t)||chunkA5BTVPET_cjs.Yg(t)||!e.owned.has(t.id)||!g(e.states)||C(l,n)||O(e.result,t,n.runId,e.chars)||(e.overflow=true),false)}function ae(e,n,l="allMarkup"){let t=new Map,i=new Map,o=new Map;for(let r of n)r.kind==="complex"?i.set(r.node.id,r):o.set(r.node.id,r);let d=[];chunkA5BTVPET_cjs.fh(e,d);let u=new Map;for(let r=0;r<d.length;r+=1)u.set(d[r].node.id,r);let s=null;for(let r=0;r<d.length;r+=1){let a=d[r],y=o.get(a.node.id);if(y)if(s!==null&&!g(s.states))t.set(y.node.id,G);else {let f={left:U},I={left:H},m=Y(y.node,l,f,I,0);t.set(y.node.id,m??M());}if(s===null){let f=i.get(a.node.id);if(!f)continue;let I=new Set(f.removeNodeIds),m=-1;for(let N=f.removeNodeIds.length-1;N>=0;N-=1){let F=u.get(f.removeNodeIds[N]);if(!(F===void 0||F<=r)&&chunkA5BTVPET_cjs.Vg(d[F].node,"end")){m=F;break}}let E=d[m];if(!E){t.set(f.node.id,M());continue}s={span:f,owned:I,states:[{beginId:f.node.id,separated:false}],markers:R(d,r+1,m,f.node.id),endId:E.node.id,result:k(),chars:{left:H},nodesLeft:U,overflow:false};}K(s,a,l)&&(t.set(s.span.node.id,s.overflow?M():T(s.result)),s=null);}return s!==null&&t.set(s.span.node.id,M()),t}exports.a=$;exports.b=Q;exports.c=Z;exports.d=ie;exports.e=U;exports.f=ae;exports.g=ne;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
'use strict';var chunkV7CO55DO_cjs=require('./chunk-V7CO55DO.cjs'),chunkTXIO5WYQ_cjs=require('./chunk-TXIO5WYQ.cjs'),chunk5HUVQXET_cjs=require('./chunk-5HUVQXET.cjs'),chunkA5BTVPET_cjs=require('./chunk-A5BTVPET.cjs');function Ve(t,e){return mr(t,e)?"wordSpacing":Qt(t,e)&&fr(t,e)?"letterSpacing":null}function fr(t,e){return !(t.projected||t.equation||t.unsupported||e.projected||t.glyphOffsetPt!==void 0||t.range.paragraphId!==e.range.paragraphId||t.range.end!==e.range.start||t.range.end-t.range.start!==t.text.length||t.style.horizontalScalePercent!==100||(e.wrapAdvanceBefore??0)>.001||t.text.trim()===""||chunkTXIO5WYQ_cjs.ya(t.text).length!==1)}function Jt(t,e,n){return `${(t.style.characterSpacingPt+e)*n}px`}var hr=/[\t\n\r \u00A0\u1361\u{10100}-\u{10102}\u{1039F}\u{1091F}]/u;function mr(t,e){let n=chunkTXIO5WYQ_cjs.Fb(t.text);return !n.endsWith(" ")||t.style.horizontalScalePercent!==100||!Qt(t,e)||(e.wrapAdvanceBefore??0)>.001?false:!hr.test(n.slice(0,-1))}function Qt(t,e){return !t.link&&!e.link?true:!t.link||!e.link||t.link.id!==e.link.id||!!t.fieldAtom!=!!e.fieldAtom?false:!t.fieldAtom||Me(t)===Me(e)}function Me(t){return t.fieldAtom?.resultStart??t.range.start}function Xe(t,e){let n=e.box.x-(t.box.x+t.box.width),o=e.wrapAdvanceBefore??0;if(n-o>.001)return n-o;let i=!((t.style.shaping?.level??0)%2||(e.style.shaping?.level??0)%2);return n<-1e-3&&o<=.001&&i&&chunkTXIO5WYQ_cjs.Fb(t.text).endsWith(" ")?n:0}var gr=0,Le=Symbol.for("@docx-editor.dev/unsupported-element-host");function ce(t){return t[Le]}var br="[data-docx-unsupported]",qe=Symbol.for("@docx-editor.dev/unsupported-element-listeners");function en(t){for(let e=t;e;e=e.parentElement)for(let n of e[qe]??[])n();}var Ye=Symbol.for("@docx-editor.dev/unsupported-element-focus");function tn(t){let e=t.ownerDocument.activeElement,n=e?.closest(".docx-unsupported-slot");!e||!n||!t.contains(n)||(n[Ye]={element:e,start:e.selectionStart??null,end:e.selectionEnd??null,direction:e.selectionDirection??"none"});}function xr(t){let e=t[Ye];if(!e)return;delete t[Ye];let n=e.element;if(!n.isConnected||!t.contains(n))return;let o=t.ownerDocument,i=o.activeElement;i&&i!==n&&i!==o.body&&i!==o.documentElement&&!i.classList.contains("docx-pages")||(n.focus({preventScroll:true}),e.start!==null&&e.end!==null&&n.setSelectionRange?.(e.start,e.end,e.direction));}function vr(t){for(let e of t.childNodes)if(e.nodeType===1||e.nodeType===3&&e.nodeValue?.trim())return true;return false}function j(t,e,n,o,i=""){t.dataset.docxUnsupported=n.localName,i&&(t.dataset.docxUnsupportedOccurrence=i),t.setAttribute("contenteditable","false");let r=t.ownerDocument.createElement("span");r.className="docx-unsupported-slot";for(let y of ["pointerdown","mousedown","click","keydown","beforeinput","copy","cut","paste","compositionstart","compositionend","contextmenu","dragenter","dragover","dragleave","drop"])r.addEventListener(y,f=>f.stopPropagation());t.append(r);let a,s=false,l=null,d=()=>ce(t)?.slot??r,c=new t.ownerDocument.defaultView.MutationObserver(()=>u()),u=()=>{if(ce(t)?.fallback!==e)return;let y=d();l!==y&&(c.disconnect(),c.observe(y,{childList:true,subtree:true,characterData:true}),l=y);let f=s&&vr(y);if(e.hidden=f,t.toggleAttribute("data-docx-customized",f),!!o){if(f)a??={role:o.getAttribute("role"),hidden:o.getAttribute("aria-hidden")},o.setAttribute("role","group"),o.removeAttribute("aria-hidden");else if(a){for(let[h,g]of [["role",a.role],["aria-hidden",a.hidden]])g===null?o.removeAttribute(h):o.setAttribute(h,g);a=void 0;}}},p={key:`unsupported-${gr++}`,element:t,fallback:e,slot:r,unsupported:n,setCustomized(y){ce(t)?.fallback===e&&(s=y,u());}};Object.defineProperty(t,Le,{value:p,configurable:true});}function Sr(t,e){let n,o=new Map,i=()=>{let d=[],c=new Map,u=new Map;for(let p of t.querySelectorAll(br)){let y=ce(p);if(!y)continue;let f=p.closest(".docx-pages")??t,h=p.closest("[data-page-index]")?.getAttribute("data-page-index")??"",g=JSON.stringify([y.unsupported.ownerPartName,y.unsupported.namespaceUri,y.unsupported.localName,y.unsupported.nodeId,h,p.getAttribute("data-docx-unsupported-occurrence")??""]),m=u.get(g)??0;u.set(g,m+1);let k=`${g}:${m}`,S=o.get(k);S&&S.scope===f&&S.host!==y&&(y.slot.replaceWith(S.host.slot),y={...y,key:S.host.key,slot:S.host.slot},Object.defineProperty(p,Le,{value:y,configurable:true}),S.host.element.hasAttribute("data-docx-customized")&&y.setCustomized(true)),d.push(y),c.set(k,{host:y,scope:f});}o=c,queueMicrotask(()=>{for(let p of d)xr(p.slot);}),!(n&&d.length===n.length&&d.every((p,y)=>p===n[y]))&&(n=d,e(d));},r=t.ownerDocument.defaultView.MutationObserver,a=new r(i);a.observe(t,{childList:true,subtree:true});let s=t,l=s[qe]??=new Set;return l.add(i),i(),()=>{a.disconnect(),l.delete(i),l.size===0&&delete s[qe];}}function Ae(t){let e=ce(t);e?.setCustomized(false),e?.slot.remove(),delete t.dataset.docxUnsupported,delete t.dataset.docxCustomized,Reflect.deleteProperty(t,Le);}function Aa(t){return !!t?.closest?.(".docx-unsupported-slot")}function nn(t,e,n,o){let i=t.createElement("span");i.className="layout-run docx-unsupported-content",i.setAttribute("contenteditable","false"),i.style.display="inline-block",i.style.position="relative",i.style.width=`${e.width*o}px`,i.style.height=`${e.height*o}px`,i.style.verticalAlign="bottom",i.style.pointerEvents="auto";let r=t.createElement("span");return r.textContent=e.element.label,i.append(r),j(i,r,{...e.element,bounds:n}),i}function ue(t,e,n,o,i,r){let a=chunkTXIO5WYQ_cjs.jb(e,n);if(a.background==="byAuthor"&&!r?(t.style.setProperty("--doc-revision-background",`color-mix(in srgb, ${o} 15%, var(--doc-revision-color-white))`),t.style.backgroundColor="var(--doc-revision-background)"):a.background!=="none"&&(t.style.backgroundColor=a.background==="byAuthor"?r:chunkTXIO5WYQ_cjs.ib(a.background,o)),a.mark==="none")return;let s=chunkTXIO5WYQ_cjs.ib(a.color,i??o);a.color!=="auto"&&(t.style.color=s),a.mark==="bold"&&(t.style.fontWeight="bold"),a.mark==="italic"&&(t.style.fontStyle="italic");let l=a.mark==="underline"||a.mark==="doubleUnderline"?"underline":a.mark==="strikethrough"||a.mark==="doubleStrikethrough"?"line-through":void 0;l&&(t.style.textDecorationLine=l,t.style.textDecorationStyle=a.mark.startsWith("double")?"double":"solid",t.style.textDecorationColor=s,l==="underline"&&(t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"));}var on=new WeakMap;function kr(t){let e=null;for(let n of t)if(!(n.localName!=="rPrChange"&&n.localName!=="pPrChange")){e=n.attributes?.author??"";break}return e}function pe(t){let e=chunkTXIO5WYQ_cjs.Vf(t),n=on.get(e);if(n)return n;let o=[],i=new Set,r=true,a=p=>{p===""||i.has(p)||(i.add(p),o.push(p));},s=p=>{for(let f of p.props)f.localName==="pPrChange"&&a(f.attributes?.author??"");for(let f of p.lines){if(f.changeSites)for(let h of f.changeSites)a(h.author);for(let h of f.spans){let g=h.revisions;if(g!==void 0)for(let k=0;k<g.length;k+=1)a(g[k].author);let m=kr(h.props);m!==null&&a(m);}}for(let f of p.lines){let h=f.drawings;if(h!==void 0)for(let g=0;g<h.length;g+=1){let m=h[g].revisions;if(m!==void 0)for(let S=0;S<m.length;S+=1)a(m[S].author);let k=h[g].accessibility.hidden?void 0:h[g].textboxStory;if(k)for(let S of pe(k.fragments).authors)a(S);}}let y=p.markRevisions;if(y)for(let f=0;f<y.length;f+=1)a(y[f].author);},l=p=>{p.marker?.picture&&(r=false);for(let y of p.lines)(y.drawings?.length??0)>0&&(r=false);},d=[],c=(p,y)=>{for(let f of p){if(f.kind==="paragraph"){y&&s(f),r&&l(f);continue}for(let h of f.rows){let g=y&&!h.isHeaderRepeat;for(let m of h.cells)m.revisionShadingAuthor&&d.push(m.revisionShadingAuthor),c(m.blocks,g);}}};c(t,true);for(let p of d)a(p);let u={authors:o,drawingFree:r};return on.set(e,u),u}var C=8,an={color:"painted",background:"painted",activeBackground:"painted",spanClassName:"painted",avatarUrl:"card-only"},sn=Object.keys(an),wr=sn.filter(t=>an[t]==="painted"),Rr=new Set(["http","https","data","blob"]),Er=/^([a-zA-Z][a-zA-Z0-9+.-]*):/;function Pr(t){let e=t.replace(/[\u0000-\u0020\u007f]/g,"");if(e.length===0)return;let n=Er.exec(e);if(n)return !Rr.has(n[1].toLowerCase())||/^data:/i.test(e)&&!/^data:image\/(?!svg)/i.test(e)?void 0:e;let o=i=>e[i]==="/"||e[i]==="\\";return o(0)&&o(1)?void 0:e}function Mr(t){if(typeof t=="string")return t.length>0?{color:t}:null;if(t===null||typeof t!="object")return null;let e={},n=Object.prototype.hasOwnProperty;for(let o of sn){if(!n.call(t,o))continue;let i=t[o];if(!(typeof i!="string"||i.length===0)){if(o==="avatarUrl"){let r=Pr(i);r!==void 0&&(e.avatarUrl=r);continue}e[o]=i;}}return Object.keys(e).length>0?e:null}function B(t){return `var(--doc-review-author-${t%C})`}function ln(t){let e=new Map;if(t===void 0||t==="kind"||t==="author")return e;for(let[n,o]of Object.entries(t.authors)){let i=Mr(o);i&&e.set(n,i);}return e}function Fa(t,e){let n=ln(e);return [...t].map(([o,i])=>{let r=n.get(o);return {author:o,slot:i,color:r?.color??B(i),...r?{style:r}:{}}})}var Lr=128;function Te(t,e,n=Lr){let o=e.length<n?e.length:n,i=t;for(let r=0;r<o;r+=1)i=Math.imul(i^e.charCodeAt(r),16777619);return Math.imul(i^e.length,16777619)}function Ar(t,e,n){let o=Te(2166136261,n);for(let i of t.keys())o=Te(o,i);for(let[i,r]of e){o=Te(o,i);for(let a of wr)o=Te(o,r[a]??"",1/0);}return `${t.size}.${e.size}.${(o>>>0).toString(36)}`}function Je(t){return t===null?"kind":t.key}var Ze=new WeakMap;function Qe(t,e,n){if(t==="kind")return null;let o=Ze.get(e);if(o&&o.option===t&&o.authorSlots===n)return o.context;let i=ln(t),r=t===void 0||t==="author"?"author":t.others??"author";if(i.size===0&&r==="kind")return Ze.set(e,{option:t,authorSlots:n,context:null}),null;let a=n??$r(e),s=new Map;for(let[d,c]of i){if(!c.spanClassName)continue;let u=c.spanClassName.split(/\s+/).filter(p=>p.length>0);u.length>0&&s.set(d,u);}let l={authorSlots:a,styles:i,classTokens:s,others:r,key:Ar(a,i,r)};return Ze.set(e,{option:t,authorSlots:n,context:l}),l}function Tr(t){return pe(t).authors}var rn=new WeakMap;function $r(t){let e=rn.get(t);if(e)return e;let n=new Map,o=i=>{for(let r of Tr(i))n.has(r)||n.set(r,n.size);};for(let i of t.pages){o(i.fragments),i.header&&o(i.header.fragments),i.footer&&o(i.footer.fragments);for(let r of [i.footnotes,i.endnotes])if(r){r.separator&&o(r.separator.fragments),r.continuationNotice&&o(r.continuationNotice.fragments);for(let a of r.notes)o(a.fragments);}for(let r of [i.anchoredDrawings,i.header?.anchoredDrawings,i.footer?.anchoredDrawings])if(r)for(let a of r){if(a.accessibility.hidden)continue;let s=a.revisions;if(s!==void 0)for(let l=0;l<s.length;l+=1){let d=s[l].author;d!==""&&!n.has(d)&&n.set(d,n.size);}a.textboxStory&&o(a.textboxStory.fragments);}}return rn.set(t,n),n}function Hr(t,e){let n=null;for(let o of e)o===""||t.has(o)||(n===null&&(n=new Map(t)),n.has(o)||n.set(o,n.size));return n??t}function Ia(){let t=new Map,e=0;return {resolve(n,o){let i=Hr(n,o);for(let r of i.keys())t.has(r)||(t.set(r,e),e+=1);return new Map([...i.keys()].map(r=>[r,t.get(r)]).sort((r,a)=>r[1]-a[1]))}}}function J(t,e,n){if(t===void 0||t.length===0)return null;let o=t[t.length-1],i=t.some(s=>s.kind==="delete"||s.kind==="moveFrom"),r=o.kind,a=r==="delete"||r==="moveFrom"?"line-through":r==="insert"||r==="moveTo"?"underline":null;return {attribution:o,line:i&&a==="underline"?"line-through":a,decorationStyle:r==="moveFrom"||r==="moveTo"?"double":"solid",color:i?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)",authorColor:n?.get(o.author)?.color??B(e?.get(o.author)??0),deleted:i}}function ye(t,e=false){let n=t.spans.find(r=>r.style.shaping)?.style.shaping?.baseLevel,o=n===void 0?e:n===1,i=chunkTXIO5WYQ_cjs.gc(t.spans,t.drawings??[]);return i?{x:o?i.left:i.right,rtl:o}:{x:t.contentX,rtl:o}}function et(t,e,n,o,i,r,a){let s=a??ye(n,o),l=e.ownerDocument.createElement("span");l.className="docx-terminator-seat",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.contentX)*r}px`,l.style.bottom=`${Math.max(0,n.box.height-n.baseline)*r}px`,l.style.width="0",l.style.fontSize="0",l.style.lineHeight="0",l.style.whiteSpace="pre",l.style.pointerEvents="none",l.style.userSelect="none",s.rtl&&(l.style.direction="rtl"),t.style.display="inline-block",t.style.verticalAlign="baseline",t.style.fontSize=`${i*r}px`,l.append(t),e.append(l);}function tt(t,e,n){let o=J(e,n?.authorSlots,n?.styles);if(!o)return;let{attribution:i}=o,r=n?.styles.get(i.author),a=n&&(r?.color!==void 0||n.others==="author");if(t.style.color=a?o.authorColor:o.color,t.dataset.revisionKind=i.kind,t.dataset.revisionId=i.id,t.dataset.reviewAuthor=i.author,n){t.dataset.reviewAuthorSlot=String((n.authorSlots.get(i.author)??0)%C);for(let s of n.classTokens.get(i.author)??[])t.classList.add(s);}o.line&&(t.style.textDecorationLine=o.line,t.style.textDecorationStyle=o.decorationStyle,t.style.textDecorationColor=t.style.color);}function dn(t,e,n,o,i,r=false){let a=t.createElement("span"),s=e.spans[e.spans.length-1];a.className="docx-line-break-mark",a.dataset.docxMarker="",a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.textContent="\u21B5",a.style.pointerEvents="none",a.style.userSelect="none",a.style.color="var(--doc-revision-format)",tt(a,s?.revisions,i);let l=s?.style.fontSizePt??chunkTXIO5WYQ_cjs.la.fontSizePt;et(a,n,e,r,l,o);}function cn(t,e,n,o,i=false){let r=chunkTXIO5WYQ_cjs.sb(e);if(!r){let c=t.createElement("span");return c.className="docx-paragraph-mark",c.setAttribute("aria-hidden","true"),c.contentEditable="false",c.textContent="\xB6",c.style.pointerEvents="none",c.style.color="var(--doc-revision-format)",c}let a=t.createElement("span");a.className=`docx-paragraph-mark docx-revision-pmark docx-revision-pmark-${r.kind}`,a.setAttribute("aria-hidden","true"),a.contentEditable="false",a.dataset.revisionKind=r.kind,a.dataset.revisionId=r.id,r.author!==""&&(a.dataset.reviewAuthor=r.author),a.dataset.revisionIds=e.map(c=>c.id).join(" "),a.dataset.revisionKinds=e.map(c=>c.kind).join(" "),a.textContent="\xB6",a.style.pointerEvents="none";let s=chunkTXIO5WYQ_cjs.tb(r),l=n?.styles.get(r.author),d=n?(n.authorSlots.get(r.author)??0)%C:0;if(n){a.dataset.reviewAuthorSlot=String(d);let c=n.classTokens.get(r.author);if(c)for(let u=0;u<c.length;u+=1)a.classList.add(c[u]);}if(a.style.color=l?.color??(n?.others==="author"?B(d):s?"var(--doc-revision-deletion)":"var(--doc-revision-insertion)"),o){let c=a.style.color;a.style.color="";let u=chunkTXIO5WYQ_cjs.jb(o,r.kind).mark;u==="hidden"&&(a.style.visibility="hidden"),u==="caret"&&(a.textContent="^"),u==="pound"&&(a.textContent="#"),ue(a,o,r.kind,l?.color??B(d),i||n?.others==="kind"||l?.color?c:void 0,l?.background);}else s&&(a.style.textDecorationLine="line-through");return a}function $e(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===Array.prototype||e===null}function nt(t,e,n,o){if(t===e)return true;if(typeof t!="object"||typeof e!="object"||t===null||e===null||n>32||!$e(t)||!$e(e)||o&&--o.remaining<0)return false;let i=Array.isArray(t);if(i!==Array.isArray(e))return false;if(i){let r=t,a=e;if(r.length!==a.length)return false;for(let s=0;s<r.length;s+=1)if(!nt(r[s],a[s],n+1,o))return false;return true}return un(t,e,void 0,n,o)}function un(t,e,n,o,i){let r=t,a=e,s=0;for(let l in r)if(!(!Object.hasOwn(r,l)||n?.has(l))){if(!Object.hasOwn(a,l)||!nt(r[l],a[l],o+1,i))return false;s+=1;}for(let l in a)Object.hasOwn(a,l)&&!n?.has(l)&&(s-=1);return s===0}function F(t,e,n){return t===e?true:!$e(t)||!$e(e)?false:un(t,e,n,0)}function pn(t,e,n){return nt(t,e,0,{remaining:n})}var Cr=/^[0-9A-Fa-f]{6}$/,Br=new Set(["box","lines","shadingBox","marker"]),Dr=new Set(["box","contentX","spans"]),fn=new Set(["box"]);function Q(t,e,n,o,i,r){let a=(o.x-i.x)*r;a!==(e.x-n.x)*r&&(t.left=`${a}px`);let s=(o.y-i.y)*r;s!==(e.y-n.y)*r&&(t.top=`${s}px`),o.width!==e.width&&(t.width=`${o.width*r}px`),o.height!==e.height&&(t.height=`${o.height*r}px`);}function yn(t,e){return ye(t,e).x-t.contentX}function Fr(t,e,n,o,i){if((e.drawings?.length??0)>0||t.box.height!==e.box.height||t.spans.length!==e.spans.length||!F(t,e,Dr))return false;for(let r=0;r<e.spans.length;r+=1){let a=t.spans[r],s=e.spans[r];if(s.tabLeader||s.noteSeparator||s.style.shaping||s.style.border||a.box.width!==s.box.width||a.box.height!==s.box.height||!F(a,s,fn)||r>0&&n(t,r)!==n(e,r))return false}return !o||yn(t,i)===yn(e,i)}function Ir(t,e,n){if(e.borders||e.bottomBorder||e.marker?.picture||t.box.height!==e.box.height||t.lines.length!==e.lines.length||!F(t,e,Br)||t.shadingBox===void 0!=(e.shadingBox===void 0)||t.shadingBox&&t.shadingBox.height!==e.shadingBox.height||t.marker===void 0!=(e.marker===void 0))return false;if(t.marker){let a=e.marker;if(t.marker.box.height!==a.box.height||!F(t.marker,a,fn))return false}let o=chunkTXIO5WYQ_cjs.vf(e.props),i=e.lines.length-1,r=n.showParagraphMarks&&!!e.paragraphEnd||(e.markRevisions?.length??0)>0;for(let a=0;a<=i;a+=1){let s=e.lines[a],l=n.showParagraphMarks&&!!s.manualBreakAfter||a===i&&r;if(!Fr(t.lines[a],s,n.gapOf,l,o))return false}return true}function hn(t,e,n,o){if(!Ir(e,n,o))return false;let i=o.scale,r=!!(n.shading&&Cr.test(n.shading)&&n.shadingBox),a=n.marker!==void 0,s=(r?1:0)+(a?1:0),l=t.children;if(l.length!==s+n.lines.length)return false;for(let d=0;d<n.lines.length;d+=1)if(l[s+d].dataset.lineId!==n.lines[d].id)return false;if(r&&!l[0].classList.contains("docx-paragraph-shading")||a&&!l[s-1].classList.contains("docx-list-marker"))return false;if(r){let d=l[0];Q(d.style,e.shadingBox,e.box,n.shadingBox,n.box,i);}if(a){let d=l[s-1];Q(d.style,e.marker.box,e.box,n.marker.box,n.box,i);}for(let d=0;d<n.lines.length;d+=1){let c=e.lines[d],u=n.lines[d],p=l[s+d],y=(u.box.y-n.box.y)*i;y!==(c.box.y-e.box.y)*i&&(p.style.top=`${y}px`);let f=(u.contentX-n.box.x)*i;f!==(c.contentX-e.box.x)*i&&(p.style.left=`${f}px`);}return true}var ot=new WeakMap,He=new WeakMap;function gn(t,e,n){ot.set(t,{fragment:e,rows:n});}function rt(t,e,n,o,i){He.set(t,{cell:e,host:n,strokes:o,blocks:i});}function bn(t,e){for(let[n,o]of t)if(n.kind==="table"&&n.tableId===e.tableId&&n.fragmentIndex===e.fragmentIndex)return o}var Nr=new Set(["rows","box","columnEdges"]),Or=new Set(["box","cells"]),Ur=new Set(["box","blocks","borders"]),Gr=new Set(["strokes","edgeSegments"]),Ce=[];function it(t,e,n){let o=t.children[n]??null,i=0;for(;i<e.length&&o===e[i];)o=o.nextElementSibling,i+=1;if(i===e.length&&o===null)return;let r=new Set(e);for(;o;){let a=o.nextElementSibling;r.has(o)||o.remove(),o=a;}o=t.children[n+i]??null;for(let a=i;a<e.length;a+=1){let s=e[a];s===o?o=o.nextElementSibling:t.insertBefore(s,o);}}function _r(t,e,n){if(t===e)return true;if(t?.diagonals!==e?.diagonals&&((t?.diagonals?.length??0)>0||(e?.diagonals?.length??0)>0)||!t||!e||!F(t,e,Gr))return false;let o=t.strokes??Ce,i=e.strokes??Ce;if(o.length!==i.length||i.length>0&&n?.length!==i.length)return false;for(let r=0;r<i.length;r+=1){let a=o[r],s=i[r];if(a.side!==s.side||a.role!==s.role||a.color!==s.color||a.cssStyle!==s.cssStyle)return false;let l=s.side==="top"||s.side==="bottom";if(s.cssStyle!=="solid"&&(l?a.height!==s.height:a.width!==s.width))return false}return true}function zr(t,e,n,o){let i=e?.strokes??Ce,r=n?.strokes??Ce;if(!(i===r||!t))for(let a=0;a<r.length;a+=1){let s=i[a],l=r[a],d=t[a].style;s.x!==l.x&&(d.left=`${l.x*o}px`),s.y!==l.y&&(d.top=`${l.y*o}px`),s.width!==l.width&&(d.width=`${l.width*o}px`),s.height!==l.height&&(d.height=`${l.height*o}px`);}}function Kr(t,e,n){return t[n]?.id===e?n:t.findIndex(o=>o.id===e)}function jr(t,e,n){let o=t.cell,i=n.scale,r=new Set,a=[];for(let s=0;s<e.blocks.length;s+=1){let l=e.blocks[s],d=Kr(o.blocks,l.id,s),c=d<0||r.has(d)?void 0:o.blocks[d],u=c?t.blocks[d]:void 0;if(c&&r.add(d),c&&u&&(c===l||c.kind==="paragraph"&&l.kind==="paragraph"&&hn(u,c,l,n))){Q(u.style,c.box,o.box,l.box,e.box,i),a.push(u);continue}let p=l.kind==="table"&&c?.kind==="table"?n.block(l,u):n.block(l);p.style.left=`${(l.box.x-e.box.x)*i}px`,p.style.top=`${(l.box.y-e.box.y)*i}px`,a.push(p);}return a}function Wr(t,e,n,o,i,r){let a=He.get(t);if(!a||a.cell!==e)return null;if(e!==o){if(!F(e,o,Ur))return null;if(o.paintInert||o.vMergeContinue)He.set(t,{...a,cell:o});else {if(o.textDirection==="btLr"&&(e.box.width!==o.box.width||e.box.height!==o.box.height)||!_r(e.borders,o.borders,a.strokes))return null;let l=a.host,d=l.children.length-a.blocks.length;if(d<0)return null;for(let u of a.blocks)if(u.parentElement!==l)return null;zr(a.strokes,e.borders,o.borders,r.scale);let c=jr(a,o,r);it(l,c,d),He.set(t,{cell:o,host:l,strokes:a.strokes,blocks:c});}}return Q(t.style,e.box,n,o.box,i,r.scale),t}function Vr(t,e,n,o,i,r){if(e!==o){if(!F(e,o,Or))return null;let a=t.children;if(a.length!==e.cells.length)return null;let s=new Set,l=[];for(let d=0;d<o.cells.length;d+=1){let c=o.cells[d],u=e.cells[d]?.id===c.id?d:e.cells.findIndex(y=>y.id===c.id),p=u>=0&&!s.has(u)?Wr(a[u],e.cells[u],e.box,c,o.box,r):null;p&&s.add(u),l.push(p??r.cell(c,o.box));}it(t,l,0);}return Q(t.style,e.box,n,o.box,i,r.scale),t}function mn(t){return `${t.id}\0${t.isHeaderRepeat?1:0}${t.isContinuation?1:0}`}function xn(t,e,n){let o=ot.get(t);if(!o)return null;let i=o.fragment;if(!F(i,e,Nr))return null;let r=new Map;for(let[d,c]of o.rows){let u=mn(d);r.set(u,r.has(u)?null:[d,c]);}let a=new Map;for(let d of e.rows){let c=mn(d),u=r.get(c);r.delete(c);let p=u?Vr(u[1],u[0],i.box,d,e.box,n):null;a.set(d,p??n.row(d));}let s=n.scale,l=t.style;return i.box.x!==e.box.x&&(l.left=`${e.box.x*s}px`),i.box.y!==e.box.y&&(l.top=`${e.box.y*s}px`),i.box.width!==e.box.width&&(l.width=`${e.box.width*s}px`),i.box.height!==e.box.height&&(l.height=`${e.box.height*s}px`),it(t,[...a.values()],0),ot.set(t,{fragment:e,rows:a}),t}function Be(t,e,n){let o=chunkTXIO5WYQ_cjs.vb(e.props)??n.paragraphFormatRevision,i=n.revisionStyles,r=J(e.revisions,i?.authorSlots,i?.styles);if(!(!r&&!o)){if(r){let{attribution:a}=r;t.classList.add("docx-revision",`docx-revision-${a.kind}`),t.dataset.revisionKind=a.kind,t.dataset.revisionId=a.id,a.author!==""&&(t.dataset.reviewAuthor=a.author),a.date!==void 0&&(t.dataset.revisionDate=a.date);let s=i?.styles.get(a.author);if(i){t.dataset.reviewAuthorSlot=String((i.authorSlots.get(a.author)??0)%C);let c=i.classTokens.get(a.author);if(c)for(let u=0;u<c.length;u+=1)t.classList.add(c[u]);}let d=i!==void 0&&(s?.color!==void 0||i.others==="author")?r.authorColor:r.color;if(n.revisionMarkup){s?.background&&(t.style.backgroundColor=s.background),ue(t,n.revisionMarkup,r.deleted?e.revisions?.find(c=>c.kind==="delete"||c.kind==="moveFrom")?.kind??a.kind:a.kind,r.authorColor,n.revisionKindColors||i?.others==="kind"||s?.color?d:void 0,s?.background);return}t.style.color=d,t.style.backgroundColor=s?.background??(r.deleted?"var(--doc-revision-deletion-wash)":"var(--doc-revision-insertion-wash)"),r.line&&(t.style.textDecorationLine=r.line,a.kind==="insert"&&r.line==="underline"?(t.style.textDecorationStyle="var(--doc-revision-insertion-decoration-style)",t.style.textDecorationThickness="var(--doc-revision-insertion-decoration-thickness)",t.style.textUnderlineOffset="var(--doc-revision-insertion-underline-offset)"):t.style.textDecorationStyle=r.decorationStyle,t.style.textDecorationColor=d);return}if(t.classList.add("docx-revision",...n.revisionMarkup?[]:["docx-revision-format"]),t.dataset.revisionKind="format",t.dataset.formattingKind=chunkTXIO5WYQ_cjs.vb(e.props)?"rPrChange":"pPrChange",t.dataset.revisionId=o.id,o.author!==""&&(t.dataset.reviewAuthor=o.author),o.date!==void 0&&(t.dataset.revisionDate=o.date),i){let a=i.styles.get(o.author);t.dataset.reviewAuthorSlot=String((i.authorSlots.get(o.author)??0)%C);let s=i.classTokens.get(o.author);if(s)for(let l=0;l<s.length;l+=1)t.classList.add(s[l]);!n.revisionMarkup&&a?.color!==void 0&&(t.style.color=a.color),a?.background!==void 0&&(t.style.backgroundColor=a.background);}n.revisionMarkup&&ue(t,n.revisionMarkup,"format",i?.styles.get(o.author)?.color??B(i?.authorSlots.get(o.author)??0),void 0,i?.styles.get(o.author)?.background);}}function vn(t,e,n,o,i){if(e.spans.length!==0)return;i({...chunkTXIO5WYQ_cjs.la,fontFamily:o.fontFamily,fontSizePt:o.fontSizePt,bold:o.bold,italic:o.italic});let r=t.ownerDocument.createElement("br");r.style.lineHeight=`${e.box.height*n}px`,t.append(r);}function Sn(t,e,n){let o=e.marker?.picture,i=n.urlRegistry;if(!o||o.resource.kind!=="ready"||!i)return null;let r=n.scale,a=i.urlForReady(o.resource.validatedHandle,o.resource.mime);if(a===null)return null;let s=o.box,l=t.createElement("span");l.className="docx-list-marker",l.dataset.docxMarker="",l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.x-e.box.x)*r}px`,l.style.top=`${(s.y-e.box.y)*r}px`,l.style.width=`${s.width*r}px`,l.style.height=`${s.height*r}px`,l.style.display="block",l.style.overflow="hidden";let d=t.createElement("img");return d.className="docx-list-marker-image",d.setAttribute("src",a),d.setAttribute("alt",""),d.setAttribute("draggable","false"),d.style.display="block",d.style.width=`${s.width*r}px`,d.style.height=`${s.height*r}px`,d.style.maxWidth="none",d.style.maxHeight="none",l.append(d),l}function kn(t,e,n,o){let i=t.createElement("span");i.dataset.docxNoteRule="single",i.setAttribute("contenteditable","false"),i.setAttribute("aria-hidden","true"),i.style.display="inline-block",i.style.position="relative",i.style.verticalAlign="top",i.style.width=`${e.box.width*o}px`,i.style.height=`${Math.min(e.box.height+(n.leading??0),n.box.height)*o}px`;let r=chunkTXIO5WYQ_cjs._f(e,n),a=t.createElement("span");return a.style.position="absolute",a.style.left="0",a.style.top=`${(r.y-n.box.y)*o}px`,a.style.width=`${r.width*o}px`,a.style.height=`${r.height*o}px`,a.style.backgroundColor=e.style.color?`#${e.style.color}`:"#000000",i.append(a),i}function De(t){return t==="double"||t==="triple"||t==="doubleWave"||t.startsWith("thinThick")||t.startsWith("thickThin")}function ee(t,e,n,o,i,r){switch(e){case "dashed":case "dashSmallGap":case "dotDash":case "dotDotDash":case "dashDotStroked":{let a=Math.max(4,4*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 60%, transparent 60%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "dotted":{let a=Math.max(3,3*r);t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"bottom":"right"}, #${n} 35%, transparent 35%)`,t.style.backgroundSize=o?`100% ${a}px`:`${a}px 100%`;return}case "triple":{let a=i/5,s=`#${n}`,l=(c,u,p)=>`${p} ${c*a}px, ${p} ${u*a}px`,d=[l(0,1,s),l(1,2,"transparent"),l(2,3,s),l(3,4,"transparent"),l(4,5,s)];t.style.backgroundColor="transparent",t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, ${d.join(", ")})`;return}case "double":case "doubleWave":case "thinThickSmallGap":case "thickThinSmallGap":case "thinThickThinSmallGap":case "thinThickMediumGap":case "thickThinMediumGap":case "thinThickThinMediumGap":case "thinThickLargeGap":case "thickThinLargeGap":case "thinThickThinLargeGap":{t.style.backgroundColor="transparent";let a=r>0?chunkTXIO5WYQ_cjs.S(e,i/r):null;if(a){let l=a.flatMap(d=>{let c=d.offsetPt*r,u=c+d.widthPt*r;return [`transparent ${c}px`,`#${n} ${c}px`,`#${n} ${u}px`,`transparent ${u}px`]});t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, ${l.join(", ")})`;return}let s=i/3;t.style.backgroundImage=`linear-gradient(to ${o?"right":"bottom"}, #${n} 0px, #${n} ${s}px, transparent ${s}px, transparent ${s*2}px, #${n} ${s*2}px)`;return}case "threeDEmboss":case "ridge":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px ridge #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "threeDEngrave":case "groove":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px groove #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "inset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px inset #${n}`,o?t.style.width="0px":t.style.height="0px";return}case "outset":{t.style.backgroundColor="transparent";let a=o?"borderLeft":"borderTop";t.style[a]=`${Math.max(1,i)}px outset #${n}`,o?t.style.width="0px":t.style.height="0px";return}default:return}}var Xr=/^[0-9A-Fa-f]{6}$/;function wn(t,e,n,o){for(let{box:i,edge:r,side:a}of chunkTXIO5WYQ_cjs.qd(n)){let s=r.color&&Xr.test(r.color)?r.color:"000000",l=t.createElement("span");l.className=`docx-run-border docx-run-border-${a}`,l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),Object.assign(l.style,{position:"absolute",pointerEvents:"none",left:`${(i.x-n.contentX)*o}px`,top:`${(i.y-n.box.y)*o}px`,width:`${i.width*o}px`,height:`${i.height*o}px`,backgroundColor:`#${s}`});let d=a==="left"||a==="right";ee(l,r.val,s,d,(d?i.width:i.height)*o,o),e.append(l);}}function Rn(t,e){let n=e.fieldAtom?.formControl;if(n?.kind!=="dropdown"||n.entries.length===0)return;let o=t.ownerDocument.createElement("select");o.dataset.docxFormDropdown="",o.dataset.docxMarker="",o.setAttribute("aria-label",n.accessibleName??e.text);for(let[i,r]of n.entries.entries()){let a=t.ownerDocument.createElement("option");a.value=String(i),a.textContent=r,o.append(a);}o.selectedIndex=n.selectedIndex,Object.assign(o.style,{position:"absolute",inset:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer",font:"inherit",padding:"0",border:"0"}),t.style.position="relative",t.append(o);}function En(t,e,n){let o=e.fieldAtom?.formControl;if(o?.kind!=="checkbox")return;t.dataset.docxFormCheckbox="",t.dataset.checked=String(o.checked),t.setAttribute("role","checkbox"),t.tabIndex=0,t.setAttribute("aria-checked",String(o.checked)),o.accessibleName&&t.setAttribute("aria-label",o.accessibleName),t.style.width=`${e.box.width*n}px`;let i=t.ownerDocument.createElement("span");i.className="docx-form-checkbox-hit",i.dataset.docxMarker="",i.setAttribute("aria-hidden","true"),t.append(i);}var fe=Object.freeze({pageBreak:"Page break",columnBreak:"Column break",sectionBreakContinuous:"Section break (continuous)",sectionBreakNextPage:"Section break (next page)",sectionBreakEvenPage:"Section break (even page)",sectionBreakOddPage:"Section break (odd page)",sectionBreakNextColumn:"Section break (new column)"}),Mn=Object.keys(fe);function vs(t){if(!t)return fe;let e={};for(let n of Mn){let o=`formattingMarks.${n}`,i=t(o);e[n]=i&&i!==o?i:fe[n];}return Object.freeze(e)}function Ln(t){return Mn.map(e=>t[e]).join("\0")}function qr(t,e){return t==="page"?e.pageBreak:e.columnBreak}function Yr(t,e){switch(t){case "continuous":return e.sectionBreakContinuous;case "evenPage":return e.sectionBreakEvenPage;case "oddPage":return e.sectionBreakOddPage;case "nextColumn":return e.sectionBreakNextColumn;default:return e.sectionBreakNextPage}}var Zr=8;function Jr(t,e){let n=ye(t,e),o=t.box.x,i=t.box.x+t.box.width;return Qr(t)?n.rtl?{left:Math.min(o,n.x),right:n.x,rtl:true}:{left:n.x,right:Math.max(i,n.x),rtl:false}:{left:o,right:i,rtl:n.rtl}}function Qr(t){return chunkTXIO5WYQ_cjs.gc(t.spans,t.drawings??[])?(t.drawings?.length??0)>0?true:t.spans.some(e=>e.box.width>0||e.text!==chunkA5BTVPET_cjs.wb&&e.text!==`
|
|
2
|
+
`&&e.text!==""):false}function Pn(t){let e=t.createElement("span");return e.className="docx-break-mark-rule",e.style.flex="1 1 0",e.style.minWidth="0",e.style.height="0",e.style.borderTop="1px dotted currentColor",e}function ei(t,e,n,o,i){if(o.length===0)return null;let{scale:r}=i,a=Jr(e,i.paragraphRtl),s=Zr*r,l=t.createElement("span");l.className="docx-break-mark",l.dataset.docxMarker="",l.setAttribute("aria-hidden","true"),l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(a.left-e.contentX)*r}px`,l.style.width=`${Math.max(0,a.right-a.left)*r}px`,l.style.height=`${s}px`,i.boundary?l.style.top=`${-s/2}px`:l.style.bottom=`${Math.max(0,e.box.height-e.baseline)*r}px`,l.style.display="flex",l.style.overflow="hidden",l.style.pointerEvents="none",l.style.userSelect="none",l.style.whiteSpace="pre",l.style.fontFamily="Arial, Helvetica, sans-serif",l.style.fontSize=`${s}px`,l.style.fontWeight="normal",l.style.fontStyle="normal",l.style.lineHeight=`${s}px`,l.style.color="var(--doc-revision-format)",a.rtl&&(l.style.direction="rtl");for(let{text:d,revisions:c}of o){let u=t.createElement("span");u.className="docx-break-mark-segment",u.style.flex="1 1 0",u.style.minWidth="0",u.style.display="flex",u.style.alignItems="center",tt(u,c,i.colors);let p=t.createElement("span");p.className="docx-break-mark-label",p.textContent=d,p.dir="auto",p.style.unicodeBidi="isolate",p.style.flex="0 1 auto",p.style.minWidth="0",p.style.overflow="hidden",p.style.padding=`0 ${s/2}px`,u.append(Pn(t),p,Pn(t)),l.append(u);}return n.append(l),a}function ti(t){let e=t.breakAfter==="page"?chunkA5BTVPET_cjs.wb:`
|
|
3
|
+
`;for(let n=t.spans.length-1;n>=0;n-=1)if(t.spans[n].text===e)return t.spans[n].revisions}function An(t,e){let n=t.sectionBreaks??[];return {strings:e,sectionBreaks:new Map(n.map(o=>[o.paragraphId,o.kind])),token:n.map(o=>`${o.paragraphId}:${o.kind}`).join(",")}}function ni(t,e,n,o,i){let r=e.lines.length-1,a=e.paragraphEnd?o.sectionBreaks.get(e.paragraphId):void 0,s=e.outOfFlow===true&&!e.positionedFrame,l;for(let d=0;d<=r;d+=1){let c=e.lines[d],u=n[d];if(!u)continue;let p=[];if(c.breakAfter&&!s){let f=ti(c);p.push({text:qr(c.breakAfter,o.strings),...f?{revisions:f}:{}});}d===r&&a&&p.push({text:Yr(a,o.strings)});let y=ei(t,c,u,p,{...i,boundary:s});y&&d===r&&!s&&(l={x:y.rtl?y.left:y.right,rtl:y.rtl});}return {replacesPilcrow:a!==void 0,...l?{pilcrowAt:l}:{}}}function Tn(t,e,n,o,i){let r=chunkTXIO5WYQ_cjs.vf(e.props),a=o.breakMarks&&!o.inertLinks?ni(t,e,n,o.breakMarks,{paragraphRtl:r,scale:i,...o.revisionStyles?{colors:o.revisionStyles}:{}}):null,s=(e.markRevisions?.length??0)>0;if(!(o.showParagraphMarks&&e.paragraphEnd&&!a?.replacesPilcrow)&&!s)return;let d=cn(t,e.markRevisions??[],o.revisionStyles,o.revisionMarkup,o.revisionKindColors),c=e.lines[e.lines.length-1],u=n[n.length-1];if(!c||!u)return;let p=e.paragraphMarkSizePt??e.emptyParagraphStyle?.fontSizePt??c.spans.at(-1)?.style.fontSizePt??chunkTXIO5WYQ_cjs.la.fontSizePt;et(d,u,c,r,p,i,a?.pilcrowAt);}function $n(t){t.style.fontFamily=chunkV7CO55DO_cjs.V,t.style.direction="ltr";}function at(t,e,n=false){let o=n?null:chunkTXIO5WYQ_cjs.vb(e.props.filter(r=>r.localName==="pPrChange")),i=o??e.markFormatRevision;i&&(oi(t,i,o?"pPrChange":"rPrChange"),t.dataset.paragraphId=e.paragraphId,t.dataset.reviewStart=String(e.range.start),t.dataset.reviewEnd=String(e.range.end));}function oi(t,e,n){t.dataset.revisionKind="format",t.dataset.revisionId=e.id,t.dataset.formattingKind=n,e.author&&(t.dataset.reviewAuthor=e.author),e.date!==void 0&&(t.dataset.revisionDate=e.date);}function Hn(t,e,n,o,i,r){for(let a of [n.footnotes,n.endnotes])a&&e.append(ri(t,n,a,o,i,r));}function ri(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-notes",a.dataset.docxNotes=n.kind,a.dataset.docxNotesPlacement=n.placement,a.style.position="absolute",a.style.left=`${(n.box.x-e.box.x)*o.scale}px`,a.style.top=`${(n.box.y-e.box.y)*o.scale}px`,a.style.width=`${n.box.width*o.scale}px`,a.style.height=`${n.box.height*o.scale}px`;for(let s of [n.separator,n.continuationNotice]){if(!s)continue;let l=t.createElement("div");l.className="docx-note-separator",l.dataset.docxNoteSeparator=s.kind,l.setAttribute("contenteditable","false"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(s.box.x-n.box.x)*o.scale}px`,l.style.top=`${(s.box.y-n.box.y)*o.scale}px`,l.style.width=`${s.box.width*o.scale}px`,l.style.height=`${s.box.height*o.scale}px`;let d=s.ruleStyle;if(d||s.synthetic)ii(l,t,d??"single",o.scale,s.box.height,s.ruleColor);else {let c={...o,tabLeaderOriginXPt:s.box.x-e.box.x};for(let u of s.fragments)l.append(u.kind==="table"?r(t,u,c):i(t,u,c));}a.append(l);}for(let s of n.notes){let l={...o,tabLeaderOriginXPt:s.box.x-e.box.x},d=t.createElement("div");d.className="docx-note",d.dataset.docxNote=s.noteKind,d.dataset.docxNoteId=String(s.noteId),d.dataset.docxNoteScope=s.scopeId,s.mark!==null&&(d.dataset.docxNoteMark=s.mark),s.continuation&&(d.dataset.docxNoteContinuation=""),d.setAttribute("role","doc-footnote"),d.style.position="absolute",d.style.left=`${(s.box.x-n.box.x)*o.scale}px`,d.style.top=`${(s.box.y-n.box.y)*o.scale}px`,d.style.width=`${s.box.width*o.scale}px`,d.style.height=`${s.box.height*o.scale}px`;for(let c of s.fragments)d.append(c.kind==="table"?r(t,c,l):i(t,c,l));a.append(d);}return a}function ii(t,e,n,o,i,r){t.dataset.docxNoteRule=n;let a=r&&/^[a-f\d]{6}$/i.test(r)?`#${r}`:"#000000";t.style.color=a;let s=Math.max(1,o*.75);if(n==="single"){t.style.backgroundColor=a,t.style.height=`${i*o}px`;return}t.style.opacity="0.85";let l=Math.max(1,o*1.25);for(let d of [0,s+l]){let c=e.createElement("div");c.setAttribute("aria-hidden","true"),c.style.position="absolute",c.style.left="0",c.style.right="0",c.style.top=`${d}px`,c.style.height="0",c.style.borderTop=`${s}px solid currentColor`,t.append(c);}}var ai=new Set(["dropdown","comboBox","date","checkbox","picture","buildingBlockGallery"]);function Cn(t,e,n,o){let i=o.contentControlChrome,r=i?.suppressedIds,a=(n.contentControls??[]).filter(p=>r?.has(p.id)!==true),s=[...a,...(i?.additionalBoundaries??[]).filter(p=>r?.has(p.id)!==true&&!a.some(y=>y.id===p.id))];if(s.length===0)return;let l=i?.showAll===true,d=i?.activeIds,c=i?.hoverIds,u=i?.tocControlIds;for(let p of s){let y=u?.has(p.id)===true,f=!y&&d?.has(p.id)===true,h=c?.has(p.id)===true;e.append(li(t,n,p,o.scale,f,h,l||f||y&&h,i?.checkedIds?.has(p.id),y,i?.readOnly===true));}}function si(t,e,n,o){let i=t.contentBox.x-t.box.x,r=t.contentBox.y-t.box.y;if(n==="checkbox"){let p=Math.max(1,Math.min(e.height,16))*o,y=e.width>0?(i+e.x+e.width/2)*o-p/2:(i+e.x)*o,f=(r+e.y)*o+Math.max(0,(e.height*o-p)/2);return {left:y,top:f,size:p}}let a=16*o,s=(i+e.x+e.width)*o,l=t.box.width*o,d=s+2*o,c=d+a<=l?d:Math.max(0,s-a),u=(r+e.y)*o+Math.max(0,(e.height*o-a)/2);return {left:c,top:u,size:a}}function li(t,e,n,o,i,r,a,s,l,d){let c=t.createElement("div");c.className="docx-content-control-chrome",c.dataset.docxContentControl=n.id,c.dataset.docxMarker="",c.dataset.controlType=n.controlType,c.dataset.lock=n.effectiveLock,n.bound&&(c.dataset.bound=""),n.placeholder&&(c.dataset.placeholder=""),l&&(c.dataset.docxToc=""),d&&(c.dataset.readOnly=""),i&&(c.dataset.active=""),r&&(c.dataset.hover=""),a&&(c.dataset.boundaryVisible=""),c.setAttribute("contenteditable","false"),c.setAttribute("role","group"),n.alias&&(c.dataset.alias=n.alias),n.tag&&(c.dataset.tag=n.tag),n.alias&&c.setAttribute("aria-label",n.alias),c.style.position="absolute",c.style.inset="0",c.style.pointerEvents="none",c.style.zIndex="2";let u=e.contentBox.x-e.box.x,p=e.contentBox.y-e.box.y;for(let f of n.fragments){if(f.pageIndex!==e.index)continue;let h=t.createElement("div");h.className="docx-content-control-boundary",h.dataset.docxMarker="",h.setAttribute("contenteditable","false"),h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.left=`${(u+f.box.x)*o}px`,h.style.top=`${(p+f.box.y)*o}px`,h.style.width=`${Math.max(f.box.width,1)*o}px`,h.style.height=`${Math.max(f.box.height,1)*o}px`,h.style.pointerEvents="none",c.append(h);}let y=n.fragments.find(f=>f.pageIndex===e.index);if(y&&n.alias){let f=t.createElement("div");f.className="docx-content-control-label",f.dataset.docxMarker="",f.setAttribute("contenteditable","false"),f.setAttribute("aria-hidden","true"),f.textContent=n.alias,f.style.position="absolute",f.style.left=`${(u+y.box.x)*o}px`,f.style.top=`${Math.max(0,(p+y.box.y)*o-16)}px`,f.style.pointerEvents="none",c.append(f);}if(y&&ai.has(n.controlType)){let f=t.createElement("button");f.type="button",f.className="docx-content-control-widget",f.dataset.docxMarker="",f.dataset.docxCcWidget=n.controlType,f.dataset.docxCcId=n.id,f.setAttribute("contenteditable","false"),f.setAttribute("tabindex","-1"),n.controlType==="checkbox"?f.setAttribute("role","checkbox"):n.controlType==="dropdown"||n.controlType==="comboBox"||n.controlType==="buildingBlockGallery"?f.setAttribute("role","listbox"):(n.controlType==="date"||n.controlType==="picture")&&f.setAttribute("role","button"),n.alias&&(f.dataset.name=n.alias),n.alias&&f.setAttribute("aria-label",n.alias),n.controlType==="checkbox"&&(f.setAttribute("data-checked",s?"true":"false"),f.setAttribute("aria-checked",s?"true":"false"));let h=n.effectiveLock==="contentLocked"||n.effectiveLock==="sdtContentLocked";(d||h||n.bound)&&(f.disabled=true,f.dataset.disabledReason=d?"readOnly":n.bound?"bound":"locked",f.setAttribute("aria-disabled","true"));let g=si(e,y.box,n.controlType,o);f.style.position="absolute",f.style.left=`${g.left}px`,f.style.top=`${g.top}px`,f.style.width=`${g.size}px`,f.style.height=`${g.size}px`,f.style.fontSize=`${g.size}px`,f.style.pointerEvents="auto",f.style.padding="0",f.style.margin="0",f.style.cursor=f.disabled?"not-allowed":"pointer",c.append(f);}return c}var Dn="docx-change-bars",Fe="docx-change-bar",di=.5;function Fn(t,e){for(let n of e)switch(t.author??=n.author,n.kind){case "insert":case "moveTo":t.insertion=true;break;case "delete":case "moveFrom":t.deletion=true;break;case "format":t.format=true;break}}function In(t,e,n){let o=t.lines,i=o.length-1,r=[];for(let a=0;a<=i;a+=1){let s=o[a];if(r.length=0,e.mode==="simple-markup"){s.changeSites&&r.push(...s.changeSites),a===i&&t.markChangeSites&&r.push(...t.markChangeSites),r.length>0&&Bn(t,o,a,e,r,n);continue}s.changeSites&&r.push(...s.changeSites);for(let l of s.spans){l.revisions&&r.push(...l.revisions);let d=chunkTXIO5WYQ_cjs.vb(l.props);d&&r.push(d);}for(let l of s.drawings??[])l.revisions&&r.push(...l.revisions);if(s.anchorRevisions&&r.push(...s.anchorRevisions),a===i){t.markRevisions&&r.push(...t.markRevisions),t.markFormatRevision&&r.push(t.markFormatRevision);let l=chunkTXIO5WYQ_cjs.vb(t.props);l&&r.push(l);}r.length!==0&&Bn(t,o,a,e,r,n);}}function Bn(t,e,n,o,i,r){let a=e[n],s=e.length-1,l=(n===0?t.box.y:a.box.y)+o.dy,d=Math.min((n===s?t.box.y+t.box.height:e[n+1].box.y)+o.dy,o.limit);if(d<=l)return;let c={top:l,bottom:d,story:o.story,insertion:false,deletion:false,format:false};Fn(c,i),r.push(c);}function ci(t,e,n){for(let o of t.rows){let i=e.mode==="simple-markup"?o.changeSites:void 0;if(e.mode==="all-markup"&&o.revisionKind||i&&i.length>0){let r=chunkTXIO5WYQ_cjs.Cf(o)?Math.max(o.box.y,...o.cells.map(s=>s.box.y+s.box.height)):o.box.y+o.box.height,a={top:o.box.y+e.dy,bottom:Math.min(r+e.dy,e.limit),story:e.story,author:o.revisionAuthor,insertion:o.revisionKind==="insert",deletion:o.revisionKind==="delete",format:false};i&&Fn(a,i),n.push(a);}for(let r of o.cells){if(r.textDirection==="btLr"){let a=[];if(st(r.blocks,e,a),a.length===0)continue;let s={top:r.box.y+e.dy,bottom:Math.min(r.box.y+r.box.height+e.dy,e.limit),story:e.story,insertion:false,deletion:false,format:false};for(let l of a)s.insertion||=l.insertion,s.deletion||=l.deletion,s.format||=l.format;s.bottom>s.top&&n.push(s);continue}st(r.blocks,e,n);}}}function st(t,e,n){for(let o of t)o.kind==="table"?ci(o,e,n):In(o,e,n);}function ui(t){t.sort((n,o)=>n.top-o.top||n.bottom-o.bottom);let e=[];for(let n of t){let o=e[e.length-1];if(o&&o.story===n.story&&o.author===n.author&&n.top<=o.bottom+di){o.bottom=Math.max(o.bottom,n.bottom),o.insertion||=n.insertion,o.deletion||=n.deletion,o.format||=n.format;continue}e.push({...n});}return e}var pi=36;function lt(t,e,n,o=false,i,r=false,a){let s=[];if(n==="none"||i?.changedLines.mark==="none")return {mode:n,toggle:o,left:0,runs:s,signature:"none"};let l=t.box.height,d=t.contentBox.y-t.box.y+t.contentBox.height,c={x:t.box.x,y:t.box.y};chunkTXIO5WYQ_cjs.Na(t,m=>{if(m.story==="note-separator")return;let k={mode:n,story:m.story,dy:m.origin.y-t.box.y,limit:m.story==="body"?d:l};st(m.host.fragments,k,s);let S=m.story==="header"||m.story==="footer"?R=>chunkTXIO5WYQ_cjs.Ia(R,m.origin,c):void 0;chunkTXIO5WYQ_cjs.Ra(m.host,(R,X)=>{X.textboxDepth!==0&&In(R,{mode:n,story:m.story,dy:X.storyOrigin.y-t.box.y,limit:l},s);},m.origin,S);});let u=i?.changedLines.mark==="rightBorder"||i?.changedLines.mark==="outsideBorder"&&r&&t.index%2===0,p=m=>Math.max(0,m/2,m-pi),y=Math.round((u?t.box.width-p(t.box.width-t.contentBox.width-(t.contentBox.x-t.box.x)):p(t.contentBox.x-t.box.x))*e),f=i?chunkTXIO5WYQ_cjs.ib(i.changedLines.color,"var(--doc-review-author-0)",n==="simple-markup"?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"):void 0,h=ui(s);if(i?.changedLines.color==="byAuthor")for(let m of h)m.color=a?.styles.get(m.author??"")?.color??B(a?.authorSlots.get(m.author??"")??0);let g=`${n}|${o?"t":""}|${y}|${f??""}`;for(let m of h)g+=`|${m.story}:${m.top.toFixed(3)}-${m.bottom.toFixed(3)}${m.insertion?"i":""}${m.deletion?"d":""}${m.format?"f":""}:${m.color??""}`;return {mode:n,toggle:o,left:y,runs:h,signature:g,...f?{color:f}:{}}}function Nn(t,e,n){if(e.runs.length===0)return null;let o=e.mode==="simple-markup",i=t.createElement("div");i.className=Dn,i.dataset.docxChangeBars=e.signature,i.dataset.docxChangeBarsMode=e.mode,i.setAttribute("aria-hidden","true"),i.setAttribute("contenteditable","false"),i.style.position="absolute",i.style.inset="0",i.style.pointerEvents="none";for(let r of e.runs){let a=t.createElement("div");a.className=Fe,r.insertion&&a.classList.add(`${Fe}-insertion`),r.deletion&&a.classList.add(`${Fe}-deletion`),r.format&&a.classList.add(`${Fe}-format`),a.dataset.docxStory=r.story,a.style.position="absolute",a.style.left=`${e.left}px`,a.style.top=`${r.top*n}px`,a.style.height=`${(r.bottom-r.top)*n}px`,a.style.width=o?"var(--doc-review-change-bar-simple-width)":"var(--doc-review-change-bar-width)",a.style.backgroundColor=r.color??e.color??(o?"var(--doc-review-change-bar-simple)":"var(--doc-review-change-bar)"),e.toggle?(a.dataset.docxChangeBarToggle="",a.style.pointerEvents="auto",a.style.cursor="pointer"):a.style.pointerEvents="none",i.append(a);}return i}function On(t,e,n,o,i=false,r,a=false,s){return Nn(t,lt(e,n,o,i,r,a,s),n)}function Un(t,e,n,o,i,r=false,a,s=false,l){let d=e.querySelector(`:scope > .${Dn}`),c=lt(n,o,i,r,a,s,l);if(d&&d.dataset.docxChangeBars===c.signature)return;d?.remove();let u=Nn(t,c,o);u&&e.append(u);}function Ie(t,e,n){return !!n.activeHeaderFooterRId&&!!t.rId&&n.activeHeaderFooterRId===t.rId&&(n.activeHeaderFooterPageIndex===void 0||n.activeHeaderFooterPageIndex===e)}function dt(t,e,n){return n?t.kind==="footer"?Math.max(t.box.height,e.box.y+e.box.height-t.box.y):Math.max(t.box.height,e.contentBox.y-t.box.y):t.box.height}function yi(t,e){let{box:n}=e,o=t.contentBox,i=e.kind==="header"?n.y:Math.max(n.y,o.y+o.height),r=e.kind==="header"?Math.min(n.y+n.height,o.y):n.y+n.height;return r>i?{x:n.x,y:i,width:n.width,height:r-i}:null}function fi(t,e){let n=e.box,o=t.contentBox;return n.x<o.x+o.width&&o.x<n.x+n.width&&n.y<o.y+o.height&&o.y<n.y+n.height}function Gn(t,e,n,o,i){let r=o.box;if(fi(n,o)){e.dataset.docxHfOverBody="";let s=yi(n,o);if(!s)return null;let l=t.createElement("div");l.className="docx-hf-hover",l.dataset.docxHfHover=o.kind,l.setAttribute("contenteditable","false"),l.style.position="absolute",l.style.left=`${(s.x-n.box.x)*i}px`,l.style.top=`${(s.y-n.box.y)*i}px`,l.style.width=`${s.width*i}px`,l.style.height=`${s.height*i}px`,e.before(l),r=s;}let a=t.createElement("div");return a.className="docx-hf-edit-hint",a.dataset.docxHfHint=o.kind,a.setAttribute("contenteditable","false"),a.style.position="absolute",a.style.left=`${(r.x-n.box.x)*i}px`,a.style.width=`${r.width*i}px`,a.style.top=o.kind==="header"?`${(r.y+r.height-n.box.y)*i}px`:`${(r.y-n.box.y)*i}px`,o.kind==="footer"&&(a.style.transform="translateY(-100%)"),a}function _n(t,e){for(let{record:n,element:o,materialized:i}of t){if(!i)continue;let r=o.querySelector(":scope > .docx-page-content");r&&Ne(r,"contenteditable",e.activeHeaderFooterRId?"false":null);let a=null;for(let s of o.querySelectorAll(":scope > .docx-hf:not(.docx-hf--placeholder)")){let l=hi(n,s);if(!l)continue;let d=Ie(l,n.index,e);d&&(a=l.kind),mi(s,n,l,d,e.scale);}Ne(o,"data-docx-hf-active-kind",a);for(let s of o.querySelectorAll(":scope > [data-docx-hf-front]")){let l=zn(n,s.dataset.docxHfFront);Kn(s,!!l&&Ie(l,n.index,e));}}}function hi(t,e){return zn(t,e.dataset.docxHf)}function zn(t,e){if(e==="header")return t.header;if(e==="footer")return t.footer}function mi(t,e,n,o,i){Ne(t,"data-docx-hf-active",o?"":null),Ne(t,"contenteditable",o?"true":"false");let r=`${dt(n,e,o)*i}px`;t.style.height!==r&&(t.style.height=r),Kn(t,o);}function Ne(t,e,n){t.getAttribute(e)!==n&&(n===null?t.removeAttribute(e):t.setAttribute(e,n));}function Kn(t,e){let n=t.querySelectorAll(t.nodeType===1&&t.classList.contains("docx-drawing-layer")?":scope > *":":scope > .docx-drawing-layer > *"),o=e?"auto":"none";for(let i of n){i.style.pointerEvents!==o&&(i.style.pointerEvents=o);for(let r of i.querySelectorAll(".docx-drawing"))r.style.pointerEvents!==o&&(r.style.pointerEvents=o);}}function jn(t){return t.horizontalFrame==="page"||t.verticalFrame==="page"}function Wn(t,e,n){let o=e.paintBounds,i=chunkTXIO5WYQ_cjs.Ia(e,t.box,n),r=i.x-e.x,a=i.y-e.y,s=l=>Object.freeze({x:l.x+r,y:l.y+a,width:l.width,height:l.height});return Object.freeze({...e,x:e.x+r,y:e.y+a,paintBounds:s(o),hitBounds:s(e.hitBounds),geometry:Object.freeze({...e.geometry,contentBounds:s(e.geometry.contentBounds),paintBounds:s(e.geometry.paintBounds),...e.geometry.clipPolygon?{clipPolygon:Object.freeze(e.geometry.clipPolygon.map(l=>Object.freeze({x:l.x+r,y:l.y+a})))}:{}})})}function gi(t,e,n,o,i){let r=n.anchoredDrawings??[];if(r.length===0)return;let a=r.map(l=>Wn(n,l,i)),s=t.createElement("div");s.className="docx-hf-behind-layer",s.dataset.docxHfBehind=n.kind,s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.inset="0",s.style.overflow="hidden",s.style.pointerEvents="none",o.appendDrawings(s,a,i,"behind",false),s.childElementCount>0&&e.append(s);}function bi(t,e,n,o,i,r){let{scale:a}=i.chrome,s=t.createElement("div");s.className="docx-hf",s.dataset.docxHf=o.kind,o.rId&&(s.dataset.docxRId=o.rId),r?(s.dataset.docxHfActive="",s.setAttribute("contenteditable","true")):s.setAttribute("contenteditable","false"),s.style.position="absolute",s.style.left=`${(o.box.x-n.box.x)*a}px`,s.style.top=`${(o.box.y-n.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${dt(o,n,r)*a}px`,s.style.overflow="visible";let l=(n.box.x-o.box.x)*a,d=(n.box.y-o.box.y)*a,c=l+n.box.width*a,u=d+n.box.height*a;s.style.clipPath=`polygon(${l}px ${d}px, ${c}px ${d}px, ${c}px ${u}px, ${l}px ${u}px)`;for(let f of o.fragments)s.append(i.paintFragment(f,o.box.x-n.box.x));let p=(o.anchoredDrawings??[]).filter(f=>!jn(f)),y=Object.freeze({x:0,y:0,width:o.box.width,height:o.box.height});return i.appendDrawings(s,p,y,"inFront",r),e.append(s),s}function Oe(t,e,n,o){let i=Object.freeze({x:n.box.x,y:n.box.y,width:n.box.width,height:n.box.height}),r=[n.header,n.footer].filter(s=>!!s);for(let s of r)gi(t,e,s,o,i);let a=[];for(let s of r){let l=Ie(s,n.index,o.chrome),d=bi(t,e,n,s,o,l),c=Gn(t,d,n,s,o.chrome.scale);c&&a.push(c);let u=(s.anchoredDrawings??[]).filter(jn).map(p=>Wn(s,p,i));o.appendDrawings(e,u,i,"inFront",l,s.kind);}return a}function Vn(t,e,n,o){if(!n&&!t.hasAttribute("data-docx-unsupported"))return;let i=t.querySelector(":scope > .docx-drawing-native");if(i){Ae(t);let l=t.ownerDocument.createDocumentFragment();for(;i.firstChild;)l.append(i.firstChild);t.replaceChildren(l);}if(!n||e.textboxStory||e.groupTextboxStories||!o||t.querySelector("[data-docx-unsupported]"))return;let r=chunk5HUVQXET_cjs.Ea(o,e.drawingNodeId),a=chunk5HUVQXET_cjs.Da(e.chart?.shownAs==="fallback"?"fallback":"rendered",r);if(a!=="partial")return;let s=t.ownerDocument.createElement("div");for(s.className="docx-drawing-native",s.style.width="100%",s.style.height="100%";t.firstChild;)s.append(t.firstChild);t.append(s),j(t,s,{ownerPartName:e.ownerPartName,nodeId:e.drawingNodeId,namespaceUri:o.namespaceUri,localName:o.localName,source:o,placement:"inline",bounds:e.paintBounds,label:e.accessibility.label??"",drawing:e,drawingIssues:r,support:a,graphicKind:chunk5HUVQXET_cjs.Ga(o,e.drawingNodeId)},t);}var xi=0;function Xn(t,e,n,o){if(o===void 0||!Number.isFinite(o)||o<0||o>1)return;let i="http://www.w3.org/2000/svg",r=(u,p)=>{let y=t.createElementNS(i,u);for(let[f,h]of Object.entries(p))y.setAttribute(f,h);return y},a=`docx-bilevel-${++xi}`,s=r("svg",{width:"0",height:"0","aria-hidden":"true"});s.style.position="absolute",s.style.pointerEvents="none";let l=r("filter",{id:a,"color-interpolation-filters":"sRGB"});l.append(r("feColorMatrix",{type:"saturate",values:"0"}));let d=r("feComponentTransfer",{}),c=Array.from({length:256},(u,p)=>p/255>=o?1:0).join(" ");for(let u of ["R","G","B"])d.append(r(`feFunc${u}`,{type:"discrete",tableValues:c}));l.append(d),s.append(l),e.append(s),n.style.filter=`${n.style.filter} url(#${a})`.trim();}function qn(t){return Math.max(-1,Math.min(1,t))}function Yn(t,e){if(!Number.isFinite(t)||!Number.isFinite(e))return null;let n=qn(t/100),o=qn(e/100);if(n===0&&o===0)return null;let i=o>=0?Math.min(1e3,1/(1-o)):Math.max(0,1+o),r=.5-n/2,a=r+n-i*r;return Object.freeze({slope:i,intercept:a})}function Ue(t){if(!Number.isFinite(t))return "0";let e=Math.round(t*1e6)/1e6;return String(Object.is(e,-0)?0:e)}function vi(t){let{slope:e,intercept:n}=t;if(n>=0){let i=e+2*n;return i<=0?"brightness(0)":`contrast(${Ue(e/i)}) brightness(${Ue(i)})`}let o=1-2*n;return `brightness(${Ue(e/o)}) contrast(${Ue(o)})`}function ct(t){let e=[];t.grayscale&&e.push("grayscale(1)");let n=Yn(t.brightness,t.contrast);n&&e.push(vi(n));let{opacity:o}=t;return o!==void 0&&Number.isFinite(o)&&o>=0&&o<1&&e.push(`opacity(${Math.round(o*1e3)/1e3})`),e.length>0?e.join(" "):void 0}function te(t){return `${Number.isFinite(t)?Math.round(t*1e3)/1e3:0}px`}var Zn=[[0,0],[.5,.1],[.9,.5],[1.3,.9],[1.7,1]];function Jn(t,e){let n=Zn.map(([i,r])=>`rgba(0,0,0,${r}) ${te(i*e)}`),o=[...Zn].reverse().map(([i,r])=>`rgba(0,0,0,${r}) calc(100% - ${te(i*e)})`);return `linear-gradient(to ${t}, ${[...n,...o].join(", ")})`}function Qn(t,e){if(!(e>0))return;let n=`${Jn("right",e)}, ${Jn("bottom",e)}`;t.style.setProperty("mask-image",n),t.style.setProperty("-webkit-mask-image",n),t.style.setProperty("mask-composite","intersect"),t.style.setProperty("-webkit-mask-composite","source-in");}function eo(t,e,n,o,i){let r=o.frameEffects?.reflection;if(!r)return;let a=i/12700,s=Number.parseFloat(n.style.width)||0,l=Number.parseFloat(n.style.height)||0,d=(Number.parseFloat(n.style.top)||0)+l,c=t.createElement("div");c.className="docx-drawing-reflection",c.style.position="absolute",c.style.left=n.style.left,c.style.top=te(d+r.distanceEmu*a),c.style.width=te(s),c.style.height=te(l*r.endPosition),c.style.overflow="hidden",c.style.pointerEvents="none";let u=`linear-gradient(to bottom, rgba(0,0,0,${r.startAlpha}), rgba(0,0,0,${r.endAlpha}))`;c.style.setProperty("mask-image",u),c.style.setProperty("-webkit-mask-image",u);let p=n.cloneNode(true);p.style.left="0",p.style.top="0",p.style.transformOrigin="center",p.style.transform="scaleY(-1)",r.blurEmu>0&&(p.style.filter=`blur(${te(r.blurEmu/4*a)})`),c.append(p),e.append(c),e.style.overflow="visible";}var $="http://www.w3.org/2000/svg",Si=0;function no(t,e){let{cx:n,cy:o}=t.extentEmu;if(n>0&&o>0)return {viewBox:[0,0,n,o],frame:e};let i=1;for(let a of t.components)i=Math.max(i,a.strokeWidthEmu);if(n<=0){let a=o>0?e.height/o:0;return {viewBox:[-i,0,2*i,Math.max(1,o)],frame:{...e,x:e.x-i*a,width:2*i*a}}}let r=e.width/n;return {viewBox:[0,-i,n,2*i],frame:{...e,y:e.y-i*r,height:2*i*r}}}function oo(t,e,n,o,i,r="evenodd"){let a=`docx-inset-${++Si}`,s=t.createElementNS($,"clipPath");s.setAttribute("id",a);let l=t.createElementNS($,"path");l.setAttribute("d",o),l.setAttribute("clip-rule",r),s.append(l),e.append(s),n.setAttribute("stroke-width",String(2*Math.max(1,i))),n.setAttribute("clip-path",`url(#${a})`);}var ki=0;function ro(t,e,n,o){let i=`docx-gradient-${++ki}`,r=t.createElementNS($,o.kind==="linear"?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("gradientUnits","userSpaceOnUse"),r.setAttribute("gradientTransform",`matrix(${o.matrix.map(M).join(" ")})`),(o.kind==="linear"?["x1","y1","x2","y2"]:["cx","cy","r"]).forEach((s,l)=>r.setAttribute(s,M(o.coords[l]??0)));for(let s of o.stops){let l=t.createElementNS($,"stop");l.setAttribute("offset",M(Math.max(0,Math.min(1,s.offset)))),l.setAttribute("stop-color",`#${s.hex}`),s.alpha<1&&l.setAttribute("stop-opacity",M(Math.max(0,s.alpha))),r.append(l);}e.append(r),n.setAttribute("fill",`url(#${i})`);}function M(t){return Number.isFinite(t)?String(t):"0"}var wi=0,Ri=12700;function io(t,e,n,o){let i=`docx-pattern-${++wi}`,r=Ri,a=t.createElementNS($,"pattern");a.setAttribute("id",i),a.setAttribute("patternUnits","userSpaceOnUse"),a.setAttribute("width",M(r*8)),a.setAttribute("height",M(r*8));let s=(d,c,u)=>{if(c<=0||!u)return;let p=t.createElementNS($,"path");p.setAttribute("d",u),p.setAttribute("fill",`#${d}`),c<1&&p.setAttribute("fill-opacity",M(c)),a.append(p);};s(o.background.hex,o.background.alpha,`M0 0H${r*8}V${r*8}H0Z`);let l=[];o.rows.slice(0,8).forEach((d,c)=>{for(let u=0;u<8;u+=1)d>>7-u&1&&l.push(`M${u*r} ${c*r}h${r}v${r}h${-r}Z`);}),s(o.foreground.hex,o.foreground.alpha,l.join("")),e.append(a),n.setAttribute("fill",`url(#${i})`);}var to=0;function ao(t,e,n,o){let i=o.shadow;if(!i||o.fillHex===null&&o.strokeHex===null)return;let r=t.createElementNS($,"path");if(r.setAttribute("d",n),r.setAttribute("fill-rule","evenodd"),r.setAttribute("fill",o.fillHex!==null?`#${i.hex}`:"none"),o.strokeHex!==null&&(r.setAttribute("stroke",`#${i.hex}`),r.setAttribute("stroke-width",M(Math.max(1,o.strokeWidthEmu)))),r.setAttribute("opacity",M(Math.max(0,Math.min(1,i.alpha)))),r.setAttribute("transform",`translate(${M(i.dxEmu)} ${M(i.dyEmu)})`),i.blurEmu>0){let a=`docx-shadow-${++to}`,s=t.createElementNS($,"filter");s.setAttribute("id",a);let l=1/0,d=1/0,c=-1/0,u=-1/0;for(let f of o.subpathsEmu)for(let h of f)l=Math.min(l,h.x),d=Math.min(d,h.y),c=Math.max(c,h.x),u=Math.max(u,h.y);let p=i.blurEmu/4*3+(o.strokeHex!==null?Math.max(1,o.strokeWidthEmu)/2:0)+1;s.setAttribute("filterUnits","userSpaceOnUse"),s.setAttribute("x",M(l-p)),s.setAttribute("y",M(d-p)),s.setAttribute("width",M(c-l+2*p)),s.setAttribute("height",M(u-d+2*p));let y=t.createElementNS($,"feGaussianBlur");y.setAttribute("stdDeviation",M(i.blurEmu/4)),s.append(y),e.append(s),r.setAttribute("filter",`url(#${a})`);}if(r.setAttribute("data-docx-shadow",""),o.clipEmu?.length){let a=`docx-shadow-clip-${++to}`,s=t.createElementNS($,"clipPath");s.setAttribute("id",a);let l=t.createElementNS($,"path");l.setAttribute("d",o.clipEmu.map(c=>`M${c.map(u=>`${M(u.x)} ${M(u.y)}`).join("L")}Z`).join("")),l.setAttribute("clip-rule","evenodd"),s.append(l);let d=t.createElementNS($,"g");d.setAttribute("clip-path",`url(#${a})`),d.append(r),e.append(s,d);return}e.append(r);}var ut="http://www.w3.org/2000/svg";function D(t){return Number.isFinite(t)?String(t):"0"}function he(t,e,n,o,i){if(o===n)return;let r=a=>`${D(-a*i)}px`;t.style.overflow="visible",t.style.clipPath=`inset(${r(n.y-o.y)} ${r(o.x+o.width-(n.x+n.width))} ${r(o.y+o.height-(n.y+n.height))} ${r(n.x-o.x)})`,e.style.pointerEvents="none";}function pt(t){return t.vectorShape!==null&&t.placeholderGraphicKind===null&&t.groupPicture===void 0}function ne(t,e,n,o){let i=e.vectorShape,r=e.geometry.contentBounds,a=e.paintBounds,s=t.createElement("div");s.className="docx-drawing-image-frame",s.style.position="absolute";let l=no(i,r);s.style.left=`${(l.frame.x-a.x)*n}px`,s.style.top=`${(l.frame.y-a.y)*n}px`,s.style.width=`${l.frame.width*n}px`,s.style.height=`${l.frame.height*n}px`;let d=t.createElementNS(ut,"svg");d.setAttribute("viewBox",l.viewBox.map(D).join(" ")),d.setAttribute("preserveAspectRatio","none"),d.setAttribute("width","100%"),d.setAttribute("height","100%"),d.style.display="block",d.style.overflow="visible";for(let c of i.components)o&&!o(c)||yt(t,d,c);return s.append(d),s}function yt(t,e,n){let o=t.createElementNS(ut,"path"),i=n.subpathsEmu.map((r,a)=>`M${r.map(s=>`${D(s.x)} ${D(s.y)}`).join("L")}${n.subpathsClosed?.[a]===false?"":"Z"}`).join("");if(o.setAttribute("d",i),n.shadow&&ao(t,e,i,n),!n.shadowOnly){if(o.setAttribute("fill",n.fillHex!==null?`#${n.fillHex}`:"none"),n.fillHex!==null&&n.fillGradient?ro(t,e,o,n.fillGradient):n.fillHex!==null&&n.fillPattern&&io(t,e,o,n.fillPattern),o.setAttribute("fill-rule",n.fillRule??"evenodd"),n.fillAlpha<1&&!n.fillGradient&&!n.fillPattern&&o.setAttribute("fill-opacity",D(Math.max(0,n.fillAlpha))),n.strokeHex!==null){if(o.setAttribute("stroke",`#${n.strokeHex}`),o.setAttribute("stroke-width",D(Math.max(1,n.strokeWidthEmu))),n.strokeCap&&o.setAttribute("stroke-linecap",n.strokeCap),n.strokeJoin&&o.setAttribute("stroke-linejoin",n.strokeJoin),n.strokeMiterLimit!==void 0&&o.setAttribute("stroke-miterlimit",String(n.strokeMiterLimit)),n.strokeDash?.length){let r=Math.max(1,n.strokeWidthEmu);o.setAttribute("stroke-dasharray",n.strokeDash.map(a=>D(a*r)).join(" "));}n.strokeInset&&oo(t,e,o,i,chunkTXIO5WYQ_cjs.wf(n.strokeWidthEmu),n.fillRule??"evenodd"),n.strokeAlpha<1&&o.setAttribute("stroke-opacity",D(Math.max(0,n.strokeAlpha)));}if(e.append(o),n.strokeHex!==null)for(let r of n.arrowheadsEmu??[]){let a=t.createElementNS(ut,"path");a.setAttribute("d",`M${r.map(s=>`${D(s.x)} ${D(s.y)}`).join("L")}Z`),a.setAttribute("fill",`#${n.strokeHex}`),a.setAttribute("fill-opacity",D(Math.max(0,Math.min(1,n.strokeAlpha)))),a.setAttribute("data-docx-line-end","triangle"),e.append(a);}}}function ft(t,e,n,o){let i=e.groupTextboxStories;if(!i||e.accessibility.hidden||!n.paintStoryFragment)return null;let r=e.paintBounds;if(r.width<=0||r.height<=0)return null;let a=n.scale,s=t.createElement("div");s.className="docx-drawing-group-text",s.dataset.groupTextFor=e.drawingNodeId,s.setAttribute("contenteditable","false");let l=o?.x??0,d=o?.y??0;s.style.position="absolute",s.style.left=`${(r.x-l)*a}px`,s.style.top=`${(r.y-d)*a}px`,s.style.width=`${r.width*a}px`,s.style.height=`${r.height*a}px`,s.style.overflow=i.some(p=>p.story.overflowVisible)?"visible":"hidden",s.style.pointerEvents="none";let c=e.x-r.x,u=e.y-r.y;for(let p of i){let y=p.story,f=t.createElement("div");f.className="docx-drawing-textbox-content",f.style.position="absolute",f.style.left=`${(c+p.box.x+y.contentOffset.x)*a}px`,f.style.top=`${(u+p.box.y+y.contentOffset.y)*a}px`,f.style.width=`${y.contentWidth*a}px`,f.style.height=`${Math.max(0,y.contentHeight)*a}px`,f.style.overflow="hidden";let h=p.rotationDegrees;if(h!==0&&Number.isFinite(h)){let g=p.box.width/2-y.contentOffset.x,m=p.box.height/2-y.contentOffset.y;f.style.transformOrigin=`${g*a}px ${m*a}px`,f.style.transform=`rotate(${h}deg)`;}for(let g of y.fragments)f.append(n.paintStoryFragment(t,g,{readOnly:true}));for(let g of f.querySelectorAll('[style*="pointer-events"]'))g.style.pointerEvents="none";s.append(f);}return s}var ht="http://www.w3.org/2000/svg",so=12700,T=t=>Number.isFinite(t)?String(t):"0";function lo(t,e){t.setAttribute("fill",e.fillHex!==null?`#${e.fillHex}`:"none"),e.fillHex!==null&&e.fillAlpha<1&&t.setAttribute("fill-opacity",T(Math.max(0,e.fillAlpha))),e.strokeHex!==null&&(t.setAttribute("stroke",`#${e.strokeHex}`),t.setAttribute("stroke-width",T(e.strokeWidthPt)),t.setAttribute("stroke-linejoin","round"),e.strokeAlpha<1&&t.setAttribute("stroke-opacity",T(Math.max(0,e.strokeAlpha))));}function co(t,e,n,o,i){let r=e.textArt,a=e.paintBounds,s=t.createElement("div");s.className="docx-drawing docx-drawing-text-art",o||(s.dataset.drawingNodeId=e.drawingNodeId),s.style.position="absolute",s.style.left=`${(a.x-(i?.x??0))*n}px`,s.style.top=`${(a.y-(i?.y??0))*n}px`,s.style.width=`${a.width*n}px`,s.style.height=`${a.height*n}px`,s.style.overflow="hidden",s.style.pointerEvents="none",s.setAttribute("role","img"),s.setAttribute("aria-label",e.accessibility.label||r.text);let l=t.createElementNS(ht,"svg");if(l.setAttribute("viewBox",`0 0 ${T(e.width)} ${T(e.height)}`),l.setAttribute("preserveAspectRatio","none"),l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.left=`${(e.x-a.x)*n}px`,l.style.top=`${(e.y-a.y)*n}px`,l.style.width=`${e.width*n}px`,l.style.height=`${e.height*n}px`,l.style.overflow="visible",r.rotationDegrees&&(l.style.transformOrigin="50% 50%",l.style.transform=`rotate(${T(r.rotationDegrees)}deg)`),r.components){l.setAttribute("viewBox",`0 0 ${T(e.width*so)} ${T(e.height*so)}`);for(let d of r.components)yt(t,l,d);}else if(r.path!==null){let d=t.createElementNS(ht,"path");d.setAttribute("d",r.path),lo(d,r),l.append(d);}else if(r.fit!==null){let d=t.createElementNS(ht,"text"),{scaleX:c,scaleY:u,offsetX:p,offsetY:y}=r.fit;d.setAttribute("transform",`matrix(${T(c)} 0 0 ${T(u)} ${T(p)} ${T(y)})`),d.setAttribute("font-family",r.fontFamily),d.setAttribute("font-size",T(r.fontSizePt)),d.setAttribute("font-weight",r.bold?"bold":"normal"),d.setAttribute("font-style",r.italic?"italic":"normal"),d.setAttribute("xml:space","preserve"),lo(d,r),d.textContent=r.text,l.append(d);}return s.append(l),s}function I(t,e,n){let{accessibility:o}=e;o.hidden||(t.setAttribute("role",n?"link":"img"),o.label?t.setAttribute("aria-label",o.label):n||t.setAttribute("aria-hidden","true"));}function U(t,e,n,o){let i=o?.x??0,r=o?.y??0;t.style.position="absolute",t.style.left=`${(e.x-i)*n}px`,t.style.top=`${(e.y-r)*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`,t.style.boxSizing="border-box",t.style.overflow="hidden",t.style.pointerEvents="auto";}var uo="http://www.w3.org/2000/svg",v=t=>String(Math.round(t*1e3)/1e3),po=Object.freeze({kind:"roundRect",arc:0});function yo(t,e,n,o,i,r,a){let s=e+r,l=n+r,d=Math.max(0,o-2*r),c=Math.max(0,i-2*r);if(t.kind==="ellipse"){let p=d/2,y=c/2;return `M${v(s)} ${v(l+y)} A${v(p)} ${v(y)} 0 1 1 ${v(s+d)} ${v(l+y)} A${v(p)} ${v(y)} 0 1 1 ${v(s)} ${v(l+y)} Z`}if(t.kind==="polygon")return t.subpaths.map(p=>p.map((y,f)=>`${f?"L":"M"}${v(s+y.x*d)} ${v(l+y.y*c)}`).join(" ")+" Z").join(" ");let u=Math.min(Math.max(0,t.arc*a-r),d/2,c/2);return `M${v(s)} ${v(l+u)} A${v(u)} ${v(u)} 0 0 1 ${v(s+u)} ${v(l)} H${v(s+d-u)} A${v(u)} ${v(u)} 0 0 1 ${v(s+d)} ${v(l+u)} V${v(l+c-u)} A${v(u)} ${v(u)} 0 0 1 ${v(s+d-u)} ${v(l+c)} H${v(s+u)} A${v(u)} ${v(u)} 0 0 1 ${v(s)} ${v(l+c-u)} Z`}function Ei(t,e,n,o,i){let r=t.createElementNS(uo,"svg");r.setAttribute("width",v(n*i)),r.setAttribute("height",v(o*i)),r.setAttribute("viewBox",`0 0 ${v(n)} ${v(o)}`),r.style.position="absolute",r.style.left="0",r.style.top="0",r.style.overflow="visible";let a=e.strokeHex!==null?Math.max(e.strokeWidthPt,.5/i):0,s=e.strokeCentered?0:a/2,l=t.createElementNS(uo,"path"),d=e.outline??po;return l.setAttribute("d",yo(d,0,0,n,o,s,Math.min(n,o))),l.setAttribute("fill",e.fillHex!==null?`#${e.fillHex}`:"none"),e.strokeHex!==null&&(l.setAttribute("stroke",`#${e.strokeHex}`),l.setAttribute("stroke-width",v(a)),e.strokeDashPt&&l.setAttribute("stroke-dasharray",e.strokeDashPt.map(v).join(" ")),e.strokeCap&&l.setAttribute("stroke-linecap",e.strokeCap)),r.append(l),r}function fo(t,e,n){if(!n)return [t,e];let o=-n*Math.PI/180;return [t*Math.cos(o)-e*Math.sin(o),t*Math.sin(o)+e*Math.cos(o)]}function Pi(t,e,n,o,i){let r=e.shadow,a=t.cloneNode(true);a.className="docx-drawing-textbox-shadow";let s=`#${r.hex}`;(a.style.backgroundColor||r.obscured)&&(a.style.backgroundColor=s),a.style.borderColor&&(a.style.borderColor=s);for(let u of a.querySelectorAll("path"))(u.getAttribute("fill")!=="none"||r.obscured)&&u.setAttribute("fill",s),u.getAttribute("stroke")&&u.setAttribute("stroke",s);a.style.opacity=v(r.alpha);let l=e.chromeRotationDegrees,d=r.dx*o,c=r.dy*o;if(a.style.transform=`translate(${v(d)}px, ${v(c)}px)${l?` rotate(${l}deg)`:""}`,r.obscured){let[u,p]=fo(-d,-c,l),y=n.width*o,f=n.height*o,h=yo(e.outline??po,i+u,i+p,y,f,0,Math.min(y,f));a.style.clipPath=`path(evenodd, 'M-100000 -100000 H100000 V100000 H-100000 Z ${h}')`;}return a}function ho(t,e,n,o,i){let r=o.scale,a=t.createElement("div");a.className="docx-drawing docx-drawing-textbox",o.unbound||(a.dataset.drawingNodeId=e.drawingNodeId),a.setAttribute("contenteditable","false"),U(a,e.paintBounds,o.scale,i),a.style.overflow="hidden";let s=(e.x-e.paintBounds.x)*r,l=(e.y-e.paintBounds.y)*r;if(n.chromeByVector&&e.vectorShape){let p=ne(t,e,r);he(a,p,e.paintBounds,chunkV7CO55DO_cjs.O(e,e.paintBounds),r),a.append(p);}else if(n.fillHex!==null||n.strokeHex!==null){let p=t.createElement("div");p.className="docx-drawing-textbox-box",p.style.position="absolute";let y=n.outline!==void 0||n.strokeDashPt!==void 0,f=n.strokeCentered&&n.strokeHex!==null&&!y?Math.max(n.strokeWidthPt*r,.5)/2:0;p.style.left=`${s-f}px`,p.style.top=`${l-f}px`,p.style.width=`${e.width*r+2*f}px`,p.style.height=`${e.height*r+2*f}px`,p.style.boxSizing="border-box",y?p.append(Ei(t,n,e.width,e.height,r)):(n.fillHex!==null&&(p.style.backgroundColor=`#${n.fillHex}`),n.strokeHex!==null&&(p.style.border=`${Math.max(n.strokeWidthPt*r,.5)}px solid #${n.strokeHex}`)),n.chromeRotationDegrees&&(p.style.transform=`rotate(${n.chromeRotationDegrees}deg)`),n.shadow&&a.append(Pi(p,n,e,r,f)),a.append(p);}let d=t.createElement("div");d.className="docx-drawing-textbox-content",d.style.position="absolute",d.style.left=`${s+n.contentOffset.x*r}px`,d.style.top=`${l+n.contentOffset.y*r}px`,d.style.width=`${n.contentWidth*r}px`,d.style.height=`${Math.max(0,n.contentHeight)*r}px`,d.style.overflow="hidden";let c=n.contentRotation;if(c){let p=(c.pivot.x-n.contentOffset.x)*r,y=(c.pivot.y-n.contentOffset.y)*r;d.style.transformOrigin=`${p}px ${y}px`,d.style.transform=`rotate(${c.degrees}deg)`;}for(let p of n.fragments)d.append(o.paintStoryFragment(t,p));for(let p of d.querySelectorAll("[data-paragraph-id]"))p.dataset.textboxParagraphId=p.dataset.paragraphId,delete p.dataset.paragraphId;a.append(d);let u=n.chromeByVector?void 0:n.shadow;if(u&&!u.obscured&&n.fillHex===null){let p=Math.round(u.alpha*255).toString(16).padStart(2,"0"),[y,f]=fo(u.dx*r,u.dy*r,n.contentRotation?.degrees);d.style.filter=`drop-shadow(${v(y)}px ${v(f)}px 0 #${u.hex}${p})`;}return I(a,e,false),a}var mo=["chart","diagram","shape","group","textbox","canvas","graphic"],Mi=new Map([["chart","Chart not shown"],["diagram","Unsupported diagram"],["shape","Unsupported shape"],["group","Unsupported shape group"],["textbox","Unsupported text box"],["canvas","Unsupported drawing canvas"],["graphic","Unsupported graphic"]]);function go(t){return mo.includes(t)?t:"graphic"}function mt(t){return [t.missingResource,t.externalResource,t.invalidResource,t.contentMismatch,t.decodeFailed,t.resourceLimit,t.pendingResource,t.unsupportedFormat("probe"),...mo.map(e=>t.nonPictureGraphic(e))].join("\0")}var Ge=Object.freeze({unsupportedFormat:t=>`Unsupported image format (${t})`,nonPictureGraphic:t=>Mi.get(go(t)),missingResource:"Image missing",externalResource:"External image not loaded",invalidResource:"Invalid image",contentMismatch:"Image content does not match its type",decodeFailed:"Image could not be decoded",resourceLimit:"Image exceeds size limits",pendingResource:"Loading image"});function Li(t){return Object.freeze({unsupportedFormat:e=>t("image.unsupportedFormat",{format:e}),nonPictureGraphic:e=>t(`image.placeholder.${go(e)}`),missingResource:t("image.missingResource"),externalResource:t("image.externalResource"),invalidResource:t("image.invalidResource"),contentMismatch:t("image.contentMismatch"),decodeFailed:t("image.decodeFailed"),resourceLimit:t("image.resourceLimit"),pendingResource:t("image.pendingResource")})}var Ai=new Map([["image/svg+xml","SVG"],["image/tiff","TIFF"],["image/x-emf","EMF"],["image/x-wmf","WMF"]]),Ti="Unknown",ze=new WeakMap,_e=new WeakMap,$i=256;function vo(t,e){let n=ze.get(t);if(n)return n;let o=new Map,i=new Map;return n=Object.freeze({urlForReady(r,a){let s=o.get(r.resourceKey);if(s)return s;let l;try{l=e.create(r,a);}catch(d){if(d instanceof Error&&d.message.startsWith("PaintImageUrlSource:"))return null;throw d}return o.set(r.resourceKey,l),l},imageFor(r,a,s){let l=i.get(r);if(l&&l.resourceKey===a)return l.element;let d=s.createElement("img");return i.size<$i&&i.set(r,{element:d,resourceKey:a,...l?.readyElement?{readyElement:l.readyElement}:{}}),d},imageForPending(r){return i.get(r)?.element??null},readyElementFor(r){return i.get(r)?.readyElement??null},rememberReadyElement(r,a){let s=i.get(r);s&&i.set(r,{...s,readyElement:a});},reconcile(r,a){let s=new Set;for(let[l,d]of i)a.has(l)&&s.add(d.resourceKey);for(let[l,d]of o)r.has(l)||s.has(l)||(e.revoke(d),o.delete(l));for(let[l,d]of i)a.has(l)||(d.element.removeAttribute("src"),i.delete(l));},revokeAll(){for(let r of o.values())e.revoke(r);o.clear();for(let r of i.values())r.element.removeAttribute("src");i.clear();}}),ze.set(t,n),n}function gt(t,e){return `${e.paintInstance??""}|${t.drawingNodeId}`}function Rl(t){ze.get(t)?.revokeAll(),ze.delete(t);}function oe(t){return Number.isFinite(t)?String(t):"0"}function So(t,e){if(t.length<3||e.width<=0||e.height<=0)return null;let n=[];for(let o of t){if(!Number.isFinite(o.x)||!Number.isFinite(o.y))return null;let i=(o.x-e.x)/e.width*100,r=(o.y-e.y)/e.height*100;n.push(`${oe(i)}% ${oe(r)}%`);}return `polygon(${n.join(", ")})`}function ko(t){let e=t.geometry.contentBounds;return chunkTXIO5WYQ_cjs.yf({transform:t.transform,contentWidth:e.width,contentHeight:e.height})}function wo(t,e){let{crop:n}=t,o=Math.max(0,Math.min(1,n.left)),i=Math.max(0,Math.min(1,n.top)),r=Math.max(0,Math.min(1,n.right)),a=Math.max(0,Math.min(1,n.bottom)),s=Math.max(1e-4,1-o-r),l=Math.max(1e-4,1-i-a);return Object.freeze({width:`${oe(1/s*100)}%`,height:`${oe(1/l*100)}%`,left:`${oe(-o/s*100)}%`,top:`${oe(-i/l*100)}%`})}function Hi(t,e){let{resource:n}=t;switch(n.kind){case "external":return e.externalResource;case "missing":return e.missingResource;case "pending":return e.pendingResource;case "unrenderable":switch(n.reason){case "unsupported-format":return e.unsupportedFormat(Ai.get(n.mime)??Ti);case "non-picture-graphic":return e.nonPictureGraphic(t.placeholderGraphicKind??"graphic");case "signature-mismatch":return e.contentMismatch;case "decode-failed":return e.decodeFailed;case "resource-limit":return e.resourceLimit;default:return e.invalidResource}default:return e.invalidResource}}function Ro(t){let e=t.groupPicture?t.geometry.imageTransformCorners:void 0;if(!e||e.length===0)return t.geometry.contentBounds;let n=1/0,o=1/0,i=-1/0,r=-1/0;for(let a of e)n=Math.min(n,a.x),o=Math.min(o,a.y),i=Math.max(i,a.x),r=Math.max(r,a.y);return {x:n,y:o,width:i-n,height:r-o}}function Ci(t,e,n,o,i){let r=t.paintBounds,a=Ro(t),s=wo(t);return [o,n.scale,i?.x??0,i?.y??0,r.x,r.y,r.width,r.height,a.x,a.y,a.width,a.height,So(t.geometry.clipPolygon??[],r)??"",ct(t.effects)??"",t.effects.bilevel??"",ko(t)??"",s.width,s.height,s.left,s.top,n.inertLinks?"":t.hyperlinkHref??"",t.accessibility.label??""].join("|")}function me(t,e,n,o){let i=t.createElement("div");i.className="docx-drawing docx-drawing-placeholder",n.unbound||(i.dataset.drawingNodeId=e.drawingNodeId),U(i,e.paintBounds,n.scale,o);let r=t.createElement("div");r.className="docx-drawing-placeholder-card";let a=t.createElement("span");a.className="docx-drawing-placeholder-label",a.textContent=Hi(e,n.strings),r.append(a);let s=n.unsupportedSource?.(e.drawingNodeId,e.ownerPartName)??null;return j(r,a,{ownerPartName:e.ownerPartName,namespaceUri:s?.namespaceUri??"http://schemas.openxmlformats.org/wordprocessingml/2006/main",localName:s?.localName??"drawing",source:s,...s?{drawingIssues:chunk5HUVQXET_cjs.Ea(s,e.drawingNodeId),graphicKind:chunk5HUVQXET_cjs.Ga(s,e.drawingNodeId)}:{},support:"unrendered",placement:"inline",bounds:e.paintBounds,nodeId:e.drawingNodeId,label:a.textContent,drawing:e},i),i.append(r),e.hyperlinkHref&&!n.inertLinks?(i.dataset.docxDrawingLink=e.drawingNodeId,i.dataset.docxDrawingLinkKind="external",i.dataset.docxDrawingLinkHref=e.hyperlinkHref,i.setAttribute("tabindex","-1"),I(i,e,true)):I(i,e,false),i}function Eo(t,e,n,o,i,r){let a=t.createElement("div");a.className="docx-drawing-image-frame",a.style.position="absolute";let s=Ro(e),l=e.paintBounds,d=e.groupPicture!==void 0||e.vectorShape!==null||e.frameEffects!==void 0,c=So(e.geometry.clipPolygon??[],d?s:l);c&&d&&(a.style.clipPath=c),a.style.left=`${(s.x-l.x)*o.scale}px`,a.style.top=`${(s.y-l.y)*o.scale}px`,a.style.width=`${s.width*o.scale}px`,a.style.height=`${s.height*o.scale}px`;let u=ct(e.effects);u&&(a.style.filter=u);let p=t.createElement("div");p.className="docx-drawing-transform-stage",p.style.position="relative",p.style.width="100%",p.style.height="100%";let y=ko(e);y&&(p.style.transform=y,p.style.transformOrigin="0 0");let f=t.createElement("div");f.className="docx-drawing-crop-viewport",f.style.position="relative",f.style.width="100%",f.style.height="100%",f.style.overflow="hidden",r.className="docx-drawing-image",r.setAttribute("draggable","false"),r.getAttribute("src")!==i&&r.setAttribute("src",i),r.setAttribute("alt","");let h=wo(e);return r.style.position="absolute",r.style.width=h.width,r.style.height=h.height,r.style.left=h.left,r.style.top=h.top,r.style.maxWidth="none",r.style.maxHeight="none",f.append(r),p.append(f),a.append(p),{inner:a,outerClipPath:c&&!d?c:null}}function Po(t,e,n){let o=t.resource;return o.kind==="ready"&&e.imageUrlPort&&n?n.urlForReady(o.validatedHandle,o.mime):null}function Bi(t,e,n,o){let i=[];for(let r of e.groupPictureLayers??[]){let a=Po(r,n,o);if(a===null||r.resource.kind!=="ready")continue;let s=t.createElement("img"),l=chunkTXIO5WYQ_cjs.Ab(e,r);i.push(Eo(t,l,r.resource,n,a,s).inner);}return i}function Di(t,e,n,o,i,r){let a=e.resource;if(a.kind!=="ready")return me(t,e,n,r);let s=gt(e,n),l=i?.readyElementFor?.(s)??t.createElement("div"),d=Ci(e,a,n,o,r),c=!e.vectorShape&&!e.frameEffects&&!e.groupPictureLayers;if(c&&_e.get(l)===d)return l;l.hasAttribute("data-docx-unsupported")&&Ae(l),l.className="docx-drawing docx-drawing-ready",l.style.cssText="",n.unbound||(l.dataset.drawingNodeId=e.drawingNodeId),delete l.dataset.docxDrawingLink,delete l.dataset.docxDrawingLinkKind,delete l.dataset.docxDrawingLinkHref,l.removeAttribute("aria-hidden"),l.removeAttribute("aria-label"),l.removeAttribute("role"),l.removeAttribute("tabindex"),U(l,e.paintBounds,n.scale,r);let u=Eo(t,e,a,n,o,i?.imageFor?.(s,a.resourceKey,t)??t.createElement("img")),p=u.inner;if(u.outerClipPath&&(l.style.clipPath=u.outerClipPath),l.replaceChildren(p,...Bi(t,e,n,i)),e.frameEffects){let y=e.frameEffects.softEdgeEmu??0;Qn(p,y/12700*n.scale),eo(t,l,p,e,n.scale);}if(e.vectorShape){let y=pt(e)||e.groupPicture!==void 0,f=chunkV7CO55DO_cjs.O(e,e.paintBounds),h=ne(t,e,n.scale,y?g=>g.belowPicture!==true:void 0);if(he(l,h,e.paintBounds,f,n.scale),l.append(h),y&&e.vectorShape.components.some(g=>g.belowPicture)){let g=ne(t,e,n.scale,m=>m.belowPicture===true);g.style.pointerEvents="none",l.insertBefore(g,p);}}return Xn(t,l,p,e.effects.bilevel),e.hyperlinkHref&&!n.inertLinks?(l.dataset.docxDrawingLink=e.drawingNodeId,l.dataset.docxDrawingLinkKind="external",l.dataset.docxDrawingLinkHref=e.hyperlinkHref,l.setAttribute("tabindex","-1"),I(l,e,true)):I(l,e,false),i?.rememberReadyElement?.(s,l),c?_e.set(l,d):_e.delete(l),l}function Fi(t,e,n,o,i){let r=t.createElement("div");r.className="docx-drawing docx-drawing-shape",n.unbound||(r.dataset.drawingNodeId=e.drawingNodeId);let a=e.paintBounds;U(r,a,n.scale,i);let s=ne(t,e,n.scale);return he(r,s,a,o,n.scale),r.append(s),e.hyperlinkHref&&!n.inertLinks?(r.dataset.docxDrawingLink=e.drawingNodeId,r.dataset.docxDrawingLinkKind="external",r.dataset.docxDrawingLinkHref=e.hyperlinkHref,r.setAttribute("tabindex","-1"),I(r,e,true)):I(r,e,false),r}function Ii(t,e,n){let o=n.revisionStyles,i=J(e.revisions,o?.authorSlots,o?.styles);if(!i){if(t.dataset.revisionKind===void 0)return;t.classList.remove("docx-drawing--revision","docx-drawing--revision-insertion","docx-drawing--revision-deletion"),delete t.dataset.revisionKind,delete t.dataset.revisionId,delete t.dataset.reviewAuthor,delete t.dataset.revisionDate,delete t.dataset.reviewAuthorSlot;return}let{attribution:r}=i;t.classList.add("docx-drawing--revision",i.deleted?"docx-drawing--revision-deletion":"docx-drawing--revision-insertion"),t.classList.remove(i.deleted?"docx-drawing--revision-insertion":"docx-drawing--revision-deletion"),t.dataset.revisionKind=r.kind,t.dataset.revisionId=r.id,r.author!==""?t.dataset.reviewAuthor=r.author:delete t.dataset.reviewAuthor,r.date!==void 0?t.dataset.revisionDate=r.date:delete t.dataset.revisionDate,o?t.dataset.reviewAuthorSlot=String((o.authorSlots.get(r.author)??0)%C):delete t.dataset.reviewAuthorSlot;}function Mo(t,e,n,o,i){let r=Ni(t,e,n,o,i);return r&&(Vn(r,e,n.includePartial===true,n.includePartial?n.unsupportedSource?.(e.drawingNodeId,e.ownerPartName)??null:null),Ii(r,e,n)),r}function Ni(t,e,n,o,i){if(e.accessibility.hidden)return null;let r=e.vectorShape?chunkV7CO55DO_cjs.O(e,e.paintBounds):e.paintBounds;if(r.width<=0||r.height<=0)return null;if(e.textboxStory!==void 0&&n.paintStoryFragment!==void 0)return ho(t,e,e.textboxStory,n,i);if(e.textArt)return co(t,{...e,textArt:e.textArt},n.scale,!!n.unbound,i);if(e.groupTextboxStories&&!e.groupPicture&&!e.vectorShape){let c=t.createElement("div");return c.className="docx-drawing docx-drawing-group-frame",n.unbound||(c.dataset.drawingNodeId=e.drawingNodeId),U(c,e.paintBounds,n.scale,i),I(c,e,false),c}let{resource:a}=e,s=a.kind==="ready"&&n.imageUrlPort&&o?o.urlForReady(a.validatedHandle,a.mime):null,l=e.groupPictureLayers?.some(c=>c.resource.kind!=="pending"&&Po(c,n,o)===null);if(e.groupPicture&&(a.kind!=="pending"&&!s||l))return me(t,e,n,i);let d=e.groupPicture!==void 0&&s!==null;if(e.vectorShape&&e.vectorShape.subpathsEmu.length>0&&!d&&!pt(e))return Fi(t,e,n,r,i);if(a.kind==="ready")return !s||!o?me(t,e,n,i):Di(t,e,n,s,o,i);if(a.kind==="pending"){let c=o?.readyElementFor?.(gt(e,n))??o?.imageForPending?.(gt(e,n))?.closest(".docx-drawing-ready");return c?(_e.delete(c),n.unbound||(c.dataset.drawingNodeId=e.drawingNodeId),U(c,e.paintBounds,n.scale,i),c):me(t,e,n,i)}return me(t,e,n,i)}function Lo(t,e,n,o,i){let r=[];for(let a of e.drawings??[]){let s=Mo(t,a,n,o,i);s&&r.push(s);let l=ft(t,a,n,i);l&&r.push(l);}return Object.freeze(r)}function Ao(t,e,n,o,i,r){let a=[];for(let s of e){if(chunkTXIO5WYQ_cjs.fc(s)!==n)continue;let l=Mo(t,s,o,i,r);l&&(l.dataset.drawingLayer=n,a.push(l));let d=ft(t,s,o,r);d&&(d.dataset.drawingLayer=n,a.push(d));}return Object.freeze(a)}var bo=new WeakMap;function Oi(t){let e=bo.get(t);if(e)return e;let n=[],o=[];chunkTXIO5WYQ_cjs.Na(t,({host:r})=>{(!("anchoredDrawings"in r)||(r.anchoredDrawings?.length??0)===0)&&pe(r.fragments).drawingFree||(chunkTXIO5WYQ_cjs.Pa(r,a=>{a.resource.kind==="ready"&&n.push(a.resource.resourceKey);for(let s of a.groupPictureLayers??[])s.resource.kind==="ready"&&n.push(s.resource.resourceKey);o.push(`p${t.index}|${a.drawingNodeId}`);}),chunkTXIO5WYQ_cjs.Ra(r,a=>{let s=a.marker?.picture;s?.resource.kind==="ready"&&n.push(s.resource.resourceKey);}));});let i=Object.freeze({resourceKeys:Object.freeze(n),elementKeys:Object.freeze(o)});return bo.set(t,i),i}var xo=new WeakMap;function To(t){let e=xo.get(t);if(e)return e;let n=new Set,o=new Set;for(let r of t.pages){let a=Oi(r);for(let s of a.resourceKeys)n.add(s);for(let s of a.elementKeys)o.add(s);}let i=Object.freeze({resourceKeys:n,elementKeys:o});return xo.set(t,i),i}function $o(t){return To(t).resourceKeys}function Ho(t){return To(t).elementKeys}function Co(t,e,n){t.style.position="absolute",t.style.pointerEvents="none",t.style.left=`${e.x*n}px`,t.style.top=`${e.y*n}px`,t.style.width=`${e.width*n}px`,t.style.height=`${e.height*n}px`;}function re(t,e,n,o){let i=t.createElement("span");return i.className=e,i.setAttribute("aria-hidden","true"),i.style.position="absolute",i.style.display="block",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i.style.backgroundColor="currentColor",i.style.pointerEvents="none",i}function Ui(t,e,n,o,i,r){let a=Math.hypot(e.x2-e.x1,e.y2-e.y1),s=Math.atan2(e.y2-e.y1,e.x2-e.x1),l=re(t,"docx-equation-box-strike",{x:n+e.x1,y:o+e.y1-i/2,width:a,height:i},r);return l.style.transformOrigin=`0 ${i/2*r}px`,l.style.transform=`rotate(${s}rad)`,l}function Gi(t,e){return t.kind==="text"&&e.kind==="text"&&t.runStyle!==void 0&&t.runStyle===e.runStyle&&t.fontSizePt===e.fontSizePt&&t.box.y===e.box.y&&t.box.height===e.box.height&&t.baseline===e.baseline&&e.box.x>=t.box.x+t.box.width-1e-9}function _i(t,e){let n=e+1;for(;n<t.length&&Gi(t[n-1],t[n]);)n++;return n-e}function zi(t,e,n,o,i,r,a,s){let l=n[0],d=n[n.length-1],c=t.createElement("span");c.className=["docx-equation-node",...[...a,"text"].map(p=>`docx-equation-${p}`)].join(" "),Co(c,{x:i+l.box.x,y:r+l.box.y,width:d.box.x+d.box.width-l.box.x,height:l.box.height},o),c.style.display="block",l.runStyle&&s&&(c.style.fontWeight=l.runStyle.bold?"bold":"normal",c.style.fontStyle=l.runStyle.italic?"italic":"normal",s(c,l.runStyle)),c.style.fontSize=`${l.fontSizePt*o}px`,c.style.lineHeight=`${l.box.height*o}px`,c.style.whiteSpace="pre",c.append(t.createTextNode(l.text));let u=l.box.x+l.box.width;for(let p of n.slice(1)){let y=t.createElement("span");y.style.display="inline-block";let f=p.box.x-u;f>1e-9&&(y.style.marginLeft=`${f*o}px`),y.textContent=p.text,c.append(y),u=p.box.x+p.box.width;}e.append(c);}function L(t,e,n,o,i,r=0,a=0,s=[],l="0",d){let c=r+n.box.x,u=a+n.box.y,p=[...s,n.kind];switch(n.kind){case "text":case "fallback":{let y=t.createElement("span");if(y.className=["docx-equation-node",...p.map(f=>`docx-equation-${f}`)].join(" "),Co(y,{x:c,y:u,width:n.box.width,height:n.box.height},i),y.textContent=n.text,y.style.display="block",n.runStyle&&d&&(y.style.fontWeight=n.runStyle.bold?"bold":"normal",y.style.fontStyle=n.runStyle.italic?"italic":"normal",d(y,n.runStyle)),y.style.fontSize=`${n.fontSizePt*i}px`,y.style.lineHeight=`${n.box.height*i}px`,y.style.whiteSpace="pre",n.kind==="fallback"){y.style.pointerEvents="auto";let f=t.createElement("span");f.textContent=n.text,y.textContent="",y.append(f),j(y,f,{ownerPartName:o.ownerPartName??"",namespaceUri:o.unsupportedSource?.namespaceUri??"http://schemas.openxmlformats.org/officeDocument/2006/math",localName:o.unsupportedSource?.localName??"oMath",source:o.unsupportedSource??null,placement:"inline",bounds:{x:c,y:u,width:n.box.width,height:n.box.height},nodeId:o.sourceNodeId,label:n.text,equation:o},void 0,l);}e.append(y);break}case "row":for(let y=0;y<n.items.length;y++){let f=_i(n.items,y);if(f>1){zi(t,e,n.items.slice(y,y+f),i,c,u,p,d),y+=f-1;continue}L(t,e,n.items[y],o,i,c,u,p,`${l}.${y}`,d);}break;case "fraction":L(t,e,n.numerator,o,i,c,u,p,`${l}.numerator`,d),e.append(re(t,"docx-equation-fraction-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i)),L(t,e,n.denominator,o,i,c,u,p,`${l}.denominator`,d);break;case "radical":L(t,e,n.sign,o,i,c,u,p,`${l}.sign`,d),n.degree&&L(t,e,n.degree,o,i,c,u,p,`${l}.degree`,d),e.append(re(t,"docx-equation-radical-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i)),L(t,e,n.radicand,o,i,c,u,p,`${l}.radicand`,d);break;case "bar":L(t,e,n.body,o,i,c,u,p,`${l}.body`,d),e.append(re(t,"docx-equation-bar",{...n.bar,x:c+n.bar.x,y:u+n.bar.y},i));break;case "borderBox":L(t,e,n.body,o,i,c,u,p,`${l}.body`,d);for(let y of n.rules)e.append(re(t,"docx-equation-box-rule",{...y,x:c+y.x,y:u+y.y},i));for(let y of n.diagonals)e.append(Ui(t,y,c,u,n.thickness,i));break;case "script":L(t,e,n.base,o,i,c,u,p,`${l}.base`,d),n.subscript&&L(t,e,n.subscript,o,i,c,u,p,`${l}.subscript`,d),n.superscript&&L(t,e,n.superscript,o,i,c,u,p,`${l}.superscript`,d);break;case "nary":L(t,e,n.operator,o,i,c,u,p,`${l}.operator`,d),n.lowerLimit&&L(t,e,n.lowerLimit,o,i,c,u,p,`${l}.lowerLimit`,d),n.upperLimit&&L(t,e,n.upperLimit,o,i,c,u,p,`${l}.upperLimit`,d),L(t,e,n.body,o,i,c,u,p,`${l}.body`,d);break}}function Ki(t,e,n,o,i,r,a){let s=n.geometry;e.className="layout-run docx-equation",e.dataset.docxEquation=n.sourceNodeId,e.setAttribute("contenteditable","false"),e.setAttribute("role","math"),n.fallbackText&&e.setAttribute("aria-label",n.fallbackText),e.style.position="relative",e.style.display="inline-block",e.style.width=`${s.box.width*o}px`,e.style.height=`${s.box.height*o}px`,e.style.lineHeight="0",e.style.pointerEvents="auto",e.style.userSelect="none",e.style.verticalAlign=`${-(s.box.height-s.baseline)*o}px`;let l=t.createDocumentFragment();L(t,l,s,{...n,unsupportedSource:r??null,...a?{ownerPartName:a}:{}},o,0,0,[],"0",i),e.append(l);}function Bo(t,e,n,o,i){Ki(t,e,n,o.scale,i,o.unsupportedSource?.(n.sourceNodeId),o.unsupportedOwnerPartName?.(n.sourceNodeId));}function Do(t,e,n,o){Be(e,n,o);let i=e.dataset.revisionKind;if(i!=="delete"&&i!=="moveFrom"&&i!=="insert"&&i!=="moveTo")return;let r=n.equation?.geometry.box;if(!r)return;let a=o.revisionMarkup?chunkTXIO5WYQ_cjs.jb(o.revisionMarkup,i).mark:i==="delete"||i==="moveFrom"?"strikethrough":"underline",s=a==="strikethrough"||a==="doubleStrikethrough";if(!s&&a!=="underline"&&a!=="doubleUnderline")return;let l=a==="doubleStrikethrough"||a==="doubleUnderline";if(s){for(let u of e.querySelectorAll(".docx-equation-text, .docx-equation-fallback"))u.classList.add("docx-equation-revision-strike"),u.style.textDecorationLine="line-through",u.style.textDecorationStyle=l?"double":"solid",u.style.textDecorationColor="currentColor";return}let d=.75,c=l?[r.height-3*d,r.height-d]:[r.height-d];for(let u of c)e.append(re(t,"docx-equation-revision-underline",{x:0,y:u,width:r.width,height:d},o.scale));}function Fo(t,e,n,o){if(n.glyphOffsetPt!==void 0){let s=n.style.horizontalScalePercent/100,l=n.box.width*o;e.style.width=`${l/s}px`,s!==1&&(e.style.marginRight=`${l-l/s}px`);let d=t.createElement("span");if(d.dataset.docxGlyphOffset="",s!==1&&(d.style.letterSpacing=`${n.style.characterSpacingPt*o/s}px`),n.glyphOffsetPt){d.dataset.docxShiftedInk="",d.style.setProperty("forced-color-adjust","preserve-parent-color"),d.style.setProperty("-webkit-text-fill-color","transparent");let c=`${n.glyphOffsetPt*o/s}px`;d.style.setProperty("--docx-glyph-ink-offset",c),e.style.color&&e.style.color!=="inherit"&&d.style.setProperty("--docx-glyph-ink-color",e.style.color),d.style.textShadow=`${c} 0 currentColor`;}return e.append(d),d}let i=n.lineEndWhitespace===true;(n.style.horizontalScalePercent!==100||n.text===" "||i||n.text.length===1&&chunkTXIO5WYQ_cjs.z(n.text))&&(e.style.width=`${n.box.width*o}px`);let r=n.style.shaping!==void 0&&n.style.horizontalScalePercent!==100;if(!i&&!r||(i&&(e.style.clipPath="inset(-1em 0)"),n.style.horizontalScalePercent===100))return e;let a=t.createElement("span");if(a.dataset.docxClippedFill="",a.style.display="inline-block",a.style.transform=e.style.transform,a.style.transformOrigin=e.style.transformOrigin,r){let s=n.style.horizontalScalePercent/100;a.style.width=`${n.box.width*o/s}px`,a.style.letterSpacing=`${n.style.characterSpacingPt*o/s}px`,n.style.shaping?.wordSpacingPt&&(a.style.wordSpacing=`${n.style.shaping.wordSpacingPt*o/s}px`),a.style.direction=n.style.shaping?.direction??"ltr",a.style.transformOrigin=a.style.direction==="rtl"?"right":"left";}return a.style.textDecorationLine=e.style.textDecorationLine,a.style.textDecorationStyle=e.style.textDecorationStyle,a.style.textDecorationColor=e.style.textDecorationColor,a.style.textDecorationThickness=e.style.textDecorationThickness,a.style.textUnderlineOffset=e.style.textUnderlineOffset,e.style.removeProperty("transform"),e.style.removeProperty("transform-origin"),e.style.removeProperty("text-decoration-line"),e.style.removeProperty("text-decoration-style"),e.style.removeProperty("text-decoration-color"),e.style.removeProperty("text-decoration-thickness"),e.style.removeProperty("text-underline-offset"),e.append(a),a}function Io(t,e,n){let o=e.textOutline;if(!o||!Number.isFinite(n)||n<=0||!Number.isFinite(o.widthPt)||o.widthPt<=0||o.widthPt>1584||!/^[0-9a-f]{6}$/i.test(o.color))return;let i=o.widthPt*n;Number.isFinite(i)&&(t.setProperty("-webkit-text-stroke-width",`${i}px`),t.setProperty("-webkit-text-stroke-color",`#${o.color}`));}var ji=/^[0-9A-Fa-f]{6}$/;function Wi(t,e,n){let o=t.createElement("div");o.className=`docx-page-border docx-page-border-${e.side}`,o.setAttribute("aria-hidden","true"),o.style.position="absolute";let i=e.side==="left"||e.side==="right",r=(i?e.box.width:e.box.height)*n,a=De(e.edge.val)?r:Math.max(1,r),s=a-r;o.style.left=`${e.box.x*n-(e.side==="right"?s:0)}px`,o.style.top=`${e.box.y*n-(e.side==="bottom"?s:0)}px`,o.style.width=i?`${a}px`:`${e.box.width*n}px`,o.style.height=i?`${e.box.height*n}px`:`${a}px`;let l=e.edge.color&&ji.test(e.edge.color)?e.edge.color:"000000";return o.style.backgroundColor=`#${l}`,ee(o,e.edge.val,l,i,a,n),o}function No(t,e,n){let o=t.createElement("div");o.className="docx-page-borders",o.setAttribute("aria-hidden","true"),o.setAttribute("contenteditable","false"),o.style.position="absolute",o.style.inset="0",o.style.pointerEvents="none";for(let i of e.strokes)o.append(Wi(t,i,n));return o}var Oo="http://www.w3.org/2000/svg";function Uo(t,e,n,o){let i=n?.diagonals;if(!i?.length)return;let r=i[0],a=t.createElementNS(Oo,"svg");a.classList.add("docx-table-cell-diagonals"),a.setAttribute("aria-hidden","true"),a.setAttribute("focusable","false"),a.setAttribute("contenteditable","false"),a.setAttribute("viewBox",`0 0 ${r.clipWidth} ${r.clipHeight}`),a.setAttribute("width",String(r.clipWidth*o)),a.setAttribute("height",String(r.clipHeight*o)),Object.assign(a.style,{position:"absolute",left:"0",top:"0",overflow:"hidden",pointerEvents:"none",zIndex:"1"});for(let s of i){let l=t.createElementNS(Oo,"line");l.dataset.diagonal=s.direction;for(let d of ["x1","y1","x2","y2"])l.setAttribute(d,String(s[d]));l.setAttribute("stroke",`#${s.color??"000000"}`),l.setAttribute("stroke-width",String(s.widthPt)),l.setAttribute("stroke-linecap","butt"),s.cssStyle!=="solid"&&l.setAttribute("stroke-dasharray",`${s.widthPt*(s.cssStyle==="dotted"?1:3)} ${s.widthPt*2}`),a.append(l);}e.append(a);}var Vi=/^[0-9A-Fa-f]{6}$/;function Xi(t){switch(t){case "dashed":return "dashed";case "dotted":return "dotted";case "double":case "triple":return "solid";default:return "solid"}}function vt(t){return t&&Vi.test(t)?t:"000000"}function bt(t,e){let n=t.createElement("div");return n.className=e,n.setAttribute("aria-hidden","true"),n.setAttribute("contenteditable","false"),n.style.position="absolute",n.style.left="0",n.style.top="0",n.style.right="0",n.style.bottom="0",n.style.overflow="visible",n.style.pointerEvents="none",n.style.boxSizing="border-box",n}function qi(t,e,n,o){if(!n)return;let i=`#${vt(n.color)}`,r=`${Math.max(0,n.widthPt*o)}px`;if(t.style[`border${e}Width`]=r,t.style[`border${e}Color`]=i,n.style==="double"||n.style==="triple"){t.style[`border${e}Style`]="none";return}t.style[`border${e}Style`]=Xi(n.style);}function xt(t,e,n,o,i){let r=t.createElement("div");if(r.className=i,r.dataset.edge=n.side,r.dataset.stroke=n.role,r.style.position="absolute",r.style.left=`${n.x*o}px`,r.style.top=`${n.y*o}px`,r.style.width=`${n.width*o}px`,r.style.height=`${n.height*o}px`,r.style.pointerEvents="none",n.cssStyle==="solid")r.style.backgroundColor=`#${vt(n.color)}`;else {let a=n.side==="top"||n.side==="bottom";r.style.boxSizing="border-box",r.style[a?"borderTop":"borderLeft"]=`${(a?n.height:n.width)*o}px ${n.cssStyle} #${vt(n.color)}`;}return e.append(r),r}function Yi(t){let e=new Set;for(let n of t)e.add(`${n.side}\0${n.role}`);return e}function Zi(t,e,n,o){let i=Yi(n),r=y=>i.has(`${y}\0middle`),a=bt(t,"docx-table-border-double"),s=bt(t,"docx-table-border-triple"),l=bt(t,"docx-table-border-edge");for(let y of [a,s,l])y.style.zIndex="1";let d=false,c=false,u=false,p=[];for(let y of n){if(y.role==="edge"){u=true,p.push(xt(t,l,y,o,"docx-table-border-edge-stroke"));continue}if(r(y.side)){c=true,p.push(xt(t,s,y,o,"docx-table-border-triple-stroke"));continue}(y.role==="outer"||y.role==="inner")&&(d=true,p.push(xt(t,a,y,o,"docx-table-border-double-stroke")));}return d&&e.append(a),c&&e.append(s),u&&e.append(l),p}function Go(t,e,n,o){Uo(t,e,n,o);let i=new Set((n?.strokes??[]).map(r=>r.side));for(let r of ["top","right","bottom","left"]){let a=`${r[0].toUpperCase()}${r.slice(1)}`;qi(e,a,n?.[r],o),i.has(r)&&(e.style[`border${a}Style`]="none");}if(n?.strokes&&n.strokes.length>0)return Zi(t,e,n.strokes,o)}function _o(t,e,n){e.revisionKind&&(n&&(t.style.backgroundColor="transparent"),t.classList.add("docx-table-row--revision",e.revisionKind==="insert"?"layout-revision-ins":"layout-revision-del"),t.dataset.revisionKind=e.revisionKind,e.revisionId!==void 0&&(t.dataset.revisionId=e.revisionId),e.revisionAuthor!==void 0&&(t.dataset.reviewAuthor=e.revisionAuthor),e.revisionDate!==void 0&&(t.dataset.revisionDate=e.revisionDate));}var Ji=2e4;function Qi(t,e){let n=Object.keys(t);if(n.length!==Object.keys(e).length)return false;for(let o of n)if(t[o]!==e[o])return false;return true}function ea(t,e){if(t.length!==e.length)return false;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return false;return true}function ta(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&ea(t,e)||typeof t=="object"&&typeof e=="object"&&t!==null&&e!==null&&!Array.isArray(t)&&!Array.isArray(e)&&Qi(t,e)?true:pn(t,e,Ji)}function zo(t,e){if(t===e)return null;let n=false,o=false,i=new Set([...Object.keys(t),...Object.keys(e)]);for(let r of i){if(r==="pageFieldSource")continue;let a=t[r],s=e[r];if(r==="fragments"){n||=a!==s;continue}if(!ta(a,s)){if((r==="header"||r==="footer")&&a&&s){o=true;continue}return null}}return {blocks:n,furniture:o}}function na(t){let e=t.dataset;return e.docxHfBehind!==void 0||e.docxHfHover!==void 0||e.docxHfFront!==void 0||e.docxHf!==void 0&&!t.classList.contains("docx-hf--placeholder")}function Ko(t,e,n,o){let i=[],r=[];for(let c of e.children)c.dataset.docxHfHint!==void 0?r.push(c):na(c)&&i.push(c);if(i.length===0)return false;let a=t.createElement("div"),s=Oe(t,a,n,o);if(s.length>0&&r.length===0)return false;let l=i[0];for(let c of [...a.children])e.insertBefore(c,l);let d=r.at(-1)?.nextSibling??null;for(let c of s)e.insertBefore(c,d);for(let c of [...i,...r])c.remove();return true}function jo(t,e,n,o){if(e.textDirection!=="btLr")return o;let i=t.createElement("div");return i.className="docx-table-cell-content-btlr",i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width=`${e.box.height*n}px`,i.style.height=`${e.box.width*n}px`,i.style.transformOrigin="0 0",i.style.transform=`translateY(${e.box.height*n}px) rotate(-90deg)`,o.append(i),i}function Wo(t){let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function St(t,e,n){if(t===e)return true;if(--n.left<0||typeof t!="object"||typeof e!="object"||t===null||e===null)return false;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return false;for(let i=0;i<t.length;i+=1)if(!St(t[i],e[i],n))return false;return true}if(Array.isArray(e)||!Wo(t)||!Wo(e))return false;let o=Object.keys(t);if(o.length!==Object.keys(e).length)return false;for(let i of o){if(!Object.prototype.hasOwnProperty.call(e,i))return false;let r=t[i],a=e[i];if(!St(r,a,n))return false}return true}function Vo(t,e,n){for(let[o,i]of t)if(!(o.id!==e.id||n.includes(i)))return St(o,e,{left:2e4})?i:void 0}var kt="when-selected",Xo=new WeakMap,qo=0;function oa(t){let e=Xo.get(t);return e||(qo+=1,e=`alias${qo}`,Xo.set(t,e)),e}function rr(t){return {...t,drawingStrings:t.drawingStrings??Ge,urlRegistry:t.urlRegistry??null,changeBars:t.changeBars??"none",changeBarsToggle:t.changeBarsToggle??false}}function ra(t){let e={...t,inertLinks:true,tabLeaderOriginXPt:0};return Object.freeze({scale:t.scale,includePartial:t.includePartial,...t.unsupportedSource?{unsupportedSource:t.unsupportedSource}:{},strings:t.drawingStrings,...t.imageUrlPort?{imageUrlPort:t.imageUrlPort}:{},...t.inertLinks?{inertLinks:true}:{},...t.paintInstance?{paintInstance:t.paintInstance}:{},...t.revisionStyles?{revisionStyles:t.revisionStyles}:{},...t.unbound?{unbound:true}:{},paintStoryFragment:(n,o,i)=>{let r=i?.readOnly?{...e,unbound:true}:e;return o.kind==="table"?V(n,o,r):W(n,o,r)}})}function ir(t){return Object.freeze({ctx:ra(t),urlRegistry:t.urlRegistry})}function Yo(t,e,n,o,i,r){ar(t,e,chunkTXIO5WYQ_cjs.Ma(n),o,i,r);}function ar(t,e,n,o,i,r,a=true,s){if(n.length===0)return;let l=ir(o),d=t.createElement("div");d.className=r==="behind"?"docx-drawing-layer docx-drawing-layer-behind":"docx-drawing-layer docx-drawing-layer-front",d.style.position="absolute",d.style.inset="0",d.style.pointerEvents="none",s&&(d.dataset.docxHfFront=s);for(let c of Ao(t,n,r,l.ctx,l.urlRegistry,i)){if(c.style.pointerEvents=a?"auto":"none",!a)for(let u of c.querySelectorAll(".docx-drawing"))u.style.pointerEvents="none";d.append(c);}d.childElementCount>0&&e.append(d);}var ae=/^[0-9A-Fa-f]{6}$/,Zo=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u,ia=new Map(Object.entries({single:"solid",words:"solid",thick:"solid",double:"double",dotted:"dotted",dottedHeavy:"dotted",dash:"dashed",dashedHeavy:"dashed",dashLong:"dashed",dashLongHeavy:"dashed",dotDash:"dashed",dashDotHeavy:"dashed",dotDotDash:"dashed",dashDotDotHeavy:"dashed",wave:"wavy",wavyHeavy:"wavy",wavyDouble:"wavy"})),aa=new Map(Object.entries({black:"#000000",blue:"#0000ff",cyan:"#00ffff",darkBlue:"#000080",darkCyan:"#008080",darkGray:"#808080",darkGreen:"#008000",darkMagenta:"#800080",darkRed:"#800000",darkYellow:"#808000",green:"#00ff00",lightGray:"#c0c0c0",magenta:"#ff00ff",red:"#ff0000",yellow:"#ffff00",white:"#ffffff"}));function sa(t){return t.doubleStrike?"double":t.strike?"single":"none"}function la(t){return t==="thick"||t.endsWith("Heavy")}function sr(t){if(!t.underline)return null;let e=t.underline.color&&ae.test(t.underline.color)?t.underline.color:null;return {cssStyle:ia.get(t.underline.variant)??"solid",color:e,heavy:la(t.underline.variant)}}function lr(t,e,n,o){t.textDecorationLine=e,t.textDecorationStyle=n,o.color&&(t.textDecorationColor=`#${o.color}`),o.heavy&&(t.textDecorationThickness=`max(${2*o.scale}px, 0.12em)`);}function Jo(t,e,n){e!=="none"&&lr(t,"line-through",e==="double"?"double":"solid",{scale:n});}function Qo(t,e,n){lr(t,"underline",e.cssStyle,{color:e.color,heavy:e.heavy,scale:n});}function da(t,e,n){let o=e.color?`#${e.color}`:"currentColor";t.borderBottomWidth=`${(e.heavy?2:1)*n}px`,t.borderBottomStyle=e.cssStyle==="wavy"?"solid":e.cssStyle,t.borderBottomColor=o;}function ie(t,e,n){let o=t.style,i=n.scale;Io(o,e,i);let r=chunkTXIO5WYQ_cjs.ra(e);o.fontSize=`${e.fontSizePt*r*i}px`,e.bold&&(o.fontWeight="bold"),e.italic&&(o.fontStyle="italic");let a=e.fontFamily&&Zo.test(e.fontFamily)?e.fontFamily:n.defaultFontFamily&&Zo.test(n.defaultFontFamily)?n.defaultFontFamily:null;if(a){let d=n.fontAlias?.(a),c=chunkV7CO55DO_cjs.W(a);o.fontFamily=d?`"${d}", "${a}", ${c}`:`"${a}", ${c}`;}e.color&&ae.test(e.color)&&(o.color=`#${e.color}`);let s=e.highlight?aa.get(e.highlight):void 0;s?(o.backgroundColor=s,t.dataset.highlight=e.highlight??""):e.shading&&ae.test(e.shading)&&(o.backgroundColor=`#${e.shading}`,o.color||(o.color=chunkTXIO5WYQ_cjs.L(e.shading)?"#FFFFFF":"#000000")),e.caps&&(o.textTransform="uppercase"),o.fontKerning=chunkTXIO5WYQ_cjs.w(e)?"normal":"none",e.smallCaps&&(o.fontVariant="small-caps");let l=chunkTXIO5WYQ_cjs.qa(e);l!==0&&(o.position="relative",o.top=`${-l*i}px`),e.characterSpacingPt!==0&&(o.letterSpacing=`${e.characterSpacingPt*i}px`),e.horizontalScalePercent!==100&&(o.transformOrigin="left",o.transform=`scaleX(${e.horizontalScalePercent/100})`);}function dr(t,e,n,o,i){let r=n===" "?null:sr(o),a=sa(o),s=e;if(r&&a!=="none"){let l=t.createElement("span");l.dataset.docxDeco="underline",Qo(l.style,r,i);let d=t.createElement("span");d.dataset.docxDeco="strike",Jo(d.style,a,i),l.append(d),e.append(l),s=d;}else r?Qo(e.style,r,i):a!=="none"&&Jo(e.style,a,i);s.textContent=n;}function G(t,e,n,o){let i=t.createElement(e);return i.style.position="absolute",i.style.left=`${n.x*o}px`,i.style.top=`${n.y*o}px`,i.style.width=`${n.width*o}px`,i.style.height=`${n.height*o}px`,i}function ca(t,e,n){let o=e.fieldAtom;!o||(t.dataset.fieldAtom=o.formField?"form":"field",o.resultStart!==void 0&&o.resultEnd!==void 0&&(t.dataset.fieldResultStart=String(o.resultStart),t.dataset.fieldResultEnd=String(o.resultEnd)),!(o.formField?n.shadeFormFields!==false:(n.fieldShading??kt)!=="never"))||(t.classList.add("docx-field-atom"),(o.formField||(n.fieldShading??kt)==="always")&&t.classList.add("docx-field-atom--shaded"));}function ua(t,e,n,o,i){let r=t.createElement("span"),a=chunkTXIO5WYQ_cjs.Ga(e.style,e.fontSlot);if(e.unsupported)return nn(t,e.unsupported,e.box,n.scale);if(e.equation)return n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)),ie(r,a,n),Bo(t,r,e.equation,n,(l,d)=>ie(l,d,n)),Do(t,r,e,n),r;r.className="layout-run layout-run-text",r.style.display="inline-block",r.style.verticalAlign="baseline",r.style.boxSizing="border-box",r.style.height=`${o*n.scale}px`,r.style.paddingTop=`${i*n.scale}px`,r.style.lineHeight=`${(o-i)*n.scale}px`,e.range.end>e.range.start?n.unbound||(r.dataset.paragraphId=e.range.paragraphId,r.dataset.start=String(e.range.start),r.dataset.end=String(e.range.end)):(r.setAttribute("aria-hidden","true"),r.contentEditable="false"),ie(r,a,n),chunkTXIO5WYQ_cjs.y(a,e.text)||(r.style.fontKerning="none"),ca(r,e,n),Be(r,e,n);let s=Fo(t,r,e,n.scale);if(e.text===" "){r.style.overflow="hidden",r.style.verticalAlign="top";let l=sr(e.style);l&&e.tabLeader!=="underscore"&&(r.dataset.docxTabUnderline="",da(r.style,l,n.scale));}return dr(t,s,chunkTXIO5WYQ_cjs.Ed(e),e.style,n.scale),En(r,e,n.scale),Rn(r,e),e.projected&&(r.dataset.docxField="",r.setAttribute("contenteditable","false"),e.noteNav?(r.style.userSelect="none",e.noteNav.direction==="to-note"?(r.dataset.docxNoteRef="",r.dataset.docxNoteScope=e.noteNav.scopeId,e.text.length>0&&r.setAttribute("aria-description",e.text)):(r.dataset.docxNoteMarkBack="",r.dataset.docxNoteScope=e.noteNav.scopeId)):e.fieldAtom?.formControl?(r.style.userSelect="none",r.style.cursor="pointer"):(r.style.pointerEvents="none",r.style.userSelect="none")),r}function er(t,e,n){let o=t.createElement("a");return o.className="docx-hyperlink",o.style.cursor=!n.inertLinks&&e.href?"pointer":"default",o.dataset.docxLink=e.id,o.dataset.docxLinkKind=e.kind,o.setAttribute("tabindex","-1"),!n.inertLinks&&e.href&&(o.setAttribute("href",e.href),e.kind==="external"&&o.setAttribute("rel","noopener noreferrer")),e.tooltip&&o.setAttribute("title",e.tooltip),o.style.display="inline-block",o.style.verticalAlign="baseline",o.style.textDecoration="none",o.style.color="inherit",o}function pa(t,e,n,o=false,i=chunkTXIO5WYQ_cjs.la){let r=n.scale,a=t.createElement("div");a.className="docx-line layout-line",a.dataset.lineId=e.id,n.unbound||(a.dataset.paragraphId=e.range.paragraphId),a.style.position="absolute",a.style.top=`${e.box.y*r}px`,a.style.left=`${e.contentX*r}px`,a.style.height=`${e.box.height*r}px`,a.style.fontSize="0",a.style.whiteSpace="pre",a.style.setProperty("text-decoration-skip-ink","none"),a.style.setProperty("text-decoration-skip-spaces","none"),a.style.overflow="visible";let s=e.leading??0,l=Math.min(Math.max(s,...e.spans.map(b=>b.box.height+s),e.spans.length===0?e.box.height-(e.trailingSpacing??0):0),e.box.height),d=Math.max(0,e.box.height-l);a.style.boxSizing="border-box",a.style.paddingBottom=`${d*r}px`,a.style.lineHeight=`${(e.box.height-d)*r}px`;let c=null,u=null,p=null,y=new Map;for(let[b,x]of chunkTXIO5WYQ_cjs.Ya(e).entries())y.set(x.paragraphId,b);let f=b=>y.get(b)??0,h=[...e.drawings??[]].sort((b,x)=>f(b.paragraphId)-f(x.paragraphId)||b.start-x.start),g=0,m=e.spans.some(b=>b.style.shaping!==void 0)||(e.drawings??[]).some(chunkTXIO5WYQ_cjs.cc),k=0,S=e.contentX,R=(b,x)=>{for(;g<h.length&&(f(h[g].paragraphId)<f(b)||f(h[g].paragraphId)===f(b)&&h[g].start<x);){let w=h[g],A=m?Math.max(0,w.advanceEnd-w.advanceStart):Math.max(0,w.advanceEnd-S);S=Math.max(S,w.advanceEnd);let P=t.createElement("span");P.className="docx-inline-drawing-advance",P.dataset.docxMarker="",n.unbound||(P.dataset.drawingParagraphId=w.paragraphId,P.dataset.drawingStart=String(w.start)),P.setAttribute("contenteditable","false"),P.setAttribute("aria-hidden","true"),P.style.display="inline-block",P.style.width=`${A*r}px`,P.style.height=`${w.baselineOffset*r}px`,P.style.lineHeight="0",P.style.pointerEvents="none",P.style.verticalAlign="baseline",a.append(P),k+=A,g+=1,c=null,u=null;}},X=b=>{let x=b.wrapAdvanceBefore??0;if(x<=.001)return;let w=t.createElement("span");w.className="docx-wrap-advance",w.dataset.docxMarker="",w.setAttribute("contenteditable","false"),w.setAttribute("aria-hidden","true"),w.style.display="inline-block",w.style.width=`${x*r}px`,w.style.height="0",w.style.lineHeight="0",w.style.pointerEvents="none",w.style.verticalAlign="baseline",a.append(w),c=null,u=null;},N=0,ge=false;for(let[b,x]of e.spans.entries()){let w=g;R(x.range.paragraphId,x.range.start),m||X(x);let A=!m&&g>w?x.box.x-S-(x.wrapAdvanceBefore??0):0;S=Math.max(S,x.box.x+x.box.width);let P=Math.min(x.box.height+s,e.box.height),E=x.noteSeparator?kn(t,x,e,r):ua(t,x,n,P,s);m&&(E.style.position="relative",E.style.left=`${(x.box.x-e.contentX-k)*r}px`,E.style.width||(E.style.width=`${x.box.width*r}px`),E.style.direction=x.style.shaping?.direction??"ltr",E.style.unicodeBidi=x.style.shaping?.override?"isolate-override":"isolate",x.style.shaping?.wordSpacingPt&&(E.style.wordSpacing=`${x.style.shaping.wordSpacingPt*r}px`),k+=x.box.width);let be=N!==0&&!ge?N:A;Math.abs(be)>.001&&(E.style.marginLeft=`${be*r}px`);let xe=e.spans[b+1],se=m?0:cr(e,b+1,f),q=se!==0&&xe!==void 0?Ve(x,xe):null;ge=q!==null,q==="wordSpacing"?E.style.wordSpacing=`${se*r}px`:q==="letterSpacing"&&(E.style.letterSpacing=Jt(x,se,r)),N=se;let K=x.link;if(!K){c=null,u=null,p=null,a.append(E);continue}if(x.fieldAtom){let Rt=Me(x);c!==null&&u===K.id&&p===Rt||(c=er(t,K,n),u=K.id,p=Rt,a.append(c)),c.append(E);continue}(!c||u!==K.id||p!==null)&&(c=er(t,K,n),u=K.id,p=null,a.append(c)),c.append(E);}R(chunkTXIO5WYQ_cjs.Ya(e)[chunkTXIO5WYQ_cjs.Ya(e).length-1]?.paragraphId??e.range.paragraphId,Number.POSITIVE_INFINITY),vn(a,e,r,i,b=>ie(a,b,n));let _=Object.freeze({x:e.contentX,y:e.box.y,width:e.box.width,height:e.box.height});wn(t,a,e,r),n.showParagraphMarks&&e.manualBreakAfter&&dn(t,e,a,r,n.revisionStyles,o);let z=ir(rr(n));if(e.drawings&&e.drawings.length>0)for(let b of Lo(t,e,z.ctx,z.urlRegistry,_))a.append(b);return a}function cr(t,e,n){if(e<=0||e>=t.spans.length)return 0;let o=t.spans[e-1],i=t.spans[e],r=n(o.range.paragraphId),a=n(i.range.paragraphId);return t.drawings?.some(l=>{let d=n(l.paragraphId),c=d>r||d===r&&l.start>=o.range.start,u=d<a||d===a&&l.start<i.range.start;return c&&u})?0:Xe(o,i)}function W(t,e,n){let o=n.scale,i=G(t,"div",e.box,o);i.className="docx-paragraph-fragment layout-paragraph",e.clipToBox&&(i.style.overflow="hidden"),n.unbound||(i.dataset.paragraphId=e.paragraphId),i.dataset.fragmentIndex=String(e.fragmentIndex),n.unbound||at(i,e),n.readOnlyParagraphIds?.has(e.paragraphId)&&(i.classList.add("docx-generated-region"),i.dataset.docxReadOnly="",i.setAttribute("contenteditable","false")),n.emptyTocPlaceholderIds?.has(e.paragraphId)&&(i.classList.add("docx-toc-empty-placeholder"),i.dataset.docxTocEmpty=""),e.shading&&ae.test(e.shading)&&e.shadingBox&&(i.append(ha(t,e,o)),chunkTXIO5WYQ_cjs.L(e.shading)&&(i.style.color="#FFFFFF")),e.marker&&i.append(ya(t,e,n));for(let a of e.lines)for(let s of a.spans){if(!s.tabLeader)continue;let l=fa(t,e,a,s,n);l&&i.append(l);}let r=[];for(let a of e.lines){let s=pa(t,a,n.revisionMarkup&&chunkTXIO5WYQ_cjs.vb(e.props)?{...n,paragraphFormatRevision:chunkTXIO5WYQ_cjs.vb(e.props)}:n,chunkTXIO5WYQ_cjs.vf(e.props),e.emptyParagraphStyle);e.markFormatRevision&&a===e.lines[e.lines.length-1]&&at(s,e,true),s.style.top=`${(a.box.y-e.box.y)*o}px`,s.style.left=`${(a.contentX-e.box.x)*o}px`,i.append(s),r.push(s);}if(Tn(t,e,r,n,o),e.borders)for(let a of e.borders)i.append(tr(t,e,a,o));else e.bottomBorder&&i.append(tr(t,e,{side:"bottom",edge:e.bottomBorder.edge,box:e.bottomBorder.box},o));return i}function ya(t,e,n){let o=e.marker,i=n.scale,r=Sn(t,e,rr(n));if(r)return r;let a=e.lines[0]?.leading??0,s=G(t,"span",o.box,i);s.className="docx-list-marker",s.dataset.docxMarker="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.left=`${(o.box.x-e.box.x)*i}px`,s.style.top=`${(o.box.y-e.box.y)*i}px`,s.style.display="block",s.style.overflow="visible",s.style.whiteSpace="pre";let l=e.lines[0],d=l?Math.max(a,...l.spans.map(y=>y.box.height+a),l.spans.length===0?l.box.height-(l.trailingSpacing??0):0):o.box.height,c=Math.min(d,o.box.height),u=Math.max(0,o.box.height-c);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${u*i}px`,s.style.lineHeight=`${c*i}px`;let p=t.createElement("span");return p.style.display="inline-block",p.style.verticalAlign="baseline",p.style.boxSizing="border-box",p.style.height=`${c*i}px`,p.style.paddingTop=`${a*i}px`,p.style.lineHeight=`${(c-a)*i}px`,ie(p,o.style,n),o.pieces&&(p.dir="rtl"),dr(t,p,o.text,o.style,i),s.append(p),s}function fa(t,e,n,o,i){let r=o.tabLeader?chunkTXIO5WYQ_cjs.Kb.get(o.tabLeader):void 0;if(!r||o.box.width<=0)return null;let a=i.scale,s=t.createElement("div");s.className="docx-tab-leader",s.dataset.docxTabLeader="",s.setAttribute("contenteditable","false"),s.setAttribute("aria-hidden","true"),s.style.position="absolute",o.tabLeader==="underscore"&&(s.style.zIndex="1"),s.style.left=`${(o.box.x-e.box.x)*a}px`,s.style.top=`${(n.box.y-e.box.y)*a}px`,s.style.width=`${o.box.width*a}px`,s.style.height=`${n.box.height*a}px`,s.style.overflow="hidden",s.style.whiteSpace="pre",s.style.pointerEvents="none",s.style.userSelect="none";let l=n.leading??0,d=Math.min(o.box.height+l,n.box.height),c=Math.max(0,n.box.height-d);s.style.fontSize="0",s.style.boxSizing="border-box",s.style.paddingBottom=`${c*a}px`,s.style.lineHeight=`${(n.box.height-c)*a}px`;let u=t.createElement("span");u.style.display="inline-block",u.style.verticalAlign="baseline",ie(u,o.style,i),u.style.boxSizing="border-box",u.style.height=`${d*a}px`,u.style.paddingTop=`${l*a}px`,u.style.lineHeight=`${(d-l)*a}px`,o.tabLeader==="heavy"&&(u.style.fontWeight="bold");let p=o.tabLeaderAdvancePt&&o.tabLeaderAdvancePt>0?o.tabLeaderAdvancePt:Math.max(.5,o.style.fontSizePt*.2),y=chunkV7CO55DO_cjs.va((i.tabLeaderOriginXPt??0)+o.box.x,o.box.width,p);return u.style.marginLeft=`${y.offsetPt*a}px`,u.textContent=r.repeat(y.count),u.style.letterSpacing="0",s.append(u),s}function ha(t,e,n){let o=e.shadingBox,i=G(t,"div",o,n);return i.className="docx-paragraph-shading",i.setAttribute("aria-hidden","true"),i.style.left=`${(o.x-e.box.x)*n}px`,i.style.top=`${(o.y-e.box.y)*n}px`,i.style.backgroundColor=`#${e.shading}`,i}function tr(t,e,n,o){let i=G(t,"div",n.box,o);i.className=`docx-paragraph-border docx-paragraph-border-${n.side}`,i.setAttribute("aria-hidden","true");let r=(n.box.x-e.box.x)*o,a=(n.box.y-e.box.y)*o,s=n.side==="left"||n.side==="right"||n.side==="bar",l=(s?n.box.width:n.box.height)*o,c=De(n.edge.val)?l:Math.max(1,l);i.style.left=`${n.side==="right"?r-(c-l):r}px`,i.style.top=`${n.side==="bottom"?a-(c-l):a}px`,s?i.style.width=`${c}px`:i.style.height=`${c}px`;let u=n.edge.color&&ae.test(n.edge.color)?n.edge.color:"000000";return i.style.backgroundColor=`#${u}`,ee(i,n.edge.val,u,s,c,o),i}function ur(t,e,n,o){let i=o.scale,r=G(t,"div",e.box,i);if(r.className="docx-table-cell",r.style.left=`${(e.box.x-n.x)*i}px`,r.style.top=`${(e.box.y-n.y)*i}px`,r.style.boxSizing="border-box",r.style.overflow="visible",r.dataset.cellId=e.id,r.dataset.gridColumn=String(e.gridColumn),r.dataset.gridSpan=String(e.gridSpan),e.rowSpan&&e.rowSpan>1&&(r.dataset.rowSpan=String(e.rowSpan)),e.paintInert||e.vMergeContinue)return r.dataset.vMergeContinue="true",r.style.border="none",r.style.backgroundColor="transparent",rt(r,e,r,void 0,[]),r;r.style.border="none";let a=Go(t,r,e.borders,i);if(e.shading&&ae.test(e.shading)&&(r.style.backgroundColor=`#${e.shading}`),e.revisionShading&&o.revisionMarkup){let d=o.revisionMarkup.cells[e.revisionShading];if(r.dataset.revisionCell=e.revisionShading,d!=="none"){let c=e.revisionShadingAuthor??"";r.style.backgroundColor=d==="byAuthor"?o.revisionStyles?.styles.get(c)?.color??B(o.revisionCellStyles?.authorSlots.get(c)??0):`var(--doc-revision-color-${d})`;}}let s=jo(t,e,i,r),l=[];for(let d of e.blocks){let c=d.kind==="table"?V(t,d,o):W(t,d,o);c.style.left=`${(d.box.x-e.box.x)*i}px`,c.style.top=`${(d.box.y-e.box.y)*i}px`,s.append(c),l.push(c);}return rt(r,e,s,a,l),r}function nr(t,e,n,o){let i=o.scale,r=G(t,"div",e.box,i);r.className="docx-table-row",_o(r,e,!!o.revisionMarkup),r.dataset.rowId=e.id,e.isHeaderRepeat&&(r.dataset.headerRepeat="true"),r.style.left=`${(e.box.x-n.box.x)*i}px`,r.style.top=`${(e.box.y-n.box.y)*i}px`,r.style.overflow="visible";for(let a of e.cells)r.append(ur(t,a,e.box,o));return r}function V(t,e,n,o){let i=o&&xn(o,e,{scale:n.scale,showParagraphMarks:n.showParagraphMarks===true,row:l=>nr(t,l,e,n),cell:(l,d)=>ur(t,l,d,n),block:(l,d)=>l.kind==="table"?V(t,l,n,d):W(t,l,n),gapOf:(l,d)=>cr(l,d,()=>0)});if(i)return i;let r=n.scale,a=G(t,"div",e.box,r);a.className="docx-table-fragment layout-table",a.dataset.tableId=e.tableId,a.dataset.fragmentIndex=String(e.fragmentIndex),a.style.overflow="visible";let s=new Map;for(let l of e.rows){let d=nr(t,l,e,n);s.set(l,d),a.append(d);}return gn(a,e,s),a}function pr(t,e){let n=new Map;return {chrome:e,paintFragment:(o,i)=>{let r=n.get(i);return r||(r={...e,inertLinks:true,tabLeaderOriginXPt:i},n.set(i,r)),o.kind==="table"?V(t,o,r):W(t,o,r)},appendDrawings:(o,i,r,a,s,l)=>ar(t,o,i,e,r,a,s,l)}}function ma(t,e,n,o,i){let r={...n,paintInstance:`p${e.index}`,tabLeaderOriginXPt:e.contentBox.x-e.box.x},a=G(t,"div",e.box,r.scale);if(a.className="docx-page",$n(a),a.dataset.pageIndex=String(e.index),r.ariaHidden&&(a.setAttribute("aria-hidden","true"),a.setAttribute("role","presentation")),a.dataset.materialized=String(o),!o)return a;let s=Object.freeze({x:-(e.contentBox.x-e.box.x),y:-(e.contentBox.y-e.box.y),width:e.box.width,height:e.box.height}),l=e.pageBorders?No(t,e.pageBorders,r.scale):null;l&&e.pageBorders&&(l.dataset.docxZOrder=e.pageBorders.zOrder),l&&e.pageBorders?.zOrder==="back"&&a.append(l);let d=Oe(t,a,e,pr(t,r));Yo(t,a,e,r,s,"behind");let c=t.createElement("div");c.className="docx-page-content",c.style.position="absolute",c.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,c.style.top=`${(e.contentBox.y-e.box.y)*r.scale}px`,c.style.width=`${e.contentBox.width*r.scale}px`,c.style.height=`${e.contentBox.height*r.scale}px`,r.activeHeaderFooterRId&&c.setAttribute("contenteditable","false");for(let y of e.columnSeparators??[]){let f=t.createElement("div");f.className="docx-column-separator",f.setAttribute("contenteditable","false"),f.style.position="absolute",f.style.left=`${y.x*r.scale}px`,f.style.top=`${y.y*r.scale}px`,f.style.width=`${y.width*r.scale}px`,f.style.height=`${y.height*r.scale}px`,f.style.backgroundColor="currentColor",f.style.pointerEvents="none",c.append(f);}let u=i?new Map:null;for(let y of e.fragments){let f=y.kind==="table"?V(t,y,r):W(t,y,r);u?.set(y,f),c.append(f);}i&&u&&(i.content=c,i.blocks=u),a.append(c),Yo(t,a,e,r,s,"inFront"),l&&e.pageBorders?.zOrder==="front"&&a.append(l),Hn(t,a,e,r,W,V);for(let y of ["header","footer"]){if(e[y]||e.parityBlank)continue;let f=t.createElement("div");f.className="docx-hf docx-hf--placeholder",f.dataset.docxHf=y,f.setAttribute("contenteditable","false");let h=y==="header"?e.contentBox.y-e.box.y:e.box.y+e.box.height-(e.contentBox.y+e.contentBox.height),g=Math.min(h,ga);if(g<=0)continue;let m=Math.max(0,Math.min(ba,h-g)),k=y==="header"?m:e.box.height-m-g;f.style.position="absolute",f.style.left=`${(e.contentBox.x-e.box.x)*r.scale}px`,f.style.top=`${k*r.scale}px`,f.style.width=`${e.contentBox.width*r.scale}px`,f.style.height=`${g*r.scale}px`,a.append(f);}for(let y of d)a.append(y);Cn(t,a,e,r);let p=On(t,e,r.scale,r.changeBars,r.changeBarsToggle,r.revisionMarkup,r.facingPages,r.revisionStyles);return p&&a.append(p),a}var ga=30,ba=36,wt=new WeakMap;function Id(t){wt.delete(t);}function xa(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}var or="docx-column-separator";function va(t,e,n,o){let i=e.content,r=e.blocks;if(!i||!r||i.parentElement!==e.element)return null;let a={...o,paintInstance:`p${n.index}`,tabLeaderOriginXPt:n.contentBox.x-n.box.x},s=new Map,l=[];for(let p of n.fragments){let y=r.get(p)??Vo(r,p,l)??(p.kind==="table"?V(t,p,a,bn(r,p)):W(t,p,a));s.set(p,y),l.push(y);}let d=new Set(l),c=i.firstChild;for(;c;){let p=c.nextSibling,y=c;!d.has(y)&&y.classList?.contains(or)!==true&&c.remove(),c=p;}let u=i.firstChild;for(;u&&u.classList?.contains(or);)u=u.nextSibling;for(let p of l){if(p===u){u=u.nextSibling;continue}i.insertBefore(p,u);}return Un(t,e.element,n,o.scale,o.changeBars,o.changeBarsToggle,o.revisionMarkup,o.facingPages,o.revisionStyles),{record:n,materialized:true,element:e.element,content:i,blocks:s}}function Sa(t,e,n,o){let i=t.element;return !t.materialized&&xa(t.record.box,e.box)&&i.style.left===`${e.box.x*n}px`&&i.style.top===`${e.box.y*n}px`&&i.style.width===`${e.box.width*n}px`&&i.style.height===`${e.box.height*n}px`&&i.getAttribute("aria-hidden")===(o?"true":null)}function ka(t,e,n={}){wa(t,e,n);}function wa(t,e,n,o){tn(t),t.classList.toggle("docx-show-paragraph-marks",n.showParagraphMarks??false);let i=n.contentControlChrome,r=i?`${i.showAll===true?"1":"0"}:${i.activeIds?[...i.activeIds].sort().join(","):""}:${i.checkedIds?[...i.checkedIds].sort().join(","):""}:${i.tocControlIds?[...i.tocControlIds].sort().join(","):""}:${i.suppressedIds?[...i.suppressedIds].sort().join(","):""}:${i.readOnly===true?"ro":""}`:"",a=n.drawingStrings??Ge,s=n.breakMarkStrings??fe,l=n.imageUrlPort!==void 0?vo(t,n.imageUrlPort):null,d=i?.additionalBoundaries?i.additionalBoundaries.flatMap(b=>b.fragments.map(x=>`${b.id}:${x.pageIndex}:${x.box.x}:${x.box.y}:${x.box.width}:${x.box.height}`)).sort().join(","):"",c=n.readOnlyParagraphIds?[...n.readOnlyParagraphIds].sort().join(","):"",u=n.emptyTocPlaceholderIds?[...n.emptyTocPlaceholderIds].sort().join(","):"",p=i?.tocControlIds?[...i.tocControlIds].sort().join(","):"",y=Qe(n.revisionStyles??(n.revisionMarkup?"author":void 0),e,o),f=n.revisionMarkup&&Object.values(n.revisionMarkup.cells).includes("byAuthor")?y??Qe("author",e,o):null,h={scale:n.scale??96/72,ariaHidden:n.ariaHidden??true,drawingStrings:a,includePartial:n.includePartial,...n.unsupportedOwnerPartName?{unsupportedOwnerPartName:n.unsupportedOwnerPartName}:{},...n.unsupportedSource?{unsupportedSource:n.unsupportedSource}:{},urlRegistry:l,...n.fontAlias?{fontAlias:n.fontAlias}:{},...n.readOnlyParagraphIds?{readOnlyParagraphIds:n.readOnlyParagraphIds}:{},...n.emptyTocPlaceholderIds?{emptyTocPlaceholderIds:n.emptyTocPlaceholderIds}:{},...n.defaultFontFamily?{defaultFontFamily:n.defaultFontFamily}:{},...n.fieldShading?{fieldShading:n.fieldShading}:{},showParagraphMarks:n.showParagraphMarks??false,...n.showParagraphMarks?{breakMarks:An(e,s)}:{},changeBars:n.changeBars??"all-markup",changeBarsToggle:n.changeBarsToggle??false,...n.shadeFormFields!==void 0?{shadeFormFields:n.shadeFormFields}:{},...y?{revisionStyles:y}:{},...f?{revisionCellStyles:f}:{},...n.revisionMarkup?{revisionMarkup:n.revisionMarkup}:{},facingPages:n.facingPages,revisionKindColors:n.revisionStyles==="kind",...n.imageUrlPort?{imageUrlPort:n.imageUrlPort}:{},...n.activeHeaderFooterRId?{activeHeaderFooterRId:n.activeHeaderFooterRId}:{},...n.activeHeaderFooterPageIndex!==void 0?{activeHeaderFooterPageIndex:n.activeHeaderFooterPageIndex}:{},...i?{contentControlChrome:i}:{}},g=t.ownerDocument,m=`${h.scale}|${h.ariaHidden}|${n.includePartial??false}|${h.fontAlias?oa(h.fontAlias):""}|${h.defaultFontFamily??""}|cc:${r}:${d}|toc:${p}|ro:${c}|tocEmpty:${u}|${n.imageUrlPort?"url":""}|${mt(a)}|markup:${JSON.stringify(n.revisionMarkup)}|facing:${n.facingPages}|rev:${Je(y)}|cells:${Je(f)}|marks:${n.showParagraphMarks??false}|${h.breakMarks?`breaks:${Ln(s)}:${h.breakMarks.token}|`:""}bars:${h.changeBars}:${h.changeBarsToggle}`,k=wt.get(t),S=k?.parameters===m,R=S?new Map(k.pages.map(b=>[b.record,b])):null,X=k?new Map(k.pages.map(b=>[b.record.index,b])):null,N=e.pages.map(b=>{let x=n.materialize?.has(b.index)??true,w=R?.get(b);if(w&&w.materialized===x)return w;let A=X?.get(b.index);if(!x&&A&&Sa(A,b,h.scale,h.ariaHidden))return {record:b,materialized:false,element:A.element};let P=S&&x&&A?.materialized?zo(A.record,b):null;if(P&&A){let xe={...h,paintInstance:`p${b.index}`,tabLeaderOriginXPt:b.contentBox.x-b.box.x},q=!P.furniture||Ko(g,A.element,b,pr(g,xe))?va(g,A,b,h):null;if(q)return q}let E={},be=ma(g,b,h,x,E);return {record:b,materialized:x,element:be,...E.content?{content:E.content}:{},...E.blocks?{blocks:E.blocks}:{}}});if(wt.set(t,{parameters:m,pages:N}),t.dataset.revision=String(e.revision),l){let b={...e,pages:N.filter(x=>x.materialized).map(x=>x.record)};l.reconcile($o(b),Ho(b));}let ge=new Set(N.map(b=>b.element)),_=t.firstChild;for(;_;){let b=_.nextSibling;ge.has(_)||_.remove(),_=b;}let z=t.firstChild;for(let b of N){if(b.element===z){z=z.nextSibling;continue}t.insertBefore(b.element,z);}_n(N,h),en(t);}var yr=new WeakMap;function Ra(t,e,n,o){let i=t.ownerDocument,r=o.scale,a=new Map;for(let d of t.children){let c=yr.get(d);if(c===void 0)continue;let u=a.get(c);u?u.push(d):a.set(c,[d]);}let s=[];for(let d of n){let c=e.pages[d.pageIndex];if(!c)continue;let u=d.className??o.className??"docx-cell-selection-rect",p=o.pageOffsetX?.get(d.pageIndex)??0,y=`${(c.contentBox.x+d.x+p)*r}px`,f=`${(c.contentBox.y+d.y)*r}px`,h=`${d.width*r}px`,g=`${d.height*r}px`,m=d.reviewAuthor,k=[u,y,f,h,g,m?`${m.author}\0${m.slot}\0${m.color}`:"",d.activeBackground??""].join(""),S=a.get(k)?.pop();if(S){s.push(S);continue}let R=i.createElement("div");R.className=u,R.style.position="absolute",R.style.left=y,R.style.top=f,R.style.width=h,R.style.height=g,m&&(R.dataset.reviewAuthor=m.author,R.dataset.reviewAuthorSlot=String(m.slot%C),R.style.setProperty("--doc-review-author-current",m.color)),d.activeBackground!==void 0&&(R.style.backgroundColor=d.activeBackground,R.style.boxShadow="none"),yr.set(R,k),s.push(R);}let l=t.children;l.length===s.length&&s.every((d,c)=>l[c]===d)||t.replaceChildren(...s);}
|
|
4
|
+
exports.a=Ve;exports.b=Xe;exports.c=Sr;exports.d=Aa;exports.e=B;exports.f=ln;exports.g=Fa;exports.h=$r;exports.i=Ia;exports.j=vs;exports.k=Ln;exports.l=lt;exports.m=Yn;exports.n=mt;exports.o=Ge;exports.p=Li;exports.q=Rl;exports.r=kt;exports.s=aa;exports.t=Id;exports.u=ka;exports.v=wa;exports.w=Ra;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {fl}from'./chunk-6MF5PN2E.js';function I(o){let n=[],t=[],a=new Map;for(let r of o){if(r.kind!=="revision")continue;let s=fl(r);for(let e of s)n.push(e);let p=new Set(r.ranges.map(e=>e.start.paragraphId)),u=r.revisionKind==="format"&&r.formattingKind==="pPrChange";if(p.size>1&&!u)for(let e of p)t.push(e);for(let e of r.ranges){let g=a.get(e.start.paragraphId)??[];for(let l of s)g.push(l);a.set(e.start.paragraphId,g);}}let i=new Map;for(let[r,s]of a)i.set(r,[...new Set(s)].sort().join("\0"));return {sites:n,paragraphs:i,spanning:t}}function w(o){return o.flatMap(n=>n.kind==="revision"?n.ranges.map(t=>t.start.paragraphId):[])}var c=new WeakMap,h=1,m={};function f(o){let n=o??m,t=c.get(n);return t===void 0&&(t=h++,c.set(n,t)),t}function b(o,n){return `${f(o)}:${f(n)}`}export{I as a,w as b,b as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {M as M$1,Xf,Of as Of$1,Eg,hb,lb,ta,hf,Bf,Qf,zf,jd,Yf,kf,Ld,nd,mb,ne,Rf,Cg,Nf,kb,wd,Wf,Qa,Jf as Jf$1,yb,vd,mf,Oa,Ra,Na,Ia,Ya,Fe,tf,if as _if,Jd,od,Zc,of as of$1,Qe as Qe$1,$e,bf,rf,af}from'./chunk-YWJSQA2O.js';import {a,c}from'./chunk-KCUXXO3Q.js';import {Ba,$,aa}from'./chunk-DB7X4Y6O.js';import {Of,md,ld,am,q,Jf,fl,cb,db,Il,Ng,ll,gj,of,ef,pa,tb,Tl,Vl,zi,Nd,Me as Me$1,da as da$1,Md,Ld as Ld$1,Qe,Se,Ke,Le as Le$1,Pe,Zd,$d,Ja,Hl,ui,$l,Lj,Xl,Jl,Ea}from'./chunk-6MF5PN2E.js';import {zlibSync}from'fflate';var Hr=Object.freeze({}),$r=Object.freeze([]);function Gr(e){let t=Object.keys(e);if(t.length===0)return Hr;let n={};for(let r of t){let o=e[r];o!==void 0&&(n[r]=o);}return Object.freeze(n)}function Yr(e){let t=new Map(zi(e.part())),n=new Set([e.part()]);for(let o of e.headerFooterPartsBySection())for(let a of [o.headers,o.footers])for(let i of a.values())if(!n.has(i)){n.add(i);for(let[s,c]of zi(i))t.has(s)||t.set(s,c);}let r=e.currentPackage();for(let o of ["footnote","endnote"]){let a=gj(r,o);if(!(!a||n.has(a))){n.add(a);for(let[i,s]of zi(a))t.has(i)||t.set(i,s);}}return t}function Xr(e,t){let n=Qe$1(e,t);if(!n)return null;let r=e.pages[n.pageIndex];if(!r)return null;let o=$e(r),a=bf(e,t.paragraphId,n.pageIndex),i=Object.freeze({x:n.x+a.x,y:n.y+a.y,height:n.height});return Object.freeze({anchor:Object.freeze({...t}),pageIndex:n.pageIndex,pageContent:i,pageStack:Object.freeze({x:o.x+i.x,y:o.y+i.y})})}function qr(e,t){let n=[];for(let r of t.values()){let o=Xr(e,r);o&&n.push(o);}return n.length===0?$r:Object.freeze(n)}function Zt(e,t){return {documentMetadata:Gr(e.documentProperties()),destinations:qr(t,Yr(e))}}function ro(e,t){let n=e.destinations;if(n){for(let r of n)if(r.anchor.name===t)return r}}function er(e,t){let n=e[t];if(!Array.isArray(n)||n.length===0)return null;let r=Number(n[0]);return Number.isSafeInteger(r)&&r>0?r:null}var Qr={1:1,2:1,3:2,4:4,5:8,6:1,7:1,8:2,9:4,10:8,11:4,12:8,13:4},Jr=new Set([330,34665,34853,37500,50740,61440]);function Zr(e){if(e.length<8)return false;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=String.fromCharCode(e[0],e[1]);if(n!=="II"&&n!=="MM")return false;let r=n==="II";if(t.getUint16(2,r)!==42)return false;let o=t.getUint32(4,r);if(o<8||o+2>e.length)return false;let a=t.getUint16(o,r),i=o+2+a*12;if(i+4>e.length)return false;t.setUint32(i,0,r);for(let s=0;s<a;s+=1){let c=o+2+s*12;Jr.has(t.getUint16(c,r))&&t.setUint16(c,0,r);let d=Qr[t.getUint16(c+2,r)];if(d===void 0)continue;let u=t.getUint32(c+4,r)*d;u>4&&t.getUint32(c+8,r)+u>e.length&&t.setUint32(c+4,0,r);}return true}async function tr(e,t){let n=e.slice();if(!Zr(n))return null;let r=n.buffer,o=await import('utif2'),a=o.default??o,i=a.decode(r)[0];if(!i)return null;let s=er(i,"t256"),c=er(i,"t257");if(s===null||c===null||s>t.maxDimension||c>t.maxDimension||s>t.maxPixels/c)return null;let d=s*c;if(d*4>t.maxDecodedBytes||(a.decodeImage(r,i),i.width!==s||i.height!==c))return null;let u=a.toRGBA8(i);return u.length!==d*4?null:Object.freeze({rgba:u,pixelWidth:s,pixelHeight:c})}var me=null;function tn(e){if(!me){me=new Uint32Array(256);for(let n=0;n<256;n+=1){let r=n;for(let o=0;o<8;o+=1)r=r&1?3988292384^r>>>1:r>>>1;me[n]=r>>>0;}}let t=4294967295;for(let n of e)t=me[(t^n)&255]^t>>>8;return (t^4294967295)>>>0}function Oe(e,t){let n=new Uint8Array(12+t.length),r=new DataView(n.buffer);r.setUint32(0,t.length);for(let o=0;o<4;o+=1)n[4+o]=e.charCodeAt(o);return n.set(t,8),r.setUint32(8+t.length,tn(n.subarray(4,8+t.length))),n}function rn(e){let t=true;for(let n=0;n<e.length;n+=4){let r=e[n];if(e[n+3]!==255||e[n+1]!==r||e[n+2]!==r)return "rgba";r!==0&&r!==255&&(t=false);}return t?"bilevel":"grey"}function nn(e,t,n,r){let o=r==="bilevel"?Math.ceil(t/8):r==="grey"?t:t*4,a=new Uint8Array((o+1)*n);for(let i=0;i<n;i+=1){let s=i*(o+1)+1,c=i*t*4;if(r==="rgba")a.set(e.subarray(c,c+t*4),s);else if(r==="grey")for(let d=0;d<t;d+=1)a[s+d]=e[c+d*4];else for(let d=0;d<t;d+=1)e[c+d*4]===255&&(a[s+(d>>3)]|=128>>(d&7));}return r==="rgba"?{raw:a,depth:8,colour:6}:{raw:a,depth:r==="bilevel"?1:8,colour:0}}function rr(e,t,n){let{raw:r,depth:o,colour:a}=nn(e,t,n,rn(e)),i=new Uint8Array(13),s=new DataView(i.buffer);s.setUint32(0,t),s.setUint32(4,n),i[8]=o,i[9]=a;let c=[new Uint8Array([137,80,78,71,13,10,26,10]),Oe("IHDR",i),Oe("IDAT",zlibSync(r,{level:6})),Oe("IEND",new Uint8Array(0))],d=new Uint8Array(c.reduce((l,g)=>l+g.length,0)),u=0;for(let l of c)d.set(l,u),u+=l.length;return d}async function on(e,t,n){if(t!=="image/tiff")return null;let r=await tr(e,n);if(!r)return null;let o=rr(r.rgba,r.pixelWidth,r.pixelHeight);return Object.freeze({bytes:o,mime:"image/png"})}function nr(e={}){return Object.freeze({async decode(t,n,r){let o=Of(t,n);if(!o)throw new Error(`Unsupported or malformed ${n} image`);if(o.pixelWidth>r.maxDimension||o.pixelHeight>r.maxDimension||o.pixelWidth>r.maxPixels/o.pixelHeight)throw new Error("Image dimensions exceed resource limits");return Object.freeze({pixelWidth:o.pixelWidth,pixelHeight:o.pixelHeight,dpiX:o.dpiX??96,dpiY:o.dpiY??96})},convertPreserved:e.convertPreserved??on})}var or=new WeakMap;function ar(e,t){let n=or.get(e);n||(n=zf(e),or.set(e,n));let r=n.styleCascade(),o=new Set;if(t===e.part())for(let c of tf(t,void 0,void 0,r,n.numberingIndex()))for(let d of _if(c)?.slice(0,-1)??[])o.add(d.paragraph.id);let a=c=>{if(c.kind==="textValue")return false;let d=c.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===pa&&l.localName==="pPr"),u=d?.kind!=="textValue"?d?.children.find(l=>l.kind!=="textValue"&&l.namespaceUri===pa&&l.localName==="rPr"):void 0;return u!==void 0&&Ea(u,"vanish")},i=0,s=(c,d)=>{if(++i>Me$1||d>da$1||c.kind==="textValue")return false;if(c.kind==="paragraph"&&!o.has(c.id)&&(rf(c,r,false)||a(c))&&ui(c).length>0)return true;for(let u of c.children){if(i>=Me$1)break;if(s(u,d+1))return true}return false};return s(t.root,0)}var ir=new WeakMap,an=new Set(["shape","rect","roundrect","oval","line","group","arc","curve","polyline","image"]);function sn(e,t){let n=ir.get(e.root);if(n&&n.stylesPart===t)return n.codes;let r=new Set,o=[{node:e.root,scope:Nd(),depth:0,mcSelected:false}],a=0;for(;o.length;){let{node:s,scope:c,depth:d,mcSelected:u}=o.pop();if(++a>Me$1||d>da$1){r.add("scan-limit");break}if(s.kind==="textValue")continue;if(a+o.length+s.children.length>Me$1){r.add("scan-limit");break}let l=Md(c,s),g=Ld$1(s)?s:void 0;if(g){if(Qe(g,l).drawing)continue;let f=Se(g,{ownerPartName:e.name,namespaceScope:l,supportedMcRequires:Le$1,limits:Ke});if(f){let y=f.textboxStory?.content;y&&o.push({node:y,scope:l,depth:d+1,mcSelected:false});continue}let h=Pe(g,l);h.refused&&r.add("scan-limit"),h.branch&&o.push({node:h.branch,scope:l,depth:d+1,mcSelected:true});continue}if(!u&&Zd(s)){let f=$d(s,e.name)?.textboxStory?.content;f&&o.push({node:f,scope:l,depth:d+1,mcSelected:u});continue}if(s.namespaceUri==="urn:schemas-microsoft-com:vml"&&s.localName==="textbox"){r.add("legacy-textbox");continue}s.namespaceUri==="urn:schemas-microsoft-com:vml"&&an.has(s.localName)&&!s.children.some(f=>f.kind!=="textValue"&&f.namespaceUri==="urn:schemas-microsoft-com:vml"&&f.localName==="textbox")&&r.add("legacy-drawing");for(let f of s.children)o.push({node:f,scope:l,depth:d+1,mcSelected:u});}let i=Object.freeze([...r]);return ir.set(e.root,{stylesPart:t,codes:i}),i}function sr(e){let t=new Set([e.part()]);for(let n of e.headerFooterPartsBySection())for(let r of [n.headers,n.footers])for(let o of r.values())t.add(o);for(let n of ["footnote","endnote"]){let r=gj(e.currentPackage(),n);r&&t.add(r);}return Object.freeze([...t].flatMap(n=>[...sn(n,ld(e.currentPackage())),...ar(e,n)?["unsupported-style-separator"]:[]].map(r=>Object.freeze({code:r,partName:n.name}))))}function cr(e){return Ng(e.fieldResults,()=>Wf(cn(e)))}function cn(e){return Xf(e.fieldResults,dn(e))}function*dn(e){let t=e.defaultTabStopPt?.(),n=e.view.part().name,r={view:e.view,measurer:e.measurer,producer:e.producer,cache:e.cache,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,compatibilityMode:e.compatibilityMode?.(),inlineDrawingLayoutForPart:e.inlineDrawingLayoutForPart,drawingTokenForParagraphForPart:e.drawingTokenForParagraphForPart,drawingLayoutEpochForPart:e.drawingLayoutEpochForPart,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter},o=Of$1(r),a={view:e.view,revision:e.revision,measurer:e.measurer,cache:e.cache,session:e.session,producer:e.producer,styleCascade:e.styleCascade,numberingIndex:e.numberingIndex,defaultTabStopPt:t,furniture:e.furniture,compatibilityMode:e.compatibilityMode,linkProjectors:e.linkProjectors,projectFieldLink:e.projectFieldLink,showFieldCodes:e.showFieldCodes,fieldResults:e.fieldResults,inlineDrawingLayout:e.inlineDrawingLayout,drawingTokenForParagraph:e.drawingTokenForParagraph,drawingLayoutEpoch:e.drawingLayoutEpoch,displayMode:e.displayMode,revisionAuthorFilter:e.revisionAuthorFilter,bodyBlockLimit:e.bodyBlockLimit},i={measurer:a.measurer,cache:a.cache,session:a.session,producer:a.producer,styleCascade:a.styleCascade?.(),defaultTabStopPt:a.defaultTabStopPt,compatibilityMode:a.compatibilityMode?.(),numberingIndex:a.numberingIndex?.(),sectionFurniture:a.furniture.sectionFurniture(),furniture:a.furniture.furniture(),evenAndOddHeaders:a.view.headerFooterPartsBySection()[0]?.evenAndOddHeaders===true,projectLink:a.linkProjectors.projectLink,projectFieldLink:a.projectFieldLink,showFieldCodes:a.showFieldCodes,fieldResults:a.fieldResults,documentProperties:a.view.documentProperties(),inlineDrawingLayout:a.inlineDrawingLayout,drawingTokenForParagraph:a.drawingTokenForParagraph,drawingLayoutEpoch:a.drawingLayoutEpoch,projectionTokenForParagraph:s=>a.linkProjectors.tokenForParagraphForPart(n,s),projectionTokenForTable:s=>a.linkProjectors.tokenForTableForPart(n,s),projectionEpoch:a.linkProjectors.epochForPart(n),notes:o,displayMode:a.displayMode,revisionAuthorFilter:a.revisionAuthorFilter,bodyBlockLimit:a.bodyBlockLimit};return yield*Eg(a.view.part(),a.revision,i)}var ln=65536;function ur(e,t){return {x:t.x-e.contentBox.x,y:t.y-e.contentBox.y}}function un(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}function pn(e,t,n){return e.rootStory!==t?false:t==="footnote"||t==="endnote"?e.noteScopeId===n:true}function mn(e,t){if(t.story!=="textbox"||t.textboxPath.length===0)return null;let n=null;return Na(e,r=>{if(n||!pn(t,r.story,r.noteScopeId))return;let o=r.story==="header"||r.story==="footer"?a=>Ia(a,r.origin,{x:e.box.x,y:e.box.y}):void 0;Ra(r.host,(a,i)=>{if(n||i.textboxDepth===0)return;let s=i.textboxPath.map(c=>c.drawingNodeId);un(s,t.textboxPath)&&(n=ur(e,i.storyOrigin));},r.origin,o);}),n}function fn(e,t){if(t.story==="textbox")return mn(e,t)??{x:0,y:0};switch(t.rootStory){case "body":return {x:0,y:0};case "header":return e.header?af(e,e.header.box):{x:0,y:0};case "footer":return e.footer?af(e,e.footer.box):{x:0,y:0};case "footnote":case "endnote":{let r=(t.rootStory==="footnote"?e.footnotes:e.endnotes)?.notes.find(o=>o.scopeId===t.noteScopeId);return r?af(e,r.box):{x:0,y:0}}case "note-separator":{let n=t.noteAreaKind==="endnotes"?e.endnotes:e.footnotes,r=n?.separator?.box;return n?.continuationNotice&&Ra(n.continuationNotice,o=>{o.paragraphId===t.source.start.paragraphId&&(r=n.continuationNotice.box);}),r?af(e,r):{x:0,y:0}}default:return {x:0,y:0}}}function pr(e){return Object.freeze({x:e.x,y:e.y,width:e.width,height:e.height})}function mr(e,t){let n=$e(e);return Object.freeze({x:n.x+t.x,y:n.y+t.y,width:t.width,height:t.height})}function yn(e,t){let n=Qe$1(e,{paragraphId:t.source.start.paragraphId,offset:t.source.start.offset},{preferredPageIndex:t.pageIndex});if(!n||n.pageIndex!==t.pageIndex)return;let r=e.pages[n.pageIndex];if(!r)return;let o=fn(r,t),a=Object.freeze([pr({x:n.x+o.x,y:n.y+o.y,width:0,height:n.height})]);return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(r,i)))})}function gn(e,t,n){let r=n.filter(i=>i.pageIndex===t.pageIndex);if(r.length===0)return fr(t)?yn(e,t):void 0;let o=e.pages[t.pageIndex];if(!o)return;let a=Object.freeze(r.map(i=>pr(i)));return Object.freeze({pageContent:a,pageStack:Object.freeze(a.map(i=>mr(o,i)))})}function fr(e){return e.source.start.paragraphId===e.source.end.paragraphId&&e.source.start.offset===e.source.end.offset}function lr(e,t){return `${e}\0${t}`}function hn(e,t,n){let r=Math.max(e.start,t.offset),o=Math.min(e.end,n.offset);return o>r?{start:r,end:o}:null}function xn(e,t){let n=new Map,r=new Map,o=new Set,a=0;let i=(s,c)=>{if(a>=ln)return false;a+=1;let d=lr(s.pageIndex,c),u=r.get(d);return u?u.push(s):r.set(d,[s]),true};for(let[s,c]of t.entries())for(let[d,u]of c.occurrences.entries()){if(fr(u)||u.source.start.paragraphId!==u.source.end.paragraphId)continue;o.add(u.pageIndex);let l=`${s}\0${d}`,g={paragraphId:u.source.start.paragraphId,offset:u.source.start.offset},f={paragraphId:u.source.end.paragraphId,offset:u.source.end.offset},h=g.offset<=f.offset?{from:g,to:f}:{from:f,to:g};i({key:l,from:h.from,to:h.to,pageIndex:u.pageIndex},h.from.paragraphId);}if(r.size===0)return n;for(let s of e.pages)o.has(s.index)&&Na(s,c=>{let d=c.story==="header"||c.story==="footer"?u=>Ia(u,c.origin,{x:s.box.x,y:s.box.y}):void 0;Ra(c.host,(u,l)=>{let g=ur(s,l.storyOrigin);for(let f of u.lines)for(let h of Ya(f)){let y=r.get(lr(s.index,h.paragraphId));if(y)for(let b of y){let P=hn(h,b.from,b.to);if(!P)continue;let x=Fe(f,P.start,void 0,h),R=Fe(f,P.end,void 0,h,P.end>P.start),O=n.get(b.key)??[];O.push({pageIndex:s.index,x:Math.min(x,R)+g.x,y:f.box.y+g.y,width:Math.abs(R-x),height:f.box.height}),n.set(b.key,O);}}},c.origin,d);});return n}function yr(e,t){let n=false;for(let o of t)if(o.occurrences.length!==0){n=true;break}if(!n)return t;let r=xn(e,t);return t.map((o,a)=>{if(o.occurrences.length===0)return o;let i=o.occurrences.map((s,c)=>{let d=`${a}\0${c}`,u=gn(e,s,r.get(d)??[]);return u?{...s,geometry:u}:s});return {...o,occurrences:Object.freeze(i)}})}function wn(e){let t=new Map,n=[{node:e.root,depth:0}];for(;n.length>0;){let{node:r,depth:o}=n.pop();if(!(r.kind==="textValue"||o>64)){r.kind==="paragraph"&&!t.has(r.id)&&t.set(r.id,t.size);for(let a=r.children.length-1;a>=0;a-=1)n.push({node:r.children[a],depth:o+1});}}return t}function gr(){let e=new Map,t=r=>{let o=e.get(r.root);if(o)return o;let a=wn(r);return e.set(r.root,a),a},n={retainRevisionItems:false,revisionSites:Jl,locations:Xl,commentAnchors:Lj,deepOrder:t};return Object.freeze({collectReviewItems:r=>$l(r,n),deepParagraphOrderOfPart:t})}var hr=new WeakMap,fe={};function De(e,t){let n=hr.get(e??fe)??new WeakMap;hr.set(e??fe,n);let r=n.get(t??fe);if(!r){let o=kf(e);r={table:o,numbering:Ld(nd(t),o)},n.set(t??fe,r);}return r}var Ee=new Set(["pPrChange","rPr","sectPr"]),ke=new Set(["rPrChange","ins","del","moveFrom","moveTo"]),bn=new Set(["ind","spacing","rFonts","lang"]),Pn={ind:[["firstLine","hanging"]],rFonts:[["ascii","asciiTheme"],["hAnsi","hAnsiTheme"],["eastAsia","eastAsiaTheme"],["cs","cstheme"]]},vn={ind:{start:"left",end:"right"}},Rn={ind:new Set(["startChars","endChars","leftChars","rightChars","firstLineChars","hangingChars"])},Me=new Set(["dstrike","noProof","webHidden","specVanish","rtl","cs","oMath","keepNext","keepLines","pageBreakBefore","suppressLineNumbers","suppressAutoHyphens","contextualSpacing","mirrorIndents","suppressOverlap","bidi"]);for(let e of M$1)Me.add(e);var wr=new Set(["0","false","off"]);function Sn(e,t,n,r){if(Me.has(e))return t==="val"&&wr.has(n);switch(e){case "jc":return n==="start"||!r&&n==="left";case "ind":return n==="0";case "u":case "highlight":return n==="none";case "vertAlign":return n==="baseline";case "color":return n==="auto";case "position":return n==="0";case "w":return n==="100";default:return false}}function In(e){let t=vn[e.localName],n=Rn[e.localName],r={};for(let[o,a]of Object.entries(e.attributes??{})){if(n?.has(o))return null;let i=t?.[o]??o;i!==o&&e.attributes?.[i]!==void 0||(r[i]=a);}return Me.has(e.localName)&&r.val===void 0&&(r.val="true"),r}function On(e,t,n){let r={...t};for(let o of Pn[e]??[])if(o.some(a=>n[a]!==void 0))for(let a of o)delete r[a];return Object.assign(r,n)}function br(e,t){let n=new Map;for(let i of e){if(t.has(i.localName))continue;let s=In(i);if(!s)return null;let c=n.get(i.localName);n.set(i.localName,c&&bn.has(i.localName)?On(i.localName,c,s):s);}let r=n.get("bidi"),o=r!==void 0&&!wr.has(r.val??"true"),a=[];for(let[i,s]of n){let c=Object.entries(s).filter(([d,u])=>!Sn(i,d,u,o)).sort(([d],[u])=>d.localeCompare(u));c.length===0&&Object.keys(s).length>0||a.push(`${i}(${c.map(([d,u])=>`${d}=${u}`).join(",")})`);}return a.sort().join(" ")}function ye(e,t){let n=[];for(let r of e?.children??[]){if(r.kind==="textValue")continue;let o=r.namespaceUri===pa;o&&t.has(r.localName)||o&&!r.children.some(a=>a.kind!=="textValue")||n.push(Ja(r));}return n.join("\0")}function ge(e,t){let n="";for(let r of e)r.localName===t&&(n=r.attributes?.val??"");return n}function Pr(e,t){let n=mf(e.table,t).paragraphPropertyNodes,r=Jd(n);if(!r||r.numId==="0")return null;let o=od(e.numbering,r.numId,r.ilvl);return (o&&Zc(o.level))??void 0}function xr(e,t){let n=Pr(e,t);if(n===void 0)return null;let r=mf(e.table,t,void 0,n??void 0);return br(r.paragraphProperties,Ee)}function vr(e,t,n){let r=wd(t);if(ge(yb(n),"pStyle")!==ge(yb(r),"pStyle")||ye(n,Ee)!==ye(r,Ee))return false;let o=xr(e,n);return o!==null&&o===xr(e,r)}function Rr(e,t,n,r){let o=vd(t),a=yb(n),i=yb(o);if(ge(a,"rStyle")!==ge(i,"rStyle")||ye(n,ke)!==ye(o,ke))return false;let s=Pr(e,r);if(s===void 0)return false;let c=mf(e.table,r,void 0,s??void 0).runProperties,d=l=>br(of$1(c,l,e.table),ke),u=d(a);return u!==null&&u===d(i)}function Ir(e){return {pkg:e,stylesRoot:ld(e)?.root??null,numberingRoot:md(e)}}var kn=64,Sr=new WeakMap;function Ae(e){return e.kind==="revision"&&e.revisionKind==="format"&&(e.formattingKind==="pPrChange"||e.formattingKind==="rPrChange")&&!e.readOnly&&e.ranges.length>0}function En(e,t){let n=null,r=db(e,t);for(let o=0;r&&o<kn;o+=1){if(r.kind==="tableCell"||r.localName==="tc")return null;r.kind==="paragraph"&&(n??=r),r=db(e,r.id);}return r?null:n}function Dn(e,t,n,r){let o=cb(e,t);if(!o||o.kind==="textValue")return false;let a=db(e,t);if(!a)return false;let i=En(e,a.id);if(!i||!r.has(i.id))return false;let s=wd(i),c=Sr.get(o);if(c&&c.context===n&&c.current===a&&c.paragraph===s)return c.inert;let d=o.localName==="pPrChange"?a===s&&vr(n,o,a):o.localName==="rPrChange"&&Rr(n,o,a,s);return Sr.set(o,{context:n,current:a,paragraph:s,inert:d}),d}function Or(e,t,n){if(!Ae(e))return false;let r=t.pkg.parts.get(e.ranges[0].partName),o=fl(e),a=new Set(e.ranges.map(i=>i.start.paragraphId));return !!r&&o.length>0&&o.every(i=>Dn(r,i,n,a))}function kr(e,t){if(!e.some(Ae))return e;let n=De(t.stylesRoot,t.numberingRoot),r=e.filter(o=>!Or(o,t,n));return r.length===e.length?e:am(r)}function da(e,t){if(!e.some(Ae))return [];let n=De(t.stylesRoot,t.numberingRoot);return e.filter(r=>Or(r,t,n))}function Mn(e,t){if(t)return true;let n=e.map(r=>r.root);for(;n.length>0;){let r=n.pop();if(Hl(r))return true;if(r.kind!=="textValue")for(let o of r.children)n.push(o);}return false}function Cr(e,t){let n=[],r=new Set([t.name]),o=a=>{!a||r.has(a.name)||(r.add(a.name),n.push(a));};for(let a of of(e)){for(let i of a.headers.values())o(i);for(let i of a.footers.values())o(i);}return o(gj(e,"footnote")),o(gj(e,"endnote")),n}function An(e,t){switch(t.story){case "body":return e.mainDocumentPart;case "header":case "footer":return t.host.partName;case "footnote":return gj(e,"footnote")?.name??null;case "endnote":return gj(e,"endnote")?.name??null;case "note-separator":return gj(e,t.noteAreaKind==="footnotes"?"footnote":"endnote")?.name??null;default:return t}}function Ln(e,t){let n=new Map;for(let r of e){let o=t.get(r.partName),a=o?.get(r.start.paragraphId),i=o?.get(r.end.paragraphId);if(a===void 0||i===void 0)continue;let s=Math.min(a,i),c=Math.max(a,i),d=n.get(r.partName);n.set(r.partName,{lower:Math.min(d?.lower??s,s),upper:Math.max(d?.upper??c,c)});}return n}function Cn(e,t,n,r,o){let a=new Map(n.map(l=>[l.name,o(l)])),i=Ln(r,a),s=new Map,c=new Map,d=(l,g,f,h,y,b,P)=>{let x=a.get(l)?.get(y),R=i.get(l);if(x===void 0||!R||x<R.lower||x>R.upper)return;let O=s.get(l)??new Map;s.set(l,O);let V=c.get(l)??new Map;c.set(l,V);let $=JSON.stringify([g.story,g.noteScopeId,g.noteAreaKind]),K=f==="textbox"?JSON.stringify([$,"textbox",h]):$,G=O.get(y)??[],_=`${y}\0${g.page.index}\0${K}`,T=V.get(_);T||(T={pageIndex:g.page.index,story:f,rootStory:g.story,textboxPath:h,noteScopeId:g.noteScopeId,noteAreaKind:g.noteAreaKind,laneKey:K,intervals:[],intervalKeys:new Set},V.set(_,T),G.push(T),O.set(y,G));let Y=`${b}\0${P}`;T.intervalKeys?.has(Y)||(T.intervalKeys?.add(Y),T.intervals.push({start:b,end:P}));};Oa(e,l=>{let g=An(t,l);!g||!i.has(g)||Ra(l.host,(f,h)=>{let y=h.textboxDepth>0?"textbox":l.story,b=h.textboxPath.map(x=>x.drawingNodeId),P=[];for(let x of f.lines){for(let R of x.spans)P.push(R.range);for(let R of x.drawings??[])P.push({paragraphId:R.paragraphId,start:R.start,end:R.start+1});}P.length===0&&P.push({paragraphId:f.range.paragraphId,start:f.range.start,end:f.range.end});for(let{paragraphId:x,start:R,end:O}of P)d(g,l,y,b,x,R,O);});}),Qa(e,l=>{let g=l.drawing.ownerPartName;l.drawing.accessibility.hidden||!i.has(g)||d(g,l.root,l.story,l.textboxPath.map(f=>f.drawingNodeId),l.drawing.paragraphId,l.drawing.start,l.drawing.start+1);});for(let l of s.values())for(let g of l.values())for(let f of g){f.intervals.sort((y,b)=>y.start-b.start||y.end-b.end);let h=[];for(let y of f.intervals){let b=h.at(-1);b&&y.start<=b.end?b.end=Math.max(b.end,y.end):h.push({...y});}f.intervals.splice(0,f.intervals.length,...h),f.intervalKeys=void 0;}let u=new Map;for(let[l,g]of s){let f=a.get(l);if(!f)continue;let h=[];for(let[y,b]of g){let P=f.get(y);P!==void 0&&h.push({paragraphId:y,position:P,laneKeys:new Set(b.map(({laneKey:x})=>x))});}h.sort((y,b)=>y.position-b.position),u.set(l,h);}return {byPart:s,orderByPart:a,visibleByPart:u}}function Er(e,t){let n=0,r=e.length;for(;n<r;){let o=n+r>>>1;e[o].position<t?n=o+1:r=o;}return n}function Tn(e,t){if(e.start.paragraphId===e.end.paragraphId)return [e.start.paragraphId];let n=t.orderByPart.get(e.partName),r=t.visibleByPart.get(e.partName),o=n?.get(e.start.paragraphId),a=n?.get(e.end.paragraphId);if(!n||!r||o===void 0||a===void 0)return [e.start.paragraphId,e.end.paragraphId];let i=Math.min(o,a),s=Math.max(o,a),c=new Set(t.byPart.get(e.partName)?.get(e.start.paragraphId)?.map(({laneKey:l})=>l)??[]),d=new Set(t.byPart.get(e.partName)?.get(e.end.paragraphId)?.map(({laneKey:l})=>l)??[]),u=new Set([...c].filter(l=>d.has(l)));return u.size===0?[e.start.paragraphId,e.end.paragraphId]:r.slice(Er(r,i),Er(r,s+1)).filter(l=>[...l.laneKeys].some(g=>u.has(g))).map(l=>l.paragraphId)}function Fn(e,t,n,r){return r?e.intervals.filter(a=>a.start<=t&&t<a.end).length>0?[{start:t,end:t}]:[]:e.intervals.flatMap(o=>{if(o.start===o.end)return [];let a={start:Math.max(o.start,t),end:Math.min(o.end,n)};return a.end>a.start?[a]:[]})}function Nn(e,t){let n=Number.NEGATIVE_INFINITY;for(let r of e)for(let o of r.intervals)n=Math.max(n,o.end);return t!==n?new Set:new Set(e.filter(r=>r.intervals.some(o=>o.end===n)))}function Dr(e,t,n){let r=[],o=new Set;for(let[a,i]of e.entries()){let s=n===void 0?void 0:n===null?"neutral":a<n?"replaced":"replacement";for(let c of Tn(i,t)){let d=t.byPart.get(i.partName)?.get(c)??[],l=i.start.paragraphId===i.end.paragraphId&&i.start.offset===i.end.offset,g=c===i.start.paragraphId?i.start.offset:0,f=c===i.end.paragraphId?i.end.offset:Number.POSITIVE_INFINITY,h=l?Nn(d,g):new Set;for(let y of d){let b=Fn(y,g,f,l);l&&b.length===0&&h.has(y)&&(b=[{start:g,end:g}]);for(let P of b){let x=`${y.pageIndex}\0${y.story}\0${y.noteScopeId??""}\0${y.noteAreaKind??""}\0${y.textboxPath.join("\0")}\0${i.partName}\0${c}\0${P.start}\0${P.end}\0${s??""}`;o.has(x)||(o.add(x),r.push({pageIndex:y.pageIndex,physicalPageNumber:y.pageIndex+1,story:y.story,rootStory:y.rootStory,textboxPath:y.textboxPath,noteScopeId:y.noteScopeId,noteAreaKind:y.noteAreaKind,...s?{revisionRole:s}:{},source:{partName:i.partName,start:{paragraphId:c,offset:P.start},end:{paragraphId:c,offset:P.end}}}));}}}}return r}function Tr(e,t){let n=2166136261,r=2654435769;for(let o=0;o<t.length;o+=1){let a=t.charCodeAt(o);n=Math.imul(n^a,16777619)>>>0,r=Math.imul(r^a+o,2246822507)>>>0,r^=r>>>13;}return `${e}_${t.length.toString(36)}_${n.toString(36)}_${r.toString(36)}`}function Mr(e,t,n=Tr){let r=new Map;for(let a of t){let i=n(e,a),s=r.get(i)??new Set;s.add(a),r.set(i,s);}let o=new Map;for(let[a,i]of r){let s=[...i].sort();for(let[c,d]of s.entries())o.set(d,s.length===1?a:`${a}_${c.toString(36)}`);}return o}function jn(e){let t=new Set,n=new Set;for(let r of e){if(r.kind==="comment"){t.add(r.id),r.parentId!==void 0&&t.add(r.parentId),r.parentRevisionId!==void 0&&n.add(r.parentRevisionId);for(let o of r.replyIds)t.add(o);}if(r.kind==="revision"){n.add(r.id),r.pairedWith!==void 0&&n.add(r.pairedWith);for(let o of r.replyIds)t.add(o);}}return {comment:Mr("comment",t),revision:Mr("change",n)}}function U(e,t,n){return e.get(n)??Tr(t,n)}var Ar=new WeakMap;function _n(e){let t=Ar.get(e.root);if(t)return t;let n=new Map,r=0,o=[e.root];for(;o.length>0;){let a=o.pop();if(!(a.kind==="textValue"||a.kind==="text"||a.kind==="runProperties"||a.kind==="paragraphProperties")){if(a.kind==="commentReference"){let i=ef(a,pa,"id");i!==void 0&&n.set(i,r++);continue}for(let i=a.children.length-1;i>=0;i-=1)o.push(a.children[i]);}}return Ar.set(e.root,n),n}function Bn(e,t,n,r){if(e.kind==="revision")return {kind:"tracked-change",id:U(n.revision,"change",e.id),change:e.revisionKind,...e.structuralChanges?{structuralChanges:e.structuralChanges}:{},...e.markDirection?{markDirection:e.markDirection}:{},author:e.author,...e.date!==void 0?{date:e.date}:{},text:tb(e.text),replacedText:tb(e.replacedText),nesting:e.nesting,...e.replacedRangeCount!==void 0?{replacedRangeCount:e.replacedRangeCount}:{},readOnly:e.readOnly,...e.pairedWith!==void 0?{pairedWith:U(n.revision,"change",e.pairedWith)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),occurrences:t?Dr(e.ranges,t,e.revisionKind==="replace"?e.replacedRangeCount??null:void 0):[]};if(e.kind!=="comment")return null;let o=r.get(e.id);return {kind:"comment",id:U(n.comment,"comment",e.id),author:e.comment.author,initials:Vl(e.comment),...e.comment.initials?.trim()?{declaredInitials:Vl({...e.comment,author:""})}:{},...o!==void 0?{referenceOrder:o}:{},...e.comment.date!==void 0?{date:e.comment.date}:{},text:Tl(e.comment),resolved:e.resolved,...e.parentId!==void 0?{parentId:U(n.comment,"comment",e.parentId)}:{},...e.parentRevisionId!==void 0?{parentRevisionId:U(n.revision,"change",e.parentRevisionId)}:{},replyIds:e.replyIds.map(a=>U(n.comment,"comment",a)),orphaned:e.orphaned,occurrences:t&&e.range?Dr([e.range],t):[]}}function Fr(e){let t=e.parts.get(e.mainDocumentPart);if(!t)return null;let n=Cr(e,t),r=[t,...n],o=e.parts.get($(e,t.name));if(!Mn(r,o))return null;let a$1=gr(),i=a$1.collectReviewItems({storyPart:t,furnitureParts:n,commentsPart:o,commentsExtendedPart:e.parts.get(aa(e,t.name))}),s=kr(i,Ir(e)),c$1=new Set(s.map(l=>l.id)),d=a(i.filter(l=>!c$1.has(l.id))),u={sites:new Set(d.sites),paragraphs:d.paragraphs,key:c(ld(e)?.root??null,md(e))};return {parts:r,derivation:a$1,items:s,unlistedSites:u}}var Un=new Map,Lr=new WeakMap,Vn={sites:new Set,paragraphs:new Map,key:""};function Nr(e){let t=Lr.get(e);if(!t){let n=e.parts.get(e.mainDocumentPart);t=n!==void 0&&[n,...Cr(e,n)].some(o=>Il(o).some(a=>a.propertyChange))&&Fr(e)?.unlistedSites||Vn,Lr.set(e,t);}return t}function jr(e,t){let n=Fr(t);if(!n)return [];let{parts:r,derivation:o,items:a}=n;if(a.length===0)return [];let i=a.flatMap(u=>ll(u)),s=i.length>0?Cn(e,t,r,i,o.deepParagraphOrderOfPart):null,c=jn(a),d=a.some(u=>u.kind==="comment")?_n(r[0]):Un;return a.map(u=>Bn(u,s,c,d)).filter(u=>u!==null)}var Kn=new Set(["part","validatedHandle"]);function _r(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Z(e,t,n,r,o){if(!(r!==void 0&&Kn.has(r))){if(typeof e=="function")throw new TypeError("Semantic layout publication encountered a function value");if(!(e===null||typeof e!="object")&&!o?.has(e)){if(n.has(e))throw new TypeError("Semantic layout publication encountered a cyclic record graph");if(!t.has(e)){t.add(e),n.add(e);try{if(Array.isArray(e)){for(let a of e)Z(a,t,n,void 0,o);Object.freeze(e);return}if(!_r(e))throw new TypeError("Semantic layout publication encountered a non-record value");for(let a of Reflect.ownKeys(e)){let i=Object.getOwnPropertyDescriptor(e,a);if(i){if(!("value"in i))throw new TypeError("Semantic layout publication encountered an accessor property");Z(i.value,t,n,a,o);}}Object.freeze(e);}finally{n.delete(e);}}}}}function Br(e){if(!_r(e))throw new TypeError("Semantic layout publication encountered a non-record value");let t=new Set;for(let r of e.pages)if(!(r===null||typeof r!="object"))for(let o of ["header","footer"]){let a=Object.getOwnPropertyDescriptor(r,o);if(!a||!("value"in a))continue;let i=a.value;if(i===null||typeof i!="object"||t.has(i))continue;let s=new Set;s.add(e),Z(i,new Set,s,o),t.add(i);}let n=(r,o)=>{let a=new Set;for(let i of r){let s=new Set;s.add(e),Z(i,a,s,void 0,o);}Object.freeze(r);};for(let r of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,r);if(!o)continue;if(!("value"in o))throw new TypeError("Semantic layout publication encountered an accessor property");if(r==="pages"&&Array.isArray(o.value)){n(o.value,t);continue}if(r==="reviewArtifacts"&&Array.isArray(o.value)){n(o.value);continue}let a=new Set;a.add(e),Z(o.value,new Set,a,r);}return Object.freeze(e),e}var zn=Object.freeze([]),M=class extends Error{constructor(n,r,o){super(r,o);this.code=n;this.name="ExportResourceError";}code};function Wn(e){try{return e instanceof M}catch{return false}}function Hn(e){try{return e instanceof Jf$1}catch{return false}}function $n(e){try{return e instanceof Error&&typeof e.message=="string"&&e.message.length>0?e.message:null}catch{return null}}function Gn(e){if(Wn(e))return e;let t=Hn(e),n=$n(e),r=n?`: ${n}`:"",o=new M(t?"layoutInvariant":"layoutFailed",t?`Authored geometry could not be represented within the bounded page model${r}`:`Export layout failed${r}`);return Object.defineProperty(o,"cause",{configurable:true,value:e}),o}function Yn(e){if(e===void 0)return 6e4;if(!Number.isFinite(e)||e<=0)throw new RangeError("resourceTimeoutMs must be a positive finite number");return Math.max(1,e)}function Ur(e){if(e==="all-markup"||e==="simple-markup"||e==="proposed"||e==="original")return e;throw new RangeError("displayMode must be all-markup, simple-markup, proposed, or original")}var Xn=50,Le=64;function qn(e){switch(e.kind){case "pending":return true;case "ready":case "unrenderable":case "external":case "missing":return false;default:return e}}function Qn(e){let t=false;return Qa(e,({drawing:n})=>{qn(n.resource)&&(t=true);}),t}function Vr(e){return !ArrayBuffer.isView(e)}function Xa(e,t={}){if(t.signal?.aborted)return {ok:false,reason:"aborted"};if(t.revisionAuthorSlots!==void 0&&(!t.revisionAuthorSlots||typeof t.revisionAuthorSlots!="object"||Array.isArray(t.revisionAuthorSlots)))throw new TypeError("revisionAuthorSlots must map author names to nonnegative safe integers.");let n=t.revisionAuthorSlots===void 0?void 0:Object.freeze(Object.fromEntries(Object.entries(t.revisionAuthorSlots).map(([m,w])=>{if(!Number.isSafeInteger(w)||w<0)throw new TypeError("revisionAuthorSlots values must be nonnegative safe integers.");return [m,w]}))),r=t.revisionMarkup?hb(t.revisionMarkup):void 0,o=r?{revisionMarkup:r,hiddenAuthors:new Set,cacheKey:JSON.stringify(r)}:void 0,a=Ur(t.displayMode??lb),i=Vr(e),s=Vr(e)?{ok:true,view:e}:Ba(e);if(!s.ok)return s;let c=s.view,d=t.reuseAcrossRevisions??i,u=Yn(t.resourceTimeoutMs),l=t.measurer??ta(),g=t.producer??(t.measurer?"host-export-measurer":"export-fixed-measurer"),f=hf({retainAcrossPasses:d}),h=0,y=new Set,b=()=>{h+=1;for(let m of y)m();y.clear();},P=Bf({session:c,decodePort:t.imageDecodePort??nr(t.convertPreservedImage?{convertPreserved:t.convertPreservedImage}:void 0),onResourcesChanged:b}),x={view:c,measurer:l,paragraphCache:f,sessions:new Map,completed:new Map,inFlight:new Map,styles:zf(c),fieldLinks:new Map,links:Qf(c),drawingBundle:P,furniture:new Map},R=new AbortController,O=t.signal,V=false,$=()=>V?new M("aborted","Export resource settlement was aborted"):new M("disposed","Export session has been disposed"),K=()=>{V=true,G();};function G(){let m=x;if(m){x=null,O?.removeEventListener("abort",K),R.abort(O?.reason),m.drawingBundle.dispose(),m.paragraphCache.clear();for(let w of m.completed.values())jd(w.internal),Yf(w.internal);for(let w of m.fieldLinks.values())w.registry.clear();m.fieldLinks.clear(),m.completed.clear(),m.inFlight.clear(),m.furniture.clear(),m.sessions.clear(),b();}}O?.addEventListener("abort",K,{once:true}),O?.aborted&&K();let _=()=>{if(!x)throw $();if(R.signal.aborted)throw new M("aborted","Export resource settlement was aborted")},T=(m,w,v,p)=>h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v?Promise.resolve():(_(),new Promise((I,E)=>{let D=false,F,A=N=>{D||(D=true,F!==void 0&&clearTimeout(F),y.delete(X),R.signal.removeEventListener("abort",q),N?E(N):I());},X=()=>A(),q=()=>A(new M("aborted","Export resource settlement was aborted")),L=()=>{if(x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}let N=p-Date.now();if(N<=0){A(new M("timedOut",`Image resources did not settle within ${u}ms`));return}F=setTimeout(L,Math.min(Xn,N));};if(y.add(X),R.signal.addEventListener("abort",q,{once:true}),h!==m||x?.view.packageRevision()!==w||x?.view.currentPackage()!==v){A();return}F=setTimeout(L,0);})),Y=async(m,w=0,v=Date.now()+u)=>{if(_(),Date.now()>=v)throw new M("timedOut",`Export layout did not stabilize within ${u}ms`);let p=x,I=v,E=p.view.packageRevision(),D=p.view.currentPackage(),F=p.completed.get(m);if(F&&F.revision===E&&F.pkg===D)return F.published;let A=()=>{if(p.view.packageRevision()===E&&p.view.currentPackage()===D)return null;if(w>=Le-1)throw new M("nonConvergent","Document revision did not stabilize during export layout");return Y(m,w+1,I)},X=m==="simple-markup"?mb(o):o,q=m==="all-markup"||m==="simple-markup"?ne(X,Nr(D),m==="simple-markup"):X,L=p.fieldLinks.get(m);if(!L||L.revision!==E||L.pkg!==D){let k=L?.registry??Rf();k.clear(),L={revision:E,pkg:D,registry:k},p.fieldLinks.set(m,L),p.furniture.delete(m);}let N=L.registry,Te=p.sessions.get(m)??Cg();p.sessions.set(m,Te);let ee=p.furniture.get(m);ee||(ee=Nf({view:p.view,measurer:p.measurer,producer:g,cache:p.paragraphCache,styleCascade:p.styles.styleCascade,numberingIndex:p.styles.numberingIndex,defaultTabStopPt:p.styles.defaultTabStopPt,compatibilityMode:p.styles.compatibilityMode,displayMode:kb(m),revisionAuthorFilter:q,showFieldCodes:false,inlineDrawingLayoutForPart:k=>p.drawingBundle.contextForPart(k),drawingLayoutTokenForPart:k=>p.drawingBundle.cacheTokenForPart(k),drawingTokenForParagraphForPart:(k,he)=>p.drawingBundle.drawingTokenForParagraph(he,k),linkProjectors:p.links,projectFieldLink:k=>N.project(k)}),p.furniture.set(m,ee));for(let k=0;k<Le;k+=1){let he=h;p.drawingBundle.sync(p.view);let Fe=A();if(Fe)return Fe;let j=cr({view:p.view,revision:p.view.packageRevision(),measurer:p.measurer,cache:p.paragraphCache,session:Te,producer:g,styleCascade:p.styles.styleCascade,defaultTabStopPt:p.styles.defaultTabStopPt,numberingIndex:p.styles.numberingIndex,furniture:ee,compatibilityMode:p.styles.compatibilityMode,linkProjectors:p.links,projectFieldLink:S=>N.project(S),inlineDrawingLayout:p.drawingBundle.bodyContext,inlineDrawingLayoutForPart:S=>p.drawingBundle.contextForPart(S),drawingTokenForParagraph:S=>p.drawingBundle.drawingTokenForParagraph(S,p.view.part().name),drawingTokenForParagraphForPart:(S,te)=>p.drawingBundle.drawingTokenForParagraph(te,S),drawingLayoutEpoch:p.drawingBundle.cacheTokenForPart(p.view.part().name),drawingLayoutEpochForPart:S=>p.drawingBundle.cacheTokenForPart(S),displayMode:kb(m),revisionAuthorFilter:q,showFieldCodes:false,bodyBlockLimit:void 0,fieldResults:"atomic"});if(!Qn(j)){let S=A();if(S)return S;d||(jd(j),Yf(j),p.paragraphCache.clear(),p.sessions.delete(m),p.furniture.delete(m));let te=jr(j,D),Kr=te.length===0?zn:Object.freeze(yr(j,te)),zr=Zt(p.view,j),Wr={...j,...zr,reviewDisplayMode:m,...r?{revisionMarkup:r}:{},...n?{revisionAuthorSlots:n}:{},facingPages:[...D.parts.values()].some(Be=>Be.root.localName==="settings"&&Be.root.children.some(re=>re.kind!=="textValue"&&(re.localName==="mirrorMargins"||re.localName==="evenAndOddHeaders")&&!re.attributes.some(Ue=>Ue.localName==="val"&&["0","false","off"].includes(Ue.value)))),contentWarnings:sr(p.view),reviewArtifacts:Kr},_e=Br(Wr);return p.completed.set(m,{revision:E,pkg:D,internal:j,published:_e}),_e}let Ne=he;for(;p.drawingBundle.pendingResourceCount()>0;){await T(Ne,E,D,I),Ne=h,_();let S=A();if(S)return S}_();let je=A();if(je)return je}throw new M("nonConvergent",`Image resources did not reach quiescence after ${Le} layout passes`)},Ce=m=>{let w;try{w=Ur(m);}catch(E){return Promise.reject(E)}if(!x)return Promise.reject($());let v=x,p=v.inFlight.get(w);if(p)return p;let I=Y(w).catch(E=>{throw Gn(E)}).finally(()=>v.inFlight.delete(w));return v.inFlight.set(w,I),I};return {ok:true,session:{layout:()=>Ce(a),layoutFor:Ce,validatedImageBytes(m){let w=x;return !w||m.resource.kind!=="ready"?null:w.drawingBundle.mintValidatedBytes(m.resource.validatedHandle,m.resource.contentId)?.slice()??null},async chartFallbackResource(m){let w=x;if(!w||!m.chart||!m.chartFallbackResource)return;if(m.chartFallbackResource.kind!=="pending")return m.chartFallbackResource;let v,p=new Promise(I=>{v=setTimeout(()=>I(Object.freeze({kind:"unrenderable",partName:null,mime:"unknown",reason:"decode-failed"})),u);});try{return await Promise.race([w.drawingBundle.resolveChartFallback(m.ownerPartName,m.drawingNodeId),p])}finally{clearTimeout(v);}},metafileBytes(m){let w=x,v=m.resource;if(!w||v.kind!=="unrenderable"||v.partName===null||v.reason!=="unsupported-format"&&v.reason!=="decode-failed")return null;let p=v.mime;if(p!=="image/x-emf"&&p!=="image/x-wmf")return null;let I=w.view.currentPackage().partBytes.get(v.partName);return !I||I.byteLength>q.maxEncodedBytes||Jf(I)!==p?null:{mime:p,bytes:I.slice()}},dispose:G}}}export{tr as a,cn as b,ro as c,nr as d,Ir as e,kr as f,da as g,M as h,Xa as i};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkE5BKDHIP_cjs=require('./chunk-E5BKDHIP.cjs'),chunk5HUVQXET_cjs=require('./chunk-5HUVQXET.cjs'),chunkA5BTVPET_cjs=require('./chunk-A5BTVPET.cjs');function G(n){let t=[],a=0;for(let r of n){let o=a+r.text.length;r.resultRuns?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,resultRuns:r.resultRuns,...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):r.floatingObject?t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,floatingObject:true,projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}):t.push({text:r.text,rawStart:r.rawStart,rawEnd:r.rawEnd,...r.symbol?{symbol:true}:{},...r.symbolOffsets?{symbolOffsets:r.symbolOffsets}:{},...r.symbolDisplays?{symbolDisplays:r.symbolDisplays}:{},projectedStart:a,projectedEnd:o,expansion:r.text.length!==r.rawEnd-r.rawStart}),a=o;}return t}function B(n,t){return t<=n.rawStart?n.projectedStart:t>=n.rawEnd?n.projectedEnd:n.expansion?n.projectedStart:n.projectedStart+t-n.rawStart}function L(n,t){return n.expansion?n.rawStart:n.rawStart+t-n.projectedStart}function W(n,t){return n.expansion?n.rawEnd:n.rawStart+t-n.projectedStart}var K=new Set([chunkA5BTVPET_cjs.lb,"\u2011"]),Q=/[\u001e\u001f\u2011]/,X="\uFFFF";function Y(n,t){if(!Q.test(n)&&!t?.size)return {text:n,at:null};let a="",r=[];for(let o=0;o<n.length;o+=1){let l=n[o];if(t?.has(o))a+=X;else {if(l===chunkA5BTVPET_cjs.mb)continue;a+=K.has(l)?"-":l;}r.push(o);}return {text:a,at:r}}function U(n){let t;for(let a of n){if(a.symbol){t??=new Set;for(let r=a.projectedStart;r<a.projectedEnd;r+=1)t.add(r);}for(let r of a.symbolOffsets??[])(t??=new Set).add(a.projectedStart+r);}return t}function P(n){let t=G(n),a="";for(let o of n)a+=o.text;let r=null;return {text:a,projectedOffset(o){let l=0;for(let i of t){if(o<=i.rawEnd)return B(i,o);l=i.projectedEnd;}return l},projectedOffsets(o,l){let i=new Int32Array(Math.max(0,l-o+1)),e=0,d=0;for(let s=o;s<=l;s+=1){for(;e<t.length&&s>t[e].rawEnd;)d=t[e].projectedEnd,e+=1;let c=t[e];i[s-o]=c?B(c,s):d;}return i},rawRange(o,l){if(o<0||o>=l||l>a.length)return null;let i=t.find(d=>o>=d.projectedStart&&o<d.projectedEnd),e=t.find(d=>l>d.projectedStart&&l<=d.projectedEnd);return !i||!e?null:{start:L(i,o),end:W(e,l)}},sliceRaw(o,l){if(o>=l)return "";let i="";for(let e of t){if(e.expansion){o<=e.rawStart&&l>=e.rawEnd&&(i+=e.text);continue}let d=Math.max(o,e.rawStart),s=Math.min(l,e.rawEnd);d<s&&(i+=e.text.slice(d-e.rawStart,s-e.rawStart));}return i},displaySlice(o,l){let i="";for(let e of t){if(e.projectedEnd<=o||e.projectedStart>=l)continue;let d=Math.max(o,e.projectedStart)-e.projectedStart,s=Math.min(l,e.projectedEnd)-e.projectedStart;if(e.symbol){i+=e.symbolDisplays?.[0]??"";continue}let c=new Map;e.symbolOffsets?.forEach((f,u)=>c.set(f,e.symbolDisplays?.[u]??""));for(let f=d;f<s;f+=1)i+=c.get(f)??e.text[f];}return i},resultRunAddressAt(o){let l=t.find(e=>e.resultRuns!==void 0&&o>=e.projectedStart&&o<e.projectedEnd);if(!l?.resultRuns)return null;let i=o-l.projectedStart;for(let e of l.resultRuns)if(i>=e.start&&i<e.end)return {runId:e.runId,offset:i-e.start};return null},findOccurrences(o,l,i={}){let e=[];if(l<=0||!chunk5HUVQXET_cjs.xa(o)||a.length===0)return {matches:e,truncated:false};let d=i.matchCase===true,s=i.wholeWord===true;r??=Y(a,U(t));let c=r,f=Y(o).text;if(f.length===0||f.includes(X))return {matches:e,truncated:false};let u=d?f:chunk5HUVQXET_cjs.va(f),j=d?c.text:chunk5HUVQXET_cjs.va(c.text),R=p=>c.at?.[p]??p,v=p=>{if(!c.at)return p;let m=0;for(;m<c.at.length&&c.at[m]<p;)m+=1;return m},z=Math.min(a.length,i.to??a.length),D=new Set,b=j.indexOf(u,v(Math.max(0,i.from??0)));for(;b>=0;){let p=b+u.length,m=R(b),x=R(p-1)+1;if(x>z)return {matches:e,truncated:false};if(t.some(y=>y.floatingObject===true&&y.projectedStart>m&&y.projectedStart<x)){b=j.indexOf(u,b+1);continue}if(!s||chunk5HUVQXET_cjs.wa(c.text,b,p)){let y=t.find(h=>m>=h.projectedStart&&m<h.projectedEnd),E=t.find(h=>x>h.projectedStart&&x<=h.projectedEnd);if(!y||!E)return {matches:e,truncated:false};let S=y===E&&y.expansion?y:null;if(!S||!D.has(S)){if(e.length>=l)return {matches:e,truncated:true};e.push({start:m,length:x-m,rawStart:L(y,m),rawEnd:W(E,x)}),S&&D.add(S);}}b=j.indexOf(u,p);}return {matches:e,truncated:false}}}}function q(n){return n.length===0?P([]):P([{text:n,rawStart:0,rawEnd:n.length}])}var J="http://schemas.openxmlformats.org/markup-compatibility/2006";function Z(n){if(n.kind==="textValue")return false;if(chunkA5BTVPET_cjs.Zd(n))return chunkA5BTVPET_cjs._d(n);let t=a=>a.kind!=="textValue"&&a.children.some(r=>r.kind==="anchoredDrawing"||r.kind!=="textValue"&&r.localName==="anchor");if(n.kind==="drawing")return t(n);if(n.namespaceUri!==J||n.localName!=="AlternateContent")return false;for(let a of n.children){if(a.kind==="textValue"||a.localName!=="Choice")continue;let r=a.children.find(o=>o.kind==="drawing"||o.kind!=="textValue"&&o.localName==="drawing");if(r)return t(r)}return false}function $(n,t,a="allMarkup"){if(!t.includes(chunkA5BTVPET_cjs.Qg)&&!t.includes(chunkA5BTVPET_cjs.nb))return t.length===0?[]:[{text:t,rawStart:0,rawEnd:t.length}];let r=chunkA5BTVPET_cjs.jh(n),o=chunkA5BTVPET_cjs.ti(n,r),l=chunkE5BKDHIP_cjs.f(n,r,a),i=new Map;for(let s of r)i.set(s.node.id,s);let e=[],d=0;for(let s of o){let c=i.get(s.node.id),f=!c&&chunkA5BTVPET_cjs.ob(s.node);if(!c&&!f){Z(s.node)&&(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),e.push({text:"",rawStart:s.start,rawEnd:s.end,floatingObject:true}),d=s.end);continue}if(d<s.start&&e.push({text:t.slice(d,s.start),rawStart:d,rawEnd:s.start}),!c){e.push({text:chunkA5BTVPET_cjs.nb,rawStart:s.start,rawEnd:s.end,symbol:true,symbolDisplays:[chunkA5BTVPET_cjs.Sl(s.node)]}),d=s.end;continue}let u=l.get(c.node.id);c.kind==="simple"&&u?e.push({text:u.text,rawStart:s.start,rawEnd:s.end,resultRuns:u.runs,...u.symbols?{symbolOffsets:u.symbols}:{},...u.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}):e.push({text:u?.text??chunkA5BTVPET_cjs.Qg,rawStart:s.start,rawEnd:s.end,...u?.symbols?{symbolOffsets:u.symbols}:{},...u?.symbolDisplays?{symbolDisplays:u.symbolDisplays}:{}}),d=s.end;}return d<t.length&&e.push({text:t.slice(d),rawStart:d,rawEnd:t.length}),e}function ie(n,t,a="allMarkup"){return !t.includes(chunkA5BTVPET_cjs.Qg)&&!t.includes(chunkA5BTVPET_cjs.nb)?q(t):P($(n,t,a))}
|
|
2
2
|
exports.a=P;exports.b=q;exports.c=$;exports.d=ie;
|