@docx-editor.dev/core 2.13.0 → 2.14.1

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.
Files changed (101) hide show
  1. package/dist/automation.cjs +1 -1
  2. package/dist/automation.d.cts +3 -3
  3. package/dist/automation.d.ts +3 -3
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.cts +4 -4
  7. package/dist/binding.d.ts +4 -4
  8. package/dist/binding.js +1 -1
  9. package/dist/{chunk-PFSJVAWJ.cjs → chunk-2PIHW2QM.cjs} +1 -1
  10. package/dist/chunk-2QTY5S6T.js +1 -0
  11. package/dist/chunk-4Z5MODAE.cjs +2 -0
  12. package/dist/{chunk-WANKXD34.cjs → chunk-5TKAPFZT.cjs} +1 -1
  13. package/dist/chunk-DRQHIQ4R.cjs +1 -0
  14. package/dist/chunk-F2K6SDHA.cjs +20 -0
  15. package/dist/chunk-FBA57EUJ.js +2 -0
  16. package/dist/{chunk-67S7OHE6.cjs → chunk-KIAP7PFQ.cjs} +1 -1
  17. package/dist/chunk-KTAQ7BRQ.js +20 -0
  18. package/dist/chunk-LBAHXZCU.cjs +5 -0
  19. package/dist/chunk-MCDUQYWP.js +5 -0
  20. package/dist/chunk-MQP26KCF.js +1 -0
  21. package/dist/chunk-NDJGSR6M.cjs +19 -0
  22. package/dist/chunk-NJNFJPGB.cjs +11 -0
  23. package/dist/chunk-O5M4CR4P.cjs +2 -0
  24. package/dist/{chunk-HWWHGREA.js → chunk-OKEDGR65.js} +1 -1
  25. package/dist/chunk-UKUOZXUD.js +19 -0
  26. package/dist/chunk-VQ4R5LTU.js +2 -0
  27. package/dist/chunk-ZBEJHJN2.js +11 -0
  28. package/dist/{chunk-PRIBU3UH.js → chunk-ZVTW7RGD.js} +1 -1
  29. package/dist/collaboration/replication.cjs +1 -1
  30. package/dist/collaboration/replication.d.cts +1 -1
  31. package/dist/collaboration/replication.d.ts +1 -1
  32. package/dist/collaboration/replication.js +1 -1
  33. package/dist/collaboration.d.cts +1 -1
  34. package/dist/collaboration.d.ts +1 -1
  35. package/dist/contracts/editor.d.cts +4 -4
  36. package/dist/contracts/editor.d.ts +4 -4
  37. package/dist/contracts/interaction.d.cts +4 -4
  38. package/dist/contracts/interaction.d.ts +4 -4
  39. package/dist/contracts/modules.d.cts +2 -2
  40. package/dist/contracts/modules.d.ts +2 -2
  41. package/dist/{editor-DLrTueVe.d.cts → editor-AJ06hyyg.d.cts} +26 -2
  42. package/dist/{editor-KiB6JNvk.d.ts → editor-a6VvsfYU.d.ts} +26 -2
  43. package/dist/editor.cjs +1 -1
  44. package/dist/editor.css +1 -1
  45. package/dist/editor.d.cts +15 -15
  46. package/dist/editor.d.ts +15 -15
  47. package/dist/editor.js +1 -1
  48. package/dist/{index-D4Pxdo_p.d.ts → index-C5ZnSRkF.d.ts} +49 -15
  49. package/dist/{index-D_PA2Xv6.d.cts → index-Cbw4lkOt.d.cts} +49 -15
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.d.cts +9 -9
  52. package/dist/index.d.ts +9 -9
  53. package/dist/index.js +1 -1
  54. package/dist/layout.cjs +1 -1
  55. package/dist/layout.d.cts +36 -86
  56. package/dist/layout.d.ts +36 -86
  57. package/dist/layout.js +1 -1
  58. package/dist/output.cjs +1 -1
  59. package/dist/output.d.cts +4 -4
  60. package/dist/output.d.ts +4 -4
  61. package/dist/output.js +1 -1
  62. package/dist/{protocol-DjgYKCAy.d.ts → protocol-BsmQgblT.d.ts} +1 -1
  63. package/dist/{protocol-C8L58j66.d.cts → protocol-gOY5GA8K.d.cts} +1 -1
  64. package/dist/{review-reads-DcGYCH0w.d.ts → review-reads-BjZYeMd4.d.ts} +6 -19
  65. package/dist/{review-reads-BrTDmoYH.d.cts → review-reads-DEsV0OOW.d.cts} +6 -19
  66. package/dist/{revision-projection-BmLtLPxH.d.ts → revision-projection-BeXVrSSV.d.ts} +23 -2
  67. package/dist/{revision-projection-Dknlar93.d.cts → revision-projection-DXbrfNGD.d.cts} +23 -2
  68. package/dist/{semantic-cell-selection-BZ50i-Fu.d.ts → semantic-cell-selection-BK91NCCG.d.ts} +15 -6
  69. package/dist/{semantic-cell-selection-COnfaOZO.d.cts → semantic-cell-selection-BMhku3B1.d.cts} +15 -6
  70. package/dist/{semantic-interaction-BDJ4TBjm.d.ts → semantic-interaction-BmQ7h2cq.d.ts} +1 -1
  71. package/dist/{semantic-interaction-Bq3ixB0I.d.cts → semantic-interaction-DUAnxbgf.d.cts} +1 -1
  72. package/dist/{semantic-paint-C5SMTO8Y.d.cts → semantic-paint-DufNL1Zr.d.cts} +1 -1
  73. package/dist/{semantic-paint-DuhhY5-R.d.ts → semantic-paint-WJD2KeG1.d.ts} +1 -1
  74. package/dist/{semantic-records-BI1jpft7.d.ts → semantic-records-92UnKeU_.d.ts} +546 -5
  75. package/dist/{semantic-records-Btw3Ao4v.d.cts → semantic-records-BpozY7-j.d.cts} +546 -5
  76. package/dist/shaped-measurer-BWbindlI.d.ts +168 -0
  77. package/dist/shaped-measurer-CFPnXFs9.d.cts +168 -0
  78. package/dist/store.cjs +1 -1
  79. package/dist/store.d.cts +14 -7
  80. package/dist/store.d.ts +14 -7
  81. package/dist/store.js +1 -1
  82. package/dist/{tree-package-fragment-B1supBtE.d.ts → tree-package-fragment-CWFjgH6a.d.ts} +1 -9
  83. package/dist/{tree-package-fragment-ByN5yzll.d.cts → tree-package-fragment-Dhyw7oPm.d.cts} +1 -9
  84. package/dist/{tree-session-contract-BasiwZgZ.d.ts → tree-session-contract-B2HfGt79.d.ts} +6 -2
  85. package/dist/{tree-session-contract-DbeBenMR.d.cts → tree-session-contract-BY9xd7s_.d.cts} +6 -2
  86. package/package.json +2 -2
  87. package/dist/chunk-3AT4RUQ3.cjs +0 -19
  88. package/dist/chunk-4NAQLFXA.cjs +0 -2
  89. package/dist/chunk-BHAUFJO6.js +0 -20
  90. package/dist/chunk-F7U4OLMS.cjs +0 -2
  91. package/dist/chunk-FNMXRLGW.cjs +0 -5
  92. package/dist/chunk-I36WS6XX.cjs +0 -20
  93. package/dist/chunk-IOTL2GGW.js +0 -1
  94. package/dist/chunk-OF2QZCTN.js +0 -19
  95. package/dist/chunk-RO3HFCML.js +0 -5
  96. package/dist/chunk-SFOUCTKA.js +0 -2
  97. package/dist/chunk-VBEKERLJ.js +0 -2
  98. package/dist/chunk-XETEMUIP.cjs +0 -11
  99. package/dist/chunk-YMW34EBA.js +0 -11
  100. package/dist/shaped-measurer-CqdYa0fa.d.cts +0 -619
  101. package/dist/shaped-measurer-qnBJziPx.d.ts +0 -619
