1"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[5963],{31476:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var i=o(5556),s=o(24002),a=o(42047),p=o(2189),l=function(e){function t(t){var o=e.call(this,t)||this;return o.state={value:o.props.value},o.onChange=o.onChange.bind(o),o.diff=o.diff.bind(o),o}return r(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.value;e!==this.state.value&&this.setState({value:e})},t.prototype.onChange=function(e){this.setState({value:e}),this.props.onChange&&this.props.onChange(e)},t.prototype.diff=function(){var e=new p,t=this.state.value[0],o=this.state.value[1];if(0===t.length&&0===o.length)return[];var n=e.diff_main(t,o);e.diff_cleanupSemantic(n);var r=this.generateDiffedLines(n);return this.setCodeMarkers(r)},t.prototype.generateDiffedLines=function(e){var t={left:[],right:[]},o={left:1,right:1};return e.forEach((function(e){var n=e[0],r=e[1],i=r.split("\n").length-1;if(0!==r.length){var s=r[0],a=r[r.length-1],p=0;switch(n){case 0:o.left+=i,o.right+=i;break;case-1:"\n"===s&&(o.left++,i--),0===(p=i)&&t.right.push({startLine:o.right,endLine:o.right}),"\n"===a&&(p-=1),t.left.push({startLine:o.left,endLine:o.left+p}),o.left+=i;break;case 1:"\n"===s&&(o.right++,i--),0===(p=i)&&t.left.push({startLine:o.left,endLine:o.left}),"\n"===a&&(p-=1),t.right.push({startLine:o.right,endLine:o.right+p}),o.right+=i;break;default:throw new Error("Diff type was not defined.")}}})),t},t.prototype.setCodeMarkers=function(e){void 0===e&&(e={left:[],right:[]});for(var t=[],o={left:[],right:[]},n=0;n<e.left.length;n++){var r={startRow:e.left[n].startLine-1,endRow:e.left[n].endLine,type:"text",className:"codeMarker"};o.left.push(r)}for(n=0;n<e.right.length;n++)r={startRow:e.right[n].startLine-1,endRow:e.right[n].endLine,type:"text",className:"codeMarker"},o.right.push(r);return t[0]=o.left,t[1]=o.right,t},t.prototype.render=function(){var e=this.diff();return s.createElement(a.default,{name:this.props.name,className:this.props.className,focus:this.props.focus,orientation:this.props.orientation,splits:this.props.splits,mode:this.props.mode,theme:this.props.theme,height:this.props.height,width:this.props.width,fontSize:this.props.fontSize,showGutter:this.props.showGutter,onChange:this.onChange,onPaste:this.props.onPaste,onLoad:this.props.onLoad,onScroll:this.props.onScroll,minLines:this.props.minLines,maxLines:this.props.maxLines,readOnly:this.props.readOnly,highlightActiveLine:this.props.highlightActiveLine,showPrintMargin:this.props.showPrintMargin,tabSize:this.props.tabSize,cursorStart:this.props.cursorStart,editorProps:this.props.editorProps,style:this.props.style,scrollMargin:this.props.scrollMargin,setOptions:this.props.setOptions,wrapEnabled:this.props.wrapEnabled,enableBasicAutocompletion:this.props.enableBasicAutocompletion,enableLiveAutocompletion:this.props.enableLiveAutocompletion,value:this.state.value,markers:e})},t.propTypes={cursorStart:i.number,editorProps:i.object,enableBasicAutocompletion:i.bool,enableLiveAutocompletion:i.bool,focus:i.bool,fontSize:i.number,height:i.string,highlightActiveLine:i.bool,maxLines:i.number,minLines:i.number,mode:i.string,name:i.string,className:i.string,onLoad:i.func,onPaste:i.func,onScroll:i.func,onChange:i.func,orientation:i.string,readOnly:i.bool,scrollMargin:i.array,setOptions:i.object,showGutter:i.bool,showPrintMargin:i.bool,splits:i.number,style:i.object,tabSize:i.number,theme:i.string,value:i.array,width:i.string,wrapEnabled:i.bool},t.defaultProps={cursorStart:1,editorProps:{},enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,focus:!1,fontSize:12,height:"500px",highlightActiveLine:!0,maxLines:null,minLines:null,mode:"",name:"ace-editor",onLoad:null,onScroll:null,onPaste:null,onChange:null,orientation:"beside",readOnly:!1,scrollMargin:[0,0,0,0],setOptions:{},showGutter:!0,showPrintMargin:!0,splits:2,style:{},tabSize:4,theme:"github",value:["",""],width:"500px",wrapEnabled:!0},t}(s.Component);t.default=l},42047:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(42858),a=(0,s.getAceInstance)(),p=o(80952),l=o(20009),h=o(5556),c=o(24002),d=o(8142),u=o(16762),f=function(e){function t(t){var o=e.call(this,t)||this;return s.editorEvents.forEach((function(e){o[e]=o[e].bind(o)})),o.debounce=s.debounce,o}return r(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.className,n=t.onBeforeLoad,r=t.mode,i=t.focus,p=t.theme,h=t.fontSize,c=t.value,d=t.defaultValue,f=t.cursorStart,g=t.showGutter,m=t.wrapEnabled,y=t.showPrintMargin,b=t.scrollMargin,v=void 0===b?[0,0,0,0]:b,S=t.keyboardHandler,w=t.onLoad,O=t.commands,C=t.annotations,P=t.markers,M=t.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(p)),n&&n(a);var E=Object.keys(this.props.editorProps),L=new l.Split(this.editor.container,"ace/theme/".concat(p),M);this.editor.env.split=L,this.splitEditor=L.getEditor(0),this.split=L,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var k=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),L.forEach((function(t,o){for(var n=0;n<E.length;n++)t[E[n]]=e.props.editorProps[E[n]];var i=u(d,o),l=u(c,o,"");t.session.setUndoManager(new a.UndoManager),t.setTheme("ace/theme/".concat(p)),t.renderer.setScrollMargin(v[0],v[1],v[2],v[3]),t.getSession().setMode("ace/mode/".concat(r)),t.setFontSize(h),t.renderer.setShowGutter(g),t.getSession().setUseWrapMode(m),t.setShowPrintMargin(y),t.on("focus",e.onFocus),t.on("blur",e.onBlur),t.on("input",e.onInput),t.on("copy",e.onCopy),t.on("paste",e.onPaste),t.on("change",e.onChange),t.getSession().selection.on("changeSelection",e.onSelectionChange),t.getSession().selection.on("changeCursor",e.onCursorChange),t.session.on("changeScrollTop",e.onScroll),t.setValue(void 0===i?l:i,f);var b=u(C,o,[]),w=u(P,o,[]);for(t.getSession().setAnnotations(b),w&&w.length>0&&e.handleMarkers(w,t),n=0;n<s.editorOptions.length;n++){var M=s.editorOptions[n];k.hasOwnProperty(M)?t.setOption(M,e.props[M]):e.props[M]&&console.warn("ReaceAce: editor option ".concat(M," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}e.handleOptions(e.props,t),Array.isArray(O)&&O.forEach((function(e){"string"==typeof e.exec?t.commands.bindKey(e.bindKey,e.exec):t.commands.addCommand(e)})),S&&t.setKeyboardHandler("ace/keyboard/"+S)})),o&&(this.refEditor.className+=" "+o),i&&this.splitEditor.focus();var A=this.editor.env.split;A.setOrientation("below"===this.props.orientation?A.BELOW:A.BESIDE),A.resize(!0),w&&w(A)},t.prototype.componentDidUpdate=function(e){var t=this,o=e,n=this.props,r=this.editor.env.split;if(n.splits!==o.splits&&r.setSplits(n.splits),n.orientation!==o.orientation&&r.setOrientation("below"===n.orientation?r.BELOW:r.BESIDE),r.forEach((function(e,r){n.mode!==o.mode&&e.getSession().setMode("ace/mode/"+n.mode),n.keyboardHandler!==o.keyboardHandler&&(n.keyboardHandler?e.setKeyboardHandler("ace/keyboard/"+n.keyboardHandler):e.setKeyboardHandler(null)),n.fontSize!==o.fontSize&&e.setFontSize(n.fontSize),n.wrapEnabled!==o.wrapEnabled&&e.getSession().setUseWrapMode(n.wrapEnabled),n.showPrintMargin!==o.showPrintMargin&&e.setShowPrintMargin(n.showPrintMargin),n.showGutter!==o.showGutter&&e.renderer.setShowGutter(n.showGutter);for(var i=0;i<s.editorOptions.length;i++){var a=s.editorOptions[i];n[a]!==o[a]&&e.setOption(a,n[a])}d(n.setOptions,o.setOptions)||t.handleOptions(n,e);var p=u(n.value,r,"");if(e.getValue()!==p){t.silent=!0;var l=e.session.selection.toJSON();e.setValue(p,n.cursorStart),e.session.selection.fromJSON(l),t.silent=!1}var h=u(n.annotations,r,[]),c=u(o.annotations,r,[]);d(h,c)||e.getSession().setAnnotations(h);var f=u(n.markers,r,[]),g=u(o.markers,r,[]);!d(f,g)&&Array.isArray(f)&&t.handleMarkers(f,e)})),n.className!==o.className){var i=this.refEditor.className.trim().split(" ");o.className.trim().split(" ").forEach((function(e){var t=i.indexOf(e);i.splice(t,1)})),this.refEditor.className=" "+n.className+" "+i.join(" ")}n.theme!==o.theme&&r.setTheme("ace/theme/"+n.theme),n.focus&&!o.focus&&this.splitEditor.focus(),n.height===this.props.height&&n.width===this.props.width||this.editor.resize()},t.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},t.prototype.onChange=function(e){if(this.props.onChange&&!this.silent){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getValue())})),this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=[];this.editor.env.split.forEach((function(e){t.push(e.getSelection())})),this.props.onCursorChange(t,e)}},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e)},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e)},t.prototype.onCopy=function(e){this.props.onCopy&&this.props.onCopy(e)},t.prototype.onPaste=function(e){this.props.onPaste&&this.props.onPaste(e)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e,t){for(var o=Object.keys(e.setOptions),n=0;n<o.length;
1n++)t.setOption(o[n],e.setOptions[o[n]])},t.prototype.handleMarkers=function(e,t){var o=t.getSession().getMarkers(!0);for(var n in o)o.hasOwnProperty(n)&&t.getSession().removeMarker(o[n].id);for(var n in o=t.getSession().getMarkers(!1))o.hasOwnProperty(n)&&t.getSession().removeMarker(o[n].id);e.forEach((function(e){var o=e.startRow,n=e.startCol,r=e.endRow,i=e.endCol,s=e.className,a=e.type,l=e.inFront,h=void 0!==l&&l,c=new p.Range(o,n,r,i);t.getSession().addMarker(c,s,a,h)}))},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,o=e.width,n=e.height,r=e.style,s=i({width:o,height:n},r);return c.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={className:h.string,debounceChangePeriod:h.number,defaultValue:h.arrayOf(h.string),focus:h.bool,fontSize:h.oneOfType([h.number,h.string]),height:h.string,mode:h.string,name:h.string,onBlur:h.func,onChange:h.func,onCopy:h.func,onFocus:h.func,onInput:h.func,onLoad:h.func,onPaste:h.func,onScroll:h.func,orientation:h.string,showGutter:h.bool,splits:h.number,theme:h.string,value:h.arrayOf(h.string),width:h.string,onSelectionChange:h.func,onCursorChange:h.func,onBeforeLoad:h.func,minLines:h.number,maxLines:h.number,readOnly:h.bool,highlightActiveLine:h.bool,tabSize:h.number,showPrintMargin:h.bool,cursorStart:h.number,editorProps:h.object,setOptions:h.object,style:h.object,scrollMargin:h.array,annotations:h.array,markers:h.array,keyboardHandler:h.string,wrapEnabled:h.bool,enableBasicAutocompletion:h.oneOfType([h.bool,h.array]),enableLiveAutocompletion:h.oneOfType([h.bool,h.array]),commands:h.array},t.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},t}(c.Component);t.default=f},42858:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getAceInstance=t.debounce=t.editorEvents=t.editorOptions=void 0,t.editorOptions=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"],t.editorEvents=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"],t.getAceInstance=function(){var e;return"undefined"==typeof window?(o.g.window={},e=o(80952),delete o.g.window):window.ace?(e=window.ace).acequire=window.ace.require||window.ace.acequire:e=o(80952),e},t.debounce=function(e,t){var o=null;return function(){var n=this,r=arguments;clearTimeout(o),o=setTimeout((function(){e.apply(n,r)}),t)}}},65300:function(e,t,o){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s=o(80952),a=o(5556),p=o(24002),l=o(8142),h=o(42858),c=(0,h.getAceInstance)(),d=function(e){function t(t){var o=e.call(this,t)||this;return h.editorEvents.forEach((function(e){o[e]=o[e].bind(o)})),o.debounce=h.debounce,o}return r(t,e),t.prototype.isInShadow=function(e){for(var t=e&&e.parentNode;t;){if("[object ShadowRoot]"===t.toString())return!0;t=t.parentNode}return!1},t.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.className,n=t.onBeforeLoad,r=t.onValidate,i=t.mode,s=t.focus,a=t.theme,p=t.fontSize,l=t.lineHeight,d=t.value,u=t.defaultValue,f=t.showGutter,g=t.wrapEnabled,m=t.showPrintMargin,y=t.scrollMargin,b=void 0===y?[0,0,0,0]:y,v=t.keyboardHandler,S=t.onLoad,w=t.commands,O=t.annotations,C=t.markers,P=t.placeholder;this.editor=c.edit(this.refEditor),n&&n(c);for(var M=Object.keys(this.props.editorProps),E=0;E<M.length;E++)this.editor[M[E]]=this.props.editorProps[M[E]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(b[0],b[1],b[2],b[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode("string"==typeof i?"ace/mode/".concat(i):i),a&&""!==a&&this.editor.setTheme("ace/theme/".concat(a)),this.editor.setFontSize("number"==typeof p?"".concat(p,"px"):p),l&&(this.editor.container.style.lineHeight="number"==typeof l?"".concat(l,"px"):"".concat(l),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(u||d||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter(f),this.editor.getSession().setUseWrapMode(g),this.editor.setShowPrintMargin(m),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),P&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),r&&this.editor.getSession().on("changeAnnotation",(function(){var t=e.editor.getSession().getAnnotations();e.props.onValidate(t)})),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(O||[]),C&&C.length>0&&this.handleMarkers(C);var L=this.editor.$options;h.editorOptions.forEach((function(t){L.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))})),this.handleOptions(this.props),Array.isArray(w)&&w.forEach((function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)})),v&&this.editor.setKeyboardHandler("ace/keyboard/"+v),o&&(this.refEditor.className+=" "+o),S&&S(this.editor),this.editor.resize(),s&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=e,o=this.props,n=0;n<h.editorOptions.length;n++){var r=h.editorOptions[n];o[r]!==t[r]&&this.editor.setOption(r,o[r])}if(o.className!==t.className){var i=this.refEditor.className.trim().split(" ");t.className.trim().split(" ").forEach((function(e){var t=i.indexOf(e);i.splice(t,1)})),this.refEditor.className=" "+o.className+" "+i.join(" ")}var s=this.editor&&null!=o.value&&this.editor.getValue()!==o.value;if(s){this.silent=!0;var a=this.editor.session.selection.toJSON();this.editor.setValue(o.value,o.cursorStart),this.editor.session.selection.fromJSON(a),this.silent=!1}o.placeholder!==t.placeholder&&this.updatePlaceholder(),o.mode!==t.mode&&this.editor.getSession().setMode("string"==typeof o.mode?"ace/mode/".concat(o.mode):o.mode),o.theme!==t.theme&&this.editor.setTheme("ace/theme/"+o.theme),o.keyboardHandler!==t.keyboardHandler&&(o.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+o.keyboardHandler):this.editor.setKeyboardHandler(null)),o.fontSize!==t.fontSize&&this.editor.setFontSize("number"==typeof o.fontSize?"".concat(o.fontSize,"px"):o.fontSize),o.lineHeight!==t.lineHeight&&(this.editor.container.style.lineHeight="number"==typeof o.lineHeight?"".concat(o.lineHeight,"px"):o.lineHeight,this.editor.renderer.updateFontSize()),o.wrapEnabled!==t.wrapEnabled&&this.editor.getSession().setUseWrapMode(o.wrapEnabled),o.showPrintMargin!==t.showPrintMargin&&this.editor.setShowPrintMargin(o.showPrintMargin),o.showGutter!==t.showGutter&&this.editor.renderer.setShowGutter(o.showGutter),l(o.setOptions,t.setOptions)||this.handleOptions(o),!s&&l(o.annotations,t.annotations)||this.editor.getSession().setAnnotations(o.annotations||[]),!l(o.markers,t.markers)&&Array.isArray(o.markers)&&this.handleMarkers(o.markers),l(o.scrollMargin,t.scrollMargin)||this.handleScrollMargins(o.scrollMargin),e.height===this.props.height&&e.width===this.props.width||this.editor.resize(),this.props.focus&&!e.focus&&this.editor.focus()},t.prototype.handleScrollMargins=function(e){void 0===e&&(e=[0,0,0,0]),this.editor.renderer.setScrollMargin(e[0],e[1],e[2],e[3])},t.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},t.prototype.onChange=function(e){if(this.editor&&this.props.onChange&&!this.silent){var t=this.editor.getValue();this.props.onChange(t,e)}},t.prototype.onSelectionChange=function(e){if(this.props.onSelectionChange){var t=this.editor.getSelection();this.props.onSelectionChange(t,e)}},t.prototype.onCursorChange=function(e){if(this.props.onCursorChange){var t=this.editor.getSelection();this.props.onCursorChange(t,e)}},t.prototype.onInput=function(e){this.props.onInput&&this.props.onInput(e),this.props.placeholder&&this.updatePlaceholder()},t.prototype.onFocus=function(e){this.props.onFocus&&this.props.onFocus(e,this.editor)},t.prototype.onBlur=function(e){this.props.onBlur&&this.props.onBlur(e,this.editor)},t.prototype.onCopy=function(e){var t=e.text;this.props.onCopy&&this.props.onCopy(t)},t.prototype.onPaste=function(e){var t=e.text;this.props.onPaste&&this.props.onPaste(t)},t.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},t.prototype.handleOptions=function(e){for(var t=Object.keys(e.setOptions),o=0;o<t.length;o++)this.editor.setOption(t[o],e.setOptions[t[o]])},t.prototype.handleMarkers=function(e){var t=this,o=this.editor.getSession().getMarkers(!0);for(var n in o)o.hasOwnProperty(n)&&this.editor.getSession().removeMarker(o[n].id);for(var n in o=this.editor.getSession().getMarkers(!1))o.hasOwnProperty(n)&&"ace_active-line"!==o[n].clazz&&"ace_selected-word"!==o[n].clazz&&this.editor.getSession().removeMarker(o[n].id);e.forEach((function(e){var o=e.startRow,n=e.startCol,r=e.endRow,i=e.endCol,a=e.className,p=e.type,l=e.inFront,h=void 0!==l&&l,c=new s.Range(o,n,r,i);t.editor.getSession().addMarker(c,a,p,h)}))},t.prototype.updatePlaceholder=function(){var e=this.editor,t=this.props.placeholder,o=!e.session.getValue().length,n=e.renderer.placeholderNode;!o&&n?(e.renderer.scroller.removeChild(e.renderer.placeholderNode),e.renderer.placeholderNode=null):o&&!n?((n=e.renderer.placeholderNode=document.createElement("div")).textContent=t||"",n.className="ace_comment ace_placeholder",n.style.padding="0 9px",n.style.position="absolute",n.style.zIndex="3",e.renderer.scroller.appendChild(n)):o&&n&&(n.textContent=t)},t.prototype.updateRef=function(e){this.refEditor=e},t.prototype.render=function(){var e=this.props,t=e.name,o=e.width,n=e.he
1ight,r=e.style,s=i({width:o,height:n},r);return p.createElement("div",{ref:this.updateRef,id:t,style:s})},t.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},t.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},t}(p.Component);t.default=d},85963:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diff=t.split=void 0;var n=o(65300),r=o(31476);t.diff=r.default;var i=o(42047);t.split=i.default,t.default=n.default}}]);
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.