','
','
','','','',"
",'
",'
','+','0 matches found.','','Aa','',"
","
"].join("");return ye.innerHTML=Y,me=ye.firstChild,ee.appendChild(me),me}L(),this.commands={toggleRegexpMode:function(){C.regExpOption.checked=!C.regExpOption.checked,C.$syncOptions()},toggleCaseSensitive:function(){C.caseSensitiveOption.checked=!C.caseSensitiveOption.checked,C.$syncOptions()},toggleWholeWords:function(){C.wholeWordOption.checked=!C.wholeWordOption.checked,C.$syncOptions()}},this.$syncOptions=function(){g(this.regExpOption,"checked",this.regExpOption.checked),g(this.wholeWordOption,"checked",this.wholeWordOption.checked),g(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.find(!1,!1)},this.find=function(me,ee){P(this.searchInput.value,{skipCurrent:me,backwards:ee,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked},function(ye){var Y=ye.matches(!1,ye.from());x.setSelection(Y.from,Y.to)})},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var me=this.searchInput.value,ee=this.searchInput.value;g(this.searchBox,"ace_nomatch",ee),x.showMatchesOnScrollbar&&x.showMatchesOnScrollbar(me),this.hide()},this.replace=function(){var me=x.getOption("readOnly"),ee=!!x.getSelection();!me&&ee&&x.replaceSelection(this.replaceInput.value,"start"),Ae()},this.replaceAndFindNext=function(){x.getOption("readOnly")||(this.replace(),this.findNext())},this.replaceAll=function(){var me,ee,ye=this.searchInput.value,Y=this.replaceInput.value,Ee=RegExp(ye,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(Ee=this.caseSensitiveOption.checked?RegExp("\\b"+ye+"\\b","g"):RegExp("\\b"+ye+"\\b","gi")),!x.getOption("readOnly")&&x.getSelection()&&(ee=x.getCursor(),me=(me=x.getValue()).replace(Ee,Y),x.setValue(me),x.setCursor(ee)),Ae()},this.toggleReplace=function(){var me=x.display.wrapper;me.parentElement.querySelector("[action=toggleReplace]").innerText==="+"?(me.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(me.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)},this.hide=function(){de(x);var me=x.getWrapperElement();l=null,me.removeChild(this.element),x.focus()},this.isVisible=function(){return this.element.style.display===""},this.show=function(me,ee){this.element.style.display="",ee||(this.replaceBox.style.display=ee?"":"none"),this.isReplace=ee,me&&(this.searchInput.value=me,this.find(!1,!1)),this.searchInput.focus(),this.searchInput.select()},this.isFocused=function(){var me=document.activeElement;return me===this.searchInput||me===this.replaceInput}}function g(x,C,B){x.classList[B?"add":"remove"](C)}function d(x,C){var B,L=function(){B=null,x()},I=function(P){B||(B=setTimeout(L,P||C))};return I.delay=function(P){B&&clearTimeout(B),B=setTimeout(L,P||C)},I.schedule=I,I.call=function(){this.cancel(),x()},I.cancel=function(){B&&clearTimeout(B),B=null},I.isPending=function(){return B},I}function b(x,C){var B,L={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220};return w(x,C),B=x.split("|").some(function(I){var P;return P=I.split("-").some(function(z){var W;switch(z){case"Ctrl":W=C.ctrlKey;break;case"Shift":W=C.shiftKey;break;case"Alt":W=C.altKey;break;case"Cmd":W=C.metaKey;break;default:z.length===1?W=C.keyCode===z.charCodeAt(0):Object.keys(L).some(function(Q){z.toUpperCase()===Q&&(W=C.keyCode===L[Q])})}return!W}),!P}),B}function w(x,C){if(typeof x!="string")throw Error("str should be string!");if(typeof C!="object")throw Error("event should be object!")}o.defineOption("searchbox",!1,function(x){x.addKeyMap({"Ctrl-F":function(){var C=x.display.wrapper;l&&C.parentElement.contains(l.searchBox)||(l=new h(x));var B=!1;C.parentElement.querySelector("[action=toggleReplace]")&&(B=C.parentElement.querySelector("[action=toggleReplace]").innerText==="-"),l.show(x.getSelection(),B)},Esc:function(){if(!l||!l.isVisible())return o.Pass;l.hide(),typeof event<"u"&&event.stopPropagation()},"Cmd-F":function(){var C=x.display.wrapper;l&&C.parentElement.contains(l.searchBox)||(l=new h(x));var B=!1;C.parentElement.querySelector("[action=toggleReplace]")&&(B=C.parentElement.querySelector("[action=toggleReplace]").innerText==="-"),l.show(x.getSelection(),B)}})})})(Fp)});il(function(r,i){(function(o){function l(h,g){function d(w){clearTimeout(b.doRedraw),b.doRedraw=setTimeout(function(){b.redraw()},w)}this.cm=h,this.options=g,this.buttonHeight=g.scrollButtonHeight||h.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=h.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var b=this;h.on("refresh",this.resizeHandler=function(){clearTimeout(b.doUpdate),b.doUpdate=setTimeout(function(){b.computeScale()&&d(20)},100)}),h.on("markerAdded",this.resizeHandler),h.on("markerCleared",this.resizeHandler),g.listenForChanges!==!1&&h.on("changes",this.changeHandler=function(){d(250)})}o.defineExtension("annotateScrollbar",function(h){return typeof h=="string"&&(h={className:h}),new l(this,h)}),o.defineOption("scrollButtonHeight",0),l.prototype.computeScale=function(){var h=this.cm,g=(h.getWrapperElement().clientHeight-h.display.barHeight-2*this.buttonHeight)/h.getScrollerElement().scrollHeight;if(g!=this.hScale)return this.hScale=g,!0},l.prototype.update=function(h){this.annotations=h,this.redraw()},l.prototype.redraw=function(h){h!==!1&&this.computeScale();var g=this.cm,d=this.hScale,b=document.createDocumentFragment(),w=this.annotations,x=g.getOption("lineWrapping"),C=x&&1.5*g.defaultTextHeight(),B=null,L=null;function I(ne,de){if(B!=ne.line){B=ne.line,L=g.getLineHandle(ne.line);var Ae=g.getLineHandleVisualStart(L);Ae!=L&&(B=g.getLineNumber(Ae),L=Ae)}return L.widgets&&L.widgets.length||x&&L.height>C?g.charCoords(ne,"local")[de?"top":"bottom"]:g.heightAtLine(L,"local")+(de?0:L.height)}var P=g.lastLine();if(g.display.barWidth)for(var z,W=0;W