text: define("ace/mode/c9search_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";function r(){this.$rules={start:[{tokenNames:["c9searchresults.constant.numeric","c9searchresults.text","c9searchresults.text","c9searchresults.keyword"],regex:/(^\s+[0-9]+)(:)(\d*\s?)([^\r\n]+)/,onMatch:function(e,t,n){var r=this.splitRegex.exec(e),i=this.tokenNames,o=[{type:i[0],value:r[1]},{type:i[1],value:r[2]}];r[3]&&(" "==r[3]?o[1]={type:i[1],value:r[2]+" "}:o.push({type:i[1],value:r[3]}));var s,a=n[1],c=r[4],u=0;if(a&&a.exec)for(a.lastIndex=0;s=a.exec(c);){var h=c.substring(u,s.index),u=a.lastIndex;if(h&&o.push({type:i[2],value:h}),s[0])o.push({type:i[3],value:s[0]});else if(!h)break}return u<c.length&&o.push({type:i[2],value:c.substr(u)}),o}},{regex:"^Searching for [^\\r\\n]*$",onMatch:function(e,t,n){var r=e.split("");if(r.length<3)return"text";var i,o,s=0,a=[{value:r[s++]+"'",type:"text"},{value:o=r[s++],type:"text"},{value:"'"+r[s++],type:"text"}];for(" in"!==r[2]&&a.push({value:"'"+r[s++]+"'",type:"text"},{value:r[s++],type:"text"}),a.push({value:" "+r[s++]+" ",type:"text"}),r[s+1]?(i=r[s+1],a.push({value:"("+r[s+1]+")",type:"text"}),s+=1):--s;s++<r.length;)r[s]&&a.push({value:r[s],type:"text"});o&&(/regex/.test(i)||(o=u.escapeRegExp(o)),/whole/.test(i)&&(o="\\b"+o+"\\b"));var c=o&&function(e,t){try{return new RegExp(e,t)}catch(e){}}("("+o+")",/ sensitive/.test(i)?"g":"ig");return c&&(n[0]=t,n[1]=c),a}},{regex:"^(?=Found \\d+ matches)",token:"text",next:"numbers"},{token:"string",regex:"^\\S:?[^:]+",next:"numbers"}],numbers:[{regex:"\\d+",token:"constant.numeric"},{regex:"$",token:"text",next:"start"}]},this.normalizeRules()}var i=e("../lib/oop"),u=e("../lib/lang"),o=e("./text_highlight_rules").TextHighlightRules;i.inherits(r,o),t.C9SearchHighlightRules=r}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";function r(){}var s=e("../range").Range;(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var r=n[1].length,i=e.findMatchingBracket({row:t,column:r});if(!i||i.row==t)return 0;var o=this.$getIndent(e.getLine(i.row));e.replace(new s(t,0,t,r-1),o)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(r.prototype),t.MatchingBraceOutdent=r}),define("ace/mode/folding/c9search",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),d=e("../../range").Range,i=e("./fold_mode").FoldMode,o=t.FoldMode=function(){};r.inherits(o,i),function(){this.foldingStartMarker=/^(\S.*:|Searching for.*)$/,this.foldingStopMarker=/^(\s+|Found.*)$/,this.getFoldWidgetRange=function(e,t,n){var r=e.doc.getAllLines(n),i=r[n],o=/^(Found.*|Searching for.*)$/,s=o.test(i)?o:/^(\S.*:|\s*)$/,a=n,c=n;if(this.foldingStartMarker.test(i)){for(var u=n+1,h=e.getLength();u<h&&!s.test(r[u]);u++);c=u}else if(this.foldingStopMarker.test(i)){for(u=n-1;0<=u&&(i=r[u],!s.test(i));u--);a=u}if(a!=c){var l=i.length;return s===o&&(l=i.search(/\(Found[^)]+\)$|$/)),new d(a,l,c,0)}}}.call(o.prototype)}),define("ace/mode/c9search",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/c9search_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/c9search"],function(e,t,n){"use strict";function r(){this.HighlightRules=s,this.$outdent=new a,this.foldingRules=new c}var i=e("../lib/oop"),o=e("./text").Mode,s=e("./c9search_highlight_rules").C9SearchHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,c=e("./folding/c9search").FoldMode;i.inherits(r,o),function(){this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.$id="ace/mode/c9search"}.call(r.prototype),t.Mode=r}),window.require(["ace/mode/c9search"],function(e){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=e)});