CodeMirror.defineMode("xml",function(l,e){function j(k,a){function b(d){return a.tokenize=d,d(k,a)}var d=k.next(),c;if("<"==d){if(k.eat("!"))return k.eat("[")?k.match("CDATA[")?b(r("atom","]]\>")):null:k.match("--")?b(r("comment","--\>")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),b(n(1))):null;if(k.eat("?"))return k.eatWhile(/[\w\._\-]/),a.tokenize=r("meta","?>"),"meta";d=k.eat("/");for(u="";c=k.eat(/[^\s\u00a0=<>\"\'\/?]/);)u+=c;return u?(w=d?"closeTag":"openTag",a.tokenize=o,"tag"):"error"}return"&"== d?(c=k.eat("#")?k.eat("x")?k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):k.eatWhile(/[\d]/)&&k.eat(";"):k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),c?"atom":"error"):(k.eatWhile(/[^&<]/),null)}function o(k,a){var b=k.next();return">"==b||"/"==b&&k.eat(">")?(a.tokenize=j,w=">"==b?"endTag":"selfcloseTag","tag"):"="==b?(w="equals",null):/[\'\"]/.test(b)?(a.tokenize=v(b),a.tokenize(k,a)):(k.eatWhile(/[^\s\u00a0=<>\"\']/),"word")}function v(a){return function(b,d){for(;!b.eol();)if(b.next()==a){d.tokenize=o;break}return"string"}} function r(a,b){return function(d,c){for(;!d.eol();){if(d.match(b)){c.tokenize=j;break}d.next()}return a}}function n(a){return function(b,d){for(var c;null!=(c=b.next());){if("<"==c)return d.tokenize=n(a+1),d.tokenize(b,d);if(">"==c)if(1==a){d.tokenize=j;break}else return d.tokenize=n(a-1),d.tokenize(b,d)}return"meta"}}function i(){for(var a=arguments.length-1;0<=a;a--)m.cc.push(arguments[a])}function f(){return i.apply(null,arguments),!0}function p(){m.context&&(m.context=m.context.prev)}function s(a){return"openTag"== a?(m.tagName=u,m.tagStart=y.column(),f(d,t(m.startOfLine))):"closeTag"==a?(a=!1,m.context?m.context.tagName!=u&&(x.implicitlyClosed.hasOwnProperty(m.context.tagName.toLowerCase())&&p(),a=!m.context||m.context.tagName!=u):a=!0,a&&(q="error"),f(c(a))):f()}function t(b){return function(d){var c=m.tagName;(m.tagName=m.tagStart=null,"selfcloseTag"==d||"endTag"==d&&x.autoSelfClosers.hasOwnProperty(c.toLowerCase()))?c=(a(c.toLowerCase()),f()):("endTag"==d&&(a(c.toLowerCase()),d=x.doNotIndent.hasOwnProperty(c)|| m.context&&m.context.noIndent,m.context={prev:m.context,tagName:c,indent:m.indented,startOfLine:b,noIndent:d}),c=f());return c}}function c(a){return function(b){return(a&&(q="error"),"endTag"==b)?(p(),f()):(q="error",f(arguments.callee))}}function a(a){for(var b;m.context&&!(b=m.context.tagName.toLowerCase(),!x.contextGrabbers.hasOwnProperty(b)||!x.contextGrabbers[b].hasOwnProperty(a));)p()}function d(a){return"word"==a?(q="attribute",f(h,d)):"endTag"==a||"selfcloseTag"==a?i():(q="error",f(d))}function h(a){return"equals"== a?f(b,d):(x.allowMissing?"word"==a&&(q="attribute"):q="error","endTag"==a||"selfcloseTag"==a?i():f())}function b(a){return"string"==a?f(g):"word"==a&&x.allowUnquoted?(q="string",f()):(q="error","endTag"==a||"selfCloseTag"==a?i():f())}function g(a){return"string"==a?f(g):i()}var z=l.indentUnit,A=e.multilineTagIndentFactor||1,x=e.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},implicitlyClosed:{dd:!0, li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0}, th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1},B=e.alignCDATA,u,w,m,y,q;return{startState:function(){return{tokenize:j,cc:[],indented:0,startOfLine:!0,tagName:null,tagStart:null,context:null}},token:function(a,b){var d,c;if(!b.tagName&&a.sol()&&(b.startOfLine=!0,b.indented=a.indentation()),a.eatSpace())return null;if(q=w=u=null, d=b.tokenize(a,b),b.type=w,(d||w)&&"comment"!=d){m=b;for(y=a;!(c=b.cc.pop()||s,c(w||d)););}return b.startOfLine=!1,q||d},indent:function(a,b,d){var c=a.context;if(a.tokenize!=o&&a.tokenize!=j||c&&c.noIndent)return d?d.match(/^(\s*)/)[0].length:0;if(a.tagName)return a.tagStart+z*A;if(B&&/",configuration:e.htmlMode?"html": "xml"}});CodeMirror.defineMIME("text/xml","xml");CodeMirror.defineMIME("application/xml","xml");CodeMirror.mimeModes.hasOwnProperty("text/html")||CodeMirror.defineMIME("text/html",{name:"xml",htmlMode:!0});CodeMirror.defineMode("css",function(l){return CodeMirror.getMode(l,"text/css")}); CodeMirror.defineMode("css-base",function(l,e){function j(d,c){var b=d.next(),g;if(n[b]&&(g=n[b](d,c),!1!==g))return g;if("@"==b)return d.eatWhile(/[\w\\\-]/),a=d.current(),"def";if("="==b)a="compare";else{if(("~"==b||"|"==b)&&d.eat("="))return a="compare",null;if('"'==b||"'"==b)return c.tokenize=o(b),c.tokenize(d,c);if("#"==b)return d.eatWhile(/[\w\\\-]/),a="hash","atom";if("!"==b)return d.match(/^\s*\w*/),a="important","keyword";if(/\d/.test(b))return d.eatWhile(/[\w.%]/),a="unit","number";if("-"=== b){if(/\d/.test(d.peek()))return d.eatWhile(/[\w.%]/),a="unit","number";if(d.match(/^[^-]+-/))return a="meta","meta"}else return/[,+>*\/]/.test(b)?(a="select-op",null):"."==b&&d.match(/^-?[_a-z][_a-z0-9-]*/i)?(a="qualifier","qualifier"):":"==b?(a=b,"operator"):/[;{}\[\]\(\)]/.test(b)?(a=b,null):"u"==b&&d.match("rl(")?(d.backUp(1),c.tokenize=v,a="variable","property"):(d.eatWhile(/[\w\\\-]/),a="variable","property")}}function o(c,h){return function(b,g){for(var f=!1,i;null!=(i=b.next())&&(i!=c||f);)f= !f&&"\\"==i;return f||(h&&b.backUp(1),g.tokenize=j),a="string","string"}}function v(c,h){return c.next(),h.tokenize=c.match(/\s*[\"\']/,!1)?j:o(")",!0),a="(",null}var r=l.indentUnit,n=e.hooks||{},i=e.atMediaTypes||{},f=e.atMediaFeatures||{},p=e.propertyKeywords||{},s=e.colorKeywords||{},t=e.valueKeywords||{},c=!!e.allowNested,a=null;return{startState:function(a){return{tokenize:j,baseIndent:a||0,stack:[]}},token:function(d,h){var b,g,e,l,n;return(h.tokenize=h.tokenize||j,h.tokenize==j&&d.eatSpace())? null:(b=h.tokenize(d,h),b&&"string"!=typeof b&&(b=(a=b[1],b[0])),g=h.stack[h.stack.length-1],"variable"==b)?("variable-definition"==a&&h.stack.push("propertyValue"),"variable-2"):("property"==b?(e=d.current().toLowerCase(),"propertyValue"==g?b=t.hasOwnProperty(e)?"string-2":s.hasOwnProperty(e)?"keyword":"variable-2":"rule"==g?p.hasOwnProperty(e)||(b+=" error"):"block"==g?b=p.hasOwnProperty(e)?"property":s.hasOwnProperty(e)?"keyword":t.hasOwnProperty(e)?"string-2":"tag":g&&"@media{"!=g?"@media"==g? b=i[d.current()]?"attribute":/^(only|not)$/.test(e)?"keyword":"and"==e?"error":f.hasOwnProperty(e)?"error":"attribute error":"@mediaType"==g?b=i.hasOwnProperty(e)?"attribute":"and"==e?"operator":(/^(only|not)$/.test(e),"error"):"@mediaType("==g?p.hasOwnProperty(e)||(i.hasOwnProperty(e)?b="error":"and"==e?b="operator":/^(only|not)$/.test(e)?b="error":b+=" error"):b="@import"==g?"tag":"error":b="tag"):"atom"==b?g&&"@media{"!=g&&"block"!=g?"propertyValue"==g?/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(d.current())|| (b+=" error"):b="error":b="builtin":"@media"==g&&"{"==a&&(b="error"),"{"==a?"@media"==g||"@mediaType"==g?(h.stack.pop(),h.stack[h.stack.length-1]="@media{"):(l=c?"block":"rule",h.stack.push(l)):"}"==a?(n=h.stack[h.stack.length-1],"interpolation"==n&&(b="operator"),h.stack.pop(),"propertyValue"==g&&h.stack.pop()):"interpolation"==a?h.stack.push("interpolation"):"@media"==a?h.stack.push("@media"):"@import"==a?h.stack.push("@import"):"@media"==g&&/\b(keyword|attribute)\b/.test(b)?h.stack.push("@mediaType"): "@mediaType"==g&&","==d.current()?h.stack.pop():"@mediaType"==g&&"("==a?h.stack.push("@mediaType("):"@mediaType("==g&&")"==a?h.stack.pop():("rule"==g||"block"==g)&&":"==a?h.stack.push("propertyValue"):"propertyValue"==g&&";"==a?h.stack.pop():"@import"==g&&";"==a&&h.stack.pop(),b)},indent:function(a,c){var b=a.stack.length;return/^\}/.test(c)&&(b-="propertyValue"==a.stack[a.stack.length-1]?2:1),a.baseIndent+b*r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/"}}); (function(){function l(i){for(var f={},e=0;e