@docx-editor.dev/core 2.32.0 → 2.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +13 -51
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +14 -14
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-CrPI9ZQc.d.ts} +85 -30
- package/dist/chunk-23MKR33J.js +4 -0
- package/dist/chunk-2DEY5NUC.cjs +32 -0
- package/dist/chunk-2DR4TH6B.js +1 -0
- package/dist/{chunk-ETDZFNMI.js → chunk-2F2UEAE2.js} +1 -1
- package/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/dist/chunk-ALD626VU.cjs +2 -0
- package/dist/chunk-AU33YWEJ.js +236 -0
- package/dist/chunk-AXU63LYW.cjs +1 -0
- package/dist/chunk-CM5VZRBV.js +32 -0
- package/dist/chunk-D7FAFFTN.js +1 -0
- package/dist/{chunk-TJHE5EET.cjs → chunk-DYUVJNDD.cjs} +1 -1
- package/dist/chunk-ESYUKD5D.js +2 -0
- package/dist/chunk-F7TGQMVR.js +5 -0
- package/dist/chunk-FLW7KIQX.js +30 -0
- package/dist/chunk-JG4A6W6I.js +7 -0
- package/dist/chunk-JNGLSBPH.js +2 -0
- package/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/dist/{chunk-L5TYBFDB.js → chunk-L3YXJDPX.js} +1 -1
- package/dist/chunk-LI42N7OW.cjs +4 -0
- package/dist/{chunk-ACLR4DMK.js → chunk-PLKDS4JT.js} +1 -1
- package/dist/{chunk-6UDJUI3W.cjs → chunk-PXMTQ73F.cjs} +1 -1
- package/dist/chunk-R4R3AAE4.js +1 -0
- package/dist/{chunk-OKMEMSKB.cjs → chunk-RFUNFTGV.cjs} +1 -1
- package/dist/chunk-SVM6PGMS.js +3 -0
- package/dist/chunk-SZURLHR3.cjs +3 -0
- package/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/dist/chunk-X34QRAUU.cjs +1 -0
- package/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +13 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +10 -10
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -12
- package/dist/contracts/types.d.ts +4 -4
- package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-AqY5KpVx.d.ts} +2 -2
- package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +2 -2
- package/dist/{document-protection-NaniLHWF.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CXYGYbB3.d.ts} +74 -4
- package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/dist/{editor-DZwOTmlR.d.ts → editor-B7OOAAie.d.ts} +85 -13
- package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +215 -31
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +47 -12
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +38 -23
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +174 -99
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -11
- package/dist/output.js +1 -1
- package/dist/{protocol-DKa4qt7F.d.ts → protocol-Cp_QzVxS.d.ts} +2 -2
- package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-OVusTS77.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-B5JcIv9c.d.ts} +16 -9
- package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-DoK0lNjS.d.ts} +254 -43
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +510 -18
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-Df4oY2u4.d.ts} +718 -252
- package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
- package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
- package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-CUojsaCr.d.ts} +1 -1
- package/licenses/ECMA-376.md +29 -0
- package/package.json +2 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-25EXMBV2.cjs +0 -5
- package/dist/chunk-3IEXDEFH.cjs +0 -7
- package/dist/chunk-65XBN67F.cjs +0 -2
- package/dist/chunk-6NVZNB7O.cjs +0 -3
- package/dist/chunk-B2BEELUE.js +0 -1
- package/dist/chunk-DDFHKQFU.js +0 -30
- package/dist/chunk-E4IAO4CY.cjs +0 -2
- package/dist/chunk-FDSL5OJU.cjs +0 -30
- package/dist/chunk-FS7CMYLT.js +0 -4
- package/dist/chunk-GDS24SZN.js +0 -30
- package/dist/chunk-GIY6NT2X.js +0 -5
- package/dist/chunk-GWM3AKUD.js +0 -18
- package/dist/chunk-HDOXACHP.js +0 -2
- package/dist/chunk-IILEENID.js +0 -1
- package/dist/chunk-MNF2K7NN.cjs +0 -30
- package/dist/chunk-O324RB6R.cjs +0 -1
- package/dist/chunk-QXJKYNYZ.js +0 -1
- package/dist/chunk-RALTVLB6.js +0 -2
- package/dist/chunk-SRVKFUFI.js +0 -3
- package/dist/chunk-TELQ52LG.cjs +0 -1
- package/dist/chunk-UMMRURPE.js +0 -7
- package/dist/chunk-XJYZVGQR.cjs +0 -1
- package/dist/chunk-ZGTIE3QJ.cjs +0 -4
- package/dist/chunk-ZOZI27AW.cjs +0 -18
- package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
package/dist/chunk-E4IAO4CY.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunk6NVZNB7O_cjs=require('./chunk-6NVZNB7O.cjs'),chunkFDSL5OJU_cjs=require('./chunk-FDSL5OJU.cjs'),chunkXJYZVGQR_cjs=require('./chunk-XJYZVGQR.cjs'),chunkZOZI27AW_cjs=require('./chunk-ZOZI27AW.cjs');var tt=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function V(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"||!tt.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 _t(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 Ue=64,ie=Object.freeze({family:"Calibri",sizeHalfPoints:22}),Lt=ie;function G(e,...t){let n=[e,...t],o=[],r=new Set;for(let l of n)for(let c of l.sources??[]){let u=chunkFDSL5OJU_cjs.h(c.request);r.has(u)||(r.add(u),o.push(c));}let s=[],i=new Set;for(let l of n)for(let c of l.substitutions??[]){let u=chunkFDSL5OJU_cjs.h(c.from);r.has(u)||i.has(u)||(i.add(u),s.push(c));}let a=V(n.map(l=>l.supportedFamilies));return Object.freeze({...a.length?{supportedFamilies:a}:{},epoch:e.epoch??0,maxFontBytes:e.maxFontBytes??chunkFDSL5OJU_cjs.a,sources:Object.freeze(o),...s.length>0?{substitutions:Object.freeze(s)}:{},defaultFont:e.defaultFont??ie,...e.language!==void 0?{language:e.language}:{}})}var nt=/^[\p{L}\p{N}\p{M} \-.+_,;]{1,64}$/u;function W(e){let t=e?.defaultFont?.family;return t!==void 0&&nt.test(t)?t:ie.family}var ot="docx-editor.dev/font-resolver",Ve=Symbol.for("docx-editor.dev/font-resolver");function zt(e){let t={value:true,enumerable:false,configurable:true};try{Object.defineProperty(e,Ve,t),Object.defineProperty(e,ot,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 jt(e){return typeof e=="function"&&e[Ve]===true}var le=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},ce=class extends AggregateError{causes;constructor(t){let n=Object.freeze(t.slice(0,chunkFDSL5OJU_cjs.b*2));super(n,`Font origin rejected all ${n.length} face and substitution candidates`),this.causes=n;}},Q=e=>`${e.family.trim().toLowerCase()} ${e.weight} ${e.style}`;function rt(e,t,n){let o=new Map(e.map(r=>[Q(r),r]));for(let[r,s]of t)o.set(r,s);for(let r of n)o.has(Q(r.to))&&o.set(Q(r.from),r.from);return [...o.values()]}async function Ut(e,t,n={}){return Xe(e,t,n)}async function $t(e,t,n={}){return Xe(e,t,n)}async function Xe(e,t,n){let o=n.maxExecutionFontBytes??chunkFDSL5OJU_cjs.a;if(!Number.isSafeInteger(o)||o<=0||o>chunkFDSL5OJU_cjs.a)throw new RangeError("Font execution byte ceiling is outside the supported range");let r=e.map(st),s,i=[],a=[],l=new Map,c=new Set,u=0,d=[],g=new Set,p=[],A=t.resolvedFaces??[],S=t.defaultFamily;for(let m=0;m<e.length;m+=1){Ke(t.signal);let F=e[m],h=rt(A,l,d),R;try{let w=r[m],O;if(w){let f=await $e(w,t.signal);if(!f.ok)throw f.cause;O=f.value;}else if(typeof F=="function"){let f=await $e(Promise.resolve(F(lt(t,S,h,u))).then(b=>({ok:!0,value:b}),b=>({ok:!1,cause:b})),t.signal);if(!f.ok)throw f.cause;O=f.value;}else O=F;if(O==null)continue;if(typeof O=="function"){J(n,F,m,new TypeError("A font origin answered with a function; pass the resolver itself rather than a function returning one"));continue}let k="failures"in O?O.failures:void 0,P=[];if(Array.isArray(k)){let f=Math.min(k.length,chunkFDSL5OJU_cjs.b);for(let b=0;b<f;b++)P.push(k[b]);k.length>f&&P.push(new Error("Additional font-origin failures were omitted"));}else k!==void 0&&P.push(k);let v;try{v=it(O,c,u,g,s?"maxFontBytes"in s&&s.maxFontBytes!==void 0?s.maxFontBytes:chunkFDSL5OJU_cjs.a:void 0,n.reserveOwnedBytes,n.instrumentation,o);}catch(f){for(let b of new Set(P))J(n,F,m,b);throw f}R=v;for(let f of new Set([...v.dropped,...P]))J(n,F,m,f);let T=v.fragment;T.supportedFamilies&&i.push(T.supportedFamilies),p.push(...P);let j=(T.sources??[]).map(f=>(chunkFDSL5OJU_cjs.h(f.request),[Q(f.request),f.request])),x=[...T.substitutions??[]];!s&&"defaultFont"in T&&(S=W(T)),s||(s=T);let E=new Set(v.sourceKeys);if(E.size>0){d=d.filter(f=>!E.has(chunkFDSL5OJU_cjs.h(f.from)));for(let f of E)g.delete(f);}a.push(...T.sources??[]);for(let f of v.sourceKeys)c.add(f);u+=v.ownedBytes;for(let[f,b]of j)l.set(f,b);for(let f of x)d.push(f),g.add(chunkFDSL5OJU_cjs.h(f.from));}catch(w){if(R?.releaseOwnedBytes?.(),t.signal?.aborted)throw t.signal.reason??w;if(w instanceof Z)throw w.cause;J(n,F,m,w);continue}}if(!s)return;let{epoch:C,...L}=G({...s,supportedFamilies:V(i),sources:a,substitutions:d});return p.length===0?L:{...L,failures:Object.freeze(p)}}var Z=class extends Error{constructor(n){super("Unable to reserve owned font bytes");this.cause=n;this.name="FontOwnershipReservationError";}cause},ee=class extends RangeError{};async function $e(e,t){if(!t)return e;Ke(t);let n,o=new Promise((s,i)=>{n=i;}),r=()=>n?.(t.reason);t.addEventListener("abort",r,{once:true});try{return await Promise.race([e,o])}finally{t.removeEventListener("abort",r);}}function st(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 it(e,t,n,o,r,s,i,a=chunkFDSL5OJU_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,g="epoch"in e?e.epoch:void 0,p="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 A=l.length,S=c.length;if(A>chunkFDSL5OJU_cjs.b)throw new RangeError(`Font source count must not exceed ${chunkFDSL5OJU_cjs.b}`);if(S>chunkFDSL5OJU_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkFDSL5OJU_cjs.b}`);let C=u??chunkFDSL5OJU_cjs.a;if(!Number.isSafeInteger(C)||C<=0||C>chunkFDSL5OJU_cjs.a)throw new RangeError(`Font byte ceiling must be a positive safe integer no greater than ${chunkFDSL5OJU_cjs.a}`);let L=Math.min(r??C,a),m=0,F=[],h=new Set,R=[],w=[];for(let x=0;x<A;x+=1){let E=l[x];try{let f=ae(E.request),b=chunkFDSL5OJU_cjs.h(f);if(t.has(b)||h.has(b))continue;let D=E.availability,M=E.faceIndex,q=E.hash,re=E.id;if(D!==void 0&&D!=="available"&&D!=="forbidden")throw new TypeError("Font source availability must be available or forbidden");if(!Number.isSafeInteger(M)||M<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 K;if(D!=="forbidden"){if(typeof re!="string"||re.length===0)throw new TypeError("Font source id must be a non-empty string");K=E.bytes;let U=chunkFDSL5OJU_cjs.e(K);if(U>L)throw U<=(r??C)?new le(f,U,a):new RangeError(`Font source ${f.family} (${U} bytes) exceeds the effective base byte ceiling (${L} bytes)`);if(t.has(b)||h.has(b))continue;if(n+m+U>chunkFDSL5OJU_cjs.c)throw new RangeError(`Font sources exceed the aggregate byte ceiling of ${chunkFDSL5OJU_cjs.c}`);m+=U;}else K=new Uint8Array(0);if(t.has(b)||h.has(b))continue;if(t.size+h.size>=chunkFDSL5OJU_cjs.b)throw new ee(`Font source count must not exceed ${chunkFDSL5OJU_cjs.b}`);h.add(b),F.push(b),R.push(Object.freeze({request:f,id:re,bytes:K,hash:q,faceIndex:M,...D?{availability:D}:{}}));}catch(f){if(f instanceof ee)throw f;w.push(f);}}let O=new Set,k=[];for(let x=0;x<S;x+=1){let E=c[x];try{let f=ae(E.from),b=ae(E.to);chunkFDSL5OJU_cjs.h(f),chunkFDSL5OJU_cjs.h(b);let D=E.lineMetrics,M=D?Object.freeze({heightEm:D.heightEm,baselineEm:D.baselineEm}):void 0;if(M&&(!Number.isFinite(M.heightEm)||!Number.isFinite(M.baselineEm)||M.heightEm<=0||M.heightEm>4||M.baselineEm<0||M.baselineEm>M.heightEm))throw new RangeError("Font substitution line metrics must fit within a bounded em box");let q=chunkFDSL5OJU_cjs.h(f);if(t.has(q)||h.has(q)||o.has(q)||O.has(q))continue;O.add(q),k.push(Object.freeze({from:f,to:b,...M?{lineMetrics:M}:{}}));}catch(f){w.push(f);}}if((A>0||S>0)&&R.length===0&&k.length===0&&w.length>0)throw w.length===1?w[0]:new ce(w);let P=o.size;for(let x of h)o.has(x)&&(P-=1);if(P+O.size>chunkFDSL5OJU_cjs.b)throw new RangeError(`Font substitution count must not exceed ${chunkFDSL5OJU_cjs.b}`);let v;if(d!==void 0){let x=d.family,E=d.sizeHalfPoints;if(chunkFDSL5OJU_cjs.h({family:x,weight:400,style:"normal"}),!Number.isSafeInteger(E)||E<=0)throw new RangeError("Default font size must be a positive safe integer in half-points");v=Object.freeze({family:x,sizeHalfPoints:E});}if(g!==void 0&&(!Number.isSafeInteger(g)||g<0))throw new RangeError("Font configuration epoch must be a non-negative safe integer");if(p!==void 0&&typeof p!="string")throw new TypeError("Font shaping language must be a string");let T;if(m>0&&s)try{T=s(m);}catch(x){throw new Z(x)}let j;try{j=R.map(x=>chunkFDSL5OJU_cjs.f(x,i));}catch(x){throw T?.(),x}return {fragment:Object.freeze({supportedFamilies:V([e.supportedFamilies]),sources:Object.freeze(j),substitutions:Object.freeze(k),...g!==void 0?{epoch:g}:{},...u!==void 0?{maxFontBytes:u}:{},...v?{defaultFont:v}:{},...p!==void 0?{language:p}:{}}),sourceKeys:Object.freeze(F),ownedBytes:m,dropped:Object.freeze(w),releaseOwnedBytes:T}}function at(e){return !Number.isSafeInteger(e)||e<=0?0:e>chunkFDSL5OJU_cjs.c?chunkFDSL5OJU_cjs.c:e}function lt(e,t,n,o){let{committedSourceBytes:r,...s}=e,i=at(o);return {...s,defaultFamily:t,...n.length>0?{resolvedFaces:n}:{},...i>0?{committedSourceBytes:i}:{}}}function ae(e){return Object.freeze({family:e.family,weight:e.weight,style:e.style})}function Ke(e){if(e?.aborted)throw e.reason??new DOMException("Font resolution was aborted","AbortError")}function J(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 s=Object.freeze({originIndex:n,...r!==void 0?{originName:r}:{},cause:o});if(e.onOriginFailure)try{let a=e.onOriginFailure(s);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 i="";try{o instanceof Error&&o.message.length>0&&(i=`: ${o.message}`);}catch{}console.warn(`[fonts] a font origin failed and was skipped${i}`,o);}var ct=256,ut=Object.freeze([]);function te(e){let t=new WeakMap;return (n,o)=>{let r=new Set;for(let s of n){let i=[{node:s,context:o,next:0}],a=l=>{i.pop();let c=i.at(-1)?.found??r;for(let u of l)c.add(u);};for(;i.length;){let l=i[i.length-1],c=t.get(l.node);if(c?.key===l.context.key){a(c.families);continue}if(!l.children){let g=e(l.node,l.context);l.children=g.children,l.found=new Set(g.families);}let u=l.children[l.next++];if(u){i.push({...u,next:0});continue}let d=l.found.size===0?ut:[...l.found];d.length<=ct&&chunkZOZI27AW_cjs.vb(l.node)?t.set(l.node,{key:l.context.key,families:d}):t.delete(l.node),a(d);}}return [...r]}}function ne(e,t){return e.children.flatMap(n=>n.kind==="textValue"?[]:[{node:n,context:t}])}var He=new WeakMap,ft=4096;function Ye(e,t){let n=`${e.baseKey}|${e.depth+1}|${JSON.stringify(t)}`,o=He.get(e);o||He.set(e,o=new Map);let r=o.get(n);if(r)return r;let s={...e,depth:e.depth+1,cellStyle:t,key:n};return o.size<ft&&o.set(n,s),s}function dt(e,t){let{styles:n,theme:o,supplementalFamilies:r,depth:s}=t;if(e.kind==="table"){let l=chunkFDSL5OJU_cjs.ee(e,468,s,n),c=[];for(let u of l?.rows??[])for(let d of u.cells){let g=Ye(t,d.styleFormatting);for(let p of d.blocks)c.push({node:p,context:g});}return {children:c.reverse()}}let i=new Set;if(e.kind==="paragraph"){let l=e.children.find(u=>u.kind==="paragraphProperties"),c=chunkFDSL5OJU_cjs.ud(n,l,t.cellStyle).runProperties;for(let u of chunkFDSL5OJU_cjs.sc(e,c,void 0,(d,g)=>chunkFDSL5OJU_cjs.xd(d,g,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=chunkXJYZVGQR_cjs.b((u.fontSlot==="eastAsia"?u.style.fontFamilyEastAsia:u.style.fontFamily)??void 0);d&&i.add(d);}}let a=e.localName==="txbxContent"?{...t,cellStyle:void 0,key:`${t.baseKey}|${s}|undefined`}:t;return {families:[...i],children:ne(e,a).reverse()}}function mt(){let e=te(dt),t,n,o=(s,i)=>{if(!t||n!==s||t.theme!==i){let a=chunkFDSL5OJU_cjs.td(s,i);n=s,t={key:`${a.cacheToken}|0|undefined`,baseKey:a.cacheToken,styles:a,theme:i,depth:0,supplementalFamilies:new Set([...Object.values(i.majorSupplemental??{}),...Object.values(i.minorSupplemental??{})])};}return t};return Object.assign((s,i,a)=>e([...s].reverse(),o(i,a)),{warmTableRows(s,i,a,l,c){let u=o(l,c),d=chunkFDSL5OJU_cjs.ee(s,468,u.depth,u.styles)?.rows??[];for(let g of d.slice(i,a))for(let p of g.cells)e(p.blocks,Ye(u,p.styleFormatting));return d.length}})}function Qt(e,t,n){return mt()(e,t,n)}function ue(e,t){return e.attributes.find(n=>n.localName===t)?.value}var gt=te((e,t)=>{let n=[];if(e.namespaceUri===chunkZOZI27AW_cjs.pa){if(e.localName==="fldSimple"){let o=chunkFDSL5OJU_cjs.ed(ue(e,"instr")??"")?.font;o&&n.push(o);}if(e.localName==="p")for(let o of yt(e))n.push(o);}return {families:n,children:ne(e,t)}});function fn(e){let t=new Map;for(let n of gt(e,{key:""})){let o=chunkXJYZVGQR_cjs.b(n);o!==null&&!t.has(o.toLowerCase())&&t.set(o.toLowerCase(),o);}return [...t.values()]}function yt(e){let t=[],n=chunkFDSL5OJU_cjs.ac(),o=[];for(let r=e.children.length-1;r>=0;r-=1){let s=e.children[r];s.kind!=="textValue"&&o.push({node:s,containerDepth:0});}for(;o.length>0;){let{node:r,containerDepth:s}=o.pop();if(s>=chunkZOZI27AW_cjs.Aa||r.namespaceUri===chunkZOZI27AW_cjs.pa&&r.localName==="p")continue;if(r.namespaceUri===chunkZOZI27AW_cjs.pa&&r.localName==="fldChar"){let a=ue(r,"fldCharType");a==="begin"?chunkFDSL5OJU_cjs.dc(n):a==="separate"?(n.nesting===1&&Ge(n,t),chunkFDSL5OJU_cjs.fc(n)):a==="end"&&(n.nesting===1&&Ge(n,t),chunkFDSL5OJU_cjs.gc(n));continue}if(r.namespaceUri===chunkZOZI27AW_cjs.pa&&(r.localName==="instrText"||r.localName==="delInstrText")){chunkFDSL5OJU_cjs.ec(n,pt(r),r.localName==="delInstrText");continue}if(r.namespaceUri===chunkZOZI27AW_cjs.pa&&r.localName==="fldSimple"){let a=chunkFDSL5OJU_cjs.ed(ue(r,"instr")??"");a?.font&&t.push(a.font);}let i=chunkZOZI27AW_cjs.Ba(r,s);for(let a=r.children.length-1;a>=0;a-=1){let l=r.children[a];l.kind!=="textValue"&&o.push({node:l,containerDepth:i});}}return chunkFDSL5OJU_cjs.bc(n),t}function Ge(e,t){let n=chunkFDSL5OJU_cjs.cc(e);if(n.overflow)return;let o=chunkFDSL5OJU_cjs.ed(n.instruction);o?.font&&t.push(o.font);}function pt(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 Ft=()=>true,ht=/[ᄀ-ᇿ⺀-鿿ꥠ-가-豈-︰-﹏-]/u;function dn(e,t,n,o){if(!t)return [];let r=chunkFDSL5OJU_cjs.vc(t),s=chunkFDSL5OJU_cjs.td(n,o),i=new Map;for(let a of e)for(let l of bt(a)){let c=chunkZOZI27AW_cjs.ad(l.children),u=d=>{if(d)for(let g of d.values()){let p=g.markerText===void 0||ht.test(g.markerText);for(let A of [g.markerStyle.fontFamily,p?g.markerStyle.fontFamilyEastAsia:null]){let S=chunkXJYZVGQR_cjs.b(A??void 0);if(S===null)continue;let C=S.toLowerCase();i.has(C)||i.set(C,S);}}};u(chunkFDSL5OJU_cjs.Ic(c,r,s,Ft));for(let d of c){let g=chunkFDSL5OJU_cjs.hf(d);for(let p of g.contents)u(chunkFDSL5OJU_cjs.gf(p,r,s));}}return [...i.values()].sort((a,l)=>a.localeCompare(l))}function bt(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 xt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",Je=256,wt=31;function X(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===chunkZOZI27AW_cjs.pa}function oe(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkZOZI27AW_cjs.pa)?.value}function Qe(e){let t=(e.relationships.get(e.mainDocumentPart)??[]).find(s=>s.type===xt),n=t?chunkZOZI27AW_cjs.N(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;return r&&X(r,"fonts")?r:void 0}function We(e,t){let n=e.children.find(o=>X(o,t));return n&&n.kind!=="textValue"?oe(n,"val"):void 0}function Ze(e){let t=Qe(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!X(r,"font"))continue;if(++o>Je)break;let s=chunkXJYZVGQR_cjs.a(oe(r,"name"));if(!s)continue;let i=chunk6NVZNB7O_cjs.P(We(r,"family"),We(r,"pitch")),a=s.trim().toLowerCase();i&&!n.has(a)&&n.set(a,i);}return n}function et(e){let t=Qe(e),n=new Map;if(!t)return n;let o=0;for(let r of t.children){if(!X(r,"font"))continue;if(++o>Je)break;let s=chunkXJYZVGQR_cjs.a(oe(r,"name"));if(!s)continue;let i=r.children.find(u=>X(u,"altName")),a=i&&i.kind!=="textValue"?oe(i,"val"):void 0,l=a!==void 0&&a.length<=wt?chunkXJYZVGQR_cjs.a(a):null,c=s.trim().toLowerCase();l&&!n.has(c)&&n.set(c,l);}return n}function vn(e,t,n){let o=new Set,r=new Map;for(let s of e.substitutions??[]){let i=s.from.family.trim().toLowerCase();r.has(i)||r.set(i,s.to.family.trim().toLowerCase());}for(let s of e.substitutions??[]){let i=s.from.family.trim().toLowerCase(),a=s.to.family.trim().toLowerCase(),l=[t.alternates.get(i),t.fallbacks.get(i)].some(c=>{let u=c?.trim().toLowerCase();return u!==void 0&&u!==i&&(u===a||r.get(u)===a)});a!==i&&l&&!(n.resolve(s.from)instanceof chunkFDSL5OJU_cjs.d)&&o.add(s.from.family.toLowerCase());}return o}function St(e,t){return e.attributes.find(n=>n.localName===t&&n.namespaceUri===chunkZOZI27AW_cjs.pa)?.value}var Et=new Set(["document","hdr","ftr","footnotes","endnotes","comments","styles","numbering","glossaryDocument"]),Ot=new Set(["t","delText","instrText","delInstrText"]),Ct=2e6;function Rt(e,t){let n=e.stylesRoot(),o=e.documentThemeFonts(),r=[...chunkFDSL5OJU_cjs.y(n),...n?chunkFDSL5OJU_cjs.Ob(n).run:[]],s=chunkFDSL5OJU_cjs.da(r,o),i=chunkXJYZVGQR_cjs.a(s.fontFamily??void 0)??t,a=chunkXJYZVGQR_cjs.a(chunkFDSL5OJU_cjs.Qb([{text:"\xE9",props:r,style:s,start:0,end:1}],o)[0]?.style.fontFamily??void 0)??i,l=chunkXJYZVGQR_cjs.a(s.fontFamilyEastAsia??void 0),c=chunkXJYZVGQR_cjs.a(s.complexLane?.fontFamily??void 0)??o.minorBidi??t,u=Ze(e.currentPackage()),d=m=>u.get(m.trim().toLowerCase())??chunk6NVZNB7O_cjs.Q(m),g=(m,F)=>{let h=d(m);if(!h)return F;let R=d(F);return R===void 0||R===h?F:chunk6NVZNB7O_cjs.R[h]},p=new Map,A=new Map,S=0;for(let m of e.currentPackage().parts.values()){if(m.root.namespaceUri!==chunkZOZI27AW_cjs.pa||!Et.has(m.root.localName))continue;let F=[m.root];for(;F.length>0&&S<Ct;){S++;let h=F.pop();if(h.kind!=="textValue"){if(h.namespaceUri===chunkZOZI27AW_cjs.pa){if(Ot.has(h.localName))continue;if(h.localName==="rFonts"){for(let[R,w]of [["ascii",i],["hAnsi",a],["eastAsia",l],["cs",c]]){let O=chunkXJYZVGQR_cjs.a(St(h,R));if(!O||!w)continue;let k=O.trim().toLowerCase(),P=p.get(k)??new Set,v=R==="ascii"||R==="hAnsi",T=v?g(O,w):w;if(P.add(T),p.set(k,P),v&&d(O)){let j=A.get(k)??new Set;j.add(T),A.set(k,j);}}continue}}for(let R of h.children)F.push(R);}}}for(let m of chunkZOZI27AW_cjs.a)p.delete(m);let C=new Map,L=[];for(let[m,F]of p){let h=A.get(m);F.size===1?C.set(m,[...F][0]):h?.size===1?C.set(m,[...h][0]):L.push(m);}return {fallbacks:C,ambiguousFamilies:L,defaults:new Map([...p].map(([m,F])=>[m,[...F]]))}}function kt(e,t,n=[],o="Calibri"){let r=et(e.currentPackage()),s=Rt(e,o),i=t.flatMap(c=>{let u=r.get(c.trim().toLowerCase());return u?[u]:[]}),a=new Map,l=t.flatMap(c=>s.defaults.get(c.trim().toLowerCase())??[]).filter(c=>c.trim().toLowerCase()!==o.trim().toLowerCase());for(let c of [...t,...i,...n,...l]){let u=chunkXJYZVGQR_cjs.a(c);if(u&&!a.has(u.trim().toLowerCase())&&a.set(u.trim().toLowerCase(),u),a.size===Ue)break}return {families:[...a.values()],alternates:r,fallbacks:s.fallbacks,ambiguousFamilies:s.ambiguousFamilies}}function Mn(e,t,n){let o=W(n),r=kt(e,t,[],o);return {plan:r,request:{families:r.families,defaultFamily:o}}}function Nn(e,t,n=t.fallbacks){let o=new Map(e.sources.map(c=>[chunkFDSL5OJU_cjs.h(c.request),c.request])),r=[],s=new Set((e.substitutions??[]).map(c=>chunkFDSL5OJU_cjs.h(c.from))),i=new Map((e.substitutions??[]).map(c=>[chunkFDSL5OJU_cjs.h(c.from),c])),a=c=>{let u=o.get(chunkFDSL5OJU_cjs.h(c));if(u)return {to:u};let d=i.get(chunkFDSL5OJU_cjs.h(c)),g=d&&o.get(chunkFDSL5OJU_cjs.h(d.to));if(!(!d||!g))return d.lineMetrics?{to:g,lineMetrics:d.lineMetrics}:{to:g}},l=Math.max(0,chunkFDSL5OJU_cjs.b-s.size);for(let c of t.families){let u=c.trim().toLowerCase(),d=t.alternates.get(u),g=n.get(u);for(let p of [400,700])for(let A of ["normal","italic"]){let S={family:c,weight:p,style:A};if(o.has(chunkFDSL5OJU_cjs.h(S)))continue;let C=i.has(chunkFDSL5OJU_cjs.h(S));for(let L of [d,g]){if(!L||L.trim().toLowerCase()===u)continue;let m={family:L,weight:p,style:A},F=o.get(chunkFDSL5OJU_cjs.h(m)),h=C?F?{to:F}:void 0:a(m);if(h){if(!s.has(chunkFDSL5OJU_cjs.h(S))){if(l===0)break;l--;}r.push({from:S,...h});break}}}}return G({...e,substitutions:[...r,...e.substitutions??[]]})}function _n(e,t,n){let o=new Set((e.substitutions??[]).map(s=>chunkFDSL5OJU_cjs.h(s.from))),r=new Set;for(let s of t.substitutions??[]){if(o.has(chunkFDSL5OJU_cjs.h(s.from)))continue;let i=s.from.family.trim().toLowerCase(),a=s.to.family.trim().toLowerCase();[n.alternates.get(i),n.fallbacks.get(i)].some(c=>c?.trim().toLowerCase()===a)||r.add(i);}return r}function Ln(e,t){let n=new Map;for(let[o,r]of e)t(o)||n.set(o,r);return n}var Tt={regular:{weight:400,style:"normal"},bold:{weight:700,style:"normal"},italic:{weight:400,style:"italic"},boldItalic:{weight:700,style:"italic"}};function Bn(e,t){let n=[],o=[],r=0;for(let s of e){let i=s.bytes.byteLength;if(!Number.isSafeInteger(i)||i>t||i>chunkFDSL5OJU_cjs.a||i>chunkFDSL5OJU_cjs.c-r){o.push(s);continue}r+=i,n.push(s);}return {sources:n,dropped:o}}function Dn(e,t,n){let o=t.reduce((s,i)=>s+i.bytes.byteLength,0),r=new Set(t.filter(s=>s.request.family.trim().length>0).map(s=>chunkFDSL5OJU_cjs.h(s.request)));return At(e,{maxFontBytes:n,aggregateBudget:Math.max(0,chunkFDSL5OJU_cjs.c-o),shadowedRequests:r})}function At(e,t){let n=[],o=[],r=t.aggregateBudget,s=new Set;for(let i of e){let a=Tt[i.style],l=Object.freeze({family:i.family,weight:a.weight,style:a.style});if(i.family.trim().length===0){o.push({request:l,partName:i.partName,reason:"malformed"});continue}let c=chunkFDSL5OJU_cjs.h(l);if(!(t.shadowedRequests?.has(c)||s.has(c))){if(s.add(c),i.bytes.byteLength>t.maxFontBytes||i.bytes.byteLength>r){o.push({request:l,partName:i.partName,reason:"overLimit"});continue}r-=i.bytes.byteLength,n.push({request:l,id:`embedded:${i.partName}#${i.style}`,bytes:i.bytes,hash:chunkZOZI27AW_cjs.f(i.bytes),faceIndex:0});}}return {sources:n,dropped:o}}
|
|
2
|
-
exports.A=_n;exports.B=Ln;exports.C=Bn;exports.D=Dn;exports.E=At;exports.a=V;exports.b=_t;exports.c=Ue;exports.d=ie;exports.e=Lt;exports.f=G;exports.g=W;exports.h=ot;exports.i=Ve;exports.j=zt;exports.k=jt;exports.l=le;exports.m=ce;exports.n=Ut;exports.o=$t;exports.p=te;exports.q=ne;exports.r=mt;exports.s=Qt;exports.t=fn;exports.u=yt;exports.v=dn;exports.w=vn;exports.x=kt;exports.y=Mn;exports.z=Nn;
|