(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],a)}else{a(CodeMirror)}}})(function(d){var g={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function f(n,j,k){var m=n.current(),l=m.search(j);if(l>-1){n.backUp(m.length-l)}else{if(m.match(/<\/?$/)){n.backUp(m.length);if(!n.match(j,false)){n.match(m)}}}return k}var e={};function c(j){var k=e[j];if(k){return k}return e[j]=new RegExp("\\s+"+j+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function a(l,j){var k=l.match(c(j));return k?/^\s*(.*?)\s*$/.exec(k[2])[1]:""}function i(k,j){return new RegExp((j?"^":"")+"","i")}function h(o,n){for(var j in o){var k=n[j]||(n[j]=[]);var m=o[j];for(var l=m.length-1;l>=0;l--){k.unshift(m[l])}}}function b(l,m){for(var k=0;k=0;m--){j.script.unshift(["type",n[m].matches,n[m].mode])}}function l(z,r){var s=q.token(z,r.htmlState),A=/\btag\b/.test(s),u;if(A&&!/[<>\s\/]/.test(z.current())&&(u=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&j.hasOwnProperty(u)){r.inTag=u+" "}else{if(r.inTag&&A&&/>$/.test(z.current())){var t=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var y=z.current()==">"&&b(j[t[1]],t[2]);var x=d.getMode(k,y);var w=i(t[1],true),v=i(t[1],false);r.token=function(C,B){if(C.match(w,false)){B.token=l;B.localState=B.localMode=null;return null}return f(C,v,B.localMode.token(C,B.localState))};r.localMode=x;r.localState=d.startState(x,q.indent(r.htmlState,""))}else{if(r.inTag){r.inTag+=z.current();if(z.eol()){r.inTag+=" "}}}}return s}return{startState:function(){var r=d.startState(q);return{token:l,inTag:null,localMode:null,localState:null,htmlState:r}},copyState:function(s){var r;if(s.localState){r=d.copyState(s.localMode,s.localState)}return{token:s.token,inTag:s.inTag,localMode:s.localMode,localState:r,htmlState:d.copyState(q,s.htmlState)}},token:function(s,r){return r.token(s,r)},indent:function(s,r){if(!s.localMode||/^\s*<\//.test(r)){return q.indent(s.htmlState,r)}else{if(s.localMode.indent){return s.localMode.indent(s.localState,r)}else{return d.Pass}}},innerMode:function(r){return{state:r.localState||r.htmlState,mode:r.localMode||q}}}},"xml","javascript","css");d.defineMIME("text/html","htmlmixed")});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){var b={autoSelfClosers:{area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true},implicitlyClosed:{dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true},contextGrabbers:{dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}},doNotIndent:{pre:true},allowUnquoted:true,allowMissing:true,caseFold:true};var c={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:false,allowMissing:false,caseFold:false};a.defineMode("xml",function(m,y){var r=m.indentUnit;var z={};var l=y.htmlMode?b:c;for(var f in l){z[f]=l[f]}for(var f in y){z[f]=y[f]}var g,h;function p(G,F){function D(H){F.tokenize=H;return H(G,F)}var E=G.next();if(E=="<"){if(G.eat("!")){if(G.eat("[")){if(G.match("CDATA[")){return D(x("atom","]]>"))}else{return null}}else{if(G.match("--")){return D(x("comment","-->"))}else{if(G.match("DOCTYPE",true,true)){G.eatWhile(/[\w\._\-]/);return D(A(1))}else{return null}}}}else{if(G.eat("?")){G.eatWhile(/[\w\._\-]/);F.tokenize=x("meta","?>");return"meta"}else{g=G.eat("/")?"closeTag":"openTag";F.tokenize=o;return"tag bracket"}}}else{if(E=="&"){var C;if(G.eat("#")){if(G.eat("x")){C=G.eatWhile(/[a-fA-F\d]/)&&G.eat(";")}else{C=G.eatWhile(/[\d]/)&&G.eat(";")}}else{C=G.eatWhile(/[\w\.\-:]/)&&G.eat(";")}return C?"atom":"error"}else{G.eatWhile(/[^&<]/);return null}}}p.isInText=true;function o(F,E){var D=F.next();if(D==">"||(D=="/"&&F.eat(">"))){E.tokenize=p;g=D==">"?"endTag":"selfcloseTag";return"tag bracket"}else{if(D=="="){g="equals";return null}else{if(D=="<"){E.tokenize=p;E.state=n;E.tagName=E.tagStart=null;var C=E.tokenize(F,E);return C?C+" tag error":"tag error"}else{if(/[\'\"]/.test(D)){E.tokenize=k(D);E.stringStartCol=F.column();return E.tokenize(F,E)}else{F.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/);return"word"}}}}}function k(C){var D=function(F,E){while(!F.eol()){if(F.next()==C){E.tokenize=o;break}}return"string"};D.isInAttribute=true;return D}function x(D,C){return function(F,E){while(!F.eol()){if(F.match(C)){E.tokenize=p;break}F.next()}return D}}function A(C){return function(F,E){var D;while((D=F.next())!=null){if(D=="<"){E.tokenize=A(C+1);return E.tokenize(F,E)}else{if(D==">"){if(C==1){E.tokenize=p;break}else{E.tokenize=A(C-1);return E.tokenize(F,E)}}}}return"meta"}}function t(D,C,E){this.prev=D.context;this.tagName=C;this.indent=D.indented;this.startOfLine=E;if(z.doNotIndent.hasOwnProperty(C)||(D.context&&D.context.noIndent)){this.noIndent=true}}function w(C){if(C.context){C.context=C.context.prev}}function s(E,D){var C;while(true){if(!E.context){return}C=E.context.tagName;if(!z.contextGrabbers.hasOwnProperty(C)||!z.contextGrabbers[C].hasOwnProperty(D)){return}w(E)}}function n(C,E,D){if(C=="openTag"){D.tagStart=E.column();return d}else{if(C=="closeTag"){return v}else{return n}}}function d(C,E,D){if(C=="word"){D.tagName=E.current();h="tag";return e}else{h="error";return d}}function v(D,F,E){if(D=="word"){var C=F.current();if(E.context&&E.context.tagName!=C&&z.implicitlyClosed.hasOwnProperty(E.context.tagName)){w(E)}if((E.context&&E.context.tagName==C)||z.matchClosing===false){h="tag";return u}else{h="tag error";return B}}else{h="error";return B}}function u(D,C,E){if(D!="endTag"){h="error";return u}w(E);return n}function B(C,E,D){h="error";return u(C,E,D)}function e(F,D,G){if(F=="word"){h="attribute";return j}else{if(F=="endTag"||F=="selfcloseTag"){var E=G.tagName,C=G.tagStart;G.tagName=G.tagStart=null;if(F=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(E)){s(G,E)}else{s(G,E);G.context=new t(G,E,C==G.indented)}return n}}h="error";return e}function j(C,E,D){if(C=="equals"){return q}if(!z.allowMissing){h="error"}return e(C,E,D)}function q(C,E,D){if(C=="string"){return i}if(C=="word"&&z.allowUnquoted){h="string";return e}h="error";return e(C,E,D)}function i(C,E,D){if(C=="string"){return i}return e(C,E,D)}return{startState:function(C){var D={tokenize:p,state:n,indented:C||0,tagName:null,tagStart:null,context:null};if(C!=null){D.baseIndent=C}return D},token:function(E,D){if(!D.tagName&&E.sol()){D.indented=E.indentation()}if(E.eatSpace()){return null}g=null;var C=D.tokenize(E,D);if((C||g)&&C!="comment"){h=null;D.state=D.state(g||C,E,D);if(h){C=h=="error"?C+" error":h}}return C},indent:function(H,D,G){var F=H.context;if(H.tokenize.isInAttribute){if(H.tagStart==H.indented){return H.stringStartCol+1}else{return H.indented+r}}if(F&&F.noIndent){return a.Pass}if(H.tokenize!=o&&H.tokenize!=p){return G?G.match(/^(\s*)/)[0].length:0}if(H.tagName){if(z.multilineTagIndentPastTag!==false){return H.tagStart+H.tagName.length+2}else{return H.tagStart+r*(z.multilineTagIndentFactor||1)}}if(z.alignCDATA&&/$/,blockCommentStart:"",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(C){if(C.state==q){C.state=e}}}});a.defineMIME("text/xml","xml");a.defineMIME("application/xml","xml");if(!a.mimeModes.hasOwnProperty("text/html")){a.defineMIME("text/html",{name:"xml",htmlMode:true})}});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){function b(e,d,c){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(d.lastType)||(d.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(c||0))))}a.defineMode("javascript",function(af,ap){var m=af.indentUnit;var C=ap.statementIndent;var aG=ap.jsonld;var B=ap.json||aG;var g=ap.typescript;var aB=ap.wordCharacters||/[\w$\xa1-\uffff]/;var az=function(){function aX(aZ){return{type:aZ,style:"keyword"}}var aS=aX("keyword a"),aQ=aX("keyword b"),aP=aX("keyword c");var aR=aX("operator"),aV={type:"atom",style:"atom"};var aT={"if":aX("if"),"while":aS,"with":aS,"else":aQ,"do":aQ,"try":aQ,"finally":aQ,"return":aP,"break":aP,"continue":aP,"new":aX("new"),"delete":aP,"throw":aP,"debugger":aP,"var":aX("var"),"const":aX("var"),let:aX("var"),"function":aX("function"),"catch":aX("catch"),"for":aX("for"),"switch":aX("switch"),"case":aX("case"),"default":aX("default"),"in":aR,"typeof":aR,"instanceof":aR,"true":aV,"false":aV,"null":aV,"undefined":aV,"NaN":aV,"Infinity":aV,"this":aX("this"),"class":aX("class"),"super":aX("atom"),yield:aP,"export":aX("export"),"import":aX("import"),"extends":aP,await:aP,async:aX("async")};if(g){var aY={type:"variable",style:"variable-3"};var aU={"interface":aX("class"),"implements":aP,namespace:aP,module:aX("module"),"enum":aX("module"),type:aX("type"),"public":aX("modifier"),"private":aX("modifier"),"protected":aX("modifier"),"abstract":aX("modifier"),as:aR,string:aY,number:aY,"boolean":aY,any:aY};for(var aW in aU){aT[aW]=aU[aW]}}return aT}();var T=/[+\-*&%=<>!?|~^]/;var ay=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function H(aS){var aQ=false,aP,aR=false;while((aP=aS.next())!=null){if(!aQ){if(aP=="/"&&!aR){return}if(aP=="["){aR=true}else{if(aR&&aP=="]"){aR=false}}}aQ=!aQ&&aP=="\\"}}var X,I;function P(aR,aQ,aP){X=aR;I=aP;return aQ}function Z(aT,aR){var aP=aT.next();if(aP=='"'||aP=="'"){aR.tokenize=W(aP);return aR.tokenize(aT,aR)}else{if(aP=="."&&aT.match(/^\d+(?:[eE][+\-]?\d+)?/)){return P("number","number")}else{if(aP=="."&&aT.match("..")){return P("spread","meta")}else{if(/[\[\]{}\(\),;\:\.]/.test(aP)){return P(aP)}else{if(aP=="="&&aT.eat(">")){return P("=>","operator")}else{if(aP=="0"&&aT.eat(/x/i)){aT.eatWhile(/[\da-f]/i);return P("number","number")}else{if(aP=="0"&&aT.eat(/o/i)){aT.eatWhile(/[0-7]/i);return P("number","number")}else{if(aP=="0"&&aT.eat(/b/i)){aT.eatWhile(/[01]/i);return P("number","number")}else{if(/\d/.test(aP)){aT.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/);return P("number","number")}else{if(aP=="/"){if(aT.eat("*")){aR.tokenize=aF;return aF(aT,aR)}else{if(aT.eat("/")){aT.skipToEnd();return P("comment","comment")}else{if(b(aT,aR,1)){H(aT);aT.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/);return P("regexp","string-2")}else{aT.eatWhile(T);return P("operator","operator",aT.current())}}}}else{if(aP=="`"){aR.tokenize=aH;return aH(aT,aR)}else{if(aP=="#"){aT.skipToEnd();return P("error","error")}else{if(T.test(aP)){aT.eatWhile(T);return P("operator","operator",aT.current())}else{if(aB.test(aP)){aT.eatWhile(aB);var aS=aT.current(),aQ=az.propertyIsEnumerable(aS)&&az[aS];return(aQ&&aR.lastType!=".")?P(aQ.type,aQ.style,aS):P("variable","variable",aS)}}}}}}}}}}}}}}}function W(aP){return function(aT,aR){var aS=false,aQ;if(aG&&aT.peek()=="@"&&aT.match(ay)){aR.tokenize=Z;return P("jsonld-keyword","meta")}while((aQ=aT.next())!=null){if(aQ==aP&&!aS){break}aS=!aS&&aQ=="\\"}if(!aS){aR.tokenize=Z}return P("string","string")}}function aF(aS,aR){var aP=false,aQ;while(aQ=aS.next()){if(aQ=="/"&&aP){aR.tokenize=Z;break}aP=(aQ=="*")}return P("comment","comment")}function aH(aS,aQ){var aR=false,aP;while((aP=aS.next())!=null){if(!aR&&(aP=="`"||aP=="$"&&aS.eat("{"))){aQ.tokenize=Z;break}aR=!aR&&aP=="\\"}return P("quasi","string-2",aS.current())}var n="([{}])";function aD(aX,aR){if(aR.fatArrowAt){aR.fatArrowAt=null}var aW=aX.string.indexOf("=>",aX.start);if(aW<0){return}if(g){var aT=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(aX.string.slice(aX.start,aW));if(aT){aW=aT.index}}var aU=0,aS=false;for(var aV=aW-1;aV>=0;--aV){var aP=aX.string.charAt(aV);var aQ=n.indexOf(aP);if(aQ>=0&&aQ<3){if(!aU){++aV;break}if(--aU==0){if(aP=="("){aS=true}break}}else{if(aQ>=3&&aQ<6){++aU}else{if(aB.test(aP)){aS=true}else{if(/["'\/]/.test(aP)){return}else{if(aS&&!aU){++aV;break}}}}}}if(aS&&!aU){aR.fatArrowAt=aV}}var c={atom:true,number:true,variable:true,string:true,regexp:true,"this":true,"jsonld-keyword":true};function N(aU,aQ,aP,aT,aR,aS){this.indented=aU;this.column=aQ;this.type=aP;this.prev=aR;this.info=aS;if(aT!=null){this.align=aT}}function u(aS,aR){for(var aQ=aS.localVars;aQ;aQ=aQ.next){if(aQ.name==aR){return true}}for(var aP=aS.context;aP;aP=aP.prev){for(var aQ=aP.vars;aQ;aQ=aQ.next){if(aQ.name==aR){return true}}}}function f(aT,aQ,aP,aS,aU){var aV=aT.cc;G.state=aT;G.stream=aU;G.marked=null,G.cc=aV;G.style=aQ;if(!aT.lexical.hasOwnProperty("align")){aT.lexical.align=true}while(true){var aR=aV.length?aV.pop():B?au:aM;if(aR(aP,aS)){while(aV.length&&aV[aV.length-1].lex){aV.pop()()}if(G.marked){return G.marked}if(aP=="variable"&&u(aT,aS)){return"variable-2"}return aQ}}}var G={state:null,column:null,marked:null,cc:null};function ag(){for(var aP=arguments.length-1;aP>=0;aP--){G.cc.push(arguments[aP])}}function al(){ag.apply(null,arguments);return true}function aC(aQ){function aP(aT){for(var aS=aT;aS;aS=aS.next){if(aS.name==aQ){return true}}return false}var aR=G.state;G.marked="def";if(aR.context){if(aP(aR.localVars)){return}aR.localVars={name:aQ,next:aR.localVars}}else{if(aP(aR.globalVars)){return}if(ap.globalVars){aR.globalVars={name:aQ,next:aR.globalVars}}}}var s={name:"this",next:{name:"arguments"}};function y(){G.state.context={prev:G.state.context,vars:G.state.localVars};G.state.localVars=s}function z(){G.state.localVars=G.state.context.vars;G.state.context=G.state.context.prev}function aK(aQ,aR){var aP=function(){var aU=G.state,aS=aU.indented;if(aU.lexical.type=="stat"){aS=aU.lexical.indented}else{for(var aT=aU.lexical;aT&&aT.type==")"&&aT.align;aT=aT.prev){aS=aT.indented}}aU.lexical=new N(aS,G.stream.column(),aQ,null,aU.lexical,aR)};aP.lex=true;return aP}function h(){var aP=G.state;if(aP.lexical.prev){if(aP.lexical.type==")"){aP.indented=aP.lexical.indented}aP.lexical=aP.lexical.prev}}h.lex=true;function t(aP){function aQ(aR){if(aR==aP){return al()}else{if(aP==";"){return ag()}else{return al(aQ)}}}return aQ}function aM(aP,aQ){if(aP=="var"){return al(aK("vardef",aQ.length),d,t(";"),h)}if(aP=="keyword a"){return al(aK("form"),av,aM,h)}if(aP=="keyword b"){return al(aK("form"),aM,h)}if(aP=="{"){return al(aK("}"),A,h)}if(aP==";"){return al()}if(aP=="if"){if(G.state.lexical.info=="else"&&G.state.cc[G.state.cc.length-1]==h){G.state.cc.pop()()}return al(aK("form"),av,aM,h,e)}if(aP=="function"){return al(Q)}if(aP=="for"){return al(aK("form"),w,aM,h)}if(aP=="variable"){return al(aK("stat"),aN)}if(aP=="switch"){return al(aK("form"),av,aK("}","switch"),t("{"),A,h,h)}if(aP=="case"){return al(au,t(":"))}if(aP=="default"){return al(t(":"))}if(aP=="catch"){return al(aK("form"),y,t("("),ak,t(")"),aM,h,z)}if(aP=="class"){return al(aK("form"),ab,h)}if(aP=="export"){return al(aK("stat"),aL,h)}if(aP=="import"){return al(aK("stat"),am,h)}if(aP=="module"){return al(aK("form"),i,aK("}"),t("{"),A,h,h)}if(aP=="type"){return al(j,t("operator"),j,t(";"))}if(aP=="async"){return al(aM)}return ag(aK("stat"),au,t(";"),h)}function au(aP){return ae(aP,false)}function aJ(aP){return ae(aP,true)}function av(aP){if(aP!="("){return ag()}return al(aK(")"),au,t(")"),h)}function ae(aQ,aS){if(G.state.fatArrowAt==G.stream.start){var aP=aS?R:ac;if(aQ=="("){return al(y,aK(")"),aA(i,")"),h,t("=>"),aP,z)}else{if(aQ=="variable"){return ag(y,i,t("=>"),aP,z)}}}var aR=aS?k:ah;if(c.hasOwnProperty(aQ)){return al(aR)}if(aQ=="function"){return al(Q,aR)}if(aQ=="class"){return al(aK("form"),L,h)}if(aQ=="keyword c"||aQ=="async"){return al(aS?aq:ao)}if(aQ=="("){return al(aK(")"),ao,t(")"),h,aR)}if(aQ=="operator"||aQ=="spread"){return al(aS?aJ:au)}if(aQ=="["){return al(aK("]"),o,h,aR)}if(aQ=="{"){return aE(v,"}",null,aR)}if(aQ=="quasi"){return ag(U,aR)}if(aQ=="new"){return al(K(aS))}return al()}function ao(aP){if(aP.match(/[;\}\)\],]/)){return ag()}return ag(au)}function aq(aP){if(aP.match(/[;\}\)\],]/)){return ag()}return ag(aJ)}function ah(aP,aQ){if(aP==","){return al(au)}return k(aP,aQ,false)}function k(aP,aR,aT){var aQ=aT==false?ah:k;var aS=aT==false?au:aJ;if(aP=="=>"){return al(y,aT?R:ac,z)}if(aP=="operator"){if(/\+\+|--/.test(aR)){return al(aQ)}if(aR=="?"){return al(au,t(":"),aS)}return al(aS)}if(aP=="quasi"){return ag(U,aQ)}if(aP==";"){return}if(aP=="("){return aE(aJ,")","call",aQ)}if(aP=="."){return al(ar,aQ)}if(aP=="["){return al(aK("]"),ao,t("]"),h,aQ)}}function U(aP,aQ){if(aP!="quasi"){return ag()}if(aQ.slice(aQ.length-2)!="${"){return al(U)}return al(au,r)}function r(aP){if(aP=="}"){G.marked="string-2";G.state.tokenize=aH;return al(U)}}function ac(aP){aD(G.stream,G.state);return ag(aP=="{"?aM:au)}function R(aP){aD(G.stream,G.state);return ag(aP=="{"?aM:aJ)}function K(aP){return function(aQ){if(aQ=="."){return al(aP?p:aa)}else{return ag(aP?aJ:au)}}}function aa(aP,aQ){if(aQ=="target"){G.marked="keyword";return al(ah)}}function p(aP,aQ){if(aQ=="target"){G.marked="keyword";return al(k)}}function aN(aP){if(aP==":"){return al(h,aM)}return ag(ah,t(";"),h)}function ar(aP){if(aP=="variable"){G.marked="property";return al()}}function v(aP,aQ){if(aP=="async"){G.marked="property";return al(v)}else{if(aP=="variable"||G.style=="keyword"){G.marked="property";if(aQ=="get"||aQ=="set"){return al(M)}return al(O)}else{if(aP=="number"||aP=="string"){G.marked=aG?"property":(G.style+" property");return al(O)}else{if(aP=="jsonld-keyword"){return al(O)}else{if(aP=="modifier"){return al(v)}else{if(aP=="["){return al(au,t("]"),O)}else{if(aP=="spread"){return al(au)}else{if(aP==":"){return ag(O)}}}}}}}}}function M(aP){if(aP!="variable"){return ag(O)}G.marked="property";return al(Q)}function O(aP){if(aP==":"){return al(aJ)}if(aP=="("){return ag(Q)}}function aA(aR,aP){function aQ(aT,aU){if(aT==","){var aS=G.state.lexical;if(aS.info=="call"){aS.pos=(aS.pos||0)+1}return al(function(aV,aW){if(aV==aP||aW==aP){return ag()}return ag(aR)},aQ)}if(aT==aP||aU==aP){return al()}return al(t(aP))}return function(aS,aT){if(aS==aP||aT==aP){return al()}return ag(aR,aQ)}}function aE(aS,aP,aR){for(var aQ=3;aQ"){return al(j)}}function at(aP){if(aP=="variable"||G.style=="keyword"){G.marked="property";return al(at)}else{if(aP==":"){return al(j)}}}function ai(aP){if(aP=="variable"){return al(ai)}else{if(aP==":"){return al(j)}}}function J(aP,aQ){if(aQ=="<"){return al(aA(j,">"),J)}if(aP=="["){return al(t("]"),J)}}function d(){return ag(i,Y,aj,ad)}function i(aP,aQ){if(aP=="modifier"){return al(i)}if(aP=="variable"){aC(aQ);return al()}if(aP=="spread"){return al(i)}if(aP=="["){return aE(i,"]")}if(aP=="{"){return aE(aI,"}")}}function aI(aP,aQ){if(aP=="variable"&&!G.stream.match(/^\s*:/,false)){aC(aQ);return al(aj)}if(aP=="variable"){G.marked="property"}if(aP=="spread"){return al(i)}if(aP=="}"){return ag()}return al(t(":"),i,aj)}function aj(aP,aQ){if(aQ=="="){return al(aJ)}}function ad(aP){if(aP==","){return al(d)}}function e(aP,aQ){if(aP=="keyword b"&&aQ=="else"){return al(aK("form","else"),aM,h)}}function w(aP){if(aP=="("){return al(aK(")"),F,t(")"),h)}}function F(aP){if(aP=="var"){return al(d,t(";"),E)}if(aP==";"){return al(E)}if(aP=="variable"){return al(x)}return ag(au,t(";"),E)}function x(aP,aQ){if(aQ=="in"||aQ=="of"){G.marked="keyword";return al(au)}return al(ah,E)}function E(aP,aQ){if(aP==";"){return al(D)}if(aQ=="in"||aQ=="of"){G.marked="keyword";return al(au)}return ag(au,t(";"),D)}function D(aP){if(aP!=")"){al(au)}}function Q(aP,aQ){if(aQ=="*"){G.marked="keyword";return al(Q)}if(aP=="variable"){aC(aQ);return al(Q)}if(aP=="("){return al(y,aK(")"),aA(ak,")"),h,Y,aM,z)}}function ak(aP){if(aP=="spread"){return al(ak)}return ag(i,Y,aj)}function L(aP,aQ){if(aP=="variable"){return ab(aP,aQ)}return S(aP,aQ)}function ab(aP,aQ){if(aP=="variable"){aC(aQ);return al(S)}}function S(aP,aQ){if(aQ=="extends"||aQ=="implements"){return al(g?j:au,S)}if(aP=="{"){return al(aK("}"),q,h)}}function q(aP,aQ){if(aP=="variable"||G.style=="keyword"){if((aQ=="static"||aQ=="get"||aQ=="set"||(g&&(aQ=="public"||aQ=="private"||aQ=="protected"||aQ=="readonly"||aQ=="abstract")))&&G.stream.match(/^\s+[\w$\xa1-\uffff]/,false)){G.marked="keyword";return al(q)}G.marked="property";return al(g?aO:Q,q)}if(aQ=="*"){G.marked="keyword";return al(q)}if(aP==";"){return al(q)}if(aP=="}"){return al()}}function aO(aP,aQ){if(aQ=="?"){return al(aO)}if(aP==":"){return al(j,aj)}return ag(Q)}function aL(aP,aQ){if(aQ=="*"){G.marked="keyword";return al(an,t(";"))}if(aQ=="default"){G.marked="keyword";return al(au,t(";"))}return ag(aM)}function am(aP){if(aP=="string"){return al()}return ag(ax,an)}function ax(aP,aQ){if(aP=="{"){return aE(ax,"}")}if(aP=="variable"){aC(aQ)}if(aQ=="*"){G.marked="keyword"}return al(l)}function l(aP,aQ){if(aQ=="as"){G.marked="keyword";return al(ax)}}function an(aP,aQ){if(aQ=="from"){G.marked="keyword";return al(au)}}function o(aP){if(aP=="]"){return al()}return ag(aA(aJ,"]"))}function aw(aQ,aP){return aQ.lastType=="operator"||aQ.lastType==","||T.test(aP.charAt(0))||/[,.]/.test(aP.charAt(0))}return{startState:function(aQ){var aP={tokenize:Z,lastType:"sof",cc:[],lexical:new N((aQ||0)-m,0,"block",false),localVars:ap.localVars,context:ap.localVars&&{vars:ap.localVars},indented:aQ||0};if(ap.globalVars&&typeof ap.globalVars=="object"){aP.globalVars=ap.globalVars}return aP},token:function(aR,aQ){if(aR.sol()){if(!aQ.lexical.hasOwnProperty("align")){aQ.lexical.align=false}aQ.indented=aR.indentation();aD(aR,aQ)}if(aQ.tokenize!=aF&&aR.eatSpace()){return null}var aP=aQ.tokenize(aR,aQ);if(X=="comment"){return aP}aQ.lastType=X=="operator"&&(I=="++"||I=="--")?"incdec":X;return f(aQ,aP,X,I,aR)},indent:function(aP,aS){if(aP.tokenize==aF){return a.Pass}if(aP.tokenize!=Z){return 0}var aW=aS&&aS.charAt(0),aX=aP.lexical,aV;if(!/^\s*else\b/.test(aS)){for(var aR=aP.cc.length-1;aR>=0;--aR){var aT=aP.cc[aR];if(aT==h){aX=aX.prev}else{if(aT!=e){break}}}}while((aX.type=="stat"||aX.type=="form")&&(aW=="}"||((aV=aP.cc[aP.cc.length-1])&&(aV==ah||aV==k)&&!/^[,\.=+\-*:?[\(]/.test(aS)))){aX=aX.prev}if(C&&aX.type==")"&&aX.prev.type=="stat"){aX=aX.prev}var aU=aX.type,aQ=aW==aU;if(aU=="vardef"){return aX.indented+(aP.lastType=="operator"||aP.lastType==","?aX.info+1:0)}else{if(aU=="form"&&aW=="{"){return aX.indented}else{if(aU=="form"){return aX.indented+m}else{if(aU=="stat"){return aX.indented+(aw(aP,aS)?C||m:0)}else{if(aX.info=="switch"&&!aQ&&ap.doubleIndentSwitch!=false){return aX.indented+(/^(?:case|default)\b/.test(aS)?m:2*m)}else{if(aX.align){return aX.column+(aQ?0:1)}else{return aX.indented+(aQ?0:m)}}}}}}},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:B?null:"/*",blockCommentEnd:B?null:"*/",lineComment:B?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:B?"json":"javascript",jsonldMode:aG,jsonMode:B,expressionAllowed:b,skipExpression:function(aP){var aQ=aP.cc[aP.cc.length-1];if(aQ==au||aQ==aJ){aP.cc.pop()}}}});a.registerHelper("wordChars","javascript",/[\w$]/);a.defineMIME("text/javascript","javascript");a.defineMIME("text/ecmascript","javascript");a.defineMIME("application/javascript","javascript");a.defineMIME("application/x-javascript","javascript");a.defineMIME("application/ecmascript","javascript");a.defineMIME("application/json",{name:"javascript",json:true});a.defineMIME("application/x-json",{name:"javascript",json:true});a.defineMIME("application/ld+json",{name:"javascript",jsonld:true});a.defineMIME("text/typescript",{name:"javascript",typescript:true});a.defineMIME("application/typescript",{name:"javascript",typescript:true})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(r){r.defineMode("css",function(Y,J){var D=J.inline;if(!J.propertyKeywords){J=r.resolveMode("text/css")}var Q=Y.indentUnit,A=J.tokenHooks,y=J.documentTypes||{},X=J.mediaTypes||{},L=J.mediaFeatures||{},P=J.mediaValueKeywords||{},I=J.propertyKeywords||{},B=J.nonStandardPropertyKeywords||{},E=J.fontProperties||{},W=J.counterDescriptors||{},O=J.colorKeywords||{},S=J.valueKeywords||{},M=J.allowNested,U=J.supportsAtComponent===true;var C,N;function Z(ac,ad){C=ad;return ac}function ab(af,ae){var ad=af.next();if(A[ad]){var ac=A[ad](af,ae);if(ac!==false){return ac}}if(ad=="@"){af.eatWhile(/[\w\\\-]/);return Z("def",af.current())}else{if(ad=="="||(ad=="~"||ad=="|")&&af.eat("=")){return Z(null,"compare")}else{if(ad=='"'||ad=="'"){ae.tokenize=K(ad);return ae.tokenize(af,ae)}else{if(ad=="#"){af.eatWhile(/[\w\\\-]/);return Z("atom","hash")}else{if(ad=="!"){af.match(/^\s*\w*/);return Z("keyword","important")}else{if(/\d/.test(ad)||ad=="."&&af.eat(/\d/)){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(ad==="-"){if(/[\d.]/.test(af.peek())){af.eatWhile(/[\w.%]/);return Z("number","unit")}else{if(af.match(/^-[\w\\\-]+/)){af.eatWhile(/[\w\\\-]/);if(af.match(/^\s*:/,false)){return Z("variable-2","variable-definition")}return Z("variable-2","variable")}else{if(af.match(/^\w+-/)){return Z("meta","meta")}}}}else{if(/[,+>*\/]/.test(ad)){return Z(null,"select-op")}else{if(ad=="."&&af.match(/^-?[_a-z][_a-z0-9-]*/i)){return Z("qualifier","qualifier")}else{if(/[:;{}\[\]\(\)]/.test(ad)){return Z(null,ad)}else{if((ad=="u"&&af.match(/rl(-prefix)?\(/))||(ad=="d"&&af.match("omain("))||(ad=="r"&&af.match("egexp("))){af.backUp(1);ae.tokenize=aa;return Z("property","word")}else{if(/[\w\\\-]/.test(ad)){af.eatWhile(/[\w\\\-]/);return Z("property","word")}else{return Z(null,null)}}}}}}}}}}}}}function K(ac){return function(ag,ae){var af=false,ad;while((ad=ag.next())!=null){if(ad==ac&&!af){if(ac==")"){ag.backUp(1)}break}af=!af&&ad=="\\"}if(ad==ac||!af&&ac!=")"){ae.tokenize=null}return Z("string","string")}}function aa(ad,ac){ad.next();if(!ad.match(/\s*[\"\')]/,false)){ac.tokenize=K(")")}else{ac.tokenize=null}return Z(null,"(")}function R(ad,ac,ae){this.type=ad;this.indent=ac;this.prev=ae}function G(ae,af,ad,ac){ae.context=new R(ad,af.indentation()+(ac===false?0:Q),ae.context);return ad}function T(ac){if(ac.context.prev){ac.context=ac.context.prev}return ac.context.type}function z(ac,ae,ad){return F[ad.context.type](ac,ae,ad)}function V(ad,af,ae,ag){for(var ac=ag||1;ac>0;ac--){ae.context=ae.context.prev}return z(ad,af,ae)}function H(ad){var ac=ad.current().toLowerCase();if(S.hasOwnProperty(ac)){N="atom"}else{if(O.hasOwnProperty(ac)){N="keyword"}else{N="variable"}}}var F={};F.top=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"block")}else{if(ac=="}"&&ad.context.prev){return T(ad)}else{if(U&&/@component/.test(ac)){return G(ad,ae,"atComponentBlock")}else{if(/^@(-moz-)?document$/.test(ac)){return G(ad,ae,"documentTypes")}else{if(/^@(media|supports|(-moz-)?document|import)$/.test(ac)){return G(ad,ae,"atBlock")}else{if(/^@(font-face|counter-style)/.test(ac)){ad.stateArg=ac;return"restricted_atBlock_before"}else{if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(ac)){return"keyframes"}else{if(ac&&ac.charAt(0)=="@"){return G(ad,ae,"at")}else{if(ac=="hash"){N="builtin"}else{if(ac=="word"){N="tag"}else{if(ac=="variable-definition"){return"maybeprop"}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}else{if(ac==":"){return"pseudo"}else{if(M&&ac=="("){return G(ad,ae,"parens")}}}}}}}}}}}}}}return ad.context.type};F.block=function(ac,af,ad){if(ac=="word"){var ae=af.current().toLowerCase();if(I.hasOwnProperty(ae)){N="property";return"maybeprop"}else{if(B.hasOwnProperty(ae)){N="string-2";return"maybeprop"}else{if(M){N=af.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{N+=" error";return"maybeprop"}}}}else{if(ac=="meta"){return"block"}else{if(!M&&(ac=="hash"||ac=="qualifier")){N="error";return"block"}else{return F.top(ac,af,ad)}}}};F.maybeprop=function(ac,ae,ad){if(ac==":"){return G(ad,ae,"prop")}return z(ac,ae,ad)};F.prop=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"&&M){return G(ad,ae,"propBlock")}if(ac=="}"||ac=="{"){return V(ac,ae,ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(ae.current())){N+=" error"}else{if(ac=="word"){H(ae)}else{if(ac=="interpolation"){return G(ad,ae,"interpolation")}}}return"prop"};F.propBlock=function(ad,ac,ae){if(ad=="}"){return T(ae)}if(ad=="word"){N="property";return"maybeprop"}return ae.context.type};F.parens=function(ac,ae,ad){if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac==")"){return T(ad)}if(ac=="("){return G(ad,ae,"parens")}if(ac=="interpolation"){return G(ad,ae,"interpolation")}if(ac=="word"){H(ae)}return"parens"};F.pseudo=function(ac,ae,ad){if(ac=="word"){N="variable-3";return ad.context.type}return z(ac,ae,ad)};F.documentTypes=function(ac,ae,ad){if(ac=="word"&&y.hasOwnProperty(ae.current())){N="tag";return ad.context.type}else{return F.atBlock(ac,ae,ad)}};F.atBlock=function(ac,af,ad){if(ac=="("){return G(ad,af,"atBlock_parens")}if(ac=="}"||ac==";"){return V(ac,af,ad)}if(ac=="{"){return T(ad)&&G(ad,af,M?"block":"top")}if(ac=="interpolation"){return G(ad,af,"interpolation")}if(ac=="word"){var ae=af.current().toLowerCase();if(ae=="only"||ae=="not"||ae=="and"||ae=="or"){N="keyword"}else{if(X.hasOwnProperty(ae)){N="attribute"}else{if(L.hasOwnProperty(ae)){N="property"}else{if(P.hasOwnProperty(ae)){N="keyword"}else{if(I.hasOwnProperty(ae)){N="property"}else{if(B.hasOwnProperty(ae)){N="string-2"}else{if(S.hasOwnProperty(ae)){N="atom"}else{if(O.hasOwnProperty(ae)){N="keyword"}else{N="error"}}}}}}}}}return ad.context.type};F.atComponentBlock=function(ac,ae,ad){if(ac=="}"){return V(ac,ae,ad)}if(ac=="{"){return T(ad)&&G(ad,ae,M?"block":"top",false)}if(ac=="word"){N="error"}return ad.context.type};F.atBlock_parens=function(ac,ae,ad){if(ac==")"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad,2)}return F.atBlock(ac,ae,ad)};F.restricted_atBlock_before=function(ac,ae,ad){if(ac=="{"){return G(ad,ae,"restricted_atBlock")}if(ac=="word"&&ad.stateArg=="@counter-style"){N="variable";return"restricted_atBlock_before"}return z(ac,ae,ad)};F.restricted_atBlock=function(ac,ae,ad){if(ac=="}"){ad.stateArg=null;return T(ad)}if(ac=="word"){if((ad.stateArg=="@font-face"&&!E.hasOwnProperty(ae.current().toLowerCase()))||(ad.stateArg=="@counter-style"&&!W.hasOwnProperty(ae.current().toLowerCase()))){N="error"}else{N="property"}return"maybeprop"}return"restricted_atBlock"};F.keyframes=function(ac,ae,ad){if(ac=="word"){N="variable";return"keyframes"}if(ac=="{"){return G(ad,ae,"top")}return z(ac,ae,ad)};F.at=function(ac,ae,ad){if(ac==";"){return T(ad)}if(ac=="{"||ac=="}"){return V(ac,ae,ad)}if(ac=="word"){N="tag"}else{if(ac=="hash"){N="builtin"}}return"at"};F.interpolation=function(ac,ae,ad){if(ac=="}"){return T(ad)}if(ac=="{"||ac==";"){return V(ac,ae,ad)}if(ac=="word"){N="variable"}else{if(ac!="variable"&&ac!="("&&ac!=")"){N="error"}}return"interpolation"};return{startState:function(ac){return{tokenize:null,state:D?"block":"top",stateArg:null,context:new R(D?"block":"top",ac||0,null)}},token:function(ae,ad){if(!ad.tokenize&&ae.eatSpace()){return null}var ac=(ad.tokenize||ab)(ae,ad);if(ac&&typeof ac=="object"){C=ac[1];ac=ac[0]}N=ac;ad.state=F[ad.state](C,ae,ad);return N},indent:function(ag,ae){var ad=ag.context,af=ae&&ae.charAt(0);var ac=ad.indent;if(ad.type=="prop"&&(af=="}"||af==")")){ad=ad.prev}if(ad.prev){if(af=="}"&&(ad.type=="block"||ad.type=="top"||ad.type=="interpolation"||ad.type=="restricted_atBlock")){ad=ad.prev;ac=ad.indent}else{if(af==")"&&(ad.type=="parens"||ad.type=="atBlock_parens")||af=="{"&&(ad.type=="at"||ad.type=="atBlock")){ac=Math.max(0,ad.indent-Q);ad=ad.prev}}}return ac},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});function g(A){var z={};for(var y=0;y|[*\]])\s*$|\*$/.test(x.string.slice(0,y))){return true}if(w.typeAtEndOfLine&&x.column()==x.indentation()){return true}}function p(w){for(;;){if(!w||w.type=="top"){return true}if(w.type=="}"&&w.prev.info!="namespace"){return false}w=w.prev}}r.defineMode("clike",function(S,D){var O=S.indentUnit,L=D.statementIndentUnit||O,P=D.dontAlignCalls,G=D.keywords||{},J=D.types||{},T=D.builtin||{},Q=D.blockKeywords||{},N=D.defKeywords||{},y=D.atoms||{},x=D.hooks||{},K=D.multiLineStrings,I=D.indentStatements!==false,F=D.indentSwitch!==false,A=D.namespaceSeparator,C=D.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,z=D.numberStart||/[\d\.]/,w=D.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,H=D.isOperatorChar||/[+\-*&%=<>!?|\/]/;var R,B;function V(aa,Y){var X=aa.next();if(x[X]){var W=x[X](aa,Y);if(W!==false){return W}}if(X=='"'||X=="'"){Y.tokenize=E(X);return Y.tokenize(aa,Y)}if(C.test(X)){R=X;return null}if(z.test(X)){aa.backUp(1);if(aa.match(w)){return"number"}aa.next()}if(X=="/"){if(aa.eat("*")){Y.tokenize=M;return M(aa,Y)}if(aa.eat("/")){aa.skipToEnd();return"comment"}}if(H.test(X)){while(!aa.match(/^\/[\/*]/,false)&&aa.eat(H)){}return"operator"}aa.eatWhile(/[\w\$_\xa1-\uffff]/);if(A){while(aa.match(A)){aa.eatWhile(/[\w\$_\xa1-\uffff]/)}}var Z=aa.current();if(h(G,Z)){if(h(Q,Z)){R="newstatement"}if(h(N,Z)){B=true}return"keyword"}if(h(J,Z)){return"variable-3"}if(h(T,Z)){if(h(Q,Z)){R="newstatement"}return"builtin"}if(h(y,Z)){return"atom"}return"variable"}function E(W){return function(ab,Z){var aa=false,Y,X=false;while((Y=ab.next())!=null){if(Y==W&&!aa){X=true;break}aa=!aa&&Y=="\\"}if(X||!(aa||K)){Z.tokenize=null}return"string"}}function M(Z,Y){var W=false,X;while(X=Z.next()){if(X=="/"&&W){Y.tokenize=null;break}W=(X=="*")}return"comment"}function U(X,W){if(D.typeFirstDefinitions&&X.eol()&&p(W.context)){W.typeAtEndOfLine=a(X,W,X.pos)}}return{startState:function(W){return{tokenize:null,context:new q((W||0)-O,0,"top",null,false),indented:0,startOfLine:true,prevToken:null}},token:function(aa,Z){var X=Z.context;if(aa.sol()){if(X.align==null){X.align=false}Z.indented=aa.indentation();Z.startOfLine=true}if(aa.eatSpace()){U(aa,Z);return null}R=B=null;var Y=(Z.tokenize||V)(aa,Z);if(Y=="comment"||Y=="meta"){return Y}if(X.align==null){X.align=true}if(R==";"||R==":"||(R==","&&aa.match(/^\s*(?:\/\/.*)?$/,false))){while(Z.context.type=="statement"){t(Z)}}else{if(R=="{"){g(Z,aa.column(),"}")}else{if(R=="["){g(Z,aa.column(),"]")}else{if(R=="("){g(Z,aa.column(),")")}else{if(R=="}"){while(X.type=="statement"){X=t(Z)}if(X.type=="}"){X=t(Z)}while(X.type=="statement"){X=t(Z)}}else{if(R==X.type){t(Z)}else{if(I&&(((X.type=="}"||X.type=="top")&&R!=";")||(X.type=="statement"&&R=="newstatement"))){g(Z,aa.column(),"statement",aa.current())}}}}}}}if(Y=="variable"&&((Z.prevToken=="def"||(D.typeFirstDefinitions&&a(aa,Z,aa.start)&&p(Z.context)&&aa.match(/^\s*\(/,false))))){Y="def"}if(x.token){var W=x.token(aa,Z,Y);if(W!==undefined){Y=W}}if(Y=="def"&&D.styleDefs===false){Y="variable"}Z.startOfLine=false;Z.prevToken=B?"def":Y||R;U(aa,Z);return Y},indent:function(ac,X){if(ac.tokenize!=V&&ac.tokenize!=null||ac.typeAtEndOfLine){return r.Pass}var W=ac.context,aa=X&&X.charAt(0);if(W.type=="statement"&&aa=="}"){W=W.prev}if(D.dontIndentStatements){while(W.type=="statement"&&D.dontIndentStatements.test(W.info)){W=W.prev}}if(x.indent){var ab=x.indent(ac,W,X);if(typeof ab=="number"){return ab}}var Y=aa==W.type;var Z=W.prev&&W.prev.info=="switch";if(D.allmanIndentation&&/[{(]/.test(aa)){while(W.type!="top"&&W.type!="}"){W=W.prev}return W.indented}if(W.type=="statement"){return W.indented+(aa=="{"?0:L)}if(W.align&&(!P||W.type!=")")){return W.column+(Y?0:1)}if(W.type==")"&&!Y){return W.indented+L}return W.indented+(Y?0:O)+(!Y&&Z&&!/^(?:case|default)\b/.test(X)?O:0)},electricInput:F?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});function o(z){var x={},y=z.split(" ");for(var w=0;w <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble :: #:: "),types:o("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:true,blockKeywords:o("catch class do else finally for forSome if match switch try while"),defKeywords:o("class def object package trait type val var"),atoms:o("true false null"),indentStatements:false,indentSwitch:false,hooks:{"@":function(w){w.eatWhile(/[\w\$_]/);return"meta"},'"':function(x,w){if(!x.match('""')){return false}w.tokenize=c;return w.tokenize(x,w)},"'":function(w){w.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(y,x){var w=x.context;if(w.type=="}"&&w.align&&y.eat(">")){x.context=new q(w.indented,w.column,w.type,w.info,null,w.prev);return"operator"}else{return false}}},modeProps:{closeBrackets:{triples:'"'}}});function b(w){return function(B,z){var A=false,y,x=false;while(!B.eol()){if(!w&&!A&&B.match('"')){x=true;break}if(w&&B.match('"""')){x=true;break}y=B.next();if(!A&&y=="$"&&B.match("{")){B.skipTo("}")}A=!A&&y=="\\"&&!w}if(x||!w){z.tokenize=null}return"string"}}k("text/x-kotlin",{name:"clike",keywords:o("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix"),types:o("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:false,indentStatements:false,multiLineStrings:true,blockKeywords:o("catch class do else finally for if where try while enum"),defKeywords:o("class val var object package interface fun"),atoms:o("true false null this"),hooks:{'"':function(x,w){w.tokenize=b(x.match('""'));return w.tokenize(x,w)}},modeProps:{closeBrackets:{triples:'"'}}});k(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:o("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:o("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:o("for while do if else struct"),builtin:o("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:o("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":m},modeProps:{fold:["brace","include"]}});k("text/x-nesc",{name:"clike",keywords:o(l+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:o(s),blockKeywords:o("case do else for if switch while struct"),atoms:o("null true false"),hooks:{"#":m},modeProps:{fold:["brace","include"]}});k("text/x-objectivec",{name:"clike",keywords:o(l+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:o(s),atoms:o("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(w){w.eatWhile(/[\w\$]/);return"keyword"},"#":m,indent:function(y,w,x){if(w.type=="statement"&&/^@\w/.test(x)){return w.indented}}},modeProps:{fold:"brace"}});k("text/x-squirrel",{name:"clike",keywords:o("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:o(s),blockKeywords:o("case catch class else for foreach if switch try while"),defKeywords:o("function local class"),typeFirstDefinitions:true,atoms:o("true false null"),hooks:{"#":m},modeProps:{fold:["brace","include"]}});var e=null;function j(w){return function(B,z){var A=false,y,x=false;while(!B.eol()){if(!A&&B.match('"')&&(w=="single"||B.match('""'))){x=true;break}if(!A&&B.match("``")){e=j(w);x=true;break}y=B.next();A=w=="single"&&!A&&y=="\\"}if(x){z.tokenize=null}return"string"}}k("text/x-ceylon",{name:"clike",keywords:o("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(w){var x=w.charAt(0);return(x===x.toUpperCase()&&x!==x.toLowerCase())},blockKeywords:o("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:o("class dynamic function interface module object package value"),builtin:o("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:o("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(w){w.eatWhile(/[\w\$_]/);return"meta"},'"':function(x,w){w.tokenize=j(x.match('""')?"triple":"single");return w.tokenize(x,w)},"`":function(x,w){if(!e||!x.match("`")){return false}w.tokenize=e;e=null;return w.tokenize(x,w)},"'":function(w){w.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(w,y,x){if((x=="variable"||x=="variable-3")&&y.prevToken=="."){return"variable-2"}}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})});(function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],a)}else{a(CodeMirror)}}})(function(d){function f(m){var k={},l=m.split(" ");for(var j=0;j\w/,false)){l.tokenize=e([[["->",null]],[[/[\w]+/,"variable"]]],k,j)}return"variable-2"}var m=false;while(!n.eol()&&(m||j===false||(!n.match("{$",false)&&!n.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,false)))){if(!m&&n.match(k)){l.tokenize=null;l.tokStack.pop();l.tokStack.pop();break}m=n.next()=="\\"&&!m}return"string"}var h="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally";var i="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__";var a="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";d.registerHelper("hintWords","php",[h,i,a].join(" ").split(" "));d.registerHelper("wordChars","php",/[\w$]/);var g={name:"clike",helperType:"php",keywords:f(h),blockKeywords:f("catch do else elseif for foreach if switch try while finally"),defKeywords:f("class function interface namespace trait"),atoms:f(i),builtin:f(a),multiLineStrings:true,hooks:{"$":function(j){j.eatWhile(/[\w\$_]/);return"variable-2"},"<":function(n,l){var k;if(k=n.match(/<<\s*/)){var j=n.eat(/['"]/);n.eatWhile(/[\w\.]/);var m=n.current().slice(k[0].length+(j?2:1));if(j){n.eat(j)}if(m){(l.tokStack||(l.tokStack=[])).push(m,0);l.tokenize=b(m,j!="'");return"string"}}return false},"#":function(j){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"},"/":function(j){if(j.eat("/")){while(!j.eol()&&!j.match("?>",false)){j.next()}return"comment"}return false},'"':function(j,k){(k.tokStack||(k.tokStack=[])).push('"',0);k.tokenize=b('"');return"string"},"{":function(j,k){if(k.tokStack&&k.tokStack.length){k.tokStack[k.tokStack.length-1]++}return false},"}":function(j,k){if(k.tokStack&&k.tokStack.length>0&&!--k.tokStack[k.tokStack.length-1]){k.tokenize=b(k.tokStack[k.tokStack.length-2])}return false}}};d.defineMode("php",function(l,m){var n=d.getMode(l,"text/html");var j=d.getMode(l,g);function k(u,s){var r=s.curMode==j;if(u.sol()&&s.pending&&s.pending!='"'&&s.pending!="'"){s.pending=null}if(!r){if(u.match(/^<\?\w*/)){s.curMode=j;if(!s.php){s.php=d.startState(j,n.indent(s.html,""))}s.curState=s.php;return"meta"}if(s.pending=='"'||s.pending=="'"){while(!u.eol()&&u.next()!=s.pending){}var q="string"}else{if(s.pending&&u.pos/.test(t)){s.pending=o[0]}else{s.pending={end:u.pos,style:q}}u.backUp(t.length-p)}return q}else{if(r&&s.php.tokenize==null&&u.match("?>")){s.curMode=n;s.curState=s.html;if(!s.php.context.prev){s.php=null}return"meta"}else{return j.token(u,s.curState)}}}return{startState:function(){var o=d.startState(n);var p=m.startOpen?d.startState(j):null;return{html:o,php:p,curMode:m.startOpen?j:n,curState:m.startOpen?p:o,pending:null}},copyState:function(r){var p=r.html,q=d.copyState(n,p),t=r.php,o=t&&d.copyState(j,t),s;if(r.curMode==n){s=q}else{s=o}return{html:q,php:o,curMode:r.curMode,curState:s,pending:r.pending}},token:k,indent:function(p,o){if((p.curMode!=j&&/^\s*<\//.test(o))||(p.curMode==j&&/^\?>/.test(o))){return n.indent(p.html,o)}return p.curMode.indent(p.curState,o)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(o){return{state:o.curState,mode:o.curMode}}}},"htmlmixed","clike");d.defineMIME("application/x-httpd-php","php");d.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:true});d.defineMIME("text/x-php",g)});