PageSourceSearch

https://www.lighthouseacademy.ai/_next/static/chunks/1948.3fd1959159270cca.js

js lighthouseacademy.ai collected 2026-10-04 23:38:41 UTC 33,847 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1948,5453],{15453:function(t,e,n){n.r(e),n.d(e,{Underline:function(){return s},default:function(){return i}});var r=n(40318),s=r.vc.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("underline")&&{}}],renderHTML(t){let{HTMLAttributes:e}=t;return["u",(0,r.P1)(this.options.HTMLAttributes,e),0]},parseMarkdown(t,e){return e.applyMark(this.name||"underline",e.parseInline(t.tokens||[]))},renderMarkdown:(t,e)=>"++".concat(e.renderChildren(t),"++"),markdownTokenizer:{name:"underline",level:"inline",start:t=>t.indexOf("++"),tokenize(t,e,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(t);if(!r)return;let s=r[2].trim();return{type:"underline",raw:r[0],text:s,tokens:n.inlineTokens(s)}}},addCommands(){return{setUnderline:()=>t=>{let{commands:e}=t;return e.setMark(this.name)},toggleUnderline:()=>t=>{let{commands:e}=t;return e.toggleMark(this.name)},unsetUnderline:()=>t=>{let{commands:e}=t;return e.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),i=s},81948:function(t,e,n){n.r(e),n.d(e,{StarterKit:function(){return ta},default:function(){return td}});var r=n(40318),s=(t,e)=>{if("slot"===t)return 0;if(t instanceof Function)return t(e);let{children:n,...r}=null!=e?e:{};if("svg"===t)throw Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[t,r,n]},i=/^\s*>\s$/,o=r.NB.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML(t){let{HTMLAttributes:e}=t;return s("blockquote",{...(0,r.P1)(this.options.HTMLAttributes,e),children:s("slot",{})})},parseMarkdown:(t,e)=>{var n;let r=null!=(n=e.parseBlockChildren)?n:e.parseChildren;return e.createNode("blockquote",void 0,r(t.tokens||[]))},renderMarkdown:(t,e)=>{if(!t.content)return"";let n=[];return t.content.forEach((t,r)=>{var s,i;let o=(null!=(i=null==(s=e.renderChild)?void 0:s.call(e,t,r))?i:e.renderChildren([t])).split("\n").map(t=>""===t.trim()?">":"".concat(">"," ").concat(t));n.push(o.join("\n"))}),n.join("\n".concat(">","\n"))},addCommands(){return{setBlockquote:()=>t=>{let{commands:e}=t;return e.wrapIn(this.name)},toggleBlockquote:()=>t=>{let{commands:e}=t;return e.toggleWrap(this.name)},unsetBlockquote:()=>t=>{let{commands:e}=t;return e.lift(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}}
1,addInputRules(){return[(0,r.S0)({find:i,type:this.type})]}}),a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,d=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,l=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,p=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,u=r.vc.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:t=>"normal"!==t.style.fontWeight&&null},{style:"font-weight=400",clearMark:t=>t.type.name===this.name},{style:"font-weight",getAttrs:t=>/^(bold(er)?|[5-9]\d{2,})$/.test(t)&&null}]},renderHTML(t){let{HTMLAttributes:e}=t;return s("strong",{...(0,r.P1)(this.options.HTMLAttributes,e),children:s("slot",{})})},markdownTokenName:"strong",parseMarkdown:(t,e)=>e.applyMark("bold",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<strong>",close:"</strong>"}},renderMarkdown:(t,e)=>"**".concat(e.renderChildren(t),"**"),addCommands(){return{setBold:()=>t=>{let{commands:e}=t;return e.setMark(this.name)},toggleBold:()=>t=>{let{commands:e}=t;return e.toggleMark(this.name)},unsetBold:()=>t=>{let{commands:e}=t;return e.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
1,addInputRules(){return[(0,r.Cf)({find:a,type:this.type}),(0,r.Cf)({find:l,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:d,type:this.type}),(0,r.K9)({find:p,type:this.type})]}}),c=/(^|[^`])`([^`]+)`(?!`)$/,h=/(^|[^`])`([^`]+)`(?!`)/g,m=r.vc.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML(t){let{HTMLAttributes:e}=t;return["code",(0,r.P1)(this.options.HTMLAttributes,e),0]},markdownTokenName:"codespan",parseMarkdown:(t,e)=>e.applyMark("code",[{type:"text",text:t.text||""}]),renderMarkdown:(t,e)=>t.content?"`".concat(e.renderChildren(t.content),"`"):"",addCommands(){return{setCode:()=>t=>{let{commands:e}=t;return e.setMark(this.name)},toggleCode:()=>t=>{let{commands:e}=t;return e.toggleMark(this.name)},unsetCode:()=>t=>{let{commands:e}=t;return e.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,r.Cf)({find:c,type:this.type})]},addPasteRules(){return[(0,r.K9)({find:h,type:this.t
1ype})]}}),k=n(19672),g=/^```([a-z]+)?[\s\n]$/,f=/^~~~([a-z]+)?[\s\n]$/,y=r.NB.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:t=>{var e;let{languageClassPrefix:n}=this.options;return n&&[...(null==(e=t.firstElementChild)?void 0:e.classList)||[]].filter(t=>t.startsWith(n)).map(t=>t.replace(n,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML(t){let{node:e,HTMLAttributes:n}=t;return["pre",(0,r.P1)(this.options.HTMLAttributes,n),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(t,e)=>{var n,r;return(null==(n=t.raw)?void 0:n.startsWith("```"))===!1&&(null==(r=t.raw)?void 0:r.startsWith("~~~"))===!1&&"indented"!==t.codeBlockStyle?[]:e.createNode("codeBlock",{language:t.lang||null},t.text?[e.createTextNode(t.text)]:[])},renderMarkdown:(t,e)=>{var n;let r=(null==(n=t.attrs)?void 0:n.language)||"";return t.content?["```".concat(r),e.renderChildren(t.content),"```"].join("\n"):"```".concat(r,"\n\n```")},addCommands(){return{setCodeBlock:t=>e=>{let{commands:n}=e;return n.setNode(this.name,t)},toggleCodeBlock:t=>e=>{let{commands:n}=e;return n.toggleNode(this.name,"paragraph",t)}}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:t,$anchor:e}=this.editor.state.selection,n=1===e.pos;return!!t&&e.parent.type.name===this.name&&(!!n||!e.parent.textContent.length)&&this.editor.commands.clearNodes()},Tab:t=>{var e;let{editor:n}=t;if(!this.options.enableTabIndentation)return!1;let r=null!=(e=this.options.tabSize)?e:4,{state:s}=n,{selection:i}=s,{$from:o,empty:a}=i;if(o.parent.type!==this.type)return!1;let d=" ".repeat(r);return a?n.commands.insertContent(d):n.commands.command(t=>{let{tr:e}=t,{from:n,to:r}=i,o=s.doc.textBetween(n,r,"\n","\n").split("\n").map(t=>d+t).join("\n");return e.replaceWith(n,r,s.schema.text(o)),!0})},"Shift-Tab":t=>{var e;let{editor:n}=t;if(!this.options.enableTabIndentation)return!1;let r=null!=(e=this.options.tabSize)?e:4,{state:s}=n,{selection:i}=s,{$from:o,empty:a}=i;return o.parent.type===this.type&&(a?n.commands.command(t=>{var e;let{tr:n}=t,{pos:i}=o,a=o.start(),d=o.end(),l=s.doc.textBetween(a,d,"\n","\n").split("\n"),p=0,u=0,c=i-a;for(let t=0;t<l.length;t+=1){if(u+l[t].length>=c){p=t;break}u+=l[t].length+1}let h=Math.min(((null==(e=l[p].match(/^ */))?void 0:e[0])||"").length,r);if(0===h)return!0;let m=a;for(let t=0;t<p;t+=1)m+=l[t].length+1;return n.delete(m,m+h),i-m<=h&&n.setSelection(k.Bs.create(n.doc,m)),!0}):n.commands.command(t=>{let{tr:e}=t,{from:n,to:o}=i,a=s.doc.textBetween(n,o,"\n","\n").split("\n").map(t=>{var e;let n=Math.min(((null==(e=t.match(/^ */))?void 0:e[0])||"").length,r);return t.slice(n)}).join("\n");return e.replaceWith(n,o,s.schema.text(a)),!0}))},Enter:t=>{let{editor:e}=t;if(!this.options.exitOnTripleEnter)return!1;let{state:n}=e,{selection:r}=n,{$from:s,empty:i}=r;if(!i||s.parent.type!==this.type)return!1;let o=s.parentOffset===s.parent.nodeSize-2,a=s.parent.textContent.endsWith("\n\n");return!!o&&!!a&&e.chain().command(t=>{let{tr:e}=t;return e.delete(s.pos-2,s.pos),!0}).exitCode().run()},ArrowDown:t=>{let{editor:e}=t;if(!this.options.exitOnArrowDown)return!1;let{state:n}=e,{selection:r,doc:s}=n,{$from:i,empty:o}=r;if(!o||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let a=i.after();return void 0!==a&&(s.nodeAt(a)?e.commands.command(t=>{let{tr:e}=t;return e.setSelection(k.Y1.near(s.resolve(a))),!0}):e.commands.exitCode())}}},addInputRules(){return[(0,r.zK)({find:g,type:this.type,getAttributes:t=>({language:t[1]})}),(0,r.zK)({find:f,type:this.type,getAttributes:t=>({language:t[1]})})]},addProseMirrorPlugins(){return[new k.Sy({key:new k.H$("codeBlockVSCodeHandler"),props:{handlePaste:(t,e)=>
1{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;let n=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),s=r?JSON.parse(r):void 0,i=null==s?void 0:s.mode;if(!n||!i)return!1;let{tr:o,schema:a}=t.state,d=a.text(n.replace(/\r\n?/g,"\n"));return o.replaceSelectionWith(this.type.create({language:i},d)),o.selection.$from.parent.type!==this.type&&o.setSelection(k.Bs.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.setMeta("paste",!0),t.dispatch(o),!0}}})]}}),b=r.NB.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n\n"):""}),M=r.NB.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML(t){let{HTMLAttributes:e}=t;return["br",(0,r.P1)(this.options.HTMLAttributes,e)]},renderText:()=>"\n",renderMarkdown:()=>"  \n",parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>t=>{let{commands:e,chain:n,state:r,editor:s}=t;return e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:t,storedMarks:e}=r;if(t.$from.parent.type.spec.isolating)return!1;let{keepMarks:i}=this.options,{splittableMarks:o}=s.extensionManager,a=e||t.$to.parentOffset&&t.$from.marks();return n().insertContent({type:this.name}).command(t=>{let{tr:e,dispatch:n}=t;if(n&&a&&i){let t=a.filter(t=>o.includes(t.type.name));e.ensureMarks(t)}return!0}).run()})])}}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),L=r.NB.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(t=>({tag:"h".concat(t),attrs:{level:t}}))},renderHTML(t){let{node:e,HTMLAttributes:n}=t,s=this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0];return["h".concat(s),(0,r.P1)(this.options.HTMLAttributes,n),0]},parseMarkdown:(t,e)=>e.createNode("heading",{level:t.depth||1},e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>{var n;let r=(null==(n=t.attrs)?void 0:n.level)?parseInt(t.attrs.level,10):1,s="#".repeat(r);return t.content?"".concat(s," ").concat(e.renderChildren(t.content)):""},addCommands(){return{setHeading:t=>e=>{let{commands:n}=e;return!!this.options.levels.includes(t.level)&&n.setNode(this.name,t)},toggleHeading:t=>e=>{let{commands:n}=e;return!!this.options.levels.includes(t.level)&&n.toggleNode(this.name,"paragraph",t)}}},addKeyboardShortcuts(){return this.options.levels.reduce((t,e)=>({...t,["Mod-Alt-".concat(e)]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(t=>(0,r.zK)({find:new RegExp("^(#{".concat(Math.min(...this.options.levels),",").concat(t,"}
1)\\s$")),type:this.type,getAttributes:{level:t}}))}}),T=r.NB.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML(t){let{HTMLAttributes:e}=t;return["hr",(0,r.P1)(this.options.HTMLAttributes,e)]},markdownTokenName:"hr",parseMarkdown:(t,e)=>e.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>t=>{let{chain:e,state:n}=t;if(!(0,r.FZ)(n,n.schema.nodes[this.name]))return!1;let{selection:s}=n,{$to:i}=s,o=e();return(0,r.EG)(s)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(t=>{let{state:e,tr:n,dispatch:r}=t;if(r){let{$to:t}=n.selection,r=t.end();if(t.nodeAfter)t.nodeAfter.isTextblock?n.setSelection(k.Bs.create(n.doc,t.pos+1)):t.nodeAfter.isBlock?n.setSelection(k.qv.create(n.doc,t.pos)):n.setSelection(k.Bs.create(n.doc,t.pos));else{let s=e.schema.nodes[this.options.nextNodeType]||t.parent.type.contentMatch.defaultType,i=null==s?void 0:s.create();i&&(n.insert(r,i),n.setSelection(k.Bs.create(n.doc,r+1)))}n.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,r.x2)({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.t
1ype})]}}),v=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,w=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,A=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,x=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,C=r.vc.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:t=>"normal"!==t.style.fontStyle&&null},{style:"font-style=normal",clearMark:t=>t.type.name===this.name},{style:"font-style=italic"}]},renderHTML(t){let{HTMLAttributes:e}=t;return["em",(0,r.P1)(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>t=>{let{commands:e}=t;return e.setMark(this.name)},toggleItalic:()=>t=>{let{commands:e}=t;return e.toggleMark(this.name)},unsetItalic:()=>t=>{let{commands:e}=t;return e.unsetMark(this.name)}}},markdownTokenName:"em",parseMarkdown:(t,e)=>e.applyMark("italic",e.parseInline(t.tokens||[])),markdownOptions:{htmlReopen:{open:"<em>",close:"</em>"}},renderMarkdown:(t,e)=>"*".concat(e.renderChildren(t),"*"),addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[(0,r.Cf)({find:v,type:this.type}),(0,r.Cf)({find:A,type:this.type})]}
1,addPasteRules(){return[(0,r.K9)({find:w,type:this.type}),(0,r.K9)({find:x,type:this.type})]}}),H=n(59776),N=Object.defineProperty,I="textStyle",S=/^\s*([-+*])\s$/,B=r.NB.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return"".concat(this.options.itemTypeName,"+")},parseHTML:()=>[{tag:"ul"}],renderHTML(t){let{HTMLAttributes:e}=t;return["ul",(0,r.P1)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>"list"!==t.type||t.ordered?[]:{type:"bulletList",content:t.items?e.parseChildren(t.items):[]},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>t=>{let{commands:e,chain:n}=t;return this.options.keepAttributes?n().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(I)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}}
1,addInputRules(){let t=(0,r.S0)({find:S,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,r.S0)({find:S,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(I),editor:this.editor})),[t]}}),O=r.NB.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML(t){let{HTMLAttributes:e}=t;return["li",(0,r.P1)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list_item",parseMarkdown:(t,e)=>{var n;if("list_item"!==t.type)return[];let r=null!=(n=e.parseBlockChildren)?n:e.parseChildren,s=[];if(t.tokens&&t.tokens.length>0){if(t.tokens.some(t=>"paragraph"===t.type))s=r(t.tokens);else{let n=t.tokens[0];if(n&&"text"===n.type&&n.tokens&&n.tokens.length>0){if(s=[{type:"paragraph",content:e.parseInline(n.tokens)}],t.tokens.length>1){let e=r(t.tokens.slice(1));s.push(...e)}}else s=r(t.tokens)}}return 0===s.length&&(s=[{type:"paragraph",content:[]}]),{type:"listItem",content:s}},renderMarkdown:(t,e,n)=>(0,r.wm)(t,e,t=>{var e,n;if("bulletList"===t.parentType)return"- ";if("orderedList"===t.parentType){let r=(null==(n=null==(e=t.meta)?void 0:e.parentAttrs)?void 0:n.start)||1;return"".concat(r+t.index,". ")}return"- "},n),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((t,e)=>{for(var n in e)N(t,n,{get:e[n],enumerable:!0})})({},{findListItemPos:()=>_,getNextListDepth:()=>E,handleBackspace:()=>R,handleDelete:()=>D,hasListBefore:()=>P,hasListItemAfter:()=>q,hasListItemBefore:()=>K,listItemHasSubList:()=>j,nextListIsDeeper:()=>$,nextListIsHigher:()=>z});var _=(t,e)=>{let{$from:n}=e.selection,s=(0,r.jo)(t,e.schema),i=n.depth,o=n.pos,a=null;for(;i>0&&null===a;)n.node(i).type===s?a=i:(i-=1,o-=1);return null===a?null:{$pos:e.doc.resolve(o),depth:a}},E=(t,e)=>{let n=_(t,e);if(!n)return!1;let[,s]=(0,r.NY)(e,t,n.$pos.pos+4);return s},P=(t,e,n)=>{let{$anchor:r}=t.selection,s=Math.max(0,r.pos-2),i=t.doc.resolve(s).node();return!!(i&&n.includes(i.type.name))},K=(t,e)=>{var n;let{$anchor:r}=e.selection,s=e.doc.resolve(r.pos-2);return 0!==s.index()&&(null==(n=s.nodeBefore)?void 0:n.type.name)===t},j=(t,e,n)=>{if(!n)return!1;let s=(0,r.jo)(t,e.schema),i=!1;return n.descendants(t=>{t.type===s&&(i=!0)}),i},R=(t,e,n)=>{if(t.commands.undoInputRule())return!0;if(t.state.selection.from!==t.state.selection.to)return!1;if(!(0,r.Ig)(t.state,e)&&P(t.state,e,n)){let{$anchor:n}=t.state.selection,r=t.state.doc.resolve(n.before()-1),s=[];r.node().descendants((t,n)=>{t.type.name===e&&s.push({node:t,pos:n})});let i=s.at(-1);if(!i)return!1;let o=t.state.doc.resolve(r.start()+i.pos+1);return t.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!(0,r.Ig)(t.state,e)||!(0,r.Sz)(t.state))return!1;let s=_(e,t.state);if(!s)return!1;let i=t.state.doc.resolve(s.$pos.pos-2).node(s.depth),o=j(e,t.state,i);return K(e,t.state)&&!o?t.commands.joinItemBackward():t.chain().liftListItem(e).run()},$=(t,e)=>{let n=E(t,e),r=_(t,e);return!!r&&!!n&&n>r.depth},z=(t,e)=>{let n=E(t,e),r=_(t,e);return!!r&&!!n&&n<r.depth},D=(t,e)=>{if(!(0,r.Ig)(t.state,e)||!(0,r.rI)(t.state,e))return!1;let{selection:n}=t.state,{$from:s,$to:i}=n;return!(!n.empty&&s.sameParent(i))&&($(e,t.state)?t.chain().focus(t.state.selection.from+4).lift(e).joinBackward().run():z(e,t.state)?t.chain().joinForward().joinBackward().run():t.commands.joinItemForward())},q=(t,e)=>{var n;let{$anchor:r}=e.selection,s=e.doc.resolve(r.pos-r.parentOffset-2);return s.index()!==s.parent.childCount-1&&(null==(n=s.nodeAfter)?void 0:n.type.name)===t},W=r.hj.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:t=>{let{editor:e}=t,n=!1;
1return this.options.listTypes.forEach(t=>{let{itemName:r}=t;void 0!==e.state.schema.nodes[r]&&D(e,r)&&(n=!0)}),n},"Mod-Delete":t=>{let{editor:e}=t,n=!1;return this.options.listTypes.forEach(t=>{let{itemName:r}=t;void 0!==e.state.schema.nodes[r]&&D(e,r)&&(n=!0)}),n},Backspace:t=>{let{editor:e}=t,n=!1;return this.options.listTypes.forEach(t=>{let{itemName:r,wrapperNames:s}=t;void 0!==e.state.schema.nodes[r]&&R(e,r,s)&&(n=!0)}),n},"Mod-Backspace":t=>{let{editor:e}=t,n=!1;return this.options.listTypes.forEach(t=>{let{itemName:r,wrapperNames:s}=t;void 0!==e.state.schema.nodes[r]&&R(e,r,s)&&(n=!0)}),n}}}}),U=/^(\s*)(\d+)\.\s+(.*)$/,F=/^\s/,V="textStyle",X=/^(\d+)\.\s$/,G=r.NB.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return"".concat(this.options.itemTypeName,"+")},addAttributes:()=>({start:{default:1,parseHTML:t=>t.hasAttribute("start")?parseInt(t.getAttribute("start")||"",10):1},type:{default:null,parseHTML:t=>t.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML(t){let{HTMLAttributes:e}=t,{start:n,...s}=e;return 1===n?["ol",(0,r.P1)(this.options.HTMLAttributes,s),0]:["ol",(0,r.P1)(this.options.HTMLAttributes,e),0]},markdownTokenName:"list",parseMarkdown:(t,e)=>{if("list"!==t.type||!t.ordered)return[];let n=t.start||1,r=t.items?t.items.map(t=>{if("list_item"!==t.type)return e.parseChildren([t])[0];let n=[];return t.tokens&&t.tokens.length>0&&t.tokens.forEach(t=>{if("paragraph"===t.type||"list"===t.type||"blockquote"===t.type||"code"===t.type)n.push(...e.parseChildren([t]));else if("text"===t.type&&t.tokens){let r=e.parseChildren([t]);n.push({type:"paragraph",content:r})}else{let r=e.parseChildren([t]);r.length>0&&n.push(...r)}}),{type:"listItem",content:n}}):[];return 1!==n?{type:"orderedList",attrs:{start:n},content:r}:{type:"orderedList",content:r}},renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:t=>{let e=t.match(/^(\s*)(\d+)\.\s+/),n=null==e?void 0:e.index;return void 0!==n?n:-1},tokenize:(t,e,n)=>{var r;let s=t.split("\n"),[i,o]=function(t){let e=[],n=0,r=0;for(;n<t.length;){let s=t[n],i=s.match(U);if(!i)break;let[,o,a,d]=i,l=o.length,p=[d],u=n+1,c=[s],h=!1;for(;u<t.length;){let e=t[u];if(e.match(U))break;if(""===e.trim())c.push(e),p.push(""),h=!0,u+=1;else if(e.match(F))c.push(e),p.push(e.slice(l+2)),u+=1;else{if(h)break;c.push(e),p.push(e),u+=1}}e.push({indent:l,number:parseInt(a,10),content:p.join("\n").trim(),contentLines:p,raw:c.join("\n")}),r=u,n=u}return[e,r]}(s);if(0===i.length)return;let a=function t(e,n,r){let s=[],i=0;for(;i<e.length;){let o=e[i];if(o.indent===n){let{paragraphLines:a,blockLines:d}=function(t){let e=[],n=[],r=!1;return t.forEach(t=>{if(r){n.push(t);return}if(""===t.trim()||e.length>0&&function(t){let e=t.trimStart();return/^[-+*]\s+/.test(e)||/^\d+\.\s+/.test(e)||/^>\s?/.test(e)||/^```/.test(e)||/^~~~/.test(e)}(t)){r=!0,n.push(t);return}e.push(t)}),{paragraphLines:e,blockLines:n}}(o.contentLines),l=a.join("\n").trim(),p=[];l&&p.push({type:"paragraph",raw:l,tokens:r.inlineTokens(l)});let u=d.join("\n").trim();if(u){let t=r.blockTokens(u);p.push(...t)}let c=i+1,h=[];for(;c<e.length&&e[c].indent>n;)h.push(e[c]),c+=1;
1if(h.length>0){let e=Math.min(...h.map(t=>t.indent)),n=t(h,e,r);p.push({type:"list",ordered:!0,start:h[0].number,items:n,raw:h.map(t=>t.raw).join("\n")})}s.push({type:"list_item",raw:o.raw,tokens:p}),i=c}else i+=1}return s}(i,0,n);if(0!==a.length)return{type:"list",ordered:!0,start:(null==(r=i[0])?void 0:r.number)||1,items:a,raw:s.slice(0,o).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>t=>{let{commands:e,chain:n}=t;return this.options.keepAttributes?n().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(V)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let t=(0,r.S0)({find:X,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(t=(0,r.S0)({find:X,type:this.t
1ype,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(V)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[t]}}),J=/^\s*(\[([( |x])?\])\s$/,Y=r.NB.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:t=>{let e=t.getAttribute("data-checked");return""===e||"true"===e},renderHTML:t=>({"data-checked":t.checked})}}),parseHTML(){return[{tag:'li[data-type="'.concat(this.name,'"]'),priority:51}]},renderHTML(t){let{node:e,HTMLAttributes:n}=t;return["li",(0,r.P1)(this.options.HTMLAttributes,n,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:e.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(t,e)=>{let n=[];if(t.tokens&&t.tokens.length>0?n.push(e.createNode("paragraph",{},e.parseInline(t.tokens))):t.text?n.push(e.createNode("paragraph",{},[e.createNode("text",{text:t.text})])):n.push(e.createNode("paragraph",{},[])),t.nestedTokens&&t.nestedTokens.length>0){let r=e.parseChildren(t.nestedTokens);n.push(...r)}return e.createNode("taskItem",{checked:t.checked||!1},n)},renderMarkdown:(t,e)=>{var n;let s=(null==(n=t.attrs)?void 0:n.checked)?"x":" ";return(0,r.wm)(t,e,"- [".concat(s,"] "))},addKeyboardShortcuts(){let t={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...t,Tab:()=>this.editor.commands.sinkListItem(this.name)}:t},addNodeView(){return t=>{let{node:e,HTMLAttributes:n,getPos:s,editor:i}=t,o=document.createElement("li"),a=document.createElement("label"),d=document.createElement("span"),l=document.createElement("input"),p=document.createElement("div"),u=t=>{var e,n;l.ariaLabel=(null==(n=null==(e=this.options.a11y)?void 0:e.checkboxLabel)?void 0:n.call(e,t,l.checked))||"Task item checkbox for ".concat(t.textContent||"empty task item")};u(e),a.contentEditable="false",l.type="checkbox",l.addEventListener("mousedown",t=>t.preventDefault()),l.addEventListener("change",t=>{if(!i.isEditable&&!this.options.onReadOnlyChecked){l.checked=!l.checked;return}let{checked:n}=t.target;i.isEditable&&"function"==typeof s&&i.chain().focus(void 0,{scrollIntoView:!1}).command(t=>{let{tr:e}=t,r=s();if("number"!=typeof r)return!1;let i=e.doc.nodeAt(r);return e.setNodeMarkup(r,void 0,{...null==i?void 0:i.attrs,checked:n}),!0}).run(),i.isEditable||!this.options.onReadOnlyChecked||this.options.onReadOnlyChecked(e,n)||(l.checked=!l.checked)}),Object.entries(this.options.HTMLAttributes).forEach(t=>{let[e,n]=t;o.setAttribute(e,n)}),o.dataset.checked=e.attrs.checked,l.checked=e.attrs.checked,a.append(l,d),o.append(a,p),Object.entries(n).forEach(t=>{let[e,n]=t;o.setAttribute(e,n)});let c=new Set(Object.keys(n));return{dom:o,contentDOM:p,update:t=>{if(t.type!==this.type)return!1;o.dataset.checked=t.attrs.checked,l.checked=t.attrs.checked,u(t);let e=i.extensionManager.attributes,n=(0,r.m7)(t,e),s=new Set(Object.keys(n)),a=this.options.HTMLAttributes;return c.forEach(t=>{s.has(t)||(t in a?o.setAttribute(t,a[t]):o.removeAttribute(t))}),Object.entries(n).forEach(t=>{let[e,n]=t;null==n?e in a?o.setAttribute(e,a[e]):o.removeAttribute(e):o.setAttribute(e,n)}),c=s,!0}}}},addInputRules(){return[(0,r.S0)({find:J,type:this.type,getAttributes:t=>({checked:"x"===t[t.length-1]})})]}}),Q=r.NB.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return"".concat(this.options.itemTypeName,"+")},parseHTML(){return[{tag:'ul[data-type="'.concat(this.name,'"]'),priority:51}]},renderHTML(t){let{HTMLAttributes:e}=t;return["ul",(0,r.P1)(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(t,e)=>e.createNode("taskList",{},e.parseChildren(t.items||[])),renderMarkdown:(t,e)=>t.content?e.renderChildren(t.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(t){var e;let n=null==(e=t.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:e.index;return void 0!==n?n:-1},tokenize(t,e,n){let s=t=>{let e=(0,r.NI)(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:t=>({indentLevel:t[1].length,mainContent:t[4],checked:"x"===t[3].toLowerCase()}),createToken:(t,e)=>({type:"taskItem",raw:"",mainContent:t.mainContent,indentLevel:t.indentLevel,checked:t.checked,text:t.mainContent,tokens:n.inlineTokens(t.mainContent),nestedTokens:e}),customNestedParser:s},n);return e?[{type:"taskList",raw:e.raw,items:e.items}]:n.blockTokens(t)},i=(0,r.NI)(t,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:t=>({indentLevel:t[1].length,mainContent:t[4],checked:"x"===t[3].toLowerCase()}),createToken:(t,e)=>({type:"taskItem",raw:"",mainContent:t.mainContent,indentLevel:t.indentLevel,checked:t.checked,text:t.mainContent,tokens:n.inlineTokens(t.mainContent),nestedTokens:e}),customNestedParser:s},n);if(i)return{type:"taskList",raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>t=>{let{commands:e}=t;return e.toggleList(this.name,this.options.itemTypeName)}}}
1,addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});r.hj.create({name:"listKit",addExtensions(){let t=[];return!1!==this.options.bulletList&&t.push(B.configure(this.options.bulletList)),!1!==this.options.listItem&&t.push(O.configure(this.options.listItem)),!1!==this.options.listKeymap&&t.push(W.configure(this.options.listKeymap)),!1!==this.options.orderedList&&t.push(G.configure(this.options.orderedList)),!1!==this.options.taskItem&&t.push(Y.configure(this.options.taskItem)),!1!==this.options.taskList&&t.push(Q.configure(this.options.taskList)),t}});var Z="&nbsp;",tt=r.NB.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML(t){let{HTMLAttributes:e}=t;return["p",(0,r.P1)(this.options.HTMLAttributes,e),0]},parseMarkdown:(t,e)=>{let n=t.tokens||[];if(1===n.length&&"image"===n[0].type)return e.parseChildren([n[0]]);let r=e.parseInline(n);return 1===n.length&&"text"===n[0].type&&(n[0].raw===Z||n[0].text===Z||"\xa0"===n[0].raw||"\xa0"===n[0].text)&&1===r.length&&"text"===r[0].type&&(r[0].text===Z||"\xa0"===r[0].text)?e.createNode("paragraph",void 0,[]):e.createNode("paragraph",void 0,r)},renderMarkdown:(t,e,n)=>{var r,s;if(!t)return"";let i=Array.isArray(t.content)?t.content:[];if(0===i.length){let t=Array.isArray(null==(r=null==n?void 0:n.previousNode)?void 0:r.content)?n.previousNode.content:[];return(null==(s=null==n?void 0:n.previousNode)?void 0:s.type)==="paragraph"&&0===t.length?Z:""}return e.renderChildren(i)},addCommands(){return{setParagraph:()=>t=>{let{commands:e}=t;return e.setNode(this.name)}}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),te=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,tn=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tr=r.vc.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:t=>!!t.includes("line-through")&&{}}],renderHTML(t){let{HTMLAttributes:e}=t;return["s",(0,r.P1)(this.options.HTMLAttributes,e),0]},markdownTokenName:"del",parseMarkdown:(t,e)=>e.applyMark("strike",e.parseInline(t.tokens||[])),renderMarkdown:(t,e)=>"~~".concat(e.renderChildren(t),"~~"),addCommands(){return{setStrike:()=>t=>{let{commands:e}=t;return e.setMark(this.name)},toggleStrike:()=>t=>{let{commands:e}=t;return e.toggleMark(this.name)},unsetStrike:()=>t=>{let{commands:e}=t;return e.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,r.Cf)({find:te,type:this.type})]}
1,addPasteRules(){return[(0,r.K9)({find:tn,type:this.type})]}}),ts=r.NB.create({name:"text",group:"inline",parseMarkdown:t=>({type:"text",text:t.text||""}),renderMarkdown:t=>t.text||""}),ti=n(15453),to=n(47842),ta=r.hj.create({name:"starterKit",addExtensions(){var t,e,n,r;let s=[];return!1!==this.options.bold&&s.push(u.configure(this.options.bold)),!1!==this.options.blockquote&&s.push(o.configure(this.options.blockquote)),!1!==this.options.bulletList&&s.push(B.configure(this.options.bulletList)),!1!==this.options.code&&s.push(m.configure(this.options.code)),!1!==this.options.codeBlock&&s.push(y.configure(this.options.codeBlock)),!1!==this.options.document&&s.push(b.configure(this.options.document)),!1!==this.options.dropcursor&&s.push(to.m$.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&s.push(to.fj.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&s.push(M.configure(this.options.hardBreak)),!1!==this.options.heading&&s.push(L.configure(this.options.heading)),!1!==this.options.undoRedo&&s.push(to.QA.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&s.push(T.configure(this.options.horizontalRule)),!1!==this.options.italic&&s.push(C.configure(this.options.italic)),!1!==this.options.listItem&&s.push(O.configure(this.options.listItem)),!1!==this.options.listKeymap&&s.push(W.configure(null==(t=this.options)?void 0:t.listKeymap)),!1!==this.options.link&&s.push(H.Link.configure(null==(e=this.options)?void 0:e.link)),!1!==this.options.orderedList&&s.push(G.configure(this.options.orderedList)),!1!==this.options.paragraph&&s.push(tt.configure(this.options.paragraph)),!1!==this.options.strike&&s.push(tr.configure(this.options.strike)),!1!==this.options.text&&s.push(ts.configure(this.options.text)),!1!==this.options.underline&&s.push(ti.Underline.configure(null==(n=this.options)?void 0:n.underline)),!1!==this.options.trailingNode&&s.push(to.eh.configure(null==(r=this.options)?void 0:r.trailingNode)),s}}),td=ta}}]);

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.