define("ace/ext/beautify/php_rules",["require","exports","module","ace/token_iterator"],function(k,e,u){k("ace/token_iterator");e.newLines=[{type:"support.php_tag",value:"<?php"},{type:"support.php_tag",value:"<?"},{type:"support.php_tag",value:"?>"},{type:"paren.lparen",value:"{",indent:!0},{type:"paren.rparen",breakBefore:!0,value:"}",indent:!1},{type:"paren.rparen",breakBefore:!0,value:"})",indent:!1,dontBreak:!0},{type:"comment"},{type:"text",value:";"},{type:"text",value:":",context:"php"},{type:"keyword",
value:"case",indent:!0,dontBreak:!0},{type:"keyword",value:"default",indent:!0,dontBreak:!0},{type:"keyword",value:"break",indent:!1,dontBreak:!0},{type:"punctuation.doctype.end",value:">"},{type:"meta.tag.punctuation.end",value:">"},{type:"meta.tag.punctuation.begin",value:"<",blockTag:!0,indent:!0,dontBreak:!0},{type:"meta.tag.punctuation.begin",value:"</",indent:!1,breakBefore:!0,dontBreak:!0},{type:"punctuation.operator",value:";"}];e.spaces=[{type:"xml-pe",prepend:!0},{type:"entity.other.attribute-name",
prepend:!0},{type:"storage.type",value:"var",append:!0},{type:"storage.type",value:"function",append:!0},{type:"keyword.operator",value:"="},{type:"keyword",value:"as",prepend:!0,append:!0},{type:"keyword",value:"function",append:!0},{type:"support.function",next:/[^\(]/,append:!0},{type:"keyword",value:"or",append:!0,prepend:!0},{type:"keyword",value:"and",append:!0,prepend:!0},{type:"keyword",value:"case",append:!0},{type:"keyword.operator",value:"||",append:!0,prepend:!0},{type:"keyword.operator",
value:"&&",append:!0,prepend:!0}];e.singleTags="!doctype area base br hr input img link meta".split(" ");e.transform=function(m,a,d){a=m.getCurrentToken();for(var c=e.newLines,g=e.spaces,k=e.singleTags,f="",p=0,q=!1,s,h={},t,l={},r=!1,n="";null!==a;)if(console.log(a),a)if("support.php_tag"==a.type&&"?>"!=a.value?d="php":"support.php_tag"==a.type&&"?>"==a.value?d="html":"meta.tag.name.style"==a.type&&"css"!=d?d="css":"meta.tag.name.style"==a.type&&"css"==d?d="html":"meta.tag.name.script"==a.type&&
"js"!=d?d="js":"meta.tag.name.script"==a.type&&"js"==d&&(d="html"),(l=m.stepForward())&&0==l.type.indexOf("meta.tag.name")&&(t=l.value),"support.php_tag"==h.type&&"<?="==h.value&&(q=!0),"meta.tag.name"==a.type&&(a.value=a.value.toLowerCase()),"text"==a.type&&(a.value=a.value.trim()),a.value){var n=a.value,b;for(b in g)a.type!=g[b].type||g[b].value&&a.value!=g[b].value||!l||g[b].next&&!g[b].next.test(l.value)||(g[b].prepend&&(n=" "+a.value),g[b].append&&(n+=" "));0==a.type.indexOf("meta.tag.name")&&
(s=a.value);r=!1;for(b in c)if(!(a.type!=c[b].type||c[b].value&&a.value!=c[b].value||c[b].blockTag&&-1!==k.indexOf(t)||c[b].context&&c[b].context!==d)){!1===c[b].indent&&p--;if(c[b].breakBefore&&(!c[b].prev||c[b].prev.test(h.value)))for(f+="\n",r=!0,b=0;b<p;b++)f+="\t";break}if(!1===q)for(b in c)if(!(h.type!=c[b].type||c[b].value&&h.value!=c[b].value||c[b].blockTag&&-1!==k.indexOf(s)||c[b].context&&c[b].context!==d)){!0===c[b].indent&&p++;if(!c[b].dontBreak&&!r)for(f+="\n",b=0;b<p;b++)f+="\t";break}f+=
n;"support.php_tag"==h.type&&"?>"==h.value&&(q=!1);h=a;a=l;if(null===a)break}else a=l;else a=m.stepForward();return f}});
define("ace/ext/beautify",["require","exports","module","ace/token_iterator","ace/ext/beautify/php_rules"],function(k,e,u){var m=k("ace/token_iterator").TokenIterator,a=k("./beautify/php_rules").transform;e.beautify=function(d){var c=new m(d,0,0);c.getCurrentToken();var e=d.$modeId.split("/").pop(),c=a(c,e);d.doc.setValue(c)};e.commands=[{name:"beautify",exec:function(a){e.beautify(a.session)},bindKey:"Ctrl-Shift-B"}]});(function(){window.require(["ace/ext/beautify"],function(){})})();
