@docx-editor.dev/core 2.35.0 → 2.35.1-canary.20261106032727.sha-b131138
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 +8 -8
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +12 -12
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-H0uSxdg3.d.ts → chrome-print-D77Z2MRQ.d.ts} +11 -11
- package/dist/{chunk-LMASPHYS.js → chunk-27XCGHXI.js} +1 -1
- package/dist/chunk-2JVOX642.cjs +236 -0
- package/dist/{chunk-2C75IWUN.cjs → chunk-462QYTNK.cjs} +1 -1
- package/dist/{chunk-JGE2O6IF.cjs → chunk-5QL7GBV2.cjs} +2 -2
- package/dist/{chunk-4NISR27M.cjs → chunk-7AFHVNPA.cjs} +13 -13
- package/dist/{chunk-6767S7UF.js → chunk-ASWUP7GU.js} +1 -1
- package/dist/{chunk-K2BBJDM7.js → chunk-CCM264XP.js} +1 -1
- package/dist/{chunk-NYZP5NM3.js → chunk-CORSCVCC.js} +1 -1
- package/dist/{chunk-Q5YVLUGG.js → chunk-FIT3HAWE.js} +1 -1
- package/dist/{chunk-SJV6WCTP.cjs → chunk-FTEXTGTC.cjs} +1 -1
- package/dist/{chunk-66ZAVRGB.js → chunk-GOXXQ2G3.js} +1 -1
- package/dist/{chunk-WWZWT26M.cjs → chunk-GP46C4QJ.cjs} +1 -1
- package/dist/{chunk-QDUMZYTX.js → chunk-I7C2C6IZ.js} +1 -1
- package/dist/chunk-KIDYIVZ5.js +236 -0
- package/dist/{chunk-6BZINLEN.cjs → chunk-Q3OARWRD.cjs} +1 -1
- package/dist/{chunk-QLANEOTJ.cjs → chunk-QHE5FKW3.cjs} +4 -4
- package/dist/{chunk-TMCMXIBT.js → chunk-R6SVC45W.js} +4 -4
- package/dist/{chunk-Y3JSN52G.cjs → chunk-RB55BB5N.cjs} +1 -1
- package/dist/{chunk-FLEFHRJG.cjs → chunk-RFM64DRG.cjs} +5 -5
- package/dist/{chunk-UAUB5YV6.js → chunk-RTOCN5IQ.js} +1 -1
- package/dist/{chunk-2V3V57SC.js → chunk-SCK44KXL.js} +1 -1
- package/dist/{chunk-5ZE7ROGP.js → chunk-STK3RNDU.js} +1 -1
- package/dist/{chunk-QALWAAPL.cjs → chunk-TRNTPFVY.cjs} +2 -2
- package/dist/{chunk-CBJMRC4L.cjs → chunk-TUSRTFEW.cjs} +1 -1
- package/dist/{chunk-FMSXJ22B.js → chunk-UMSQMNZU.js} +1 -1
- package/dist/{chunk-I4OZW2NO.js → chunk-V5NOTQ6L.js} +1 -1
- package/dist/{chunk-AVGSD7FB.js → chunk-XEGE36HF.js} +1 -1
- package/dist/{chunk-32YOHLEK.cjs → chunk-Y6FY46N6.cjs} +23 -23
- package/dist/{chunk-DSIDCA3V.cjs → chunk-YRJYEXVN.cjs} +4 -4
- package/dist/{chunk-TY5CE2JR.cjs → chunk-ZG6KPMLF.cjs} +1 -1
- 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 +8 -8
- package/dist/contracts/modules.d.ts +10 -10
- package/dist/contracts/types.d.ts +3 -3
- package/dist/{custom-node-writes-Cj0itq58.d.ts → custom-node-writes-BXn8hCVV.d.ts} +2 -2
- package/dist/{document-protection-CDLoYQI3.d.ts → document-protection-CfNgyZ4W.d.ts} +1 -1
- package/dist/{drawing-graphic-kind-8zt6pugF.d.ts → drawing-graphic-kind-C_kXByHh.d.ts} +2 -2
- package/dist/{drawing-preview-package-8o9LSfzP.d.ts → drawing-preview-package-W4jCeIW0.d.ts} +1 -1
- package/dist/{editor-CujQcn1z.d.ts → editor-CG4FJl_e.d.ts} +4 -4
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.ts +25 -25
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +6 -6
- package/dist/export.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-ZjLRz_qa.d.ts → layout-shaping-Cxkd9f_f.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +17 -17
- package/dist/layout.js +1 -1
- package/dist/{note-properties-BRpskBeh.d.ts → note-properties-DvCg9hqk.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +10 -10
- package/dist/output.js +1 -1
- package/dist/{protocol-GVVQQwCX.d.ts → protocol-BVr4_nzI.d.ts} +2 -2
- package/dist/{review-paragraph-order-aEHnQTt7.d.ts → review-paragraph-order-cFZfc4oS.d.ts} +1 -1
- package/dist/{revision-projection-vU_UiTLx.d.ts → revision-projection-BcWPdgFd.d.ts} +1 -1
- package/dist/{semantic-cell-selection-CaRIISu-.d.ts → semantic-cell-selection-CYS_l73g.d.ts} +2 -2
- package/dist/{semantic-interaction-LJtUJJS5.d.ts → semantic-interaction-DyXHZhFO.d.ts} +1 -1
- package/dist/{semantic-paint-2LBYlQcn.d.ts → semantic-paint-ChK1a0Qd.d.ts} +4 -4
- package/dist/{semantic-record-queries-C_YK2gCz.d.ts → semantic-record-queries-CYAipThi.d.ts} +1 -1
- package/dist/{semantic-records-AU2pIYRp.d.ts → semantic-records-D0NEAzyD.d.ts} +3 -3
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +12 -12
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-DmrePCMo.d.ts → tree-op-types-Ds9-dl3T.d.ts} +7 -1
- package/dist/{tree-package-fragment-DXZ2B7x0.d.ts → tree-package-fragment-Cya6ExyS.d.ts} +1 -1
- package/dist/{tree-session-contract-D3e-5YNq.d.ts → tree-session-contract-DiNorPOQ.d.ts} +4 -4
- package/dist/{unsupported-elements-9Pz4I_F6.d.ts → unsupported-elements-CJ33VvL9.d.ts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-DCILO4XD.cjs +0 -236
- package/dist/chunk-P3XUE72N.js +0 -236
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2JVOX642_cjs=require('./chunk-2JVOX642.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(chunk2JVOX642_cjs.ah(r,"begin")){u.push(r.id);continue}if(chunk2JVOX642_cjs.ah(r,"separate")){let a=u[u.length-1];a&&(i.add(a),o.set(r.id,a));continue}if(chunk2JVOX642_cjs.ah(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(chunk2JVOX642_cjs.ah(l,"begin"))return n.activeBegins.has(l.id)&&e.push({beginId:l.id,separated:false}),true;if(chunk2JVOX642_cjs.ah(l,"separate")){let t=n.separateBegin.get(l.id),i=e[e.length-1];return t&&i?.beginId===t&&(i.separated=true),true}if(chunk2JVOX642_cjs.ah(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=[];chunk2JVOX642_cjs.mh(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=chunk2JVOX642_cjs.nh*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=chunk2JVOX642_cjs.lh(n);if(i.length>t.left)return false;if(t.left-=i.length,i.length>0){let o=e.length;chunk2JVOX642_cjs.Tb(n)&&(e.symbols.push(o),e.symbolDisplays.push(chunk2JVOX642_cjs.Yl(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:chunk2JVOX642_cjs.Xg,runs:[]}}function q(e,n,l,t){let i=[];if(!chunk2JVOX642_cjs.mh(e,i,l))return null;let o=i.reverse(),d=k();for(;o.length>0;){let u=o.pop();if(!C(n,u)){if(chunk2JVOX642_cjs.dh(u.node)){let s=[];if(!chunk2JVOX642_cjs.mh(u.node,s,l))return null;for(let r=s.length-1;r>=0;r-=1)o.push(s[r]);continue}if(!chunk2JVOX642_cjs.bh(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)&&!chunk2JVOX642_cjs.bh(r)&&g(d)&&!C(n,s)){if(chunk2JVOX642_cjs.dh(r)){let a=i>=chunk2JVOX642_cjs.oh?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 chunk2JVOX642_cjs.mh(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||chunk2JVOX642_cjs.bh(t)||chunk2JVOX642_cjs.dh(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=[];chunk2JVOX642_cjs.mh(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)&&chunk2JVOX642_cjs.ah(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;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use strict';var chunk32YOHLEK_cjs=require('./chunk-32YOHLEK.cjs'),chunkDCILO4XD_cjs=require('./chunk-DCILO4XD.cjs');var Gr=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let l=i*2n;(l>t||l===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let s=r?-a:a,c=Number(s);if(!Number.isSafeInteger(c))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return c},dt=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n===0)return chunk32YOHLEK_cjs.n(0);let o=e*n;if(Number.isSafeInteger(o)){let a=Math.abs(o),i=a%t,s=(a-i)/t;return r!=="towardZero"&&(i>t-i||i===t-i&&(r==="halfAwayFromZero"||r==="halfToEven"&&s%2!==0))&&(s+=1),chunk32YOHLEK_cjs.n(s===0?0:o<0?-s:s)}return chunk32YOHLEK_cjs.n(Gr(BigInt(e)*BigInt(n),BigInt(t),r))},gn=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>dt(i,a,o,r)},Sn=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var Ne=(e,t)=>e[t]<<8|e[t+1],xn=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Wr(e,t){let n=(s,c)=>s>=0&&s+c<=e.length;if(!n(0,12))return false;let a=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"&&n(12+t*4,4)?xn(e,12+t*4):0;if(!n(a,12))return false;let i=Ne(e,a+4);for(let s=0;s<i;s+=1){let c=a+12+s*16;if(!n(c,16))return false;if(!(e[c]===99&&e[c+1]===109&&e[c+2]===97&&e[c+3]===112))continue;let u=xn(e,c+8);if(!n(u,4))return false;let y=Ne(e,u+2);for(let f=0;f<y;f+=1){let p=u+4+f*8;if(!n(p,4))return false;if(Ne(e,p)===3&&Ne(e,p+2)===0)return true}return false}return false}var bn=new WeakMap;function Rn(e,t){let n=bn.get(e);return n===void 0&&(n=Wr(t,e.faceIndex),bn.set(e,n)),n}function Fn(e){let t="",n=false;for(let r=0;r<e.length;r+=1){let o=e.charCodeAt(r);o>=32&&o<=255?(t+=String.fromCharCode(61440+o),n=true):t+=e[r];}return n?t:e}var Kr=4096,Cn=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,De=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t,n){let r=chunk32YOHLEK_cjs.t(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=Kr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${Cn(t.fontSizeHalfPoints)}\0${Cn(t.bidiLevel)}\0`,i=t.context;return !i||i.before===""&&i.after===""?`${a}-${t.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t.text}`}clear(){this.#e.clear();}};function le(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function En(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>le(t))}function jr(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function vn(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function Ln(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${En(e instanceof Error?e.message:String(e))})`}function Bn(e){let t=En(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function Tn(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ie=Object.freeze({name:"HarfBuzz",version:"14.4.0"}),Se=null,he=null;function ft(){return Se?Promise.resolve():he||(he=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ie.version)throw new A("shapingLibraryMismatch",{diagnostic:Tn(ie.version,t)});Se=e;}).catch(e=>{throw he=null,e instanceof A?e:vn(e)?new A("unsupportedRuntime",{diagnostic:Ln(e),cause:e}):new A("wasmUnavailable",{diagnostic:Bn(e),cause:e})}),he)}function Yr(){return Se!==null}function $r(){if(!Se)throw new A("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Se}var A=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},qr=16*1024*1024,Zr=1e6,Jr=1e6,Qr=1e6,eo=4,to=512,no=1024*1024,ro=16*1024*1024,oo=32*1024*1024,ao=64*1024*1024,io=64*1024*1024,so=1e6,co=1e6,lo=1e6,uo=64,po=4096,fo=4*1024*1024,mo=64*1024*1024,yo=64*1024*1024,ho=256*1024*1024,go=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),wn=["cmap","head","hhea","hmtx","maxp"],So=(e,t)=>e[t]<<8|e[t+1],xo=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,bo=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?xo(e,12+t*4):0,Ro=(e,t)=>{let n=bo(e,t),r=So(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},Fo=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Co=(e,t)=>{let n=chunk32YOHLEK_cjs.l(e,t);if(!n.valid)return n;let r=Ro(e,t);for(let o of wn)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},mt=Co,G=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},Eo=(e,t,n)=>{if(t.length===0)return [];let r=[],o=0;for(;o<t.length;){let a=t[o].cluster,i=o+1,s=t[o].advanceX;for(;i<t.length&&t[i].cluster===a;)s+=t[i].advanceX,i+=1;let c=chunk32YOHLEK_cjs.n(s);r.push({textStart:a,textEnd:n==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:c,caretEdges:Object.freeze([chunk32YOHLEK_cjs.n(0),c]),fontSpan:0}),o=i;}return r},V=64,$=8,q=8,On=32,yt=V+2*$,vo=V+$+q,Lo=V+$+2*q,Bo=V+$+q,An=V+8*$,In=V+8*q+$,To=V+6*q+$,wo=V+3*q+2*$,Oo=V+3*q,xe=e=>V+e.length*Uint16Array.BYTES_PER_ELEMENT,ht=e=>Bo+xe(e),ge=e=>On+e*$,Ao=(e,t)=>yt+xe(e)+vo+ht(t),Io=e=>An+xe(e)+ge(e.length)+e.length*In,Mo=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return An+xe(e.text)+ge(e.glyphs.length)+e.glyphs.length*In+ge(e.clusters.length)+e.clusters.length*To+e.clusters.reduce((n,r)=>n+ge(r.caretEdges.length),0)+ge(e.fontSpans.length)+e.fontSpans.length*wo+(e.exactAdvancesX===void 0?0:On+e.exactAdvancesX.length*q)+Oo+[...t].reduce((n,r)=>n+ht(r.path),0)},_o=(e,t)=>yt+xe(e)+Lo+t,pt=class{#e;#p;#f;#m;#y;#R;#h;#l=0;#F;#g;#S;#c;#x;#u;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new De(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#b=0;#d;constructor(t,n){chunk32YOHLEK_cjs.p(this),this.#e=t,this.#p=G(n.maxFontBytes??qr,"maximum font bytes",io),this.#f=G(n.maxInputUtf16??Zr,"maximum input UTF-16 code units",so),this.#m=G(n.maxCodepoints??Jr,"maximum input code points",co),this.#y=G(n.maxGlyphs??Qr,"maximum shaped glyphs",lo),this.#h=G(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=G(n.maxCachedFaces??eo,"maximum cached faces",uo),this.#F=G(n.maxCachedShapes??to,"maximum cached shape results",po),this.#g=G(n.maxOutlineBytes??no,"maximum outline bytes",fo),this.#S=G(n.maxCachedOutlineBytes??ro,"maximum cached outline bytes",mo),this.#c=G(n.maxShapedRunBytes??oo,"maximum shaped run bytes",yo),this.#x=G(n.maxCachedShapeBytes??ao,"maximum cached shape bytes",ho),this.#u=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#d=new this.#e.Buffer;}dispose(){this.#o.clear(),this.#l=0,this.#i.clear(),this.#s.clear(),this.#n.clear(),this.#C.clear(),this.#a=0,this.#r=0,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#d=void 0;}#v(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#u?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=chunk32YOHLEK_cjs.j(t);for(let u of wn)if(!o.has(u))throw new A("malformedFont",{diagnostic:`missing required ${u} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(Fo(n)),i=new this.#e.Face(a,t.faceIndex),s=new this.#e.Font(i),c=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(c.ascender)||!Number.isSafeInteger(c.descender)||!Number.isSafeInteger(c.lineGap))throw new A("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});s.setScale(i.upem,i.upem);let l={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem,byteLength:n.byteLength};if(n.byteLength<=this.#h){for(;this.#o.size>=this.#R||this.#l+n.byteLength>this.#h;){let u=this.#o.keys().next().value;if(u===void 0)break;this.#l-=this.#o.get(u).byteLength,this.#o.delete(u),this.#u?.(Object.freeze({kind:"evicted",identity:u}));}this.#o.set(t.identity,l),this.#l+=n.byteLength;}return this.#u?.(Object.freeze({kind:"created",identity:t.identity})),l}#L(t,n){let r=this.#i.get(t.identity)?.get(n);if(r)return this.#s.delete(r),this.#s.set(r,void 0),this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#a})),r.outline;this.#t?.onOutlinePathCall?.();let o=t.font.glyphToPath(n),a=ht(o);if(a>this.#g)throw new A("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),s=Ao(t.identity,o)+3*yt+2*q;if(s>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+s>this.#S;){let u=this.#s.keys().next().value;if(u===void 0)break;this.#s.delete(u);let y=this.#i.get(u.identity);y.delete(u.glyphId),y.size===0&&this.#i.delete(u.identity),this.#a-=u.bytes,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#a}));}let c=this.#i.get(t.identity);c||this.#i.set(t.identity,c=new Map);let l={outline:i,bytes:s,identity:t.identity,glyphId:n};return c.set(n,l),this.#s.set(l,void 0),this.#a+=s,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#E(t){if(t.length>this.#f)throw new A("textOverLimit",{limit:this.#f,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#m)throw new A("codepointsOverLimit",{limit:this.#m,actual:n})}}shape(t){if(!this.#d)throw new A("disposed");if(chunk32YOHLEK_cjs.k(t.environment.font),t.environment.font.byteLength>this.#p)throw new A("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#E(t.text);let n=Io(t.text);if(n>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:n});let r=chunk32YOHLEK_cjs.r(t.environment),o=this.#C.keyOf(t,r),a=this.#n.get(o);if(a)return this.#b-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o),this.#n.set(o,a),a.stamp=++this.#b),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ie.name||r.shapingLibrary.version!==ie.version)throw new A("shapingLibraryMismatch");if(r.normalization!=="none")throw new A("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new A("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new A("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new A("unsupportedFallback");let i=chunk32YOHLEK_cjs.i(r.font),s=chunk32YOHLEK_cjs.j(r.font);if([...go].some(p=>s.has(p))&&!s.has("glyf")&&!s.has("CFF "))throw new A("unsupportedColorFont");let c=t.text;this.#E(c);let l=t.context?.before??"",u=t.context?.after??"",y=chunk32YOHLEK_cjs.o,f=Math.max(String(l).length,String(u).length);if(typeof l!="string"||typeof u!="string"||f>y)throw new A("textOverLimit",{limit:y,actual:f});try{let p=this.#v(r.font,i),{face:g,font:h}=p,d=this.#d;d.reset();let S=Rn(r.font,i)?Fn:String,x=l+c+u,R=chunk32YOHLEK_cjs.A(x)?chunk32YOHLEK_cjs.B(p):void 0,L=M=>S(R?chunk32YOHLEK_cjs.C(M,R):M);l||u?d.addText(L(l+c+u),l.length,c.length):d.addText(L(c)),d.setDirection(r.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),d.setScript(r.script),d.setLanguage(r.language),d.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let E=Object.entries(r.features).map(([M,U])=>new this.#e.Feature(M,U));if((r.features.kern??1)!==0)for(let[M,U]of chunk32YOHLEK_cjs.x(l+c+u))E.push(new this.#e.Feature("kern",0,M,U));this.#t?.onShapeCall?.(),this.#e.shape(h,d,E);let O=d.getLength();if(O>this.#y)throw new A("glyphOverLimit",{limit:this.#y,actual:O});let B=d.getGlyphInfos(),v=d.getGlyphPositions(),w=gn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),_=Sn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale),b=[],m=chunk32YOHLEK_cjs.n(0),F=chunk32YOHLEK_cjs.n(0),C=new Map,T=B.map((M,U)=>{let ee=v[U],Mt=R?.get(x.charCodeAt(M.cluster)),_t=Mt?.advance??ee?.xAdvance??0;b.push(_(_t));let Pt=w(_t),kt=w(ee?.yAdvance??0),Fe=Mt?.glyph??M.codepoint,Ur={id:Fe,cluster:M.cluster-l.length,originX:m,originY:F,advanceX:Pt,advanceY:kt,offsetX:w(ee?.xOffset??0),offsetY:w(ee?.yOffset??0),outline:C.get(Fe)??(()=>{let zt=this.#L(p,Fe);return C.set(Fe,zt),zt})()};return m=chunk32YOHLEK_cjs.n(m+Pt),F=chunk32YOHLEK_cjs.n(F+kt),Ur}),I=h.hExtents(),P=chunk32YOHLEK_cjs.u({text:c,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:T,exactAdvancesX:b,clusters:Eo(c,T,r.direction),fontSpans:T.length===0?[]:[{glyphStart:0,glyphEnd:T.length,font:r.font,fallbackIndex:null}],metrics:{ascent:w(I.ascender),descent:w(-I.descender),lineGap:w(I.lineGap)}},r),z=Mo(P);if(z>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:z});let D=_o(o,z);if(D>this.#x)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),P;for(;this.#n.size>=this.#F||this.#r+D>this.#x;){let M=this.#n.keys().next().value;if(M===void 0)break;let U=this.#n.get(M);this.#n.delete(M),this.#r-=U.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:P,bytes:D,stamp:++this.#b}),this.#r+=D,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),P}catch(p){throw p instanceof A?p:new A("malformedFont",{diagnostic:p instanceof Error?p.message:"HarfBuzz shaping failed"})}}},gt=(e={})=>new pt($r(),e);var St=Object.freeze({maxFontBytes:16*1024*1024,maxInputUtf16:1e6,maxCodepoints:1e6,maxGlyphs:1e6,maxCachedFaces:32,maxCachedFontBytes:64*1024*1024,maxCachedShapes:512,maxOutlineBytes:1024*1024,maxCachedOutlineBytes:16*1024*1024,maxShapedRunBytes:32*1024*1024,maxCachedShapeBytes:64*1024*1024}),Ni=Object.freeze({...St,maxCachedShapes:4096});function Mn(e){let t={maxFontBytes:e.maxFontBytes,maxInputUtf16:e.maxInputUtf16,maxCodepoints:e.maxCodepoints,maxGlyphs:e.maxGlyphs,maxOutlineBytes:e.maxOutlineBytes,maxShapedRunBytes:e.maxShapedRunBytes},n=["docx-editor-layout-harfbuzz-execution-policy",1,Object.entries(t).sort(([r],[o])=>r<o?-1:r>o?1:0).map(([r,o])=>Object.freeze([r,o]))];return `layout-shaper-policy:sha256:${chunkDCILO4XD_cjs.f(new TextEncoder().encode(JSON.stringify(n)))}`}function _n(e,t=St){let n=e?.maxFontBytes??t.maxFontBytes;if(!Number.isSafeInteger(n)||n<=0||n>chunk32YOHLEK_cjs.a)throw new RangeError(`Font shaping byte ceiling must be between 1 and ${chunk32YOHLEK_cjs.a}`);return n===t.maxFontBytes?t:Object.freeze({...t,maxFontBytes:n})}function Pn(e,t,n=false){let r=false,o=Object.freeze({shape(a){if(r)throw new A("disposed");let i=a.environment.font;if(chunk32YOHLEK_cjs.k(i),i.byteLength>t.maxFontBytes)throw new A("fontOverLimit",{limit:t.maxFontBytes,actual:i.byteLength});return e.shape(a)},dispose(){r||(r=true,n&&e.dispose?.());}});return chunk32YOHLEK_cjs.q(e)?chunk32YOHLEK_cjs.p(o):o}var Po=Object.freeze({}),kn=chunk32YOHLEK_cjs.b,ko="16.0.0",zo="none",No=1e3,Do="halfToEven",Dn="cluster-edges-only",Ho="Latn",Uo=new Uint8Array(0);var Z=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function Go(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a=e.substitutions,i=e.defaultFont,s=e.language;if(!Number.isSafeInteger(r)||r<=0||r>chunk32YOHLEK_cjs.a)throw new Z(`Font byte ceiling must not exceed the engine hard maximum of ${chunk32YOHLEK_cjs.a}`);let c=o.length,l=a?.length??0;if(c===0||c>chunk32YOHLEK_cjs.b)throw new Z(`Font source count must be between 1 and ${chunk32YOHLEK_cjs.b}`);if(l>kn)throw new Z(`Font substitution count must not exceed ${kn}`);let u=0,y=[];for(let g=0;g<c;g+=1){let h=o[g],d=h.request,S=h.availability,x=h.id,R=h.hash,L=h.faceIndex,E=S==="forbidden",O=E?Uo:h.bytes;if(!E){if(typeof x!="string"||x.length===0)throw new TypeError("Resolved font id must not be empty");let B;try{B=chunk32YOHLEK_cjs.e(O);}catch{throw new Z(`Font source ${x} must provide genuine bytes`)}if(B>r)throw new Z(`Font source ${x} exceeds the per-font byte ceiling`);if(u+=B,u>chunk32YOHLEK_cjs.c)throw new Z(`Font sources exceed the aggregate byte ceiling of ${chunk32YOHLEK_cjs.c}`)}y.push(t&&chunk32YOHLEK_cjs.g(h)!==void 0?h:Object.freeze({request:Object.freeze({family:d.family,weight:d.weight,style:d.style}),id:x,bytes:O,hash:R,faceIndex:L,...S?{availability:S}:{}}));}let f;if(a){f=[];for(let g=0;g<l;g+=1){let h=a[g],d=h.from,S=h.to,x=h.lineMetrics;f.push(Object.freeze({from:Object.freeze({family:d.family,weight:d.weight,style:d.style}),to:Object.freeze({family:S.family,weight:S.weight,style:S.style}),...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}}let p={epoch:n,maxFontBytes:r,sources:Object.freeze(y),substitutions:f?Object.freeze(f):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:s};return Object.freeze(p)}function zn(e,t){let n=e.map((o,a)=>({value:o,index:a,key:chunk32YOHLEK_cjs.h(t(o))})),r=new Set;for(let o of n){if(r.has(o.key))return e;r.add(o.key);}return n.sort((o,a)=>o.key<a.key?-1:o.key>a.key?1:o.index-a.index).map(({value:o})=>o)}function Wo(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function Nn(e,t){let n=c=>({family:c.family,weight:c.weight,style:c.style}),r=t?e.sources:zn(e.sources,c=>c.request),o=e.substitutions??[],a=t?o:zn(o,c=>c.from),i={sources:r.map(c=>{let l=c.availability??"available",u={request:n(c.request),availability:l};if(l==="forbidden")return {...u,...t?{id:c.id,faceIndex:c.faceIndex,declaredHash:c.hash}:{}};let y=chunk32YOHLEK_cjs.g(c);if(y==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...u,...t?{id:c.id}:{},faceIndex:c.faceIndex,declaredHash:c.hash,actualHash:y,byteLength:c.bytes.byteLength}}),substitutions:a.map(c=>({from:n(c.from),to:n(c.to),lineMetrics:c.lineMetrics?{heightEm:c.lineMetrics.heightEm,baselineEm:c.lineMetrics.baselineEm}:null})),defaultFont:Wo(e.defaultFont,t),language:e.language||"en"},s={epoch:e.epoch,maxFontBytes:e.maxFontBytes};return {version:1,...t?s:{},...i}}var Ko=Symbol("prepared-layout-font-configuration"),He=new WeakMap;function Vo(e){return He.has(e)}function Xo(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function qi(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function xt(e,t){return Hn(e,t,false)}function Zi(e,t){return Hn(e,t,true)}function Hn(e,t,n){let r=Go(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(y=>n&&chunk32YOHLEK_cjs.g(y)!==void 0?y:chunk32YOHLEK_cjs.f(y,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=Nn(o,true),s=a.encode(JSON.stringify(i)),c=Nn(o,false),l=a.encode(JSON.stringify(c)),u=Object.freeze({[Ko]:true,fingerprint:`font-config:${chunkDCILO4XD_cjs.f(s)}`});return He.set(u,{configuration:o,sharedShapingFingerprint:`shared-font-config:${chunkDCILO4XD_cjs.f(l)}`}),u}function jo(e){return xt(e).fingerprint}function Yo(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:Mn(t),ligatureCaretPolicy:Dn,fallback:chunk32YOHLEK_cjs.sa}));return `shaping:${chunkDCILO4XD_cjs.f(n)}`}async function Un(e,t,n,r,o=false){let i=Vo(e)?e:xt(e,t),s=Xo(i),{epoch:c,maxFontBytes:l,sources:u,substitutions:y,defaultFont:f}=s,p=s.language||"en",g=i.fingerprint,h=chunk32YOHLEK_cjs.m({epoch:c,maxFontBytes:l,resources:u,substitutions:y,validateFont:mt,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await ft();let d=Object.freeze({script:Ho,variationAxes:Object.freeze({}),shapingLibrary:ie,unicodeDataVersion:ko,normalization:zo,language:p,features:Po,...o?{documentLigatures:true}:{},fixedPointScale:No,roundingMode:Do});return Object.freeze({fonts:h,shaper:Pn(n??gt(r),r,n===void 0),defaultFont:f,environment:d,ligatureCaretPolicy:Dn,operation:Object.freeze({resourceEpoch:h.epoch,configEpoch:c,extensionFingerprint:g,shapingHash:Yo(d,r),producerVersion:1})})}async function $o(e,t,n){return Un(e,t,void 0,_n(n))}async function Ji(e,t,n,r,o=false){return Un(e,r,t,n,o)}function qo(e){e.shaper.dispose?.();}function bt(e){let t=new Set([0,e.text.length]);for(let r of chunk32YOHLEK_cjs.ya(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function Ue(e,t){return bt(e).includes(t)}function Zo(e,t){return Ue(e,t)}function Jo(e,t,n){return n>=t&&Ue(e,t)&&Ue(e,n)}function Qo(e){let t=chunk32YOHLEK_cjs.ya(e.text);return bt(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var Ft="und";function Vn(){return typeof Intl.Segmenter=="function"}function ea(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Ft})`);return e}function Xn(){let e=new(ea())(Ft,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var ta=/^[\p{L}\p{N}']$/u,na=/^\s$/u;function Gn(e){return ta.test(e)}function Wn(e){return na.test(e)}function Rt(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function jn(e){let t=chunk32YOHLEK_cjs.ya(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Wn(o.text)){let a=r+1;for(;a<t.length&&Wn(t[a].text);)a+=1;n.push(Rt(t,r,a,false)),r=a;continue}if(Gn(o.text)){let a=r+1;for(;a<t.length&&Gn(t[a].text);)a+=1;n.push(Rt(t,r,a,true)),r=a;continue}n.push(Rt(t,r,r+1,false)),r+=1;}return n}function Yn(){return {segment:jn}}function $n(e={}){let t=e.isIntlAvailable??Vn,n=e.createIntlBoundary??Xn,r=e.createFallbackBoundary??Yn;if(!t())return r();try{return n()}catch{return r()}}var Kn;function qn(){return Kn??=$n(),Kn}function ra(e,t=qn()){return t.segment(e)}function oa(e,t){return t.map(n=>({graphemeFrom:chunk32YOHLEK_cjs.Ca(e,n.utf16From),graphemeTo:chunk32YOHLEK_cjs.Ca(e,n.utf16To),wordLike:n.wordLike}))}var Zn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},vt=Object.keys(Zn),Jn=vt.filter(e=>Zn[e]==="coarse-gate"),Ge=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},ue=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},aa={resourceEpoch:Ge,configEpoch:Ge,extensionFingerprint:ue,shapingHash:ue,producerVersion:Ge},ia=(e,t)=>{aa[t](e[t],t);},de=e=>{for(let t of vt)ia(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},sa=(e,t)=>{let n=de(e),r=de(t),o=vt.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},Ct=e=>{let t=e.map(({key:n,fingerprint:r})=>(ue(n,"resource dependency key"),ue(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},ca=e=>(Ge(e.revision,"revision"),ue(e.dependencyFingerprint,"dependencyFingerprint"),ue(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Ct(e.resourceDependencies),...de(e)})),la=(e,t)=>{let n=Ct(e),r=Ct(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function ua(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=la(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Jn)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Et=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=ua(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:ca(r)});}evictEpoch(t){let n=de(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Jn.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=de(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(c=>n.get(c.key)!==c.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Qn(e){return e.projected===true?null:e.range}function pa(e,t,n,r=false){let{page:o,story:a,host:i,noteScopeId:s,noteAreaKind:c}=e,l=a==="header"||a==="footer"?u=>chunk32YOHLEK_cjs.Ia(u,e.origin,{x:o.box.x,y:o.box.y}):void 0;chunk32YOHLEK_cjs.Ra(i,(u,y)=>{let{textboxDepth:f,textboxOwner:p,textboxPath:g,storyOrigin:h}=y,d=f===0?a:"textbox";if(r&&u.marker&&!u.lines.some(S=>S.spans.length>0)){let S=u.lines[0];if(!S||!u.marker)return;let x={range:{paragraphId:u.paragraphId,start:S.range.start,end:S.range.start},text:"",props:[],style:u.marker.style,box:{...S.box,width:0}};n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+x.box.x,y:h.y+x.box.y,width:0,height:x.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:u.paragraphId,line:S,span:x,sourceRange:null});return}for(let S of u.lines){let x=[...chunk32YOHLEK_cjs.Ya(S)].sort((R,L)=>(t.get(R.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(L.paragraphId)??Number.MAX_SAFE_INTEGER));for(let R of x)for(let L of R.spans)n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+L.box.x,y:h.y+L.box.y,width:L.box.width,height:L.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:R.paragraphId,line:S,span:L,sourceRange:Qn(L)});}},e.origin,l);}function fa(e,t,n={}){let r=new Map(chunk32YOHLEK_cjs.fb(e).map((o,a)=>[o,a]));chunk32YOHLEK_cjs.Oa(e,o=>pa(o,r,t,n.spanlessMarkers===true));}var ya=1,er=4,te=Object.freeze({top:0,right:0,bottom:0,left:0}),tr=new WeakMap;function ha(e,t){let n=ga(e);return n===te?t:chunk32YOHLEK_cjs.yf(t,n)}function ga(e){let t=e.vectorShape;if(!t)return te;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return te;let o=tr.get(t);if(o||(o=Sa(t),tr.set(t,o)),o===te)return te;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return te;let s=n>0?i.width/n:i.height/r,c=r>0?i.height/r:i.width/n,l=(f,p,g)=>{if(g<-1e-3)return 0;let h=f*p-Math.max(0,g);return Number.isFinite(h)&&h>0?h:0},u=e.kind==="inlineDrawing"&&e.placeholderGraphicKind===null,y={left:l(o.left,s,i.x-a.x),top:u?0:l(o.top,c,i.y-a.y),right:l(o.right,s,a.x+a.width-(i.x+i.width)),bottom:l(o.bottom,c,a.y+a.height-(i.y+i.height))};return y.left||y.top||y.right||y.bottom?Object.freeze(y):te}function Sa(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,s=(y,f)=>{r=Math.min(r,y),a=Math.max(a,y),o=Math.min(o,f),i=Math.max(i,f);},c=e.overflowVisible===true,l=c?1/0:ya,u=y=>y.x>=-l&&y.x<=t+l&&y.y>=-l&&y.y<=n+l;for(let y of e.components){if(c)for(let d of y.subpathsEmu)for(let S of d)s(S.x,S.y);let f=y.clipEmu?void 0:y.shadow;if(f){let d=1/0,S=1/0,x=-1/0,R=-1/0;for(let B of y.subpathsEmu)for(let v of B){let w=c?v.x:Math.max(0,Math.min(t,v.x)),_=c?v.y:Math.max(0,Math.min(n,v.y));d=Math.min(d,w),S=Math.min(S,_),x=Math.max(x,w),R=Math.max(R,_);}let L=chunk32YOHLEK_cjs.xf(f.blurEmu)*.75+(y.strokeHex!==null?Math.max(1,chunk32YOHLEK_cjs.xf(y.strokeWidthEmu))/2:0),E=chunk32YOHLEK_cjs.xf(f.dxEmu),O=chunk32YOHLEK_cjs.xf(f.dyEmu);d<=x&&(s(d+E-L,S+O-L),s(x+E+L,R+O+L));}if(y.strokeHex===null||y.strokeInset===true)continue;let p=Math.max(1,chunk32YOHLEK_cjs.xf(y.strokeWidthEmu))/2,g=l+Math.max(0,chunk32YOHLEK_cjs.xf(y.strokeOutsetEmu??0)),h=d=>d.x>=-g&&d.x<=t+g&&d.y>=-g&&d.y<=n+g;y.subpathsEmu.forEach((d,S)=>{let x=y.subpathsClosed?.[S]!==false,R=xa(d,x),L=x&&R.length>2?R.length:R.length-1,E=[];for(let B=0;B<L;B+=1){let v=R[B],w=R[(B+1)%R.length],_=Math.hypot(w.x-v.x,w.y-v.y),b={x:-(w.y-v.y)/_,y:(w.x-v.x)/_};if(E.push(b),!!ba(v,w,-g,t+g,-g,n+g))for(let m=0;m<2;m+=1){let F=J[m],C=v.x+(w.x-v.x)*F,T=v.y+(w.y-v.y)*F;s(C+b.x*p,T+b.y*p),s(C-b.x*p,T-b.y*p);}}if(!x&&E.length&&(y.strokeCap==="round"||y.strokeCap==="square")){for(let[B,v,w]of [[R[0],E[0],-1],[R[R.length-1],E[E.length-1],1]])if(h(B))if(y.strokeCap==="round")s(B.x-p,B.y-p),s(B.x+p,B.y+p);else {let _=B.x+w*v.y*p,b=B.y-w*v.x*p;s(_+v.x*p,b+v.y*p),s(_-v.x*p,b-v.y*p);}}let O=x&&R.length>2?E.length:E.length-1;for(let B=0;B<O;B+=1){let v=R[(B+1)%R.length];if(!h(v))continue;if(y.strokeJoin==="round"){s(v.x-p,v.y-p),s(v.x+p,v.y+p);continue}if(y.strokeJoin==="bevel")continue;let w=E[B],_=E[(B+1)%E.length],b=1+w.x*_.x+w.y*_.y;if(b<2/(er*er))continue;let m=w.y*-_.x- -w.x*_.y;if(m===0)continue;let F=m>0?-1:1;s(v.x+F*(w.x+_.x)*p/b,v.y+F*(w.y+_.y)*p/b);}});for(let d of y.arrowheadsEmu??[])if(!(!d[0]||!u(d[0])))for(let S of d)s(S.x,S.y);}return r>=0&&o>=0&&a<=t&&i<=n?te:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function xa(e,t){let n=[];for(let a of e){let i=n[n.length-1];(!i||i.x!==a.x||i.y!==a.y)&&n.push(a);}let r=n[0],o=n[n.length-1];return t&&n.length>1&&r.x===o.x&&r.y===o.y&&n.pop(),n}var J=new Float64Array(2);function ba(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y;return J[0]=0,J[1]=1,We(-i,e.x-n)&&We(i,r-e.x)&&We(-s,e.y-o)&&We(s,a-e.y)}function We(e,t){if(e===0)return t>=0;let n=t/e;return e<0?J[0]=Math.max(J[0],n):J[1]=Math.min(J[1],n),J[0]<=J[1]}var Ra="abcdefghijklmnopqrstuvwxyz";function N(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function X(e,t,n,r,o){let a=r.shaping?.context;return e.shape({text:o,fontSizeHalfPoints:N(r),bidiLevel:r.shaping?.direction==="rtl"?1:0,environment:Fa(t,n,r),...a?{context:a}:{}})}var nr=new WeakMap;function Fa(e,t,n){if(!Object.isFrozen(e)||!Object.isFrozen(e.features)||!Object.isFrozen(e.variationAxes)||!Object.isFrozen(e.shapingLibrary))return rr(e,t,n);let r=n.shaping?.direction??"ltr",o=n.shaping?.script,a=`${r}|${o??""}|${chunk32YOHLEK_cjs.w(n)?1:0}|${e.documentLigatures?chunk32YOHLEK_cjs.O(n):""}|${n.smallCaps?1:0}`,i=nr.get(e);i||nr.set(e,i=new WeakMap);let s=i.get(t);s||i.set(t,s=new Map);let c=s.get(a);return c||s.set(a,c=rr(e,t,n)),c}function rr(e,t,n){return chunk32YOHLEK_cjs.r({...e,font:t,direction:n.shaping?.direction??"ltr",script:n.shaping?.script==="Zyyy"?e.script:n.shaping?.script??e.script,features:{...e.features,kern:chunk32YOHLEK_cjs.w(n)?1:0,...e.documentLigatures?chunk32YOHLEK_cjs.N(n):{},...n.smallCaps?{smcp:1}:{}},fallbackOrder:[]})}function Ke(e,t,n,r,o){let a=o.get(n);if(a!==void 0)return a;let i=true;try{for(let s of Ra){let c=X(e,t,n,{...r,smallCaps:!0},s),l=X(e,t,n,{...r,smallCaps:!1},s);if(!(c.glyphs.length!==l.glyphs.length||c.glyphs.some((y,f)=>y.id!==l.glyphs[f]?.id))){i=!1;break}}}catch{i=false;}return o.set(n,i),i}var Ca=new Map([["garamond",{family:"Garamond",em:or(1765,539,0)}],["segoe ui",{family:"Segoe UI",em:or(2210,514,0)}]]);function or(e,t,n){return {heightEm:(e+t+n)/2048,baselineEm:(e+n)/2048}}function Lt(e){return e?Ca.get(e.trim().toLowerCase()):void 0}function Ve(e){let t=Lt(e.fontFamily);if(!t)return;let n=N(e)/2*chunk32YOHLEK_cjs.ra(e);return {height:t.em.heightEm*n,baseline:t.em.baselineEm*n}}var Ea=new Map([["roman","serif"],["swiss","sans"],["modern","mono"]]);function bs(e,t){return t==="fixed"?"mono":e?Ea.get(e):void 0}var va=new Map([["calibri","sans"],["arial","sans"],["helvetica","sans"],["verdana","sans"],["tahoma","sans"],["segoe ui","sans"],["aptos","sans"],["century gothic","sans"],["carlito","sans"],["cambria","serif"],["times new roman","serif"],["georgia","serif"],["garamond","serif"],["book antiqua","serif"],["palatino linotype","serif"],["caladea","serif"],["courier new","mono"],["consolas","mono"]]);function ar(e){let t=e.trim().toLowerCase(),n=va.get(t);if(n)return n;let r=t.split(/[\s_-]+/);if(r.includes("mono")||r.includes("monospace")||r.includes("courier"))return "mono";if(r.includes("sans"))return "sans";if(r.includes("serif")||r.includes("roman"))return "serif"}var Rs={serif:"Times New Roman",sans:"Arial",mono:"Courier New"};var Bt="Calibri, Carlito, Helvetica, Arial, sans-serif",La='"Times New Roman", "Liberation Serif", Tinos, serif',Ba='"Courier New", "Liberation Mono", Cousine, monospace',Ta='Batang, AppleMyungjo, "Noto Serif CJK KR", serif';function wa(e,t=Bt,n){if(!e)return t;if(n?.(e))return Ta;let r=ar(e);return r==="serif"?La:r==="mono"?Ba:t}var ws=new Map([["calibri","Carlito"]]),Oa=65536,Aa=256;function ir(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function sr(e){let t=new Map,n=null,r=null,o=0,a=s=>{s.older?s.older.newer=s.newer:n=s.newer,s.newer?s.newer.older=s.older:r=s.older,s.older=null,s.newer=null;},i=s=>{s.older=r,s.newer=null,r?r.newer=s:n=s,r=s;};return {get(s){let c=t.get(s);if(c!==void 0)return c!==r&&(a(c),i(c)),c.value},set(s,c){let l=t.get(s);if(l){l.value=c,l!==r&&(a(l),i(l));return}let u={key:s,value:c,older:null,newer:null};for(t.set(s,u),i(u);t.size>e&&n;){let y=n;a(y),t.delete(y.key),o+=1;}},get size(){return t.size},get evictions(){return o}}}var cr=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function lr(e=null){return e!=null&&typeof e.measureText=="function"}function ur(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bt,r=e.context??null;if(!lr(r))return null;let o=r,a=sr(ir(e.maxWidthEntries,Oa)),i=sr(ir(e.maxMetricsEntries,Aa)),s=e.fontAlias,c=new Map,l=f=>{let p=c.get(f);if(p!==void 0)return p;let g="The quick brown fox 0123",h=false;for(let d of ["monospace","serif"]){o.font=`32px ${d}`;let S=o.measureText(g).width;if(o.font=`32px "${f}", ${d}`,o.measureText(g).width!==S){h=true;break}}return c.set(f,h),h},u=f=>{let p=f.fontFamily&&cr.test(f.fontFamily)?f.fontFamily:null,g=p?s?.(p):void 0,h=g&&cr.test(g)?g:null,d=wa(p,n,e.serifHangulFace),S=p?h?`"${h}", "${p}", ${d}`:`"${p}", ${d}`:n,x=f.bold?"bold":"normal",R=f.italic?"italic":"normal",L=f.smallCaps?"small-caps":"normal",E=f.fontSizePt*chunk32YOHLEK_cjs.ra(f)*t;return `${R} ${L} ${x} ${E}px ${S}`},y=(f,p,g)=>f/t*(g.horizontalScalePercent/100)+p.length*g.characterSpacingPt;return {measure(f,p){if(f.length===0)return 0;let g=u(p),h=chunk32YOHLEK_cjs.y(p,f),d=`${g}\0${h}\0${f}`,S=a.get(d);if(S!==void 0)return y(S,f,p);o.font=g,"fontKerning"in o&&(o.fontKerning=h?"normal":"none");let x=o.measureText(f).width;return a.set(d,x),y(x,f,p)},inkBounds(f,p){if(!f||f.length>2||p.shaping?.direction==="rtl"||chunk32YOHLEK_cjs.ya(f).length!==1)return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunk32YOHLEK_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.direction,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.direction="ltr"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.direction=h);}let S=d.actualBoundingBoxLeft,x=d.actualBoundingBoxRight;if(S===void 0||x===void 0||!Number.isFinite(S)||!Number.isFinite(x))return;let R=p.horizontalScalePercent/(100*t);return {left:-S*R,right:x*R}},textOutline(f,p){if(!f||p.shaping?.direction==="rtl")return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunk32YOHLEK_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.textBaseline,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.textBaseline="alphabetic"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.textBaseline=h);}let S=[-(d.actualBoundingBoxLeft??NaN),-(d.actualBoundingBoxAscent??NaN),d.actualBoundingBoxRight??NaN,d.actualBoundingBoxDescent??NaN].map(O=>O/t);if(S.some(O=>!Number.isFinite(O)))return;let[x,R,L,E]=S;if(!(!(L>x)||!(E>R)))return {path:null,ink:{left:x,top:R,right:L,bottom:E}}},lineMetrics(f){let p=f.fontSizePt*chunk32YOHLEK_cjs.ra(f),g=u(f),h=i.get(g);if(h)return h;let d=Lt(f.fontFamily),S=d&&!l(d.family)&&Ve(f);if(S)return i.set(g,S),S;let x=p*1.15,R=p*.8;o.font=g,"fontKerning"in o&&(o.fontKerning=chunk32YOHLEK_cjs.w(f)?"normal":"none");let L=o.measureText("Hxg"),E=L.fontBoundingBoxAscent,O=L.fontBoundingBoxDescent;if(typeof E=="number"&&Number.isFinite(E)&&E>0&&(R=E/t,typeof O=="number"&&Number.isFinite(O)&&O>=0)){let v=(E+O)/t;v>0&&(x=Math.max(v,x));}x>0||(x=p*1.15);let B={height:x,baseline:R};return i.set(g,B),B}}}function Ia(e=1,t={}){let n=ur({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:chunk32YOHLEK_cjs.ta(),producer:"fixed-measurer"}}function Ma(e){let t;return n=>{t===void 0&&(t=chunk32YOHLEK_cjs.jd(e.pages)?.hosts??null);let r=t?.get(n);return r?chunk32YOHLEK_cjs.hd(r.pageNumber,r.format):null}}function dr(e,t){let n=chunk32YOHLEK_cjs.uf(e,t.displayMode??chunk32YOHLEK_cjs.mb),r=chunk32YOHLEK_cjs.Od({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunkDCILO4XD_cjs.pj(t.package,"footnote"),endnotesPart:chunkDCILO4XD_cjs.pj(t.package,"endnote")}:void 0,a=chunk32YOHLEK_cjs.ie(n,r,o,t.package?chunk32YOHLEK_cjs.fe(t.package,e,n):void 0,t.displayMode??chunk32YOHLEK_cjs.mb);return {blocks:n,notes:o,context:a}}function pr(e,t,n,r,o){for(let a of t){if(r.length>=chunkDCILO4XD_cjs.yn)return;if(n.tokenForParagraph(a.id)!==""&&chunkDCILO4XD_cjs.Bn(e,a.id)===null)for(let i of chunkDCILO4XD_cjs.An(a)){if(r.length>=chunkDCILO4XD_cjs.yn)return;if(!i.rewritable)continue;let s=chunk32YOHLEK_cjs.Wc(i.instruction);if(s===null)continue;let c=n.liveValueOf(i.fieldNodeId,s);if(c===null&&o&&n.pageRefProjectionOf){let l=n.pageRefProjectionOf(i.fieldNodeId,s);if(l){let u=o(l.targetParagraphId);u!==null&&u.length>0&&chunk32YOHLEK_cjs.id(l.calibration,l.cached,u,Number.NaN)&&(c=u);}}c===null||c===i.cachedText||c.length>chunkDCILO4XD_cjs.zn||c.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:c});}}}function _a(e,t){let{blocks:n,context:r}=dr(e,t);if(r===null)return null;let o=[];return pr(e,chunk32YOHLEK_cjs.Zc(chunk32YOHLEK_cjs.wc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Hs(e,t){let{notes:n,context:r}=dr(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:s}of a){if(!s)continue;let c=[];for(let l of chunk32YOHLEK_cjs.ge(s,t.displayMode??chunk32YOHLEK_cjs.mb)){if(c.length>=chunkDCILO4XD_cjs.yn)break;pr(s,chunk32YOHLEK_cjs.Zc(chunk32YOHLEK_cjs.wc(l)),r,c);}c.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:c}});}return o}function Pa(e){return e.box}function fr(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)fr(o,t);}function ka(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunkDCILO4XD_cjs.ec*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let c of r)t.get(c)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let c=chunkDCILO4XD_cjs.oc(s);c&&n(c,a,i+1),r.pop();let l=t.get(s.id);l&&l.length===0&&a!==null&&l.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function za(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function Na(e,t){let n=chunkDCILO4XD_cjs.sc(e.root);if(n.length===0)return Da;let r=new Map;t.pages.forEach((i,s)=>{(l=>{for(let u of l){let y=new Set;fr(u,y);for(let f of y){let p=r.get(f)??[];p.push({pageIndex:s,box:Pa(u)}),r.set(f,p);}}})(i.fragments);});let o=ka(e.root),a=[];for(let i of n){let s=chunkDCILO4XD_cjs.qc(i.node),c=[...i.ancestors.map(f=>chunkDCILO4XD_cjs.qc(f).lock),s.lock],l=o.get(i.node.id)??[],u=new Map;for(let f of l)for(let p of r.get(f)??[]){let g=u.get(p.pageIndex);u.set(p.pageIndex,g?za(g,p.box):p.box);}let y=[...u.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:s.type,level:chunkDCILO4XD_cjs.rc(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunkDCILO4XD_cjs.vc(c),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:l,fragments:y});}return a}var Da=Object.freeze([]);var Ha=4096;function Ua(e,t=0){if(!(e instanceof Uint8Array)||!Number.isSafeInteger(t)||t<0||e.byteLength<12)return;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=(h,d)=>Number.isSafeInteger(h)&&Number.isSafeInteger(d)&&h>=0&&d>=0&&h<=e.length-d,o=h=>n.getUint16(h,false),a=h=>n.getUint32(h,false),i=0,s=false;if(a(0)===1953784678){s=true;let h=a(4),d=a(8);if(![65536,131072].includes(h)||!d||t>=d||!r(12,d*4))return;i=a(12+t*4);}else if(t!==0)return;if(!r(i,12)||![65536,1330926671,1953658213].includes(a(i)))return;let c=o(i+4);if(!c||c>Ha||!r(i+12,c*16))return;let l=new Map;for(let h=0;h<c;h++){let d=i+12+h*16,S=a(d),x=a(d+8),R=a(d+12);if(l.has(S)||!r(x,R))return;l.set(S,{offset:x,length:R});}let u=l.get(1751474532),y=l.get(1330851634);if(!u||u.length<20||!y||y.length<4)return;let f=o(u.offset+18),p=o(y.offset),g=n.getInt16(y.offset+2,false);if(!(f<16||f>16384||p>5||g<=0))return Object.freeze({faceIndex:t,collection:s,unitsPerEm:f,os2Version:p,xAvgCharWidth:g,averageAdvanceEm:g/f})}function mr(e,t=Ua){if(typeof e!="function"||typeof t!="function")return;let n=new WeakMap;return r=>{if(!chunk32YOHLEK_cjs.fc(r))return;let o;try{o=e(r);}catch{return}if(!o||typeof o!="object"||o.substitution!==null||o.family.trim().toLowerCase()!==r.fontFamily?.trim().toLowerCase()||typeof o.hash!="string"||!/^sha256:[0-9a-f]{64}$/u.test(o.hash)||!Number.isSafeInteger(o.faceIndex)||o.faceIndex<0)return;let a=n.get(o);if(a===void 0&&(a=t(o.bytes,o.faceIndex)??null,n.set(o,a)),!a)return;let i=r.fontSizePt*a.averageAdvanceEm/2;return Number.isFinite(i)&&i>=0&&i<=r.fontSizePt?i:void 0}}var W=(e,t)=>e[t]<<8|e[t+1],Q=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Ga(e,t){let n=(i,s)=>i>=0&&i+s<=e.length;if(!n(0,12))return null;let r=Q(e,0)===1953784678;if(r&&!n(12+t*4,4))return null;let o=r?Q(e,12+t*4):0;if(!n(o,12))return null;let a=W(e,o+4);for(let i=0;i<a;i+=1){let s=o+12+i*16;if(!n(s,16))return null;if(Q(e,s)!==1668112752)continue;let c=Q(e,s+8);if(!n(c,4))return null;let l=null,u=null,y=W(e,c+2);for(let f=0;f<y;f+=1){let p=c+4+f*8;if(!n(p,8))return null;let g=W(e,p),h=W(e,p+2),d=c+Q(e,p+4);if(!n(d,2)||!(g===0||g===3&&(h===1||h===10)))continue;let x=W(e,d);x===12&&u===null&&(u=d),x===4&&l===null&&(l=d);}return u!==null?{format:12,offset:u}:l!==null?{format:4,offset:l}:null}return null}function Wa(e,t,n){let r=(u,y)=>u>=0&&u+y<=e.length,o=t.offset;if(t.format===12){if(!r(o,16))return false;let u=Q(e,o+12),y=0,f=Math.min(u,Math.floor((e.length-o-16)/12))-1;for(;y<=f;){let p=y+f>>>1,g=o+16+p*12,h=Q(e,g),d=Q(e,g+4);if(n<h)f=p-1;else if(n>d)y=p+1;else return Q(e,g+8)+(n-h)!==0}return false}if(n>65535||!r(o,14))return false;let a=W(e,o+6)>>>1,i=o+14,s=i+a*2+2,c=s+a*2,l=c+a*2;if(!r(l,a*2))return false;for(let u=0;u<a;u+=1){if(n>W(e,i+u*2))continue;let y=W(e,s+u*2);if(n<y)return false;let f=W(e,c+u*2),p=l+u*2,g=W(e,p);if(g===0)return (n+f&65535)!==0;let h=p+g+(n-y)*2;if(!r(h,2))return false;let d=W(e,h);return d!==0&&(d+f&65535)!==0}return false}var yr=new WeakMap;function hr(e,t){let n=chunk32YOHLEK_cjs.i(e),r=yr.get(e);return r===void 0&&(r=Ga(n,e.faceIndex),yr.set(e,r)),r?Wa(n,r,t):void 0}var gr=new WeakMap;function Ka(e){let t=gr.get(e);if(t!==void 0)return t;let n=chunk32YOHLEK_cjs.i(e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=false,a=r.getUint32(0)===1953784678?r.getUint32(12+e.faceIndex*4):0,i=r.getUint16(a+4);for(let s=0;s<i;s++){let c=a+12+s*16;if(r.getUint32(c)!==1330851634)continue;let l=r.getUint32(c+8),u=r.getUint32(c+12);u>=86&&l<=n.byteLength-u&&r.getUint16(l)>=1&&(o=(r.getUint32(l+78)&1966080)!==0);break}return gr.set(e,o),o}var Sr=1.3;function xr(e,t,n,r,o,a=false){let i=n.height-r;if(!(Math.abs(i-t)<=o)&&!a||!Ka(e))return n;let c=a?i*Sr:Math.max(n.height,t*Sr),l=n.baseline-r;return {height:c,baseline:l+(c-i)/2}}var Va=.89111328125,Xa=443/2048,ja=87/2048,Ya=1/2048,$a=new Set(["Arab","Hebr","Syrc","Thaa","Nkoo"]);function br(e){return e.latinLane===void 0&&!$a.has(e.shaping?.script??"")}function Rr(e,t,n,r,o,a=true){if(!a||r!==0||!(o>0)||e.trim().toLowerCase()!=="times new roman")return r;let i=(s,c)=>Math.abs(s/o-c)<=Ya;return i(t,Va)&&i(n,Xa)?ja*o:r}var qa=.5;function Za(e,t){if(t.fontFamily===null)return false;let n=e.substitution;return n!==null&&(n.lineMetrics!==void 0||!chunkDCILO4XD_cjs.me(n.requested.family,n.resolved.family))?false:e.family===t.fontFamily||chunkDCILO4XD_cjs.me(e.family,t.fontFamily)}function Fr(e,t,n,r,o){let a=new WeakMap;return (i,s)=>{let c=chunk32YOHLEK_cjs.ra(s),l=a.get(i);l||(l=new Map,a.set(i,l));let u=N(s),y=br(s),f=Za(i,s),p=(y?u:-u)+(f?qa:0),g=l.get(p);if(g)return c===1?g:{height:g.height*c,baseline:g.baseline*c};let h,d=true,S=i.substitution?.lineMetrics;if(S){let x=u/2;h={height:S.heightEm*x,baseline:S.baselineEm*x};}else try{let x=X(e,t,i,s,""),R=x.metrics.ascent/t.fixedPointScale,L=x.metrics.descent/t.fixedPointScale,E=u/2,O=R+L,B=E*r,v=O>B?B/O:1,w=O*v,_=x.metrics.lineGap/t.fixedPointScale,b=Math.min(Math.max(0,Rr(i.family,R,L,_,E,y)),w*o),m=w+b;m>0?h=xr(i,E,{height:m,baseline:R*v+b},b,2/t.fixedPointScale,f):(h=n.lineMetrics(s),d=!1);}catch{h=n.lineMetrics(s),d=false;}return d?(l.set(p,h),c===1?h:{height:h.height*c,baseline:h.baseline*c}):h}}var Tt=2048,Ja=32,Qa=new Map([["symbol",{ascent:2059,descent:450,advances:[512,682,1460,1024,1124,1706,1593,899,682,682,1024,1124,512,1124,512,569,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,569,569,1124,1124,1124,909,1124,1479,1366,1479,1253,1251,1563,1235,1479,682,1292,1479,1405,1821,1479,1479,1573,1518,1139,1212,1251,1413,899,1573,1321,1628,1251,682,1767,682,1348,1024,1024,1292,1124,1124,1012,899,1067,842,1235,674,1235,1124,1124,1180,1067,1124,1124,1067,1124,1235,899,1180,1460,1405,1010,1405,1012,983,410,983,1124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,506,1124,342,1460,1024,1542,1542,1542,1542,2134,2021,1235,2021,1235,819,1124,842,1124,1124,1460,1012,942,1124,1124,1124,1124,2048,1235,2048,1348,1686,1405,1628,2021,1573,1573,1686,1573,1573,1460,1460,1460,1460,1460,1460,1460,1573,1460,1618,1618,1823,1686,1124,512,1460,1235,1235,2134,2021,1235,2021,1235,1012,674,1618,1618,1610,1460,786,786,786,786,786,786,1012,1012,1012,1012,0,674,561,1405,1405,1405,786,786,786,786,786,786,1012,1012,1012,0]}],["wingdings",{ascent:1841,descent:432,advances:[2048,2110,2344,2665,2752,1830,2492,938,2220,1826,2319,2319,2399,2399,2951,2956,2245,2751,1431,1431,1826,1135,1233,2196,1941,2208,1924,1825,1826,1826,1825,1863,1863,1203,1624,1381,1381,1929,1929,1124,1124,1826,1727,1727,1727,2275,1352,1739,2230,1819,1803,1332,1665,1529,1529,1480,1420,1627,1813,1826,1834,1825,2368,2159,1974,2233,1927,1911,1937,2099,1902,2245,2181,1597,2150,2603,1529,1951,1529,1825,1825,1825,1825,937,1529,2020,1825,1183,2171,2171,1825,1826,1826,1086,1086,0,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,2048,2048,2048,2048,2048,2048,2048,2048,641,937,641,1825,1825,1825,1825,1825,1951,937,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2146,2146,2146,2146,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2566,2566,1627,1627,1825,1825,1825,1825,1825,1825,2006,2006,1825,1825,1589,1589,1589,1589,2186,2186,1825,1825,1787,1787,1787,1787,1825,1825,1660,1660,2171,1660,1601,1601,1601,1601,987,789,1301,1609,1826,1826,2119]}],["wingdings 2",{ascent:1727,descent:432,advances:[2048,2110,2090,2073,2086,2344,2045,2220,989,1431,1431,1826,1431,1431,1826,1431,1431,1826,1431,1431,2320,2246,1826,1826,1826,2320,2170,2170,1381,1381,1938,1938,1938,1938,1928,1928,1928,1928,1047,1047,1047,1047,1178,1178,1178,1178,1826,1321,1568,1826,1826,1826,1826,1825,1825,1826,1826,2226,1727,1548,1579,984,1035,864,1018,2048,2048,2048,2048,2048,2048,2048,2048,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,0,1899,1899,1453,1453,1673,1332,1431,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2048,2048,542,740,1135,1825,1825,1825,1825,1825,1825,1825,542,740,1135,1825,1825,1825,1825,1825,1825,1825,1825,1825,624,764,903,1461,2020,2020,2020,2020,2020,542,641,740,1135,1529,1529,1085,1085,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1496,1825,0,0,0,0,0,0]}],["wingdings 3",{ascent:1900,descent:432,advances:[2048,1825,1825,1135,1135,1444,1444,1444,1444,1825,1825,1135,1135,1677,1677,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1825,1825,1455,1455,1455,1455,2010,2010,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2220,1825,1751,1114,1115,1660,1660,1930,1930,1930,1930,1924,1924,1924,1924,1930,1930,1931,1931,1825,1825,1232,1232,1444,1444,1444,1444,1825,1232,2005,2005,2005,2005,1801,1801,1801,1801,1801,1801,1801,1801,1085,1085,1825,0,1825,1825,1825,1825,1825,1627,1627,1825,1825,1825,1825,789,789,1825,1825,987,987,1825,1825,1184,1184,1825,1825,1579,1579,1825,1825,888,888,1825,1825,1381,1381,1825,1825,1875,1875,1825,1825,1825,1825,1825,1825,1825,789,592,493,394,1825,1825,1825,1825,1825,1085,1085,1381,1381,1628,1628,1184,1184,900,900,1825,1825,1019,1019,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1291,1291,1291,1291,1961,1961,1825,1825,1540,1540,1540,1540,2096,2096,1825,1825,1688,1688,1688,1688,2277,2277,1825,1825,1885,1885,1885,1885,543,543,1234,1234,766,766,1234,1234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],["webdings",{ascent:1638,descent:410,advances:[1024,2048,2048,2048,2048,2028,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1100,1100,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1144,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,0,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2500,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1377,1377,2048,1726,1058,2048,2048,2048,2048,877,1240,2048,2048,2048,2048,1357,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2645,2048,2048,2048,2048]}]]);function ei(e){if(chunkDCILO4XD_cjs.b(e))return Qa.get(e.toLowerCase())}function Cr(e,t,n,r){let o=N(r)/2*chunk32YOHLEK_cjs.ra(r)*(r.horizontalScalePercent/100)/Tt,a=[];for(let i=0;i<n.length;i++){let s=chunkDCILO4XD_cjs.c(n.charCodeAt(i),t),c=s===null?0:e.advances[s-Ja]??0;if(c===0)return;a.push(c*o+r.characterSpacingPt);}return a}function Er(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=ei(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.measure(r,o);let s=0;for(let c of i)s+=c;return s},caretAdvances(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.caretAdvances?.(r,o);let s=[0];for(let c of i)s.push(s[s.length-1]+c);return s},lineMetrics(r,o){let a=n(r);if(!a)return e.lineMetrics(r,o);let i=N(r)/2*chunk32YOHLEK_cjs.ra(r);return {height:(a.ascent+a.descent)*i/Tt,baseline:a.ascent*i/Tt}}}}var ti={M:2,L:2,Q:4,C:6,Z:0},vr=e=>{let t=Math.round(e*1e3)/1e3;return String(Object.is(t,-0)?0:t)};function wt(e,t,n){if(!(t>0)||!(n>0))return;let r=[],o=0,a=1/0,i=-1/0,s=1/0,c=-1/0;for(let l of e.glyphs){if(l.id===0)return;let u=l.outline.path,y=l.outline.unitsPerEm;if(!u)continue;if(!(y>0)||!u.startsWith("M")||/[^MLQCZ0-9eE+.,\s-]/u.test(u))return;let f=t*(l.drawScale??1)/y,p=(l.originX+l.offsetX)/n,g=(l.originY+l.offsetY)/n;for(let h of u.matchAll(/([MLQCZ])([^MLQCZ]*)/gu)){let d=h[1],S=h[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(S.length!==ti[d]||S.some(R=>!Number.isFinite(R)))return;let x=d;for(let R=0;R<S.length;R+=2){let L=p+S[R]*f,E=-(g+S[R+1]*f);a=Math.min(a,L),i=Math.max(i,L),s=Math.min(s,E),c=Math.max(c,E),x+=`${R?" ":""}${vr(L)} ${vr(E)}`;}if(o+=x.length,o>2e6)return;r.push(x);}}if(!(!r.length||!(i>a)||!(c>s)))return Object.freeze({path:r.join(""),ink:Object.freeze({left:a,top:s,right:i,bottom:c})})}var Ot=new WeakMap;function ni(e){let t=Ot.get(e);if(t!==void 0)return t??void 0;let n=e.path;if(!n.startsWith("M")||n.length>1e6||/[^MLQCZ0-9eE+.,\s-]/u.test(n))return;let r=1/0,o=-1/0,a=n.matchAll(/([MLQCZ])([^MLQCZ]*)/gu);for(let s of a){let c=s[1]==="Z"?0:s[1]==="C"?6:s[1]==="Q"?4:2,l=s[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(l.length!==c||l.some(u=>!Number.isFinite(u))){Ot.set(e,null);return}for(let u=0;u<l.length;u+=2)r=Math.min(r,l[u]),o=Math.max(o,l[u]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return Ot.set(e,i??null),i}function Lr(e,t,n,r){if(e.clusters.length!==1||e.glyphs.length===0)return;let o=1/0,a=-1/0;for(let s of e.glyphs){if(s.id===0)return;let c=ni(s.outline),l=s.outline.unitsPerEm;if(!c||!(l>0))return;let u=(s.originX+s.offsetX)/n;o=Math.min(o,u+c.left*t*(s.drawScale??1)/l),a=Math.max(a,u+c.right*t*(s.drawScale??1)/l);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}function ri(e,t,n){if(t<12)return null;if(e.getUint32(0)!==1953784678)return 0;let o=12+(Number.isSafeInteger(n)&&n>0?n:0)*4;if(o+4>t)return null;let a=e.getUint32(o);return a+12<=t?a:null}function Br(e,t,n,r,o){let a=e.getUint16(n+4);if(a>4096||n+12+a*16>t)return null;for(let i=0;i<a;i+=1){let s=n+12+i*16;if(e.getUint32(s)!==r)continue;let c=e.getUint32(s+8),l=e.getUint32(s+12);return l<o||c+l>t?null:c}return null}function Tr(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=ri(r,n,t);if(o===null)return null;let a=Br(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let s=Br(r,n,o,1330851634,30);if(s===null)return null;let c=r.getInt16(s+26)/i,l=r.getInt16(s+28)/i;return !(c>0)||c>1||!(Math.abs(l)<=1)?null:{offsetEm:l,thicknessEm:c}}var Xe=.02;function At(e,t){return e.bold===true&&t.request.weight<600}function wr(e){return e.advanceX>0&&e.outline.path.length>0}function Or(e){let t=0;for(let n of e.glyphs)wr(n)&&t++;return t}function Ar(e,t,n){if(n<=0)return e;let r=new Array(e.length).fill(0);for(let a of t.glyphs){if(!wr(a))continue;let i=Math.min(Math.max(a.cluster+1,1),e.length-1);r[i]+=n;}let o=0;return e.map((a,i)=>(o+=r[i],a+o))}var oi=.5,ai=4096,ii=4,Ir=4096;function Mr(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Er(e.fallback),i=t??{shapingLibrary:n.shapingLibrary,unicodeDataVersion:n.unicodeDataVersion,script:n?.script??"Latn",fixedPointScale:n?.fixedPointScale??1e3,normalization:n?.normalization??"none",features:n?.features??{},roundingMode:n?.roundingMode??"halfToEven",language:n?.language??"en",variationAxes:{}},s=new WeakMap,c=new WeakMap,l=chunk32YOHLEK_cjs.q(r),u=Fr(r,i,a,ii,oi),y=new WeakMap,f=new WeakMap,p=new Array(Ir),g=0,h=(b,m,F)=>{let C=p[g];C&&C.cache.delete(C.text),b.set(m,F),p[g]={cache:b,text:m},g=(g+1)%Ir;},d=b=>{let m=y.get(b);if(m!==void 0)return m;let F=o(b);return y.set(b,F),F},S=mr(d),x=(b,m,F)=>{let C=F?c:s,T=C.get(b);T||(T=new Map,C.set(b,T));let I=T.get(m);return I||(I=new Map,T.set(m,I)),I},R=new WeakMap,L=b=>{if(!b.shaping?.wordSpacingPt)return b;let m=R.get(b);return m||(m={...b,shaping:{...b.shaping,wordSpacingPt:void 0}},R.set(b,m)),m},E=(b,m)=>m.shaping?.wordSpacingPt?chunk32YOHLEK_cjs.cc(b)*m.shaping.wordSpacingPt:0,O=(b,m)=>a.measure(b,L(m))+E(b,m),B=(b,m)=>{let F=Math.max(0,a.measure(b,L(m))),C=a.caretAdvances?.(b,L(m))??chunk32YOHLEK_cjs.ac(b,F);if(!C||C.length!==b.length+1)return chunk32YOHLEK_cjs.ac(b,O(b,m));let T=Math.max(0,O(b,m)),I=0,P=0;return C.map((z,D)=>{if(D===0)return 0;b[D-1]===" "&&P++;let M=z+P*(m.shaping?.wordSpacingPt??0);return I=Math.max(I,Math.min(T,Number.isFinite(M)?M:I)),D===b.length?T:I})},v=new WeakMap,w=new WeakMap;return chunk32YOHLEK_cjs.ec({hasResolvedFont(b){return d(b)!==null},faceCovers(b,m){let F=d(m);if(!F)return;let C=w.get(F);C||(C=new Map,w.set(F,C));let T=C.get(b);if(T!==void 0)return T;let I=true;for(let P of b){let z=hr(F,P.codePointAt(0));if(z===void 0)return;if(!z){I=false;break}}return C.size<ai&&C.set(b,I),I},strikeoutMetrics(b){let m=d(b);if(!m)return;let F=v.get(m);if(F===void 0&&(F=Tr(m.bytes,m.faceIndex),v.set(m,F)),!F)return;let C=N(b)/2*chunk32YOHLEK_cjs.ra(b);return {offsetPt:F.offsetEm*C,thicknessPt:F.thicknessEm*C}},measure(b,m){if(b.length===0)return 0;let F=d(m);if(!F)return O(b,m);let C=x(F,N(m),m.smallCaps),T=m.shaping?.context,I=m.shaping?`1:${JSON.stringify(T?[m.shaping.script,m.shaping.direction,b,T.before,T.after]:[m.shaping.script,m.shaping.direction,b])}`:`0:${b}`,P=At(m,F),z=`${chunk32YOHLEK_cjs.w(m)?1:0}:${P?1:0}:${chunk32YOHLEK_cjs.O(m)}:${I}`,D=C.get(z);if(D===void 0){let M=0;try{if(m.smallCaps&&!Ke(r,i,F,m,f))return O(b,m);let U=X(r,i,F,m,b);if(U.glyphs.some(ee=>ee.id===0))return O(b,m);for(let ee of U.glyphs)M+=ee.advanceX;P&&(M+=Or(U)*(N(m)/2)*.02*i.fixedPointScale);}catch{return O(b,m)}D=M/i.fixedPointScale,h(C,z,D);}return D*chunk32YOHLEK_cjs.ra(m)*(m.horizontalScalePercent/100)+b.length*m.characterSpacingPt+E(b,m)},inkBounds(b,m){if(!b||b.length>2||m.shaping?.direction==="rtl"||chunk32YOHLEK_cjs.ya(b).length!==1)return;let F=d(m);if(!F)return a.inkBounds?.(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return a.inkBounds?.(b,m);let C=X(r,i,F,m,b);return Lr(C,N(m)/2,i.fixedPointScale,chunk32YOHLEK_cjs.ra(m)*m.horizontalScalePercent/100)}catch{return}},textOutline(b,m){let F=d(m);if(!F)return a.textOutline?.(b,m);try{let C=X(r,i,F,m,b);return wt(C,N(m)/2,i.fixedPointScale)??a.textOutline?.(b,m)}catch{return a.textOutline?.(b,m)}},caretAdvances(b,m){let F=d(m);if(!F)return B(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return B(b,m);let C=X(r,i,F,m,b);if(C.glyphs.some(P=>P.id===0))return B(b,m);let T=chunk32YOHLEK_cjs.bc(b,C,chunk32YOHLEK_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale,m.characterSpacingPt,m.shaping?.wordSpacingPt??0)??chunk32YOHLEK_cjs.ac(b,C.glyphs.reduce((P,z)=>P+z.advanceX,0)*chunk32YOHLEK_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale+b.length*m.characterSpacingPt+E(b,m));if(!T||!At(m,F))return T;let I=N(m)/2*.02*chunk32YOHLEK_cjs.ra(m)*(m.horizontalScalePercent/100);return Ar(T,C,I)}catch{return B(b,m)}},lineMetrics(b,m){let F=d(b);if(!F)return Ve(b)??a.lineMetrics(b,m);if(!m||/^[\t\n\r\f ]*$/.test(m))return u(F,b);if(l){let C=u(F,b),T=Math.max(0,C.baseline),I=Math.max(0,C.height-C.baseline);return T+I>0?{height:T+I,baseline:T}:C}try{let C=X(r,i,F,b,m),T=0,I=0;for(let P of C.fontSpans){let z=u(P.font,b);T=Math.max(T,z.baseline),I=Math.max(I,z.height-z.baseline);}if(T+I>0)return {height:T+I,baseline:T}}catch{}return u(F,b)}},S)}function si(e,t){return Mr({...t,shaper:e.shaper,environment:e.environment})}function ci(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let c of t.pages)r.add(c.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let c of t.pages){let l=c.box.y;l+c.box.height>=n.top&&l<=a&&(i===-1&&(i=c.index),s=c.index);}if(i===-1){let c=li(t,n.top);c!==null&&(i=c,s=c);}if(i!==-1){let c=Math.max(0,i-o),l=Math.min(t.pages.length-1,s+o);for(let u=c;u<=l;u+=1)r.add(u);}for(let c of e.pinnedPages??[])c>=0&&c<t.pages.length&&r.add(c);return r}function li(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var _r=["text-local","paragraph-local","flow-structural","global"];function Pr(e,t){return _r.indexOf(t)>_r.indexOf(e)?t:e}function ui(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function di(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,c=0,l=0;function u(d){let S=e.runCooperatively;if(!S)return t(d);let x=S(d);s=x;try{for(;;){let R=x.step();if(R)return R;if(n()!==d.revision)return x.cancel(),l+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function y(d){let S=p(n());S.impact=Pr(S.impact,d.impact),S.structural=S.structural||d.structural;for(let x of d.paragraphIds)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x);for(let x of d.deleted)S.deleted.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);}let f=d=>({impact:d.impact,paragraphIds:d.paragraphIds,created:d.created,deleted:d.deleted,dependencyKeys:d.dependencyKeys,structural:d.structural,revision:d.revision});function p(d){return a||(a=ui(d)),a.revision=Math.max(a.revision,d),a}function g(){!o||i||(i=o(()=>{i=null,h();}));}function h(){i&&(i(),i=null),s&&(s.cancel(),s=null,l+=1);let d=a;if(!d)return false;a=null;let S=f(d),x=u(S);return !x||x.revision!==n()?(c+=1,y(S),g(),false):(r(x,S),true)}return {notify(d){let S=p(n());S.impact=Pr(S.impact,d.impact);for(let x of d.dirty)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x),S.paragraphIds.add(x);for(let x of d.deleted)S.deleted.add(x),S.paragraphIds.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);for(let x of d.splitJoin)S.structural=true,"split"in x?(S.paragraphIds.add(x.split.from),S.paragraphIds.add(x.split.tail)):(S.paragraphIds.add(x.join.kept),S.paragraphIds.add(x.join.removed));(d.impact==="flow-structural"||d.impact==="global")&&(S.structural=true),g();},invalidateAll(d,S){let x=p(d);x.impact="flow-structural",x.structural=true,S&&x.dependencyKeys.add(S),g();},flush:h,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return c},get cancelledRuns(){return l}}}var kr=new WeakMap;function j(e){let t=kr.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(c,l,u,y)=>{for(let f of c){if(f.kind==="paragraph")continue;let p=f.tableId;a.set(p,Math.max(a.get(p)??0,(f.columnEdges?.length??1)-1));let g=o.get(p);g||(g=new Map,o.set(p,g),n.set(p,[]),r.set(p,new Map));for(let h of f.rows){let d=g.get(h.id);d===void 0&&(d=g.size,g.set(h.id,d),r.get(p).set(d,h.cells));for(let S of h.cells)n.get(p).push({pageIndex:l,tableId:p,row:h,cell:S,rowIndex:d,isHeaderRepeat:h.isHeaderRepeat,offsetX:u,offsetY:y}),i(S.blocks,l,u,y);}}};for(let c of e.pages){i(c.fragments,c.index,0,0);for(let l of [c.header,c.footer])l&&i(l.fragments,c.index,l.box.x-c.contentBox.x,l.box.y-c.contentBox.y);for(let l of [c.footnotes,c.endnotes])if(l)for(let u of l.notes)i(u.fragments,c.index,u.box.x-c.contentBox.x,u.box.y-c.contentBox.y);}let s=new Map;for(let[c,l]of n)s.set(c,{placed:l,rows:r.get(c)??new Map,columnCount:a.get(c)??0});return kr.set(e,s),s}function Nr(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ne(r).to+1);return t}var ne=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function pi(e,t,n){if(t.tableId!==n.tableId)return null;let r=j(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(ne(t).from,ne(n).from),s=Math.max(ne(t).to,ne(n).to),c=p=>{let{from:g,to:h}=ne(p);return h>=i&&g<=s},l=p=>(r.rows.get(p)??[]).some(g=>g.vMergeContinue&&c(g)),u=r.rows.size+Nr(r)+2;for(let p=0;!(p>u);p+=1){let g=false;for(let[h,d]of r.rows)if(!(h<o||h>a))for(let S of d){if(!c(S))continue;let{from:x,to:R}=ne(S);x<i&&(i=x,g=true),R>s&&(s=R,g=true);}for(;o>0&&l(o);)o-=1,g=true;for(;l(a+1);)a+=1,g=true;if(!g)break}let y=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:g,to:h}=ne(p.cell);h<i||g>s||f.has(p.cell.id)||(f.add(p.cell.id),y.push(p.cell.id));}return y.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:y,rows:{from:o,to:a},columns:{from:i,to:s},text:Hr(e,t.tableId,y)}}function fi(e,t){let n=j(e).get(t);if(!n)return null;let r=[],o=new Set,a=0;for(let i of n.placed)i.isHeaderRepeat||o.has(i.cell.id)||(o.add(i.cell.id),r.push(i.cell.id),a=Math.max(a,i.rowIndex));return r.length===0?null:{kind:"cells",tableId:t,cellIds:r,rows:{from:0,to:a},columns:{from:0,to:Nr(n)-1},text:Hr(e,t,r)}}function Pc(e,t){let n=fi(e,t.tableId);if(!n)return false;let r=new Set(t.cellIds);return n.cellIds.every(o=>r.has(o))}function kc(e,t){return Dr(e,t,true)}function be(e,t){return Dr(e,t,false)}function Dr(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of j(e).values())for(let s of i.placed)if(!(s.isHeaderRepeat||!r.has(s.cell.id)))for(let c of s.cell.blocks)n&&c.kind!=="paragraph"||Re(c,o,a);return o}function Re(e,t,n){if(e.kind==="paragraph"){for(let r of chunk32YOHLEK_cjs.ab(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Re(a,t,n);}function Hr(e,t,n){let r=be(e,n),o=r[0],a=r[r.length-1];return !o||!a?mi(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:chunk32YOHLEK_cjs.Ue(e,a).length}}}function mi(e,t){let n=j(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)Re(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of chunk32YOHLEK_cjs.Ja(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function yi(e){let t=[...chunk32YOHLEK_cjs.Ja(e)];for(let n of [e.header,e.footer])n&&t.push(...chunk32YOHLEK_cjs.Ka(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...chunk32YOHLEK_cjs.Ka(r.fragments));return t}function hi(e,t){let n=new Set(be(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of yi(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let c of s.spans){let l=`${c.range.paragraphId}:${c.range.start}:${c.range.end}`;o.has(l)||(o.add(l),r.push(c));}return r}function gi(e,t){let n=new Set(t),r=[];for(let o of j(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function Si(e,t,n=chunk32YOHLEK_cjs.Ue){let r=j(e).get(t.tableId);if(!r)return "";let o=new Set(t.cellIds),a=r.placed.some(c=>c.cell.logicalGridColumn!==void 0),i=new Map,s=new Set;for(let c of r.placed){if(c.isHeaderRepeat||!o.has(c.cell.id)||s.has(c.cell.id))continue;s.add(c.cell.id);let l=be(e,[c.cell.id]).map(f=>n(e,f)).join(`
|
|
1
|
+
'use strict';var chunkY6FY46N6_cjs=require('./chunk-Y6FY46N6.cjs'),chunk2JVOX642_cjs=require('./chunk-2JVOX642.cjs');var Gr=(e,t,n)=>{let r=e<0n,o=r?-e:e,a=o/t,i=o%t;if(n!=="towardZero"){let l=i*2n;(l>t||l===t&&(n==="halfAwayFromZero"||n==="halfToEven"&&a%2n!==0n))&&(a+=1n);}let s=r?-a:a,c=Number(s);if(!Number.isSafeInteger(c))throw new RangeError("Shaped fixed-point value exceeds the safe integer range");return c},dt=(e,t,n,r)=>{if(!Number.isSafeInteger(e))throw new RangeError("font units must be a safe integer");if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("fixed-point denominator must be a positive safe integer");if(!Number.isSafeInteger(n)||n<0)throw new RangeError("fixed-point numerator must be a non-negative safe integer");if(e===0||n===0)return chunkY6FY46N6_cjs.n(0);let o=e*n;if(Number.isSafeInteger(o)){let a=Math.abs(o),i=a%t,s=(a-i)/t;return r!=="towardZero"&&(i>t-i||i===t-i&&(r==="halfAwayFromZero"||r==="halfToEven"&&s%2!==0))&&(s+=1),chunkY6FY46N6_cjs.n(s===0?0:o<0?-s:s)}return chunkY6FY46N6_cjs.n(Gr(BigInt(e)*BigInt(n),BigInt(t),r))},gn=(e,t,n,r)=>{if(!Number.isSafeInteger(t)||t<=0)throw new RangeError("font size must be a positive integer number of half points");if(t>Math.floor(Number.MAX_SAFE_INTEGER/n))throw new RangeError("font size and fixed-point scale product exceeds the safe integer range");let o=t*n,a=e*2;return i=>dt(i,a,o,r)},Sn=(e,t,n)=>{let r=t*n,o=e*2;return a=>a*r/o};var Ne=(e,t)=>e[t]<<8|e[t+1],xn=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Wr(e,t){let n=(s,c)=>s>=0&&s+c<=e.length;if(!n(0,12))return false;let a=String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"&&n(12+t*4,4)?xn(e,12+t*4):0;if(!n(a,12))return false;let i=Ne(e,a+4);for(let s=0;s<i;s+=1){let c=a+12+s*16;if(!n(c,16))return false;if(!(e[c]===99&&e[c+1]===109&&e[c+2]===97&&e[c+3]===112))continue;let u=xn(e,c+8);if(!n(u,4))return false;let y=Ne(e,u+2);for(let f=0;f<y;f+=1){let p=u+4+f*8;if(!n(p,4))return false;if(Ne(e,p)===3&&Ne(e,p+2)===0)return true}return false}return false}var bn=new WeakMap;function Rn(e,t){let n=bn.get(e);return n===void 0&&(n=Wr(t,e.faceIndex),bn.set(e,n)),n}function Fn(e){let t="",n=false;for(let r=0;r<e.length;r+=1){let o=e.charCodeAt(r);o>=32&&o<=255?(t+=String.fromCharCode(61440+o),n=true):t+=e[r];}return n?t:e}var Kr=4096,Cn=e=>typeof e=="number"?String(e):JSON.stringify(e)??typeof e,De=class{constructor(t){this.onRestart=t;}onRestart;#e=new Map;keyOf(t,n){let r=chunkY6FY46N6_cjs.t(n),o=this.#e.get(r);o===void 0&&(this.#e.size>=Kr&&(this.#e.clear(),this.onRestart()),o=this.#e.size,this.#e.set(r,o));let a=`${o}\0${Cn(t.fontSizeHalfPoints)}\0${Cn(t.bidiLevel)}\0`,i=t.context;return !i||i.before===""&&i.after===""?`${a}-${t.text}`:`${a}c${i.before.length},${i.after.length}\0${i.before}${i.after}${t.text}`}clear(){this.#e.clear();}};function le(e){try{let t=new URL(e);return t.username!==""||t.password!==""||t.search!==""||t.hash!==""?`${t.protocol}//${t.host}${t.pathname}\u2026`:e}catch{let t=e.search(/[?#]/);return t===-1?e:`${e.slice(0,t)}\u2026`}}function En(e){return e.replace(/[a-z][a-z0-9+.-]*:\/\/[^\s"')]+/gi,t=>le(t))}function jr(e){if(typeof e!="string"&&!(e instanceof URL))throw new TypeError(`setHarfBuzzWasmUrl: expected a string or URL, received ${typeof e}`);if(typeof e=="string"&&e.trim()==="")throw new TypeError("setHarfBuzzWasmUrl: expected a non-empty URL");throw new Error("setHarfBuzzWasmUrl is not supported by the CommonJS build, which loads the shaper from node_modules and finds its binary on disk. Import the ESM build instead.");}function vn(e){return e instanceof Error&&/process\.getBuiltinModule/.test(e.message)}function Ln(e){return `the text shaper cannot start on this Node version: the ESM build reaches Node builtins through \`process.getBuiltinModule\`, added in Node 20.16.0 and 22.3.0. Upgrade Node; \`setHarfBuzzWasmUrl\` does not apply here. (${En(e instanceof Error?e.message:String(e))})`}function Bn(e){let t=En(e instanceof Error?e.message:String(e));return `the HarfBuzz WASM binary could not be loaded from ${"its bundled location"}. If this bundler does not emit \`new URL(..., import.meta.url)\` assets (esbuild, Bun, and library builds that inline dynamic imports), serve \`@docx-editor.dev/core/harfbuzz.wasm\` yourself, point \`setHarfBuzzWasmUrl\` from '@docx-editor.dev/core/layout' at it before creating an editor, and reload the page. (${t})`}function Tn(e,t){let n=`expected HarfBuzz ${e}, loaded ${t}`;return `${n}. The bundled binary does not match this build of the engine.`}var ie=Object.freeze({name:"HarfBuzz",version:"14.4.0"}),Se=null,he=null;function ft(){return Se?Promise.resolve():he||(he=import('harfbuzzjs').then(e=>{let t=e.versionString();if(t!==ie.version)throw new A("shapingLibraryMismatch",{diagnostic:Tn(ie.version,t)});Se=e;}).catch(e=>{throw he=null,e instanceof A?e:vn(e)?new A("unsupportedRuntime",{diagnostic:Ln(e),cause:e}):new A("wasmUnavailable",{diagnostic:Bn(e),cause:e})}),he)}function Yr(){return Se!==null}function $r(){if(!Se)throw new A("notInitialized",{diagnostic:"Call initializeHarfBuzz() before creating a text shaper"});return Se}var A=class extends Error{name="HarfBuzzShapingError";code;limit;actual;diagnostic;constructor(t,n={}){super(`HarfBuzz shaping failed (${t})`,{cause:n.cause}),this.code=t,this.limit=n.limit,this.actual=n.actual,this.diagnostic=n.diagnostic;}},qr=16*1024*1024,Zr=1e6,Jr=1e6,Qr=1e6,eo=4,to=512,no=1024*1024,ro=16*1024*1024,oo=32*1024*1024,ao=64*1024*1024,io=64*1024*1024,so=1e6,co=1e6,lo=1e6,uo=64,po=4096,fo=4*1024*1024,mo=64*1024*1024,yo=64*1024*1024,ho=256*1024*1024,go=new Set(["COLR","CPAL","CBDT","CBLC","sbix","SVG "]),wn=["cmap","head","hhea","hmtx","maxp"],So=(e,t)=>e[t]<<8|e[t+1],xo=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0,bo=(e,t)=>String.fromCharCode(e[0],e[1],e[2],e[3])==="ttcf"?xo(e,12+t*4):0,Ro=(e,t)=>{let n=bo(e,t),r=So(e,n+4),o=new Set;for(let a=0;a<r;a+=1){let i=n+12+a*16;o.add(String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]));}return o},Fo=e=>e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength),Co=(e,t)=>{let n=chunkY6FY46N6_cjs.l(e,t);if(!n.valid)return n;let r=Ro(e,t);for(let o of wn)if(!r.has(o))return {valid:false,diagnostic:`missing required ${o} table`};return {valid:true}},mt=Co,G=(e,t,n)=>{if(!Number.isSafeInteger(e)||e<=0||e>n)throw new RangeError(`${t} must be a positive safe integer no greater than ${n}`);return e},Eo=(e,t,n)=>{if(t.length===0)return [];let r=[],o=0;for(;o<t.length;){let a=t[o].cluster,i=o+1,s=t[o].advanceX;for(;i<t.length&&t[i].cluster===a;)s+=t[i].advanceX,i+=1;let c=chunkY6FY46N6_cjs.n(s);r.push({textStart:a,textEnd:n==="rtl"?t[o-1]?.cluster??e.length:t[i]?.cluster??e.length,glyphStart:o,glyphEnd:i,advance:c,caretEdges:Object.freeze([chunkY6FY46N6_cjs.n(0),c]),fontSpan:0}),o=i;}return r},V=64,$=8,q=8,On=32,yt=V+2*$,vo=V+$+q,Lo=V+$+2*q,Bo=V+$+q,An=V+8*$,In=V+8*q+$,To=V+6*q+$,wo=V+3*q+2*$,Oo=V+3*q,xe=e=>V+e.length*Uint16Array.BYTES_PER_ELEMENT,ht=e=>Bo+xe(e),ge=e=>On+e*$,Ao=(e,t)=>yt+xe(e)+vo+ht(t),Io=e=>An+xe(e)+ge(e.length)+e.length*In,Mo=e=>{let t=new Set(e.glyphs.map(n=>n.outline));return An+xe(e.text)+ge(e.glyphs.length)+e.glyphs.length*In+ge(e.clusters.length)+e.clusters.length*To+e.clusters.reduce((n,r)=>n+ge(r.caretEdges.length),0)+ge(e.fontSpans.length)+e.fontSpans.length*wo+(e.exactAdvancesX===void 0?0:On+e.exactAdvancesX.length*q)+Oo+[...t].reduce((n,r)=>n+ht(r.path),0)},_o=(e,t)=>yt+xe(e)+Lo+t,pt=class{#e;#p;#f;#m;#y;#R;#h;#l=0;#F;#g;#S;#c;#x;#u;#t;#o=new Map;#i=new Map;#s=new Map;#n=new Map;#C=new De(()=>{this.#n.clear(),this.#r=0,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0}));});#a=0;#r=0;#b=0;#d;constructor(t,n){chunkY6FY46N6_cjs.p(this),this.#e=t,this.#p=G(n.maxFontBytes??qr,"maximum font bytes",io),this.#f=G(n.maxInputUtf16??Zr,"maximum input UTF-16 code units",so),this.#m=G(n.maxCodepoints??Jr,"maximum input code points",co),this.#y=G(n.maxGlyphs??Qr,"maximum shaped glyphs",lo),this.#h=G(n.maxCachedFontBytes??64*1024*1024,"maximum cached font bytes",64*1024*1024),this.#R=G(n.maxCachedFaces??eo,"maximum cached faces",uo),this.#F=G(n.maxCachedShapes??to,"maximum cached shape results",po),this.#g=G(n.maxOutlineBytes??no,"maximum outline bytes",fo),this.#S=G(n.maxCachedOutlineBytes??ro,"maximum cached outline bytes",mo),this.#c=G(n.maxShapedRunBytes??oo,"maximum shaped run bytes",yo),this.#x=G(n.maxCachedShapeBytes??ao,"maximum cached shape bytes",ho),this.#u=n.instrumentation?.onFaceCacheEvent,this.#t=n.instrumentation,this.#d=new this.#e.Buffer;}dispose(){this.#o.clear(),this.#l=0,this.#i.clear(),this.#s.clear(),this.#n.clear(),this.#C.clear(),this.#a=0,this.#r=0,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"cleared",retainedBytes:0})),this.#d=void 0;}#v(t,n){let r=this.#o.get(t.identity);if(r)return this.#o.delete(t.identity),this.#o.set(t.identity,r),this.#u?.(Object.freeze({kind:"hit",identity:t.identity})),r;let o=chunkY6FY46N6_cjs.j(t);for(let u of wn)if(!o.has(u))throw new A("malformedFont",{diagnostic:`missing required ${u} table`});this.#t?.onByteCopy?.();let a=new this.#e.Blob(Fo(n)),i=new this.#e.Face(a,t.faceIndex),s=new this.#e.Font(i),c=s.hExtents();if(!Number.isSafeInteger(i.upem)||i.upem<=0||!Number.isSafeInteger(c.ascender)||!Number.isSafeInteger(c.descender)||!Number.isSafeInteger(c.lineGap))throw new A("malformedFont",{diagnostic:"invalid font units or horizontal metrics"});s.setScale(i.upem,i.upem);let l={identity:t.identity,blob:a,face:i,font:s,unitsPerEm:i.upem,byteLength:n.byteLength};if(n.byteLength<=this.#h){for(;this.#o.size>=this.#R||this.#l+n.byteLength>this.#h;){let u=this.#o.keys().next().value;if(u===void 0)break;this.#l-=this.#o.get(u).byteLength,this.#o.delete(u),this.#u?.(Object.freeze({kind:"evicted",identity:u}));}this.#o.set(t.identity,l),this.#l+=n.byteLength;}return this.#u?.(Object.freeze({kind:"created",identity:t.identity})),l}#L(t,n){let r=this.#i.get(t.identity)?.get(n);if(r)return this.#s.delete(r),this.#s.set(r,void 0),this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#a})),r.outline;this.#t?.onOutlinePathCall?.();let o=t.font.glyphToPath(n),a=ht(o);if(a>this.#g)throw new A("outlineOverLimit",{limit:this.#g,actual:a});let i=Object.freeze({path:o,unitsPerEm:t.unitsPerEm}),s=Ao(t.identity,o)+3*yt+2*q;if(s>this.#S)return this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#a})),i;for(;this.#a+s>this.#S;){let u=this.#s.keys().next().value;if(u===void 0)break;this.#s.delete(u);let y=this.#i.get(u.identity);y.delete(u.glyphId),y.size===0&&this.#i.delete(u.identity),this.#a-=u.bytes,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#a}));}let c=this.#i.get(t.identity);c||this.#i.set(t.identity,c=new Map);let l={outline:i,bytes:s,identity:t.identity,glyphId:n};return c.set(n,l),this.#s.set(l,void 0),this.#a+=s,this.#t?.onOutlineCacheEvent?.(Object.freeze({kind:"created",retainedBytes:this.#a})),i}#E(t){if(t.length>this.#f)throw new A("textOverLimit",{limit:this.#f,actual:t.length});let n=0;for(let r=0;r<t.length;){let o=t.codePointAt(r);if(r+=o>65535?2:1,n+=1,n>this.#m)throw new A("codepointsOverLimit",{limit:this.#m,actual:n})}}shape(t){if(!this.#d)throw new A("disposed");if(chunkY6FY46N6_cjs.k(t.environment.font),t.environment.font.byteLength>this.#p)throw new A("fontOverLimit",{limit:this.#p,actual:t.environment.font.byteLength});this.#E(t.text);let n=Io(t.text);if(n>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:n});let r=chunkY6FY46N6_cjs.r(t.environment),o=this.#C.keyOf(t,r),a=this.#n.get(o);if(a)return this.#b-a.stamp>=Math.max(1,this.#n.size>>1)&&(this.#n.delete(o),this.#n.set(o,a),a.stamp=++this.#b),this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"hit",retainedBytes:this.#r})),a.run;if(this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"miss",retainedBytes:this.#r})),r.shapingLibrary.name!==ie.name||r.shapingLibrary.version!==ie.version)throw new A("shapingLibraryMismatch");if(r.normalization!=="none")throw new A("unsupportedNormalization");if(!Number.isSafeInteger(t.bidiLevel)||t.bidiLevel<0||(t.bidiLevel&1)===1!=(r.direction==="rtl"))throw new A("invalidBidiLevel");if(Object.keys(r.variationAxes).length>0)throw new A("unsupportedVariationAxes");if(r.fallbackOrder.length>0)throw new A("unsupportedFallback");let i=chunkY6FY46N6_cjs.i(r.font),s=chunkY6FY46N6_cjs.j(r.font);if([...go].some(p=>s.has(p))&&!s.has("glyf")&&!s.has("CFF "))throw new A("unsupportedColorFont");let c=t.text;this.#E(c);let l=t.context?.before??"",u=t.context?.after??"",y=chunkY6FY46N6_cjs.o,f=Math.max(String(l).length,String(u).length);if(typeof l!="string"||typeof u!="string"||f>y)throw new A("textOverLimit",{limit:y,actual:f});try{let p=this.#v(r.font,i),{face:g,font:h}=p,d=this.#d;d.reset();let S=Rn(r.font,i)?Fn:String,x=l+c+u,R=chunkY6FY46N6_cjs.A(x)?chunkY6FY46N6_cjs.B(p):void 0,L=M=>S(R?chunkY6FY46N6_cjs.C(M,R):M);l||u?d.addText(L(l+c+u),l.length,c.length):d.addText(L(c)),d.setDirection(r.direction==="rtl"?this.#e.Direction.RTL:this.#e.Direction.LTR),d.setScript(r.script),d.setLanguage(r.language),d.setClusterLevel(this.#e.ClusterLevel.MONOTONE_CHARACTERS);let E=Object.entries(r.features).map(([M,U])=>new this.#e.Feature(M,U));if((r.features.kern??1)!==0)for(let[M,U]of chunkY6FY46N6_cjs.x(l+c+u))E.push(new this.#e.Feature("kern",0,M,U));this.#t?.onShapeCall?.(),this.#e.shape(h,d,E);let O=d.getLength();if(O>this.#y)throw new A("glyphOverLimit",{limit:this.#y,actual:O});let B=d.getGlyphInfos(),v=d.getGlyphPositions(),w=gn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale,r.roundingMode),_=Sn(g.upem,t.fontSizeHalfPoints,r.fixedPointScale),b=[],m=chunkY6FY46N6_cjs.n(0),F=chunkY6FY46N6_cjs.n(0),C=new Map,T=B.map((M,U)=>{let ee=v[U],Mt=R?.get(x.charCodeAt(M.cluster)),_t=Mt?.advance??ee?.xAdvance??0;b.push(_(_t));let Pt=w(_t),kt=w(ee?.yAdvance??0),Fe=Mt?.glyph??M.codepoint,Ur={id:Fe,cluster:M.cluster-l.length,originX:m,originY:F,advanceX:Pt,advanceY:kt,offsetX:w(ee?.xOffset??0),offsetY:w(ee?.yOffset??0),outline:C.get(Fe)??(()=>{let zt=this.#L(p,Fe);return C.set(Fe,zt),zt})()};return m=chunkY6FY46N6_cjs.n(m+Pt),F=chunkY6FY46N6_cjs.n(F+kt),Ur}),I=h.hExtents(),P=chunkY6FY46N6_cjs.u({text:c,direction:r.direction,bidiLevel:t.bidiLevel,glyphs:T,exactAdvancesX:b,clusters:Eo(c,T,r.direction),fontSpans:T.length===0?[]:[{glyphStart:0,glyphEnd:T.length,font:r.font,fallbackIndex:null}],metrics:{ascent:w(I.ascender),descent:w(-I.descender),lineGap:w(I.lineGap)}},r),z=Mo(P);if(z>this.#c)throw new A("shapedRunOverLimit",{limit:this.#c,actual:z});let D=_o(o,z);if(D>this.#x)return this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"skipped",retainedBytes:this.#r})),P;for(;this.#n.size>=this.#F||this.#r+D>this.#x;){let M=this.#n.keys().next().value;if(M===void 0)break;let U=this.#n.get(M);this.#n.delete(M),this.#r-=U.bytes,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"evicted",retainedBytes:this.#r}));}return this.#n.set(o,{run:P,bytes:D,stamp:++this.#b}),this.#r+=D,this.#t?.onShapeCacheEvent?.(Object.freeze({kind:"stored",retainedBytes:this.#r})),P}catch(p){throw p instanceof A?p:new A("malformedFont",{diagnostic:p instanceof Error?p.message:"HarfBuzz shaping failed"})}}},gt=(e={})=>new pt($r(),e);var St=Object.freeze({maxFontBytes:16*1024*1024,maxInputUtf16:1e6,maxCodepoints:1e6,maxGlyphs:1e6,maxCachedFaces:32,maxCachedFontBytes:64*1024*1024,maxCachedShapes:512,maxOutlineBytes:1024*1024,maxCachedOutlineBytes:16*1024*1024,maxShapedRunBytes:32*1024*1024,maxCachedShapeBytes:64*1024*1024}),Ni=Object.freeze({...St,maxCachedShapes:4096});function Mn(e){let t={maxFontBytes:e.maxFontBytes,maxInputUtf16:e.maxInputUtf16,maxCodepoints:e.maxCodepoints,maxGlyphs:e.maxGlyphs,maxOutlineBytes:e.maxOutlineBytes,maxShapedRunBytes:e.maxShapedRunBytes},n=["docx-editor-layout-harfbuzz-execution-policy",1,Object.entries(t).sort(([r],[o])=>r<o?-1:r>o?1:0).map(([r,o])=>Object.freeze([r,o]))];return `layout-shaper-policy:sha256:${chunk2JVOX642_cjs.f(new TextEncoder().encode(JSON.stringify(n)))}`}function _n(e,t=St){let n=e?.maxFontBytes??t.maxFontBytes;if(!Number.isSafeInteger(n)||n<=0||n>chunkY6FY46N6_cjs.a)throw new RangeError(`Font shaping byte ceiling must be between 1 and ${chunkY6FY46N6_cjs.a}`);return n===t.maxFontBytes?t:Object.freeze({...t,maxFontBytes:n})}function Pn(e,t,n=false){let r=false,o=Object.freeze({shape(a){if(r)throw new A("disposed");let i=a.environment.font;if(chunkY6FY46N6_cjs.k(i),i.byteLength>t.maxFontBytes)throw new A("fontOverLimit",{limit:t.maxFontBytes,actual:i.byteLength});return e.shape(a)},dispose(){r||(r=true,n&&e.dispose?.());}});return chunkY6FY46N6_cjs.q(e)?chunkY6FY46N6_cjs.p(o):o}var Po=Object.freeze({}),kn=chunkY6FY46N6_cjs.b,ko="16.0.0",zo="none",No=1e3,Do="halfToEven",Dn="cluster-edges-only",Ho="Latn",Uo=new Uint8Array(0);var Z=class extends Error{code="overLimit";constructor(t){super(t),this.name="LayoutShapingConfigurationError";}};function Go(e,t){let n=e.epoch,r=e.maxFontBytes,o=e.sources,a=e.substitutions,i=e.defaultFont,s=e.language;if(!Number.isSafeInteger(r)||r<=0||r>chunkY6FY46N6_cjs.a)throw new Z(`Font byte ceiling must not exceed the engine hard maximum of ${chunkY6FY46N6_cjs.a}`);let c=o.length,l=a?.length??0;if(c===0||c>chunkY6FY46N6_cjs.b)throw new Z(`Font source count must be between 1 and ${chunkY6FY46N6_cjs.b}`);if(l>kn)throw new Z(`Font substitution count must not exceed ${kn}`);let u=0,y=[];for(let g=0;g<c;g+=1){let h=o[g],d=h.request,S=h.availability,x=h.id,R=h.hash,L=h.faceIndex,E=S==="forbidden",O=E?Uo:h.bytes;if(!E){if(typeof x!="string"||x.length===0)throw new TypeError("Resolved font id must not be empty");let B;try{B=chunkY6FY46N6_cjs.e(O);}catch{throw new Z(`Font source ${x} must provide genuine bytes`)}if(B>r)throw new Z(`Font source ${x} exceeds the per-font byte ceiling`);if(u+=B,u>chunkY6FY46N6_cjs.c)throw new Z(`Font sources exceed the aggregate byte ceiling of ${chunkY6FY46N6_cjs.c}`)}y.push(t&&chunkY6FY46N6_cjs.g(h)!==void 0?h:Object.freeze({request:Object.freeze({family:d.family,weight:d.weight,style:d.style}),id:x,bytes:O,hash:R,faceIndex:L,...S?{availability:S}:{}}));}let f;if(a){f=[];for(let g=0;g<l;g+=1){let h=a[g],d=h.from,S=h.to,x=h.lineMetrics;f.push(Object.freeze({from:Object.freeze({family:d.family,weight:d.weight,style:d.style}),to:Object.freeze({family:S.family,weight:S.weight,style:S.style}),...x?{lineMetrics:Object.freeze({heightEm:x.heightEm,baselineEm:x.baselineEm})}:{}}));}}let p={epoch:n,maxFontBytes:r,sources:Object.freeze(y),substitutions:f?Object.freeze(f):void 0,defaultFont:Object.freeze({family:i.family,sizeHalfPoints:i.sizeHalfPoints}),language:s};return Object.freeze(p)}function zn(e,t){let n=e.map((o,a)=>({value:o,index:a,key:chunkY6FY46N6_cjs.h(t(o))})),r=new Set;for(let o of n){if(r.has(o.key))return e;r.add(o.key);}return n.sort((o,a)=>o.key<a.key?-1:o.key>a.key?1:o.index-a.index).map(({value:o})=>o)}function Wo(e,t){let n={family:e.family},r={sizeHalfPoints:e.sizeHalfPoints};return {...n,...t?r:{}}}function Nn(e,t){let n=c=>({family:c.family,weight:c.weight,style:c.style}),r=t?e.sources:zn(e.sources,c=>c.request),o=e.substitutions??[],a=t?o:zn(o,c=>c.from),i={sources:r.map(c=>{let l=c.availability??"available",u={request:n(c.request),availability:l};if(l==="forbidden")return {...u,...t?{id:c.id,faceIndex:c.faceIndex,declaredHash:c.hash}:{}};let y=chunkY6FY46N6_cjs.g(c);if(y==null)throw new TypeError("Font configuration identity requires prepared source bytes");return {...u,...t?{id:c.id}:{},faceIndex:c.faceIndex,declaredHash:c.hash,actualHash:y,byteLength:c.bytes.byteLength}}),substitutions:a.map(c=>({from:n(c.from),to:n(c.to),lineMetrics:c.lineMetrics?{heightEm:c.lineMetrics.heightEm,baselineEm:c.lineMetrics.baselineEm}:null})),defaultFont:Wo(e.defaultFont,t),language:e.language||"en"},s={epoch:e.epoch,maxFontBytes:e.maxFontBytes};return {version:1,...t?s:{},...i}}var Ko=Symbol("prepared-layout-font-configuration"),He=new WeakMap;function Vo(e){return He.has(e)}function Xo(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.configuration}function qi(e){let t=He.get(e);if(!t)throw new TypeError("Invalid prepared layout font configuration");return t.sharedShapingFingerprint}function xt(e,t){return Hn(e,t,false)}function Zi(e,t){return Hn(e,t,true)}function Hn(e,t,n){let r=Go(e,n),o=Object.freeze({epoch:r.epoch,maxFontBytes:r.maxFontBytes,sources:Object.freeze(r.sources.map(y=>n&&chunkY6FY46N6_cjs.g(y)!==void 0?y:chunkY6FY46N6_cjs.f(y,{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash}))),substitutions:r.substitutions,defaultFont:r.defaultFont,language:r.language}),a=new TextEncoder,i=Nn(o,true),s=a.encode(JSON.stringify(i)),c=Nn(o,false),l=a.encode(JSON.stringify(c)),u=Object.freeze({[Ko]:true,fingerprint:`font-config:${chunk2JVOX642_cjs.f(s)}`});return He.set(u,{configuration:o,sharedShapingFingerprint:`shared-font-config:${chunk2JVOX642_cjs.f(l)}`}),u}function jo(e){return xt(e).fingerprint}function Yo(e,t){let n=new TextEncoder().encode(JSON.stringify({version:1,environment:e,executionPolicy:Mn(t),ligatureCaretPolicy:Dn,fallback:chunkY6FY46N6_cjs.sa}));return `shaping:${chunk2JVOX642_cjs.f(n)}`}async function Un(e,t,n,r,o=false){let i=Vo(e)?e:xt(e,t),s=Xo(i),{epoch:c,maxFontBytes:l,sources:u,substitutions:y,defaultFont:f}=s,p=s.language||"en",g=i.fingerprint,h=chunkY6FY46N6_cjs.m({epoch:c,maxFontBytes:l,resources:u,substitutions:y,validateFont:mt,instrumentation:{onOwnedByteCopy:t?.onFontByteCopy,onHash:t?.onFontHash,onAdmission:t?.onFontAdmission}});await ft();let d=Object.freeze({script:Ho,variationAxes:Object.freeze({}),shapingLibrary:ie,unicodeDataVersion:ko,normalization:zo,language:p,features:Po,...o?{documentLigatures:true}:{},fixedPointScale:No,roundingMode:Do});return Object.freeze({fonts:h,shaper:Pn(n??gt(r),r,n===void 0),defaultFont:f,environment:d,ligatureCaretPolicy:Dn,operation:Object.freeze({resourceEpoch:h.epoch,configEpoch:c,extensionFingerprint:g,shapingHash:Yo(d,r),producerVersion:1})})}async function $o(e,t,n){return Un(e,t,void 0,_n(n))}async function Ji(e,t,n,r,o=false){return Un(e,r,t,n,o)}function qo(e){e.shaper.dispose?.();}function bt(e){let t=new Set([0,e.text.length]);for(let r of chunkY6FY46N6_cjs.ya(e.text))t.add(r.utf16From),t.add(r.utf16To);let n=new Set([0,e.text.length]);for(let r of e.clusters)n.add(r.textStart),n.add(r.textEnd);return [...t].filter(r=>n.has(r)).sort((r,o)=>r-o)}function Ue(e,t){return bt(e).includes(t)}function Zo(e,t){return Ue(e,t)}function Jo(e,t,n){return n>=t&&Ue(e,t)&&Ue(e,n)}function Qo(e){let t=chunkY6FY46N6_cjs.ya(e.text);return bt(e).map(n=>n===e.text.length?t.length:t.findIndex(r=>r.utf16From===n))}var Ft="und";function Vn(){return typeof Intl.Segmenter=="function"}function ea(){let e=Intl.Segmenter;if(typeof e!="function")throw new Error(`Intl.Segmenter is required for word segmentation (locale: ${Ft})`);return e}function Xn(){let e=new(ea())(Ft,{granularity:"word"});return {segment(t){let n=[];for(let r of e.segment(t)){let o=r.index,a=o+r.segment.length;n.push({utf16From:o,utf16To:a,wordLike:r.isWordLike===true});}return n}}}var ta=/^[\p{L}\p{N}']$/u,na=/^\s$/u;function Gn(e){return ta.test(e)}function Wn(e){return na.test(e)}function Rt(e,t,n,r){let o=e[t],a=e[n-1];return {utf16From:o.utf16From,utf16To:a.utf16To,wordLike:r}}function jn(e){let t=chunkY6FY46N6_cjs.ya(e);if(t.length===0)return [];let n=[],r=0;for(;r<t.length;){let o=t[r];if(Wn(o.text)){let a=r+1;for(;a<t.length&&Wn(t[a].text);)a+=1;n.push(Rt(t,r,a,false)),r=a;continue}if(Gn(o.text)){let a=r+1;for(;a<t.length&&Gn(t[a].text);)a+=1;n.push(Rt(t,r,a,true)),r=a;continue}n.push(Rt(t,r,r+1,false)),r+=1;}return n}function Yn(){return {segment:jn}}function $n(e={}){let t=e.isIntlAvailable??Vn,n=e.createIntlBoundary??Xn,r=e.createFallbackBoundary??Yn;if(!t())return r();try{return n()}catch{return r()}}var Kn;function qn(){return Kn??=$n(),Kn}function ra(e,t=qn()){return t.segment(e)}function oa(e,t){return t.map(n=>({graphemeFrom:chunkY6FY46N6_cjs.Ca(e,n.utf16From),graphemeTo:chunkY6FY46N6_cjs.Ca(e,n.utf16To),wordLike:n.wordLike}))}var Zn={resourceEpoch:"resource-scoped",configEpoch:"coarse-gate",extensionFingerprint:"coarse-gate",shapingHash:"coarse-gate",producerVersion:"coarse-gate"},vt=Object.keys(Zn),Jn=vt.filter(e=>Zn[e]==="coarse-gate"),Ge=(e,t)=>{if(!Number.isSafeInteger(e)||e<0)throw new RangeError(`${t} must be a non-negative safe integer`)},ue=(e,t)=>{if(e.trim().length===0)throw new TypeError(`${t} must not be blank`)},aa={resourceEpoch:Ge,configEpoch:Ge,extensionFingerprint:ue,shapingHash:ue,producerVersion:Ge},ia=(e,t)=>{aa[t](e[t],t);},de=e=>{for(let t of vt)ia(e,t);return Object.freeze({resourceEpoch:e.resourceEpoch,configEpoch:e.configEpoch,extensionFingerprint:e.extensionFingerprint,shapingHash:e.shapingHash,producerVersion:e.producerVersion})},sa=(e,t)=>{let n=de(e),r=de(t),o=vt.filter(a=>n[a]!==r[a]);return o.length===0?Object.freeze({status:"current"}):Object.freeze({status:"restart",changed:Object.freeze(o)})},Ct=e=>{let t=e.map(({key:n,fingerprint:r})=>(ue(n,"resource dependency key"),ue(r,"resource dependency fingerprint"),Object.freeze({key:n,fingerprint:r}))).sort((n,r)=>n.key<r.key?-1:n.key>r.key?1:0);for(let n=1;n<t.length;n+=1)if(t[n-1].key===t[n].key)throw new TypeError(`Duplicate resource dependency: ${t[n].key}`);return Object.freeze(t)},ca=e=>(Ge(e.revision,"revision"),ue(e.dependencyFingerprint,"dependencyFingerprint"),ue(e.inputFingerprint,"inputFingerprint"),Object.freeze({revision:e.revision,dependencyFingerprint:e.dependencyFingerprint,inputFingerprint:e.inputFingerprint,resourceDependencies:Ct(e.resourceDependencies),...de(e)})),la=(e,t)=>{let n=Ct(e),r=Ct(t),o=Math.max(n.length,r.length);for(let a=0;a<o;a+=1){let i=n[a],s=r[a];if(i?.key!==s?.key||i?.fingerprint!==s?.fingerprint)return {hit:false,reason:"resource-changed",resourceKey:i?.key??s.key}}return null};function ua(e,t){if(e.dependencyFingerprint!==t.dependencyFingerprint)return {hit:false,reason:"dependency-changed"};if(e.inputFingerprint!==t.inputFingerprint)return {hit:false,reason:"input-changed"};let n=la(e.resourceDependencies,t.resourceDependencies);if(n)return n;for(let r of Jn)if(e[r]!==t[r])return {hit:false,reason:"epoch-changed",epoch:r};return null}var Et=class{entries=new Map;get(t,n){let r=this.entries.get(t);if(!r)return {hit:false,reason:"absent"};let o=ua(r.provenance,n);return o||{hit:true,value:r.value,provenance:r.provenance}}set(t,n,r){this.entries.set(t,{value:n,provenance:ca(r)});}evictEpoch(t){let n=de(t),r=0;for(let[o,a]of this.entries){let i=a.provenance;Jn.some(s=>i[s]!==n[s])&&(this.entries.delete(o),r+=1);}return r}evictResources(t,n){let r=de(t),o=this.evictEpoch(r);for(let[a,i]of this.entries)i.provenance.resourceDependencies.some(c=>n.get(c.key)!==c.fingerprint)&&(this.entries.delete(a),o+=1);return o}get size(){return this.entries.size}};function Qn(e){return e.projected===true?null:e.range}function pa(e,t,n,r=false){let{page:o,story:a,host:i,noteScopeId:s,noteAreaKind:c}=e,l=a==="header"||a==="footer"?u=>chunkY6FY46N6_cjs.Ia(u,e.origin,{x:o.box.x,y:o.box.y}):void 0;chunkY6FY46N6_cjs.Ra(i,(u,y)=>{let{textboxDepth:f,textboxOwner:p,textboxPath:g,storyOrigin:h}=y,d=f===0?a:"textbox";if(r&&u.marker&&!u.lines.some(S=>S.spans.length>0)){let S=u.lines[0];if(!S||!u.marker)return;let x={range:{paragraphId:u.paragraphId,start:S.range.start,end:S.range.start},text:"",props:[],style:u.marker.style,box:{...S.box,width:0}};n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+x.box.x,y:h.y+x.box.y,width:0,height:x.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:u.paragraphId,line:S,span:x,sourceRange:null});return}for(let S of u.lines){let x=[...chunkY6FY46N6_cjs.Ya(S)].sort((R,L)=>(t.get(R.paragraphId)??Number.MAX_SAFE_INTEGER)-(t.get(L.paragraphId)??Number.MAX_SAFE_INTEGER));for(let R of x)for(let L of R.spans)n({page:o,story:d,rootStory:a,root:e,storyOrigin:h,absoluteBox:Object.freeze({x:h.x+L.box.x,y:h.y+L.box.y,width:L.box.width,height:L.box.height}),noteScopeId:s,noteAreaKind:c,textboxDepth:f,textboxOwner:p,textboxPath:g,paragraph:u,paragraphId:R.paragraphId,line:S,span:L,sourceRange:Qn(L)});}},e.origin,l);}function fa(e,t,n={}){let r=new Map(chunkY6FY46N6_cjs.fb(e).map((o,a)=>[o,a]));chunkY6FY46N6_cjs.Oa(e,o=>pa(o,r,t,n.spanlessMarkers===true));}var ya=1,er=4,te=Object.freeze({top:0,right:0,bottom:0,left:0}),tr=new WeakMap;function ha(e,t){let n=ga(e);return n===te?t:chunkY6FY46N6_cjs.yf(t,n)}function ga(e){let t=e.vectorShape;if(!t)return te;let{cx:n,cy:r}=t.extentEmu;if(!(n>=0)||!(r>=0)||n===0&&r===0)return te;let o=tr.get(t);if(o||(o=Sa(t),tr.set(t,o)),o===te)return te;let a=e.paintBounds,i=e.geometry.contentBounds;if(!(a.width>0||i.width<=0)||!(a.height>0||i.height<=0))return te;let s=n>0?i.width/n:i.height/r,c=r>0?i.height/r:i.width/n,l=(f,p,g)=>{if(g<-1e-3)return 0;let h=f*p-Math.max(0,g);return Number.isFinite(h)&&h>0?h:0},u=e.kind==="inlineDrawing"&&e.placeholderGraphicKind===null,y={left:l(o.left,s,i.x-a.x),top:u?0:l(o.top,c,i.y-a.y),right:l(o.right,s,a.x+a.width-(i.x+i.width)),bottom:l(o.bottom,c,a.y+a.height-(i.y+i.height))};return y.left||y.top||y.right||y.bottom?Object.freeze(y):te}function Sa(e){let{cx:t,cy:n}=e.extentEmu,r=0,o=0,a=t,i=n,s=(y,f)=>{r=Math.min(r,y),a=Math.max(a,y),o=Math.min(o,f),i=Math.max(i,f);},c=e.overflowVisible===true,l=c?1/0:ya,u=y=>y.x>=-l&&y.x<=t+l&&y.y>=-l&&y.y<=n+l;for(let y of e.components){if(c)for(let d of y.subpathsEmu)for(let S of d)s(S.x,S.y);let f=y.clipEmu?void 0:y.shadow;if(f){let d=1/0,S=1/0,x=-1/0,R=-1/0;for(let B of y.subpathsEmu)for(let v of B){let w=c?v.x:Math.max(0,Math.min(t,v.x)),_=c?v.y:Math.max(0,Math.min(n,v.y));d=Math.min(d,w),S=Math.min(S,_),x=Math.max(x,w),R=Math.max(R,_);}let L=chunkY6FY46N6_cjs.xf(f.blurEmu)*.75+(y.strokeHex!==null?Math.max(1,chunkY6FY46N6_cjs.xf(y.strokeWidthEmu))/2:0),E=chunkY6FY46N6_cjs.xf(f.dxEmu),O=chunkY6FY46N6_cjs.xf(f.dyEmu);d<=x&&(s(d+E-L,S+O-L),s(x+E+L,R+O+L));}if(y.strokeHex===null||y.strokeInset===true)continue;let p=Math.max(1,chunkY6FY46N6_cjs.xf(y.strokeWidthEmu))/2,g=l+Math.max(0,chunkY6FY46N6_cjs.xf(y.strokeOutsetEmu??0)),h=d=>d.x>=-g&&d.x<=t+g&&d.y>=-g&&d.y<=n+g;y.subpathsEmu.forEach((d,S)=>{let x=y.subpathsClosed?.[S]!==false,R=xa(d,x),L=x&&R.length>2?R.length:R.length-1,E=[];for(let B=0;B<L;B+=1){let v=R[B],w=R[(B+1)%R.length],_=Math.hypot(w.x-v.x,w.y-v.y),b={x:-(w.y-v.y)/_,y:(w.x-v.x)/_};if(E.push(b),!!ba(v,w,-g,t+g,-g,n+g))for(let m=0;m<2;m+=1){let F=J[m],C=v.x+(w.x-v.x)*F,T=v.y+(w.y-v.y)*F;s(C+b.x*p,T+b.y*p),s(C-b.x*p,T-b.y*p);}}if(!x&&E.length&&(y.strokeCap==="round"||y.strokeCap==="square")){for(let[B,v,w]of [[R[0],E[0],-1],[R[R.length-1],E[E.length-1],1]])if(h(B))if(y.strokeCap==="round")s(B.x-p,B.y-p),s(B.x+p,B.y+p);else {let _=B.x+w*v.y*p,b=B.y-w*v.x*p;s(_+v.x*p,b+v.y*p),s(_-v.x*p,b-v.y*p);}}let O=x&&R.length>2?E.length:E.length-1;for(let B=0;B<O;B+=1){let v=R[(B+1)%R.length];if(!h(v))continue;if(y.strokeJoin==="round"){s(v.x-p,v.y-p),s(v.x+p,v.y+p);continue}if(y.strokeJoin==="bevel")continue;let w=E[B],_=E[(B+1)%E.length],b=1+w.x*_.x+w.y*_.y;if(b<2/(er*er))continue;let m=w.y*-_.x- -w.x*_.y;if(m===0)continue;let F=m>0?-1:1;s(v.x+F*(w.x+_.x)*p/b,v.y+F*(w.y+_.y)*p/b);}});for(let d of y.arrowheadsEmu??[])if(!(!d[0]||!u(d[0])))for(let S of d)s(S.x,S.y);}return r>=0&&o>=0&&a<=t&&i<=n?te:Object.freeze({left:-r,top:-o,right:a-t,bottom:i-n})}function xa(e,t){let n=[];for(let a of e){let i=n[n.length-1];(!i||i.x!==a.x||i.y!==a.y)&&n.push(a);}let r=n[0],o=n[n.length-1];return t&&n.length>1&&r.x===o.x&&r.y===o.y&&n.pop(),n}var J=new Float64Array(2);function ba(e,t,n,r,o,a){let i=t.x-e.x,s=t.y-e.y;return J[0]=0,J[1]=1,We(-i,e.x-n)&&We(i,r-e.x)&&We(-s,e.y-o)&&We(s,a-e.y)}function We(e,t){if(e===0)return t>=0;let n=t/e;return e<0?J[0]=Math.max(J[0],n):J[1]=Math.min(J[1],n),J[0]<=J[1]}var Ra="abcdefghijklmnopqrstuvwxyz";function N(e){let t=Math.round(e.fontSizePt*2);return Math.max(1,t)}function X(e,t,n,r,o){let a=r.shaping?.context;return e.shape({text:o,fontSizeHalfPoints:N(r),bidiLevel:r.shaping?.direction==="rtl"?1:0,environment:Fa(t,n,r),...a?{context:a}:{}})}var nr=new WeakMap;function Fa(e,t,n){if(!Object.isFrozen(e)||!Object.isFrozen(e.features)||!Object.isFrozen(e.variationAxes)||!Object.isFrozen(e.shapingLibrary))return rr(e,t,n);let r=n.shaping?.direction??"ltr",o=n.shaping?.script,a=`${r}|${o??""}|${chunkY6FY46N6_cjs.w(n)?1:0}|${e.documentLigatures?chunkY6FY46N6_cjs.O(n):""}|${n.smallCaps?1:0}`,i=nr.get(e);i||nr.set(e,i=new WeakMap);let s=i.get(t);s||i.set(t,s=new Map);let c=s.get(a);return c||s.set(a,c=rr(e,t,n)),c}function rr(e,t,n){return chunkY6FY46N6_cjs.r({...e,font:t,direction:n.shaping?.direction??"ltr",script:n.shaping?.script==="Zyyy"?e.script:n.shaping?.script??e.script,features:{...e.features,kern:chunkY6FY46N6_cjs.w(n)?1:0,...e.documentLigatures?chunkY6FY46N6_cjs.N(n):{},...n.smallCaps?{smcp:1}:{}},fallbackOrder:[]})}function Ke(e,t,n,r,o){let a=o.get(n);if(a!==void 0)return a;let i=true;try{for(let s of Ra){let c=X(e,t,n,{...r,smallCaps:!0},s),l=X(e,t,n,{...r,smallCaps:!1},s);if(!(c.glyphs.length!==l.glyphs.length||c.glyphs.some((y,f)=>y.id!==l.glyphs[f]?.id))){i=!1;break}}}catch{i=false;}return o.set(n,i),i}var Ca=new Map([["garamond",{family:"Garamond",em:or(1765,539,0)}],["segoe ui",{family:"Segoe UI",em:or(2210,514,0)}]]);function or(e,t,n){return {heightEm:(e+t+n)/2048,baselineEm:(e+n)/2048}}function Lt(e){return e?Ca.get(e.trim().toLowerCase()):void 0}function Ve(e){let t=Lt(e.fontFamily);if(!t)return;let n=N(e)/2*chunkY6FY46N6_cjs.ra(e);return {height:t.em.heightEm*n,baseline:t.em.baselineEm*n}}var Ea=new Map([["roman","serif"],["swiss","sans"],["modern","mono"]]);function bs(e,t){return t==="fixed"?"mono":e?Ea.get(e):void 0}var va=new Map([["calibri","sans"],["arial","sans"],["helvetica","sans"],["verdana","sans"],["tahoma","sans"],["segoe ui","sans"],["aptos","sans"],["century gothic","sans"],["carlito","sans"],["cambria","serif"],["times new roman","serif"],["georgia","serif"],["garamond","serif"],["book antiqua","serif"],["palatino linotype","serif"],["caladea","serif"],["courier new","mono"],["consolas","mono"]]);function ar(e){let t=e.trim().toLowerCase(),n=va.get(t);if(n)return n;let r=t.split(/[\s_-]+/);if(r.includes("mono")||r.includes("monospace")||r.includes("courier"))return "mono";if(r.includes("sans"))return "sans";if(r.includes("serif")||r.includes("roman"))return "serif"}var Rs={serif:"Times New Roman",sans:"Arial",mono:"Courier New"};var Bt="Calibri, Carlito, Helvetica, Arial, sans-serif",La='"Times New Roman", "Liberation Serif", Tinos, serif',Ba='"Courier New", "Liberation Mono", Cousine, monospace',Ta='Batang, AppleMyungjo, "Noto Serif CJK KR", serif';function wa(e,t=Bt,n){if(!e)return t;if(n?.(e))return Ta;let r=ar(e);return r==="serif"?La:r==="mono"?Ba:t}var ws=new Map([["calibri","Carlito"]]),Oa=65536,Aa=256;function ir(e,t){return e===void 0?Math.max(1,Math.floor(t)):Number.isFinite(e)&&e>0?Math.max(1,Math.floor(e)):1}function sr(e){let t=new Map,n=null,r=null,o=0,a=s=>{s.older?s.older.newer=s.newer:n=s.newer,s.newer?s.newer.older=s.older:r=s.older,s.older=null,s.newer=null;},i=s=>{s.older=r,s.newer=null,r?r.newer=s:n=s,r=s;};return {get(s){let c=t.get(s);if(c!==void 0)return c!==r&&(a(c),i(c)),c.value},set(s,c){let l=t.get(s);if(l){l.value=c,l!==r&&(a(l),i(l));return}let u={key:s,value:c,older:null,newer:null};for(t.set(s,u),i(u);t.size>e&&n;){let y=n;a(y),t.delete(y.key),o+=1;}},get size(){return t.size},get evictions(){return o}}}var cr=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function lr(e=null){return e!=null&&typeof e.measureText=="function"}function ur(e={}){let t=e.scale??1;if(!(t>0)||!Number.isFinite(t))return null;let n=e.fallbackFamily??Bt,r=e.context??null;if(!lr(r))return null;let o=r,a=sr(ir(e.maxWidthEntries,Oa)),i=sr(ir(e.maxMetricsEntries,Aa)),s=e.fontAlias,c=new Map,l=f=>{let p=c.get(f);if(p!==void 0)return p;let g="The quick brown fox 0123",h=false;for(let d of ["monospace","serif"]){o.font=`32px ${d}`;let S=o.measureText(g).width;if(o.font=`32px "${f}", ${d}`,o.measureText(g).width!==S){h=true;break}}return c.set(f,h),h},u=f=>{let p=f.fontFamily&&cr.test(f.fontFamily)?f.fontFamily:null,g=p?s?.(p):void 0,h=g&&cr.test(g)?g:null,d=wa(p,n,e.serifHangulFace),S=p?h?`"${h}", "${p}", ${d}`:`"${p}", ${d}`:n,x=f.bold?"bold":"normal",R=f.italic?"italic":"normal",L=f.smallCaps?"small-caps":"normal",E=f.fontSizePt*chunkY6FY46N6_cjs.ra(f)*t;return `${R} ${L} ${x} ${E}px ${S}`},y=(f,p,g)=>f/t*(g.horizontalScalePercent/100)+p.length*g.characterSpacingPt;return {measure(f,p){if(f.length===0)return 0;let g=u(p),h=chunkY6FY46N6_cjs.y(p,f),d=`${g}\0${h}\0${f}`,S=a.get(d);if(S!==void 0)return y(S,f,p);o.font=g,"fontKerning"in o&&(o.fontKerning=h?"normal":"none");let x=o.measureText(f).width;return a.set(d,x),y(x,f,p)},inkBounds(f,p){if(!f||f.length>2||p.shaping?.direction==="rtl"||chunkY6FY46N6_cjs.ya(f).length!==1)return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunkY6FY46N6_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.direction,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.direction="ltr"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.direction=h);}let S=d.actualBoundingBoxLeft,x=d.actualBoundingBoxRight;if(S===void 0||x===void 0||!Number.isFinite(S)||!Number.isFinite(x))return;let R=p.horizontalScalePercent/(100*t);return {left:-S*R,right:x*R}},textOutline(f,p){if(!f||p.shaping?.direction==="rtl")return;o.font=u(p),"fontKerning"in o&&(o.fontKerning=chunkY6FY46N6_cjs.w(p)?"normal":"none");let g=o.textAlign,h=o.textBaseline,d;try{g!==void 0&&(o.textAlign="left"),h!==void 0&&(o.textBaseline="alphabetic"),d=o.measureText(f);}finally{g!==void 0&&(o.textAlign=g),h!==void 0&&(o.textBaseline=h);}let S=[-(d.actualBoundingBoxLeft??NaN),-(d.actualBoundingBoxAscent??NaN),d.actualBoundingBoxRight??NaN,d.actualBoundingBoxDescent??NaN].map(O=>O/t);if(S.some(O=>!Number.isFinite(O)))return;let[x,R,L,E]=S;if(!(!(L>x)||!(E>R)))return {path:null,ink:{left:x,top:R,right:L,bottom:E}}},lineMetrics(f){let p=f.fontSizePt*chunkY6FY46N6_cjs.ra(f),g=u(f),h=i.get(g);if(h)return h;let d=Lt(f.fontFamily),S=d&&!l(d.family)&&Ve(f);if(S)return i.set(g,S),S;let x=p*1.15,R=p*.8;o.font=g,"fontKerning"in o&&(o.fontKerning=chunkY6FY46N6_cjs.w(f)?"normal":"none");let L=o.measureText("Hxg"),E=L.fontBoundingBoxAscent,O=L.fontBoundingBoxDescent;if(typeof E=="number"&&Number.isFinite(E)&&E>0&&(R=E/t,typeof O=="number"&&Number.isFinite(O)&&O>=0)){let v=(E+O)/t;v>0&&(x=Math.max(v,x));}x>0||(x=p*1.15);let B={height:x,baseline:R};return i.set(g,B),B}}}function Ia(e=1,t={}){let n=ur({...t,scale:t.scale??e});return n?{measurer:n,producer:t.fontAlias?"canvas-measurer+embedded":"canvas-measurer"}:{measurer:chunkY6FY46N6_cjs.ta(),producer:"fixed-measurer"}}function Ma(e){let t;return n=>{t===void 0&&(t=chunkY6FY46N6_cjs.jd(e.pages)?.hosts??null);let r=t?.get(n);return r?chunkY6FY46N6_cjs.hd(r.pageNumber,r.format):null}}function dr(e,t){let n=chunkY6FY46N6_cjs.uf(e,t.displayMode??chunkY6FY46N6_cjs.mb),r=chunkY6FY46N6_cjs.Od({numberingIndex:t.numberingIndex,styleCascade:t.styleCascade},n).listItems,o=t.package?{footnotesPart:chunk2JVOX642_cjs.pj(t.package,"footnote"),endnotesPart:chunk2JVOX642_cjs.pj(t.package,"endnote")}:void 0,a=chunkY6FY46N6_cjs.ie(n,r,o,t.package?chunkY6FY46N6_cjs.fe(t.package,e,n):void 0,t.displayMode??chunkY6FY46N6_cjs.mb);return {blocks:n,notes:o,context:a}}function pr(e,t,n,r,o){for(let a of t){if(r.length>=chunk2JVOX642_cjs.yn)return;if(n.tokenForParagraph(a.id)!==""&&chunk2JVOX642_cjs.Bn(e,a.id)===null)for(let i of chunk2JVOX642_cjs.An(a)){if(r.length>=chunk2JVOX642_cjs.yn)return;if(!i.rewritable)continue;let s=chunkY6FY46N6_cjs.Wc(i.instruction);if(s===null)continue;let c=n.liveValueOf(i.fieldNodeId,s);if(c===null&&o&&n.pageRefProjectionOf){let l=n.pageRefProjectionOf(i.fieldNodeId,s);if(l){let u=o(l.targetParagraphId);u!==null&&u.length>0&&chunkY6FY46N6_cjs.id(l.calibration,l.cached,u,Number.NaN)&&(c=u);}}c===null||c===i.cachedText||c.length>chunk2JVOX642_cjs.zn||c.includes("\r")||r.push({paragraphId:a.id,fieldNodeId:i.fieldNodeId,text:c});}}}function _a(e,t){let{blocks:n,context:r}=dr(e,t);if(r===null)return null;let o=[];return pr(e,chunkY6FY46N6_cjs.Zc(chunkY6FY46N6_cjs.wc(n)),r,o,t.pageRefPageNumberOf),o.length===0?null:{op:"refreshFieldResults",updates:o}}function Hs(e,t){let{notes:n,context:r}=dr(e,t);if(r===null||n===void 0)return [];let o=[],a=[{noteKind:"footnote",notesPart:n.footnotesPart},{noteKind:"endnote",notesPart:n.endnotesPart}];for(let{noteKind:i,notesPart:s}of a){if(!s)continue;let c=[];for(let l of chunkY6FY46N6_cjs.ge(s,t.displayMode??chunkY6FY46N6_cjs.mb)){if(c.length>=chunk2JVOX642_cjs.yn)break;pr(s,chunkY6FY46N6_cjs.Zc(chunkY6FY46N6_cjs.wc(l)),r,c);}c.length>0&&o.push({noteKind:i,op:{op:"refreshFieldResults",updates:c}});}return o}function Pa(e){return e.box}function fr(e,t){if(e.kind==="paragraph"){t.add(e.paragraphId);return}for(let n of e.rows)for(let r of n.cells)for(let o of r.blocks)fr(o,t);}function ka(e){let t=new Map,n=(o,a,i)=>{if(!(o.kind==="textValue"||i>chunk2JVOX642_cjs.ec*4)){for(let s of o.children)if(s.kind!=="textValue"){if(s.kind==="paragraph"){for(let c of r)t.get(c)?.push(s.id);n(s,s.id,i+1);continue}if(s.kind==="contentControl"){t.set(s.id,[]),r.push(s.id);let c=chunk2JVOX642_cjs.oc(s);c&&n(c,a,i+1),r.pop();let l=t.get(s.id);l&&l.length===0&&a!==null&&l.push(a);continue}n(s,a,i+1);}}},r=[];return n(e,null,0),t}function za(e,t){let n=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return {x:n,y:r,width:Math.max(e.x+e.width,t.x+t.width)-n,height:Math.max(e.y+e.height,t.y+t.height)-r}}function Na(e,t){let n=chunk2JVOX642_cjs.sc(e.root);if(n.length===0)return Da;let r=new Map;t.pages.forEach((i,s)=>{(l=>{for(let u of l){let y=new Set;fr(u,y);for(let f of y){let p=r.get(f)??[];p.push({pageIndex:s,box:Pa(u)}),r.set(f,p);}}})(i.fragments);});let o=ka(e.root),a=[];for(let i of n){let s=chunk2JVOX642_cjs.qc(i.node),c=[...i.ancestors.map(f=>chunk2JVOX642_cjs.qc(f).lock),s.lock],l=o.get(i.node.id)??[],u=new Map;for(let f of l)for(let p of r.get(f)??[]){let g=u.get(p.pageIndex);u.set(p.pageIndex,g?za(g,p.box):p.box);}let y=[...u.entries()].sort((f,p)=>f[0]-p[0]).map(([f,p])=>({pageIndex:f,...p}));a.push({controlId:i.node.id,type:s.type,level:chunk2JVOX642_cjs.rc(i.node),depth:i.depth,lock:s.lock,effectiveLock:chunk2JVOX642_cjs.vc(c),showingPlaceholder:s.showingPlaceholder,temporary:s.temporary,...s.tag===void 0?{}:{tag:s.tag},...s.alias===void 0?{}:{alias:s.alias},...s.id===void 0?{}:{id:s.id},...s.dataBinding===void 0?{}:{dataBinding:s.dataBinding},paragraphIds:l,fragments:y});}return a}var Da=Object.freeze([]);var Ha=4096;function Ua(e,t=0){if(!(e instanceof Uint8Array)||!Number.isSafeInteger(t)||t<0||e.byteLength<12)return;let n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=(h,d)=>Number.isSafeInteger(h)&&Number.isSafeInteger(d)&&h>=0&&d>=0&&h<=e.length-d,o=h=>n.getUint16(h,false),a=h=>n.getUint32(h,false),i=0,s=false;if(a(0)===1953784678){s=true;let h=a(4),d=a(8);if(![65536,131072].includes(h)||!d||t>=d||!r(12,d*4))return;i=a(12+t*4);}else if(t!==0)return;if(!r(i,12)||![65536,1330926671,1953658213].includes(a(i)))return;let c=o(i+4);if(!c||c>Ha||!r(i+12,c*16))return;let l=new Map;for(let h=0;h<c;h++){let d=i+12+h*16,S=a(d),x=a(d+8),R=a(d+12);if(l.has(S)||!r(x,R))return;l.set(S,{offset:x,length:R});}let u=l.get(1751474532),y=l.get(1330851634);if(!u||u.length<20||!y||y.length<4)return;let f=o(u.offset+18),p=o(y.offset),g=n.getInt16(y.offset+2,false);if(!(f<16||f>16384||p>5||g<=0))return Object.freeze({faceIndex:t,collection:s,unitsPerEm:f,os2Version:p,xAvgCharWidth:g,averageAdvanceEm:g/f})}function mr(e,t=Ua){if(typeof e!="function"||typeof t!="function")return;let n=new WeakMap;return r=>{if(!chunkY6FY46N6_cjs.fc(r))return;let o;try{o=e(r);}catch{return}if(!o||typeof o!="object"||o.substitution!==null||o.family.trim().toLowerCase()!==r.fontFamily?.trim().toLowerCase()||typeof o.hash!="string"||!/^sha256:[0-9a-f]{64}$/u.test(o.hash)||!Number.isSafeInteger(o.faceIndex)||o.faceIndex<0)return;let a=n.get(o);if(a===void 0&&(a=t(o.bytes,o.faceIndex)??null,n.set(o,a)),!a)return;let i=r.fontSizePt*a.averageAdvanceEm/2;return Number.isFinite(i)&&i>=0&&i<=r.fontSizePt?i:void 0}}var W=(e,t)=>e[t]<<8|e[t+1],Q=(e,t)=>e[t]*16777216+(e[t+1]<<16)+(e[t+2]<<8)+e[t+3]>>>0;function Ga(e,t){let n=(i,s)=>i>=0&&i+s<=e.length;if(!n(0,12))return null;let r=Q(e,0)===1953784678;if(r&&!n(12+t*4,4))return null;let o=r?Q(e,12+t*4):0;if(!n(o,12))return null;let a=W(e,o+4);for(let i=0;i<a;i+=1){let s=o+12+i*16;if(!n(s,16))return null;if(Q(e,s)!==1668112752)continue;let c=Q(e,s+8);if(!n(c,4))return null;let l=null,u=null,y=W(e,c+2);for(let f=0;f<y;f+=1){let p=c+4+f*8;if(!n(p,8))return null;let g=W(e,p),h=W(e,p+2),d=c+Q(e,p+4);if(!n(d,2)||!(g===0||g===3&&(h===1||h===10)))continue;let x=W(e,d);x===12&&u===null&&(u=d),x===4&&l===null&&(l=d);}return u!==null?{format:12,offset:u}:l!==null?{format:4,offset:l}:null}return null}function Wa(e,t,n){let r=(u,y)=>u>=0&&u+y<=e.length,o=t.offset;if(t.format===12){if(!r(o,16))return false;let u=Q(e,o+12),y=0,f=Math.min(u,Math.floor((e.length-o-16)/12))-1;for(;y<=f;){let p=y+f>>>1,g=o+16+p*12,h=Q(e,g),d=Q(e,g+4);if(n<h)f=p-1;else if(n>d)y=p+1;else return Q(e,g+8)+(n-h)!==0}return false}if(n>65535||!r(o,14))return false;let a=W(e,o+6)>>>1,i=o+14,s=i+a*2+2,c=s+a*2,l=c+a*2;if(!r(l,a*2))return false;for(let u=0;u<a;u+=1){if(n>W(e,i+u*2))continue;let y=W(e,s+u*2);if(n<y)return false;let f=W(e,c+u*2),p=l+u*2,g=W(e,p);if(g===0)return (n+f&65535)!==0;let h=p+g+(n-y)*2;if(!r(h,2))return false;let d=W(e,h);return d!==0&&(d+f&65535)!==0}return false}var yr=new WeakMap;function hr(e,t){let n=chunkY6FY46N6_cjs.i(e),r=yr.get(e);return r===void 0&&(r=Ga(n,e.faceIndex),yr.set(e,r)),r?Wa(n,r,t):void 0}var gr=new WeakMap;function Ka(e){let t=gr.get(e);if(t!==void 0)return t;let n=chunkY6FY46N6_cjs.i(e),r=new DataView(n.buffer,n.byteOffset,n.byteLength),o=false,a=r.getUint32(0)===1953784678?r.getUint32(12+e.faceIndex*4):0,i=r.getUint16(a+4);for(let s=0;s<i;s++){let c=a+12+s*16;if(r.getUint32(c)!==1330851634)continue;let l=r.getUint32(c+8),u=r.getUint32(c+12);u>=86&&l<=n.byteLength-u&&r.getUint16(l)>=1&&(o=(r.getUint32(l+78)&1966080)!==0);break}return gr.set(e,o),o}var Sr=1.3;function xr(e,t,n,r,o,a=false){let i=n.height-r;if(!(Math.abs(i-t)<=o)&&!a||!Ka(e))return n;let c=a?i*Sr:Math.max(n.height,t*Sr),l=n.baseline-r;return {height:c,baseline:l+(c-i)/2}}var Va=.89111328125,Xa=443/2048,ja=87/2048,Ya=1/2048,$a=new Set(["Arab","Hebr","Syrc","Thaa","Nkoo"]);function br(e){return e.latinLane===void 0&&!$a.has(e.shaping?.script??"")}function Rr(e,t,n,r,o,a=true){if(!a||r!==0||!(o>0)||e.trim().toLowerCase()!=="times new roman")return r;let i=(s,c)=>Math.abs(s/o-c)<=Ya;return i(t,Va)&&i(n,Xa)?ja*o:r}var qa=.5;function Za(e,t){if(t.fontFamily===null)return false;let n=e.substitution;return n!==null&&(n.lineMetrics!==void 0||!chunk2JVOX642_cjs.me(n.requested.family,n.resolved.family))?false:e.family===t.fontFamily||chunk2JVOX642_cjs.me(e.family,t.fontFamily)}function Fr(e,t,n,r,o){let a=new WeakMap;return (i,s)=>{let c=chunkY6FY46N6_cjs.ra(s),l=a.get(i);l||(l=new Map,a.set(i,l));let u=N(s),y=br(s),f=Za(i,s),p=(y?u:-u)+(f?qa:0),g=l.get(p);if(g)return c===1?g:{height:g.height*c,baseline:g.baseline*c};let h,d=true,S=i.substitution?.lineMetrics;if(S){let x=u/2;h={height:S.heightEm*x,baseline:S.baselineEm*x};}else try{let x=X(e,t,i,s,""),R=x.metrics.ascent/t.fixedPointScale,L=x.metrics.descent/t.fixedPointScale,E=u/2,O=R+L,B=E*r,v=O>B?B/O:1,w=O*v,_=x.metrics.lineGap/t.fixedPointScale,b=Math.min(Math.max(0,Rr(i.family,R,L,_,E,y)),w*o),m=w+b;m>0?h=xr(i,E,{height:m,baseline:R*v+b},b,2/t.fixedPointScale,f):(h=n.lineMetrics(s),d=!1);}catch{h=n.lineMetrics(s),d=false;}return d?(l.set(p,h),c===1?h:{height:h.height*c,baseline:h.baseline*c}):h}}var Tt=2048,Ja=32,Qa=new Map([["symbol",{ascent:2059,descent:450,advances:[512,682,1460,1024,1124,1706,1593,899,682,682,1024,1124,512,1124,512,569,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,569,569,1124,1124,1124,909,1124,1479,1366,1479,1253,1251,1563,1235,1479,682,1292,1479,1405,1821,1479,1479,1573,1518,1139,1212,1251,1413,899,1573,1321,1628,1251,682,1767,682,1348,1024,1024,1292,1124,1124,1012,899,1067,842,1235,674,1235,1124,1124,1180,1067,1124,1124,1067,1124,1235,899,1180,1460,1405,1010,1405,1012,983,410,983,1124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1270,506,1124,342,1460,1024,1542,1542,1542,1542,2134,2021,1235,2021,1235,819,1124,842,1124,1124,1460,1012,942,1124,1124,1124,1124,2048,1235,2048,1348,1686,1405,1628,2021,1573,1573,1686,1573,1573,1460,1460,1460,1460,1460,1460,1460,1573,1460,1618,1618,1823,1686,1124,512,1460,1235,1235,2134,2021,1235,2021,1235,1012,674,1618,1618,1610,1460,786,786,786,786,786,786,1012,1012,1012,1012,0,674,561,1405,1405,1405,786,786,786,786,786,786,1012,1012,1012,0]}],["wingdings",{ascent:1841,descent:432,advances:[2048,2110,2344,2665,2752,1830,2492,938,2220,1826,2319,2319,2399,2399,2951,2956,2245,2751,1431,1431,1826,1135,1233,2196,1941,2208,1924,1825,1826,1826,1825,1863,1863,1203,1624,1381,1381,1929,1929,1124,1124,1826,1727,1727,1727,2275,1352,1739,2230,1819,1803,1332,1665,1529,1529,1480,1420,1627,1813,1826,1834,1825,2368,2159,1974,2233,1927,1911,1937,2099,1902,2245,2181,1597,2150,2603,1529,1951,1529,1825,1825,1825,1825,937,1529,2020,1825,1183,2171,2171,1825,1826,1826,1086,1086,0,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,2048,2048,2048,2048,2048,2048,2048,2048,641,937,641,1825,1825,1825,1825,1825,1951,937,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2146,2146,2146,2146,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2566,2566,1627,1627,1825,1825,1825,1825,1825,1825,2006,2006,1825,1825,1589,1589,1589,1589,2186,2186,1825,1825,1787,1787,1787,1787,1825,1825,1660,1660,2171,1660,1601,1601,1601,1601,987,789,1301,1609,1826,1826,2119]}],["wingdings 2",{ascent:1727,descent:432,advances:[2048,2110,2090,2073,2086,2344,2045,2220,989,1431,1431,1826,1431,1431,1826,1431,1431,1826,1431,1431,2320,2246,1826,1826,1826,2320,2170,2170,1381,1381,1938,1938,1938,1938,1928,1928,1928,1928,1047,1047,1047,1047,1178,1178,1178,1178,1826,1321,1568,1826,1826,1826,1826,1825,1825,1826,1826,2226,1727,1548,1579,984,1035,864,1018,2048,2048,2048,2048,2048,2048,2048,2048,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,1826,0,1899,1899,1453,1453,1673,1332,1431,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2048,2048,542,740,1135,1825,1825,1825,1825,1825,1825,1825,542,740,1135,1825,1825,1825,1825,1825,1825,1825,1825,1825,624,764,903,1461,2020,2020,2020,2020,2020,542,641,740,1135,1529,1529,1085,1085,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1496,1825,0,0,0,0,0,0]}],["wingdings 3",{ascent:1900,descent:432,advances:[2048,1825,1825,1135,1135,1444,1444,1444,1444,1825,1825,1135,1135,1677,1677,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1135,1825,1825,1455,1455,1455,1455,2010,2010,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,2220,1825,1751,1114,1115,1660,1660,1930,1930,1930,1930,1924,1924,1924,1924,1930,1930,1931,1931,1825,1825,1232,1232,1444,1444,1444,1444,1825,1232,2005,2005,2005,2005,1801,1801,1801,1801,1801,1801,1801,1801,1085,1085,1825,0,1825,1825,1825,1825,1825,1627,1627,1825,1825,1825,1825,789,789,1825,1825,987,987,1825,1825,1184,1184,1825,1825,1579,1579,1825,1825,888,888,1825,1825,1381,1381,1825,1825,1875,1875,1825,1825,1825,1825,1825,1825,1825,789,592,493,394,1825,1825,1825,1825,1825,1085,1085,1381,1381,1628,1628,1184,1184,900,900,1825,1825,1019,1019,1825,1825,1825,1825,1825,1825,1825,1825,1825,1825,1291,1291,1291,1291,1961,1961,1825,1825,1540,1540,1540,1540,2096,2096,1825,1825,1688,1688,1688,1688,2277,2277,1825,1825,1885,1885,1885,1885,543,543,1234,1234,766,766,1234,1234,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}],["webdings",{ascent:1638,descent:410,advances:[1024,2048,2048,2048,2048,2028,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1100,1100,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1144,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,0,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2500,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,1377,1377,2048,1726,1058,2048,2048,2048,2048,877,1240,2048,2048,2048,2048,1357,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2048,2645,2048,2048,2048,2048]}]]);function ei(e){if(chunk2JVOX642_cjs.b(e))return Qa.get(e.toLowerCase())}function Cr(e,t,n,r){let o=N(r)/2*chunkY6FY46N6_cjs.ra(r)*(r.horizontalScalePercent/100)/Tt,a=[];for(let i=0;i<n.length;i++){let s=chunk2JVOX642_cjs.c(n.charCodeAt(i),t),c=s===null?0:e.advances[s-Ja]??0;if(c===0)return;a.push(c*o+r.characterSpacingPt);}return a}function Er(e){let t=new WeakMap,n=r=>{let o=t.get(r);return o===void 0&&(o=ei(r.fontFamily)??null,t.set(r,o)),o};return {...e,measure(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.measure(r,o);let s=0;for(let c of i)s+=c;return s},caretAdvances(r,o){let a=n(o),i=a&&Cr(a,o.fontFamily,r,o);if(!i)return e.caretAdvances?.(r,o);let s=[0];for(let c of i)s.push(s[s.length-1]+c);return s},lineMetrics(r,o){let a=n(r);if(!a)return e.lineMetrics(r,o);let i=N(r)/2*chunkY6FY46N6_cjs.ra(r);return {height:(a.ascent+a.descent)*i/Tt,baseline:a.ascent*i/Tt}}}}var ti={M:2,L:2,Q:4,C:6,Z:0},vr=e=>{let t=Math.round(e*1e3)/1e3;return String(Object.is(t,-0)?0:t)};function wt(e,t,n){if(!(t>0)||!(n>0))return;let r=[],o=0,a=1/0,i=-1/0,s=1/0,c=-1/0;for(let l of e.glyphs){if(l.id===0)return;let u=l.outline.path,y=l.outline.unitsPerEm;if(!u)continue;if(!(y>0)||!u.startsWith("M")||/[^MLQCZ0-9eE+.,\s-]/u.test(u))return;let f=t*(l.drawScale??1)/y,p=(l.originX+l.offsetX)/n,g=(l.originY+l.offsetY)/n;for(let h of u.matchAll(/([MLQCZ])([^MLQCZ]*)/gu)){let d=h[1],S=h[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(S.length!==ti[d]||S.some(R=>!Number.isFinite(R)))return;let x=d;for(let R=0;R<S.length;R+=2){let L=p+S[R]*f,E=-(g+S[R+1]*f);a=Math.min(a,L),i=Math.max(i,L),s=Math.min(s,E),c=Math.max(c,E),x+=`${R?" ":""}${vr(L)} ${vr(E)}`;}if(o+=x.length,o>2e6)return;r.push(x);}}if(!(!r.length||!(i>a)||!(c>s)))return Object.freeze({path:r.join(""),ink:Object.freeze({left:a,top:s,right:i,bottom:c})})}var Ot=new WeakMap;function ni(e){let t=Ot.get(e);if(t!==void 0)return t??void 0;let n=e.path;if(!n.startsWith("M")||n.length>1e6||/[^MLQCZ0-9eE+.,\s-]/u.test(n))return;let r=1/0,o=-1/0,a=n.matchAll(/([MLQCZ])([^MLQCZ]*)/gu);for(let s of a){let c=s[1]==="Z"?0:s[1]==="C"?6:s[1]==="Q"?4:2,l=s[2].trim().split(/[\s,]+/u).filter(Boolean).map(Number);if(l.length!==c||l.some(u=>!Number.isFinite(u))){Ot.set(e,null);return}for(let u=0;u<l.length;u+=2)r=Math.min(r,l[u]),o=Math.max(o,l[u]);}let i=Number.isFinite(r)&&Number.isFinite(o)?{left:r,right:o}:void 0;return Ot.set(e,i??null),i}function Lr(e,t,n,r){if(e.clusters.length!==1||e.glyphs.length===0)return;let o=1/0,a=-1/0;for(let s of e.glyphs){if(s.id===0)return;let c=ni(s.outline),l=s.outline.unitsPerEm;if(!c||!(l>0))return;let u=(s.originX+s.offsetX)/n;o=Math.min(o,u+c.left*t*(s.drawScale??1)/l),a=Math.max(a,u+c.right*t*(s.drawScale??1)/l);}let i={left:o*r,right:a*r};return Number.isFinite(i.left)&&Number.isFinite(i.right)?i:void 0}function ri(e,t,n){if(t<12)return null;if(e.getUint32(0)!==1953784678)return 0;let o=12+(Number.isSafeInteger(n)&&n>0?n:0)*4;if(o+4>t)return null;let a=e.getUint32(o);return a+12<=t?a:null}function Br(e,t,n,r,o){let a=e.getUint16(n+4);if(a>4096||n+12+a*16>t)return null;for(let i=0;i<a;i+=1){let s=n+12+i*16;if(e.getUint32(s)!==r)continue;let c=e.getUint32(s+8),l=e.getUint32(s+12);return l<o||c+l>t?null:c}return null}function Tr(e,t){let n=e.byteLength,r=new DataView(e.buffer,e.byteOffset,n),o=ri(r,n,t);if(o===null)return null;let a=Br(r,n,o,1751474532,54);if(a===null)return null;let i=r.getUint16(a+18);if(i<=0)return null;let s=Br(r,n,o,1330851634,30);if(s===null)return null;let c=r.getInt16(s+26)/i,l=r.getInt16(s+28)/i;return !(c>0)||c>1||!(Math.abs(l)<=1)?null:{offsetEm:l,thicknessEm:c}}var Xe=.02;function At(e,t){return e.bold===true&&t.request.weight<600}function wr(e){return e.advanceX>0&&e.outline.path.length>0}function Or(e){let t=0;for(let n of e.glyphs)wr(n)&&t++;return t}function Ar(e,t,n){if(n<=0)return e;let r=new Array(e.length).fill(0);for(let a of t.glyphs){if(!wr(a))continue;let i=Math.min(Math.max(a.cluster+1,1),e.length-1);r[i]+=n;}let o=0;return e.map((a,i)=>(o+=r[i],a+o))}var oi=.5,ai=4096,ii=4,Ir=4096;function Mr(e){let t="environment"in e?e.environment:void 0,n="environment"in e?void 0:e,{shaper:r,resolveFont:o}=e,a=Er(e.fallback),i=t??{shapingLibrary:n.shapingLibrary,unicodeDataVersion:n.unicodeDataVersion,script:n?.script??"Latn",fixedPointScale:n?.fixedPointScale??1e3,normalization:n?.normalization??"none",features:n?.features??{},roundingMode:n?.roundingMode??"halfToEven",language:n?.language??"en",variationAxes:{}},s=new WeakMap,c=new WeakMap,l=chunkY6FY46N6_cjs.q(r),u=Fr(r,i,a,ii,oi),y=new WeakMap,f=new WeakMap,p=new Array(Ir),g=0,h=(b,m,F)=>{let C=p[g];C&&C.cache.delete(C.text),b.set(m,F),p[g]={cache:b,text:m},g=(g+1)%Ir;},d=b=>{let m=y.get(b);if(m!==void 0)return m;let F=o(b);return y.set(b,F),F},S=mr(d),x=(b,m,F)=>{let C=F?c:s,T=C.get(b);T||(T=new Map,C.set(b,T));let I=T.get(m);return I||(I=new Map,T.set(m,I)),I},R=new WeakMap,L=b=>{if(!b.shaping?.wordSpacingPt)return b;let m=R.get(b);return m||(m={...b,shaping:{...b.shaping,wordSpacingPt:void 0}},R.set(b,m)),m},E=(b,m)=>m.shaping?.wordSpacingPt?chunkY6FY46N6_cjs.cc(b)*m.shaping.wordSpacingPt:0,O=(b,m)=>a.measure(b,L(m))+E(b,m),B=(b,m)=>{let F=Math.max(0,a.measure(b,L(m))),C=a.caretAdvances?.(b,L(m))??chunkY6FY46N6_cjs.ac(b,F);if(!C||C.length!==b.length+1)return chunkY6FY46N6_cjs.ac(b,O(b,m));let T=Math.max(0,O(b,m)),I=0,P=0;return C.map((z,D)=>{if(D===0)return 0;b[D-1]===" "&&P++;let M=z+P*(m.shaping?.wordSpacingPt??0);return I=Math.max(I,Math.min(T,Number.isFinite(M)?M:I)),D===b.length?T:I})},v=new WeakMap,w=new WeakMap;return chunkY6FY46N6_cjs.ec({hasResolvedFont(b){return d(b)!==null},faceCovers(b,m){let F=d(m);if(!F)return;let C=w.get(F);C||(C=new Map,w.set(F,C));let T=C.get(b);if(T!==void 0)return T;let I=true;for(let P of b){let z=hr(F,P.codePointAt(0));if(z===void 0)return;if(!z){I=false;break}}return C.size<ai&&C.set(b,I),I},strikeoutMetrics(b){let m=d(b);if(!m)return;let F=v.get(m);if(F===void 0&&(F=Tr(m.bytes,m.faceIndex),v.set(m,F)),!F)return;let C=N(b)/2*chunkY6FY46N6_cjs.ra(b);return {offsetPt:F.offsetEm*C,thicknessPt:F.thicknessEm*C}},measure(b,m){if(b.length===0)return 0;let F=d(m);if(!F)return O(b,m);let C=x(F,N(m),m.smallCaps),T=m.shaping?.context,I=m.shaping?`1:${JSON.stringify(T?[m.shaping.script,m.shaping.direction,b,T.before,T.after]:[m.shaping.script,m.shaping.direction,b])}`:`0:${b}`,P=At(m,F),z=`${chunkY6FY46N6_cjs.w(m)?1:0}:${P?1:0}:${chunkY6FY46N6_cjs.O(m)}:${I}`,D=C.get(z);if(D===void 0){let M=0;try{if(m.smallCaps&&!Ke(r,i,F,m,f))return O(b,m);let U=X(r,i,F,m,b);if(U.glyphs.some(ee=>ee.id===0))return O(b,m);for(let ee of U.glyphs)M+=ee.advanceX;P&&(M+=Or(U)*(N(m)/2)*.02*i.fixedPointScale);}catch{return O(b,m)}D=M/i.fixedPointScale,h(C,z,D);}return D*chunkY6FY46N6_cjs.ra(m)*(m.horizontalScalePercent/100)+b.length*m.characterSpacingPt+E(b,m)},inkBounds(b,m){if(!b||b.length>2||m.shaping?.direction==="rtl"||chunkY6FY46N6_cjs.ya(b).length!==1)return;let F=d(m);if(!F)return a.inkBounds?.(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return a.inkBounds?.(b,m);let C=X(r,i,F,m,b);return Lr(C,N(m)/2,i.fixedPointScale,chunkY6FY46N6_cjs.ra(m)*m.horizontalScalePercent/100)}catch{return}},textOutline(b,m){let F=d(m);if(!F)return a.textOutline?.(b,m);try{let C=X(r,i,F,m,b);return wt(C,N(m)/2,i.fixedPointScale)??a.textOutline?.(b,m)}catch{return a.textOutline?.(b,m)}},caretAdvances(b,m){let F=d(m);if(!F)return B(b,m);try{if(m.smallCaps&&!Ke(r,i,F,m,f))return B(b,m);let C=X(r,i,F,m,b);if(C.glyphs.some(P=>P.id===0))return B(b,m);let T=chunkY6FY46N6_cjs.bc(b,C,chunkY6FY46N6_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale,m.characterSpacingPt,m.shaping?.wordSpacingPt??0)??chunkY6FY46N6_cjs.ac(b,C.glyphs.reduce((P,z)=>P+z.advanceX,0)*chunkY6FY46N6_cjs.ra(m)*(m.horizontalScalePercent/100)/i.fixedPointScale+b.length*m.characterSpacingPt+E(b,m));if(!T||!At(m,F))return T;let I=N(m)/2*.02*chunkY6FY46N6_cjs.ra(m)*(m.horizontalScalePercent/100);return Ar(T,C,I)}catch{return B(b,m)}},lineMetrics(b,m){let F=d(b);if(!F)return Ve(b)??a.lineMetrics(b,m);if(!m||/^[\t\n\r\f ]*$/.test(m))return u(F,b);if(l){let C=u(F,b),T=Math.max(0,C.baseline),I=Math.max(0,C.height-C.baseline);return T+I>0?{height:T+I,baseline:T}:C}try{let C=X(r,i,F,b,m),T=0,I=0;for(let P of C.fontSpans){let z=u(P.font,b);T=Math.max(T,z.baseline),I=Math.max(I,z.height-z.baseline);}if(T+I>0)return {height:T+I,baseline:T}}catch{}return u(F,b)}},S)}function si(e,t){return Mr({...t,shaper:e.shaper,environment:e.environment})}function ci(e){let{layout:t,viewport:n}=e,r=new Set;if(!n){for(let c of t.pages)r.add(c.index);return r}let o=Math.max(0,Math.trunc(e.overscanPages??1)),a=n.top+n.height,i=-1,s=-1;for(let c of t.pages){let l=c.box.y;l+c.box.height>=n.top&&l<=a&&(i===-1&&(i=c.index),s=c.index);}if(i===-1){let c=li(t,n.top);c!==null&&(i=c,s=c);}if(i!==-1){let c=Math.max(0,i-o),l=Math.min(t.pages.length-1,s+o);for(let u=c;u<=l;u+=1)r.add(u);}for(let c of e.pinnedPages??[])c>=0&&c<t.pages.length&&r.add(c);return r}function li(e,t){let n=null,r=Number.POSITIVE_INFINITY;for(let o of e.pages){let a=t<o.box.y?o.box.y-t:t>o.box.y+o.box.height?t-(o.box.y+o.box.height):0;a<r&&(r=a,n=o.index);}return n}var _r=["text-local","paragraph-local","flow-structural","global"];function Pr(e,t){return _r.indexOf(t)>_r.indexOf(e)?t:e}function ui(e){return {impact:"text-local",paragraphIds:new Set,created:new Set,deleted:new Set,dependencyKeys:new Set,structural:false,revision:e}}function di(e){let{run:t,currentRevision:n,publish:r,schedule:o}=e,a=null,i=null,s=null,c=0,l=0;function u(d){let S=e.runCooperatively;if(!S)return t(d);let x=S(d);s=x;try{for(;;){let R=x.step();if(R)return R;if(n()!==d.revision)return x.cancel(),l+=1,null;if(s!==x)return null}}finally{s===x&&(s=null);}}function y(d){let S=p(n());S.impact=Pr(S.impact,d.impact),S.structural=S.structural||d.structural;for(let x of d.paragraphIds)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x);for(let x of d.deleted)S.deleted.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);}let f=d=>({impact:d.impact,paragraphIds:d.paragraphIds,created:d.created,deleted:d.deleted,dependencyKeys:d.dependencyKeys,structural:d.structural,revision:d.revision});function p(d){return a||(a=ui(d)),a.revision=Math.max(a.revision,d),a}function g(){!o||i||(i=o(()=>{i=null,h();}));}function h(){i&&(i(),i=null),s&&(s.cancel(),s=null,l+=1);let d=a;if(!d)return false;a=null;let S=f(d),x=u(S);return !x||x.revision!==n()?(c+=1,y(S),g(),false):(r(x,S),true)}return {notify(d){let S=p(n());S.impact=Pr(S.impact,d.impact);for(let x of d.dirty)S.paragraphIds.add(x);for(let x of d.created)S.created.add(x),S.paragraphIds.add(x);for(let x of d.deleted)S.deleted.add(x),S.paragraphIds.add(x);for(let x of d.dependencyKeys)S.dependencyKeys.add(x);for(let x of d.splitJoin)S.structural=true,"split"in x?(S.paragraphIds.add(x.split.from),S.paragraphIds.add(x.split.tail)):(S.paragraphIds.add(x.join.kept),S.paragraphIds.add(x.join.removed));(d.impact==="flow-structural"||d.impact==="global")&&(S.structural=true),g();},invalidateAll(d,S){let x=p(d);x.impact="flow-structural",x.structural=true,S&&x.dependencyKeys.add(S),g();},flush:h,pending:()=>a?f(a):null,cancel(){i?.(),i=null,s?.cancel(),s=null,a=null;},get staleDiscards(){return c},get cancelledRuns(){return l}}}var kr=new WeakMap;function j(e){let t=kr.get(e);if(t)return t;let n=new Map,r=new Map,o=new Map,a=new Map,i=(c,l,u,y)=>{for(let f of c){if(f.kind==="paragraph")continue;let p=f.tableId;a.set(p,Math.max(a.get(p)??0,(f.columnEdges?.length??1)-1));let g=o.get(p);g||(g=new Map,o.set(p,g),n.set(p,[]),r.set(p,new Map));for(let h of f.rows){let d=g.get(h.id);d===void 0&&(d=g.size,g.set(h.id,d),r.get(p).set(d,h.cells));for(let S of h.cells)n.get(p).push({pageIndex:l,tableId:p,row:h,cell:S,rowIndex:d,isHeaderRepeat:h.isHeaderRepeat,offsetX:u,offsetY:y}),i(S.blocks,l,u,y);}}};for(let c of e.pages){i(c.fragments,c.index,0,0);for(let l of [c.header,c.footer])l&&i(l.fragments,c.index,l.box.x-c.contentBox.x,l.box.y-c.contentBox.y);for(let l of [c.footnotes,c.endnotes])if(l)for(let u of l.notes)i(u.fragments,c.index,u.box.x-c.contentBox.x,u.box.y-c.contentBox.y);}let s=new Map;for(let[c,l]of n)s.set(c,{placed:l,rows:r.get(c)??new Map,columnCount:a.get(c)??0});return kr.set(e,s),s}function Nr(e){let t=e.columnCount;for(let n of e.rows.values())for(let r of n)t=Math.max(t,ne(r).to+1);return t}var ne=e=>({from:e.gridColumn,to:e.gridColumn+Math.max(1,e.gridSpan)-1});function pi(e,t,n){if(t.tableId!==n.tableId)return null;let r=j(e).get(t.tableId);if(!r)return null;let o=Math.min(t.rowIndex,n.rowIndex),a=Math.max(t.rowIndex,n.rowIndex),i=Math.min(ne(t).from,ne(n).from),s=Math.max(ne(t).to,ne(n).to),c=p=>{let{from:g,to:h}=ne(p);return h>=i&&g<=s},l=p=>(r.rows.get(p)??[]).some(g=>g.vMergeContinue&&c(g)),u=r.rows.size+Nr(r)+2;for(let p=0;!(p>u);p+=1){let g=false;for(let[h,d]of r.rows)if(!(h<o||h>a))for(let S of d){if(!c(S))continue;let{from:x,to:R}=ne(S);x<i&&(i=x,g=true),R>s&&(s=R,g=true);}for(;o>0&&l(o);)o-=1,g=true;for(;l(a+1);)a+=1,g=true;if(!g)break}let y=[],f=new Set;for(let p of r.placed){if(p.isHeaderRepeat||p.rowIndex<o||p.rowIndex>a)continue;let{from:g,to:h}=ne(p.cell);h<i||g>s||f.has(p.cell.id)||(f.add(p.cell.id),y.push(p.cell.id));}return y.length===0?null:{kind:"cells",tableId:t.tableId,cellIds:y,rows:{from:o,to:a},columns:{from:i,to:s},text:Hr(e,t.tableId,y)}}function fi(e,t){let n=j(e).get(t);if(!n)return null;let r=[],o=new Set,a=0;for(let i of n.placed)i.isHeaderRepeat||o.has(i.cell.id)||(o.add(i.cell.id),r.push(i.cell.id),a=Math.max(a,i.rowIndex));return r.length===0?null:{kind:"cells",tableId:t,cellIds:r,rows:{from:0,to:a},columns:{from:0,to:Nr(n)-1},text:Hr(e,t,r)}}function Pc(e,t){let n=fi(e,t.tableId);if(!n)return false;let r=new Set(t.cellIds);return n.cellIds.every(o=>r.has(o))}function kc(e,t){return Dr(e,t,true)}function be(e,t){return Dr(e,t,false)}function Dr(e,t,n){let r=new Set(t),o=[],a=new Set;for(let i of j(e).values())for(let s of i.placed)if(!(s.isHeaderRepeat||!r.has(s.cell.id)))for(let c of s.cell.blocks)n&&c.kind!=="paragraph"||Re(c,o,a);return o}function Re(e,t,n){if(e.kind==="paragraph"){for(let r of chunkY6FY46N6_cjs.ab(e))n.has(r)||(n.add(r),t.push(r));return}for(let r of e.rows)if(!r.isHeaderRepeat)for(let o of r.cells)for(let a of o.blocks)Re(a,t,n);}function Hr(e,t,n){let r=be(e,n),o=r[0],a=r[r.length-1];return !o||!a?mi(e,t):{anchor:{paragraphId:o,offset:0},head:{paragraphId:a,offset:chunkY6FY46N6_cjs.Ue(e,a).length}}}function mi(e,t){let n=j(e).get(t);for(let o of n?.placed??[]){if(o.isHeaderRepeat)continue;let a=[];for(let s of o.cell.blocks)Re(s,a,new Set);let i=a[0];if(i){let s={paragraphId:i,offset:0};return {anchor:s,head:s}}}for(let o of e.pages)for(let a of chunkY6FY46N6_cjs.Ja(o)){let i={paragraphId:a.paragraphId,offset:0};return {anchor:i,head:i}}let r={paragraphId:"",offset:0};return {anchor:r,head:r}}function yi(e){let t=[...chunkY6FY46N6_cjs.Ja(e)];for(let n of [e.header,e.footer])n&&t.push(...chunkY6FY46N6_cjs.Ka(n.fragments));for(let n of [e.footnotes,e.endnotes])if(n)for(let r of n.notes)t.push(...chunkY6FY46N6_cjs.Ka(r.fragments));return t}function hi(e,t){let n=new Set(be(e,t)),r=[],o=new Set;for(let a of e.pages)for(let i of yi(a))if(n.has(i.paragraphId))for(let s of i.lines)for(let c of s.spans){let l=`${c.range.paragraphId}:${c.range.start}:${c.range.end}`;o.has(l)||(o.add(l),r.push(c));}return r}function gi(e,t){let n=new Set(t),r=[];for(let o of j(e).values())for(let a of o.placed)n.has(a.cell.id)&&r.push({pageIndex:a.pageIndex,x:a.cell.box.x+a.offsetX,y:a.cell.box.y+a.offsetY,width:a.cell.box.width,height:a.cell.box.height});return r}function Si(e,t,n=chunkY6FY46N6_cjs.Ue){let r=j(e).get(t.tableId);if(!r)return "";let o=new Set(t.cellIds),a=r.placed.some(c=>c.cell.logicalGridColumn!==void 0),i=new Map,s=new Set;for(let c of r.placed){if(c.isHeaderRepeat||!o.has(c.cell.id)||s.has(c.cell.id))continue;s.add(c.cell.id);let l=be(e,[c.cell.id]).map(f=>n(e,f)).join(`
|
|
2
2
|
`),u=i.get(c.rowIndex),y=c.cell.gridColumn+(a?Math.max(1,c.cell.gridSpan)-1:0);u?u.set(y,l):i.set(c.rowIndex,new Map([[y,l]]));}return [...i.keys()].sort((c,l)=>c-l).map(c=>{let l=i.get(c),u=[];for(let y=0;y<=t.columns.to-t.columns.from;y+=1){let f=a?t.columns.to-y:t.columns.from+y;u.push(l.get(f)??"");}return u.join(" ")}).join(`
|
|
3
|
-
`)}function It(e,t){return
|
|
3
|
+
`)}function It(e,t){return chunkY6FY46N6_cjs.dd(e,t)}function zc(e,t,n){if(n){let a=It(e,t);if(!a||a.tableId!==n.tableId)return null;let i=n.cellIds[0];if(!i)return null;let s=j(e).get(n.tableId);if(!s)return null;for(let c of s.placed)if(c.cell.id===i)return {tableId:n.tableId,rowId:c.row.id,cellId:i,cellIds:n.cellIds,gridColumnIndex:c.cell.logicalGridColumn??c.cell.gridColumn,isHeaderRepeat:c.isHeaderRepeat};return null}let r=It(e,t);if(!r)return null;let o=j(e).get(r.tableId);if(!o)return null;for(let a of o.placed){if(a.isHeaderRepeat)continue;let i=[];for(let s of a.cell.blocks)Re(s,i,new Set);if(i.includes(t))return {tableId:r.tableId,rowId:a.row.id,cellId:a.cell.id,cellIds:[a.cell.id],gridColumnIndex:a.cell.logicalGridColumn??a.cell.gridColumn,isHeaderRepeat:a.row.isHeaderRepeat}}return null}var zr=new WeakMap;function xi(e,t){let n=zr.get(e);if(n)return n.get(t)??null;let r=new Map;for(let[o,a]of j(e))for(let i of a.placed){if(i.isHeaderRepeat)continue;let s=[];for(let l of i.cell.blocks)Re(l,s,new Set);let c={tableId:o,rowId:i.row.id,cellId:i.cell.id,rowIndex:i.rowIndex,gridColumn:i.cell.gridColumn,gridSpan:i.cell.gridSpan};for(let l of s){let u=r.get(l);u&&u.tableId.length>=o.length||r.set(l,c);}}return zr.set(e,r),r.get(t)??null}function Nc(e,t,n){let r=xi(e,t);if(!r)return null;let o=j(e).get(r.tableId);if(!o)return null;let a=new Set;for(let l of o.placed)!l.isHeaderRepeat&&!l.cell.vMergeContinue&&l.cell.blocks.length>0&&a.add(l.cell.id);let i=[...a],s=i.indexOf(r.cellId);if(s<0)return null;let c=n==="next"?1:-1;for(let l=s+c;l>=0&&l<i.length;l+=c){let u=be(e,[i[l]]);if(u.length>0)return {cellId:i[l],paragraphIds:u}}return "end"}function bi(e,t,n){if(![e,t,n].every(Number.isFinite)||t<=0||n<=0)return {offsetPt:0,count:0};let r=Math.ceil(e/n-1e-9)*n;if(!Number.isFinite(r))return {offsetPt:0,count:0};let o=Math.max(0,r-e);return {offsetPt:o,count:Math.min(8192,Math.max(0,Math.floor((t-o)/n+1e-9)))}}exports.$=Ma;exports.A=Ft;exports.B=Vn;exports.C=Xn;exports.D=jn;exports.E=Yn;exports.F=$n;exports.G=qn;exports.H=ra;exports.I=oa;exports.J=de;exports.K=sa;exports.L=Et;exports.M=Qn;exports.N=fa;exports.O=ha;exports.P=X;exports.Q=Ke;exports.R=Lt;exports.S=bs;exports.T=ar;exports.U=Rs;exports.V=Bt;exports.W=wa;exports.X=ws;exports.Y=lr;exports.Z=ur;exports._=Ia;exports.a=dt;exports.aa=_a;exports.b=jr;exports.ba=Hs;exports.c=ie;exports.ca=Na;exports.d=ft;exports.da=wt;exports.e=Yr;exports.ea=Xe;exports.f=A;exports.fa=Mr;exports.g=mt;exports.ga=si;exports.h=gt;exports.ha=ci;exports.i=Ni;exports.ia=di;exports.j=Mn;exports.ja=pi;exports.k=_n;exports.ka=fi;exports.l=Z;exports.la=Pc;exports.m=Vo;exports.ma=kc;exports.n=Xo;exports.na=be;exports.o=qi;exports.oa=hi;exports.p=xt;exports.pa=gi;exports.q=Zi;exports.qa=Si;exports.r=jo;exports.ra=It;exports.s=$o;exports.sa=zc;exports.t=Ji;exports.ta=xi;exports.u=qo;exports.ua=Nc;exports.v=bt;exports.va=bi;exports.w=Ue;exports.x=Zo;exports.y=Jo;exports.z=Qo;
|