ace.define("ace/ext/static.css",["require","exports","module"],function(h,N,_){_.exports=".ace_static_highlight {\n    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', 'Droid Sans Mono', monospace;\n    font-size: 12px;\n    white-space: pre-wrap\n}\n\n.ace_static_highlight .ace_gutter {\n    width: 2em;\n    text-align: right;\n    padding: 0 3px 0 0;\n    margin-right: 3px;\n    contain: none;\n}\n\n.ace_static_highlight.ace_show_gutter .ace_line {\n    padding-left: 2.6em;\n}\n\n.ace_static_highlight .ace_line { position: relative; }\n\n.ace_static_highlight .ace_gutter-cell {\n    -moz-user-select: -moz-none;\n    -khtml-user-select: none;\n    -webkit-user-select: none;\n    user-select: none;\n    top: 0;\n    bottom: 0;\n    left: 0;\n    position: absolute;\n}\n\n\n.ace_static_highlight .ace_gutter-cell:before {\n    content: counter(ace_line, decimal);\n    counter-increment: ace_line;\n}\n.ace_static_highlight {\n    counter-reset: ace_line;\n}\n"}),ace.define("ace/ext/static_highlight",["require","exports","module","ace/edit_session","ace/layer/text","ace/ext/static.css","ace/config","ace/lib/dom","ace/lib/lang"],function(h,N,_){"use strict";var y=h("../edit_session").EditSession,S=h("../layer/text").Text,M=h("./static.css"),C=h("../config"),T=h("../lib/dom"),L=h("../lib/lang").escapeHTML;function m(e){this.type=e,this.style={},this.textContent=""}m.prototype.cloneNode=function(){return this},m.prototype.appendChild=function(e){this.textContent+=e.toString()},m.prototype.toString=function(){var e=[];if("fragment"!=this.type){e.push("<",this.type),this.className&&e.push(" class='",this.className,"'");var t=[];for(var a in this.style)t.push(a,":",this.style[a]);t.length&&e.push(" style='",t.join(""),"'"),e.push(">")}return this.textContent&&e.push(this.textContent),"fragment"!=this.type&&e.push("</",this.type,">"),e.join("")};var u={createTextNode:function(e,t){return L(e)},createElement:function(e){return new m(e)},createFragment:function(){return new m("fragment")}},b=function(){this.config={},this.dom=u};b.prototype=S.prototype;var d=function(e,t,a){var f=e.className.match(/lang-(\w+)/),g=t.mode||f&&"ace/mode/"+f[1];if(!g)return!1;var r=t.theme||"ace/theme/textmate",n="",c=[];if(e.firstElementChild)for(var o=0,s=0;s<e.childNodes.length;s++){var i=e.childNodes[s];3==i.nodeType?(o+=i.data.length,n+=i.data):c.push(o,i)}else n=e.textContent,t.trim&&(n=n.trim());d.render(n,g,r,t.firstLineNumber,!t.showGutter,function(l){T.importCssString(l.css,"ace_highlight"),e.innerHTML=l.html;for(var v=e.firstChild.firstChild,p=0;p<c.length;p+=2){var x=l.session.doc.indexToPosition(c[p]),w=v.children[x.row];w&&w.appendChild(c[p+1])}a&&a()})};d.render=function(e,t,a,f,g,r){var o,n=1,c=y.prototype.$modes;function s(){var i=d.renderSync(e,t,a,f,g);return r?r(i):i}return"string"==typeof a&&(n++,C.loadModule(["theme",a],function(i){a=i,--n||s()})),t&&"object"==typeof t&&!t.getTokenizer&&(t=(o=t).path),"string"==typeof t&&(n++,C.loadModule(["mode",t],function(i){(!c[t]||o)&&(c[t]=new i.Mode(o)),t=c[t],--n||s()})),--n||s()},d.renderSync=function(e,t,a,f,g){f=parseInt(f||1,10);var r=new y("");r.setUseWorker(!1),r.setMode(t);var n=new b;n.setSession(r),Object.keys(n.$tabStrings).forEach(function(p){if("string"==typeof n.$tabStrings[p]){var x=u.createFragment();x.textContent=n.$tabStrings[p],n.$tabStrings[p]=x}}),r.setValue(e);var c=r.getLength(),o=u.createElement("div");o.className=a.cssClass;var s=u.createElement("div");s.className="ace_static_highlight"+(g?"":" ace_show_gutter"),s.style["counter-reset"]="ace_line "+(f-1);for(var i=0;i<c;i++){var l=u.createElement("div");if(l.className="ace_line",!g){var v=u.createElement("span");v.className="ace_gutter ace_gutter-cell",v.textContent="",l.appendChild(v)}n.$renderLine(l,i,!1),l.textContent+="\n",s.appendChild(l)}return o.appendChild(s),{css:M+a.cssText,html:o.toString(),session:r}},_.exports=d,_.exports.highlight=d}),ace.require(["ace/ext/static_highlight"],function(h){"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=h)});