@docx-editor.dev/core 2.29.0 → 2.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +22 -26
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +47 -40
- package/dist/binding.js +1 -1
- package/dist/bookmark-names-DDuAra_V.d.ts +37 -0
- package/dist/{chrome-print-CAs51cpq.d.ts → chrome-print-BWvaVEhD.d.ts} +577 -243
- package/dist/chunk-243W4WW2.cjs +2 -0
- package/dist/{chunk-G4HOFIKJ.js → chunk-2E2RPEKX.js} +1 -1
- package/dist/chunk-4S24UOPG.js +30 -0
- package/dist/chunk-5JPIEN54.cjs +3 -0
- package/dist/{chunk-7WQ7AAHW.cjs → chunk-5SO5QDMV.cjs} +1 -1
- package/dist/{chunk-UHHYFIDT.cjs → chunk-6IDOVU6L.cjs} +1 -1
- package/dist/chunk-DBOOTED4.cjs +30 -0
- package/dist/chunk-EOTAXOJY.cjs +5 -0
- package/dist/chunk-FDAKJ2SJ.cjs +30 -0
- package/dist/chunk-FNNOJNGY.js +3 -0
- package/dist/chunk-FT33HRZP.js +5 -0
- package/dist/{chunk-W35WTWAO.cjs → chunk-HC6YNKUI.cjs} +1 -1
- package/dist/chunk-HZ66UCIS.js +2 -0
- package/dist/{chunk-MM5QBMTE.cjs → chunk-IBRBNT37.cjs} +1 -1
- package/dist/chunk-IVIN7X43.js +30 -0
- package/dist/chunk-LZY6B6IV.js +4 -0
- package/dist/chunk-MOYYRVFV.cjs +2 -0
- package/dist/{chunk-OMCG63ZF.js → chunk-N6B3BXCL.js} +1 -1
- package/dist/chunk-Q5K2GGNG.js +2 -0
- package/dist/chunk-R2XINWVE.js +7 -0
- package/dist/chunk-SUEXVBPR.js +1 -0
- package/dist/chunk-T2QQHG5C.js +18 -0
- package/dist/{chunk-LSZ6KPKK.js → chunk-VWIJKH4A.js} +1 -1
- package/dist/chunk-WO4V6PNS.cjs +18 -0
- package/dist/chunk-XMJKFURD.cjs +4 -0
- package/dist/{chunk-BY2ACZZ6.cjs → chunk-XSTGE3NI.cjs} +1 -1
- package/dist/chunk-YQWMI6J5.cjs +7 -0
- package/dist/{chunk-RCLZXP3B.js → chunk-ZCJS7D7S.js} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +4 -5
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -4
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -13
- package/dist/contracts/types.d.ts +2 -2
- package/dist/{custom-node-writes-Bn6uciLb.d.ts → custom-node-writes-TeUvMP13.d.ts} +2 -2
- package/dist/{diagnostic-context-B8M79cfK.d.ts → diagnostic-context-DJ0P1uZE.d.ts} +3 -2
- package/dist/{diagnostic-hints-BeVjfNOv.d.ts → diagnostic-hints-C9JlLz1L.d.ts} +12 -5
- package/dist/{document-protection-CUb55pl_.d.ts → document-protection-C8x3P2J6.d.ts} +1 -1
- package/dist/{editor-CZQZmTIU.d.ts → editor-B2ShlO23.d.ts} +368 -52
- package/dist/{editor-scope-7o9xweiJ.d.ts → editor-scope-C7ke1KJG.d.ts} +57 -4
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +5 -3
- package/dist/editor.d.ts +606 -34
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +17 -15
- package/dist/export.js +2 -2
- package/dist/{font-resolver-lSBLirLR.d.ts → font-resolver-CWh40DYp.d.ts} +1 -1
- package/dist/font-shaping-policy-BvpkrfxM.d.ts +7 -0
- package/dist/{headless-document-view-pp3q7wIh.d.ts → headless-document-view-qOpaCF82.d.ts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BD-dF_rn.d.ts → layout-shaping-CWS3j0Xr.d.ts} +3 -2
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +112 -44
- package/dist/layout.js +1 -1
- package/dist/{note-properties-qQUjO1GQ.d.ts → note-properties-QsKh24sM.d.ts} +1 -1
- package/dist/{omml-equation-BUbU0utM.d.ts → omml-equation-BsLAa2lX.d.ts} +38 -8
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +20 -10
- package/dist/output.js +1 -1
- package/dist/{protocol-DYzzz2ej.d.ts → protocol-COZJUKUY.d.ts} +94 -2
- package/dist/{review-paragraph-order-CN_0l2Cb.d.ts → review-paragraph-order-C_QbCKcH.d.ts} +1 -1
- package/dist/{semantic-cell-selection-eYag3P47.d.ts → semantic-cell-selection-Cub9FDa8.d.ts} +2 -2
- package/dist/{semantic-interaction-kR_QB845.d.ts → semantic-interaction-dApRIYpt.d.ts} +1 -1
- package/dist/{semantic-paint-ZayFF3tD.d.ts → semantic-paint-DLzA8sjP.d.ts} +3 -3
- package/dist/{semantic-record-queries-Bsgth6lv.d.ts → semantic-record-queries-3yp9o11g.d.ts} +1 -1
- package/dist/{semantic-records-DQmumPgL.d.ts → semantic-records-B-akgRch.d.ts} +207 -139
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +49 -136
- package/dist/store.js +1 -1
- package/dist/{tree-package-store-CovjNARF.d.ts → tree-package-store-B8l8DX3Z.d.ts} +612 -428
- package/dist/{tree-session-contract-CZVAGl51.d.ts → tree-session-contract-DeLRqohz.d.ts} +28 -13
- package/dist/{types-barrel-DuC5QBNC.d.ts → types-barrel-CkF2JbU4.d.ts} +1146 -745
- package/package.json +2 -2
- package/dist/chunk-236O4YQW.js +0 -2
- package/dist/chunk-6JPL6ZAS.cjs +0 -5
- package/dist/chunk-6ZQP4HQ7.js +0 -3
- package/dist/chunk-BCXH4BXB.js +0 -5
- package/dist/chunk-CAJEXXVG.cjs +0 -4
- package/dist/chunk-CPWLFPWC.js +0 -30
- package/dist/chunk-D7ZMDMPX.cjs +0 -3
- package/dist/chunk-DOHF6FA7.cjs +0 -30
- package/dist/chunk-DVX32P2P.js +0 -27
- package/dist/chunk-E4LOMDNL.js +0 -1
- package/dist/chunk-EKLM7NWB.cjs +0 -7
- package/dist/chunk-G3K63G7P.cjs +0 -27
- package/dist/chunk-JLVBDYVQ.cjs +0 -2
- package/dist/chunk-LQX36Z5P.js +0 -7
- package/dist/chunk-OSFOJTHU.cjs +0 -18
- package/dist/chunk-T6K2QYNZ.cjs +0 -2
- package/dist/chunk-TRGAVV2Y.js +0 -4
- package/dist/chunk-U4JZVSOE.js +0 -2
- package/dist/chunk-YQ5G6LC7.js +0 -18
- package/dist/image-resources-tXLQShoC.d.ts +0 -211
package/dist/chunk-JLVBDYVQ.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkDOHF6FA7_cjs=require('./chunk-DOHF6FA7.cjs'),chunkBY2ACZZ6_cjs=require('./chunk-BY2ACZZ6.cjs'),chunkOSFOJTHU_cjs=require('./chunk-OSFOJTHU.cjs');var Ye=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function $(e){let t=new Map;for(let n of e)if(Array.isArray(n)){for(let o of n.slice(0,2048)){if(typeof o!="string"||!Ye.test(o))continue;let r=o.toLowerCase();if(t.has(r)||t.set(r,o),t.size===2048)break}if(t.size===2048)break}return Object.freeze([...t.values()])}function kt(e){let t=e&&"failures"in e?e.failures:void 0;return e==null||(e.sources?.length??0)===0&&(e.substitutions?.length??0)===0&&(t===void 0||Array.isArray(t)&&t.length===0)?void 0:e}var De=64,re=Object.freeze({family:"Calibri",sizeHalfPoints:22}),At=re;function Y(e,...t){let n=[e,...t],o=[],r=new Set;for(let l of n)for(let c of l.sources??[]){let u=chunkDOHF6FA7_cjs.h(c.request);r.has(u)||(r.add(u),o.push(c));}let i=[],s=new Set;for(let l of n)for(let c of l.substitutions??[]){let u=chunkDOHF6FA7_cjs.h(c.from);r.has(u)||s.has(u)||(s.add(u),i.push(c));}let a=$(n.map(l=>l.supportedFamilies));return Object.freeze({...a.length?{supportedFamilies:a}:{},epoch:e.epoch??0,maxFontBytes:e.maxFontBytes??chunkDOHF6FA7_cjs.a,sources:Object.freeze(o),...i.length>0?{substitutions:Object.freeze(i)}:{},defaultFont:e.defaultFont??re,...e.language!==void 0?{language:e.language}:{}})}var Ge=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function G(e){let t=e?.defaultFont?.family;return t!==void 0&&Ge.test(t)?t:re.family}var We="docx-editor.dev/font-resolver",ze=Symbol.for("docx-editor.dev/font-resolver");function Lt(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,ze,t),Object.defineProperty(e,We,t);}catch(n){throw new TypeError("defineFontResolver cannot mark a frozen or sealed function; mark it before freezing, or wrap it in a fresh function and mark that.",{cause:n})}return e}function It(e){return typeof e=="function"&&e[ze]===true}var se=class extends RangeError{constructor(n,o,r){super(`Font source ${n.family} (${o} bytes) exceeds the shaping byte ceiling (${r} bytes)`);this.request=n;}request},ae=class extends AggregateError{causes;constructor(t){let n=Object.freeze(t.slice(0,chunkDOHF6FA7_cjs.b*2));super(n,`Font origin rejected all ${n.length} face and substitution candidates`),this.causes=n;}},J=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function Je(e,t,n){let o=new Map(e.map(r=>[J(r),r]));for(let[r,i]of t)o.set(r,i);for(let r of n)o.has(J(r.to))&&o.set(J(r.from),r.from);return [...o.values()]}async function Pt(e,t,n={}){return je(e,t,n)}async function Bt(e,t,n={}){return je(e,t,n)}async function je(e,t,n){let o=n.maxExecutionFontBytes??chunkDOHF6FA7_cjs.a;if(!Number.isSafeInteger(o)||o<=0||o>chunkDOHF6FA7_cjs.a)throw new RangeError("Font execution byte ceiling is outside the supported range");let r=e.map(Qe),i,s=[],a=[],l=new Map,c=new Set,u=0,d=[],m=new Set,y=[],p=t.resolvedFaces??[],F=t.defaultFamily;for(let w=0;w<e.length;w+=1){Ue(t.signal);let R=e[w],A=Je(p,l,d),B;try{let S=r[w],T;if(S){let f=await qe(S,t.signal);if(!f.ok)throw f.cause;T=f.value;}else if(typeof R=="function"){let f=await qe(Promise.resolve(R(tt(t,F,A,u))).then(g=>({ok:!0,value:g}),g=>({ok:!1,cause:g})),t.signal);if(!f.ok)throw f.cause;T=f.value;}else T=R;if(T==null)continue;if(typeof T=="function"){W(n,R,w,new TypeError("A font origin answered with a function; pass the resolver itself rather than a function returning one"));continue}let _="failures"in T?T.failures:void 0,D=[];if(Array.isArray(_)){let f=Math.min(_.length,chunkDOHF6FA7_cjs.b);for(let g=0;g<f;g++)D.push(_[g]);_.length>f&&D.push(new Error("Additional font-origin failures were omitted"));}else _!==void 0&&D.push(_);let M;try{M=Ze(T,c,u,m,i?"maxFontBytes"in i&&i.maxFontBytes!==void 0?i.maxFontBytes:chunkDOHF6FA7_cjs.a:void 0,n.reserveOwnedBytes,n.instrumentation,o);}catch(f){for(let g of new Set(D))W(n,R,w,g);throw f}B=M;for(let f of new Set([...M.dropped,...D]))W(n,R,w,f);let v=M.fragment;v.supportedFamilies&&s.push(v.supportedFamilies),y.push(...D);let X=(v.sources??[]).map(f=>(chunkDOHF6FA7_cjs.h(f.request),[J(f.request),f.request])),b=[...v.substitutions??[]];!i&&"defaultFont"in v&&(F=G(v)),i||(i=v);let x=new Set(M.sourceKeys);if(x.size>0){d=d.filter(f=>!x.has(chunkDOHF6FA7_cjs.h(f.from)));for(let f of x)m.delete(f);}a.push(...v.sources??[]);for(let f of M.sourceKeys)c.add(f);u+=M.ownedBytes;for(let[f,g]of X)l.set(f,g);for(let f of b)d.push(f),m.add(chunkDOHF6FA7_cjs.h(f.from));}catch(S){if(B?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??S;if(S instanceof Q)throw S.cause;W(n,R,w,S);continue}}if(!i)return;let{epoch:E,...P}=Y({...i,supportedFamilies:$(s),sources:a,substitutions:d});return y.length===0?P:{...P,failures:Object.freeze(y)}}var Q=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},Z=class extends RangeError{};async function qe(e,t){if(!t)return e;Ue(t);let n,o=new Promise((i,s)=>{n=s;}),r=()=>n?.(t.reason);t.addEventListener("abort",r,{once:true});try{return await Promise.race([e,o])}finally{t.removeEventListener("abort",r);}}function Qe(e){if(e===null||typeof e!="object")return;let t;try{t=e.then;}catch(n){return Promise.resolve({ok:false,cause:n})}if(typeof t=="function")return Promise.resolve(e).then(n=>({ok:true,value:n}),n=>({ok:false,cause:n}))}function Ze(e,t,n,o,r,i,s,a=chunkDOHF6FA7_cjs.a){let l=e.sources??[],c=e.substitutions??[],u="maxFontBytes"in e?e.maxFontBytes:void 0,d="defaultFont"in e?e.defaultFont:void 0,m="epoch"in e?e.epoch:void 0,y="language"in e?e.language:void 0;if(!Array.isArray(l)||!Array.isArray(c))throw new TypeError("Font origin sources and substitutions must be arrays");let p=l.length,F=c.length;if(p>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font source count must not exceed ${chunkDOHF6FA7_cjs.b}`);if(F>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkDOHF6FA7_cjs.b}`);let E=u??chunkDOHF6FA7_cjs.a;if(!Number.isSafeInteger(E)||E<=0||E>chunkDOHF6FA7_cjs.a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${chunkDOHF6FA7_cjs.a}`);let P=Math.min(r??E,a),w=0,R=[],A=new Set,B=[],S=[];for(let b=0;b<p;b+=1){let x=l[b];try{let f=ie(x.request),g=chunkDOHF6FA7_cjs.h(f);if(t.has(g)||A.has(g))continue;let L=x.availability,O=x.faceIndex,q=x.hash,ne=x.id;if(L!==void 0&&L!=="available"&&L!=="forbidden")throw new TypeError("Font source availability must be available or forbidden");if(!Number.isSafeInteger(O)||O<0)throw new RangeError("Font face index must be a non-negative safe integer");if(typeof q!="string"||q.length===0)throw new TypeError("Font source hash must be a non-empty string");let V;if(L!=="forbidden"){if(typeof ne!="string"||ne.length===0)throw new TypeError("Font source id must be a non-empty string");V=x.bytes;let j=chunkDOHF6FA7_cjs.e(V);if(j>P)throw j<=(r??E)?new se(f,j,a):new RangeError(`Font source ${f.family} (${j} bytes) exceeds the effective base byte ceiling (${P} bytes)`);if(t.has(g)||A.has(g))continue;if(n+w+j>chunkDOHF6FA7_cjs.c)throw new RangeError(`Font sources exceed the aggregate byte ceiling of ${chunkDOHF6FA7_cjs.c}`);w+=j;}else V=new Uint8Array(0);if(t.has(g)||A.has(g))continue;if(t.size+A.size>=chunkDOHF6FA7_cjs.b)throw new Z(`Font source count must not exceed ${chunkDOHF6FA7_cjs.b}`);A.add(g),R.push(g),B.push(Object.freeze({request:f,id:ne,bytes:V,hash:q,faceIndex:O,...L?{availability:L}:{}}));}catch(f){if(f instanceof Z)throw f;S.push(f);}}let T=new Set,_=[];for(let b=0;b<F;b+=1){let x=c[b];try{let f=ie(x.from),g=ie(x.to);chunkDOHF6FA7_cjs.h(f),chunkDOHF6FA7_cjs.h(g);let L=x.lineMetrics,O=L?Object.freeze({heightEm:L.heightEm,baselineEm:L.baselineEm}):void 0;if(O&&(!Number.isFinite(O.heightEm)||!Number.isFinite(O.baselineEm)||O.heightEm<=0||O.heightEm>4||O.baselineEm<0||O.baselineEm>O.heightEm))throw new RangeError("Font substitution line metrics must fit within a bounded em box");let q=chunkDOHF6FA7_cjs.h(f);if(t.has(q)||A.has(q)||o.has(q)||T.has(q))continue;T.add(q),_.push(Object.freeze({from:f,to:g,...O?{lineMetrics:O}:{}}));}catch(f){S.push(f);}}if((p>0||F>0)&&B.length===0&&_.length===0&&S.length>0)throw S.length===1?S[0]:new ae(S);let D=o.size;for(let b of A)o.has(b)&&(D-=1);if(D+T.size>chunkDOHF6FA7_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkDOHF6FA7_cjs.b}`);let M;if(d!==void 0){let b=d.family,x=d.sizeHalfPoints;if(chunkDOHF6FA7_cjs.h({family:b,weight:400,style:"normal"}),!Number.isSafeInteger(x)||x<=0)throw new RangeError("Default font size must be a positive safe integer in half-points");M=Object.freeze({family:b,sizeHalfPoints:x});}if(m!==void 0&&(!Number.isSafeInteger(m)||m<0))throw new RangeError("Font configuration epoch must be a non-negative safe integer");if(y!==void 0&&typeof y!="string")throw new TypeError("Font shaping language must be a string");let v;if(w>0&&i)try{v=i(w);}catch(b){throw new Q(b)}let X;try{X=B.map(b=>chunkDOHF6FA7_cjs.f(b,s));}catch(b){throw v?.(),b}return {fragment:Object.freeze({supportedFamilies:$([e.supportedFamilies]),sources:Object.freeze(X),substitutions:Object.freeze(_),...m!==void 0?{epoch:m}:{},...u!==void 0?{maxFontBytes:u}:{},...M?{defaultFont:M}:{},...y!==void 0?{language:y}:{}}),sourceKeys:Object.freeze(R),ownedBytes:w,dropped:Object.freeze(S),releaseOwnedBytes:v}}function et(e){return !Number.isSafeInteger(e)||e<=0?0:e>chunkDOHF6FA7_cjs.c?chunkDOHF6FA7_cjs.c:e}function tt(e,t,n,o){let{committedSourceBytes:r,...i}=e,s=et(o);return {...i,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...s>0?{committedSourceBytes:s}:{}}}function ie(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function Ue(e){if(e?.aborted)throw e.reason??new DOMException("Font resolution was aborted","AbortError")}function W(e,t,n,o){let r;try{typeof t=="function"&&t.name.length>0&&(r=t.name);}catch{}try{o instanceof Error&&o.stack;}catch{}let i=Object.freeze({originIndex:n,...r!==void 0?{originName:r}:{},cause:o});if(e.onOriginFailure)try{let a=e.onOriginFailure(i);Promise.resolve(a).catch(l=>{console.warn("[fonts] font-origin diagnostic callback failed",l);});return}catch(a){console.warn("[fonts] font-origin diagnostic callback failed",a);}let s="";try{o instanceof Error&&o.message.length>0&&(s=`: ${o.message}`);}catch{}console.warn(`[fonts] a font origin failed and was skipped${s}`,o);}var nt=256,ot=Object.freeze([]);function ee(e){let t=new WeakMap;return (n,o)=>{let r=new Set;for(let i of n){let s=[{node:i,context:o,next:0}],a=l=>{s.pop();let c=s.at(-1)?.found??r;for(let u of l)c.add(u);};for(;s.length;){let l=s[s.length-1],c=t.get(l.node);if(c?.key===l.context.key){a(c.families);continue}if(!l.children){let m=e(l.node,l.context);l.children=m.children,l.found=new Set(m.families);}let u=l.children[l.next++];if(u){s.push({...u,next:0});continue}let d=l.found.size===0?ot:[...l.found];d.length<=nt&&chunkOSFOJTHU_cjs.rb(l.node)?t.set(l.node,{key:l.context.key,families:d}):t.delete(l.node),a(d);}}return [...r]}}function te(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var $e=new WeakMap,rt=4096;function Xe(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=$e.get(e);o||$e.set(e,o=new Map);let r=o.get(n);if(r)return r;let i={...e,depth:e.depth+1,cellStyle:t,key:n};return o.size<rt&&o.set(n,i),i}function it(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:i}=t;if(e.kind==="table"){let l=chunkDOHF6FA7_cjs.Ud(e,468,i,n),c=[];for(let u of l?.rows??[])for(let d of u.cells){let m=Xe(t,d.styleFormatting);for(let y of d.blocks)c.push({node:y,context:m});}return {children:c.reverse()}}let s=new Set;if(e.kind==="paragraph"){let l=e.children.find(u=>u.kind==="paragraphProperties"),c=chunkDOHF6FA7_cjs.id(n,l,t.cellStyle).runProperties;for(let u of chunkDOHF6FA7_cjs.ic(e,c,void 0,(d,m)=>chunkDOHF6FA7_cjs.ld(d,m,n),void 0,void 0,"all-markup",void 0,void 0,o)){if(!u.text||u.fontSlot!=="eastAsia"&&!r.has(u.style.fontFamily??""))continue;let d=chunkBY2ACZZ6_cjs.b((u.fontSlot==="eastAsia"?u.style.fontFamilyEastAsia:u.style.fontFamily)??void 0);d&&s.add(d);}}let a=e.localName==="txbxContent"?{...t,cellStyle:void 0,key:`${t.baseKey}|${i}|undefined`}:t;return {families:[...s],children:te(e,a).reverse()}}function st(){let e=ee(it),t,n,o=(i,s)=>{if(!t||n!==i||t.theme!==s){let a=chunkDOHF6FA7_cjs.hd(i,s);n=i,t={key:`${a.cacheToken}|0|undefined`,baseKey:a.cacheToken,styles:a,theme:s,depth:0,supplementalFamilies:new Set([...Object.values(s.majorSupplemental??{}),...Object.values(s.minorSupplemental??{})])};}return t};return Object.assign((i,s,a)=>e([...i].reverse(),o(s,a)),{warmTableRows(i,s,a,l,c){let u=o(l,c),d=chunkDOHF6FA7_cjs.Ud(i,468,u.depth,u.styles)?.rows??[];for(let m of d.slice(s,a))for(let y of m.cells)e(y.blocks,Xe(u,y.styleFormatting));return d.length}})}function Ht(e,t,n){return st()(e,t,n)}function le(e,t){return e.attributes.find(n=>n.localName===t)?.value}var at=ee((e,t)=>{let n=[];if(e.namespaceUri===chunkOSFOJTHU_cjs.la){if(e.localName==="fldSimple"){let o=chunkDOHF6FA7_cjs.Wc(le(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of lt(e))n.push(o);}return {families:n,children:te(e,t)}});function rn(e){let t=new Map;for(let n of at(e,{key:""})){let o=chunkBY2ACZZ6_cjs.b(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function lt(e){let t=[],n=chunkDOHF6FA7_cjs.Vb(),o=[];for(let r=e.children.length-1;r>=0;r-=1){let i=e.children[r];i.kind!=="textValue"&&o.push({node:i,containerDepth:0});}for(;o.length>0;){let{node:r,containerDepth:i}=o.pop();if(i>=chunkOSFOJTHU_cjs.wa||r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="p")continue;if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="fldChar"){let a=le(r,"fldCharType");a==="begin"?chunkDOHF6FA7_cjs.Yb(n):a==="separate"?(n.nesting===1&&Ve(n,t),chunkDOHF6FA7_cjs._b(n)):a==="end"&&(n.nesting===1&&Ve(n,t),chunkDOHF6FA7_cjs.$b(n));continue}if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&(r.localName==="instrText"||r.localName==="delInstrText")){chunkDOHF6FA7_cjs.Zb(n,ut(r),r.localName==="delInstrText");continue}if(r.namespaceUri===chunkOSFOJTHU_cjs.la&&r.localName==="fldSimple"){let a=chunkDOHF6FA7_cjs.Wc(le(r,"instr")??"");a?.font&&t.push(a.font);}let s=chunkOSFOJTHU_cjs.xa(r,i);for(let a=r.children.length-1;a>=0;a-=1){let l=r.children[a];l.kind!=="textValue"&&o.push({node:l,containerDepth:s});}}return chunkDOHF6FA7_cjs.Wb(n),t}function Ve(e,t){let n=chunkDOHF6FA7_cjs.Xb(e);if(n.overflow)return;let o=chunkDOHF6FA7_cjs.Wc(n.instruction);o?.font&&t.push(o.font);}function ut(e){let t="",n=[...e.children].reverse();for(;n.length>0&&t.length<=256;){let o=n.pop();if(o.kind==="textValue")t+=o.value;else for(let r=o.children.length-1;r>=0;r-=1)n.push(o.children[r]);}return t}var ct=()=>true,ft=/[ᄀ-ᇿ⺀-鿿ꥠ-가-豈-︰-﹏-]/u;function sn(e,t,n,o){if(!t)return [];let r=chunkDOHF6FA7_cjs.lc(t),i=chunkDOHF6FA7_cjs.hd(n,o),s=new Map;for(let a of e)for(let l of dt(a)){let c=chunkOSFOJTHU_cjs.Yc(l.children),u=d=>{if(d)for(let m of d.values()){let y=m.markerText===void 0||ft.test(m.markerText);for(let p of [m.markerStyle.fontFamily,y?m.markerStyle.fontFamilyEastAsia:null]){let F=chunkBY2ACZZ6_cjs.b(p??void 0);if(F===null)continue;let E=F.toLowerCase();s.has(E)||s.set(E,F);}}};u(chunkDOHF6FA7_cjs.yc(c,r,i,ct));for(let d of c){let m=chunkDOHF6FA7_cjs.We(d);for(let y of m.contents)u(chunkDOHF6FA7_cjs.Ve(y,r,i));}}return [...s.values()].sort((a,l)=>a.localeCompare(l))}function dt(e){if(e.localName==="document"){for(let t of e.children)if(t.kind!=="textValue"&&t.localName==="body")return [t];return []}if(e.localName==="footnotes"||e.localName==="endnotes"){let t=[];for(let n of e.children)n.kind!=="textValue"&&(n.localName==="footnote"||n.localName==="endnote")&&t.push(n);return t}return [e]}var mt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",yt=256,gt=31;function ue(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===chunkOSFOJTHU_cjs.la}function He(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkOSFOJTHU_cjs.la)?.value}function Ke(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(a=>a.type===mt),n=t?chunkOSFOJTHU_cjs.J(t):void 0,r=((n?.mode==="Internal"&&n.target.ok?e.parts.get(n.target.partName):void 0)??e.parts.get("/word/fontTable.xml"))?.root,i=new Map;if(!r||!ue(r,"fonts"))return i;let s=0;for(let a of r.children){if(!ue(a,"font"))continue;if(++s>yt)break;let l=chunkBY2ACZZ6_cjs.a(He(a,"name"));if(!l)continue;let c=a.children.find(y=>ue(y,"altName")),u=c&&c.kind!=="textValue"?He(c,"val"):void 0,d=u!==void 0&&u.length<=gt?chunkBY2ACZZ6_cjs.a(u):null,m=l.trim().toLowerCase();d&&!i.has(m)&&i.set(m,d);}return i}function En(e,t,n){let o=new Set;for(let r of e.substitutions??[]){let i=r.from.family.trim().toLowerCase(),s=r.to.family.trim().toLowerCase(),a=[t.alternates.get(i),t.fallbacks.get(i)].some(l=>l?.trim().toLowerCase()===s);s!==i&&a&&!(n.resolve(r.from)instanceof chunkDOHF6FA7_cjs.d)&&o.add(r.from.family.toLowerCase());}return o}function pt(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkOSFOJTHU_cjs.la)?.value}var Ft=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),ht=new Set(["t","delText","instrText","delInstrText"]),bt=2e6;function xt(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...chunkDOHF6FA7_cjs.w(n),...n?chunkDOHF6FA7_cjs.Hb(n).run:[]],i=chunkDOHF6FA7_cjs.aa(r,o),s=chunkBY2ACZZ6_cjs.a(i.fontFamily??void 0)??t,a=chunkBY2ACZZ6_cjs.a(chunkDOHF6FA7_cjs.Jb([{text:"\xE9",props:r,style:i,start:0,end:1}],o)[0]?.style.fontFamily??void 0)??s,l=chunkBY2ACZZ6_cjs.a(i.fontFamilyEastAsia??void 0),c=chunkBY2ACZZ6_cjs.a(i.complexLane?.fontFamily??void 0)??o.minorBidi??t,u=new Map,d=0;for(let p of e.currentPackage().parts.values()){if(p.root.namespaceUri!==chunkOSFOJTHU_cjs.la||!Ft.has(p.root.localName))continue;let F=[p.root];for(;F.length>0&&d<bt;){d++;let E=F.pop();if(E.kind!=="textValue"){if(E.namespaceUri===chunkOSFOJTHU_cjs.la){if(ht.has(E.localName))continue;if(E.localName==="rFonts"){for(let[P,w]of [["ascii",s],["hAnsi",a],["eastAsia",l],["cs",c]]){let R=chunkBY2ACZZ6_cjs.a(pt(E,P));if(!R||!w)continue;let A=R.trim().toLowerCase(),B=u.get(A)??new Set;B.add(w),u.set(A,B);}continue}}for(let P of E.children)F.push(P);}}}for(let p of chunkOSFOJTHU_cjs.a)u.delete(p);let m=new Map,y=[];for(let[p,F]of u)F.size===1?m.set(p,[...F][0]):y.push(p);return {fallbacks:m,ambiguousFamilies:y,defaults:new Map([...u].map(([p,F])=>[p,[...F]]))}}function wt(e,t,n=[],o="Calibri"){let r=Ke(e.currentPackage()),i=xt(e,o),s=t.flatMap(c=>{let u=r.get(c.trim().toLowerCase());return u?[u]:[]}),a=new Map,l=t.flatMap(c=>i.defaults.get(c.trim().toLowerCase())??[]).filter(c=>c.trim().toLowerCase()!==o.trim().toLowerCase());for(let c of [...t,...s,...n,...l]){let u=chunkBY2ACZZ6_cjs.a(c);if(u&&!a.has(u.trim().toLowerCase())&&a.set(u.trim().toLowerCase(),u),a.size===De)break}return {families:[...a.values()],alternates:r,fallbacks:i.fallbacks,ambiguousFamilies:i.ambiguousFamilies}}function Sn(e,t,n){let o=G(n),r=wt(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function On(e,t,n=t.fallbacks){let o=new Map(e.sources.map(a=>[chunkDOHF6FA7_cjs.h(a.request),a.request])),r=[],i=new Set((e.substitutions??[]).map(a=>chunkDOHF6FA7_cjs.h(a.from))),s=Math.max(0,chunkDOHF6FA7_cjs.b-i.size);for(let a of t.families){let l=a.trim().toLowerCase(),c=t.alternates.get(l),u=n.get(l);for(let d of [400,700])for(let m of ["normal","italic"]){let y={family:a,weight:d,style:m};if(!o.has(chunkDOHF6FA7_cjs.h(y)))for(let p of [c,u]){if(!p||p.trim().toLowerCase()===l)continue;let F=o.get(chunkDOHF6FA7_cjs.h({family:p,weight:d,style:m}));if(F){if(!i.has(chunkDOHF6FA7_cjs.h(y))){if(s===0)break;s--;}r.push({from:y,to:F});break}}}}return Y({...e,substitutions:[...r,...e.substitutions??[]]})}var Et={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function kn(e,t){let n=[],o=[],r=0;for(let i of e){let s=i.bytes.byteLength;if(!Number.isSafeInteger(s)||s>t||s>chunkDOHF6FA7_cjs.a||s>chunkDOHF6FA7_cjs.c-r){o.push(i);continue}r+=s,n.push(i);}return {sources:n,dropped:o}}function An(e,t,n){let o=t.reduce((i,s)=>i+s.bytes.byteLength,0),r=new Set(t.filter(i=>i.request.family.trim().length>0).map(i=>chunkDOHF6FA7_cjs.h(i.request)));return St(e,{maxFontBytes:n,aggregateBudget:Math.max(0,chunkDOHF6FA7_cjs.c-o),shadowedRequests:r})}function St(e,t){let n=[],o=[],r=t.aggregateBudget,i=new Set;for(let s of e){let a=Et[s.style],l=Object.freeze({family:s.family,weight:a.weight,style:a.style});if(s.family.trim().length===0){o.push({request:l,partName:s.partName,reason:"malformed"});continue}let c=chunkDOHF6FA7_cjs.h(l);if(!(t.shadowedRequests?.has(c)||i.has(c))){if(i.add(c),s.bytes.byteLength>t.maxFontBytes||s.bytes.byteLength>r){o.push({request:l,partName:s.partName,reason:"overLimit"});continue}r-=s.bytes.byteLength,n.push({request:l,id:`embedded:${s.partName}#${s.style}`,bytes:s.bytes,hash:chunkOSFOJTHU_cjs.f(s.bytes),faceIndex:0});}}return {sources:n,dropped:o}}
|
|
2
|
-
exports.A=kn;exports.B=An;exports.C=St;exports.a=$;exports.b=kt;exports.c=De;exports.d=re;exports.e=At;exports.f=Y;exports.g=G;exports.h=We;exports.i=ze;exports.j=Lt;exports.k=It;exports.l=se;exports.m=ae;exports.n=Pt;exports.o=Bt;exports.p=ee;exports.q=te;exports.r=st;exports.s=Ht;exports.t=rn;exports.u=lt;exports.v=sn;exports.w=En;exports.x=wt;exports.y=Sn;exports.z=On;
|