@@ -1,2 +1,2 @@
1
- import {q as q$1,p as p$1,m,r,n,t,s,l,u,v as v$1,o,x,d as d$1,y,e,A as A$1,k as k$1,f as f$1,w as w$1,z,a,b,g,c as c$1,h,i as i$1,j as j$1}from'./chunk-SFOUCTKA.js';import {c,d,p,f,k,j,i,Je,bh,Pe,ze as ze$1,ca,Zb,Ka,_b,N,x as x$1,Na,w,ma}from'./chunk-YMW34EBA.js';var on=["extension","capability","command","query","schema","dependencyKey","runtimePort","result","origin"],an=/^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)+$/,sn=/^@[a-z0-9.-]+\/[a-z0-9.-]+(?:#[a-z0-9]+(?:[/._-][a-z0-9]+)*)?$/;function Ft(e){return an.test(e)||sn.test(e)}function re(e,t){if(!Ft(e))throw new Error(`invalid ${t??"registry"} id ${JSON.stringify(e)}: must be reverse-domain (dev.docx-editor.core.x) or package-owned (@scope/pkg#kind/name)`)}var ln=/^(\d+)\.(\d+)\.(\d+)$/;function $(e){let t=ln.exec(e);if(!t)throw new Error(`invalid semantic version: ${JSON.stringify(e)}`);return {major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3])}}function oe(e,t){return e.major!==t.major?e.major<t.major?-1:1:e.minor!==t.minor?e.minor<t.minor?-1:1:e.patch!==t.patch?e.patch<t.patch?-1:1:0}function ie(e,t){let n=$(e),r=t.trim();if(r==="*")return true;if(r.startsWith("^")){let o=$(r.slice(1));return oe(n,o)<0?false:o.major>0?n.major===o.major:o.minor>0?n.major===0&&n.minor===o.minor:n.major===0&&n.minor===0}if(r.includes(" ")){let o=r.split(/\s+/);if(o.length!==2)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let p=true;for(let i of o){let s=i.startsWith(">=")?">=":i.startsWith("<")?"<":null;if(!s)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let d=$(i.slice(s.length)),l=oe(n,d);s===">="?p=p&&l>=0:p=p&&l<0;}return p}return oe(n,$(r))===0}var v=class extends Error{constructor(n,r,o=[]){super(r);this.code=n;this.responsible=o;this.name="RegistryError";}code;responsible},Ae=(e,t)=>`${e}:${t}`;function dn(e,t={}){let n=new Map;for(let l of e){if(re(l.id,"extension"),Bt(l.version,l.id),n.has(l.id))throw new v("duplicate-extension",`duplicate extension id ${l.id}`,[l.id]);n.set(l.id,l);for(let c of l.contributions)re(c.id,c.kind),Bt(c.version,`${l.id} \u2192 ${c.id}`),c.replaces&&mn(c.replaces.targetRange,`${l.id} \u2192 replaces ${c.replaces.targetId}`);}for(let l of e){for(let c of l.dependencies??[])if(!n.has(c))throw new v("missing-dependency",`${l.id} requires missing extension ${c}`,[l.id,c]);for(let c of l.conflicts??[])if(n.has(c)){let g=[l.id,c].sort();throw new v("conflict",`extensions ${g[0]} and ${g[1]} conflict`,g)}}pn(n);let r=new Set(t.availablePorts??[]);for(let l of e)for(let c of l.contributions)c.kind==="runtimePort"&&r.add(c.id);for(let l of e)for(let c of l.requiredPorts??[])if(!r.has(c))throw new v("missing-port",`${l.id} requires unavailable port ${c}`,[l.id,c]);let o=new Map,p=new Map,i=new Map;for(let l of e)for(let c of l.contributions){let g=Ae(c.kind,c.id);if(c.replaces){let x=Ae(c.kind,c.replaces.targetId),R=i.get(x)??[];R.push({ext:l.id,c}),i.set(x,R);continue}if(p.has(g)){let x=[o.get(g),l.id].sort();throw new v("id-collision",`${c.kind} id ${c.id} registered by both ${x[0]} and ${x[1]}`,x)}p.set(g,c),o.set(g,l.id);}let s=new Map(p);for(let[l,c]of i){let g=p.get(l);if(!g){let O=c[0];throw new v("replacement-target-missing",`${O.ext} replaces missing target ${O.c.replaces.targetId}`,[O.ext,O.c.replaces.targetId])}let x=g.replaceable??{kind:"none"};for(let{ext:O,c:b}of c){if(!ie(g.version,b.replaces.targetRange))throw new v("replacement-version-mismatch",`${O} replaces ${b.replaces.targetId}@${g.version} outside range ${b.replaces.targetRange}`,[O,b.replaces.targetId]);if(x.kind==="none")throw new v("unauthorized-replacement",`${b.replaces.targetId} does not authorize replacement (attempted by ${O})`,[O,b.replaces.targetId])}let R=cn(g,c);s.set(l,R);}return {extensions:n,contributions:s,get:(l,c)=>s.get(Ae(l,c))}}function cn(e,t){let n=e.replaceable??{kind:"none"};if(t.length===1)return t[0].c;if(n.kind==="priority"){let o=[...t].sort((s,d)=>(d.c.replaces.priority??0)-(s.c.replaces.priority??0)),p=o[0].c.replaces.priority??0,i=o.filter(s=>(s.c.replaces.priority??0)===p);if(i.length>1){let s=i.map(d=>d.ext).sort();throw new v("ambiguous-replacement",`multiple replacers of ${e.id} share top priority ${p}: ${s.join(", ")}`,s)}return o[0].c}let r=t.map(o=>o.ext).sort();throw new v("ambiguous-replacement",`multiple replacers of ${e.id}: ${r.join(", ")}`,r)}function pn(e){let o=new Map,p=[],i=s=>{o.set(s,1),p.push(s);let d=[...e.get(s)?.dependencies??[]].sort();for(let l of d){let c=o.get(l)??0;if(c===1){let g=p.indexOf(l),x=[...p.slice(g),l];throw new v("dependency-cycle",`dependency cycle: ${x.join(" -> ")}`,x)}c===0&&i(l);}p.pop(),o.set(s,2);};for(let s of [...e.keys()].sort())(o.get(s)??0)===0&&i(s);}function Bt(e,t){try{$(e);}catch{throw new v("invalid-version",`invalid version ${JSON.stringify(e)} in ${t}`,[t])}}function mn(e,t){try{ie("0.0.0",e);}catch{throw new v("invalid-version",`invalid version range ${JSON.stringify(e)} in ${t}`,[t])}}var A=class extends Error{constructor(t){super(t),this.name="BudgetError";}},W=class e{constructor(t,n){this.label=t;this.capacity=n;this.used=new p(`${t}.budget`,n);}label;capacity;used;children=new Set;activeReservations=0;cleanups=[];disposed=false;carveAmount=0;parent;get inUse(){return this.used.current}get available(){return this.used.remaining}get isDisposed(){return this.disposed}reserve(t){this.assertLive(),this.used.add(t),this.activeReservations+=1;let n=false,r=this;return {amount:t,get released(){return n},release(){n||(n=true,r.used.release(t),r.activeReservations-=1);}}}child(t,n){this.assertLive(),this.used.add(n);let r=new e(t,n);return r.parent=this,r.carveAmount=n,this.children.add(r),r}onRelease(t){this.assertLive(),this.cleanups.push(t);}dispose(){if(this.disposed)return;if(this.children.size>0)throw new A(`${this.label}: cannot release with ${this.children.size} child budget(s) outstanding`);if(this.activeReservations>0)throw new A(`${this.label}: cannot release with ${this.activeReservations} reservation(s) outstanding`);let t=[];for(let n=this.cleanups.length-1;n>=0;n--)try{this.cleanups[n]();}catch(r){t.push(r);}if(this.disposed=true,this.parent&&(this.parent.children.delete(this),this.parent.used.release(this.carveAmount),this.parent=void 0),t.length>0)throw new A(`${this.label}: ${t.length} cleanup error(s); first: ${String(t[0])}`)}assertLive(){if(this.disposed)throw new A(`${this.label}: budget already released`)}};var ae=class extends Error{constructor(n,r){super(r?`cancelled: ${r}`:"cancelled");this.derivedOnly=n;this.name="CancellationError";}derivedOnly},K=class{_cancelled=false;_phase="pre-publication";_reason;cancel(t){this._cancelled=true,t!==void 0&&(this._reason=t);}markPublished(){this._phase="post-publication";}get isCancelled(){return this._cancelled}get phase(){return this._phase}get isPublished(){return this._phase==="post-publication"}get derivedOnly(){return this._cancelled&&this._phase==="post-publication"}get token(){let t=this;return {get isCancelled(){return t._cancelled},get phase(){return t._phase},get derivedOnly(){return t.derivedOnly},checkpoint(){if(t._cancelled)throw new ae(t.derivedOnly,t._reason)}}}};var se=class extends Error{constructor(n){super(`runtime port not available: ${n}`);this.portId=n;this.name="PortResolutionError";}portId},_e=class{ports=new Map;provide(t,n){return this.ports.set(t,n),this}has(t){return this.ports.has(t)}resolve(t){if(!this.ports.has(t))throw new se(t);return this.ports.get(t)}missing(t){return t.filter(n=>!this.ports.has(n))}availablePorts(){return [...this.ports.keys()]}clock(){return this.resolve(f.clock)}identity(){return this.resolve(f.identity)}},Me=class{constructor(t=0,n=1){this.step=n;this.t=t;}step;t;now(){let t=this.t;return this.t+=this.step,t}},Le=class{constructor(t="id"){this.prefix=t;}prefix;n=0;newId(){return this.n+=1,`${this.prefix}-${this.n}`}};function un(e){let t=k(e.limits),n=Object.freeze({...e.config??{}}),r=e.capacity??t.maxDecompressedBytes,o=e.id??"op",p={id:o,limits:t,config:n,ports:e.ports,budget:new W(`op:${o}`,r),cancellation:new K};return Object.freeze(p)}function fn(e){e.budget.dispose();}var Fe=Object.freeze({maxRecursionDepth:{unit:"depth",phase:"xml-parse"},maxElementCount:{unit:"count",phase:"xml-parse"},maxPartCount:{unit:"count",phase:"package-read"},maxDecompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressionRatio:{unit:"ratio",phase:"package-read"},maxChunkBytes:{unit:"bytes",phase:"package-read"},maxPaginationPasses:{unit:"passes",phase:"layout"},maxQueueDepth:{unit:"count",phase:"output"}}),Vt=Object.keys(Fe);function yn(e,t){return new p(`${Fe[t].phase}:${t}`,e[t])}var De=class{counter;current=0;peak=0;constructor(t){this.counter=new p("memory",t);}allocate(t){this.counter.add(t),this.current+=t,this.current>this.peak&&(this.peak=this.current);}free(t){this.counter.release(t),this.current=Math.max(0,this.current-t);}get currentBytes(){return this.current}get peakBytes(){return this.peak}reset(){this.counter.release(this.current),this.current=0;}};function hn(){for(let e of Vt){let t=j[e],n=i[e];if(!Number.isFinite(t)||t<=0)throw new Error(`default ${e} must be finite > 0`);if(!Number.isFinite(n)||n<=0)throw new Error(`ceiling ${e} must be finite > 0`);if(t>n)throw new Error(`default ${e} exceeds ceiling`)}}function G(e,t=new Set){let n=new WeakSet,r=o=>{if(o===null)return "null";let p=typeof o;if(p==="boolean")return o?"true":"false";if(p==="number"){let i=o;if(!Number.isFinite(i))throw new Error(`non-finite number is not comparable: ${i}`);return Object.is(i,-0)?"0":String(i)}if(p==="string")return JSON.stringify(o);if(p==="bigint")return `${o.toString()}n`;if(Array.isArray(o))return `[${o.map(r).join(",")}]`;if(p==="object"){let i=o;if(n.has(i))throw new Error("cannot canonicalize a cyclic structure");n.add(i);let d=Object.keys(i).filter(l=>!t.has(l)).sort().map(l=>`${JSON.stringify(l)}:${r(i[l])}`).join(",");return n.delete(i),`{${d}}`}throw new Error(`unsupported value type in comparator input: ${p}`)};return r(e)}function Be(e,t){let n=G(e,t),r=0xcbf29ce484222325n,o=0x100000001b3n,p=0xffffffffffffffffn;for(let i=0;i<n.length;i++)r^=BigInt(n.charCodeAt(i)),r=r*o&p;return r.toString(16).padStart(16,"0")}var C="dev.docx-editor.core.comparator",Ve={authoredState:{id:`${C}.authored-state`,mode:"canonical-exact",ephemera:["revision","provenance","producedAt","commitId"],note:"canonical normalized authored records; ephemera excluded"},anchor:{id:`${C}.anchor`,mode:"exact",ephemera:[],note:"internal anchor identity/affinity compares exactly"},yjsStateVector:{id:`${C}.yjs-state-vector`,mode:"sync-optimization-only",ephemera:[],note:"exchange optimization only; never proves update or delete-set coverage"},shapedRun:{id:`${C}.shaped-run`,mode:"exact",ephemera:[],note:"glyph ids, clusters, and fixed-point advances compare exactly"},paginationFingerprint:{id:`${C}.pagination-fingerprint`,mode:"exact",ephemera:[],note:"page/column boundaries, break causes, fixed-point geometry compare exactly"},semanticTree:{id:`${C}.semantic-tree`,mode:"exact",ephemera:[],note:"reading order, roles, headings, alt text compare exactly"},hitTest:{id:`${C}.hit-test`,mode:"exact",ephemera:[],note:"resolved hit target and cluster affinity compare exactly"},pdfSemantics:{id:`${C}.pdf-semantics`,mode:"canonical-exact",ephemera:["objectNumber","producer","creationDate","modDate","subsetTag"],note:"canonical semantic PDF objects; container ephemera excluded"},rasterCheckpoint:{id:`${C}.raster-checkpoint`,mode:"tolerance",ephemera:[],note:"documented unavoidable raster comparison; explicit tolerance only"},benchmarkEvidence:{id:`${C}.benchmark-evidence`,mode:"sync-optimization-only",ephemera:[],note:"diagnostic evidence, not an equivalence basis"}};function ze(e,t,n,r={}){let o=Ve[e];switch(o.mode){case "sync-optimization-only":throw new Error(`${o.id} is not an equivalence basis (${o.note})`);case "tolerance":{if(r.epsilon===void 0)throw new Error(`${o.id} requires an explicit epsilon`);return {equal:zt(t,n,r.epsilon)}}case "exact":case "canonical-exact":{let p=o.mode==="canonical-exact"?new Set(o.ephemera):new Set,i=G(t,p),s=G(n,p);return i===s?{equal:true}:{equal:false,left:i,right:s}}}}function Ue(e,t){let n=Ve[e];if(n.mode==="tolerance"||n.mode==="sync-optimization-only")throw new Error(`${n.id} has no canonical fingerprint (${n.mode})`);let r=n.mode==="canonical-exact"?new Set(n.ephemera):void 0;return Be(t,r)}function zt(e,t,n){return typeof e=="number"&&typeof t=="number"?Number.isFinite(e)&&Number.isFinite(t)&&Math.abs(e-t)<=n:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,o)=>zt(r,t[o],n)):false}var Ht=new Set([...c,...d]),Ut=/^[0-9a-f]{16}$/,gn=/^[0-9a-f]*$/;function He(e){let t=[],n=o=>t.push(o);e.formatVersion!==1&&n(`unsupported formatVersion ${e.formatVersion}`),e.documentId||n("documentId is required"),e.source.kind==="docx"&&!/^[0-9a-f]{64}$/.test(e.source.sha256)&&n("docx source requires a 64-hex sha256");let r=-1;e.steps.forEach((o,p)=>{let i=`step[${p}]`;Ht.has(o.origin)||n(`${i}: unknown origin ${o.origin}`),(!Number.isInteger(o.baseRevision)||o.baseRevision<0)&&n(`${i}: baseRevision must be a non-negative integer`),o.baseRevision<r&&n(`${i}: baseRevision regressed below ${r}`);let s=o.expect;s.outcome==="applied"?(s.committedRevision===void 0?n(`${i}: applied step needs committedRevision`):s.committedRevision<=o.baseRevision?n(`${i}: committedRevision ${s.committedRevision} must exceed baseRevision ${o.baseRevision}`):r=s.committedRevision,s.modelChange&&xn(s.modelChange,i,n)):(s.committedRevision!==void 0&&n(`${i}: ${s.outcome} step must not commit a revision`),s.authoredStateHash!==void 0&&n(`${i}: ${s.outcome} step must not change authored state`)),s.authoredStateHash!==void 0&&!Ut.test(s.authoredStateHash)&&n(`${i}: authoredStateHash must be 16-hex`),s.outputHash!==void 0&&!Ut.test(s.outputHash)&&n(`${i}: outputHash must be 16-hex`);});for(let o of [...e.snapshots??[],...e.updates??[]])o.documentId!==e.documentId&&n(`envelope documentId ${o.documentId} != ${e.documentId}`),gn.test(o.bytesHex)||n("envelope bytesHex must be hex"),o.bytesHex.length!==o.byteLength*2&&n(`envelope byteLength ${o.byteLength} disagrees with ${o.bytesHex.length/2} decoded bytes`);return {valid:t.length===0,errors:t}}function xn(e,t,n){Ht.has(e.origin)||n(`${t}: modelChange origin ${e.origin} unknown`),e.toRevision<=e.fromRevision&&n(`${t}: modelChange revision must advance`);}function Rn(e,t){let n=He(e);if(!n.valid)return {ok:false,mismatches:n.errors};let r=[];return t.init(e),e.steps.forEach((o,p)=>{let i=`step[${p}]`,s=t.applyStep(o),d=o.expect;if(s.outcome!==d.outcome){r.push(`${i}: outcome ${s.outcome} != expected ${d.outcome}`);return}if(d.outcome==="applied"&&(s.committedRevision!==d.committedRevision&&r.push(`${i}: revision ${s.committedRevision} != expected ${d.committedRevision}`),d.authoredStateHash!==void 0))if(s.authoredState===void 0)r.push(`${i}: store returned no authored state to hash`);else {ze("authoredState",s.authoredState,s.authoredState).equal||r.push(`${i}: authored state is not self-consistent`);let c=jt(s.authoredState);c!==d.authoredStateHash&&r.push(`${i}: authoredStateHash ${c} != expected ${d.authoredStateHash}`);}}),{ok:r.length===0,mismatches:r}}function jt(e){return Ue("authoredState",e)}function le(e,t){return {...e,children:t}}function de(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===ca}function q(e,t=[]){if(e.kind==="textValue")return t;e.kind==="paragraph"&&t.push(e.id);for(let n of e.children)q(n,t);return t}function Wt(e,t){if(e.kind==="textValue")return null;if(e.kind==="paragraph"&&e.id===t)return e;for(let n of e.children){let r=Wt(n,t);if(r)return r}return null}function On(e){let t=(n,r)=>{if(n.kind==="textValue")return n;if(r&&de(n,"vMerge")){if(ze$1(n,"val")==="restart")return n;let p=[...n.attributes.filter(i=>!(i.localName==="val"&&i.namespaceUri===ca)),{kind:"wmlVal",namespaceUri:ca,localName:"val",prefix:"w",value:"restart"}];return {...n,attributes:p}}if(n.kind==="paragraph"||n.kind==="table")return n;let o=r||de(n,"tc");return le(n,n.children.map(p=>t(p,o)))};return le(e,e.children.map(n=>t(n,false)))}function Kt(e,t){if(!(e.kind==="textValue"||e.kind==="table")){if(de(e,"tr")){t.push(e);return}for(let n of e.children)Kt(n,t);}}function Gt(e,t,n){if(e.kind==="textValue"||e.kind==="table")return {node:e,hadRows:false,keptRows:false};if(de(e,"tr")){if(!t.has(e))return {node:null,hadRows:true,keptRows:false};let i=n.value?On(e):e;return n.value=false,{node:i,hadRows:true,keptRows:true}}let r=false,o=false,p=[];for(let i of e.children){let s=Gt(i,t,n);r||=s.hadRows,o||=s.keptRows,s.node!==null&&p.push(s.node);}return r?{node:o?le(e,p):null,hadRows:true,keptRows:o}:{node:e,hadRows:false,keptRows:false}}function qt(e,t,n){let r=[];for(let d of e.children)Kt(d,r);let o=new Set(q(e).filter(d=>t.inRange.has(d)));if(o.size===0)return;let p=r.filter(d=>{let l=q(d);return l.length>0&&l.every(c=>t.covered.has(c))}),i=new Set(p.flatMap(d=>q(d)));if(p.length>0&&o.size===i.size&&[...o].every(d=>i.has(d))){let d={value:true},l=new Set(p),c=[];for(let g of e.children){let x=Gt(g,l,d);x.node!==null&&c.push(x.node);}n.push(le(e,c));return}for(let d of q(e)){if(!t.inRange.has(d))continue;let l=Wt(e,d);l&&n.push(l);}}var vn="http://schemas.openxmlformats.org/package/2006/content-types",bn=5e4;function P(e){return e.kind!=="textValue"}function Yt(e,t=[]){if(e.kind==="textValue")return t;e.kind==="paragraph"&&t.push(e.id);for(let n of e.children)Yt(n,t);return t}function je(e,t){if(e.kind==="textValue")return null;if(e.kind==="paragraph"&&e.id===t)return e;for(let n of e.children){let r=je(n,t);if(r)return r}return null}function S(e,t){return {...e,children:t}}function wn(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===ca}function Cn(e){if(e.root.kind==="document"){let t=e.root.children.find(n=>n.kind==="body");return t&&P(t)?t:null}return P(e.root)?e.root:null}function kn(e,t){return Yt(e).some(n=>t.has(n))}function We(e,t,n){for(let r of e)if(P(r)){if(r.kind==="paragraph"){t.inRange.has(r.id)&&n.push(r);continue}if(t.fullBlocks.has(r.id)){n.push(r);continue}if(r.kind==="table"){qt(r,t,n);continue}if(r.kind==="contentControl"){let o=r.children.find(p=>p.kind==="contentControlContent");o&&P(o)&&We(o.children,t,n);continue}kn(r,t.inRange)&&We(r.children,t,n);}}var En=new Set(["commentRangeStart","commentRangeEnd"]);function In(e){return e.kind==="run"&&e.children.some(t=>t.kind==="commentReference")}function Ke(e){if(e.kind==="textValue")return e;if(En.has(e.localName)&&e.namespaceUri===ca||In(e)||wn(e,"sectPr"))return null;let t=false,n=[];for(let r of e.children){let o=Ke(r);if(o===null){t=true;continue}o!==r&&(t=true),n.push(o);}return t?S(e,n):e}function Sn(e){let t=[],n=d=>{if(d.kind!=="textValue"){if(d.kind==="run"){for(let l of d.children)if(l.kind==="fldChar"){let c=ze$1(l,"fldCharType");t.push({nodeId:l.id,type:c==="separate"||c==="end"?c:"begin"});}else l.kind==="instrText"&&t.push({nodeId:l.id,type:"instr"});return}for(let l of d.children)n(l);}};for(let d of e)n(d);if(t.length===0)return e;let r=new Set,o=[],p=null,i=[];for(let d of t){if(d.type==="begin"){o.push({beginId:d.nodeId,separateId:null,instrIds:[]});continue}if(d.type==="separate"){let c=o[o.length-1];c?c.separateId=d.nodeId:p=d.nodeId;continue}if(d.type==="instr"){let c=o[o.length-1];c?c.instrIds.push(d.nodeId):p===null&&i.push(d.nodeId);continue}if(!o.pop()){r.add(d.nodeId),p!==null&&r.add(p);for(let c of i)r.add(c);p=null,i=[];}}for(let d of o){r.add(d.beginId),d.separateId!==null&&r.add(d.separateId);for(let l of d.instrIds)r.add(l);}p!==null&&r.add(p);for(let d of i)r.add(d);if(r.size===0)return e;let s=d=>{if(d.kind==="textValue")return d;if(r.has(d.id))return null;let l=[],c=false;for(let g of d.children){let x=s(g);if(x===null){c=true;continue}x!==g&&(c=true),l.push(x);}return c?S(d,l):d};return e.map(d=>s(d)).filter(d=>d!==null)}function Ge(e){if(e.kind==="textValue")return e.value.length;let t=0;for(let n of e.children)t+=Ge(n);return t}function Pn(e,t){let n=[];for(let r of e.children){if(r.kind!=="contentControl"){n.push(r);continue}let o=t.get(r.id),p=Ge(r);if(o===void 0||p>=o){n.push(r);continue}if(p===0)continue;let i=r.children.find(s=>s.kind==="contentControlContent");i&&P(i)?n.push(...i.children):n.push(r);}return S(e,n)}function Nn(e){let t=new Set,n=new Set,r=i=>{if(i.kind!=="textValue"){if(i.kind==="bookmarkStart"){let s=ze$1(i,"id");s!==void 0&&t.add(s);}if(i.kind==="bookmarkEnd"){let s=ze$1(i,"id");s!==void 0&&n.add(s);}for(let s of i.children)r(s);}};for(let i of e)r(i);let o=new Set([...t].filter(i=>n.has(i)));if(o.size===t.size&&o.size===n.size)return e;let p=i=>{if(i.kind==="textValue")return i;if(i.kind==="bookmarkStart"||i.kind==="bookmarkEnd"){let l=ze$1(i,"id");return l!==void 0&&o.has(l)?i:null}let s=[],d=false;for(let l of i.children){let c=p(l);if(c===null){d=true;continue}c!==l&&(d=true),s.push(c);}return d?S(i,s):i};return e.map(i=>p(i)??i)}function Tn(e$1,t$1,n$1){let r$1=e$1.parts.get(t$1.partName);if(!r$1)return {ok:false,reason:"unknown-part"};if(t$1.paragraphIds.length===0)return {ok:false,reason:"empty-range"};let o$1=t$1.paragraphIds[0],p=t$1.paragraphIds[t$1.paragraphIds.length-1],i=new Map;for(let a of [o$1,p]){let m=je(r$1.root,a);if(!m)return {ok:false,reason:"empty-range"};for(let u of m.children)u.kind==="contentControl"&&i.set(u.id,Ge(u));}let s$1=r$1,d=je(s$1.root,p);if(!d)return {ok:false,reason:"empty-range"};let l$1=Je(d);if(t$1.endOffset<l$1){let a=bh(s$1,{op:"deleteText",paragraphId:p,start:t$1.endOffset,end:l$1},{deferValidation:true});if(!a.ok)return {ok:false,reason:"trim-refused"};s$1=a.part;}if(t$1.startOffset>0){let a=bh(s$1,{op:"deleteText",paragraphId:o$1,start:0,end:t$1.startOffset},{deferValidation:true});if(!a.ok)return {ok:false,reason:"trim-refused"};s$1=a.part;}let c=Cn(s$1);if(!c)return {ok:false,reason:"unknown-part"};let g$1={inRange:new Set(t$1.paragraphIds),covered:new Set(t$1.coveredParagraphIds),fullBlocks:new Set(t$1.fullyCoveredBlockIds)},x$2=[];if(We(c.children,g$1,x$2),x$2.length===0)return {ok:false,reason:"empty-range"};if(x$2.length>bn)return {ok:false,reason:"resource-limit"};let R=x$2.map(a=>Ke(a)).filter(a=>a!==null).map(a=>a.kind!=="paragraph"||a.id!==o$1&&a.id!==p?a:Pn(a,i));R=[...Sn(R)],R=[...Nn(R)];let O=Pe(e$1,"footnote"),b$1=Pe(e$1,"endnote"),qe=(a,m)=>P(a)&&a.namespaceUri===ca&&a.localName===m,Ye=q$1(R,(a,m)=>{let u=a==="footnote"?O:b$1;if(!u||!P(u.root))return null;for(let f of u.root.children){if(!qe(f,a))continue;let y=ze$1(f,"id");if(y!==void 0&&p$1(y)===m)return f}return null}),Je$1=Ye.footnote,Xe=Ye.endnote;Je$1.size===0&&(O=null),Xe.size===0&&(b$1=null);let Qe=(a,m,u)=>{if(!a||!P(a.root))return [];let f=[];for(let y of a.root.children){if(!qe(y,m))continue;let h=ze$1(y,"id"),U=ze$1(y,"type");if(U==="separator"||U==="continuationSeparator"){f.push(y);continue}if(h!==void 0&&u.has(p$1(h))){let xe=Ke(y);xe&&P(xe)&&f.push(xe);}}return f},Ze=Qe(O,"footnote",Je$1),et=Qe(b$1,"endnote",Xe),Jt=[...Ze,...et],tt=[...R,...Jt],_=new Set;m(tt,_);let B=r(e$1,e$1.mainDocumentPart),M=new Set;n(tt,M);let ce=[],k=t(e$1,e$1.mainDocumentPart,M);for(;;){let a=_.size,m$1=M.size;ce=s(B,_),n(ce,M),k=t(e$1,e$1.mainDocumentPart,M);let u=[...k.nums,...k.abstracts];m(u,_);for(let f of u)l(f,y=>{if(y.kind!=="textValue"&&(y.localName==="styleLink"||y.localName==="numStyleLink")&&y.namespaceUri===ca){let h=ze$1(y,"val");h&&_.add(h);}});if(_.size===a&&M.size===m$1)break}let L=u(e$1,e$1.mainDocumentPart),nt=ce.map(a=>v$1(a,L)),pe=B.docDefaults?v$1(B.docDefaults,L):null;R=R.map(a=>v$1(a,L));let me=Ze.map(a=>v$1(a,L)),ue=et.map(a=>v$1(a,L)),rt=new Set;o(R,rt);let ot=Zb(e$1,r$1.name).filter(a=>rt.has(a.id)),it=new Map,at=0,st=a=>{let m=new Set;for(let u of a){if(u.targetMode==="External")continue;let f=w(u.ownerPart,u.rawTarget);if(!f.ok){m.add(u.id);continue}if((_b(e$1,f.partName)??"").toLowerCase().startsWith("image/")&&n$1?.omitMedia!==true){let h=e$1.partBytes.get(f.partName)??e$1.partBytes.get(f.partName.replace(/^\//,""));h?(it.set(f.partName,h),at+=h.byteLength):m.add(u.id);continue}m.add(u.id);}return m},fe=st(ot),ye=(a,m)=>{if(a.kind==="textValue")return a;if(a.kind==="drawing"){let y=new Set;o([a],y);for(let h of y)if(m.has(h))return null;return a}let u=[],f=false;for(let y of a.children){let h=ye(y,m);if(h===null){f=true;continue}h!==y&&(f=true),u.push(h);}return f?S(a,u):a};fe.size>0&&(R=R.map(a=>ye(a,fe)).filter(a=>a!==null));let Xt=ot.filter(a=>!fe.has(a.id)),lt=(a,m)=>{if(!a)return [];let u=new Set;o(m,u);let f=Zb(e$1,a.name).filter(h=>u.has(h.id)),y=st(f);if(y.size>0)for(let h=0;h<m.length;h+=1){let U=ye(m[h],y);U!==null&&(m[h]=U);}return f.filter(h=>!y.has(h.id))},Qt=lt(O,me),Zt=lt(b$1,ue),E=new Map,he=[],dt=new Map,V=(a,m,u)=>{let f=w$1(a,m,u);E.set(a.slice(1),Ka(ma(f))),he.push([a,m]),dt.set(a,f);},ge=(a,m)=>a.map(u=>{if(u.targetMode==="External")return {...u,ownerPart:m};let f=w(u.ownerPart,u.rawTarget);return {...u,ownerPart:m,rawTarget:f.ok?f.partName:u.rawTarget}}),z$1=ge(Xt,"/word/document.xml"),Y=ge(Qt,"/word/footnotes.xml"),J=ge(Zt,"/word/endnotes.xml"),ct=new Set(z$1.map(a=>a.id)),pt=9001,X=(a,m)=>{let u=z(ct,pt);pt+=1,ct.add(u),z$1.push({ownerPart:"/word/document.xml",id:u,type:a,rawTarget:m,targetMode:"Internal",order:z$1.length});},en=x(s$1,R);if(V("/word/document.xml",a,en),B.part&&(nt.length>0||pe)){let a=S(B.part.root,[...pe?[pe]:[],...nt]);V("/word/styles.xml",b,a),X(g,"styles.xml");}if(k.part&&(k.nums.length>0||k.abstracts.length>0)){let a=S(k.part.root,[...k.abstracts.map(m=>v$1(m,L)),...k.nums]);V("/word/numbering.xml",c$1,a),X(h,"numbering.xml");}O&&me.length>0&&(V("/word/footnotes.xml",d$1,S(O.root,me)),X(i$1,"footnotes.xml"),Y.length>0&&E.set("word/_rels/footnotes.xml.rels",Ka(y(Y)))),b$1&&ue.length>0&&(V("/word/endnotes.xml",e,S(b$1.root,ue)),X(j$1,"endnotes.xml"),J.length>0&&E.set("word/_rels/endnotes.xml.rels",Ka(y(J))));let Q=new Map;for(let[a,m]of it){E.set(a.slice(1),m);let u=A$1(a);u&&!Q.has(u)&&Q.set(u,_b(e$1,a)??"application/octet-stream");}let mt={ownerPart:"/",id:"rId1",type:k$1,rawTarget:"word/document.xml",targetMode:"Internal",order:0};E.set("word/_rels/document.xml.rels",Ka(y(z$1))),E.set("_rels/.rels",Ka(y([mt])));let tn=[`<Default Extension="rels" ContentType="${f$1}"/>`,'<Default Extension="xml" ContentType="application/xml"/>',...[...Q].map(([a,m])=>`<Default Extension="${N(a)}" ContentType="${N(m)}"/>`)].join(""),nn=he.map(([a,m])=>`<Override PartName="${N(a)}" ContentType="${N(m)}"/>`).join("");E.set("[Content_Types].xml",Ka(`<Types xmlns="${vn}">${tn}${nn}</Types>`));let D=new Map;D.set("/",[mt]),D.set("/word/document.xml",z$1),Y.length>0&&D.set("/word/footnotes.xml",Y),J.length>0&&D.set("/word/endnotes.xml",J);let ut=[];for(let a of D.values())for(let m of a)m.targetMode==="External"&&ut.push({ownerPart:m.ownerPart,id:m.id,type:m.type,rawTarget:m.rawTarget,sinkSafe:x$1(m.rawTarget).ok});let Z=new Map;Z.set("rels",f$1),Z.set("xml","application/xml");for(let[a,m]of Q)Z.set(a,m);let rn={defaults:Z,overrides:new Map(he)},ft=new Map;for(let[a,m]of E)ft.set(a.startsWith("/")?a:`/${a}`,m);return {ok:true,bytes:Na(E),package:Object.freeze({parts:dt,partBytes:ft,relationships:D,externalTargets:ut,contentTypes:rn,mainDocumentPart:"/word/document.xml"}),lastMarkCovered:t$1.lastMarkCovered,blockCount:R.length,mediaBytes:at}}
1
+ import {q as q$1,p as p$1,m,r,n,t,s,l,u,v as v$1,o,x,d as d$1,y,e,A as A$1,k as k$1,f as f$1,w as w$1,z,a,b,g,c as c$1,h,i as i$1,j as j$1}from'./chunk-FBA57EUJ.js';import {c,d,p,f,k,j,i,Je,ch,Pe,ze as ze$1,ca,Zb,Ka,_b,N,x as x$1,Na,w,ma}from'./chunk-ZBEJHJN2.js';var on=["extension","capability","command","query","schema","dependencyKey","runtimePort","result","origin"],an=/^[a-z0-9]+(?:-[a-z0-9]+)*(?:\.[a-z0-9]+(?:-[a-z0-9]+)*)+$/,sn=/^@[a-z0-9.-]+\/[a-z0-9.-]+(?:#[a-z0-9]+(?:[/._-][a-z0-9]+)*)?$/;function Ft(e){return an.test(e)||sn.test(e)}function re(e,t){if(!Ft(e))throw new Error(`invalid ${t??"registry"} id ${JSON.stringify(e)}: must be reverse-domain (dev.docx-editor.core.x) or package-owned (@scope/pkg#kind/name)`)}var ln=/^(\d+)\.(\d+)\.(\d+)$/;function $(e){let t=ln.exec(e);if(!t)throw new Error(`invalid semantic version: ${JSON.stringify(e)}`);return {major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3])}}function oe(e,t){return e.major!==t.major?e.major<t.major?-1:1:e.minor!==t.minor?e.minor<t.minor?-1:1:e.patch!==t.patch?e.patch<t.patch?-1:1:0}function ie(e,t){let n=$(e),r=t.trim();if(r==="*")return true;if(r.startsWith("^")){let o=$(r.slice(1));return oe(n,o)<0?false:o.major>0?n.major===o.major:o.minor>0?n.major===0&&n.minor===o.minor:n.major===0&&n.minor===0}if(r.includes(" ")){let o=r.split(/\s+/);if(o.length!==2)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let p=true;for(let i of o){let s=i.startsWith(">=")?">=":i.startsWith("<")?"<":null;if(!s)throw new Error(`unsupported version range: ${JSON.stringify(t)}`);let d=$(i.slice(s.length)),l=oe(n,d);s===">="?p=p&&l>=0:p=p&&l<0;}return p}return oe(n,$(r))===0}var v=class extends Error{constructor(n,r,o=[]){super(r);this.code=n;this.responsible=o;this.name="RegistryError";}code;responsible},Ae=(e,t)=>`${e}:${t}`;function dn(e,t={}){let n=new Map;for(let l of e){if(re(l.id,"extension"),Bt(l.version,l.id),n.has(l.id))throw new v("duplicate-extension",`duplicate extension id ${l.id}`,[l.id]);n.set(l.id,l);for(let c of l.contributions)re(c.id,c.kind),Bt(c.version,`${l.id} \u2192 ${c.id}`),c.replaces&&mn(c.replaces.targetRange,`${l.id} \u2192 replaces ${c.replaces.targetId}`);}for(let l of e){for(let c of l.dependencies??[])if(!n.has(c))throw new v("missing-dependency",`${l.id} requires missing extension ${c}`,[l.id,c]);for(let c of l.conflicts??[])if(n.has(c)){let g=[l.id,c].sort();throw new v("conflict",`extensions ${g[0]} and ${g[1]} conflict`,g)}}pn(n);let r=new Set(t.availablePorts??[]);for(let l of e)for(let c of l.contributions)c.kind==="runtimePort"&&r.add(c.id);for(let l of e)for(let c of l.requiredPorts??[])if(!r.has(c))throw new v("missing-port",`${l.id} requires unavailable port ${c}`,[l.id,c]);let o=new Map,p=new Map,i=new Map;for(let l of e)for(let c of l.contributions){let g=Ae(c.kind,c.id);if(c.replaces){let x=Ae(c.kind,c.replaces.targetId),R=i.get(x)??[];R.push({ext:l.id,c}),i.set(x,R);continue}if(p.has(g)){let x=[o.get(g),l.id].sort();throw new v("id-collision",`${c.kind} id ${c.id} registered by both ${x[0]} and ${x[1]}`,x)}p.set(g,c),o.set(g,l.id);}let s=new Map(p);for(let[l,c]of i){let g=p.get(l);if(!g){let O=c[0];throw new v("replacement-target-missing",`${O.ext} replaces missing target ${O.c.replaces.targetId}`,[O.ext,O.c.replaces.targetId])}let x=g.replaceable??{kind:"none"};for(let{ext:O,c:b}of c){if(!ie(g.version,b.replaces.targetRange))throw new v("replacement-version-mismatch",`${O} replaces ${b.replaces.targetId}@${g.version} outside range ${b.replaces.targetRange}`,[O,b.replaces.targetId]);if(x.kind==="none")throw new v("unauthorized-replacement",`${b.replaces.targetId} does not authorize replacement (attempted by ${O})`,[O,b.replaces.targetId])}let R=cn(g,c);s.set(l,R);}return {extensions:n,contributions:s,get:(l,c)=>s.get(Ae(l,c))}}function cn(e,t){let n=e.replaceable??{kind:"none"};if(t.length===1)return t[0].c;if(n.kind==="priority"){let o=[...t].sort((s,d)=>(d.c.replaces.priority??0)-(s.c.replaces.priority??0)),p=o[0].c.replaces.priority??0,i=o.filter(s=>(s.c.replaces.priority??0)===p);if(i.length>1){let s=i.map(d=>d.ext).sort();throw new v("ambiguous-replacement",`multiple replacers of ${e.id} share top priority ${p}: ${s.join(", ")}`,s)}return o[0].c}let r=t.map(o=>o.ext).sort();throw new v("ambiguous-replacement",`multiple replacers of ${e.id}: ${r.join(", ")}`,r)}function pn(e){let o=new Map,p=[],i=s=>{o.set(s,1),p.push(s);let d=[...e.get(s)?.dependencies??[]].sort();for(let l of d){let c=o.get(l)??0;if(c===1){let g=p.indexOf(l),x=[...p.slice(g),l];throw new v("dependency-cycle",`dependency cycle: ${x.join(" -> ")}`,x)}c===0&&i(l);}p.pop(),o.set(s,2);};for(let s of [...e.keys()].sort())(o.get(s)??0)===0&&i(s);}function Bt(e,t){try{$(e);}catch{throw new v("invalid-version",`invalid version ${JSON.stringify(e)} in ${t}`,[t])}}function mn(e,t){try{ie("0.0.0",e);}catch{throw new v("invalid-version",`invalid version range ${JSON.stringify(e)} in ${t}`,[t])}}var A=class extends Error{constructor(t){super(t),this.name="BudgetError";}},W=class e{constructor(t,n){this.label=t;this.capacity=n;this.used=new p(`${t}.budget`,n);}label;capacity;used;children=new Set;activeReservations=0;cleanups=[];disposed=false;carveAmount=0;parent;get inUse(){return this.used.current}get available(){return this.used.remaining}get isDisposed(){return this.disposed}reserve(t){this.assertLive(),this.used.add(t),this.activeReservations+=1;let n=false,r=this;return {amount:t,get released(){return n},release(){n||(n=true,r.used.release(t),r.activeReservations-=1);}}}child(t,n){this.assertLive(),this.used.add(n);let r=new e(t,n);return r.parent=this,r.carveAmount=n,this.children.add(r),r}onRelease(t){this.assertLive(),this.cleanups.push(t);}dispose(){if(this.disposed)return;if(this.children.size>0)throw new A(`${this.label}: cannot release with ${this.children.size} child budget(s) outstanding`);if(this.activeReservations>0)throw new A(`${this.label}: cannot release with ${this.activeReservations} reservation(s) outstanding`);let t=[];for(let n=this.cleanups.length-1;n>=0;n--)try{this.cleanups[n]();}catch(r){t.push(r);}if(this.disposed=true,this.parent&&(this.parent.children.delete(this),this.parent.used.release(this.carveAmount),this.parent=void 0),t.length>0)throw new A(`${this.label}: ${t.length} cleanup error(s); first: ${String(t[0])}`)}assertLive(){if(this.disposed)throw new A(`${this.label}: budget already released`)}};var ae=class extends Error{constructor(n,r){super(r?`cancelled: ${r}`:"cancelled");this.derivedOnly=n;this.name="CancellationError";}derivedOnly},K=class{_cancelled=false;_phase="pre-publication";_reason;cancel(t){this._cancelled=true,t!==void 0&&(this._reason=t);}markPublished(){this._phase="post-publication";}get isCancelled(){return this._cancelled}get phase(){return this._phase}get isPublished(){return this._phase==="post-publication"}get derivedOnly(){return this._cancelled&&this._phase==="post-publication"}get token(){let t=this;return {get isCancelled(){return t._cancelled},get phase(){return t._phase},get derivedOnly(){return t.derivedOnly},checkpoint(){if(t._cancelled)throw new ae(t.derivedOnly,t._reason)}}}};var se=class extends Error{constructor(n){super(`runtime port not available: ${n}`);this.portId=n;this.name="PortResolutionError";}portId},_e=class{ports=new Map;provide(t,n){return this.ports.set(t,n),this}has(t){return this.ports.has(t)}resolve(t){if(!this.ports.has(t))throw new se(t);return this.ports.get(t)}missing(t){return t.filter(n=>!this.ports.has(n))}availablePorts(){return [...this.ports.keys()]}clock(){return this.resolve(f.clock)}identity(){return this.resolve(f.identity)}},Me=class{constructor(t=0,n=1){this.step=n;this.t=t;}step;t;now(){let t=this.t;return this.t+=this.step,t}},Le=class{constructor(t="id"){this.prefix=t;}prefix;n=0;newId(){return this.n+=1,`${this.prefix}-${this.n}`}};function un(e){let t=k(e.limits),n=Object.freeze({...e.config??{}}),r=e.capacity??t.maxDecompressedBytes,o=e.id??"op",p={id:o,limits:t,config:n,ports:e.ports,budget:new W(`op:${o}`,r),cancellation:new K};return Object.freeze(p)}function fn(e){e.budget.dispose();}var Fe=Object.freeze({maxRecursionDepth:{unit:"depth",phase:"xml-parse"},maxElementCount:{unit:"count",phase:"xml-parse"},maxPartCount:{unit:"count",phase:"package-read"},maxDecompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressedBytes:{unit:"bytes",phase:"package-read"},maxCompressionRatio:{unit:"ratio",phase:"package-read"},maxChunkBytes:{unit:"bytes",phase:"package-read"},maxPaginationPasses:{unit:"passes",phase:"layout"},maxQueueDepth:{unit:"count",phase:"output"}}),Vt=Object.keys(Fe);function yn(e,t){return new p(`${Fe[t].phase}:${t}`,e[t])}var De=class{counter;current=0;peak=0;constructor(t){this.counter=new p("memory",t);}allocate(t){this.counter.add(t),this.current+=t,this.current>this.peak&&(this.peak=this.current);}free(t){this.counter.release(t),this.current=Math.max(0,this.current-t);}get currentBytes(){return this.current}get peakBytes(){return this.peak}reset(){this.counter.release(this.current),this.current=0;}};function hn(){for(let e of Vt){let t=j[e],n=i[e];if(!Number.isFinite(t)||t<=0)throw new Error(`default ${e} must be finite > 0`);if(!Number.isFinite(n)||n<=0)throw new Error(`ceiling ${e} must be finite > 0`);if(t>n)throw new Error(`default ${e} exceeds ceiling`)}}function G(e,t=new Set){let n=new WeakSet,r=o=>{if(o===null)return "null";let p=typeof o;if(p==="boolean")return o?"true":"false";if(p==="number"){let i=o;if(!Number.isFinite(i))throw new Error(`non-finite number is not comparable: ${i}`);return Object.is(i,-0)?"0":String(i)}if(p==="string")return JSON.stringify(o);if(p==="bigint")return `${o.toString()}n`;if(Array.isArray(o))return `[${o.map(r).join(",")}]`;if(p==="object"){let i=o;if(n.has(i))throw new Error("cannot canonicalize a cyclic structure");n.add(i);let d=Object.keys(i).filter(l=>!t.has(l)).sort().map(l=>`${JSON.stringify(l)}:${r(i[l])}`).join(",");return n.delete(i),`{${d}}`}throw new Error(`unsupported value type in comparator input: ${p}`)};return r(e)}function Be(e,t){let n=G(e,t),r=0xcbf29ce484222325n,o=0x100000001b3n,p=0xffffffffffffffffn;for(let i=0;i<n.length;i++)r^=BigInt(n.charCodeAt(i)),r=r*o&p;return r.toString(16).padStart(16,"0")}var C="dev.docx-editor.core.comparator",Ve={authoredState:{id:`${C}.authored-state`,mode:"canonical-exact",ephemera:["revision","provenance","producedAt","commitId"],note:"canonical normalized authored records; ephemera excluded"},anchor:{id:`${C}.anchor`,mode:"exact",ephemera:[],note:"internal anchor identity/affinity compares exactly"},yjsStateVector:{id:`${C}.yjs-state-vector`,mode:"sync-optimization-only",ephemera:[],note:"exchange optimization only; never proves update or delete-set coverage"},shapedRun:{id:`${C}.shaped-run`,mode:"exact",ephemera:[],note:"glyph ids, clusters, and fixed-point advances compare exactly"},paginationFingerprint:{id:`${C}.pagination-fingerprint`,mode:"exact",ephemera:[],note:"page/column boundaries, break causes, fixed-point geometry compare exactly"},semanticTree:{id:`${C}.semantic-tree`,mode:"exact",ephemera:[],note:"reading order, roles, headings, alt text compare exactly"},hitTest:{id:`${C}.hit-test`,mode:"exact",ephemera:[],note:"resolved hit target and cluster affinity compare exactly"},pdfSemantics:{id:`${C}.pdf-semantics`,mode:"canonical-exact",ephemera:["objectNumber","producer","creationDate","modDate","subsetTag"],note:"canonical semantic PDF objects; container ephemera excluded"},rasterCheckpoint:{id:`${C}.raster-checkpoint`,mode:"tolerance",ephemera:[],note:"documented unavoidable raster comparison; explicit tolerance only"},benchmarkEvidence:{id:`${C}.benchmark-evidence`,mode:"sync-optimization-only",ephemera:[],note:"diagnostic evidence, not an equivalence basis"}};function ze(e,t,n,r={}){let o=Ve[e];switch(o.mode){case "sync-optimization-only":throw new Error(`${o.id} is not an equivalence basis (${o.note})`);case "tolerance":{if(r.epsilon===void 0)throw new Error(`${o.id} requires an explicit epsilon`);return {equal:zt(t,n,r.epsilon)}}case "exact":case "canonical-exact":{let p=o.mode==="canonical-exact"?new Set(o.ephemera):new Set,i=G(t,p),s=G(n,p);return i===s?{equal:true}:{equal:false,left:i,right:s}}}}function Ue(e,t){let n=Ve[e];if(n.mode==="tolerance"||n.mode==="sync-optimization-only")throw new Error(`${n.id} has no canonical fingerprint (${n.mode})`);let r=n.mode==="canonical-exact"?new Set(n.ephemera):void 0;return Be(t,r)}function zt(e,t,n){return typeof e=="number"&&typeof t=="number"?Number.isFinite(e)&&Number.isFinite(t)&&Math.abs(e-t)<=n:Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((r,o)=>zt(r,t[o],n)):false}var Ht=new Set([...c,...d]),Ut=/^[0-9a-f]{16}$/,gn=/^[0-9a-f]*$/;function He(e){let t=[],n=o=>t.push(o);e.formatVersion!==1&&n(`unsupported formatVersion ${e.formatVersion}`),e.documentId||n("documentId is required"),e.source.kind==="docx"&&!/^[0-9a-f]{64}$/.test(e.source.sha256)&&n("docx source requires a 64-hex sha256");let r=-1;e.steps.forEach((o,p)=>{let i=`step[${p}]`;Ht.has(o.origin)||n(`${i}: unknown origin ${o.origin}`),(!Number.isInteger(o.baseRevision)||o.baseRevision<0)&&n(`${i}: baseRevision must be a non-negative integer`),o.baseRevision<r&&n(`${i}: baseRevision regressed below ${r}`);let s=o.expect;s.outcome==="applied"?(s.committedRevision===void 0?n(`${i}: applied step needs committedRevision`):s.committedRevision<=o.baseRevision?n(`${i}: committedRevision ${s.committedRevision} must exceed baseRevision ${o.baseRevision}`):r=s.committedRevision,s.modelChange&&xn(s.modelChange,i,n)):(s.committedRevision!==void 0&&n(`${i}: ${s.outcome} step must not commit a revision`),s.authoredStateHash!==void 0&&n(`${i}: ${s.outcome} step must not change authored state`)),s.authoredStateHash!==void 0&&!Ut.test(s.authoredStateHash)&&n(`${i}: authoredStateHash must be 16-hex`),s.outputHash!==void 0&&!Ut.test(s.outputHash)&&n(`${i}: outputHash must be 16-hex`);});for(let o of [...e.snapshots??[],...e.updates??[]])o.documentId!==e.documentId&&n(`envelope documentId ${o.documentId} != ${e.documentId}`),gn.test(o.bytesHex)||n("envelope bytesHex must be hex"),o.bytesHex.length!==o.byteLength*2&&n(`envelope byteLength ${o.byteLength} disagrees with ${o.bytesHex.length/2} decoded bytes`);return {valid:t.length===0,errors:t}}function xn(e,t,n){Ht.has(e.origin)||n(`${t}: modelChange origin ${e.origin} unknown`),e.toRevision<=e.fromRevision&&n(`${t}: modelChange revision must advance`);}function Rn(e,t){let n=He(e);if(!n.valid)return {ok:false,mismatches:n.errors};let r=[];return t.init(e),e.steps.forEach((o,p)=>{let i=`step[${p}]`,s=t.applyStep(o),d=o.expect;if(s.outcome!==d.outcome){r.push(`${i}: outcome ${s.outcome} != expected ${d.outcome}`);return}if(d.outcome==="applied"&&(s.committedRevision!==d.committedRevision&&r.push(`${i}: revision ${s.committedRevision} != expected ${d.committedRevision}`),d.authoredStateHash!==void 0))if(s.authoredState===void 0)r.push(`${i}: store returned no authored state to hash`);else {ze("authoredState",s.authoredState,s.authoredState).equal||r.push(`${i}: authored state is not self-consistent`);let c=jt(s.authoredState);c!==d.authoredStateHash&&r.push(`${i}: authoredStateHash ${c} != expected ${d.authoredStateHash}`);}}),{ok:r.length===0,mismatches:r}}function jt(e){return Ue("authoredState",e)}function le(e,t){return {...e,children:t}}function de(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===ca}function q(e,t=[]){if(e.kind==="textValue")return t;e.kind==="paragraph"&&t.push(e.id);for(let n of e.children)q(n,t);return t}function Wt(e,t){if(e.kind==="textValue")return null;if(e.kind==="paragraph"&&e.id===t)return e;for(let n of e.children){let r=Wt(n,t);if(r)return r}return null}function On(e){let t=(n,r)=>{if(n.kind==="textValue")return n;if(r&&de(n,"vMerge")){if(ze$1(n,"val")==="restart")return n;let p=[...n.attributes.filter(i=>!(i.localName==="val"&&i.namespaceUri===ca)),{kind:"wmlVal",namespaceUri:ca,localName:"val",prefix:"w",value:"restart"}];return {...n,attributes:p}}if(n.kind==="paragraph"||n.kind==="table")return n;let o=r||de(n,"tc");return le(n,n.children.map(p=>t(p,o)))};return le(e,e.children.map(n=>t(n,false)))}function Kt(e,t){if(!(e.kind==="textValue"||e.kind==="table")){if(de(e,"tr")){t.push(e);return}for(let n of e.children)Kt(n,t);}}function Gt(e,t,n){if(e.kind==="textValue"||e.kind==="table")return {node:e,hadRows:false,keptRows:false};if(de(e,"tr")){if(!t.has(e))return {node:null,hadRows:true,keptRows:false};let i=n.value?On(e):e;return n.value=false,{node:i,hadRows:true,keptRows:true}}let r=false,o=false,p=[];for(let i of e.children){let s=Gt(i,t,n);r||=s.hadRows,o||=s.keptRows,s.node!==null&&p.push(s.node);}return r?{node:o?le(e,p):null,hadRows:true,keptRows:o}:{node:e,hadRows:false,keptRows:false}}function qt(e,t,n){let r=[];for(let d of e.children)Kt(d,r);let o=new Set(q(e).filter(d=>t.inRange.has(d)));if(o.size===0)return;let p=r.filter(d=>{let l=q(d);return l.length>0&&l.every(c=>t.covered.has(c))}),i=new Set(p.flatMap(d=>q(d)));if(p.length>0&&o.size===i.size&&[...o].every(d=>i.has(d))){let d={value:true},l=new Set(p),c=[];for(let g of e.children){let x=Gt(g,l,d);x.node!==null&&c.push(x.node);}n.push(le(e,c));return}for(let d of q(e)){if(!t.inRange.has(d))continue;let l=Wt(e,d);l&&n.push(l);}}var vn="http://schemas.openxmlformats.org/package/2006/content-types",bn=5e4;function P(e){return e.kind!=="textValue"}function Yt(e,t=[]){if(e.kind==="textValue")return t;e.kind==="paragraph"&&t.push(e.id);for(let n of e.children)Yt(n,t);return t}function je(e,t){if(e.kind==="textValue")return null;if(e.kind==="paragraph"&&e.id===t)return e;for(let n of e.children){let r=je(n,t);if(r)return r}return null}function S(e,t){return {...e,children:t}}function wn(e,t){return e.kind!=="textValue"&&e.localName===t&&e.namespaceUri===ca}function Cn(e){if(e.root.kind==="document"){let t=e.root.children.find(n=>n.kind==="body");return t&&P(t)?t:null}return P(e.root)?e.root:null}function kn(e,t){return Yt(e).some(n=>t.has(n))}function We(e,t,n){for(let r of e)if(P(r)){if(r.kind==="paragraph"){t.inRange.has(r.id)&&n.push(r);continue}if(t.fullBlocks.has(r.id)){n.push(r);continue}if(r.kind==="table"){qt(r,t,n);continue}if(r.kind==="contentControl"){let o=r.children.find(p=>p.kind==="contentControlContent");o&&P(o)&&We(o.children,t,n);continue}kn(r,t.inRange)&&We(r.children,t,n);}}var En=new Set(["commentRangeStart","commentRangeEnd"]);function In(e){return e.kind==="run"&&e.children.some(t=>t.kind==="commentReference")}function Ke(e){if(e.kind==="textValue")return e;if(En.has(e.localName)&&e.namespaceUri===ca||In(e)||wn(e,"sectPr"))return null;let t=false,n=[];for(let r of e.children){let o=Ke(r);if(o===null){t=true;continue}o!==r&&(t=true),n.push(o);}return t?S(e,n):e}function Sn(e){let t=[],n=d=>{if(d.kind!=="textValue"){if(d.kind==="run"){for(let l of d.children)if(l.kind==="fldChar"){let c=ze$1(l,"fldCharType");t.push({nodeId:l.id,type:c==="separate"||c==="end"?c:"begin"});}else l.kind==="instrText"&&t.push({nodeId:l.id,type:"instr"});return}for(let l of d.children)n(l);}};for(let d of e)n(d);if(t.length===0)return e;let r=new Set,o=[],p=null,i=[];for(let d of t){if(d.type==="begin"){o.push({beginId:d.nodeId,separateId:null,instrIds:[]});continue}if(d.type==="separate"){let c=o[o.length-1];c?c.separateId=d.nodeId:p=d.nodeId;continue}if(d.type==="instr"){let c=o[o.length-1];c?c.instrIds.push(d.nodeId):p===null&&i.push(d.nodeId);continue}if(!o.pop()){r.add(d.nodeId),p!==null&&r.add(p);for(let c of i)r.add(c);p=null,i=[];}}for(let d of o){r.add(d.beginId),d.separateId!==null&&r.add(d.separateId);for(let l of d.instrIds)r.add(l);}p!==null&&r.add(p);for(let d of i)r.add(d);if(r.size===0)return e;let s=d=>{if(d.kind==="textValue")return d;if(r.has(d.id))return null;let l=[],c=false;for(let g of d.children){let x=s(g);if(x===null){c=true;continue}x!==g&&(c=true),l.push(x);}return c?S(d,l):d};return e.map(d=>s(d)).filter(d=>d!==null)}function Ge(e){if(e.kind==="textValue")return e.value.length;let t=0;for(let n of e.children)t+=Ge(n);return t}function Pn(e,t){let n=[];for(let r of e.children){if(r.kind!=="contentControl"){n.push(r);continue}let o=t.get(r.id),p=Ge(r);if(o===void 0||p>=o){n.push(r);continue}if(p===0)continue;let i=r.children.find(s=>s.kind==="contentControlContent");i&&P(i)?n.push(...i.children):n.push(r);}return S(e,n)}function Nn(e){let t=new Set,n=new Set,r=i=>{if(i.kind!=="textValue"){if(i.kind==="bookmarkStart"){let s=ze$1(i,"id");s!==void 0&&t.add(s);}if(i.kind==="bookmarkEnd"){let s=ze$1(i,"id");s!==void 0&&n.add(s);}for(let s of i.children)r(s);}};for(let i of e)r(i);let o=new Set([...t].filter(i=>n.has(i)));if(o.size===t.size&&o.size===n.size)return e;let p=i=>{if(i.kind==="textValue")return i;if(i.kind==="bookmarkStart"||i.kind==="bookmarkEnd"){let l=ze$1(i,"id");return l!==void 0&&o.has(l)?i:null}let s=[],d=false;for(let l of i.children){let c=p(l);if(c===null){d=true;continue}c!==l&&(d=true),s.push(c);}return d?S(i,s):i};return e.map(i=>p(i)??i)}function Tn(e$1,t$1,n$1){let r$1=e$1.parts.get(t$1.partName);if(!r$1)return {ok:false,reason:"unknown-part"};if(t$1.paragraphIds.length===0)return {ok:false,reason:"empty-range"};let o$1=t$1.paragraphIds[0],p=t$1.paragraphIds[t$1.paragraphIds.length-1],i=new Map;for(let a of [o$1,p]){let m=je(r$1.root,a);if(!m)return {ok:false,reason:"empty-range"};for(let u of m.children)u.kind==="contentControl"&&i.set(u.id,Ge(u));}let s$1=r$1,d=je(s$1.root,p);if(!d)return {ok:false,reason:"empty-range"};let l$1=Je(d);if(t$1.endOffset<l$1){let a=ch(s$1,{op:"deleteText",paragraphId:p,start:t$1.endOffset,end:l$1},{deferValidation:true});if(!a.ok)return {ok:false,reason:"trim-refused"};s$1=a.part;}if(t$1.startOffset>0){let a=ch(s$1,{op:"deleteText",paragraphId:o$1,start:0,end:t$1.startOffset},{deferValidation:true});if(!a.ok)return {ok:false,reason:"trim-refused"};s$1=a.part;}let c=Cn(s$1);if(!c)return {ok:false,reason:"unknown-part"};let g$1={inRange:new Set(t$1.paragraphIds),covered:new Set(t$1.coveredParagraphIds),fullBlocks:new Set(t$1.fullyCoveredBlockIds)},x$2=[];if(We(c.children,g$1,x$2),x$2.length===0)return {ok:false,reason:"empty-range"};if(x$2.length>bn)return {ok:false,reason:"resource-limit"};let R=x$2.map(a=>Ke(a)).filter(a=>a!==null).map(a=>a.kind!=="paragraph"||a.id!==o$1&&a.id!==p?a:Pn(a,i));R=[...Sn(R)],R=[...Nn(R)];let O=Pe(e$1,"footnote"),b$1=Pe(e$1,"endnote"),qe=(a,m)=>P(a)&&a.namespaceUri===ca&&a.localName===m,Ye=q$1(R,(a,m)=>{let u=a==="footnote"?O:b$1;if(!u||!P(u.root))return null;for(let f of u.root.children){if(!qe(f,a))continue;let y=ze$1(f,"id");if(y!==void 0&&p$1(y)===m)return f}return null}),Je$1=Ye.footnote,Xe=Ye.endnote;Je$1.size===0&&(O=null),Xe.size===0&&(b$1=null);let Qe=(a,m,u)=>{if(!a||!P(a.root))return [];let f=[];for(let y of a.root.children){if(!qe(y,m))continue;let h=ze$1(y,"id"),U=ze$1(y,"type");if(U==="separator"||U==="continuationSeparator"){f.push(y);continue}if(h!==void 0&&u.has(p$1(h))){let xe=Ke(y);xe&&P(xe)&&f.push(xe);}}return f},Ze=Qe(O,"footnote",Je$1),et=Qe(b$1,"endnote",Xe),Jt=[...Ze,...et],tt=[...R,...Jt],_=new Set;m(tt,_);let B=r(e$1,e$1.mainDocumentPart),M=new Set;n(tt,M);let ce=[],k=t(e$1,e$1.mainDocumentPart,M);for(;;){let a=_.size,m$1=M.size;ce=s(B,_),n(ce,M),k=t(e$1,e$1.mainDocumentPart,M);let u=[...k.nums,...k.abstracts];m(u,_);for(let f of u)l(f,y=>{if(y.kind!=="textValue"&&(y.localName==="styleLink"||y.localName==="numStyleLink")&&y.namespaceUri===ca){let h=ze$1(y,"val");h&&_.add(h);}});if(_.size===a&&M.size===m$1)break}let L=u(e$1,e$1.mainDocumentPart),nt=ce.map(a=>v$1(a,L)),pe=B.docDefaults?v$1(B.docDefaults,L):null;R=R.map(a=>v$1(a,L));let me=Ze.map(a=>v$1(a,L)),ue=et.map(a=>v$1(a,L)),rt=new Set;o(R,rt);let ot=Zb(e$1,r$1.name).filter(a=>rt.has(a.id)),it=new Map,at=0,st=a=>{let m=new Set;for(let u of a){if(u.targetMode==="External")continue;let f=w(u.ownerPart,u.rawTarget);if(!f.ok){m.add(u.id);continue}if((_b(e$1,f.partName)??"").toLowerCase().startsWith("image/")&&n$1?.omitMedia!==true){let h=e$1.partBytes.get(f.partName)??e$1.partBytes.get(f.partName.replace(/^\//,""));h?(it.set(f.partName,h),at+=h.byteLength):m.add(u.id);continue}m.add(u.id);}return m},fe=st(ot),ye=(a,m)=>{if(a.kind==="textValue")return a;if(a.kind==="drawing"){let y=new Set;o([a],y);for(let h of y)if(m.has(h))return null;return a}let u=[],f=false;for(let y of a.children){let h=ye(y,m);if(h===null){f=true;continue}h!==y&&(f=true),u.push(h);}return f?S(a,u):a};fe.size>0&&(R=R.map(a=>ye(a,fe)).filter(a=>a!==null));let Xt=ot.filter(a=>!fe.has(a.id)),lt=(a,m)=>{if(!a)return [];let u=new Set;o(m,u);let f=Zb(e$1,a.name).filter(h=>u.has(h.id)),y=st(f);if(y.size>0)for(let h=0;h<m.length;h+=1){let U=ye(m[h],y);U!==null&&(m[h]=U);}return f.filter(h=>!y.has(h.id))},Qt=lt(O,me),Zt=lt(b$1,ue),E=new Map,he=[],dt=new Map,V=(a,m,u)=>{let f=w$1(a,m,u);E.set(a.slice(1),Ka(ma(f))),he.push([a,m]),dt.set(a,f);},ge=(a,m)=>a.map(u=>{if(u.targetMode==="External")return {...u,ownerPart:m};let f=w(u.ownerPart,u.rawTarget);return {...u,ownerPart:m,rawTarget:f.ok?f.partName:u.rawTarget}}),z$1=ge(Xt,"/word/document.xml"),Y=ge(Qt,"/word/footnotes.xml"),J=ge(Zt,"/word/endnotes.xml"),ct=new Set(z$1.map(a=>a.id)),pt=9001,X=(a,m)=>{let u=z(ct,pt);pt+=1,ct.add(u),z$1.push({ownerPart:"/word/document.xml",id:u,type:a,rawTarget:m,targetMode:"Internal",order:z$1.length});},en=x(s$1,R);if(V("/word/document.xml",a,en),B.part&&(nt.length>0||pe)){let a=S(B.part.root,[...pe?[pe]:[],...nt]);V("/word/styles.xml",b,a),X(g,"styles.xml");}if(k.part&&(k.nums.length>0||k.abstracts.length>0)){let a=S(k.part.root,[...k.abstracts.map(m=>v$1(m,L)),...k.nums]);V("/word/numbering.xml",c$1,a),X(h,"numbering.xml");}O&&me.length>0&&(V("/word/footnotes.xml",d$1,S(O.root,me)),X(i$1,"footnotes.xml"),Y.length>0&&E.set("word/_rels/footnotes.xml.rels",Ka(y(Y)))),b$1&&ue.length>0&&(V("/word/endnotes.xml",e,S(b$1.root,ue)),X(j$1,"endnotes.xml"),J.length>0&&E.set("word/_rels/endnotes.xml.rels",Ka(y(J))));let Q=new Map;for(let[a,m]of it){E.set(a.slice(1),m);let u=A$1(a);u&&!Q.has(u)&&Q.set(u,_b(e$1,a)??"application/octet-stream");}let mt={ownerPart:"/",id:"rId1",type:k$1,rawTarget:"word/document.xml",targetMode:"Internal",order:0};E.set("word/_rels/document.xml.rels",Ka(y(z$1))),E.set("_rels/.rels",Ka(y([mt])));let tn=[`<Default Extension="rels" ContentType="${f$1}"/>`,'<Default Extension="xml" ContentType="application/xml"/>',...[...Q].map(([a,m])=>`<Default Extension="${N(a)}" ContentType="${N(m)}"/>`)].join(""),nn=he.map(([a,m])=>`<Override PartName="${N(a)}" ContentType="${N(m)}"/>`).join("");E.set("[Content_Types].xml",Ka(`<Types xmlns="${vn}">${tn}${nn}</Types>`));let D=new Map;D.set("/",[mt]),D.set("/word/document.xml",z$1),Y.length>0&&D.set("/word/footnotes.xml",Y),J.length>0&&D.set("/word/endnotes.xml",J);let ut=[];for(let a of D.values())for(let m of a)m.targetMode==="External"&&ut.push({ownerPart:m.ownerPart,id:m.id,type:m.type,rawTarget:m.rawTarget,sinkSafe:x$1(m.rawTarget).ok});let Z=new Map;Z.set("rels",f$1),Z.set("xml","application/xml");for(let[a,m]of Q)Z.set(a,m);let rn={defaults:Z,overrides:new Map(he)},ft=new Map;for(let[a,m]of E)ft.set(a.startsWith("/")?a:`/${a}`,m);return {ok:true,bytes:Na(E),package:Object.freeze({parts:dt,partBytes:ft,relationships:D,externalTargets:ut,contentTypes:rn,mainDocumentPart:"/word/document.xml"}),lastMarkCovered:t$1.lastMarkCovered,blockCount:R.length,mediaBytes:at}}
2
2
  export{ze as A,Ue as B,He as C,Rn as D,jt as E,Tn as F,on as a,Ft as b,re as c,$ as d,oe as e,ie as f,v as g,dn as h,A as i,W as j,ae as k,K as l,se as m,_e as n,Me as o,Le as p,un as q,fn as r,Fe as s,Vt as t,yn as u,De as v,hn as w,G as x,Be as y,Ve as z};
@@ -1 +1 @@
1
- 'use strict';var chunk67S7OHE6_cjs=require('../chunk-67S7OHE6.cjs');require('../chunk-XETEMUIP.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunk67S7OHE6_cjs.b}});
1
+ 'use strict';var chunkKIAP7PFQ_cjs=require('../chunk-KIAP7PFQ.cjs');require('../chunk-NJNFJPGB.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunkKIAP7PFQ_cjs.b}});
@@ -1,6 +1,6 @@
1
1
  import { T as TreeModelChange } from '../tree-store-DEEQ9wz_.cjs';
2
2
  import { g as OoxmlElement, b as OoxmlPackage } from '../tree-op-types-BUulYD5y.cjs';
3
- import { T as TreePackageStore } from '../tree-package-fragment-ByN5yzll.cjs';
3
+ import { T as TreePackageStore } from '../tree-package-fragment-Dhyw7oPm.cjs';
4
4
  import '../contracts/types.cjs';
5
5
 
6
6
  /** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
@@ -1,6 +1,6 @@
1
1
  import { T as TreeModelChange } from '../tree-store-APgWx6qn.js';
2
2
  import { g as OoxmlElement, b as OoxmlPackage } from '../tree-op-types-D6HzlPR4.js';
3
- import { T as TreePackageStore } from '../tree-package-fragment-B1supBtE.js';
3
+ import { T as TreePackageStore } from '../tree-package-fragment-CWFjgH6a.js';
4
4
  import '../contracts/types.js';
5
5
 
6
6
  /** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
@@ -1 +1 @@
1
- export{b as createCollaborationDocumentPort}from'../chunk-HWWHGREA.js';import'../chunk-YMW34EBA.js';
1
+ export{b as createCollaborationDocumentPort}from'../chunk-OKEDGR65.js';import'../chunk-ZBEJHJN2.js';
@@ -1,4 +1,4 @@
1
- import { S as StoryScope } from './tree-package-fragment-ByN5yzll.cjs';
1
+ import { S as StoryScope } from './tree-package-fragment-Dhyw7oPm.cjs';
2
2
  import { T as TreeDocOp } from './tree-op-types-BUulYD5y.cjs';
3
3
  import { CollaborationDocumentPort } from './collaboration/replication.cjs';
4
4
  import { C as CollaborationStatus, a as CollaborationStatusSnapshot, b as CollaborationFailureCode } from './failure-BnGjoXf0.cjs';
@@ -1,4 +1,4 @@
1
- import { S as StoryScope } from './tree-package-fragment-B1supBtE.js';
1
+ import { S as StoryScope } from './tree-package-fragment-CWFjgH6a.js';
2
2
  import { T as TreeDocOp } from './tree-op-types-D6HzlPR4.js';
3
3
  import { CollaborationDocumentPort } from './collaboration/replication.js';
4
4
  import { C as CollaborationStatus, a as CollaborationStatusSnapshot, b as CollaborationFailureCode } from './failure-BnGjoXf0.js';
@@ -1,10 +1,10 @@
1
1
  export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.cjs';
2
2
  export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-CaAkgi5s.cjs';
3
- export { A as AuthoredNoteNumbering, C as CanResult, r as DocumentChange, t as DocumentEditingMode, u as DocumentHandle, D as DocumentSource, m as Editor, b as EditorCommand, w as EditorCommandShape, x as EditorCommands, y as EditorError, z as EditorEvents, E as EditorFontError, B as EditorFontErrorCode, G as EditorFormatPainterCommands, H as EditorHeaderFooterCommands, J as EditorNoteCommands, K as EditorPosition, L as EditorQueries, M as EditorQuery, N as EditorQueryResults, O as EditorScope, P as EditorSelection, a as EditorSnapshot, F as FontConfiguration, l as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, Q as FormatPainterLevel, R as FormatPainterMode, n as FormatPainterSurfaceState, U as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, a1 as NoteKind, a2 as NotePropertiesSide, a3 as NotePropertiesState, a4 as PageSetup, a5 as ResolvedNoteNumbering, a6 as ReviewActivationOptions, a7 as ReviewCommentPlacement, a8 as ReviewCustomPlacement, a9 as ReviewItemPlacement, aa as ReviewItemPlacementBase, ab as ReviewItemQuery, ac as ReviewRevisionPlacement, S as SelectedImageState, ad as SemanticIdentity, ae as SemanticTarget, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, af as TableBorderTarget, ag as TableCellVerticalAlignment, ah as TableColumnDividerResizeTarget, ai as TableColumnOccurrenceTarget, q as TableContext, aj as TableRightEdgeResizeTarget, ak as TableRowOccurrenceTarget, al as TextMatch, V as ViewScope, am as ZoomFitTarget, Z as ZoomMode } from '../editor-DLrTueVe.cjs';
4
- export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-Bq3ixB0I.cjs';
3
+ export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, b as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorScope, R as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, k as FontSource, l as FontSourceSubstitution, U as FormatPainterLevel, W as FormatPainterMode, o as FormatPainterSurfaceState, X as FurnitureVariant, Y as HeaderFooterSlotArgs, _ as HeaderFooterState, $ as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, a3 as NoteKind, a4 as NotePropertiesSide, a5 as NotePropertiesState, a6 as PageSetup, a7 as ResolvedNoteNumbering, a8 as ReviewActivationOptions, a9 as ReviewCommentPlacement, aa as ReviewCustomPlacement, ab as ReviewItemPlacement, ac as ReviewItemPlacementBase, ad as ReviewItemQuery, ae as ReviewRevisionPlacement, S as SelectedImageState, af as SemanticIdentity, ag as SemanticTarget, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, ah as TableBorderTarget, ai as TableCellVerticalAlignment, aj as TableColumnDividerResizeTarget, ak as TableColumnOccurrenceTarget, t as TableContext, al as TableRightEdgeResizeTarget, am as TableRowOccurrenceTarget, an as TextMatch, T as TrackedChangeFilterMode, e as TrackedChangePredicate, V as ViewScope, ao as ZoomFitTarget, Z as ZoomMode } from '../editor-AJ06hyyg.cjs';
4
+ export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-DUAnxbgf.cjs';
5
5
  export { z as DrawingHorizontalReferenceFrame, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, A as DrawingVerticalReferenceFrame, x as ImageResourceState, u as ImageWrapTarget, P as PreservedImageMime, t as RenderableImageMime, R as RevisionAddress, y as SupportedImageMime, V as ValidatedImageBytesHandle, B as VectorImageMime } from '../tree-op-types-BUulYD5y.cjs';
6
6
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.cjs';
7
7
  import '../failure-BnGjoXf0.cjs';
8
- import '../semantic-records-Btw3Ao4v.cjs';
9
- import '../revision-projection-Dknlar93.cjs';
8
+ import '../semantic-records-BpozY7-j.cjs';
9
+ import '../revision-projection-DXbrfNGD.cjs';
10
10
  import '../omml-equation-DB8d-jCq.cjs';
@@ -1,10 +1,10 @@
1
1
  export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
2
2
  export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind } from '../review-items-CCS1h93f.js';
3
- export { A as AuthoredNoteNumbering, C as CanResult, r as DocumentChange, t as DocumentEditingMode, u as DocumentHandle, D as DocumentSource, m as Editor, b as EditorCommand, w as EditorCommandShape, x as EditorCommands, y as EditorError, z as EditorEvents, E as EditorFontError, B as EditorFontErrorCode, G as EditorFormatPainterCommands, H as EditorHeaderFooterCommands, J as EditorNoteCommands, K as EditorPosition, L as EditorQueries, M as EditorQuery, N as EditorQueryResults, O as EditorScope, P as EditorSelection, a as EditorSnapshot, F as FontConfiguration, l as FontFaceRequest, j as FontSource, k as FontSourceSubstitution, Q as FormatPainterLevel, R as FormatPainterMode, n as FormatPainterSurfaceState, U as FurnitureVariant, W as HeaderFooterSlotArgs, X as HeaderFooterState, Y as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, a1 as NoteKind, a2 as NotePropertiesSide, a3 as NotePropertiesState, a4 as PageSetup, a5 as ResolvedNoteNumbering, a6 as ReviewActivationOptions, a7 as ReviewCommentPlacement, a8 as ReviewCustomPlacement, a9 as ReviewItemPlacement, aa as ReviewItemPlacementBase, ab as ReviewItemQuery, ac as ReviewRevisionPlacement, S as SelectedImageState, ad as SemanticIdentity, ae as SemanticTarget, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, af as TableBorderTarget, ag as TableCellVerticalAlignment, ah as TableColumnDividerResizeTarget, ai as TableColumnOccurrenceTarget, q as TableContext, aj as TableRightEdgeResizeTarget, ak as TableRowOccurrenceTarget, al as TextMatch, V as ViewScope, am as ZoomFitTarget, Z as ZoomMode } from '../editor-KiB6JNvk.js';
4
- export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-BDJ4TBjm.js';
3
+ export { A as AuthoredNoteNumbering, C as CanResult, u as DocumentChange, w as DocumentEditingMode, x as DocumentHandle, D as DocumentSource, n as Editor, b as EditorCommand, y as EditorCommandShape, z as EditorCommands, B as EditorError, G as EditorEvents, E as EditorFontError, H as EditorFontErrorCode, J as EditorFormatPainterCommands, K as EditorHeaderFooterCommands, L as EditorNoteCommands, M as EditorPosition, N as EditorQueries, O as EditorQuery, P as EditorQueryResults, Q as EditorScope, R as EditorSelection, a as EditorSnapshot, F as FontConfiguration, m as FontFaceRequest, k as FontSource, l as FontSourceSubstitution, U as FormatPainterLevel, W as FormatPainterMode, o as FormatPainterSurfaceState, X as FurnitureVariant, Y as HeaderFooterSlotArgs, _ as HeaderFooterState, $ as HyperlinkInfo, I as ImageContext, c as ImageCropPercent, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, a3 as NoteKind, a4 as NotePropertiesSide, a5 as NotePropertiesState, a6 as PageSetup, a7 as ResolvedNoteNumbering, a8 as ReviewActivationOptions, a9 as ReviewCommentPlacement, aa as ReviewCustomPlacement, ab as ReviewItemPlacement, ac as ReviewItemPlacementBase, ad as ReviewItemQuery, ae as ReviewRevisionPlacement, S as SelectedImageState, af as SemanticIdentity, ag as SemanticTarget, p as TableBorderEdgeTarget, q as TableBorderSpec, r as TableBorderStyle, ah as TableBorderTarget, ai as TableCellVerticalAlignment, aj as TableColumnDividerResizeTarget, ak as TableColumnOccurrenceTarget, t as TableContext, al as TableRightEdgeResizeTarget, am as TableRowOccurrenceTarget, an as TextMatch, T as TrackedChangeFilterMode, e as TrackedChangePredicate, V as ViewScope, ao as ZoomFitTarget, Z as ZoomMode } from '../editor-a6VvsfYU.js';
4
+ export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-BmQ7h2cq.js';
5
5
  export { z as DrawingHorizontalReferenceFrame, D as DrawingKind, w as DrawingLocks, v as DrawingPositionInput, A as DrawingVerticalReferenceFrame, x as ImageResourceState, u as ImageWrapTarget, P as PreservedImageMime, t as RenderableImageMime, R as RevisionAddress, y as SupportedImageMime, V as ValidatedImageBytesHandle, B as VectorImageMime } from '../tree-op-types-D6HzlPR4.js';
6
6
  export { Block, ColorValue, ContainerRef, ContentControl, ContentControlFilter, ContentControlType, DocAnchor, DocAnchorRange, DocComment, DocLocation, DocRange, DocTarget, DocumentBody, DocxDocument, DocxDocumentJSON, ExecErrorCode, ExecResult, Extent, FontDefinition, HeaderFooterSet, IndentFormatting, InsertableContentControlType, NumberingRef, PageMargins, Paragraph, ParagraphDisagreements, ParagraphFlags, ParagraphFormatCommand, ParagraphTabStop, Point, Rect, Revision, RevisionType, Run, RunFormatting, Section, SectionProperties, SelectionPin, StyleDefinition, StyleDefinitions, Table, TableCell, TableRow, Theme, ThemeColorScheme, Unsubscribe, Watermark } from './types.js';
7
7
  import '../failure-BnGjoXf0.js';
8
- import '../semantic-records-BI1jpft7.js';
9
- import '../revision-projection-BmLtLPxH.js';
8
+ import '../semantic-records-92UnKeU_.js';
9
+ import '../revision-projection-BeXVrSSV.js';
10
10
  import '../omml-equation-BY49UOIF.js';
@@ -1,10 +1,10 @@
1
- export { O as EditorScope, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, ad as SemanticIdentity, ae as SemanticTarget, V as ViewScope } from '../editor-DLrTueVe.cjs';
1
+ export { Q as EditorScope, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, af as SemanticIdentity, ag as SemanticTarget, V as ViewScope } from '../editor-AJ06hyyg.cjs';
2
2
  import './document.cjs';
3
3
  import './types.cjs';
4
4
  import '../review-items-CaAkgi5s.cjs';
5
5
  import '../tree-op-types-BUulYD5y.cjs';
6
- import '../semantic-interaction-Bq3ixB0I.cjs';
7
- import '../semantic-records-Btw3Ao4v.cjs';
8
- import '../revision-projection-Dknlar93.cjs';
6
+ import '../semantic-interaction-DUAnxbgf.cjs';
7
+ import '../semantic-records-BpozY7-j.cjs';
8
+ import '../revision-projection-DXbrfNGD.cjs';
9
9
  import '../omml-equation-DB8d-jCq.cjs';
10
10
  import '../failure-BnGjoXf0.cjs';
@@ -1,10 +1,10 @@
1
- export { O as EditorScope, _ as InteractionAffinity, $ as InteractionOutcome, a0 as InteractionOutcomeCode, ad as SemanticIdentity, ae as SemanticTarget, V as ViewScope } from '../editor-KiB6JNvk.js';
1
+ export { Q as EditorScope, a0 as InteractionAffinity, a1 as InteractionOutcome, a2 as InteractionOutcomeCode, af as SemanticIdentity, ag as SemanticTarget, V as ViewScope } from '../editor-a6VvsfYU.js';
2
2
  import './document.js';
3
3
  import './types.js';
4
4
  import '../review-items-CCS1h93f.js';
5
5
  import '../tree-op-types-D6HzlPR4.js';
6
- import '../semantic-interaction-BDJ4TBjm.js';
7
- import '../semantic-records-BI1jpft7.js';
8
- import '../revision-projection-BmLtLPxH.js';
6
+ import '../semantic-interaction-BmQ7h2cq.js';
7
+ import '../semantic-records-92UnKeU_.js';
8
+ import '../revision-projection-BeXVrSSV.js';
9
9
  import '../omml-equation-BY49UOIF.js';
10
10
  import '../failure-BnGjoXf0.js';
@@ -3,9 +3,9 @@ export { R as RevisionAddress } from '../tree-op-types-BUulYD5y.cjs';
3
3
  import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-CaAkgi5s.cjs';
4
4
  export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-CaAkgi5s.cjs';
5
5
  import { CollaborationModuleContribution } from '../collaboration.cjs';
6
- import { R as RevisionDisplayMode } from '../revision-projection-Dknlar93.cjs';
6
+ import { R as RevisionDisplayMode } from '../revision-projection-DXbrfNGD.cjs';
7
7
  import './types.cjs';
8
- import '../tree-package-fragment-ByN5yzll.cjs';
8
+ import '../tree-package-fragment-Dhyw7oPm.cjs';
9
9
  import '../tree-store-DEEQ9wz_.cjs';
10
10
  import '../collaboration/replication.cjs';
11
11
  import '../failure-BnGjoXf0.cjs';
@@ -3,9 +3,9 @@ export { R as RevisionAddress } from '../tree-op-types-D6HzlPR4.js';
3
3
  import { R as ReviewModelInput, a as ReviewItem, b as ReviewRevisionItem } from '../review-items-CCS1h93f.js';
4
4
  export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind } from '../review-items-CCS1h93f.js';
5
5
  import { CollaborationModuleContribution } from '../collaboration.js';
6
- import { R as RevisionDisplayMode } from '../revision-projection-BmLtLPxH.js';
6
+ import { R as RevisionDisplayMode } from '../revision-projection-BeXVrSSV.js';
7
7
  import './types.js';
8
- import '../tree-package-fragment-B1supBtE.js';
8
+ import '../tree-package-fragment-CWFjgH6a.js';
9
9
  import '../tree-store-APgWx6qn.js';
10
10
  import '../collaboration/replication.js';
11
11
  import '../failure-BnGjoXf0.js';
@@ -1,6 +1,6 @@
1
1
  import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.cjs';
2
2
  import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-items-CaAkgi5s.cjs';
3
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-Bq3ixB0I.cjs';
3
+ import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-DUAnxbgf.cjs';
4
4
  import { S as SourceCrop, D as DrawingKind, u as ImageWrapTarget, v as DrawingPositionInput, w as DrawingLocks, x as ImageResourceState, y as SupportedImageMime } from './tree-op-types-BUulYD5y.cjs';
5
5
  import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.cjs';
6
6
  import { C as CollaborationStatus } from './failure-BnGjoXf0.cjs';
@@ -896,6 +896,17 @@ interface Editor {
896
896
  * is a repaint behind the document and fails outright during pagination.
897
897
  */
898
898
  getReviewItems(query?: ReviewItemQuery): readonly ReviewItemPlacement[];
899
+ /**
900
+ * Set the view-time tracked-change filter, or clear it with `null`.
901
+ *
902
+ * The predicate receives each full revision item. A false result renders that revision as
903
+ * accepted by default. With `reject`, excluded content, moves, paragraph marks, and table-row
904
+ * insertions/deletions use their rejected projection; formatting and other property-change
905
+ * records keep their current values with revision markup hidden. Both modes are view-only: they
906
+ * change no OOXML and do not change saved bytes. Calling this method again re-evaluates every
907
+ * revision, even when the function reference is unchanged.
908
+ */
909
+ setTrackedChangesFilter(predicate: TrackedChangePredicate | null, mode?: TrackedChangeFilterMode): void;
899
910
  /**
900
911
  * Custom-node definitions registered through `createDocxEditor({ modules })`, in
901
912
  * registration order.
@@ -1130,6 +1141,17 @@ type EditorCommandShape<T> = {
1130
1141
  } : unknown);
1131
1142
  };
1132
1143
 
1144
+ /**
1145
+ * Decides whether one tracked change renders as markup.
1146
+ *
1147
+ * Return `true` to keep the revision visible as tracked markup. Return `false` to render it with
1148
+ * the selected {@link TrackedChangeFilterMode} without changing the document. The callback
1149
+ * receives the complete revision item, including its author, date, kind, text, ranges, nesting,
1150
+ * and resolution metadata.
1151
+ */
1152
+ type TrackedChangePredicate = (revision: ReviewRevisionItem) => boolean;
1153
+ /** How revisions excluded by a tracked-changes predicate project into the view. */
1154
+ type TrackedChangeFilterMode = 'accept' | 'reject';
1133
1155
  /**
1134
1156
  * Narrows what `getReviewItems` returns.
1135
1157
  *
@@ -1896,6 +1918,8 @@ interface EditorSnapshot {
1896
1918
  * vocabulary and memoized per revision.
1897
1919
  */
1898
1920
  readonly hasReviewContent?: boolean;
1921
+ /** Authors whose revisions currently render as accepted and whose comments stay hidden. */
1922
+ readonly hiddenReviewAuthors?: readonly string[];
1899
1923
  /**
1900
1924
  * Lifecycle of the attached collaboration replica, or `'inactive'` when no
1901
1925
  * collaboration module is registered.
@@ -1967,4 +1991,4 @@ interface EditorEvents {
1967
1991
  error: (error: EditorError) => void;
1968
1992
  }
1969
1993
 
1970
- export { type InteractionOutcome as $, type AuthoredNoteNumbering as A, type EditorFontErrorCode as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorFormatPainterCommands as G, type EditorHeaderFooterCommands as H, type ImageContext as I, type EditorNoteCommands as J, type EditorPosition as K, type EditorQueries as L, type EditorQuery as M, type EditorQueryResults as N, type EditorScope as O, type EditorSelection as P, type FormatPainterLevel as Q, type FormatPainterMode as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type FurnitureVariant as U, type ViewScope as V, type HeaderFooterSlotArgs as W, type HeaderFooterState as X, type HyperlinkInfo as Y, type ZoomMode as Z, type InteractionAffinity as _, type EditorSnapshot as a, type InteractionOutcomeCode as a0, type NoteKind as a1, type NotePropertiesSide as a2, type NotePropertiesState as a3, type PageSetup as a4, type ResolvedNoteNumbering as a5, type ReviewActivationOptions as a6, type ReviewCommentPlacement as a7, type ReviewCustomPlacement as a8, type ReviewItemPlacement as a9, type ReviewItemPlacementBase as aa, type ReviewItemQuery as ab, type ReviewRevisionPlacement as ac, type SemanticIdentity as ad, type SemanticTarget as ae, type TableBorderTarget as af, type TableCellVerticalAlignment as ag, type TableColumnDividerResizeTarget as ah, type TableColumnOccurrenceTarget as ai, type TableRightEdgeResizeTarget as aj, type TableRowOccurrenceTarget as ak, type TextMatch as al, type ZoomFitTarget as am, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type FontFaceRequest as l, type Editor as m, type FormatPainterSurfaceState as n, type TableBorderSpec as o, type TableBorderStyle as p, type TableContext as q, type DocumentChange as r, sourceCropFromCropPercent as s, type DocumentEditingMode as t, type DocumentHandle as u, validateImageCropPercent as v, type EditorCommandShape as w, type EditorCommands as x, type EditorError as y, type EditorEvents as z };
1994
+ export { type HyperlinkInfo as $, type AuthoredNoteNumbering as A, type EditorError as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorEvents as G, type EditorFontErrorCode as H, type ImageContext as I, type EditorFormatPainterCommands as J, type EditorHeaderFooterCommands as K, type EditorNoteCommands as L, type EditorPosition as M, type EditorQueries as N, type EditorQuery as O, type EditorQueryResults as P, type EditorScope as Q, type EditorSelection as R, type SelectedImageState as S, type TrackedChangeFilterMode as T, type FormatPainterLevel as U, type ViewScope as V, type FormatPainterMode as W, type FurnitureVariant as X, type HeaderFooterSlotArgs as Y, type ZoomMode as Z, type HeaderFooterState as _, type EditorSnapshot as a, type InteractionAffinity as a0, type InteractionOutcome as a1, type InteractionOutcomeCode as a2, type NoteKind as a3, type NotePropertiesSide as a4, type NotePropertiesState as a5, type PageSetup as a6, type ResolvedNoteNumbering as a7, type ReviewActivationOptions as a8, type ReviewCommentPlacement as a9, type ReviewCustomPlacement as aa, type ReviewItemPlacement as ab, type ReviewItemPlacementBase as ac, type ReviewItemQuery as ad, type ReviewRevisionPlacement as ae, type SemanticIdentity as af, type SemanticTarget as ag, type TableBorderTarget as ah, type TableCellVerticalAlignment as ai, type TableColumnDividerResizeTarget as aj, type TableColumnOccurrenceTarget as ak, type TableRightEdgeResizeTarget as al, type TableRowOccurrenceTarget as am, type TextMatch as an, type ZoomFitTarget as ao, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, type TrackedChangePredicate as e, cropPercentFromCropPermille as f, cropPercentFromPermille as g, cropPercentFromSourceCrop as h, cropPermilleFromCropPercent as i, cropPermilleFromPercent as j, type FontSource as k, type FontSourceSubstitution as l, type FontFaceRequest as m, type Editor as n, type FormatPainterSurfaceState as o, type TableBorderEdgeTarget as p, type TableBorderSpec as q, type TableBorderStyle as r, sourceCropFromCropPercent as s, type TableContext as t, type DocumentChange as u, validateImageCropPercent as v, type DocumentEditingMode as w, type DocumentHandle as x, type EditorCommandShape as y, type EditorCommands as z };
@@ -1,6 +1,6 @@
1
1
  import { DocEdits, DocQueries, DocQueryResults, ContentControlSummary } from './contracts/document.js';
2
2
  import { g as ReviewRevisionKind, c as ReviewCommentItem, b as ReviewRevisionItem, d as ReviewCustomItem } from './review-items-CCS1h93f.js';
3
- import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-BDJ4TBjm.js';
3
+ import { a as SemanticSelection, S as SemanticPosition } from './semantic-interaction-BmQ7h2cq.js';
4
4
  import { S as SourceCrop, D as DrawingKind, u as ImageWrapTarget, v as DrawingPositionInput, w as DrawingLocks, x as ImageResourceState, y as SupportedImageMime } from './tree-op-types-D6HzlPR4.js';
5
5
  import { ColorValue, ExecErrorCode, ParagraphFormatCommand, Watermark, DocAnchor, ExecResult, ContentControlFilter, DocRange, RunFormatting, Revision, Rect, SelectionPin, Unsubscribe } from './contracts/types.js';
6
6
  import { C as CollaborationStatus } from './failure-BnGjoXf0.js';
@@ -896,6 +896,17 @@ interface Editor {
896
896
  * is a repaint behind the document and fails outright during pagination.
897
897
  */
898
898
  getReviewItems(query?: ReviewItemQuery): readonly ReviewItemPlacement[];
899
+ /**
900
+ * Set the view-time tracked-change filter, or clear it with `null`.
901
+ *
902
+ * The predicate receives each full revision item. A false result renders that revision as
903
+ * accepted by default. With `reject`, excluded content, moves, paragraph marks, and table-row
904
+ * insertions/deletions use their rejected projection; formatting and other property-change
905
+ * records keep their current values with revision markup hidden. Both modes are view-only: they
906
+ * change no OOXML and do not change saved bytes. Calling this method again re-evaluates every
907
+ * revision, even when the function reference is unchanged.
908
+ */
909
+ setTrackedChangesFilter(predicate: TrackedChangePredicate | null, mode?: TrackedChangeFilterMode): void;
899
910
  /**
900
911
  * Custom-node definitions registered through `createDocxEditor({ modules })`, in
901
912
  * registration order.
@@ -1130,6 +1141,17 @@ type EditorCommandShape<T> = {
1130
1141
  } : unknown);
1131
1142
  };
1132
1143
 
1144
+ /**
1145
+ * Decides whether one tracked change renders as markup.
1146
+ *
1147
+ * Return `true` to keep the revision visible as tracked markup. Return `false` to render it with
1148
+ * the selected {@link TrackedChangeFilterMode} without changing the document. The callback
1149
+ * receives the complete revision item, including its author, date, kind, text, ranges, nesting,
1150
+ * and resolution metadata.
1151
+ */
1152
+ type TrackedChangePredicate = (revision: ReviewRevisionItem) => boolean;
1153
+ /** How revisions excluded by a tracked-changes predicate project into the view. */
1154
+ type TrackedChangeFilterMode = 'accept' | 'reject';
1133
1155
  /**
1134
1156
  * Narrows what `getReviewItems` returns.
1135
1157
  *
@@ -1896,6 +1918,8 @@ interface EditorSnapshot {
1896
1918
  * vocabulary and memoized per revision.
1897
1919
  */
1898
1920
  readonly hasReviewContent?: boolean;
1921
+ /** Authors whose revisions currently render as accepted and whose comments stay hidden. */
1922
+ readonly hiddenReviewAuthors?: readonly string[];
1899
1923
  /**
1900
1924
  * Lifecycle of the attached collaboration replica, or `'inactive'` when no
1901
1925
  * collaboration module is registered.
@@ -1967,4 +1991,4 @@ interface EditorEvents {
1967
1991
  error: (error: EditorError) => void;
1968
1992
  }
1969
1993
 
1970
- export { type InteractionOutcome as $, type AuthoredNoteNumbering as A, type EditorFontErrorCode as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorFormatPainterCommands as G, type EditorHeaderFooterCommands as H, type ImageContext as I, type EditorNoteCommands as J, type EditorPosition as K, type EditorQueries as L, type EditorQuery as M, type EditorQueryResults as N, type EditorScope as O, type EditorSelection as P, type FormatPainterLevel as Q, type FormatPainterMode as R, type SelectedImageState as S, type TableBorderEdgeTarget as T, type FurnitureVariant as U, type ViewScope as V, type HeaderFooterSlotArgs as W, type HeaderFooterState as X, type HyperlinkInfo as Y, type ZoomMode as Z, type InteractionAffinity as _, type EditorSnapshot as a, type InteractionOutcomeCode as a0, type NoteKind as a1, type NotePropertiesSide as a2, type NotePropertiesState as a3, type PageSetup as a4, type ResolvedNoteNumbering as a5, type ReviewActivationOptions as a6, type ReviewCommentPlacement as a7, type ReviewCustomPlacement as a8, type ReviewItemPlacement as a9, type ReviewItemPlacementBase as aa, type ReviewItemQuery as ab, type ReviewRevisionPlacement as ac, type SemanticIdentity as ad, type SemanticTarget as ae, type TableBorderTarget as af, type TableCellVerticalAlignment as ag, type TableColumnDividerResizeTarget as ah, type TableColumnOccurrenceTarget as ai, type TableRightEdgeResizeTarget as aj, type TableRowOccurrenceTarget as ak, type TextMatch as al, type ZoomFitTarget as am, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, cropPercentFromCropPermille as e, cropPercentFromPermille as f, cropPercentFromSourceCrop as g, cropPermilleFromCropPercent as h, cropPermilleFromPercent as i, type FontSource as j, type FontSourceSubstitution as k, type FontFaceRequest as l, type Editor as m, type FormatPainterSurfaceState as n, type TableBorderSpec as o, type TableBorderStyle as p, type TableContext as q, type DocumentChange as r, sourceCropFromCropPercent as s, type DocumentEditingMode as t, type DocumentHandle as u, validateImageCropPercent as v, type EditorCommandShape as w, type EditorCommands as x, type EditorError as y, type EditorEvents as z };
1994
+ export { type HyperlinkInfo as $, type AuthoredNoteNumbering as A, type EditorError as B, type CanResult as C, type DocumentSource as D, EditorFontError as E, type FontConfiguration as F, type EditorEvents as G, type EditorFontErrorCode as H, type ImageContext as I, type EditorFormatPainterCommands as J, type EditorHeaderFooterCommands as K, type EditorNoteCommands as L, type EditorPosition as M, type EditorQueries as N, type EditorQuery as O, type EditorQueryResults as P, type EditorScope as Q, type EditorSelection as R, type SelectedImageState as S, type TrackedChangeFilterMode as T, type FormatPainterLevel as U, type ViewScope as V, type FormatPainterMode as W, type FurnitureVariant as X, type HeaderFooterSlotArgs as Y, type ZoomMode as Z, type HeaderFooterState as _, type EditorSnapshot as a, type InteractionAffinity as a0, type InteractionOutcome as a1, type InteractionOutcomeCode as a2, type NoteKind as a3, type NotePropertiesSide as a4, type NotePropertiesState as a5, type PageSetup as a6, type ResolvedNoteNumbering as a7, type ReviewActivationOptions as a8, type ReviewCommentPlacement as a9, type ReviewCustomPlacement as aa, type ReviewItemPlacement as ab, type ReviewItemPlacementBase as ac, type ReviewItemQuery as ad, type ReviewRevisionPlacement as ae, type SemanticIdentity as af, type SemanticTarget as ag, type TableBorderTarget as ah, type TableCellVerticalAlignment as ai, type TableColumnDividerResizeTarget as aj, type TableColumnOccurrenceTarget as ak, type TableRightEdgeResizeTarget as al, type TableRowOccurrenceTarget as am, type TextMatch as an, type ZoomFitTarget as ao, type EditorCommand as b, type ImageCropPercent as c, type ImageCropPermille as d, type TrackedChangePredicate as e, cropPercentFromCropPermille as f, cropPercentFromPermille as g, cropPercentFromSourceCrop as h, cropPermilleFromCropPercent as i, cropPermilleFromPercent as j, type FontSource as k, type FontSourceSubstitution as l, type FontFaceRequest as m, type Editor as n, type FormatPainterSurfaceState as o, type TableBorderEdgeTarget as p, type TableBorderSpec as q, type TableBorderStyle as r, sourceCropFromCropPercent as s, type TableContext as t, type DocumentChange as u, validateImageCropPercent as v, type DocumentEditingMode as w, type DocumentHandle as x, type EditorCommandShape as y, type EditorCommands as z };
package/dist/editor.cjs CHANGED
@@ -1 +1 @@
1
- 'use strict';var chunkI36WS6XX_cjs=require('./chunk-I36WS6XX.cjs'),chunkZKWRCLT2_cjs=require('./chunk-ZKWRCLT2.cjs');require('./chunk-F7U4OLMS.cjs'),require('./chunk-3AT4RUQ3.cjs'),require('./chunk-PFSJVAWJ.cjs'),require('./chunk-FNMXRLGW.cjs'),require('./chunk-WANKXD34.cjs'),require('./chunk-4NAQLFXA.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-67S7OHE6.cjs');var chunkXETEMUIP_cjs=require('./chunk-XETEMUIP.cjs');require('./chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Qa}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Va}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Da}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ha}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ka}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.da}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.X}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ra}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.h}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.V}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.W}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.t}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.z}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.y}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ja}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ia}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ka}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ea}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.x}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.w}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Pa}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Oa}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.la}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.F}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.E}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.m}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.T}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.S}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ja}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ia}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.pa}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ea}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.va}});Object.defineProperty(exports,"clipboardDropLandsText",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.o}});Object.defineProperty(exports,"clipboardPasteLandsContent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.n}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.qa}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.sa}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ra}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.g}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.l}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.bb}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.aa}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.$}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Wa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ua}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.r}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.cb}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.P}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.N}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.K}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.O}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.M}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Za}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Fa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.fa}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.j}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.C}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ca}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkI36WS6XX_cjs._}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ma}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.U}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.db}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ga}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.u}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.A}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.k}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ba}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ga}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ya}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.q}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.H}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.I}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Na}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkI36WS6XX_cjs._a}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.$a}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.p}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Z}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ma}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ab}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.J}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.G}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Sa}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.v}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.za}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.xa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ba}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ya}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ta}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Y}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.R}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.B}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.L}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.La}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Xa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.oa}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.na}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ta}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ha}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ca}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Aa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ua}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.wa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Q}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.D}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkZKWRCLT2_cjs.a}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.m}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Ng}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Og}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Ya}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Qg}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Pg}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.n}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.pb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.lb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Mg}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.qb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Rg}});
1
+ 'use strict';var chunkF2K6SDHA_cjs=require('./chunk-F2K6SDHA.cjs'),chunkZKWRCLT2_cjs=require('./chunk-ZKWRCLT2.cjs');require('./chunk-O5M4CR4P.cjs'),require('./chunk-NDJGSR6M.cjs'),require('./chunk-2PIHW2QM.cjs'),require('./chunk-LBAHXZCU.cjs'),require('./chunk-DRQHIQ4R.cjs'),require('./chunk-5TKAPFZT.cjs'),require('./chunk-4Z5MODAE.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-KIAP7PFQ.cjs');var chunkNJNFJPGB_cjs=require('./chunk-NJNFJPGB.cjs');require('./chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Qa}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Va}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Da}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ha}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ka}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.da}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.X}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ra}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.h}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.V}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.W}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.t}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.z}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.y}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ja}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ia}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ka}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ea}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.x}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.w}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Pa}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Oa}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.la}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.F}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.E}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.m}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.T}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.S}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ja}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ia}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.pa}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ea}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.va}});Object.defineProperty(exports,"clipboardDropLandsText",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.o}});Object.defineProperty(exports,"clipboardPasteLandsContent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.n}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.qa}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.sa}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ra}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.g}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.l}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.bb}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.aa}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.$}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Wa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ua}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.r}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.cb}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.P}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.N}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.K}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.O}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.M}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Za}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Fa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.fa}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.j}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.C}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ca}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs._}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ma}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.U}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.db}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ga}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.u}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.A}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.k}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ba}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ga}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ya}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.q}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.H}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.I}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Na}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs._a}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.$a}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.p}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Z}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ma}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ab}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.J}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.G}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Sa}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.v}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.za}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.xa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ba}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ya}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Ta}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Y}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.R}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.B}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.L}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.La}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Xa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.oa}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.na}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ta}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ha}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ca}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Aa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.ua}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.wa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.Q}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkF2K6SDHA_cjs.D}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkZKWRCLT2_cjs.a}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.m}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Og}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Pg}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Ya}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Rg}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Qg}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.n}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.pb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.lb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Ng}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.qb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkNJNFJPGB_cjs.Sg}});