PageSourceSearch

https://hemingwayapp.com/_next/static/chunks/3s2z8b2-cphkz.js

js hemingwayapp.com collected 2026-10-01 08:22:07 UTC 38,167 bytes, 5 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="7c1fb188-3c49-cf16-e5af-dd1d7358d616")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57619,e=>{"use strict";var t=e.i(843476),r=e.i(186336),s=(0,e.i(593211).default)("help-circle","IconHelpCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]]),i=e.i(756362),a=e.i(102305);e.s(["default",0,({accessibleLabel:e,className:n,content:l,iconSize:o=14,iconVariant:d="help"})=>{let g="info"===d?i.IconInfoCircle:s;return(0,t.jsx)(r.Provider,{delayDuration:0,children:(0,t.jsxs)(r.Root,{children:[(0,t.jsx)(r.Trigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button","aria-label":e,className:(0,a.default)("inline-flex shrink-0 items-center justify-center rounded-full text-gray-600 outline-none transition-colors hover:text-gray-900 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 dark:text-slate-300 dark:hover:text-white dark:focus-visible:ring-offset-slate-900",n),children:(0,t.jsx)(g,{"aria-hidden":!0,size:o})})}),(0,t.jsx)(r.Portal,{children:(0,t.jsxs)(r.Content,{side:"top",sideOffset:6,className:"z-50 max-w-64 rounded bg-gray-900 px-2 py-1 text-xs leading-relaxed text-white shadow-lg dark:bg-slate-900",children:[l,(0,t.jsx)(r.Arrow,{className:"fill-gray-900 dark:fill-slate-900"})]})})]})})}],57619)},97065,e=>{"use strict";var t=e.i(843476),r=e.i(102305);e.s(["default",0,({ariaLabel:e,className:s,onChange:i,options:a,tone:n="default",value:l})=>(0,t.jsx)("div",{"aria-label":e,"aria-orientation":"horizontal",role:"tablist",className:(0,r.default)("flex flex-row justify-between rounded border-2 text-gray-800 dark:text-slate-200","default"===n&&"border-gray-300 bg-gray-300 dark:border-slate-700 dark:bg-slate-700","darker"===n&&"border-gray-400 bg-gray-400 dark:border-slate-800 dark:bg-slate-800",s),children:a.map(e=>(0,t.jsx)("button",{"aria-selected":l===e.value,className:(0,r.default)("text-sm","cursor-pointer hover:underline","px-2 py-1 rounded-sm",l!==e.value&&"text-gray-600 dark:text-slate-400",l===e.value&&"default"===n&&"bg-gray-100 dark:bg-slate-800",l===e.value&&"darker"===n&&"bg-gray-200 dark:bg-slate-900"),onClick:()=>i(e.value),role:"tab",type:"button",children:e.label},e.value))})])},333756,e=>{"use strict";var t=e.i(843476),r=e.i(102305),s=e.i(541424),i=e.i(348978);e.s(["default",0,function({acceptDisabled:e,closeDisabled:a=!1,forceStacked:n,onAccept:l,onClose:o,refreshControl:d,showAccept:g,sticky:c}){return(0,t.jsxs)("div",{className:(0,r.default)("-mx-3 flex flex-col gap-2 border-t border-slate-200 bg-white px-3 pt-3 dark:border-slate-600 dark:bg-slate-700 sm:-mx-4 sm:px-4",!n&&"sm:flex-row sm:justify-end",c?"sticky bottom-0 mt-4":"mt-3 flex-shrink-0"),children:[(0,t.jsx)(i.default,{className:"justify-center whitespace-normal",disabled:a,onClick:o,type:"button",children:"Close"}),d,g&&(0,t.jsx)(i.default,{buttonColor:"primary",className:"justify-center whitespace-normal",disabled:e,Icon:s.IconCheck,onClick:l,type:"button",children:"Use suggestion"})]})}])},812510,94300,e=>{"use strict";var t=e.i(843476),r=e.i(102305),s=e.i(271645),i=e.i(756771),a=e.i(507576);let n=()=>()=>void 0,l=()=>!0,o=()=>!1;e.s(["default",0,({comparisonPassage:e,display:d,passage:g,side:c})=>{let u=(0,s.useSyncExternalStore)(n,l,o),h=(0,s.useMemo)(()=>{if(!u)return g.rendered.sanitizedHtml;if(!e)return(0,a.addSemanticHighlightsToMarkdownPassage)({passage:g.rendered,ranges:g.rendered.parsed.blocks.map(e=>e.visibleRange),side:c});let t="original"===c?g:e,r="generated"===c?g:e,s=(0,i.getSemanticMarkdownDiff)({left:t.rendered.parsed,right:r.rendered.parsed});return(0,a.addSemanticHighlightsToMarkdownPassage)({passage:g.rendered,ranges:"original"===c?s.leftRanges:s.rightRanges,side:c})},[u,e,g,c]);return(0,t.jsx)("div",{className:(0,r.default)("[&>:first-child]:mt-0","inline"===d&&"inline"),dangerouslySetInnerHTML:{__html:"inline"===d&&h.trim().match(/^<p>(.*)<\/p>$/)?h.trim().replace(/^<p>(.*)<\/p>$/,'<span class="inline">$1</span>'):h}})}],812510);var d=e.i(929791),g=e.i(614339);e.s(["areAiContentPassagesSemanticallyEqual",0,({left:e,right:t})=>"plain-text"===e.format||"plain-text"===t.format?e.visibleText===t.visibleText:e.visibleText===t.visibleText&&JSON.stringify(e.rendered.parsed.blocks)===JSON.stringify(t.rendered.parsed.blocks),"createAiContentPassage",0,({format:e,rawText:t})=>{let r="markdown-inline"===e?"inline":"markdown-block"===e?"block":(0,g.getAutomaticMarkdownPassageMode)({markdown:t}),s=(0,g.parseMarkdownPassage)({markdown:t,mode:r});return{format:e,rawText:t,rendered:s,visibleText:(0,d.getVisibleTextForAiText)({format:e,text:t})}},"isAiContentPassageEmpty",0,e=>0===e.visibleText.trim().length],94300)},507576,e=>{"use strict";let t={generated:["bg-green-200","dark:bg-green-700","text-green-950","dark:text-green-100"],original:["bg-red-200","dark:bg-red-700","text-red-950","dark:text-red-100"]},r=({classes:e,document:t,html:r,ranges:s})=>{if(void 0===globalThis.DOMParser)return r;let i=new globalThis.DOMParser().parseFromString(r,"text/html");return(({classes:e,document:t,ranges:r,root:s})=>{if(0===r.length)return;let i=s.ownerDocument.defaultView?.NodeFilter.SHOW_TEXT??4,a=s.ownerDocument.createTreeWalker(s,i),n=[];for(;a.nextNode();)n.push(a.currentNode);let l=0;
2n.forEach(i=>{for(;"\n"===t.visibleText[l];)l+=1;let a=l,n=a+i.data.length,o=r.map(e=>({from:Math.max(e.from,a),to:Math.min(e.to,n)})).filter(e=>e.to>e.from);if(o.length>0){let t=s.ownerDocument.createDocumentFragment(),r=0;o.forEach(n=>{let l=n.from-a,o=n.to-a;t.append(i.data.slice(r,l));let d=s.ownerDocument.createElement("span");d.classList.add(...e),d.textContent=i.data.slice(l,o),t.append(d),r=o}),t.append(i.data.slice(r)),i.replaceWith(t)}l=n})})({classes:e,document:t,ranges:s,root:i.body}),i.body.innerHTML};e.s(["addSemanticHighlightsToMarkdownPassage",0,({passage:e,ranges:s,side:i})=>r({classes:t[i],document:e.parsed,html:e.sanitizedHtml,ranges:s}),"addSemanticHighlightsToSanitizedHtml",0,r])},171578,16535,e=>{"use strict";var t=e.i(843476),r=e.i(102305);let s={box:"bg-sky-200 dark:bg-sky-800",text:"text-sky-9000 dark:text-sky-100",count:"bg-sky-400 dark:bg-sky-600",focus:"focus:ring-sky-400 dark:focus:ring-sky-600"},i={box:"bg-lime-200 dark:bg-lime-800",text:"text-lime-9000 dark:text-lime-100",count:"bg-lime-400 dark:bg-lime-600",focus:"focus:ring-lime-400 dark:focus:ring-lime-600"},a={adverb:s,filler:s,hiddenAction:s,intensifier:s,negativeOrIndirect:s,passive:s,qualifier:s,weakVerbUse:s,weakeners:s,grammar:i,writingIssue:{...i,focus:""},complex:{box:"bg-violet-200 dark:bg-violet-800",text:"text-violet-900 dark:text-violet-100",count:"bg-violet-400 dark:bg-violet-600",focus:"focus:ring-violet-400 dark:focus:ring-violet-600"},hard:{box:"bg-yellow-200 dark:bg-yellow-800",text:"text-yellow-900 dark:text-yellow-100",count:"bg-yellow-400 dark:bg-yellow-600",focus:"focus:ring-yellow-400 dark:focus:ring-yellow-600"},veryHard:{box:"bg-red-200 dark:bg-red-800",text:"text-red-900 dark:text-red-100",count:"bg-red-400 dark:bg-red-600",focus:"focus:ring-red-400 dark:focus:ring-red-600"}};e.s(["getHighlightCommentary",0,({count:e,sentenceCount:t,paragraphCount:r,type:s})=>{let i=Math.round(r/3),a=Math.round(t/5);switch(s){case"grammar":return" spelling or grammar issue"+(1!==e?"s.":".")+(0===e?" Well done.":"");case"writingIssue":return" writing issue"+(1!==e?"s.":".")+(0===e?" Nice work.":"");case"weakeners":return" weakener"+(1===e?"":"s")+"."+(0===e?" Nice work.":"");case"complex":return` word${1===e?"":"s"} with${1===e?" a":""} simpler alternative${1===e?"":"s"}.`;case"adverb":return" adverb"+(1!==e?"s":"")+". "+(e<=i?"Well done.":`Aim for ${i} or fewer.`);case"passive":return" use"+(1===e?"":"s")+" of passive voice. "+(e<=a?"Nice work.":`Cut to ${a} or fewer.`);case"qualifier":return` qualifier${1===e?"":"s"} (e.g. "I think" or "maybe").`;case"intensifier":return` intensifier${1===e?"":"s"}.`;case"weakVerbUse":return` weak verb use${1===e?"":"s"}.`;case"filler":return` filler${1===e?"":"s"}.`;case"hiddenAction":return` hidden action${1===e?"":"s"}.`;case"negativeOrIndirect":return` negative or indirect phrase${1===e?"":"s"}.`;default:return` of ${t} sentences `+(1===e?"is ":"are ")+("veryHard"===s?"very ":"")+"hard to read."}},"highlightPalette",0,a],16535),e.s(["default",0,({children:e,isDimmed:s,isLoading:i,type:n})=>(0,t.jsx)("div",{className:(0,r.default)("group","rounded p-2",s&&"opacity-40 hover:opacity-70",a[n].box,i&&"animate-pulse"),children:e})],171578)},329493,e=>{"use strict";var t=e.i(843476),r=e.i(57619),s=e.i(593211),i=(0,s.default)("exclamation-circle","IconExclamationCircle",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 9v4",key:"svg-1"}],["path",{d:"M12 16v.01",key:"svg-2"}]]),a=e.i(102305),n=e.i(701350),l=(0,s.default)("eye-closed","IconEyeClosed",[["path",{d:"M21 9c-2.4 2.667 -5.4 4 -9 4c-3.6 0 -6.6 -1.333 -9 -4",key:"svg-0"}],["path",{d:"M3 15l2.5 -3.8",key:"svg-1"}],["path",{d:"M21 14.976l-2.492 -3.776",key:"svg-2"}],["path",{d:"M9 17l.5 -4",key:"svg-3"}],["path",{d:"M15 17l-.5 -4",key:"svg-4"}]]),o=e.i(16535);let d=({disabled:e=!1,isEnabled:r,onVisibilityChange:s,type:i})=>(0,t.jsx)("button",{className:(0,a.default)("inline h-fit opacity-50 group-hover:opacity-100 flex-row items-center focus:outline-none focus:ring whitespace-nowrap",o.highlightPalette[i].focus),disabled:e,onClick:()=>s({type:i,isEnabled:!r}),children:r?(0,t.jsx)(n.IconEye,{className:"h-4 w-4"}):(0,t.jsx)(l,{className:"h-4 w-4"})});e.s(["default",0,({count:e,isEnabled:s,isDimmed:n=!1,isToggleDisabled:l=!1,grammarLimitExceeded:g=!1,onVisibilityChange:c,paragraphCount:u,sentenceCount:h,helpLabel:p,helpText:f,size:m="md",type:b})=>(0,t.jsxs)("div",{className:(0,a.default)("flex flex-row space-x-1","sm"===m?"text-xs":"text-sm",n&&"opacity-40 hover:opacity-70",o.highlightPalette[b].text),children:[(0,t.jsxs)("p",{className:"flex-1",children:[(0,t.jsx)("span",{className:(0,a.default)("font-bold","rounded-sm","inline-flex justify-center items-center",g?"px-[2px]":"px-1",g&&"pb-[2px] mr-1 flex-row items-center",o.highlightPalette[b].count),children:g?(0,t.jsx)(i,{className:"inline",size:16}):(0,t.jsx)("span",{children:e})}),g&&"Your document is too long for a grammar check.",!g&&(0,o.getHighlightCommentary)({count:e,paragraphCount:u,sentenceCount:h,type:b}),p&&f&&(0,t.jsx)(r.default,{accessibleLabel:p,className:"ml-1 align-middle",content:f})]}),(0,t.jsx)(d,{disabled:l,isEnabled:s,onVisibilityChange:c,type:b})]})],329493)},270979,e=>{"use strict";var t=(0,e.i(593211).default)("caret-down-filled","IconCaretDownFilled",[["path",{d:"M18 9c.852 0 1.297 .986 .783 1.623l-.076 .084l-6 6a1 1 0 0 1 -1.32 .083l-.094 -.083l-6 -6l-.083 -.094l-.054 -.077l-.054 -.096l-.017 -.036l-.027 -.067l-.032 -.108l-.01 -.053l-.01 -.06l-.004 -.057v-.118l.005 -.058l.009 -.06l.01 -.052l.032 -.108l.027 -.067l.07 -.132l.065 -.09l.073 -.081l.094 -.083l.077 -.054l.096 -.054l.036 -.017l.067 -.027l.108 -.032l.053 -.01l.06 -.01l.057 -.004l12.059 -.002z",fill:"
2currentColor",key:"svg-0",strokeWidth:"0"}]]);e.s(["IconCaretDownFilled",0,t],270979)},460199,e=>{"use strict";var t=(0,e.i(593211).default)("external-link","IconExternalLink",[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]]);e.s(["IconExternalLink",0,t],460199)},715335,e=>{"use strict";var t=(0,e.i(593211).default)("help","IconHelp",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 17l0 .01",key:"svg-1"}],["path",{d:"M12 13.5a1.5 1.5 0 0 1 1 -1.5a2.6 2.6 0 1 0 -3 -4",key:"svg-2"}]]);e.s(["IconHelp",0,t],715335)},60669,e=>{"use strict";var t=(0,e.i(593211).default)("logout","IconLogout",[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]]);e.s(["IconLogout",0,t],60669)},413913,e=>{"use strict";e.s(["default",0,function(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}])},65433,410160,307703,e=>{"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}e.s(["default",()=>t],410160),e.s(["default",0,r],307703),e.s(["default",0,function(e){r(1,arguments);var s=Object.prototype.toString.call(e);return e instanceof Date||"object"===t(e)&&"[object Date]"===s?new Date(e.getTime()):"number"==typeof e||"[object Number]"===s?new Date(e):(("string"==typeof e||"[object String]"===s)&&"u">typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}],65433)},929791,e=>{"use strict";var t=e.i(614339);e.s(["AI_TEXT_FORMATS",0,["plain-text","markdown-inline","markdown-block"],"getVisibleTextForAiText",0,({format:e,text:r})=>"plain-text"===e?r:(0,t.parseMarkdownPassage)({markdown:r,mode:"markdown-inline"===e?"inline":"block"}).visibleText])},86725,e=>{"use strict";var t=e.i(408155);e.s(["createRewriteSessionStore",0,({sessionId:e,createId:r,outputTextFormat:s="plain-text",isComparison:i=!1,isRepromptingEnabled:a=!1})=>(0,t.createStore)()((t,n)=>{let l=({initial:l,repromptType:o})=>{let d=n();if("open"!==d.status||l&&d.history.length>0)return[];let g=r(),c=l?"initial":o??"try-again",u=d.history.map(e=>({type:e.repromptType,output:e.primary.output})).filter(e=>e.output.trim().length>0),h=(i?["primary","comparison"]:["primary"]).map(t=>({sessionId:e,generationId:g,requestId:r(),lane:t,format:s,rejections:("primary"===t?d.generations:d.generationsAlt).slice(-3),...a&&!i&&!l&&u.length>0?{repromptType:c,repromptHistory:u}:{}}));return t({history:[...d.history.map(e=>({...e,primary:"loading"===e.primary.status?{...e.primary,status:"canceled"}:e.primary,comparison:e.comparison?.status==="loading"?{...e.comparison,status:"canceled"}:e.comparison})),{id:g,repromptType:c,primary:{request:h[0],output:"",status:"loading"},...h[1]?{comparison:{request:h[1],output:"",status:"loading"}}:{}}],generations:[...d.generations,""],generationsAlt:i?[...d.generationsAlt,""]:d.generationsAlt,repromptTypesByGeneration:[...d.repromptTypesByGeneration,c],currentGenerationIndex:l?0:Math.max(d.currentGenerationIndex+1,d.generations.length),isLoading:!0,isLoadingAlt:i,error:null}),h};return{sessionId:e,outputTextFormat:s,isComparison:i,isRepromptingEnabled:a,status:"open",history:[],generations:[],generationsAlt:[],repromptTypesByGeneration:[],currentGenerationIndex:0,isLoading:!1,isLoadingAlt:!1,error:null,start:()=>l({initial:!0}),refresh:(e={})=>l({initial:!1,...e}),receive:e=>t(t=>(({state:e,event:t})=>{if("open"!==e.status||t.request.sessionId!==e.sessionId)return e;let r=e.history.findIndex(e=>e.id===t.request.generationId),s=e.history[r],i=s?.[t.request.lane];if(!i||"loading"!==i.status||i.request.requestId!==t.request.requestId)return e;let a="error"===t.type?{...i,status:"error"}:{...i,output:"plain-text"===e.outputTextFormat?t.output.trim():t.output,status:"complete"===t.type?"complete":"loading"},n=e.history.slice();n[r]={...s,[t.request.lane]:a};let l="primary"===t.request.lane,o=(l?e.generations:e.generationsAlt).slice();return o[r]=a.output,{...e,history:n,generations:l?o:e.generations,generationsAlt:l?e.generationsAlt:o,isLoading:l?"loading"===a.status:e.isLoading,isLoadingAlt:l?e.isLoadingAlt:"loading"===a.status,error:"error"===t.type?t.error:"output"===t.type||a.output!==i.output?null:e.error}})({state:t,event:e})),selectGeneration:({index:e})=>{let r=n();"open"===r.status&&Number.isFinite(e)&&t({currentGenerationIndex:Math.max(0,Math.min(Math.trunc(e),r.history.length-1))})},close:()=>{"open"===n().status&&t({status:"closed",history:[],generations:[],generationsAlt:[],repromptTypesByGeneration:[],currentGenerationIndex:0,isLoading:!1,isLoadingAlt:!1,error:null})},dispose:()=>{n().close(),t({status:"disposed"})}}})],86725)},269482,742512,e=>{"use strict";e.s(["getSelectionToolVisibility",0,({contentStats:e,crossesSentenceBoundaries:t,emptySelectionBehavior:r="whole-document",hasEmptySelection:s,selectionClassification:i,selectionWordLimit:a})=>{let n=e.words>a,l=e.words>=1e4,o=!1,d=!1;if(s)"whole-document"===r&&(d=!n&&(e.words>=10||e.sentences>1));else if(i?.isBlockMapReady){let e=i.isMultiSentence||i.isCrossBlock,t=i.isEffectivelyFullSentence||e,r=!i.isEffectivelyFullSentence&&!e;d=!n&&t,o=!l&&r}else{let e=l||!!t;o=!e,d=!n&&e}return{aiToolsDisabledReason:d?null:n?"tooLong":"tooShort",canShowAiTools:d,canShowSynonyms:o}}],269482);var t=e.i(731704);let r=[{id:"simplify-bulk",label:"Simplify",group:"fix"},{id:t.RewriteType.polish,label:"Polish and clarify",group:"fix"},{id:t.RewriteType.shorten,label:"Shorten it",group:"length"},{id:t.RewriteType["add-detail"],label:"Add detail",group:"length"},{id:t.RewriteType.confident,label:"More confident",group:"tone"},{id:t.RewriteType.friendly,label:"More friendly",group:"tone"},{id:t.RewriteType.casual,label:"More casual",group:"tone"},{id:t.RewriteType.formal,label:"More professional",group:"tone"},{id:t.RewriteType.persuasive,label:"More persuasive",group:"tone"},{id:t.RewriteType["creative-rephrase"],label:"Creative rephrase",group:"rephrase"},{id:t.RewriteType.format,label:"Add headings, bullets, and bolding",group:"format"},{id:t.RewriteType.custom,label:"Custom instructions",group:"custom"},{id:"synonyms",label:"Synonyms",group:"word"}];e.s(["SELECTION_TOOL_METADATA",0,r,"getSelectionToolLabel",0,({id:e})=>r.find(t=>
2t.id===e)?.label??e],742512)},731416,e=>{"use strict";var t=e.i(851701),r=e.i(415279),s=e.i(184806),i=e.i(50270);let a=i.z.literal(1),n=i.z.enum(["adverb","complex","filler","grammar","hiddenAction","intensifier","negativeOrIndirect","passive","qualifier","weakVerbUse","hard","veryHard"]),l=i.z.object({range:t.blockTextUtf16RangeSchema,label:i.z.string().min(1).max(200),replacementText:i.z.string().max(1e6),type:i.z.enum(["omit","replace"])}).strict(),o=i.z.enum(["correct_inline","sentence_rewrite"]),d=i.z.object({categoryId:t.opaqueIdSchema.optional(),subtype:t.opaqueIdSchema.optional(),reasoning:i.z.string().max(1e5).optional(),resolutionType:o.optional(),suggestedRewrite:i.z.string().max(1e6).optional()}).strict().superRefine((e,t)=>{"correct_inline"===e.resolutionType&&void 0===e.suggestedRewrite&&t.addIssue({code:i.z.ZodIssueCode.custom,message:"Inline writing corrections require a suggested rewrite.",path:["suggestedRewrite"]}),"sentence_rewrite"===e.resolutionType&&void 0!==e.suggestedRewrite&&t.addIssue({code:i.z.ZodIssueCode.custom,message:"Sentence rewrites cannot define an inline replacement.",path:["suggestedRewrite"]})}),g={contractVersion:a,sourceIssueId:t.opaqueIdSchema,documentId:t.opaqueIdSchema,blockId:t.opaqueIdSchema,range:t.blockTextUtf16RangeSchema,text:i.z.string().max(1e6)},c=i.z.object({...g,sourceFamily:i.z.literal("classicParser"),issueKey:n,staticEdits:i.z.array(l).max(100).optional()}).strict(),u=i.z.object({...g,sourceFamily:i.z.literal("writingFeedback"),issueKey:i.z.literal("writingIssue"),writingFeedback:d.optional()}).strict(),h=i.z.discriminatedUnion("sourceFamily",[c,u]).superRefine((e,t)=>{e.range.endOffset-e.range.startOffset!==e.text.length&&t.addIssue({code:i.z.ZodIssueCode.custom,message:"The issue range length must equal the issue text's UTF-16 length.",path:["text"]})});function p(e){return e&&"object"==typeof e&&!Object.isFrozen(e)&&(Object.values(e).forEach(p),Object.freeze(e)),e}function f(e){return Array.isArray(e)?e.map(f):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,f(t)])):e}e.s(["createClassicAnalysisEngine",0,function({parse:e=r.parseBlockTextContent}={}){let i,a=null,n=new Map,l=!1,o=!1,d=new Set;return{port:Object.freeze({getCurrent:()=>a,subscribe(e){if(l)throw Error("Classic analysis is disposed");return d.add(e),()=>{d.delete(e)}}}),reconcile(r){if(l||o)throw Error("Classic analysis is unavailable");let g=a?.documentId===r.documentId,c=new Set;if(!(0,t.safeParseOpaqueId)(r.documentId).success||!Number.isSafeInteger(r.revision)||r.revision<0||g&&r.revision<=a.revision||!["NORMAL","ACCESSIBLE","TECHNICAL"].includes(r.parserSettings.readingLevelTarget)||r.blocks.some(e=>!!(!(0,t.safeParseOpaqueId)(e.id).success||c.has(e.id))||"string"!=typeof e.text||"string"!=typeof e.type||!e.type||(c.add(e.id),!1)))throw Error("Invalid classic document snapshot");let u=new Map,m=[],b=i===r.parserSettings.readingLevelTarget,y=r.blocks.map(t=>{let s=g&&b?n.get(t.id):void 0;if(s&&s.text===t.text&&s.type===t.type)return u.set(t.id,s),s;let i=f(e({blockId:t.id,textContent:t.text,parserSettings:r.parserSettings})),a=function({documentId:e,blockId:t,result:r,text:s}){if(r.id!==t||r.text!==s)throw Error("Invalid classic parser result");return[...r.issues??[],...r.children.flatMap(e=>e.issues)].map((r,i)=>{if("writingIssue"===r.subType||"grammar"===r.subType||void 0!==r.blockId&&r.blockId!==t)throw Error("Invalid classic parser issue");let a={contractVersion:1,sourceIssueId:`classic:${r.subType}:${r.offsetInBlock}:${i}`,documentId:e,blockId:t,sourceFamily:"classicParser",issueKey:r.subType,range:{coordinateSpace:"block-text-utf16",startOffset:r.offsetInBlock,endOffset:r.offsetInBlock+r.text.length},text:r.text,...r.staticSuggestions?{staticEdits:r.staticSuggestions.map(e=>({range:{coordinateSpace:"block-text-utf16",startOffset:e.editStartOffset,endOffset:e.editEndOffset},label:e.label,replacementText:e.replacementText,type:e.type}))}:{}};return!function({facts:e,documentId:t,blockId:r,text:s}){if(!h.safeParse(e).success||e.documentId!==t||e.blockId!==r||e.range.endOffset>s.length||s.slice(e.range.startOffset,e.range.endOffset)!==e.text||e.staticEdits?.some(e=>e.range.endOffset>s.length))throw Error("Invalid classic source facts")}({facts:a,documentId:e,blockId:t,text:s}),a})}({documentId:r.documentId,blockId:t.id,result:i,text:t.text}),l=p({id:t.id,type:t.type,text:t.text,result:i,sourceFacts:a});
2return u.set(t.id,l),m.push(t.id),l}),x=p({documentId:r.documentId,revision:r.revision,blocks:y,changedBlockIds:m,removedBlockIds:[...n.keys()].filter(e=>!g||!u.has(e)),stats:(0,s.getDocumentStats)(y.map(e=>e.result),r.parserSettings)});n=u,i=r.parserSettings.readingLevelTarget,a=x,o=!0;try{for(let e of[...d])try{e()}catch{}}finally{o=!1}return x},copyChangedBlocks(){if(l)throw Error("Classic analysis is disposed");return(a?.changedBlockIds??[]).map(e=>f(n.get(e).result))},dispose(){l=!0,a=null,n.clear(),d.clear()}}}],731416)},878194,e=>{"use strict";let t="[.?!]{1,2}[\"”'\\)]?(?:\\s|$)|\\n+",r=RegExp("\\b(\\.\\.)$"),s=RegExp("\\b(Mr|Ms|Mrs|Dr|Col|Sgt|Lt|Adm|Maj|Sen|Rep|Pvt|Cpl|Capt|Gen|Gov|Rev|M|Mme|Prof|Pres|Hon)$"),i=RegExp("\\b(U\\.S|Jan|Feb|Apr|Mar|Jun|Jul|Aug|Sep|Sept|Oct|Nov|Dec|Ave|St|inc|Inc|Corp|Co|Dept|Univ|Ft|Mt|ft|mg|oz|Jr|Sr|ltd|Ltd|etc|vs|e\\.g|i\\.e|a\\.m|p\\.m|Rd|Blvd|et al|Ph\\.D)$"),a=RegExp("\\b(p|pp|Fig|Figs|Eq|Ch|Sec|No|Nos|Vol|Vols|Apt|Ste)$"),n=/(?:^|\s)((?:[A-Z]\.)+[A-Z])$/,l=/(?:^|\s)[A-Z]$/,o=/^\s*(?:\d+|[A-Za-z])$/,d="(?:\\d+(?:\\.\\d+)*(?:[A-Za-z]+)?|[A-Za-z]+\\d+[A-Za-z0-9]*)",g=`(?:${d}|[IVXLCDMivxlcdm]{2,}|[A-Za-z])`,c=`${g}(?:[–—-]${g})?`,u=`${d}(?:[–—-]${d})?`,h=RegExp(`^\\s*((?:\\(${c}\\)|${c}))(?=$|[\\s,.;:()\\[\\]])`),p=RegExp(`^\\s*((?:\\(${c}\\)|${u}))(?=$|[\\s,.;:()\\[\\]])`),f=String.raw`\s*(?:(?:\(|\[|\{|["'“‘])\s*)*`,m=RegExp(`^${f}[–—-]?\\s*(?:[\\p{Ll}]|\\d)`,"u"),b=/^\s*\(\d{4}[a-z]?\)/,y=RegExp(`^${f}([\\p{Lu}][\\p{L}\\p{M}'’\\-]*)(?=$|[\\s,;:()\\[\\]"'”’])`,"u"),x=RegExp(`^${f}[A-Z]$`),v=new Set(["A","An","And","But","He","Her","Here","His","How","However","I","It","Its","My","Next","Our","She","That","The","Their","Then","There","These","They","This","Those","We","What","When","Where","Which","Who","Whose","Why","You","Your"]),k=new Set(["D.C","Dept","E.U","Ft","Mt","Ph.D","St","U.K","U.S","Univ","vs"]),S=new Set(["D.C","E.U","U.K"]),w=e=>{let t=e.match(y)?.[1];return!!(t&&!v.has(t))},T=({abbreviation:e,followingSubstring:t})=>!!(m.test(t)||"et al"===e&&b.test(t))||(({abbreviation:e,followingSubstring:t})=>{if(k.has(e))return w(t);let r=t.match(y)?.[1];return"Co"===e&&"Ltd"===r})({abbreviation:e,followingSubstring:t}),I=({childIndex:e,substrings:t})=>{let d=t[e],g=t[e+2],c=t[e-1],u=(0===e||c?.includes("\n"))&&o.test(d)?{stopAfterFollowingSubstring:!1}:g?(({followingSubstring:e,substring:t})=>{if(t.match(s)?.[1])return x.test(e)||w(e)?{stopAfterFollowingSubstring:!1}:null;let o=t.match(i)?.[1];if(o)return T({abbreviation:o,followingSubstring:e})?{stopAfterFollowingSubstring:!1}:null;let d=t.match(n)?.[1];if(d&&S.has(d))return T({abbreviation:d,followingSubstring:e})?{stopAfterFollowingSubstring:!1}:null;let g=t.match(a)?.[1];if(g){let t=(({abbreviation:e,followingSubstring:t})=>t.match("No"===e||"Nos"===e?p:h))({abbreviation:g,followingSubstring:e});return t?{stopAfterFollowingSubstring:e.trim()===t[1]}:null}return l.test(t)?w(e)?{stopAfterFollowingSubstring:!1}:null:r.test(t)?{stopAfterFollowingSubstring:!1}:null})({followingSubstring:g,substring:d}):null;return u&&t[e+1]&&g&&(d+=t[e+1],u.stopAfterFollowingSubstring?d+=g:t[e+3]&&t[e+4]?d+=I({childIndex:e+2,substrings:t}):d+=t[e+2],t[e+1]="",t[e+2]=""),d};e.s(["buildEditorSentenceBoundaries",0,({sourceText:e})=>{let r=RegExp(t,"g"),s=RegExp(`(${t})`,"g"),i=e.split(s),a=[],n=0;for(let e=0;e<i.length;e+=1){let t=i[e];if(!t.match(r)&&t.trim().length>0){t=I({childIndex:e,substrings:i});let s=i.slice(e+1).find(e=>e.match(r));a.push({endingPunctuation:s?.trim()||"",offsetInBlock:n,text:t})}n+=t.length}return a}])},184806,e=>{"use strict";var t,r=((t={}).normal="normal",t.hard="hard",t.veryHard="veryHard",t);let s={ACCESSIBLE:{tooFewWordCount:8,hardReadabilityLevel:8,veryHardReadabilityLevel:12},NORMAL:{tooFewWordCount:14,hardReadabilityLevel:10,veryHardReadabilityLevel:14},TECHNICAL:{tooFewWordCount:14,hardReadabilityLevel:14,veryHardReadabilityLevel:18}},i=({parserSettings:e,readingLevel:t,words:r})=>{let{tooFewWordCount:i,hardReadabilityLevel:a,veryHardReadabilityLevel:n}=(({parserSettings:e})=>s[e.readingLevelTarget]||s.NORMAL)({parserSettings:e});return r<i?"normal":t>=a&&t<n?"hard":t>=n?"veryHard":"normal"},a=({letters:e,sentences:t,words:r})=>0===r||0===t?0:Math.max(Math.round(e/r*4.71+r/t*.5-21.43),0),n=({paragraph:e,getStatFromSentence:t})=>e.children.reduce((e,r)=>e+t(r),0),l=({issues:e,type:t})=>e.filter(e=>e.subType===t).length,o=({paragraphs:e,parserSettings:t,getStatFromParagraph:r})=>e.reduce((e,s)=>e+r(s,t),0);e.s(["READABILITY_LEVELS",()=>r,"READABILITY_THRESHOLDS",0,s,"getDocumentStats",0,(e,t)=>{let r=o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.words}),s=o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.letters}),n=o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.sentences}),l=a({letters:s,sentences:n,words:r}),d=i({readingLevel:l,parserSettings:t,words:r});return{characters:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.characters}),highlights:{adverbs:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.adverbs}),complexWords:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.complexWords}),fillers:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.fillers}),grammarIssues:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.grammarIssues}),hardSentences:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.hardSentences}),hiddenActions:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.hiddenActions}),intensifiers:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.intensifiers}),negativeOrIndirectPhrases:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.negativeOrIndirectPhrases}),passiveVoices:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.passiveVoices}),qualifiers:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.qualifiers}),veryHardSentences:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.veryHardSentences}),weakVerbUses:o({paragraphs:e,parserSettings:t,getStatFromParagraph:e=>e.stats.highlights.weakVerbUses})},letters:s,paragraphs:e.length,readability:d,readingLevel:l,readingTimeInSecs:r/250*60,sentences:n,words:r}},"getParagraphStats",0,(e,t)=>{let r=e.children.length,s=n({paragraph:e,getStatFromSentence:e=>e.stats.words}),l=n({paragraph:e,getStatFromSentence:e=>e.stats.letters}),o=a({letters:l,words:s,sentences:r}),d=i({parserSettings:t,words:s,readingLevel:o});return{characters:e.text.length,highlights:{adverbs:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.adverbs}),complexWords:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.complexWords}),fillers:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.fillers}),grammarIssues:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.grammarIssues})+(e.issues??[]).filter(e=>"grammar"===e.subType).length,hardSentences:e.children.filter(e=>"hard"===e.stats.readability).length,hiddenActions:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.hiddenActions}),intensifiers:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.intensifiers}),negativeOrIndirectPhrases:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.negativeOrIndirectPhrases}),passiveVoices:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.passiveVoices}),qualifiers:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.qualifiers}),veryHardSentences:e.children.filter(e=>"veryHard"===e.stats.readability).length,weakVerbUses:n({paragraph:e,getStatFromSentence:e=>e.stats.highlights.weakVerbUses})},letters:l,readability:d,readingLevel:o,sentences:r,words:s}},"getSentenceHighlightStats",0,e=>({adverbs:l({issues:e.issues,type:"adverb"}),complexWords:l({issues:e.issues,type:"complex"}),fillers:l({issues:e.issues,type:"filler"}),grammarIssues:l({issues:e.issues,type:"grammar"}),hardSentences:+("hard"===e.stats.readability),hiddenActions:l({issues:e.issues,type:"hiddenAction"}),intensifiers:l({issues:e.issues,type:"intensifier"}),negativeOrIndirectPhrases:l({issues:e.issues,type:"negativeOrIndirect"}),passiveVoices:l({issues:e.issues,type:"passive"}),qualifiers:l({issues:e.issues,type:"qualifier"}),veryHardSentences:+("veryHard"===e.stats.readability),weakVerbUses:l({issues:e.issues,type:"weakVerbUse"})}),"getSentenceStatsWithoutHighlights",0,(e,t)=>{let r=e.children.length,s=(e=>{let t=0;for(let r of e){let e=r.text.match(/\w/g);e&&(t+=e.length)}return t})(e.children),n=a({letters:s,words:r,sentences:1}),l=i({parserSettings:t,readingLevel:n,words:r});return{characters:e.text.length,highlights:{adverbs:0,complexWords:0,fillers:0,grammarIssues:0,hardSentences:0,hiddenActions:0,intensifiers:0,negativeOrIndirectPhrases:0,passiveVoices:0,qual
2ifiers:0,veryHardSentences:0,weakVerbUses:0},letters:s,readability:l,readingLevel:n,words:r}}])},948196,e=>{"use strict";let t=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");e.s(["buildWritingFeedbackTargetIssueXml",0,({endOffset:e,paragraph:r,startOffset:s,targetIssueText:i})=>{if(!(s>=0&&e>s&&e<=r.length))return null;let a=r.slice(s,e);return a&&("string"!=typeof i||i===a)?[t(r.slice(0,s)),`<issue id="target">${t(a)}</issue>`,t(r.slice(e))].join(""):null}])},756771,e=>{"use strict";let t=new(e.i(863509)).default,r="separator",s=RegExp("[\\p{L}\\p{M}\\p{N}]+(?:['’][\\p{L}\\p{M}\\p{N}]+)*","gu"),i=RegExp("[\\p{L}\\p{M}\\p{N}]","u"),a=RegExp("[^\\p{L}\\p{M}\\p{N}\\s]+","gu"),n=({document:e,offset:t})=>{let s=e.blocks.find(e=>t>=e.visibleRange.from&&t<e.visibleRange.to);if(!s)return r;let i=s.runs.find(e=>t>=e.visibleRange.from&&t<e.visibleRange.to);return JSON.stringify({attributes:s.attributes,marks:i?.marks??[],type:s.type,wrapperPath:s.wrapperPath})},l=(e,t)=>{t.to<=t.from||e.push(t)},o=({ranges:e,text:t})=>{let r=[...e].sort((e,t)=>e.from-t.from),s=[];return r.forEach(e=>{let r=s.at(-1);if(r&&(e.from<=r.to||/^\s*$/.test(t.slice(r.to,e.from)))){r.to=Math.max(r.to,e.to);return}s.push({...e})}),s},d=({range:e,text:t})=>{let r=e.from,s=e.to;for(;r<s&&/\s/.test(t[r]);)r+=1;for(;s>r&&/\s/.test(t[s-1]);)s-=1;return{from:r,to:s}},g=({document:e,offset:t})=>{for(let r of e.blocks){let e=r.runs.find(e=>t>=e.visibleRange.from&&t<e.visibleRange.to);if(e)return e}return null},c=e=>[...e.matchAll(s)].map(e=>({from:e.index,text:e[0],to:e.index+e[0].length})),u=e=>JSON.stringify(e.blocks.map(e=>({attributes:e.attributes,type:e.type,wrapperPath:e.wrapperPath}))),h=e=>i.test(e),p=({from:e,ranges:t,text:r})=>{let s=0;for(;s<r.length&&!h(r.charAt(s));)s+=1;if(l(t,{from:e,to:e+s}),s===r.length)return;let i=r.length;for(;i>s&&!h(r.charAt(i-1));)i-=1;l(t,{from:e+i,to:e+r.length})},f=({from:e,ranges:t,text:r})=>{let s=({slice:e,sliceFrom:r})=>{for(let s of e.matchAll(a))l(t,{from:r+s.index,to:r+s.index+s[0].length})},i=0;for(;i<r.length&&!h(r.charAt(i));)i+=1;s({slice:r.slice(0,i),sliceFrom:e});let n=r.length;for(;n>i&&!h(r.charAt(n-1));)n-=1;s({slice:r.slice(n),sliceFrom:e+n})},m=e=>{let t=e[0],r=e.at(-1);return t&&r?{from:t.from,to:r.to}:null};e.s(["getSemanticMarkdownDiff",0,({left:e,right:s})=>{let i=[],a=[];if((({left:e,right:t})=>{if(e.visibleText===t.visibleText||u(e)!==u(t))return!1;let r=c(e.visibleText),s=c(t.visibleText);return r.length===s.length&&r.every((r,i)=>{let a=s[i];return void 0!==a&&r.text===a.text&&(({left:e,leftFrom:t,length:r,right:s,rightFrom:i})=>{for(let a=0;a<r;a+=1)if(n({document:e,offset:t+a})!==n({document:s,offset:i+a}))return!1;return!0})({left:e,leftFrom:r.from,length:r.text.length,right:t,rightFrom:a.from})})})({left:e,right:s}))(({left:e,leftRanges:r,right:s,rightRanges:i})=>{let a=t.diff_main(e.visibleText,s.visibleText,!1);t.diff_cleanupSemantic(a);let n=0,o=0;a.forEach(([e,t])=>{if(0===e){n+=t.length,o+=t.length;return}if(-1===e){l(r,{from:n,to:n+t.length}),n+=t.length;return}l(i,{from:o,to:o+t.length}),o+=t.length})})({left:e,leftRanges:i,right:s,rightRanges:a});else{let r=c(e.visibleText),n=c(s.visibleText),o=(({left:e,right:t})=>{let r=new Map,s=1,i=e=>e.map(e=>{let t=r.get(e.text);return t||(t=s,s+=1,r.set(e.text,t)),String.fromCharCode(t)}).join("");return{left:i(e),right:i(t)}})({left:r,right:n}),u=t.diff_main(o.left,o.right,!1),b=u.reduce((e,[t,r])=>0===t?e+r.length:e,0),y=Math.min(r.length,n.length);if(y>=10&&b/y<=.5)l(i,{from:0,to:e.visibleText.length}),l(a,{from:0,to:s.visibleText.length});else{let o=0,c=0;u.forEach(([t,u])=>{let h=u.length;if(0===t){o+=h,c+=h;return}if(-1===t){let t=m(r.slice(o,o+h));if(t){let r=n[c]?.from??s.visibleText.length,o=(({left:e,leftRange:t,right:r,rightOffset:s})=>{let i=d({range:t,text:e.visibleText}),a=g({document:e,offset:i.from}),n=g({document:r,offset:s});return a&&n&&0!==a.marks.length&&!(i.to>a.visibleRange.to)&&JSON.stringify(a.marks)===JSON.stringify(n.marks)?{left:a.visibleRange,right:n.visibleRange}:null})({left:e,right:s,leftRange:t,rightOffset:r});o?(l(i,o.left),l(a,o.right)):l(i,t)}o+=h;return}let p=m(n.slice(c,c+h));if(p){let t=r[o]?.from??e.visibleText.length,n=(({left:e,leftOffset:t,right:r,rightRange:s})=>{let i=d({range:s,text:r.visibleText}),a=g({document:e,offset:t}),n=g({document:r,offset:i.from});return a&&n&&0!==n.marks.length&&!(i.to>n.visibleRange.to)&&JSON.stringify(a.marks)===JSON.stringify(n.marks)?{left
2:a.visibleRange,right:n.visibleRange}:null})({left:e,right:s,leftOffset:t,rightRange:p});n?(l(i,n.left),l(a,n.right)):l(a,p)}c+=h}),(({left:e,leftRanges:r,right:s,rightRanges:i})=>{let a=t.diff_main(e.visibleText,s.visibleText,!1),n=0,o=0,d=0;for(;d<a.length;){let[e,t]=a[d];if(0===e){n+=t.length,o+=t.length,d+=1;continue}let s=[],g=[];for(;d<a.length&&0!==a[d][0];){let[e,t]=a[d];-1===e?(s.push({from:n,text:t}),n+=t.length):(g.push({from:o,text:t}),o+=t.length),d+=1}let c=s.some(e=>[...e.text].some(h)),u=g.some(e=>[...e.text].some(h)),m=({hasLexical:e,parts:t,ranges:r,otherHasLexical:s})=>{t.forEach(t=>{e?s?p({from:t.from,ranges:r,text:t.text}):f({from:t.from,ranges:r,text:t.text}):l(r,{from:t.from,to:t.from+t.text.length})})};m({hasLexical:c,otherHasLexical:u,parts:s,ranges:r}),m({hasLexical:u,otherHasLexical:c,parts:g,ranges:i})}})({left:e,leftRanges:i,right:s,rightRanges:a})}}(({left:e,leftRanges:s,right:i,rightRanges:a})=>{let o=t.diff_main(e.visibleText,i.visibleText,!1),d=0,g=0;o.forEach(([t,o])=>{if(0===t){(({left:e,leftFrom:t,length:s,leftRanges:i,right:a,rightFrom:o,rightRanges:d})=>{let g=null;for(let c=0;c<s;c+=1){let s=n({document:e,offset:t+c}),u=n({document:a,offset:o+c}),h=s===r||u===r||s===u;h||null!==g||(g=c),h&&null!==g&&(l(i,{from:t+g,to:t+c}),l(d,{from:o+g,to:o+c}),g=null)}null!==g&&(l(i,{from:t+g,to:t+s}),l(d,{from:o+g,to:o+s}))})({left:e,leftFrom:d,leftRanges:s,length:o.length,right:i,rightFrom:g,rightRanges:a}),d+=o.length,g+=o.length;return}if(-1===t){d+=o.length;return}g+=o.length})})({left:e,leftRanges:i,right:s,rightRanges:a}),e.visibleText!==s.visibleText&&0===i.length&&0===a.length&&(l(i,{from:0,to:e.visibleText.length}),l(a,{from:0,to:s.visibleText.length}));let b=o({ranges:i,text:e.visibleText}),y=o({ranges:a,text:s.visibleText});return{isSemanticNoOp:0===b.length&&0===y.length,leftRanges:b,rightRanges:y}}])}]);
3
4//# debugId=7c1fb188-3c49-cf16-e5af-dd1d7358d616
5//# sourceMappingURL=1m0fvb60dn2p9.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.