(function(){var h={default:!0};window.MirrorFrame=function(b,a,c,f,g){CodeMirror.I18N=CodeMirror.I18N||{getMessage:g};g=document.createElement("div");g.setAttribute("class","CodeMirror-editor");g.setAttribute("style","font-size:"+((a.fontSize||100)/100).toFixed(2)+"em;");b.appendChild(g);var l={nextTheme:function(){if(a.themeOptions){var d=a.themeOptions.all,b=d.indexOf(a.theme||"default")||0;++b>=d.length&&(b=0);d=a.theme=d[b];k(d);e.setOption("theme",d);if(a.themeOptions.onChange)a.themeOptions.onChange(d)}}},
k=function(a){a&&!h[a]&&(h[a]=!0,$("head").append($('<link rel="stylesheet" type="text/css" />').attr("href","vendor/cm/theme/"+a.replace(/[^a-zA-Z0-9\.-]/g,"")+".css")))};a.theme&&k(a.theme);var e=new CodeMirror(g,a);this.mirror=e;Object.keys(l).forEach(function(a){e.setCommand(a,l[a])});c&&Object.keys(c).forEach(function(a){e.setCommand(a,c[a])});f&&Object.keys(f).forEach(function(a){e.on(a,f[a])});this.refresh=function(){e.refresh.call(e)}};var f={jump:function(b){var a=prompt(CodeMirror.I18N.getMessage("Jump_to_line"),
"");a&&!isNaN(Number(a-1))&&b.setCursor(Number(a-1));b.focus()},macro:function(b){var a=prompt(CodeMirror.I18N.getMessage("Insert_constructor")+":","");a&&b.replaceSelection("function "+a+"() {\n  \n}\n\n"+a+".prototype = {\n  \n};\n")},reindentall:function(b){for(var a=0;a<=b.lineCount();a++)b.indentLine(a,"smart")}},c;for(c in f)f.hasOwnProperty(c)&&(CodeMirror.commands[c]=f[c])})();
(function(){var h={default:!0};window.MirrorFrame=function(b,a,c,f,g){CodeMirror.I18N=CodeMirror.I18N||{getMessage:g};g=document.createElement("div");g.setAttribute("class","CodeMirror-editor");g.setAttribute("style","font-size:"+((a.fontSize||100)/100).toFixed(2)+"em;");b.appendChild(g);var l={nextTheme:function(){if(a.themeOptions){var d=a.themeOptions.all,b=d.indexOf(a.theme||"default")||0;++b>=d.length&&(b=0);d=a.theme=d[b];k(d);e.setOption("theme",d);if(a.themeOptions.onChange)a.themeOptions.onChange(d)}}},
k=function(a){a&&!h[a]&&(h[a]=!0,$("head").append($('<link rel="stylesheet" type="text/css" />').attr("href","vendor/cm/theme/"+a.replace(/[^a-zA-Z0-9\.-]/g,"")+".css")))};a.theme&&k(a.theme);var e=new CodeMirror(g,a);this.mirror=e;Object.keys(l).forEach(function(a){e.setCommand(a,l[a])});c&&Object.keys(c).forEach(function(a){e.setCommand(a,c[a])});f&&Object.keys(f).forEach(function(a){e.on(a,f[a])});this.refresh=function(){e.refresh.call(e)}};var f={jump:function(b){var a=prompt(CodeMirror.I18N.getMessage("Jump_to_line"),
"");a&&!isNaN(Number(a-1))&&b.setCursor(Number(a-1));b.focus()},macro:function(b){var a=prompt(CodeMirror.I18N.getMessage("Insert_constructor")+":","");a&&b.replaceSelection("function "+a+"() {\n  \n}\n\n"+a+".prototype = {\n  \n};\n")},reindentall:function(b){for(var a=0;a<=b.lineCount();a++)b.indentLine(a,"smart")}},c;for(c in f)f.hasOwnProperty(c)&&(CodeMirror.commands[c]=f[c])})();
