export{d as MIN_CARD_GAP,c as SIDEBAR_DOCUMENT_SHIFT,b as SIDEBAR_PAGE_GAP,a as SIDEBAR_WIDTH}from'../chunk-PRRM64JO.mjs';export{k as createDoubleClickWordSelector,l as createTripleClickParagraphSelector,h as expandSelectionToWordBoundaries,e as findWordAt,c as findWordBoundaries,d as getWordAt,j as handleClickForMultiClick,i as selectParagraphAtCursor,f as selectWordAtCursor,g as selectWordInTextNode}from'../chunk-OBMN4VSM.mjs';export{n as countPageBreaks,b as createColumnBreak,g as createHorizontalRule,c as createLineBreak,a as createPageBreak,e as createPageBreakParagraph,d as createPageBreakRun,o as findPageBreaks,m as hasPageBreakBefore,h as insertHorizontalRule,f as insertPageBreak,l as isBreakContent,j as isColumnBreak,k as isLineBreak,i as isPageBreak,p as removePageBreak}from'../chunk-WTFLNYAT.mjs';export{b as createDocumentWithText,a as createEmptyDocument}from'../chunk-CKKO4JWE.mjs';export{j as createTemplateProcessor,g as getMissingVariables,e as getTemplateTags,h as previewTemplate,a as processTemplate,i as processTemplateAdvanced,d as processTemplateAndDownload,c as processTemplateAsBlob,b as processTemplateDetailed,f as validateTemplate}from'../chunk-CGJ6S3AH.mjs';import {j}from'../chunk-JVVXP4IM.mjs';export{n as FONT_MAPPING,j as canRenderFont,v as deobfuscateFont,s as extractFontsFromDocument,x as getEmbeddedFontFaces,w as getEmbeddedFontFamilies,o as getGoogleFontEquivalent,g as getLoadedFonts,c as isFontLoaded,e as isGoogleFontsEnabled,f as isLoading,u as isValidFontKey,t as loadDocumentFonts,y as loadEmbeddedFonts,a as loadFont,m as loadFontDefinitions,k as loadFontFromBuffer,l as loadFontFromUrl,p as loadFontWithMapping,b as loadFonts,q as loadFontsWithMapping,i as onFontError,h as onFontsLoaded,r as preloadCommonFonts,d as setGoogleFontsEnabled,z as toArrayBuffer}from'../chunk-JVVXP4IM.mjs';import'../chunk-HXZTROSY.mjs';export{d as buildAnchorMaps,e as computeSplitDialogDefaults,c as computeSplitLayout,b as redistributeColumnWidths,a as sumColumnWidths}from'../chunk-KQTB5Y7P.mjs';export{i as CLIPBOARD_TYPES,h as INTERNAL_CLIPBOARD_TYPE,c as borderToStyle,u as cleanWordHtml,l as copyParagraphs,k as copyRuns,w as createClipboardHandlers,j as getClipboardImageFiles,q as handlePasteEvent,v as htmlToRuns,t as isEditorHtml,s as isWordHtml,e as mergeStyles,b as paragraphToStyle,n as paragraphsToClipboardContent,r as parseClipboardHtml,p as readFromClipboard,d as resolveShadingFill,m as runsToClipboardContent,g as sectionToStyle,f as tableCellToStyle,a as textToStyle,o as writeToClipboard}from'../chunk-WBICNJLN.mjs';export{a as collectHeadings}from'../chunk-OZMNIX6U.mjs';export{m as blendColors,r as colorsEqual,j as createRgbColor,i as createThemeColor,k as darkenColor,n as ensureHexPrefix,q as generateThemeTintShadeMatrix,g as getContrastingColor,p as getThemeTintShadeHex,e as isBlack,f as isWhite,l as lightenColor,h as parseColorString,a as resolveColor,b as resolveColorToHex,c as resolveHighlightColor,o as resolveHighlightToCss,d as resolveShadingColor}from'../chunk-67LVRQIR.mjs';export{a as sanitizeHref}from'../chunk-VXPXRLZ2.mjs';import {a}from'../chunk-CWZKRBRE.mjs';export{b as PIXELS_PER_INCH,a as TWIPS_PER_INCH,p as clamp,n as eighthsToPixels,f as emuToPixels,h as emuToTwips,q as formatPx,k as halfPointsToPixels,l as halfPointsToPoints,g as pixelsToEmu,e as pixelsToTwips,m as pointsToHalfPoints,j as pointsToPixels,o as roundPixels,i as twipsToEmu,d as twipsToPixels}from'../chunk-KNY7SXPJ.mjs';import'../chunk-3ANZ3252.mjs';import'../chunk-QYUPLKLP.mjs';function P(e){let t=new Set,o=e.package;if(o.theme&&xo(o.theme,t),o.styles&&So(o.styles,t),o.document)for(let n of o.document.content)m(n,t);if(o.headers)for(let n of o.headers.values())E(n,t);if(o.footers)for(let n of o.footers.values())E(n,t);if(o.footnotes)for(let n of o.footnotes)Ao(n,t);if(o.endnotes)for(let n of o.endnotes)Eo(n,t);return Array.from(t).sort()}function xo(e,t){let o=e.fontScheme;o&&(o.majorFont&&A(o.majorFont,t),o.minorFont&&A(o.minorFont,t));}function A(e,t){if(e.latin&&t.add(e.latin),e.ea&&t.add(e.ea),e.cs&&t.add(e.cs),e.fonts)for(let o of Object.values(e.fonts))o&&t.add(o);}function So(e,t){e.docDefaults&&(e.docDefaults.rPr&&p(e.docDefaults.rPr,t),e.docDefaults.pPr?.runProperties&&p(e.docDefaults.pPr.runProperties,t));for(let o of e.styles)o.rPr&&p(o.rPr,t),o.pPr?.runProperties&&p(o.pPr.runProperties,t);}function p(e,t){let o=e.fontFamily;o&&(o.ascii&&t.add(o.ascii),o.hAnsi&&t.add(o.hAnsi),o.eastAsia&&t.add(o.eastAsia),o.cs&&t.add(o.cs));}function bo(e,t){e.runProperties&&p(e.runProperties,t);}function m(e,t){e.type==="paragraph"?yo(e,t):e.type==="table"&&Ro(e,t);}function yo(e,t){e.formatting&&bo(e.formatting,t);for(let o of e.content)To(o,t);}function To(e,t){if(e.type==="run")h(e,t);else if(e.type==="hyperlink")Co(e,t);else if(e.type==="simpleField"||e.type==="complexField"){if("content"in e)for(let o of e.content)o.type==="run"&&h(o,t);if("fieldResult"in e)for(let o of e.fieldResult)h(o,t);}}function h(e,t){e.formatting&&p(e.formatting,t);}function Co(e,t){for(let o of e.children)o.type==="run"&&h(o,t);}function Ro(e,t){for(let o of e.rows)Fo(o,t);}function Fo(e,t){for(let o of e.cells)wo(o,t);}function wo(e,t){for(let o of e.content)m(o,t);}function E(e,t){for(let o of e.content)m(o,t);}function Ao(e,t){for(let o of e.content)m(o,t);}function Eo(e,t){for(let o of e.content)m(o,t);}var Po=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui"]);function N(e,t={}){let o=t.canRender??j,n=new Set;for(let s of t.exclude??[])n.add(s.trim().toLowerCase());let r=new Set;for(let s of t.embeddedFamilies??[])r.add(s.trim().toLowerCase());let i=[],a$1=new Set;for(let s of e){let l=s.trim(),c=l.toLowerCase();!l||Po.has(c)||n.has(c)||a$1.has(c)||!r.has(c)&&!o(l)||(a$1.add(c),i.push({name:l,fontFamily:a(l).cssFallback,category:"other"}));}return i}function No(e,t={}){return N(P(e),t)}function ko(e,t){if(!e||e.length===0)return [];let o=new Set;for(let i of t)o.add(i.trim().toLowerCase());let n=new Set,r=[];for(let i of e){let a=i.name.trim().toLowerCase();o.has(a)||n.has(a)||(n.add(a),r.push(i));}return r}function f(e){return e?/[\p{L}\p{N}_]/u.test(e):false}function C(e){return e?/\s/.test(e):false}function vo(e){return e?/[\p{P}]/u.test(e):false}function Do(e,t){if(t<=0)return 0;t>e.length&&(t=e.length);let o=t;for(;o>0&&C(e[o-1]);)o--;if(o===0)return 0;for(;o>0&&f(e[o-1]);)o--;return o}function Ho(e,t){if(t>=e.length)return e.length;t<0&&(t=0);let o=t;for(;o<e.length&&f(e[o]);)o++;for(;o<e.length&&C(e[o]);)o++;return o}function k(e,t){if(t>=e.length)return e.length;let o=t;for(;o<e.length&&f(e[o]);)o++;for(;o<e.length&&!f(e[o]);)o++;return o}function v(e,t){if(t<=0)return 0;let o=t;for(;o>0&&!f(e[o-1]);)o--;for(;o>0&&f(e[o-1]);)o--;return o}function D(e,t){if(!window.getSelection())return null;let n=document.createRange();if(e.nodeType===Node.TEXT_NODE){n.setStart(e,Math.min(t,e.textContent?.length||0)),n.collapse(true);let i=n.getBoundingClientRect().top,a=0,s=t;for(;a<s;){let l=Math.floor((a+s)/2);n.setStart(e,l),n.collapse(true);let c=n.getBoundingClientRect();Math.abs(c.top-i)<2?s=l:a=l+1;}return {node:e,offset:a}}return null}function H(e,t){if(!window.getSelection())return null;let n=e.textContent?.length||0,r=document.createRange();if(e.nodeType===Node.TEXT_NODE){r.setStart(e,Math.min(t,n)),r.collapse(true);let a=r.getBoundingClientRect().top,s=t,l=n;for(;s<l;){let c=Math.ceil((s+l)/2);r.setStart(e,c),r.collapse(true);let j=r.getBoundingClientRect();Math.abs(j.top-a)<2?s=c:l=c-1;}return {node:e,offset:s}}return null}function Lo(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.getRangeAt(0);return {node:t.startContainer,offset:t.startOffset,anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,text:e.toString()}}function x(e,t){let o=window.getSelection();if(!o)return;let n=document.createRange(),r=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;n.setStart(e,Math.min(t,r)),n.collapse(true),o.removeAllRanges(),o.addRange(n);}function S(e,t){let o=window.getSelection();if(!(!o||!o.anchorNode))try{o.extend(e,Math.min(t,e.textContent?.length||0));}catch{let n=e.nodeType===Node.TEXT_NODE?e.textContent?.length||0:e.childNodes.length;o.setBaseAndExtent(o.anchorNode,o.anchorOffset,e,Math.min(t,n));}}function L(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return  false;let n=o.focusNode;if(!n||n.nodeType!==Node.TEXT_NODE)return  false;let r=n.textContent||"",i=o.focusOffset,a;return e==="left"?a=v(r,i):a=k(r,i),t?S(n,a):x(n,a),true}function O(e,t=false){let o=window.getSelection();if(!o||o.rangeCount===0)return  false;let n=o.focusNode;if(!n)return  false;if(n.nodeType===Node.TEXT_NODE){let a=e==="start"?D(n,o.focusOffset):H(n,o.focusOffset);if(a)return t?S(a.node,a.offset):x(a.node,a.offset),true}let r=n.textContent||"",i=e==="start"?0:r.length;return t?S(n,i):x(n,i),true}function M(e){let{key:t,ctrlKey:o,metaKey:n,shiftKey:r,altKey:i}=e,a=o||n;switch(t){case "ArrowLeft":if(a)return {direction:"left",unit:"word",extend:r};break;case "ArrowRight":if(a)return {direction:"right",unit:"word",extend:r};break;case "Home":return a?{direction:"left",unit:"document",extend:r}:{direction:"left",unit:"line",extend:r};case "End":return a?{direction:"right",unit:"document",extend:r}:{direction:"right",unit:"line",extend:r}}return null}function Oo(e,t){let o=M(e);if(!o)return  false;switch(o.unit){case "word":if((o.direction==="left"||o.direction==="right")&&L(o.direction,o.extend))return e.preventDefault(),true;break;case "line":let n=o.direction==="left"?"start":"end";if(O(n,o.extend))return e.preventDefault(),true;break;case "document":if(o.direction==="left"&&t?.onDocumentStart)return e.preventDefault(),t.onDocumentStart(),true;if(o.direction==="right"&&t?.onDocumentEnd)return e.preventDefault(),t.onDocumentEnd(),true;break}return  false}function Mo(e){let{key:t,ctrlKey:o,metaKey:n}=e;return !!((o||n)&&(t==="ArrowLeft"||t==="ArrowRight")||t==="Home"||t==="End")}function _o(){let e=window.getSelection();if(!e||e.rangeCount===0)return  false;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return  false;let o=t.textContent||"",n=e.focusOffset,r=n,i=n;for(;r>0&&f(o[r-1]);)r--;for(;i<o.length&&f(o[i]);)i++;if(r===i)return  false;let a=document.createRange();return a.setStart(t,r),a.setEnd(t,i),e.removeAllRanges(),e.addRange(a),true}function Io(){let e=window.getSelection();if(!e||e.rangeCount===0)return null;let t=e.focusNode;if(!t||t.nodeType!==Node.TEXT_NODE)return null;let o=t.textContent||"",n=e.focusOffset,r=n,i=n;for(;r>0&&f(o[r-1]);)r--;for(;i<o.length&&f(o[i]);)i++;return r===i?null:o.slice(r,i)}function Ko(e,t){let o=e.ctrlKey||e.metaKey,n=t.ctrlKey||t.metaKey;return e.key.toLowerCase()===t.key.toLowerCase()&&o===!!n&&e.shiftKey===!!t.shiftKey&&e.altKey===!!t.altKey}var d={wordLeft:{key:"ArrowLeft",ctrlKey:true},wordRight:{key:"ArrowRight",ctrlKey:true},selectWordLeft:{key:"ArrowLeft",ctrlKey:true,shiftKey:true},selectWordRight:{key:"ArrowRight",ctrlKey:true,shiftKey:true},lineStart:{key:"Home"},lineEnd:{key:"End"},selectToLineStart:{key:"Home",shiftKey:true},selectToLineEnd:{key:"End",shiftKey:true},documentStart:{key:"Home",ctrlKey:true},documentEnd:{key:"End",ctrlKey:true},selectToDocumentStart:{key:"Home",ctrlKey:true,shiftKey:true},selectToDocumentEnd:{key:"End",ctrlKey:true,shiftKey:true}};function u(e){let t=[];if(e.ctrlKey||e.metaKey){let n=typeof navigator<"u"&&/Mac/i.test(navigator.platform);t.push(n?"\u2318":"Ctrl");}e.shiftKey&&t.push("Shift"),e.altKey&&t.push("Alt");let o=e.key;return o==="ArrowLeft"?o="\u2190":o==="ArrowRight"?o="\u2192":o==="ArrowUp"?o="\u2191":o==="ArrowDown"&&(o="\u2193"),t.push(o),t.join("+")}function Bo(){return [{action:"Move by word (left)",shortcut:u(d.wordLeft)},{action:"Move by word (right)",shortcut:u(d.wordRight)},{action:"Select word (left)",shortcut:u(d.selectWordLeft)},{action:"Select word (right)",shortcut:u(d.selectWordRight)},{action:"Go to line start",shortcut:u(d.lineStart)},{action:"Go to line end",shortcut:u(d.lineEnd)},{action:"Select to line start",shortcut:u(d.selectToLineStart)},{action:"Select to line end",shortcut:u(d.selectToLineEnd)},{action:"Go to document start",shortcut:u(d.documentStart)},{action:"Go to document end",shortcut:u(d.documentEnd)},{action:"Select to document start",shortcut:u(d.selectToDocumentStart)},{action:"Select to document end",shortcut:u(d.selectToDocumentEnd)}]}var b={backgroundColor:"rgba(26, 115, 232, 0.3)",borderRadius:0,zIndex:0,opacity:1,mixBlendMode:"multiply"},Wo={backgroundColor:"rgba(0, 120, 215, 0.4)",borderColor:"rgba(0, 120, 215, 0.6)",borderRadius:1,zIndex:0,opacity:1},Go={backgroundColor:"--docx-selection-bg",borderColor:"--docx-selection-border",textColor:"--docx-selection-text"};function R(e){let t=window.getSelection();if(!t||t.rangeCount===0||t.isCollapsed)return [];let o=t.getRangeAt(0);if(e&&!e.contains(o.commonAncestorContainer))return [];let n=o.getClientRects(),r=[],i=0,a=0;if(e){let s=e.getBoundingClientRect();i=s.left+e.scrollLeft,a=s.top+e.scrollTop;}for(let s=0;s<n.length;s++){let l=n[s];l.width===0&&l.height===0||r.push({left:l.left-i,top:l.top-a,width:l.width,height:l.height});}return r}function _(e,t=2){if(e.length<=1)return e;let o=[...e].sort((i,a)=>Math.abs(i.top-a.top)<t?i.left-a.left:i.top-a.top),n=[],r={...o[0]};for(let i=1;i<o.length;i++){let a=o[i],s=Math.abs(a.top-r.top)<t,l=a.left<=r.left+r.width+t;if(s&&l){let c=Math.max(r.left+r.width,a.left+a.width);r.width=c-r.left,r.height=Math.max(r.height,a.height);}else n.push(r),r={...a};}return n.push(r),n}function I(e){let t=R(e);return _(t)}function Uo(e,t=b){return {position:"absolute",left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`,backgroundColor:t.backgroundColor,borderRadius:t.borderRadius?`${t.borderRadius}px`:void 0,border:t.borderColor?`1px solid ${t.borderColor}`:void 0,zIndex:t.zIndex??0,opacity:t.opacity??1,mixBlendMode:t.mixBlendMode,pointerEvents:"none",userSelect:"none"}}function zo(e,t=b){let o=t.backgroundColor;return `
    ${e}::selection,
    ${e} *::selection {
      background-color: ${o} !important;
      color: inherit !important;
    }

    ${e}::-moz-selection,
    ${e} *::-moz-selection {
      background-color: ${o} !important;
      color: inherit !important;
    }
  `}function $o(){let e=window.getSelection();return e!==null&&!e.isCollapsed&&e.rangeCount>0}function jo(){let e=window.getSelection();return e?e.toString():""}function Vo(e){let t=window.getSelection();if(!t||t.rangeCount===0)return  false;let o=t.getRangeAt(0);return e.contains(o.commonAncestorContainer)}function Xo(){let e=window.getSelection();return !e||e.rangeCount===0?null:e.getRangeAt(0).getBoundingClientRect()}function Yo(e,t,o,n,r){try{let i=document.createRange();return i.setStart(t,o),i.setEnd(n,r),i}catch{return null}}function qo(e){let t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e));}function Qo(){let e=window.getSelection();e&&e.removeAllRanges();}function K(){let e=window.getSelection();if(!e||e.rangeCount===0)return  false;let t=e.anchorNode,o=e.focusNode;return !t||!o?false:t===o?e.focusOffset<e.anchorOffset:(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING)!==0}function Jo(){let e=window.getSelection();if(!e||e.rangeCount===0||!K())return;let t=e.getRangeAt(0),o=document.createRange();o.setStart(t.startContainer,t.startOffset),o.setEnd(t.endContainer,t.endOffset),e.removeAllRanges(),e.addRange(o);}var g=null;function Zo(e=b){B();let t=`
    /* DOCX Editor Selection Highlighting */

    /* Base selection style for all editable content */
    .docx-editor [contenteditable="true"]::selection,
    .docx-editor [contenteditable="true"] *::selection,
    .docx-run-editable::selection,
    .docx-run-editable *::selection {
      background-color: ${e.backgroundColor} !important;
      color: inherit !important;
    }

    /* Firefox selection */
    .docx-editor [contenteditable="true"]::-moz-selection,
    .docx-editor [contenteditable="true"] *::-moz-selection,
    .docx-run-editable::-moz-selection,
    .docx-run-editable *::-moz-selection {
      background-color: ${e.backgroundColor} !important;
      color: inherit !important;
    }

    /* Ensure selection is visible against all backgrounds */
    .docx-run-highlighted::selection,
    .docx-run-highlighted *::selection {
      /* For highlighted (yellow background) text, use darker selection */
      background-color: rgba(26, 115, 232, 0.5) !important;
    }

    .docx-run-highlighted::-moz-selection,
    .docx-run-highlighted *::-moz-selection {
      background-color: rgba(26, 115, 232, 0.5) !important;
    }

    /* Selection in dark text */
    .docx-run-dark-bg::selection,
    .docx-run-dark-bg *::selection {
      /* Use lighter selection for dark backgrounds */
      background-color: rgba(100, 181, 246, 0.5) !important;
    }

    .docx-run-dark-bg::-moz-selection,
    .docx-run-dark-bg *::-moz-selection {
      background-color: rgba(100, 181, 246, 0.5) !important;
    }

    /* Programmatic highlight class */
    .docx-selection-highlight {
      background-color: ${e.backgroundColor};
      ${e.borderRadius?`border-radius: ${e.borderRadius}px;`:""}
      ${e.mixBlendMode?`mix-blend-mode: ${e.mixBlendMode};`:""}
    }

    /* Find/replace highlight */
    .docx-find-highlight {
      background-color: rgba(255, 235, 59, 0.5);
      border-radius: 2px;
    }

    .docx-find-highlight-current {
      background-color: rgba(255, 152, 0, 0.6);
      border-radius: 2px;
      outline: 2px solid rgba(255, 152, 0, 0.8);
    }

    /* AI action selection preview */
    .docx-ai-selection-preview {
      background-color: rgba(156, 39, 176, 0.2);
      border-bottom: 2px dashed rgba(156, 39, 176, 0.6);
    }
  `;g=document.createElement("style"),g.id="docx-selection-styles",g.textContent=t,document.head.appendChild(g);}function B(){g&&(g.remove(),g=null);let e=document.getElementById("docx-selection-styles");e&&e.remove();}function en(){return g!==null||document.getElementById("docx-selection-styles")!==null}function tn(e,t,o=true){return ()=>{if(!e){t([]);return}let n=o?I(e):R(e);t(n);}}var W="rgba(255, 235, 59, 0.55)",on=1200,y="docx-paragraph-flash",F=new WeakMap;function nn(e){let t=globalThis;return typeof t.CSS?.escape=="function"?t.CSS.escape(e):e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function rn(e){return e?.color?.trim()||W}function an(e){let t=e?.durationMs;return t==null||!Number.isFinite(t)||t<0?1200:t}function G(e,t){if(!t||!t.trim())return [];let o=nn(t);return Array.from(e.querySelectorAll(`.layout-paragraph[data-para-id="${o}"]`))}function U(e,t){let o=0,n=rn(t),r=an(t);for(let i of e){o++;let a=F.get(i);a!==void 0&&clearTimeout(a),i.classList.remove(y),i.offsetWidth,i.style.setProperty("--docx-paragraph-flash-color",n),i.style.setProperty("--docx-paragraph-flash-duration",`${r}ms`),i.classList.add(y);let s=setTimeout(()=>{i.classList.remove(y),i.style.removeProperty("--docx-paragraph-flash-color"),i.style.removeProperty("--docx-paragraph-flash-duration"),F.delete(i);},r);F.set(i,s);}return o}function sn(e,t,o){let n=G(e,t);return U(n,o)>0}async function ln(e){let t=e.target;if(!t||!t.files)return null;let o=t.files[0];return t.value="",o?{buffer:await o.arrayBuffer(),name:o.name.replace(/\.docx$/i,"")}:null}var z="(prefers-color-scheme: dark)";function $(){return typeof window<"u"&&typeof window.matchMedia=="function"}function cn(){return $()?window.matchMedia(z).matches:false}function dn(e,t){return e==="dark"||e==="system"&&t}function un(e){if(!$())return ()=>{};let t=window.matchMedia(z);e(t.matches);let o=n=>e(n.matches);return t.addEventListener("change",o),()=>t.removeEventListener("change",o)}export{W as DEFAULT_PARAGRAPH_FLASH_COLOR,on as DEFAULT_PARAGRAPH_FLASH_DURATION_MS,b as DEFAULT_SELECTION_STYLE,Wo as HIGH_CONTRAST_SELECTION_STYLE,d as NAVIGATION_SHORTCUTS,y as PARAGRAPH_FLASH_CLASS_NAME,Go as SELECTION_CSS_VARS,en as areSelectionStylesInjected,Qo as clearSelection,tn as createSelectionChangeHandler,u as describeShortcut,ko as excludeFontsByName,_o as expandSelectionToWord,S as extendSelectionTo,k as findNextWordStart,G as findParagraphFragmentsByParaId,v as findPreviousWordStart,H as findVisualLineEnd,D as findVisualLineStart,Ho as findWordEnd,Do as findWordStart,U as flashParagraphElements,sn as flashParagraphFragmentsByParaId,zo as generateSelectionCSS,Uo as getHighlightRectStyle,I as getMergedSelectionRects,Bo as getNavigationShortcutDescriptions,No as getRenderableDocumentFonts,jo as getSelectedText,Xo as getSelectionBoundingRect,Lo as getSelectionInfo,R as getSelectionRects,Io as getWordAtCursor,Oo as handleNavigationKey,$o as hasActiveSelection,Yo as highlightTextRange,Zo as injectSelectionStyles,Mo as isNavigationKey,vo as isPunctuation,K as isSelectionBackwards,Vo as isSelectionWithin,C as isWhitespace,f as isWordCharacter,Ko as matchesShortcut,_ as mergeAdjacentRects,L as moveByWord,O as moveToLineEdge,Jo as normalizeSelectionDirection,M as parseNavigationAction,cn as prefersColorSchemeDark,ln as readDocxFileFromInput,B as removeSelectionStyles,dn as resolveIsDark,qo as selectRange,N as selectRenderableFonts,x as setSelectionPosition,un as subscribeSystemDark};