PageSourceSearch

https://assets.nextleap.app/static/js/nl-html-editor.4f7786e9.chunk.js

js nextleap.app collected 2026-10-03 22:25:44 UTC 14,609 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknextleap=self.webpackChunknextleap||[]).push([[7345],{6435:(e,t,o)=>{o.r(t),o.d(t,{default:()=>m});var r=o(89379),n=o(65043),a=o(51578),s=o(89865),i=o(99527);const c=(0,i.pn)({String:i._A.string,Number:i._A.number,"True False":i._A.bool,PropertyName:i._A.propertyName,Null:i._A.null,", :":i._A.separator,"[ ]":i._A.squareBracket,"{ }":i._A.brace}),d=s.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"\u26a0 JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[c],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var l=o(16997);const p=l.bj.define({name:"json",parser:d.configure({props:[l.Oh.add({Object:(0,l.mz)({except:/^\s*\}/}),Array:(0,l.mz)({except:/^\s*\]/})}),l.b_.add({"Object Array":l.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});var h=o(70579);class m extends n.PureComponent{render(){return(0,h.jsx)(a.h,(0,r.A)((0,r.A)({},this.props),{},{extenstions:[new l.Yy(p)]}))}}},6591:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var r=o(89379),n=o(65043),a=o(51578),s=o(93701),i=o(70579);class c extends n.PureComponent{render(){return(0,i.jsx)(a.h,(0,r.A)((0,r.A)({},this.props),{},{extenstions:[(0,s.qy)(),s.iH.data.of({autocomplete:s.$g})]}))}}},25953:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var r=o(89379),n=o(65043),a=o(51578),s=o(25579),i=o(70579);class c extends n.PureComponent{render(){return(0,i.jsx)(a.h,(0,r.A)((0,r.A)({},this.props),{},{extenstions:[(0,s.Q2)({typescript:!0}),s.sL.data.of({autocomplete:(0,s.mA)(window)}),s.sL.data.of({autocomplete:s.$k})]}))}}},27407:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var r=o(89379),n=o(65043),a=o(51578),s=o(33767),i=o(70579);class c extends n.PureComponent{render(){return(0,i.jsx)(a.h,(0,r.A)((0,r.A)({},this.props),{},{extenstions:[(0,s.AH)(),s.Yk.data.of({autocomplete:s.jG})]}))}}},44751:(e,t,o)=>{o.r(t),o.d(t,{default:()=>c});var r=o(89379),n=o(65043),a=o(51578),s=o(25579),i=o(70579);class c extends n.PureComponent{render(){return(0,i.jsx)(a.h,(0,r.A)((0,r.A)({},this.props),{},{extenstions:[(0,s.Q2)({jsx:!0}),s.W6.data.of({autocomplete:(0,s.mA)(window)}),s.W6.data.of({autocomplete:s.$k})]}))}}},51578:(e,t,o)=>{o.d(t,{h:()=>y});var r=o(89379),n=o(65043),a=o(87615),s=o(60994),i=o(96837),c=o(70377),d=o(73968),l=o(16997),p=o(99527);const h={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff"},m={background:"white",foreground:"#616161",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"white",gutterForeground:"#237893",gutterActiveForeground:"#0b216f"};function u(e){const t="dark"===(null===e||void 0===e?void 0:e.theme),{theme:o=(null===e||void 0===e?void 0:e.theme)||"dark",settings:n={},styles:a=[]}=e||{};return(e=>{let{theme:t,settings:o={},styles:n=[]}=e;const a="dark"===t,s={".cm-gutters":{}},i={height:"var(--code-editor-height, var(--viewport-height, 100vh))",minHeight:"var(--code-editor-height, var(--viewport-height, 100vh))",maxWidth:"var(--viewport-width, 100vw)"};o.background&&(i.backgroundColor=o.background),o.backgroundImage&&(i.backgroundImage=o.backgroundImage),o.foreground&&(i.color=o.foreground),(o.background||o.foreground)&&
1(s["&"]=i),s["&.cm-editor .cm-scroller"]={fontFamily:'"Lexend Deca", "Droid Sans Mono", "monospace", monospace',fontWeight:"normal",fontSize:"17px",lineHeight:"160%",scrollbarWidth:"none"},s[".cm-scroller::-webkit-scrollbar"]={display:"none"},s["&.cm-editor.cm-focused"]={outline:"none"},o.gutterBackground&&(s[".cm-gutters"].backgroundColor=o.gutterBackground),o.gutterForeground&&(s[".cm-gutters"].color=o.gutterForeground),o.gutterBorder&&(s[".cm-gutters"].borderRightColor=o.gutterBorder),s[".cm-gutters"].border="unset",s[".cm-lineNumbers"]={minWidth:"32px"},s[".cm-foldGutter"]={minWidth:"16px"},s[".cm-tooltip.cm-tooltip-autocomplete"]={background:a?"#252526":"#f3f3f3",color:a?"#D4D4D4":"#000000",minWidth:"400px",maxWidth:"min(800px, 95vw)",borderRadius:"4px"},s[".cm-tooltip.cm-tooltip-autocomplete > ul"]={fontFamily:'"Lexend Deca", "Droid Sans Mono", "monospace", monospace',fontWeight:"normal",fontSize:"17px",lineHeight:"160%",background:a?"#252526":"#f3f3f3",color:a?"#D4D4D4":"#000000",borderRadius:"4px",maxHeight:"17em"},s[".cm-tooltip.cm-tooltip-autocomplete > ul > li"]=(0,r.A)({},{paddingTop:"4px",paddingBottom:"4px"}),s[".cm-tooltip-autocomplete ul li[aria-selected]"]={background:a?"#03395E":"#0360c0",color:"#ffffff"},s[".cm-completionIcon-function:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-method-0987.svg')"},s[".cm-completionIcon-method:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-method-0987.svg')"},s[".cm-completionIcon-class:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-class-0987.svg')"},s[".cm-completionIcon-interface:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-interface-0987.svg')"},s[".cm-completionIcon-variable:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-variable-0987.svg')"},s[".cm-completionIcon-constant:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-constant-0987.svg')"},s[".cm-completionIcon-type:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-type-0987.svg')"},s[".cm-completionIcon-enum:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-enum-0987.svg')"},s[".cm-completionIcon-property:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-field-0987.svg')"},s[".cm-completionIcon-keyword:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-keyword-0987.svg')"},s[".cm-completionIcon-namespace:after"]={content:"url('https://assets.nextleap.app/images/nl-code-editor-ac-namespace-0987.svg')"},o.caret&&(s[".cm-content"]={caretColor:o.caret},s[".cm-cursor, .cm-dropCursor"]={borderLeftColor:o.caret});const c={};o.gutterActiveForeground&&(c.color=o.gutterActiveForeground),o.lineHighlight&&(s[".cm-activeLine"]={backgroundColor:o.lineHighlight},c.backgroundColor=o.lineHighlight),s[".cm-activeLineGutter"]=c,o.selection&&(s["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:o.selection+" !important"}),o.selectionMatch&&(s["& .cm-selectionMatch"]={backgroundColor:o.selectionMatch});const p=d.Lz.theme(s,{dark:"dark"===t}),h=l.cr.define(n);return[p,(0,l.y9)(h)]})({theme:o,settings:(0,r.A)((0,r.A)({},t?h:m),n),styles:[{tag:[p._A.keyword,p._A.operatorKeyword,p._A.modifier,p._A.color,p._A.constant(p._A.name),p._A.standard(p._A.name),p._A.standard(p._A.tagName),p._A.special(p._A.brace),p._A.atom,p._A.bool,p._A.special(p._A.variableName)],color:t?"#569cd6":"#0000ff"},{tag:[p._A.controlKeyword,p._A.moduleKeyword],color:t?"#c586c0":"#0000ff"},{tag:[p._A.name,p._A.deleted,p._A.character,p._A.macroName,p._A.propertyName,p._A.variableName,p._A.labelName,p._A.definition(p._A.name)],color:t?"#9cdcfe":"#000000"},{tag:p._A.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[p._A.typeName,p._A.className,p._A.number,p._A.changed,p._A.annotation,p._A.self,p._A.namespace],color:t?"#4ec9b0":"#0000ff"},{tag:[p._A.tagName],color:t?"#569cd6":"#800000"},{tag:[p._A.function(p._A.variableName),p._A.function(p._A.propertyName)],color:t?"#d4d4d4":"#000000"},{tag:[p._A.number],color:t?"#b5cea8":"#098658"},{tag:[p._A.operator,p._A.punctuation,p._A.separator,p._A.url,p._A.escape,p._A.regexp],color:t?"#569cd6":"#0000ff"},{tag:[p._A.regexp],color:"#d16969"},{tag:[p._A.special(p._A.string),p._A.string,p._A.inserted],color:t?"#ce9178":"#a31515"},{tag:[p._A.processingInstruction],color:t?"#569cd6":"#0000ff"},{tag:[p._A.angleBracket],color:t?"#808080":"#a31515"},{tag:[p._A.squareBracket],color:t?"#da70d6":"#319331"},{tag:[p._A.brace,p._A.bracket],color:t?"#ffd700":"#0431fa"},{tag:p._A.strong,fontWeight:"bold"},{tag:p._A.emphasis,fontStyle:"italic"},{tag:p._A.strikethrough,textDecoration:"line-through"},{tag:[p._A.meta,p._A.comment],color:t?"#6a9955":"#008000"},{tag:p._A.link,color:"#6a9955",textDecoration:"underline"}
1,{tag:p._A.invalid,color:"#ff0000"},...a]})}const g=u({theme:"dark"}),f=u({theme:"light"});const O=d.NZ.mark({class:"cm-indentation-guide"});class v extends d.xO{constructor(e){super(),this.indents=e}static create(e){return d.NZ.widget({widget:new v(e),side:1})}toDOM(){const e=document.createElement("span");e.className="cm-indentation-widget";for(const t of this.indents){const o=e.appendChild(document.createElement("span"));o.className="cm-indentation-guide",o.textContent=" ".repeat(t)}return e}}const A=/^\s*/;function b(e){var t;return(null===(t=e.match(A))||void 0===t?void 0:t[0].length)||0}function _(e,t,o,r,n){let a=e+r;const s=t-e,i=Math.min(t-s%r,e+o);for(;a<=i;)n.add(a-1,a,O),a+=r}function k(e,t,o,r,n){const a=t-e;if(o<=a)return;const s=[],i=o-a,c=i%r;c&&s.push(c);const d=(i-c)/r;s.push(...Array(d).fill(r)),n.add(t,t,v.create(s))}function x(e){const t=new s.vB,o=Number(e.state.tabSize),r=e.state.doc,n=[];let a=0;for(const{from:s,to:i}of e.visibleRanges){let e,c,d,l,p=s-1;for(;(e=p+1)<=i;){({from:c,to:p,length:d,text:l}=r.lineAt(e));const s=b(l),i=s===d,h=s<o,m="#"==l[s];if(i){n.push({from:c,to:p});continue}if(h){n.length=0;continue}const u=s-s%o;m||(a=u);for(const{from:e,to:r}of n)_(e,r,a,o,t),k(e,r,a,o,t);n.length=0,_(c,p,u,o,t)}}return t.finish()}class P{constructor(e){this.decorations=void 0,this.decorations=x(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=x(e.view))}}const w=d.Lz.baseTheme({".cm-indentation-widget":{display:"inline-block"},".cm-indentation-guide":{position:"relative",height:"100%",display:"inline-block"},".cm-indentation-guide:after":{position:"absolute",content:"''",right:"calc(2ch - 4px)",height:"100%",borderLeft:"1px solid var(--indentation-guider-color, rgba(193, 199, 249, 0.4))"}});var Q=o(70579);class y extends n.PureComponent{constructor(e){super(e),this.editorRef=void 0,this.view=void 0,this.editorState=void 0,this.themeConfig=new s.xx,this.editorRef=n.createRef();const t=[d.Lz.updateListener.of((e=>{let{state:t}=e;const o=t.doc.toString();o!==this.state.code&&(this.setState((0,r.A)((0,r.A)({},this.state),{},{code:o})),this.props.onCodeChange(o))})),(0,d.$K)(),(0,d.Wu)(),(0,d.N$)(),(0,i.b6)(),(0,l.Lv)(),(0,d.VH)(),(0,d.A)(),s.$t.allowMultipleSelections.of(!0),(0,l.WD)(),this.themeConfig.of([!0===this.props.darkThemeEnabled?g:f]),(0,l.SG)(),(0,a.wm)(),(0,a.yU)(),(0,d.D4)(),(0,d.HJ)(),(0,d.dz)(),[d.Z9.fromClass(P,{decorations:e=>e.decorations}),w],l.Xt.of("    "),(0,c.bu)((e=>{const t=[];var o;this.props.errorLineNumbers&&this.props.errorLineNumbers.length>0&&(null===(o=this.props.errorLineNumbers)||void 0===o||o.forEach((o=>{if(o<1||o>e.state.doc.lines)return;const r=e.state.doc.line(o);r&&t.push({from:r.from,to:r.to,severity:"error",message:"Compilation Error",actions:[{name:"Remove",apply(e,t,o){e.dispatch({changes:{from:t,to:o}})}}]})})));return t})),d.w4.of([...a.Bc,...i.pw,...i.cL,...l.f7,...a.OO,i.Yc])];this.props.extenstions&&this.props.extenstions.forEach((e=>{t.push(e)})),!0===this.props.readOnly&&t.push(s.$t.readOnly.of(!0)),!0===this.props.disablePaste&&t.push(d.Lz.domEventHandlers({paste(e,t){e.preventDefault()}})),this.editorState=s.$t.create({doc:this.props.code||"",extensions:t}),this.state={editorState:this.editorState,code:this.props.code}}componentDidUpdate(e,t,o){var r,n;e.code!==this.props.code&&this.props.code!==this.state.code&&(null===(r=this.view)||void 0===r||r.dispatch({changes:{from:0,to:this.view.state.doc.length,insert:this.props.code}}));e.darkThemeEnabled!==this.props.darkThemeEnabled&&(null===(n=this.view)||void 0===n||n.dispatch({effects:this.themeConfig.reconfigure([!0===this.props.darkThemeEnabled?g:f])}));if(this.view&&e.errorLineNumbers!==this.props.errorLineNumbers){var a;const e=[];var s;if(this.props.errorLineNumbers&&this.props.errorLineNumbers.length>0)null===(s=this.props.errorLineNumbers)||void 0===s||s.forEach((t=>{var o;if(!this.view||t<1||t>this.view.state.doc.lines)return;const r=null===(o=this.view)||void 0===o?void 0:o.state.doc.line(t);r&&e.push({from:r.from,to:r.to,severity:"error",message:"Compilation Error",actions:[{name:"Remove",apply(e,t,o){e.dispatch({changes:{from:t,to:o}})}}]})}));null===(a=this.view)||void 0===a||a.dispatch((0,c.LH)(this.view.state,e))}}componentDidMount(){this.editorRef.current&&void 0===this.view&&(this.view=new d.Lz({state:this.state.editorState,doc:this.props.code,parent:this.editorRef.current})),this.props.onEditorLoaded&&this.props.onEditorLoaded()}componentWillUnmount(){this.view&&(this.view.destroy(),this.view=void 0)}render(){return(0,Q.jsx)("div",{ref:this.editorRef,style:{"--code-editor-height":this.props.height,height:this.props.height,minHeight:this.props.height,maxWidth:"var(--viewport-width, 100vw)",fontFamily:"Lexend Deca",fontWeight:"normal",fontSize:17,lineHeight:27.2,backgroundColor:"var(--input-background-color)",overflowX:"scroll",overflowY:"scroll","--indentation-guider-color":this.props.darkThemeEnabled?"rgba(227, 228, 226, 0.16)":"rgba(88, 88, 88, 0.4)"}})}}}}]);
2//# sourceMappingURL=nl-html-editor.4f7786e9.chunk.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.