(function(){ shadow$provide[455]=function(ya,ca,Sa,Q){(function(w,Y){"object"===typeof Q&&"undefined"!==typeof Sa?Sa.exports=Y():"function"===typeof define&&define.amd?define(Y):(w=w||self,w.CodeMirror=Y())})(this,function(){function w(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}function Y(x){for(var ba=x.childNodes.length;0cb||cb>=ba)return Ha+(ba-wa);Ha+=cb-wa;Ha+=za-Ha%za;wa=cb+1}}function l(x,ba){for(var za=0;za=ba)return wa+Math.min(nb,ba-Ha);Ha+=cb-wa;Ha+=za-Ha%za;wa=cb+1;if(Ha>=ba)return wa}} function p(x){for(;Hn.length<=x;)Hn.push(D(Hn)+" ");return Hn[x]}function D(x){return x[x.length-1]}function v(x,ba){for(var za=[],wa=0;waza?0za?-1:1;;){if(ba==za)return ba;var Ha=(ba+za)/2;Ha=0>wa?Math.ceil(Ha):Math.floor(Ha);if(Ha==ba)return x(Ha)?ba:za;x(Ha)?za=Ha:ba=Ha+wa}}function L(x,ba,za,wa){if(!x)return wa(ba,za,"ltr",0);for(var Ha= !1,cb=0;cbba||ba==za&&nb.to==ba)wa(Math.max(nb.from,ba),Math.min(nb.to,za),1==nb.level?"rtl":"ltr",cb),Ha=!0}Ha||wa(ba,za,"ltr")}function T(x,ba,za){var wa;Zn=null;for(var Ha=0;Haba)return Ha;cb.to==ba&&(cb.from!=cb.to&&"before"==za?wa=Ha:Zn=Ha);cb.from==ba&&(cb.from!=cb.to&&"before"!=za?wa=Ha:Zn=Ha)}return null!=wa?wa:Zn}function R(x,ba){var za=x.order;null==za&&(za=x.order=Fp(x.text,ba));return za} function G(x,ba,za){if(x.removeEventListener)x.removeEventListener(ba,za,!1);else if(x.detachEvent)x.detachEvent("on"+ba,za);else{var wa=(x=x._handlers)&&x[ba];wa&&(za=l(wa,za),-1ba||ba>=x.size)throw Error("There is no line "+(ba+x.first)+" in the document.");for(;!x.lines;)for(var za=0;;++za){var wa=x.children[za],Ha=wa.chunkSize();if(ba=x.first&&baoa(x,ba)?ba:x}function Ma(x,ba){return 0>oa(x,ba)?x:ba}function Ua(x,ba){if(ba.lineza)return na(za,Ia(x,za).text.length);x=Ia(x,ba.line).text.length;za=ba.ch;ba=null==za||za>x?na(ba.line,x):0>za?na(ba.line,0):ba;return ba}function ib(x,ba){for(var za=[],wa=0;waBd&&Ha.splice(Pc,1,Bd,Ha[Pc+1],Mf);Pc+=2;wd=Math.min(Bd,Mf)}if(Id)if(zc.opaque)Ha.splice(Ce,Pc-Ce,Bd,"overlay "+Id),Pc=Ce+2;else for(;Cex.options.maxHighlightLength&&ta(x.doc.mode,wa.state),cb=vb(x,ba,wa);Ha&&(wa.state=Ha);ba.stateAfter=wa.save(!Ha);ba.styles=cb.styles;cb.classes?ba.styleClasses=cb.classes:ba.styleClasses&&(ba.styleClasses=null);za===x.doc.highlightFrontier&&(x.doc.modeFrontier= Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return ba.styles}function Wa(x,ba,za){var wa=x.doc,Ha=x.display;if(!wa.mode.startState)return new lm(wa,!0,ba);var cb=xc(x,ba,za),nb=cb>wa.first&&Ia(wa,cb-1).stateAfter,qb=nb?lm.fromSaved(wa,nb,cb):new lm(wa,Ga(wa.mode),cb);wa.iter(cb,ba,function(Vb){hb(x,Vb.text,qb);var zc=qb.line;Vb.stateAfter=zc==ba-1||0==zc%5||zc>=Ha.viewFrom&&zcHa;Ha++){wa&&(wa[0]=xa(x,za).mode);var cb=x.token(ba,za);if(ba.pos>ba.start)return cb}throw Error("Mode "+x.name+" failed to advance stream.");}function bb(x,ba,za,wa){var Ha=x.doc,cb=Ha.mode; ba=Ua(Ha,ba);var nb=Ia(Ha,ba.line);za=Wa(x,ba.line,za);x=new Wi(nb.text,x.options.tabSize,za);var qb;for(wa&&(qb=[]);(wa||x.posx.options.maxHighlightLength){qb=!1;nb&&hb(x,ba,wa,Pc.pos);Pc.pos=ba.length;var Bd=null}else Bd=Pa(Qa(za,Pc,wa.state,wd),cb);if(wd){var Id=wd[0].name;Id&&(Bd="m-"+(Bd?Id+" "+Bd:Id))}if(!qb||zc!=Bd){for(;Vb< Pc.start;)Vb=Math.min(Pc.start,Vb+5E3),Ha(Vb,zc);zc=Bd}Pc.start=Pc.pos}for(;Vbnb;--ba){if(ba<=cb.first)return cb.first;var qb=Ia(cb,ba-1),Vb=qb.stateAfter;if(Vb&&(!za||ba+(Vb instanceof Si?Vb.lookAhead:0)<=cb.modeFrontier))return ba;qb=b(qb.text,null,x.options.tabSize);if(null==Ha||wa>qb)Ha=ba-1,wa=qb}return Ha}function oc(x,ba){x.modeFrontier=Math.min(x.modeFrontier, ba);if(!(x.highlightFrontierza;wa--){var Ha=Ia(x,wa).stateAfter;if(Ha&&(!(Ha instanceof Si)||wa+Ha.lookAhead=x:Vb.to>x);(nb||=[]).push(new pc(zc,Vb.from,Pc?null:Vb.to))}}za=nb;var wd;if(wa)for(nb=0;nb=Ha:qb.to>Ha)||qb.from==Ha&&"bookmark"==Vb.type&&(!cb||qb.marker.insertLeft))zc=null==qb.from||(Vb.inclusiveLeft?qb.from<=Ha:qb.fromoa(nb.to,Ha.from)||0Vb||!za.inclusiveLeft&&!Vb)&&qb.push({from:nb.from,to:Ha.from});(0Xc(Ha,za.marker)))var Ha=za.marker;return Ha}function Sc(x,ba,za,wa,Ha){x=Ia(x,ba);if(x=fi&&x.markedSpans)for(ba=0;ba=Vb||0>=qb&&0<=Vb)&&(0>=qb&&(cb.marker.inclusiveRight&&Ha.inclusiveLeft?0<=oa(nb.to,za):0=oa(nb.from,wa):0>oa(nb.from,wa))))return!0}}}function Ib(x){for(var ba;ba=sc(x,!0);)x=ba.find(-1,!0).line;return x}function lb(x,ba){x=Ia(x,ba);var za=Ib(x);return x==za?ba:Ba(za)}function Db(x,ba){if(ba>x.lastLine())return ba;var za=Ia(x,ba);if(!Gb(x,za))return ba;for(;x= sc(za,!1);)za=x.find(1,!0).line;return Ba(za)+1}function Gb(x,ba){var za=fi&&ba.markedSpans;if(za)for(var wa,Ha=0;Haba.maxLineLength&&(ba.maxLineLength=wa,ba.maxLine=za)})}function Bc(x,ba){if(!x||/^\s*$/.test(x))return null;ba=ba.addModeClass?bt:Ur;return ba[x]||(ba[x]=x.replace(/\S+/g,"cm-$\x26"))} function Jc(x,ba){var za=c("span",null,null,Gj?"padding-right: .1px":null);za={pre:c("pre",[za],"CodeMirror-line"),content:za,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};ba.measure={};for(var wa=0;wa<=(ba.rest?ba.rest.length:0);wa++){var Ha=wa?ba.rest[wa-1]:ba.line,cb=void 0;za.pos=0;za.addToken=Oc;var nb=x.display.measure;if(null!=In)nb=In;else{var qb=y(nb,document.createTextNode("AخA")),Vb=ei(qb,0,1).getBoundingClientRect();qb=ei(qb,1,2).getBoundingClientRect();Y(nb); nb=Vb&&Vb.left!=Vb.right?In=3>qb.right-Vb.right:!1}nb&&(cb=R(Ha,x.doc.direction))&&(za.addToken=Rc(za.addToken,cb));za.map=[];var zc=ba!=x.display.externalMeasured&&Ba(Ha);a:{var Pc=qb=Vb=nb=void 0,wd=void 0,Bd=void 0,Id=void 0;cb=za;zc=yb(x,Ha,zc);var Ce=Ha.markedSpans,Mf=Ha.text,Pg=0;if(Ce)for(var Vj=Mf.length,Ag=0,yi=1,pi="",Th=0;;){if(Th==Ag){wd=Pc=qb=Bd="";Vb=nb=null;Th=Infinity;for(var zi=[],zh=void 0,Uh=0;UhAg||qi.collapsed&&Wh.to==Ag&&Wh.from==Ag)){null!=Wh.to&&Wh.to!=Ag&&Th>Wh.to&&(Th=Wh.to,Pc="");qi.className&&(wd+=" "+qi.className);qi.css&&(Bd=(Bd?Bd+";":"")+qi.css);qi.startStyle&&Wh.from==Ag&&(qb+=" "+qi.startStyle);qi.endStyle&&Wh.to==Th&&(zh||=[]).push(qi.endStyle,Wh.to);qi.title&&((nb||={}).title=qi.title);if(qi.attributes)for(var uj in qi.attributes)(nb||={})[uj]=qi.attributes[uj];qi.collapsed&&(!Vb||0>Xc(Vb.marker,qi))&&(Vb=Wh)}else Wh.from>Ag&&Th>Wh.from&& (Th=Wh.from)}if(zh)for(Uh=0;Uh=Vj)break;for(zi=Math.min(Vj,Th);;){if(pi){zh=Ag+pi.length;Vb||(Uh=zh>zi?pi.slice(0,zi-Ag):pi,cb.addToken(cb,Uh,Id?Id+wd:wd,qb,Ag+Uh.length==Th?Pc:"",Bd,nb));if(zh>=zi){pi=pi.slice(zi-Ag);Ag=zi;break}Ag=zh;qb=""}pi=Mf.slice(Pg, Pg=zc[yi++]);Id=Bc(zc[yi++],cb.cm.options)}}else for(nb=1;nb=Pc.offsetWidth&&2Hh))),qb=fp?q("span","​"):q("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px"),qb.setAttribute("cm-text",""),cb.call(Ha,0,0,Vb.call(nb,qb)));0==wa?(ba.measure.map=za.map,ba.measure.cache={}):((ba.measure.maps||(ba.measure.maps=[])).push(za.map),(ba.measure.caches||(ba.measure.caches=[])).push({}))}Gj&&(uj=za.content.lastChild,/\bcm-tab\b/.test(uj.className)||uj.querySelector&&uj.querySelector(".cm-tab"))&& (za.content.className="cm-tab-wrap-hack");F(x,"renderLine",x,ba.line,za.pre);za.pre.className&&(za.textClass=C(za.pre.className,za.textClass||""));return za}function ic(x){var ba=q("span","•","cm-invalidchar");ba.title="\\u"+x.charCodeAt(0).toString(16);ba.setAttribute("aria-label",ba.title);return ba}function Oc(x,ba,za,wa,Ha,cb,nb){if(ba){if(x.splitSpaces){var qb=x.trailingSpace;if(1Hh?qb.appendChild(q("span",[Ce])):qb.appendChild(Ce);x.map.push(x.pos,x.pos+Id,Ce);x.col+=Id;x.pos+=Id}if(!Bd)break;wd+=Id+1;"\t"==Bd[0]?(Bd=x.cm.options.tabSize,Bd-=x.col%Bd,Id=qb.appendChild(q("span", p(Bd),"cm-tab")),Id.setAttribute("role","presentation"),Id.setAttribute("cm-text","\t"),x.col+=Bd):("\r"==Bd[0]||"\n"==Bd[0]?(Id=qb.appendChild(q("span","\r"==Bd[0]?"␍":"␤","cm-invalidchar")),Id.setAttribute("cm-text",Bd[0])):(Id=x.cm.options.specialCharPlaceholder(Bd[0]),Id.setAttribute("cm-text",Bd[0]),tg&&9>Hh?qb.appendChild(q("span",[Id])):qb.appendChild(Id)),x.col+=1);x.map.push(x.pos,x.pos+1,Id);x.pos++}}else x.col+=ba.length,qb=document.createTextNode(Vb),x.map.push(x.pos,x.pos+ba.length,qb), tg&&9>Hh&&(Pc=!0),x.pos+=ba.length;x.trailingSpace=32==Vb.charCodeAt(ba.length-1);if(za||wa||Ha||Pc||cb||nb){ba=za||"";wa&&(ba+=wa);Ha&&(ba+=Ha);wa=q("span",[qb],ba,cb);if(nb)for(var Mf in nb)nb.hasOwnProperty(Mf)&&"style"!=Mf&&"class"!=Mf&&wa.setAttribute(Mf,nb[Mf]);return x.content.appendChild(wa)}x.content.appendChild(qb)}}function Rc(x,ba){return function(za,wa,Ha,cb,nb,qb,Vb){Ha=Ha?Ha+" cm-force-border":"cm-force-border";for(var zc=za.pos,Pc=zc+wa.length;;){for(var wd=void 0,Bd=0;Bdzc&&wd.from<=zc);Bd++);if(wd.to>=Pc)return x(za,wa,Ha,cb,nb,qb,Vb);x(za,wa.slice(0,wd.to-zc),Ha,cb,null,qb,Vb);cb=null;wa=wa.slice(wd.to-zc);zc=wd.to}}}function fd(x,ba,za,wa){var Ha=!wa&&za.widgetNode;Ha&&x.map.push(x.pos,x.pos+ba,Ha);!wa&&x.cm.display.input.needsContentAttribute&&(Ha||=x.content.appendChild(document.createElement("span")),Ha.setAttribute("cm-marker",za.id));Ha&&(x.cm.display.input.setUneditable(Ha),x.content.appendChild(Ha));x.pos+=ba;x.trailingSpace=!1}function pd(x, ba,za){for(var wa=this.line=ba,Ha;wa=sc(wa,!1);)wa=wa.find(1,!0).line,(Ha||=[]).push(wa);this.size=(this.rest=Ha)?Ba(D(this.rest))-za+1:1;this.node=this.text=null;this.hidden=Gb(x,ba)}function Ic(x,ba,za){var wa=[],Ha;for(Ha=ba;HaHh&&(x.node.style.zIndex=2));return x.node}function kd(x,ba){var za=x.display.externalMeasured;return za&&za.line==ba.line?(x.display.externalMeasured= null,ba.measure=za.measure,za.built):Jc(x,ba)}function Ae(x,ba){var za=ba.bgClass?ba.bgClass+" "+(ba.line.bgClass||""):ba.line.bgClass;za&&(za+=" CodeMirror-linebackground");if(ba.background)za?ba.background.className=za:(ba.background.parentNode.removeChild(ba.background),ba.background=null);else if(za){var wa=ue(ba);ba.background=wa.insertBefore(q("div",null,za),wa.firstChild);x.display.input.setUneditable(ba.background)}ba.line.wrapClass?ue(ba).className=ba.line.wrapClass:ba.node!=ba.text&&(ba.node.className= "");ba.text.className=(ba.textClass?ba.textClass+" "+(ba.line.textClass||""):ba.line.textClass)||""}function Bf(x,ba,za,wa){ba.gutter&&(ba.node.removeChild(ba.gutter),ba.gutter=null);ba.gutterBackground&&(ba.node.removeChild(ba.gutterBackground),ba.gutterBackground=null);if(ba.line.gutterClass){var Ha=ue(ba);ba.gutterBackground=q("div",null,"CodeMirror-gutter-background "+ba.line.gutterClass,"left: "+(x.options.fixedGutter?wa.fixedPos:-wa.gutterTotalWidth)+"px; width: "+wa.gutterTotalWidth+"px"); x.display.input.setUneditable(ba.gutterBackground);Ha.insertBefore(ba.gutterBackground,ba.text)}Ha=ba.line.gutterMarkers;if(x.options.lineNumbers||Ha){var cb=ue(ba),nb=ba.gutter=q("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?wa.fixedPos:-wa.gutterTotalWidth)+"px");nb.setAttribute("aria-hidden","true");x.display.input.setUneditable(nb);cb.insertBefore(nb,ba.text);ba.line.gutterClass&&(nb.className+=" "+ba.line.gutterClass);!x.options.lineNumbers||Ha&&Ha["CodeMirror-linenumbers"]|| (ba.lineNumber=nb.appendChild(q("div",ua(x.options,za),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+wa.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px")));if(Ha)for(ba=0;baza)return{map:x.measure.maps[ba],cache:x.measure.caches[ba],before:!0}}}function kb(x,ba){if(ba>=x.display.viewFrom&&ba=x.lineN&&baBd;Bd++){for(;qb&&V(ba.line.text.charAt(nb.coverStart+qb));)--qb;for(;nb.coverStart+VbHh&&0==qb&&Vb==nb.coverEnd-nb.coverStart)var Id=wa.parentNode.getBoundingClientRect();else{Id=ei(wa,qb,Vb).getClientRects();Vb=Fm;if("left"==Pc)for(zc=0;zcHh&&((Bd=!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI)||(null!=bo?Bd=bo:(Pc=y(x.display.measure,q("span","x")),Bd=Pc.getBoundingClientRect(),Pc=ei(Pc,0,1).getBoundingClientRect(),Bd=bo=1Hh)||qb||Id&&(Id.left||Id.right)||(Id=(Id=wa.parentNode.getClientRects()[0])?{left:Id.left,right:Id.left+Wd(x.display),top:Id.top,bottom:Id.bottom}:Fm);wa=Id.top-ba.rect.top;qb=Id.bottom-ba.rect.top;Bd=(wa+qb)/2;Pc=ba.view.measure.heights;for(nb=0;nbba)cb=Vb-qb,Ha=cb-1,ba>=Vb&&(nb="right");if(null!=Ha){wa=x[zc+2];qb==Vb&&za==(wa.insertLeft?"left":"right")&&(nb=za);if("left"==za&&0==Ha)for(;zc&&x[zc-2]==x[zc-3]&&x[zc-1].insertLeft;)wa=x[(zc-=3)+2],nb="left";if("right"==za&&Ha==Vb-qb)for(;zc=wa.text.length?(zc=wa.text.length,ba="before"):0>=zc&&(zc=0,ba="after");if(!Vb)return nb("before"==ba?zc-1:zc,"before"==ba);var Pc=T(Vb, zc,ba),wd=Zn;Pc=qb(zc,Pc,"before"==ba);null!=wd&&(Pc.other=qb(zc,wd,"before"!=ba));return Pc}function vc(x,ba){var za=0;ba=Ua(x.doc,ba);x.options.lineWrapping||(za=Wd(x.display)*ba.ch);ba=Ia(x.doc,ba.line);x=rb(ba)+x.display.lineSpace.offsetTop;return{left:za,right:za,top:x,bottom:x+ba.height}}function Xa(x,ba,za,wa,Ha){x=na(x,ba,za);x.xRel=Ha;wa&&(x.outside=wa);return x}function sa(x,ba,za){var wa=x.doc;za+=x.display.viewOffset;if(0>za)return Xa(wa.first,0,null,-1,-1);var Ha=la(wa,za),cb=wa.first+ wa.size-1;if(Ha>cb)return Xa(wa.first+wa.size-1,Ia(wa,cb).text.length,null,1,1);0>ba&&(ba=0);for(var nb=Ia(wa,Ha);;){cb=wb(x,nb,Ha,ba,za);var qb=void 0;var Vb=cb.ch+(0Vb)&&(!qb||0>Xc(qb,Pc.marker))&&(qb=Pc.marker)}if(!qb)return cb;cb=qb.find(1);if(cb.line==Ha)return cb;nb=Ia(wa,Ha=cb.line)}}function qa(x,ba,za,wa){wa-=ve(ba);ba=ba.text.length; var Ha=S(function(cb){return ob(x,za,cb-1).bottom<=wa},ba,0);ba=S(function(cb){return ob(x,za,cb).top>wa},Ha,ba);return{begin:Ha,end:ba}}function Da(x,ba,za,wa){za||=tb(x,ba);wa=pe(x,ba,ob(x,za,wa),"line").top;return qa(x,ba,za,wa)}function Ta(x,ba,za,wa){return x.bottom<=za?!1:x.top>za?!0:(wa?x.left:x.right)>ba}function wb(x,ba,za,wa,Ha){Ha-=rb(ba);var cb=tb(x,ba),nb=ve(ba),qb=0,Vb=ba.text.length,zc=!0,Pc=R(ba,x.doc.direction);Pc&&(Pc=(x.options.lineWrapping?Hc:ac)(x,ba,za,cb,Pc,wa,Ha),qb=(zc=1!= Pc.level)?Pc.from:Pc.to-1,Vb=zc?Pc.to:Pc.from-1);var wd=null,Bd=null;Pc=S(function(Ce){var Mf=ob(x,cb,Ce);Mf.top+=nb;Mf.bottom+=nb;if(!Ta(Mf,wa,Ha,!1))return!1;Mf.top<=Ha&&Mf.left<=wa&&(wd=Ce,Bd=Mf);return!0},qb,Vb);var Id=!1;Bd?(qb=wa-Bd.left=Id.bottom?1:0);Pc=H(ba.text,Pc,1);return Xa(za,Pc,zc,Id,wa-qb)}function ac(x,ba,za,wa,Ha,cb,nb){var qb=S(function(Pc){Pc=Ha[Pc];var wd=1!=Pc.level;return Ta(ec(x,na(za,wd?Pc.to:Pc.from,wd?"before":"after"),"line",ba,wa),cb,nb,!0)},0,Ha.length-1),Vb=Ha[qb];if(0nb&&(Vb=Ha[qb-1])}return Vb}function Hc(x,ba,za,wa,Ha,cb,nb){nb=qa(x,ba,wa,nb);za=nb.begin;nb=nb.end;/\s/.test(ba.text.charAt(nb- 1))&&nb--;for(var qb=ba=null,Vb=0;Vb=nb||zc.to<=za)){var Pc=ob(x,wa,1!=zc.level?Math.min(nb,zc.to)-1:Math.max(za,zc.from)).right;Pc=PcPc)ba=zc,qb=Pc}}ba||=Ha[Ha.length-1];ba.fromnb&&(ba={from:ba.from,to:nb,level:ba.level});return ba}function Wc(x){if(null!=x.cachedTextHeight)return x.cachedTextHeight;if(null==Cg){Cg=q("pre",null,"CodeMirror-line-like");for(var ba=0;49>ba;++ba)Cg.appendChild(document.createTextNode("x")), Cg.appendChild(q("br"));Cg.appendChild(document.createTextNode("x"))}y(x.measure,Cg);ba=Cg.offsetHeight/50;3=x.display.viewTo)return null;ba-=x.display.viewFrom;if(0>ba)return null;x=x.display.view;for(var za=0;zaba)return za}function rg(x,ba,za,wa){null==ba&&(ba=x.doc.first);null==za&&(za=x.doc.first+x.doc.size);wa||=0;var Ha=x.display; wa&&zaba)&&(Ha.updateLineNumbers=ba);x.curOp.viewChanged=!0;if(ba>=Ha.viewTo)fi&&lb(x.doc,ba)Ha.viewFrom?jh(x):(Ha.viewFrom+=wa,Ha.viewTo+=wa);else if(ba<=Ha.viewFrom&&za>=Ha.viewTo)jh(x);else if(ba<=Ha.viewFrom){var cb=Uf(x,za,za+wa,1);cb?(Ha.view=Ha.view.slice(cb.index),Ha.viewFrom=cb.lineN,Ha.viewTo+=wa):jh(x)}else if(za>=Ha.viewTo)(cb=Uf(x,ba,ba,-1))?(Ha.view=Ha.view.slice(0, cb.index),Ha.viewTo=cb.lineN):jh(x);else{cb=Uf(x,ba,ba,-1);var nb=Uf(x,za,za+wa,1);cb&&nb?(Ha.view=Ha.view.slice(0,cb.index).concat(Ic(x,cb.lineN,nb.lineN)).concat(Ha.view.slice(nb.index)),Ha.viewTo+=wa):jh(x)}if(x=Ha.externalMeasured)za=Ha.lineN&&ba=wa.viewTo||(x=wa.view[tf(x, ba)],null!=x.node&&(x=x.changes||(x.changes=[]),-1==l(x,za)&&x.push(za)))}function jh(x){x.display.viewFrom=x.display.viewTo=x.doc.first;x.display.view=[];x.display.viewOffset=0}function Uf(x,ba,za,wa){var Ha=tf(x,ba),cb=x.display.view;if(!fi||za==x.doc.first+x.doc.size)return{index:Ha,lineN:za};for(var nb=x.display.viewFrom,qb=0;qbwa?0:cb.length- 1))return null;za+=wa*cb[Ha-(0>wa?1:0)].size;Ha+=wa}return{index:Ha,lineN:za}}function hh(x){x=x.display.view;for(var ba=0,za=0;za=x.display.viewTo||Vb.to().lineCe&&(Ce=0);Ce=Math.round(Ce);Pg=Math.round(Pg);qb.appendChild(q("div",null,"CodeMirror-selected","position: absolute; left: "+Id+"px;\n top: "+Ce+"px; width: "+(null==Mf?Pc-Id:Mf)+"px;\n height: "+(Pg-Ce)+"px"))}function Ha(Id,Ce,Mf){function Pg(zh,Uh){return Ab(x,na(Id,zh),"div",Ag,Uh)}function Vj(zh,Uh,Wh){zh=Da(x,Ag,null,zh);Uh="ltr"==Uh==("after"==Wh)?"left":"right";Wh="after"==Wh?zh.begin:zh.end-(/\s/.test(Ag.text.charAt(zh.end- 1))?2:1);return Pg(Wh,Uh)[Uh]}var Ag=Ia(nb,Id),yi=Ag.text.length,pi,Th,zi=R(Ag,nb.direction);L(zi,Ce||0,null==Mf?yi:Mf,function(zh,Uh,Wh,qi){var uj="ltr"==Wh,Dk=Pg(zh,uj?"left":"right"),ul=Pg(Uh-1,uj?"right":"left"),Kn=null==Ce&&0==zh,Jm=null==Mf&&Uh==yi,Km=0==qi;qi=!zi||qi==zi.length-1;3>=ul.top-Dk.top?(Uh=(wd?Kn:Jm)&&Km?zc:(uj?Dk:ul).left,wa(Uh,Dk.top,((wd?Jm:Kn)&&qi?Pc:(uj?ul:Dk).right)-Uh,Dk.bottom)):(uj?(uj=wd&&Kn&&Km?zc:Dk.left,Kn=wd?Pc:Vj(zh,Wh,"before"),zh=wd?zc:Vj(Uh,Wh,"after"),Jm=wd&&Jm&& qi?Pc:ul.right):(uj=wd?Vj(zh,Wh,"before"):zc,Kn=!wd&&Kn&&Km?Pc:Dk.right,zh=!wd&&Jm&&qi?zc:ul.left,Jm=wd?Vj(Uh,Wh,"after"):Pc),wa(uj,Dk.top,Kn-uj,Dk.bottom),Dk.bottomLk(Dk,pi))pi=Dk;0>Lk(ul,pi)&&(pi=ul);if(!Th||0>Lk(Dk,Th))Th=Dk;0>Lk(ul,Th)&&(Th=ul)});return{start:pi,end:Th}}var cb=x.display,nb=x.doc,qb=document.createDocumentFragment(),Vb=Eb(x.display),zc=Vb.left,Pc=Math.max(cb.sizerWidth,Ud(x)-cb.sizer.offsetLeft)-Vb.right, wd="ltr"==nb.direction;cb=ba.from();ba=ba.to();if(cb.line==ba.line)Ha(cb.line,cb.ch,ba.ch);else{var Bd=Ia(nb,cb.line);Vb=Ia(nb,ba.line);Vb=Ib(Bd)==Ib(Vb);cb=Ha(cb.line,cb.ch,Vb?Bd.text.length+1:null).end;ba=Ha(ba.line,Vb?0:null,ba.ch).start;Vb&&(cb.topx.options.cursorBlinkRate&&(ba.cursorDiv.style.visibility="hidden")}}function lj(x){x.hasFocus()||(x.display.input.focus(),x.state.focused||sh(x))}function Gi(x){x.state.delayingBlurEvent=!0;setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,x.state.focused&&Wl(x))}, 100)}function sh(x,ba){x.state.delayingBlurEvent&&!x.state.draggingText&&(x.state.delayingBlurEvent=!1);"nocursor"!=x.options.readOnly&&(x.state.focused||(F(x,"focus",x,ba),x.state.focused=!0,z(x.display.wrapper,"CodeMirror-focused"),x.curOp||x.display.selForContextMenu==x.doc.sel||(x.display.input.reset(),Gj&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),jk(x))}function Wl(x,ba){x.state.delayingBlurEvent||(x.state.focused&&(F(x,"blur",x,ba),x.state.focused= !1,km(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function Mi(x){for(var ba=x.display,za=ba.lineDiv.offsetTop,wa=Math.max(0,ba.scroller.getBoundingClientRect().top),Ha=ba.lineDiv.getBoundingClientRect().top,cb=0,nb=0;nbHh){Vb=qb.node.offsetTop+qb.node.offsetHeight;var Pc=Vb-za;za=Vb}else{var wd= qb.node.getBoundingClientRect();Pc=wd.bottom-wd.top;!Vb&&qb.text.firstChild&&(zc=qb.text.firstChild.getBoundingClientRect().right-wd.left-1)}Vb=qb.line.height-Pc;if(.005Vb)if(Hax.display.sizerWidth&&(zc=Math.ceil(zc/Wd(x.display)),zc>x.display.maxLineLength&&(x.display.maxLineLength=zc,x.display.maxLine=qb.line,x.display.maxLineChanged=!0))}}2=Ha&&(wa=la(ba,rb(Ia(ba,za))- x.wrapper.clientHeight),Ha=za)}return{from:wa,to:Math.max(Ha,wa+1)}}function oh(x,ba){var za=x.display,wa=Wc(x.display);0>ba.top&&(ba.top=0);var Ha=x.curOp&&null!=x.curOp.scrollTop?x.curOp.scrollTop:za.scroller.scrollTop,cb=Td(x),nb={};ba.bottom-ba.top>cb&&(ba.bottom=ba.top+cb);var qb=x.doc.height+Bb(za),Vb=ba.topqb-wa;ba.topHa+cb&&(cb=Math.min(ba.top,(wa?qb:ba.bottom)-cb),cb!=Ha&&(nb.scrollTop=cb));Ha=x.options.fixedGutter?0:za.gutters.offsetWidth; cb=x.curOp&&null!=x.curOp.scrollLeft?x.curOp.scrollLeft:za.scroller.scrollLeft-Ha;x=Ud(x)-za.gutters.offsetWidth;if(za=ba.right-ba.left>x)ba.right=ba.left+x;10>ba.left?nb.scrollLeft=0:ba.leftx+cb-3&&(nb.scrollLeft=ba.right+(za?0:10)-x);return nb}function wf(x,ba){null!=ba&&(ll(x),x.curOp.scrollTop=(null==x.curOp.scrollTop?x.doc.scrollTop:x.curOp.scrollTop)+ba)}function cg(x){ll(x);var ba=x.getCursor();x.curOp.scrollToPos={from:ba,to:ba,margin:x.options.cursorScrollMargin}} function zk(x,ba,za){null==ba&&null==za||ll(x);null!=ba&&(x.curOp.scrollLeft=ba);null!=za&&(x.curOp.scrollTop=za)}function ll(x){var ba=x.curOp.scrollToPos;if(ba){x.curOp.scrollToPos=null;var za=vc(x,ba.from),wa=vc(x,ba.to);dh(x,za,wa,ba.margin)}}function dh(x,ba,za,wa){ba=oh(x,{left:Math.min(ba.left,za.left),top:Math.min(ba.top,za.top)-wa,right:Math.max(ba.right,za.right),bottom:Math.max(ba.bottom,za.bottom)+wa});zk(x,ba.scrollLeft,ba.scrollTop)}function kk(x,ba){2>Math.abs(x.doc.scrollTop-ba)|| (th||fj(x,{top:ba}),Zk(x,ba,!0),th&&fj(x),ui(x,100))}function Zk(x,ba,za){ba=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,ba));if(x.display.scroller.scrollTop!=ba||za)x.doc.scrollTop=ba,x.display.scrollbars.setScrollTop(ba),x.display.scroller.scrollTop!=ba&&(x.display.scroller.scrollTop=ba)}function mj(x,ba,za,wa){ba=Math.max(0,Math.min(ba,x.display.scroller.scrollWidth-x.display.scroller.clientWidth));(za?ba==x.doc.scrollLeft:2>Math.abs(x.doc.scrollLeft-ba))&& !wa||(x.doc.scrollLeft=ba,wh(x),x.display.scroller.scrollLeft!=ba&&(x.display.scroller.scrollLeft=ba),x.display.scrollbars.setScrollLeft(ba))}function ml(x){var ba=x.display,za=ba.gutters.offsetWidth,wa=Math.round(x.doc.height+Bb(x.display));return{clientHeight:ba.scroller.clientHeight,viewHeight:ba.wrapper.clientHeight,scrollWidth:ba.scroller.scrollWidth,clientWidth:ba.scroller.clientWidth,viewWidth:ba.wrapper.clientWidth,barLeft:x.options.fixedGutter?za:0,docHeight:wa,scrollHeight:wa+hd(x)+ba.barHeight, nativeBarWidth:ba.nativeBarWidth,gutterWidth:za}}function Ch(x,ba){ba||=ml(x);var za=x.display.barWidth,wa=x.display.barHeight;Yj(x,ba);for(ba=0;4>ba&&za!=x.display.barWidth||wa!=x.display.barHeight;ba++)za!=x.display.barWidth&&x.options.lineWrapping&&Mi(x),Yj(x,ml(x)),za=x.display.barWidth,wa=x.display.barHeight}function Yj(x,ba){var za=x.display,wa=za.scrollbars.update(ba);za.sizer.style.paddingRight=(za.barWidth=wa.right)+"px";za.sizer.style.paddingBottom=(za.barHeight=wa.bottom)+"px";za.heightForcer.style.borderBottom= wa.bottom+"px solid transparent";wa.right&&wa.bottom?(za.scrollbarFiller.style.display="block",za.scrollbarFiller.style.height=wa.bottom+"px",za.scrollbarFiller.style.width=wa.right+"px"):za.scrollbarFiller.style.display="";wa.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(za.gutterFiller.style.display="block",za.gutterFiller.style.height=wa.bottom+"px",za.gutterFiller.style.width=ba.gutterWidth+"px"):za.gutterFiller.style.display=""}function $k(x){x.display.scrollbars&&(x.display.scrollbars.clear(), x.display.scrollbars.addClass&&km(x.display.wrapper,x.display.scrollbars.addClass));x.display.scrollbars=new nk[x.options.scrollbarStyle](function(ba){x.display.wrapper.insertBefore(ba,x.display.scrollbarFiller);Og(ba,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)});ba.setAttribute("cm-not-content","true")},function(ba,za){"horizontal"==za?mj(x,ba):kk(x,ba)},x);x.display.scrollbars.addClass&&z(x.display.wrapper,x.display.scrollbars.addClass)}function Ej(x){x.curOp= {cm:x,viewChanged:!1,startHeight:x.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Uj,markArrays:null};x=x.curOp;eo?eo.ops.push(x):x.ownsGroup=eo={ops:[x],delayedCallbacks:[]}}function mg(x){(x=x.curOp)&&wc(x,function(ba){for(var za=0;za=cb.viewTo)||cb.maxLineChanged&& Ha.options.lineWrapping;wa.update=wa.mustUpdate&&new fo(Ha,wa.mustUpdate&&{top:wa.scrollTop,ensure:wa.scrollToPos},wa.forceUpdate)}for(za=0;zawd;wd++){var Bd= !1;qb=ec(Ha,Vb);var Id=zc&&zc!=Vb?ec(Ha,zc):qb;qb={left:Math.min(qb.left,Id.left),top:Math.min(qb.top,Id.top)-Pc,right:Math.max(qb.left,Id.left),bottom:Math.max(qb.bottom,Id.bottom)+Pc};Id=oh(Ha,qb);var Ce=Ha.doc.scrollTop,Mf=Ha.doc.scrollLeft;null!=Id.scrollTop&&(kk(Ha,Id.scrollTop),1zc.top+wd.top?Vb=!0:zc.bottom+wd.top>(Bd.defaultView.innerHeight||Bd.documentElement.clientHeight)&&(Vb=!1),null==Vb||$o||(zc=q("div","​",null,"position: absolute;\n top: "+(zc.top-Pc.viewOffset-Ha.display.lineSpace.offsetTop)+"px;\n height: "+(zc.bottom-zc.top+hd(Ha)+Pc.barHeight)+"px;\n left: "+zc.left+"px; width: "+Math.max(2,zc.right-zc.left)+"px;"),Ha.display.lineSpace.appendChild(zc), zc.scrollIntoView(Vb),Ha.display.lineSpace.removeChild(zc)))}zc=wa.maybeHiddenMarkers;Vb=wa.maybeUnhiddenMarkers;if(zc)for(Pc=0;Pc= x.display.viewTo)){var za=+new Date+x.options.workTime,wa=Wa(x,ba.highlightFrontier),Ha=[];ba.iter(wa.line,Math.min(ba.first+ba.size,x.display.viewTo+500),function(cb){if(wa.line>=x.display.viewFrom){var nb=cb.styles,qb=cb.text.length>x.options.maxHighlightLength?ta(ba.mode,wa.state):null,Vb=vb(x,cb,wa,!0);qb&&(wa.state=qb);cb.styles=Vb.styles;qb=cb.styleClasses;(Vb=Vb.classes)?cb.styleClasses=Vb:qb&&(cb.styleClasses=null);Vb=!nb||nb.length!=cb.styles.length||qb!=Vb&&(!qb||!Vb||qb.bgClass!=Vb.bgClass|| qb.textClass!=Vb.textClass);for(qb=0;!Vb&&qbza)return ui(x,x.options.workDelay),!0});ba.highlightFrontier=wa.line;ba.modeFrontier=Math.max(ba.modeFrontier,wa.line);Ha.length&&hg(x,function(){for(var cb=0;cb=za.viewFrom&&ba.visible.to<=za.viewTo&&(null==za.updateLineNumbers||za.updateLineNumbers>=za.viewTo)&&za.renderedView==za.view&&0==hh(x))return!1;nl(x)&&(jh(x),ba.dims=re(x));var Ha=wa.first+wa.size,cb=Math.max(ba.visible.from-x.options.viewportMargin,wa.first),nb=Math.min(Ha,ba.visible.to+x.options.viewportMargin);za.viewFromcb-za.viewFrom&&(cb=Math.max(wa.first,za.viewFrom));za.viewTo>nb&&20>za.viewTo-nb&&(nb=Math.min(Ha, za.viewTo));fi&&(cb=lb(x.doc,cb),nb=Db(x.doc,nb));wa=cb!=za.viewFrom||nb!=za.viewTo||za.lastWrapHeight!=ba.wrapperHeight||za.lastWrapWidth!=ba.wrapperWidth;Ha=x.display;0==Ha.view.length||cb>=Ha.viewTo||nb<=Ha.viewFrom?(Ha.view=Ic(x,cb,nb),Ha.viewFrom=cb):(Ha.viewFrom>cb?Ha.view=Ic(x,cb,Ha.viewFrom).concat(Ha.view):Ha.viewFromnb&&(Ha.view=Ha.view.slice(0,tf(x,nb))));Ha.viewTo=nb; za.viewOffset=rb(Ia(x.doc,za.viewFrom));x.display.mover.style.top=za.viewOffset+"px";nb=hh(x);if(!wa&&0==nb&&!ba.force&&za.renderedView==za.view&&(null==za.updateLineNumbers||za.updateLineNumbers>=za.viewTo))return!1;x.hasFocus()?cb=null:(cb=A(P(x)))&&u(x.display.lineDiv,cb)?(cb={activeElt:cb},window.getSelection&&(Ha=P(x).defaultView.getSelection(),Ha.anchorNode&&Ha.extend&&u(x.display.lineDiv,Ha.anchorNode)&&(cb.anchorNode=Ha.anchorNode,cb.anchorOffset=Ha.anchorOffset,cb.focusNode=Ha.focusNode, cb.focusOffset=Ha.focusOffset))):cb=null;4=x.display.viewFrom&&ba.visible.to<=x.display.viewTo)break;if(!Tg(x,ba))break;Mi(x);wa=ml(x);ti(x);Ch(x,wa);Ni(x,wa);ba.force=!1}ba.signal(x,"update",x);if(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)ba.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo}function fj(x,ba){ba= new fo(x,ba);if(Tg(x,ba)){Mi(x);$h(x,ba);var za=ml(x);ti(x);Ch(x,za);Ni(x,za);ba.finish()}}function El(x,ba,za){function wa(Bd){var Id=Bd.nextSibling;Gj&&ol&&x.display.currentWheelTarget==Bd?Bd.style.display="none":Bd.parentNode.removeChild(Bd);return Id}var Ha=x.display,cb=x.options.lineNumbers,nb=Ha.lineDiv,qb=nb.firstChild,Vb=Ha.view;Ha=Ha.viewFrom;for(var zc=0;zcHh&&(this.gutters.style.zIndex=-1,this.scroller.style.paddingRight=0);Gj||th&&wi||(this.scroller.draggable=!0);x&&(x.appendChild?x.appendChild(this.wrapper):x(this.wrapper));this.reportedViewFrom=this.reportedViewTo=this.viewFrom=this.viewTo=ba.first;this.view=[];this.externalMeasured=this.renderedView=null;this.lastWrapHeight=this.lastWrapWidth=this.viewOffset=0; this.updateLineNumbers=null;this.nativeBarWidth=this.barHeight=this.barWidth=0;this.scrollbarsClipped=!1;this.lineNumWidth=this.lineNumInnerWidth=this.lineNumChars=null;this.alignWidgets=!1;this.maxLine=this.cachedCharWidth=this.cachedTextHeight=this.cachedPaddingH=null;this.maxLineLength=0;this.maxLineChanged=!1;this.wheelDX=this.wheelDY=this.wheelStartX=this.wheelStartY=null;this.shift=!1;this.activeTouch=this.selForContextMenu=null;this.gutterSpecs=Sj(wa.gutters,wa.lineNumbers);im(this);za.init(this)} function Zi(x){var ba=x.wheelDeltaX,za=x.wheelDeltaY;null==ba&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(ba=x.detail);null==za&&x.detail&&x.axis==x.VERTICAL_AXIS?za=x.detail:null==za&&(za=x.wheelDelta);return{x:ba,y:za}}function Mk(x){x=Zi(x);x.x*=Im;x.y*=Im;return x}function Nk(x,ba){Xl&&102==yo&&(null==x.display.chromeScrollHack?x.display.sizer.style.pointerEvents="none":clearTimeout(x.display.chromeScrollHack),x.display.chromeScrollHack=setTimeout(function(){x.display.chromeScrollHack=null;x.display.sizer.style.pointerEvents= ""},100));var za=Zi(ba),wa=za.x;za=za.y;var Ha=Im;0===ba.deltaMode&&(wa=ba.deltaX,za=ba.deltaY,Ha=1);var cb=x.display,nb=cb.scroller,qb=nb.scrollWidth>nb.clientWidth,Vb=nb.scrollHeight>nb.clientHeight;if(wa&&qb||za&&Vb){if(za&&ol&&Gj){qb=ba.target;var zc=cb.view;a:for(;qb!=nb;qb=qb.parentNode)for(var Pc=0;PcHa?Vb=Math.max(0,Vb+ Ha-50):qb=Math.min(x.doc.height,qb+Ha+50),fj(x,{top:Vb,bottom:qb})),20>xf&&0!==ba.deltaMode&&(null==cb.wheelStartX?(cb.wheelStartX=nb.scrollLeft,cb.wheelStartY=nb.scrollTop,cb.wheelDX=wa,cb.wheelDY=za,setTimeout(function(){if(null!=cb.wheelStartX){var wd=nb.scrollLeft-cb.wheelStartX,Bd=nb.scrollTop-cb.wheelStartY;wd=Bd&&cb.wheelDY&&Bd/cb.wheelDY||wd&&cb.wheelDX&&wd/cb.wheelDX;cb.wheelStartX=cb.wheelStartY=null;wd&&(Im=(Im*xf+wd)/(xf+1),++xf)}},200)):(cb.wheelDX+=wa,cb.wheelDY+=za))):(za&&Vb&&kk(x, Math.max(0,nb.scrollTop+za*Ha)),mj(x,Math.max(0,nb.scrollLeft+wa*Ha)),(!za||za&&Vb)&&U(ba),cb.wheelStartX=null)}}function ah(x,ba,za){x=x&&x.options.selectionsMayTouch;za=ba[za];ba.sort(function(Vb,zc){return oa(Vb.from(),zc.from())});za=l(ba,za);for(var wa=1;waoa(x,ba.from))return x;if(0>=oa(x,ba.to))return Ph(ba);var za=x.line+ba.text.length-(ba.to.line-ba.from.line)-1,wa=x.ch;x.line==ba.to.line&&(wa+=Ph(ba).ch-ba.to.ch);return na(za,wa)}function al(x,ba){for(var za=[],wa=0;wacb-(x.cm?x.cm.options.historyEventDelay:500)||"*"==ba.origin.charAt(0))){if(Ha.lastOp==wa){yc(Ha.done);var qb= D(Ha.done)}else Ha.done.length&&!D(Ha.done).ranges?qb=D(Ha.done):1Ha.undoDepth;)Ha.done.shift(),Ha.done[0].ranges||Ha.done.shift();Ha.done.push(za);Ha.generation= ++Ha.maxGeneration;Ha.lastModTime=Ha.lastSelTime=cb;Ha.lastOp=Ha.lastSelOp=wa;Ha.lastOrigin=Ha.lastSelOrigin=ba.origin;Vb||F(x,"historyAdded")}function $c(x,ba){var za=D(ba);za&&za.ranges&&za.equals(x)||ba.push(x)}function ld(x,ba,za,wa){var Ha=ba["spans_"+x.id],cb=0;x.iter(Math.max(x.first,za),Math.min(x.first+x.size,wa),function(nb){nb.markedSpans&&((Ha||=ba["spans_"+x.id]={})[cb]=nb.markedSpans);++cb})}function Ed(x,ba){var za;if(za=ba["spans_"+x.id]){for(var wa=[],Ha=0;Haoa(ba,x),wa!=0>oa(za,x)?(x=ba,ba=za):wa!=0>oa(ba,za)&&(ba=za)),new lg(x,ba)): new lg(za||ba,ba)}function ye(x,ba,za,wa,Ha){null==Ha&&(Ha=x.cm&&(x.cm.display.shift||x.extend));Nd(x,new Sh([oe(x.sel.primary(),ba,za,Ha)],0),wa)}function ie(x,ba,za){for(var wa=[],Ha=x.cm&&(x.cm.display.shift||x.extend),cb=0;cboa(ba.primary().head,x.sel.primary().head)?-1:1);ne(x,ee(x,ba,wa,!0));za&&!1===za.scroll||!x.cm||"nocursor"==x.cm.getOption("readOnly")||cg(x.cm)}function ne(x,ba){ba.equals(x.sel)||(x.sel=ba,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,M(x.cm)),je(x,"cursorActivity",x))}function Qf(x){ne(x,ee(x,x.sel,null,!1))}function ee(x,ba,za,wa){for(var Ha,cb=0;cb=ba.ch:qb.to>ba.ch))){if(Ha&&(F(Vb,"beforeCursorEnter"),Vb.explicitlyCleared))if(cb.markedSpans){--nb;continue}else break;if(Vb.atomic){if(za){nb=Vb.find(0>wa?1:-1);qb=void 0;if(0>wa?Pc:zc)nb=sg(x,nb,-wa,nb&&nb.line==ba.line?cb:null);if(nb&&nb.line==ba.line&&(qb=oa(nb,za))&&(0>wa?0>qb:0wa?-1:1);if(0>wa?zc:Pc)za=sg(x,za,wa,za.line==ba.line?cb:null);return za?Qe(x,za,ba,wa,Ha):null}}}return ba} function rf(x,ba,za,wa,Ha){wa=wa||1;ba=Qe(x,ba,za,wa,Ha)||!Ha&&Qe(x,ba,za,wa,!0)||Qe(x,ba,za,-wa,Ha)||!Ha&&Qe(x,ba,za,-wa,!0);return ba?ba:(x.cantEdit=!0,na(x.first,0))}function sg(x,ba,za,wa){return 0>za&&0==ba.ch?ba.line>x.first?Ua(x,na(ba.line-1)):null:0x.lastLine())){if(ba.from.lineHa&&(ba={from:ba.from,to:na(Ha,Ia(x,Ha).text.length),text:[ba.text[0]],origin:ba.origin});ba.removed=Ya(x,ba.from,ba.to);za||=al(x,ba);x.cm?Qk(x.cm,ba,wa):Zj(x,ba,wa);Le(x,za,jm);x.cantEdit&&rf(x,na(x.firstLine(),0))&&(x.cantEdit=!1)}}function Qk(x,ba,za){var wa=x.doc,Ha=x.display,cb=ba.from,nb=ba.to,qb=!1,Vb=cb.line;x.options.lineWrapping|| (Vb=Ba(Ib(Ia(wa,cb.line))),wa.iter(Vb,nb.line+1,function(zc){if(zc==Ha.maxLine)return qb=!0}));-1Ha.maxLineLength&&(Ha.maxLine=zc,Ha.maxLineLength=Pc,Ha.maxLineChanged=!0,qb=!1)}),qb&&(x.curOp.updateMaxLine=!0));oc(wa,cb.line);ui(x,400);za=ba.text.length-(nb.line-cb.line)-1;ba.full?rg(x):cb.line!=nb.line||1!=ba.text.length||mi(x.doc,ba)?rg(x,cb.line,nb.line+ 1,za):gh(x,cb.line,"text");za=I(x,"changes");if((wa=I(x,"change"))||za)ba={from:cb,to:nb,text:ba.text,removed:ba.removed,origin:ba.origin},wa&&je(x,"change",x,ba),za&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(ba);x.display.selForContextMenu=null}function ug(x,ba,za,wa,Ha){wa||=za;0>oa(wa,za)&&(wa=[wa,za],za=wa[0],wa=wa[1]);"string"==typeof ba&&(ba=x.splitLines(ba));Oe(x,{from:za,to:wa,text:ba,origin:Ha})}function Zl(x,ba,za,wa){za=oa(cb.from,D(wa).to);){var nb=wa.pop();if(0>oa(nb.from,cb.from)){cb.from=nb.from;break}}wa.push(cb)}hg(x,function(){for(var qb=wa.length-1;0<=qb;qb--)ug(x.doc,"",wa[qb].from,wa[qb].to,"+delete");cg(x)})}function Li(x,ba,za){ba=H(x.text,ba+za,za);return 0>ba||ba>x.text.length?null:ba}function rj(x,ba,za){x=Li(x,ba.ch,za);return null==x?null:new na(ba.line,x,0>za?"after":"before")} function xk(x,ba,za,wa,Ha){if(x&&("rtl"==ba.doc.direction&&(Ha=-Ha),x=R(za,ba.doc.direction))){x=0>Ha?D(x):x[0];var cb=0>Ha==(1==x.level)?"after":"before";if(0Ha?za.text.length-1:0;var Vb=ob(ba,nb,qb).top;qb=S(function(zc){return ob(ba,nb,zc).top==Vb},0>Ha==(1==x.level)?x.from:x.to-1,qb);"before"==cb&&(qb=Li(za,qb,1))}else qb=0>Ha?x.to:x.from;return new na(wa,qb,cb)}return new na(wa,0>Ha?za.text.length:0,0>Ha?"before":"after")}function kj(x, ba,za,wa){var Ha=R(ba,x.doc.direction);if(!Ha)return rj(ba,za,wa);za.ch>=ba.text.length?(za.ch=ba.text.length,za.sticky="before"):0>=za.ch&&(za.ch=0,za.sticky="after");var cb=T(Ha,za.ch,za.sticky),nb=Ha[cb];if("ltr"==x.doc.direction&&0==nb.level%2&&(0za.ch:nb.fromwa,Bd=qb(za,wd?1:-1);if(null!=Bd&&(wd?Bd<=nb.to&&Bd<=Pc.end:Bd>=nb.from&&Bd>=Pc.begin))return new na(za.line,Bd,wd?"before":"after")}nb=function(Id,Ce,Mf){for(var Pg=function(pi,Th){return Th?new na(za.line,qb(pi,1),"before"):new na(za.line,pi,"after")};0<=Id&&IdHh&&27==x.keyCode&&(x.returnValue=!1);var ba=x.keyCode;this.display.shift=16==ba||x.shiftKey;var za=bm(this,x);Fl&&(ho=za?ba:null,!za&&88==ba&&!Jr&&(ol?x.metaKey:x.ctrlKey)&&this.replaceSelection("", null,"cut"));th&&!ol&&!za&&46==ba&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut");18!=ba||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||dj(this)}}function dj(x){function ba(wa){18!=wa.keyCode&&wa.altKey||(km(za,"CodeMirror-crosshair"),G(document,"keyup",ba),G(document,"mouseover",ba))}var za=x.display.lineDiv;z(za,"CodeMirror-crosshair");Og(document,"keyup",ba);Og(document,"mouseover",ba)}function bj(x){16==x.keyCode&&(this.doc.sel.shift=!1);O(this,x)} function Ul(x){if(!(x.target&&x.target!=this.display.input.getField()||ub(this.display,x)||O(this,x)||x.ctrlKey&&!x.altKey||ol&&x.metaKey)){var ba=x.keyCode,za=x.charCode;if(Fl&&ba==ho)ho=null,U(x);else if(!Fl||x.which&&!(10>x.which)||!bm(this,x))if(ba=String.fromCharCode(null==za?ba:za),"\b"!=ba&&!yn(this,x,ba))this.display.input.onKeyPress(x)}}function nm(x,ba){var za=+new Date;if(bh&&bh.compare(za,x,ba))return tj=bh=null,"triple";if(tj&&tj.compare(za,x,ba))return bh=new Sp(za,x,ba),tj=null,"double"; tj=new Sp(za,x,ba);bh=null;return"single"}function Hm(x){var ba=this.display;if(!(O(this,x)||ba.activeTouch&&ba.input.supportsTouch()))if(ba.input.ensurePolled(),ba.shift=x.shiftKey,ub(ba,x))Gj||(ba.scroller.draggable=!1,setTimeout(function(){return ba.scroller.draggable=!0},100));else if(!sb(this,x,"gutterClick",!0)){var za=Df(this,x),wa=fa(x),Ha=za?nm(za,wa):"single";P(this).defaultView.focus();1==wa&&this.state.selectingText&&this.state.selectingText(x);if(!za||!co(this,wa,za,Ha,x))if(1==wa)za? gp(this,za,Ha,x):(x.target||x.srcElement)==ba.scroller&&U(x);else if(2==wa)za&&ye(this.doc,za),setTimeout(function(){return ba.input.focus()},20);else if(3==wa)if(Io)this.display.input.onContextMenu(x);else Gi(this)}}function co(x,ba,za,wa,Ha){var cb="Click";"double"==wa?cb="Double"+cb:"triple"==wa&&(cb="Triple"+cb);return ik(x,ek((1==ba?"Left":2==ba?"Middle":"Right")+cb,Ha),Ha,function(nb){"string"==typeof nb&&(nb=ip[nb]);if(!nb)return!1;var qb=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),qb= nb(x,za)!=Bn}finally{x.state.suppressEdits=!1}return qb})}function gp(x,ba,za,wa){tg?setTimeout(g(lj,x),0):x.curOp.focus=A(P(x));var Ha=x.getOption("configureMouse");Ha=Ha?Ha(x,za,wa):{};null==Ha.unit&&(Ha.unit=(Xs?wa.shiftKey&&wa.metaKey:wa.altKey)?"rectangle":"single"==za?"char":"double"==za?"word":"line");if(null==Ha.extend||x.doc.extend)Ha.extend=x.doc.extend||wa.shiftKey;null==Ha.addNew&&(Ha.addNew=ol?wa.metaKey:wa.ctrlKey);null==Ha.moveOnDrag&&(Ha.moveOnDrag=!(ol?wa.altKey:wa.ctrlKey));var cb= x.doc.sel,nb;x.options.dragDrop&&ep&&!x.isReadOnly()&&"single"==za&&-1<(nb=cb.contains(ba))&&(0>oa((nb=cb.ranges[nb]).from(),ba)||0ba.xRel)?Sb(x,wa,ba,Ha):$b(x,wa,ba,Ha)}function Sb(x,ba,za,wa){var Ha=x.display,cb=!1,nb=qf(x,function(zc){Gj&&(Ha.scroller.draggable=!1);x.state.draggingText=!1;x.state.delayingBlurEvent&&(x.hasFocus()?x.state.delayingBlurEvent=!1:Gi(x));G(Ha.wrapper.ownerDocument,"mouseup",nb);G(Ha.wrapper.ownerDocument,"mousemove",qb);G(Ha.scroller,"dragstart", Vb);G(Ha.scroller,"drop",nb);cb||(U(zc),wa.addNew||ye(x.doc,za,null,null,wa.extend),Gj&&!pj||tg&&9==Hh?setTimeout(function(){Ha.wrapper.ownerDocument.body.focus({preventScroll:!0});Ha.input.focus()},20):Ha.input.focus())}),qb=function(zc){cb=cb||10<=Math.abs(ba.clientX-zc.clientX)+Math.abs(ba.clientY-zc.clientY)},Vb=function(){return cb=!0};Gj&&(Ha.scroller.draggable=!0);x.state.draggingText=nb;nb.copy=!wa.moveOnDrag;Og(Ha.wrapper.ownerDocument,"mouseup",nb);Og(Ha.wrapper.ownerDocument,"mousemove", qb);Og(Ha.scroller,"dragstart",Vb);Og(Ha.scroller,"drop",nb);x.state.delayingBlurEvent=!0;setTimeout(function(){return Ha.input.focus()},20);Ha.scroller.dragDrop&&Ha.scroller.dragDrop()}function Ea(x,ba,za){if("char"==za)return new lg(ba,ba);if("word"==za)return x.findWordAt(ba);if("line"==za)return new lg(na(ba.line,0),Ua(x.doc,na(ba.line+1,0)));x=za(x,ba);return new lg(x.from,x.to)}function $b(x,ba,za,wa){function Ha(Ag){if(0!=oa(Id,Ag))if(Id=Ag,"rectangle"==wa.unit){var yi=[],pi=x.options.tabSize, Th=b(Ia(Vb,za.line).text,za.ch,pi),zi=b(Ia(Vb,Ag.line).text,Ag.ch,pi),zh=Math.min(Th,zi);Th=Math.max(Th,zi);zi=Math.min(za.line,Ag.line);for(var Uh=Math.min(x.lastLine(),Math.max(za.line,Ag.line));zi<=Uh;zi++){var Wh=Ia(Vb,zi).text,qi=m(Wh,zh,pi);zh==Th?yi.push(new lg(na(zi,qi),na(zi,qi))):Wh.length>qi&&yi.push(new lg(na(zi,qi),na(zi,m(Wh,Th,pi))))}yi.length||yi.push(new lg(za,za));Nd(Vb,ah(x,zc.ranges.slice(0,wd).concat(yi),wd),{origin:"*mouse",scroll:!1});x.scrollIntoView(Ag)}else yi=Bd,zh=Ea(x, Ag,wa.unit),Ag=yi.anchor,0=Th.to||pi.lineCe.bottom?20:0;zi&&setTimeout(qf(x,function(){Mf== yi&&(qb.scroller.scrollTop+=zi,cb(Ag))}),50)}}function nb(Ag){x.state.selectingText=!1;Mf=Infinity;Ag&&(U(Ag),qb.input.focus());G(qb.wrapper.ownerDocument,"mousemove",Pg);G(qb.wrapper.ownerDocument,"mouseup",Vj);Vb.history.lastSelOrigin=null}tg&&Gi(x);var qb=x.display,Vb=x.doc;U(ba);var zc=Vb.sel,Pc=zc.ranges;if(wa.addNew&&!wa.extend){var wd=Vb.sel.contains(za);var Bd=-1cb:0=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;wa&&U(ba);wa=x.display;var nb=wa.lineDiv.getBoundingClientRect(); if(cb>nb.bottom||!I(x,za))return aa(ba);cb-=nb.top-wa.viewOffset;for(nb=0;nb=Ha)return Ha=la(x.doc,cb),F(x,za,x,Ha,x.display.gutterSpecs[nb].className,ba),aa(ba)}}function cc(x,ba){var za;(za=ub(x.display,ba))||(za=I(x,"gutterContextMenu")?sb(x,ba,"gutterContextMenu",!1):!1);if(!za&&!O(x,ba,"contextmenu")&&!Io)x.display.input.onContextMenu(ba)}function Qb(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g, "")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-");td(x)}function zb(x,ba,za){!ba!=!(za&&za!=dm)&&(za=x.display.dragFunctions,ba=ba?Og:G,ba(x.display.scroller,"dragstart",za.start),ba(x.display.scroller,"dragenter",za.enter),ba(x.display.scroller,"dragover",za.over),ba(x.display.scroller,"dragleave",za.leave),ba(x.display.scroller,"drop",za.drop))}function xb(x){x.options.lineWrapping?(z(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(km(x.display.wrapper, "CodeMirror-wrap"),fc(x));kf(x);rg(x);td(x);setTimeout(function(){return Ch(x)},100)}function Zb(x,ba){var za=this;if(!(this instanceof Zb))return new Zb(x,ba);this.options=ba=ba?h(ba):{};h(io,ba,!1);var wa=ba.value;"string"==typeof wa?wa=new Jj(wa,ba.mode,null,ba.lineSeparator,ba.direction):ba.mode&&(wa.modeOption=ba.mode);this.doc=wa;var Ha=new Zb.inputStyles[ba.inputStyle](this);x=this.display=new Oi(x,wa,Ha,ba);x.wrapper.CodeMirror=this;Qb(this);ba.lineWrapping&&(this.display.wrapper.className+= " CodeMirror-wrap");$k(this);this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $m,keySeq:null,specialChars:null};ba.autofocus&&!wi&&x.input.focus();tg&&11>Hh&&setTimeout(function(){return za.display.input.reset(!0)},20);qc(this);Qp||(am(),Qp=!0);Ej(this);this.curOp.forceUpdate=!0;Dh(this,wa);ba.autofocus&&!wi||this.hasFocus()?setTimeout(function(){za.hasFocus()&& !za.state.focused&&sh(za)},20):Wl(this);for(var cb in em)if(em.hasOwnProperty(cb))em[cb](this,ba[cb],dm);nl(this);ba.finishInit&&ba.finishInit(this);for(wa=0;waHh?Og(wa.scroller,"dblclick",qf(x,function(qb){if(!O(x,qb)){var Vb=Df(x,qb);!Vb||sb(x,qb,"gutterClick",!0)||ub(x.display,qb)||(U(qb),qb=x.findWordAt(Vb),ye(x.doc,qb.anchor,qb.head))}})):Og(wa.scroller,"dblclick",function(qb){return O(x,qb)||U(qb)});Og(wa.scroller,"contextmenu",function(qb){return cc(x,qb)});Og(wa.input.getField(),"contextmenu",function(qb){wa.scroller.contains(qb.target)|| cc(x,qb)});var Ha,cb={end:0};Og(wa.scroller,"touchstart",function(qb){var Vb;if(Vb=!O(x,qb))1!=qb.touches.length?Vb=!1:(Vb=qb.touches[0],Vb=1>=Vb.radiusX&&1>=Vb.radiusY),Vb=!Vb;Vb&&!sb(x,qb,"gutterClick",!0)&&(wa.input.ensurePolled(),clearTimeout(Ha),Vb=+new Date,wa.activeTouch={start:Vb,moved:!1,prev:300>=Vb-cb.end?cb:null},1==qb.touches.length&&(wa.activeTouch.left=qb.touches[0].pageX,wa.activeTouch.top=qb.touches[0].pageY))});Og(wa.scroller,"touchmove",function(){wa.activeTouch&&(wa.activeTouch.moved= !0)});Og(wa.scroller,"touchend",function(qb){var Vb=wa.activeTouch;if(Vb&&!ub(wa,qb)&&null!=Vb.left&&!Vb.moved&&300>new Date-Vb.start){var zc=x.coordsChar(wa.activeTouch,"page");Vb=!Vb.prev||za(Vb,Vb.prev)?new lg(zc,zc):!Vb.prev.prev||za(Vb,Vb.prev.prev)?x.findWordAt(zc):new lg(na(zc.line,0),Ua(x.doc,na(zc.line+1,0)));x.setSelection(Vb.anchor,Vb.head);x.focus();U(qb)}ba()});Og(wa.scroller,"touchcancel",ba);Og(wa.scroller,"scroll",function(){wa.scroller.clientHeight&&(kk(x,wa.scroller.scrollTop),mj(x, wa.scroller.scrollLeft,!0),F(x,"scroll",x))});Og(wa.scroller,"mousewheel",function(qb){return Nk(x,qb)});Og(wa.scroller,"DOMMouseScroll",function(qb){return Nk(x,qb)});Og(wa.wrapper,"scroll",function(){return wa.wrapper.scrollTop=wa.wrapper.scrollLeft=0});wa.dragFunctions={enter:function(qb){O(x,qb)||W(qb)},over:function(qb){if(!O(x,qb)){var Vb=Df(x,qb);if(Vb){var zc=document.createDocumentFragment();Rj(x,Vb,zc);x.display.dragCursor||(x.display.dragCursor=q("div",null,"CodeMirror-cursors CodeMirror-dragcursors"), x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv));y(x.display.dragCursor,zc)}W(qb)}},start:function(qb){if(tg&&(!x.state.draggingText||100>+new Date-vh))W(qb);else if(!O(x,qb)&&!ub(x.display,qb)&&(qb.dataTransfer.setData("Text",x.getSelection()),qb.dataTransfer.effectAllowed="copyMove",qb.dataTransfer.setDragImage&&!pj)){var Vb=q("img",null,null,"position: fixed; left: 0; top: 0;");Vb.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d"; Fl&&(Vb.width=Vb.height=1,x.display.wrapper.appendChild(Vb),Vb._top=Vb.offsetTop);qb.dataTransfer.setDragImage(Vb,0,0);Fl&&Vb.parentNode.removeChild(Vb)}},drop:qf(x,$l),leave:function(qb){O(x,qb)||Ck(x)}};var nb=wa.input.getField();Og(nb,"keyup",function(qb){return bj.call(x,qb)});Og(nb,"keydown",qf(x,yk));Og(nb,"keypress",qf(x,Ul));Og(nb,"focus",function(qb){return sh(x,qb)});Og(nb,"blur",function(qb){return Wl(x,qb)})}function Dc(x,ba,za,wa){var Ha=x.doc,cb;null==za&&(za="add");"smart"==za&&(Ha.mode.indent? cb=Wa(x,ba).state:za="prev");var nb=x.options.tabSize,qb=Ia(Ha,ba),Vb=b(qb.text,null,nb);qb.stateAfter&&(qb.stateAfter=null);var zc=qb.text.match(/^\s*/)[0];if(!wa&&!/\S/.test(qb.text)){var Pc=0;za="not"}else if("smart"==za&&(Pc=Ha.mode.indent(cb,qb.text.slice(zc.length),qb.text),Pc==Bn||150Ha.first?b(Ia(Ha,ba-1).text,null,nb):0:"add"==za?Pc=Vb+x.options.indentUnit:"subtract"==za?Pc=Vb-x.options.indentUnit:"number"==typeof za&&(Pc=Vb+za);Pc=Math.max(0, Pc);za="";wa=0;if(x.options.indentWithTabs)for(x=Math.floor(Pc/nb);x;--x)wa+=nb,za+="\t";wanb,Vb=bn(ba),zc=null; if(qb&&1nb?"cut":"+input")};Oe(x.doc,Bd);je(x,"inputRead",x,Bd)}ba&&!qb&&nd(x,ba);cg(x);2>x.curOp.updateInput&&(x.curOp.updateInput=Pc);x.curOp.typing=!0;x.state.pasteIncoming=x.state.cutIncoming=-1}function ed(x,ba){var za=x.clipboardData&&x.clipboardData.getData("Text");if(za)return x.preventDefault(),ba.isReadOnly()|| ba.options.disableInput||!ba.hasFocus()||hg(ba,function(){return Yc(ba,za,0,null,"paste")}),!0}function nd(x,ba){if(x.options.electricChars&&x.options.smartIndent)for(var za=x.doc.sel,wa=za.ranges.length-1;0<=wa;wa--){var Ha=za.ranges[wa];if(!(100Pg:56320<=Pg&&57343>Pg)?2:1))),-za)}else Pg=Ha?kj(x.cm,Vb,ba,za):rj(Vb,ba,za);if(null==Pg){if(Mf=!Mf)Mf=ba.line+zc,Mf=x.first+x.size?Mf=!1:(ba=new na(Mf,ba.ch,ba.sticky),Mf=Vb=Ia(x,Mf));if(Mf)ba=xk(Ha,x.cm,Vb,ba.line,zc);else return!1}else ba=Pg;return!0}var nb=ba,qb=za,Vb=Ia(x,ba.line),zc=Ha&&"rtl"==x.direction?-za:za;if("char"==wa||"codepoint"==wa)cb();else if("column"==wa)cb(!0);else if("word"==wa||"group"==wa)for(var Pc=null,wd="group"==wa,Bd=x.cm&& x.cm.getHelper(ba,"wordChars"),Id=!0;!(0>za)||cb(!Id);Id=!1){var Ce=Vb.text.charAt(ba.ch)||"\n";Ce=B(Ce,Bd)?"w":wd&&"\n"==Ce?"n":!wd||/\s/.test(Ce)?null:"p";!wd||Id||Ce||(Ce="s");if(Pc&&Pc!=Ce){0>za&&(za=1,cb(),ba.sticky="after");break}Ce&&(Pc=Ce);if(0za?0>=nb:nb>=Ha.height){ba.hitSide=!0;break}nb+=5*za}return ba}function pg(x,ba){var za=kb(x,ba.line);if(!za||za.hidden)return null;var wa=Ia(x.doc,ba.line);za=Ue(za,wa,ba.line);x=R(wa,x.doc.direction);wa="left";x&&(wa=T(x,ba.ch)%2?"right":"left");ba=Ub(za.map,ba.ch,wa);ba.offset="right"==ba.collapse?ba.end:ba.start;return ba}function Gf(x){for(;x;x= x.parentNode)if(/CodeMirror-gutter-wrapper/.test(x.className))return!0;return!1}function Tf(x,ba){ba&&(x.bad=!0);return x}function nf(x,ba,za,wa,Ha){function cb(Id){return function(Ce){return Ce.id==Id}}function nb(){Pc&&(zc+=wd,Bd&&(zc+=wd),Pc=Bd=!1)}function qb(Id){Id&&(nb(),zc+=Id)}function Vb(Id){if(1==Id.nodeType){var Ce=Id.getAttribute("cm-text");if(Ce)qb(Ce);else{Ce=Id.getAttribute("cm-marker");var Mf;if(Ce)Id=x.findMarks(na(wa,0),na(Ha+1,0),cb(+Ce)),Id.length&&(Mf=Id[0].find(0))&&qb(Ya(x.doc, Mf.from,Mf.to).join(wd));else if("false"!=Id.getAttribute("contenteditable")&&(Mf=/^(pre|div|p|li|table|br)$/i.test(Id.nodeName),/^br$/i.test(Id.nodeName)||0!=Id.textContent.length)){Mf&&nb();for(Ce=0;CeId?Vb.map:zc[Id],Mf=0;MfId?x.line:x.rest[Id]);Id=Ce[Mf]+Bd;if(0>Bd||Pg!=Pc)Id=Ce[Mf+(Bd?1:0)];return na(wd,Id)}}}var Ha=x.text.firstChild,cb=!1;if(!ba||!u(Ha,ba))return Tf(na(Ba(x.line),0),!0);if(ba==Ha&&(cb=!0,ba=Ha.childNodes[za],za=0,!ba))return za=x.rest?D(x.rest):x.line,Tf(na(Ba(za),za.text.length),cb);var nb=3==ba.nodeType?ba:null,qb=ba;nb||1!=ba.childNodes.length||3!=ba.firstChild.nodeType||(nb=ba.firstChild,za&&(za=nb.nodeValue.length));for(;qb.parentNode!=Ha;)qb=qb.parentNode; var Vb=x.measure,zc=Vb.maps;if(ba=wa(nb,qb,za))return Tf(ba,cb);Ha=qb.nextSibling;for(nb=nb?nb.nodeValue.length-za:0;Ha;Ha=Ha.nextSibling){if(ba=wa(Ha,Ha.firstChild,0))return Tf(na(ba.line,ba.ch-nb),cb);nb+=Ha.textContent.length}for(qb=qb.previousSibling;qb;qb=qb.previousSibling){if(ba=wa(qb,qb.firstChild,-1))return Tf(na(ba.line,ba.ch+za),cb);za+=qb.textContent.length}}var og=navigator.userAgent,hf=navigator.platform,th=/gecko\/\d/i.test(og),xh=/MSIE \d/.test(og),Qh=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(og), Hg=/Edge\/(\d+)/.exec(og),tg=xh||Qh||Hg,Hh=tg&&(xh?document.documentMode||6:+(Hg||Qh)[1]),Gj=!Hg&&/WebKit\//.test(og),zn=Gj&&/Qt\/\d+\.\d+/.test(og),Xl=!Hg&&/Chrome\/(\d+)/.exec(og),yo=Xl&&+Xl[1],Fl=/Opera\//.test(og),pj=/Apple Computer/.test(navigator.vendor),zo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(og),$o=/PhantomJS/.test(og),Yn=pj&&(/Mobile\/\w+/.test(og)||2dn)),Io=th||tg&&9<=Hh,km=function(x,ba){var za=x.className;if(ba=w(ba).exec(za)){var wa=za.slice(ba.index+ba[0].length);x.className=za.slice(0,ba.index)+(wa?ba[1]+wa:"")}};var ei=document.createRange?function(x,ba,za,wa){var Ha=document.createRange();Ha.setEnd(wa||x,za);Ha.setStart(x,ba);return Ha}:function(x,ba,za){var wa=document.body.createTextRange(); try{wa.moveToElementText(x.parentNode)}catch(Ha){return wa}wa.collapse(!0);wa.moveEnd("character",za);wa.moveStart("character",ba);return wa};var dp=function(x){x.select()};Yn?dp=function(x){x.selectionStart=0;x.selectionEnd=x.value.length}:tg&&(dp=function(x){try{x.select()}catch(ba){}});var $m=function(){this.f=this.id=null;this.time=0;this.handler=g(this.onTimeout,this)};$m.prototype.onTimeout=function(x){x.id=0;x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)};$m.prototype.set=function(x, ba){this.f=ba;ba=+new Date+x;if(!this.id||ba=Ce?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(Ce): 1424<=Ce&&1524>=Ce?"R":1536<=Ce&&1785>=Ce?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(Ce-1536):1774<=Ce&&2220>=Ce?"r":8192<=Ce&&8203>=Ce?"w":8204==Ce?"b":"L";Id.call(Bd,Ce)}wd=0;for(Bd=Vb;wdHh)return!1;var x=q("div");return"draggable"in x||"dragDrop"in x}(),fp,In,bn=3!="\n\nb".split(/\n/).length?function(x){for(var ba=0,za=[],wa=x.length;ba<=wa;){var Ha=x.indexOf("\n",ba);-1==Ha&&(Ha=x.length);var cb=x.slice(ba,"\r"==x.charAt(Ha-1)?Ha-1:Ha),nb=cb.indexOf("\r");-1!=nb?(za.push(cb.slice(0,nb)),ba+=nb+1):(za.push(cb),ba=Ha+1)}return za}:function(x){return x.split(/\r\n?|\n/)},Pp=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(ba){return!1}}:function(x){try{var ba= x.ownerDocument.selection.createRange()}catch(za){}return ba&&ba.parentElement()==x?0!=ba.compareEndPoints("StartToEnd",ba):!1},Jr=function(){var x=q("div");if("oncopy"in x)return!0;x.setAttribute("oncopy","return;");return"function"==typeof x.oncopy}(),bo=null,Cq={},Dm={},Cm={},Wi=function(x,ba,za){this.pos=this.start=0;this.string=x;this.tabSize=ba||8;this.lineStart=this.lastColumnPos=this.lastColumnValue=0;this.lineOracle=za};Wi.prototype.eol=function(){return this.pos>=this.string.length};Wi.prototype.sol= function(){return this.pos==this.lineStart};Wi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};Wi.prototype.next=function(){if(this.posba};Wi.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos; return this.pos>x};Wi.prototype.skipToEnd=function(){this.pos=this.string.length};Wi.prototype.skipTo=function(x){x=this.string.indexOf(x,this.pos);if(-1this.maxLookAhead&&(this.maxLookAhead=x);return ba};lm.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var ba=this.baseTokens[this.baseTokenPos+1];return{type:ba&&ba.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}};lm.prototype.nextLine=function(){this.line++;0Hh&&(this.horiz.style.minHeight= this.vert.style.minWidth="18px")};Rf.prototype.update=function(x){var ba=x.scrollWidth>x.clientWidth+1,za=x.scrollHeight>x.clientHeight+1,wa=x.nativeBarWidth;za?(this.vert.style.display="block",this.vert.style.bottom=ba?wa+"px":"0",this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+(x.viewHeight-(ba?wa:0)))+"px"):(this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0");ba?(this.horiz.style.display="block",this.horiz.style.right=za?wa+"px":"0", this.horiz.style.left=x.barLeft+"px",this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+(x.viewWidth-x.barLeft-(za?wa:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0");!this.checkedZeroWidth&&0=oa(x,wa.to()))return za}return-1};var lg=function(x,ba){this.anchor=x;this.head=ba};lg.prototype.from=function(){return Ma(this.anchor, this.head)};lg.prototype.to=function(){return Va(this.anchor,this.head)};lg.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};Il.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,ba){for(var za=x,wa=x+ba;zathis.size-ba&&(1=this.children.length)){var x=this;do{var ba=x.children.splice(x.children.length-5,5);ba=new sl(ba);if(x.parent){x.size-=ba.size;x.height-=ba.height;var za=l(x.parent.children,x);x.parent.children.splice(za+1,0,ba)}else za=new sl(x.children), za.parent=x,x.children=[za,ba],x=za;ba.parent=x.parent}while(10x.display.maxLineLength&&(x.display.maxLine=cb,x.display.maxLineLength=nb,x.display.maxLineChanged= !0);null!=za&&x&&this.collapsed&&rg(x,za,wa+1);this.lines.length=0;this.explicitlyCleared=!0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Qf(x.doc));x&&je(x,"markerCleared",x,this,za,wa);ba&&mg(x);this.parent&&this.parent.clear()}};fk.prototype.find=function(x,ba){null==x&&"bookmark"==this.type&&(x=1);for(var za,wa,Ha=0;Haoa(qb.head,qb.anchor),x[cb]=new lg(qb?Vb:nb,qb?nb:Vb)):x[cb]=new lg(nb,nb)}x= new Sh(x,this.sel.primIndex)}ba=x;for(x=wa.length-1;0<=x;x--)Oe(this,wa[x]);ba?Se(this,ba):this.cm&&cg(this.cm)}),undo:Zh(function(){vg(this,"undo")}),redo:Zh(function(){vg(this,"redo")}),undoSelection:Zh(function(){vg(this,"undo",!0)}),redoSelection:Zh(function(){vg(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,ba=0,za=0,wa=0;wa=x.ch)&&ba.push(Ha.marker.parent||Ha.marker)}return ba},findMarks:function(x,ba,za){x=Ua(this,x);ba=Ua(this,ba);var wa=[],Ha=x.line;this.iter(x.line,ba.line+1,function(cb){if(cb=cb.markedSpans)for(var nb=0;nb=qb.to||null==qb.from&&Ha!=x.line||null!=qb.from&&Ha==ba.line&&qb.from>=ba.ch||za&&!za(qb.marker)||wa.push(qb.marker.parent||qb.marker)}++Ha});return wa}, getAllMarks:function(){var x=[];this.iter(function(ba){if(ba=ba.markedSpans)for(var za=0;zax)return ba=x,!0;x-=Ha;++za});return Ua(this,na(za,ba))},indexFromPos:function(x){x=Ua(this,x);var ba=x.ch;if(x.linex.ch)return 0;var za=this.lineSeparator().length;this.iter(this.first,x.line,function(wa){ba+= wa.text.length+za});return ba},copy:function(x){var ba=new Jj(Fa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);ba.scrollTop=this.scrollTop;ba.scrollLeft=this.scrollLeft;ba.sel=this.sel;ba.extend=!1;x&&(ba.history.undoDepth=this.history.undoDepth,ba.setHistory(this.getHistory()));return ba},linkedDoc:function(x){x||={};var ba=this.first,za=this.first+this.size;null!=x.from&&x.from>ba&&(ba=x.from);null!=x.to&&x.tosj;sj++)kh[sj+48]=kh[sj+96]=String(sj);for(var Vh=65;90>=Vh;Vh++)kh[Vh]=String.fromCharCode(Vh);for(var hp=1;12>=hp;hp++)kh[hp+111]=kh[hp+63235]="F"+hp;var Jo={basic:{Left:"goCharLeft", Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},pcDefault:{"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp", "Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},emacsy:{"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft", "Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},macDefault:{"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight", "Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic", "emacsy"]}};Jo["default"]=ol?Jo.macDefault:Jo.pcDefault;var ip={selectAll:Jg,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),jm)},killLine:function(x){return Ci(x,function(ba){if(ba.empty()){var za=Ia(x.doc,ba.head.line).text.length;return ba.head.ch==za&&ba.head.linex.doc.first){var nb=Ia(x.doc,Ha.line-1).text;nb&&(Ha=new na(Ha.line,1),x.replaceRange(cb.charAt(0)+x.doc.lineSeparator()+nb.charAt(nb.length-1),na(Ha.line-1,nb.length-1),Ha,"+transpose"))}za.push(new lg(Ha,Ha))}x.setSelections(za)})},newlineAndIndent:function(x){return hg(x,function(){for(var ba=x.listSelections(),za=ba.length-1;0<=za;za--)x.replaceRange(x.doc.lineSeparator(),ba[za].anchor,ba[za].head,"+input");ba=x.listSelections();for(za=0;za< ba.length;za++)x.indentLine(ba[za].from().line,null,!0);cg(x)})},openLine:function(x){return x.replaceSelection("\n","start")},toggleOverwrite:function(x){return x.toggleOverwrite()}},Rp=new $m,ho=null,Sp=function(x,ba,za){this.time=x;this.pos=ba;this.button=za};Sp.prototype.compare=function(x,ba,za){return this.time+400>x&&0==oa(ba,this.pos)&&za==this.button};var tj,bh,dm={toString:function(){return"CodeMirror.Init"}},io={},em={};Zb.defaults=io;Zb.optionHandlers=em;var Ko=[];Zb.defineInitHook=function(x){return Ko.push(x)}; var hj=null,oi=function(x){this.cm=x;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new $m;this.composing=null;this.gracePeriod=!1;this.readDOMTimeout=null};oi.prototype.init=function(x){function ba(qb){for(qb=qb.target;qb;qb=qb.parentNode){if(qb==nb)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(qb.className))break}return!1}function za(qb){if(ba(qb)&&!O(cb,qb)){if(cb.somethingSelected())hj={lineWise:!1,text:cb.getSelections()},"cut"==qb.type&& cb.replaceSelection("",null,"cut");else if(cb.options.lineWiseCopyCut){var Vb=Rd(cb);hj={lineWise:!0,text:Vb.text};"cut"==qb.type&&cb.operation(function(){cb.setSelections(Vb.ranges,0,jm);cb.replaceSelection("",null,"cut")})}else return;if(qb.clipboardData){qb.clipboardData.clearData();var zc=hj.text.join("\n");qb.clipboardData.setData("Text",zc);if(qb.clipboardData.getData("Text")==zc){qb.preventDefault();return}}var Pc=Yd();qb=Pc.firstChild;ce(qb);cb.display.lineSpace.insertBefore(Pc,cb.display.lineSpace.firstChild); qb.value=hj.text.join("\n");var wd=A(nb.ownerDocument);dp(qb);setTimeout(function(){cb.display.lineSpace.removeChild(Pc);wd.focus();wd==nb&&Ha.showPrimarySelection()},50)}}var wa=this,Ha=this,cb=Ha.cm,nb=Ha.div=x.lineDiv;nb.contentEditable=!0;ce(nb,cb.options.spellcheck,cb.options.autocorrect,cb.options.autocapitalize);Og(nb,"paste",function(qb){!ba(qb)||O(cb,qb)||ed(qb,cb)||11>=Hh&&setTimeout(qf(cb,function(){return wa.updateFromDOM()}),20)});Og(nb,"compositionstart",function(qb){wa.composing={data:qb.data, done:!1}});Og(nb,"compositionupdate",function(qb){wa.composing||(wa.composing={data:qb.data,done:!1})});Og(nb,"compositionend",function(qb){wa.composing&&(qb.data!=wa.composing.data&&wa.readFromDOMSoon(),wa.composing.done=!0)});Og(nb,"touchstart",function(){return Ha.forceCompositionEnd()});Og(nb,"input",function(){wa.composing||wa.readFromDOMSoon()});Og(nb,"copy",za);Og(nb,"cut",za)};oi.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")}; oi.prototype.prepareSelection=function(){var x=hi(this.cm,!1);x.focus=A(this.div.ownerDocument)==this.div;return x};oi.prototype.showSelection=function(x,ba){x&&this.cm.display.view.length&&((x.focus||ba)&&this.showPrimarySelection(),this.showMultipleSelections(x))};oi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()};oi.prototype.showPrimarySelection=function(){var x=this.getSelection(),ba=this.cm,za=ba.doc.sel.primary(),wa=za.from();za=za.to();if(ba.display.viewTo== ba.display.viewFrom||wa.line>=ba.display.viewTo||za.line=ba.display.viewFrom&&pg(ba,wa)||{node:Ha[0].measure.map[2],offset:0},za=za.linex.firstLine()&&(wa=na(wa.line-1,Ia(x.doc,wa.line-1).length));Ha.ch==Ia(x.doc,Ha.line).text.length&&Ha.lineba.viewTo-1)return!1;var cb;wa.line==ba.viewFrom||0==(cb=tf(x,wa.line))?(za=Ba(ba.view[0].line),cb=ba.view[0].node): (za=Ba(ba.view[cb].line),cb=ba.view[cb-1].node.nextSibling);var nb=tf(x,Ha.line);nb==ba.view.length-1?(Ha=ba.viewTo-1,ba=ba.lineDiv.lastChild):(Ha=Ba(ba.view[nb+1].line)-1,ba=ba.view[nb+1].node.previousSibling);if(!cb)return!1;ba=x.doc.splitLines(nf(x,cb,ba,za,Ha));for(cb=Ya(x.doc,na(za,0),na(Ha,Ia(x.doc,Ha).text.length));1wa.ch&&Vb.charCodeAt(Vb.length-nb-1)==zc.charCodeAt(zc.length-nb-1);)qb--,nb++;ba[ba.length-1]=Vb.slice(0,Vb.length-nb).replace(/^\u200b+/,"");ba[0]=ba[0].slice(qb).replace(/\u200b+$/,"");wa=na(za,qb);za=na(Ha,cb.length? D(cb).length-nb:0);if(1Hh&&cb.scrollbars.setScrollTop(cb.scroller.scrollTop=Vb),null!=nb.selectionStart)){(!tg||tg&&9>Hh)&&ba();var Id=0,Ce=function(){cb.selForContextMenu==Ha.doc.sel&&0==nb.selectionStart&&0Id++?cb.detectingSelectAll=setTimeout(Ce,500):(cb.selForContextMenu= null,cb.input.reset())};cb.detectingSelectAll=setTimeout(Ce,200)}}var wa=this,Ha=wa.cm,cb=Ha.display,nb=wa.textarea;wa.contextMenuPending&&wa.contextMenuPending();var qb=Df(Ha,x),Vb=cb.scroller.scrollTop;if(qb&&!Fl){Ha.options.resetSelectionOnContextMenu&&-1==Ha.doc.sel.contains(qb)&&qf(Ha,Nd)(Ha.doc,ai(qb),jm);var zc=nb.style.cssText,Pc=wa.wrapper.style.cssText;qb=wa.wrapper.offsetParent.getBoundingClientRect();wa.wrapper.style.cssText="position: static";nb.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+ (x.clientY-qb.top-5)+"px; left: "+(x.clientX-qb.left-5)+"px;\n z-index: 1000; background: "+(tg?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity\x3d5);";if(Gj)var wd=nb.ownerDocument.defaultView.scrollY;cb.input.focus();Gj&&nb.ownerDocument.defaultView.scrollTo(null,wd);cb.input.reset();Ha.somethingSelected()||(nb.value=wa.prevInput=" ");wa.contextMenuPending=za;cb.selForContextMenu=Ha.doc.sel; clearTimeout(cb.detectingSelectAll);tg&&9<=Hh&&ba();if(Io){W(x);var Bd=function(){G(window,"mouseup",Bd);setTimeout(za,20)};Og(window,"mouseup",Bd)}else setTimeout(za,50)}};ii.prototype.readOnlyChanged=function(x){x||this.reset();this.textarea.disabled="nocursor"==x;this.textarea.readOnly=!!x};ii.prototype.setUneditable=function(){};ii.prototype.needsContentAttribute=!1;(function(x){function ba(wa,Ha,cb,nb){x.defaults[wa]=Ha;cb&&(za[wa]=nb?function(qb,Vb,zc){zc!=dm&&cb(qb,Vb,zc)}:cb)}var za=x.optionHandlers; x.defineOption=ba;x.Init=dm;ba("value","",function(wa,Ha){return wa.setValue(Ha)},!0);ba("mode",null,function(wa,Ha){wa.doc.modeOption=Ha;bl(wa)},!0);ba("indentUnit",2,bl,!0);ba("indentWithTabs",!1);ba("smartIndent",!0);ba("tabSize",4,function(wa){Di(wa);td(wa);rg(wa)},!0);ba("lineSeparator",null,function(wa,Ha){if(wa.doc.lineSep=Ha){var cb=[],nb=wa.doc.first;wa.doc.iter(function(Vb){for(var zc=0;;){var Pc=Vb.text.indexOf(Ha,zc);if(-1==Pc)break;zc=Pc+Ha.length;cb.push(na(nb,Pc))}nb++});for(var qb= cb.length-1;0<=qb;qb--)ug(wa.doc,Ha,cb[qb],na(cb[qb].line,cb[qb].ch+Ha.length))}});ba("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(wa,Ha,cb){wa.state.specialChars=new RegExp(Ha.source+(Ha.test("\t")?"":"|\t"),"g");cb!=dm&&wa.refresh()});ba("specialCharPlaceholder",ic,function(wa){return wa.refresh()},!0);ba("electricChars",!0);ba("inputStyle",wi?"contenteditable":"textarea",function(){throw Error("inputStyle can not (yet) be changed in a running editor"); },!0);ba("spellcheck",!1,function(wa,Ha){return wa.getInputField().spellcheck=Ha},!0);ba("autocorrect",!1,function(wa,Ha){return wa.getInputField().autocorrect=Ha},!0);ba("autocapitalize",!1,function(wa,Ha){return wa.getInputField().autocapitalize=Ha},!0);ba("rtlMoveVisually",!Yl);ba("wholeLineUpdateBefore",!0);ba("theme","default",function(wa){Qb(wa);Fj(wa)},!0);ba("keyMap","default",function(wa,Ha,cb){Ha=Ri(Ha);(cb=cb!=dm&&Ri(cb))&&cb.detach&&cb.detach(wa,Ha);Ha.attach&&Ha.attach(wa,cb||null)}); ba("extraKeys",null);ba("configureMouse",null);ba("lineWrapping",!1,xb,!0);ba("gutters",[],function(wa,Ha){wa.display.gutterSpecs=Sj(Ha,wa.options.lineNumbers);Fj(wa)},!0);ba("fixedGutter",!0,function(wa,Ha){wa.display.gutters.style.left=Ha?xe(wa.display)+"px":"0";wa.refresh()},!0);ba("coverGutterNextToScrollbar",!1,function(wa){return Ch(wa)},!0);ba("scrollbarStyle","native",function(wa){$k(wa);Ch(wa);wa.display.scrollbars.setScrollTop(wa.doc.scrollTop);wa.display.scrollbars.setScrollLeft(wa.doc.scrollLeft)}, !0);ba("lineNumbers",!1,function(wa,Ha){wa.display.gutterSpecs=Sj(wa.options.gutters,Ha);Fj(wa)},!0);ba("firstLineNumber",1,Fj,!0);ba("lineNumberFormatter",function(wa){return wa},Fj,!0);ba("showCursorWhenSelecting",!1,ti,!0);ba("resetSelectionOnContextMenu",!0);ba("lineWiseCopyCut",!0);ba("pasteLinesPerSelection",!0);ba("selectionsMayTouch",!1);ba("readOnly",!1,function(wa,Ha){"nocursor"==Ha&&(Wl(wa),wa.display.input.blur());wa.display.input.readOnlyChanged(Ha)});ba("screenReaderLabel",null,function(wa, Ha){wa.display.input.screenReaderLabelChanged(""===Ha?null:Ha)});ba("disableInput",!1,function(wa,Ha){Ha||wa.display.input.reset()},!0);ba("dragDrop",!0,zb);ba("allowDropFileTypes",null);ba("cursorBlinkRate",530);ba("cursorScrollMargin",0);ba("cursorHeight",1,ti,!0);ba("singleCursorHeightPerLine",!0,ti,!0);ba("workTime",100);ba("workDelay",100);ba("flattenSpans",!0,Di,!0);ba("addModeClass",!1,Di,!0);ba("pollInterval",100);ba("undoDepth",200,function(wa,Ha){return wa.doc.history.undoDepth=Ha});ba("historyEventDelay", 1250);ba("viewportMargin",10,function(wa){return wa.refresh()},!0);ba("maxHighlightLength",1E4,Di,!0);ba("moveInputWithCursor",!0,function(wa,Ha){Ha||wa.display.input.resetPosition()});ba("tabindex",null,function(wa,Ha){return wa.display.input.getField().tabIndex=Ha||""});ba("autofocus",null);ba("direction","ltr",function(wa,Ha){return wa.doc.setDirection(Ha)},!0);ba("phrases",null)})(Zb);(function(x){var ba=x.optionHandlers,za=x.helpers={};x.prototype={constructor:x,focus:function(){P(this).defaultView.focus(); this.display.input.focus()},setOption:function(wa,Ha){var cb=this.options,nb=cb[wa];if(cb[wa]!=Ha||"mode"==wa)cb[wa]=Ha,ba.hasOwnProperty(wa)&&qf(this,ba[wa])(this,Ha,nb),F(this,"optionChange",this,wa)},getOption:function(wa){return this.options[wa]},getDoc:function(){return this.doc},addKeyMap:function(wa,Ha){this.state.keyMaps[Ha?"push":"unshift"](Ri(wa))},removeKeyMap:function(wa){for(var Ha=this.state.keyMaps,cb=0;cbcb&&(Dc(this,qb.head.line,wa,!0),cb=qb.head.line,nb==this.doc.sel.primIndex&&cg(this));else{var Vb=qb.from();qb=qb.to();var zc=Math.max(cb,Vb.line);cb=Math.min(this.lastLine(),qb.line-(qb.ch?0:1))+1;for(qb=zc;qb< cb;++qb)Dc(this,qb,wa);qb=this.doc.sel.ranges;0==Vb.ch&&Ha.length==qb.length&&0>1;if((qb?Ha[2*qb-1]:0)>=wa)nb=qb;else if(Ha[2*qb+1]cb?Ha:0==cb?null:Ha.slice(0,cb-1)},getModeAt:function(wa){var Ha=this.doc.mode;return Ha.innerMode?x.innerMode(Ha,this.getTokenAt(wa).state).mode:Ha},getHelper:function(wa,Ha){return this.getHelpers(wa,Ha)[0]},getHelpers:function(wa,Ha){var cb=[];if(!za.hasOwnProperty(Ha))return cb;var nb=za[Ha];wa=this.getModeAt(wa);if("string"==typeof wa[Ha])nb[wa[Ha]]&&cb.push(nb[wa[Ha]]);else if(wa[Ha])for(var qb=0;qbqb&&(wa=qb,nb=!0);wa=Ia(this.doc,wa)}return pe(this,wa,{top:0,left:0}, Ha||"page",cb||nb).top+(nb?this.doc.height-rb(wa):0)},defaultTextHeight:function(){return Wc(this.display)},defaultCharWidth:function(){return Wd(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(wa,Ha,cb,nb,qb){var Vb=this.display;wa=ec(this,Ua(this.doc,wa));var zc=wa.bottom,Pc=wa.left;Ha.style.position="absolute";Ha.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(Ha);Vb.sizer.appendChild(Ha);if("over"==nb)zc= wa.top;else if("above"==nb||"near"==nb){var wd=Math.max(Vb.wrapper.clientHeight,this.doc.height),Bd=Math.max(Vb.sizer.clientWidth,Vb.lineSpace.clientWidth);("above"==nb||wa.bottom+Ha.offsetHeight>wd)&&wa.top>Ha.offsetHeight?zc=wa.top-Ha.offsetHeight:wa.bottom+Ha.offsetHeight<=wd&&(zc=wa.bottom);Pc+Ha.offsetWidth>Bd&&(Pc=Bd-Ha.offsetWidth)}Ha.style.top=zc+"px";Ha.style.left=Ha.style.right="";"right"==qb?(Pc=Vb.sizer.clientWidth-Ha.offsetWidth,Ha.style.right="0px"):("left"==qb?Pc=0:"middle"==qb&&(Pc= (Vb.sizer.clientWidth-Ha.offsetWidth)/2),Ha.style.left=Pc+"px");cb&&(wa=oh(this,{left:Pc,top:zc,right:Pc+Ha.offsetWidth,bottom:zc+Ha.offsetHeight}),null!=wa.scrollTop&&kk(this,wa.scrollTop),null!=wa.scrollLeft&&mj(this,wa.scrollLeft))},triggerOnKeyDown:nj(yk),triggerOnKeyPress:nj(Ul),triggerOnKeyUp:bj,triggerOnMouseDown:nj(Hm),execCommand:function(wa){if(ip.hasOwnProperty(wa))return ip[wa].call(null,this)},triggerElectric:nj(function(wa){nd(this,wa)}),findPosH:function(wa,Ha,cb,nb){var qb=1;0>Ha&& (qb=-1,Ha=-Ha);wa=Ua(this.doc,wa);for(var Vb=0;Vbwa?nb.from():nb.to()},Go)}),deleteH:nj(function(wa,Ha){var cb=this.doc;this.doc.sel.somethingSelected()?cb.replaceSelection("",null,"+delete"):Ci(this,function(nb){var qb=Ne(cb,nb.head,wa,Ha,!1);return 0>wa?{from:qb, to:nb.head}:{from:nb.head,to:qb}})}),findPosV:function(wa,Ha,cb,nb){var qb=1;0>Ha&&(qb=-1,Ha=-Ha);var Vb=Ua(this.doc,wa);for(wa=0;wawa?Pc.from():Pc.to();var wd=ec(cb,Pc.head,"div");null!=Pc.goalColumn&&(wd.left=Pc.goalColumn); qb.push(wd.left);var Bd=ag(cb,wd,wa,Ha);"page"==Ha&&Pc==nb.sel.primary()&&wf(cb,Ab(cb,Bd,"div").top-wd.top);return Bd},Go);if(qb.length)for(var zc=0;zcl(Wr,Lo)&&(Zb.prototype[Lo]=function(x){return function(){return x.apply(this.doc, arguments)}}(Jj.prototype[Lo]));ia(Jj);Zb.inputStyles={textarea:ii,contenteditable:oi};Zb.defineMode=function(x){Zb.defaults.mode||"null"==x||(Zb.defaults.mode=x);X.apply(this,arguments)};Zb.defineMIME=function(x,ba){Dm[x]=ba};Zb.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}});Zb.defineMIME("text/plain","null");Zb.defineExtension=function(x,ba){Zb.prototype[x]=ba};Zb.defineDocExtension=function(x,ba){Jj.prototype[x]=ba};Zb.fromTextArea=function(x,ba){function za(){x.value= qb.getValue()}ba=ba?h(ba):{};ba.value=x.value;!ba.tabindex&&x.tabIndex&&(ba.tabindex=x.tabIndex);!ba.placeholder&&x.placeholder&&(ba.placeholder=x.placeholder);if(null==ba.autofocus){var wa=A(x.ownerDocument);ba.autofocus=wa==x||null!=x.getAttribute("autofocus")&&wa==document.body}if(x.form&&(Og(x.form,"submit",za),!ba.leaveSubmitMethodAlone)){var Ha=x.form;var cb=Ha.submit;try{var nb=Ha.submit=function(){za();Ha.submit=cb;Ha.submit();Ha.submit=nb}}catch(Vb){}}ba.finishInit=function(Vb){Vb.save=za; Vb.getTextArea=function(){return x};Vb.toTextArea=function(){Vb.toTextArea=isNaN;za();x.parentNode.removeChild(Vb.getWrapperElement());x.style.display="";x.form&&(G(x.form,"submit",za),ba.leaveSubmitMethodAlone||"function"!=typeof x.form.submit||(x.form.submit=cb))}};x.style.display="none";var qb=Zb(function(Vb){return x.parentNode.insertBefore(Vb,x.nextSibling)},ba);return qb};(function(x){x.off=G;x.on=Og;x.wheelEventPixels=Mk;x.Doc=Jj;x.splitLines=bn;x.countColumn=b;x.findColumn=m;x.isWordChar= E;x.Pass=Bn;x.signal=F;x.Line=fh;x.changeEnd=Ph;x.scrollbarModel=nk;x.Pos=na;x.cmpPos=oa;x.modes=Cq;x.mimeModes=Dm;x.resolveMode=ea;x.getMode=pa;x.modeExtensions=Cm;x.extendMode=va;x.copyState=ta;x.startState=Ga;x.innerMode=xa;x.commands=ip;x.keyMap=Jo;x.keyName=ok;x.isModifierKey=dk;x.lookupKey=xi;x.normalizeKeyMap=tl;x.StringStream=Wi;x.SharedTextMarker=cm;x.TextMarker=fk;x.LineWidget=qg;x.e_preventDefault=U;x.e_stopPropagation=Z;x.e_stop=W;x.addClass=z;x.contains=u;x.rmClass=km;x.keyNames=kh})(Zb); Zb.version="5.65.13";return Zb})}; shadow$provide[456]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(b,l){return"pairs"==l&&"string"==typeof b?b:"object"==typeof b&&null!=b[l]?b[l]:P[l]}function y(b){for(var l=0;lm))for(v==g.line&&(r=g.ch-(0>h?1:0));r!=f;r+=h){var E=t.charAt(r);if(l.test(E)&&(void 0===b||(P.getTokenTypeAt(z(v,r+1))||"")==(b||""))){var B=C[E];if(B&&"\x3e"==B.charAt(1)==0document.documentMode),z=w.Pos,C={"(":")\x3e",")":"(\x3c","[":"]\x3e","]":"[\x3c", "{":"}\x3e","}":"{\x3c","\x3c":"\x3e\x3e","\x3e":"\x3c\x3c"};w.defineOption("matchBrackets",!1,function(P,g,h){h&&h!=w.Init&&(P.off("cursorActivity",c),P.off("focus",c),P.off("blur",u),u(P));g&&(P.state.matchBrackets="object"==typeof g?g:{},P.on("cursorActivity",c),P.on("focus",c),P.on("blur",u))});w.defineExtension("matchBrackets",function(){q(this,!0)});w.defineExtension("findMatchingBracket",function(P,g,h){if(h||"boolean"==typeof g)h?(h.strict=g,g=h):g=g?{strict:!0}:null;return Y(this,P,g)}); w.defineExtension("scanForBracket",function(P,g,h,b){return y(this,P,g,h,b)})})}; shadow$provide[458]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(u){for(var A=0;A D.clientHeight+1:!1,T;setTimeout(function(){T=l.getScrollInfo()});if(0G&&(D.style.height=(R=G)+"px"),D.style.top=(V=t.top-R)+E+"px",H=!1):D.style.height=S-B.top-2+"px"}E=B.right-f;L&&(E+=l.display.nativeBarWidth);0f&&(D.style.width=f-5+"px",E-=B.right-B.left-f),D.style.left=(J=Math.max(t.left-E-r,0))+"px");if(L)for(t=D.firstChild;t;t=t.nextSibling)t.style.paddingRight=l.display.nativeBarWidth+"px";l.addKeyMap(this.keyMap= y(g,{moveFocus:function(O,M){b.changeActive(b.selectedHint+O,M)},setFocus:function(O){b.changeActive(O)},menuSize:function(){return b.screenAmount()},length:v.length,close:function(){g.close()},pick:function(){b.pick()},data:h}));if(g.options.closeOnUnfocus){var F;l.on("blur",this.onBlur=function(){F=setTimeout(function(){g.close()},100)});l.on("focus",this.onFocus=function(){clearTimeout(F)})}l.on("scroll",this.onScroll=function(){var O=l.getScrollInfo(),M=l.getWrapperElement().getBoundingClientRect(); T||=l.getScrollInfo();var I=V+T.top-O.top,ia=I-(p.pageYOffset||(m.documentElement||m.body).scrollTop);H||(ia+=D.offsetHeight);if(ia<=M.top||ia>=M.bottom)return g.close();D.style.top=I+"px";D.style.left=J+T.left-O.left+"px"});w.on(D,"dblclick",function(O){(O=q(D,O.target||O.srcElement))&&null!=O.hintId&&(b.changeActive(O.hintId),b.pick())});w.on(D,"click",function(O){(O=q(D,O.target||O.srcElement))&&null!=O.hintId&&(b.changeActive(O.hintId),g.options.completeOnSingleClick&&b.pick())});w.on(D,"mousedown", function(){setTimeout(function(){l.focus()},20)});t=this.getSelectedHintRange();0===t.from&&0===t.to||this.scrollToActive();w.signal(h,"select",v[this.selectedHint],D.childNodes[this.selectedHint]);return!0}function u(g,h){if(!g.somethingSelected())return h;g=[];for(var b=0;b=this.data.list.length?g=h?this.data.list.length-1:0:0>g&&(g=h?0:this.data.list.length-1);if(this.selectedHint!=g){if(h=this.hints.childNodes[this.selectedHint])h.className=h.className.replace(" CodeMirror-hint-active",""),h.removeAttribute("aria-selected");h=this.hints.childNodes[this.selectedHint=g];h.className+=" CodeMirror-hint-active";h.setAttribute("aria-selected","true");this.completion.cm.getInputField().setAttribute("aria-activedescendant", h.id);this.scrollToActive();w.signal(this.data,"select",this.data.list[this.selectedHint],h)}},scrollToActive:function(){var g=this.getSelectedHintRange(),h=this.hints.childNodes[g.from];g=this.hints.childNodes[g.to];var b=this.hints.firstChild;h.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=g.offsetTop+g.offsetHeight-this.hints.clientHeight+b.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/ this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var g=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-g),to:Math.min(this.data.list.length-1,this.selectedHint+g)}}};w.registerHelper("hint","auto",{resolve:function(g,h){var b=g.getHelpers(h,"hint"),l;return b.length?(g=function(m,p,D){function v(r){if(r==t.length)return p(null);A(t[r],m,D,function(f){f&&0,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};w.defineOption("hintOptions",null)})}; shadow$provide[460]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){w.defineMode("apl",function(){var Y={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},y={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"], "∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"\x3c":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"\x3d":[null,"equals"],"\x3e":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique", "union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format", "formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},q=/[\.\/⌿⍀¨⍣]/,c=/⍬/,u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,A=/←/,z=/[⍝#].*$/,C=function(P){var g=!1;return function(h){g=h;return h===P?"\\"===g:!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(P,g){if(P.eatSpace())return null;var h=P.next();if('"'===h||"'"===h)return P.eatWhile(C(h)),P.next(),g.prev=!0,"string";if(/[\[{\(]/.test(h))return g.prev= !1,null;if(/[\]}\)]/.test(h))return g.prev=!0,null;if(c.test(h))return g.prev=!1,"niladic";if(/[¯\d]/.test(h))return g.func?(g.func=!1,g.prev=!1):g.prev=!0,P.eatWhile(/[\w\.]/),"number";if(q.test(h))return"operator apl-"+Y[h];if(A.test(h))return"apl-arrow";if(u.test(h))return P="apl-",null!=y[h]&&(P=g.prev?P+y[h][1]:P+y[h][0]),g.func=!0,g.prev=!1,"function "+P;if(z.test(h))return P.skipToEnd(),"comment";if("∘"===h&&"."===P.peek())return P.next(),"function jot-dot";P.eatWhile(/[\w\$_]/);g.prev=!0; return"keyword"}}});w.defineMIME("text/apl","apl")})}; shadow$provide[461]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(y){var q=y.match(/^\s*\S/);y.skipToEnd();return q?"error":null}w.defineMode("asciiarmor",function(){return{token:function(y,q){var c;if("top"==q.state)return y.sol()&&(c=y.match(/^-----BEGIN (.*)?-----\s*$/))?(q.state="headers",q.type=c[1],"tag"):Y(y);if("headers"==q.state){if(y.sol()&& y.match(/^\w+:/))return q.state="header","atom";if(y=Y(y))q.state="body";return y}if("header"==q.state)return y.skipToEnd(),q.state="headers","string";if("body"==q.state){if(y.sol()&&(c=y.match(/^-----END (.*)?-----\s*$/))){if(c[1]!=q.type)return"error";q.state="end";return"tag"}if(y.eatWhile(/[A-Za-z0-9+\/=]/))return null;y.next();return"error"}if("end"==q.state)return Y(y)},blankLine:function(y){"headers"==y.state&&(y.state="body")},startState:function(){return{state:"top",type:null}}}});w.defineMIME("application/pgp", "asciiarmor");w.defineMIME("application/pgp-encrypted","asciiarmor");w.defineMIME("application/pgp-keys","asciiarmor");w.defineMIME("application/pgp-signature","asciiarmor")})}; shadow$provide[462]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(y){var q={};y=y.split(" ");for(var c=0;c?$/.test(z))return A.extenExten=!0,A.extenStart=!1,"strong";A.extenStart=!1;u.skipToEnd();return"error"}if(A.extenExten)return A.extenExten=!1,A.extenPriority=!0,u.eatWhile(/[^,]/),A.extenInclude&&(u.skipToEnd(),A.extenPriority=!1,A.extenInclude= !1),A.extenSame&&(A.extenPriority=!1,A.extenSame=!1,A.extenApplication=!0),"tag";if(A.extenPriority){A.extenPriority=!1;A.extenApplication=!0;u.next();if(A.extenSame)return null;u.eatWhile(/[^,]/);return"number"}if(A.extenApplication){u.eatWhile(/,/);z=u.current();if(","===z)return null;u.eatWhile(/\w/);z=u.current().toLowerCase();A.extenApplication=!1;if(-1!==c.indexOf(z))return"def strong"}else return Y(u,A);return null},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}});w.defineMIME("text/x-asterisk", "asterisk")})}; shadow$provide[464]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){var Y="\x3e\x3c+-.,[]".split("");w.defineMode("brainfuck",function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(y,q){if(y.eatSpace())return null;y.sol()&&(q.commentLine=!1);var c=y.next().toString();if(-1!==Y.indexOf(c)){if(!0===q.commentLine)return y.eol()&& (q.commentLine=!1),"comment";if("]"===c||"["===c)return"["===c?q.left++:q.right++,"bracket";if("+"===c||"-"===c)return"keyword";if("\x3c"===c||"\x3e"===c)return"atom";if("."===c||","===c)return"def"}else return q.commentLine=!0,y.eol()&&(q.commentLine=!1),"comment";y.eol()&&(q.commentLine=!1)}}});w.defineMIME("text/x-brainfuck","brainfuck")})}; shadow$provide[465]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(S,L,T,R,G,F){this.indented=S;this.column=L;this.type=T;this.info=R;this.align=G;this.prev=F}function y(S,L,T,R){var G=S.indented;S.context&&"statement"==S.context.type&&"statement"!=T&&(G=S.context.indented);return S.context=new Y(G,L,T,R,null,S.context)}function q(S){var L=S.context.type; if(")"==L||"]"==L||"}"==L)S.indented=S.context.indented;return S.context=S.context.prev}function c(S,L,T){if("variable"==L.prevToken||"type"==L.prevToken||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(S.string.slice(0,T))||L.typeAtEndOfLine&&S.column()==S.indentation())return!0}function u(S){for(;;){if(!S||"top"==S.type)return!0;if("}"==S.type&&"namespace"!=S.prev.info)return!1;S=S.prev}}function A(S){var L={};S=S.split(" ");for(var T=0;TS.length||"_"!=S[0]?!1:"_"==S[1]||S[1]!==S[1].toLowerCase()}function l(S){S.eatWhile(/[\w\.']/);return"number"}function m(S, L){S.backUp(1);if(S.match(/^(?:R|u8R|uR|UR|LR)/)){var T=S.match(/^"([^\s\\()]{0,16})\(/);if(!T)return!1;L.cpp11RawStringDelim=T[1];L.tokenize=v;return v(S,L)}if(S.match(/^(?:u8|u|U|L)/))return S.match(/^["']/,!1)?"string":!1;S.next();return!1}function p(S){return(S=/(\w+)::~?(\w+)$/.exec(S))&&S[1]==S[2]}function D(S,L){for(var T;null!=(T=S.next());)if('"'==T&&!S.eat('"')){L.tokenize=null;break}return"string"}function v(S,L){var T=L.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$\x26");S.match(new RegExp(".*?\\)"+ T+'"'))?L.tokenize=null:S.skipToEnd();return"string"}function t(S,L){function T(F){if(F)for(var O in F)F.hasOwnProperty(O)&&R.push(O)}"string"==typeof S&&(S=[S]);var R=[];T(L.keywords);T(L.types);T(L.builtin);T(L.atoms);R.length&&(L.helperType=S[0],w.registerHelper("hintWords",S[0],R));for(var G=0;G!?|\/]/,Ya=L.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Fa=L.isReservedIdentifier||!1,Ka,Ba;return{startState:function(la){return{tokenize:null,context:new Y((la||0)-O,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(la,ka){var ua=ka.context;la.sol()&&(null==ua.align&& (ua.align=!1),ka.indented=la.indentation(),ka.startOfLine=!0);if(la.eatSpace())return F(la,ka),null;Ka=Ba=null;var na=(ka.tokenize||T)(la,ka);if("comment"==na||"meta"==na)return na;null==ua.align&&(ua.align=!0);if(";"==Ka||":"==Ka||","==Ka&&la.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==ka.context.type;)q(ka);else if("{"==Ka)y(ka,la.column(),"}");else if("["==Ka)y(ka,la.column(),"]");else if("("==Ka)y(ka,la.column(),")");else if("}"==Ka){for(;"statement"==ua.type;)ua=q(ka);for("}"==ua.type&&(ua= q(ka));"statement"==ua.type;)ua=q(ka)}else Ka==ua.type?q(ka):pa&&(("}"==ua.type||"top"==ua.type)&&";"!=Ka||"statement"==ua.type&&"newstatement"==Ka)&&y(ka,la.column(),"statement",la.current());"variable"==na&&("def"==ka.prevToken||L.typeFirstDefinitions&&c(la,ka,la.start)&&u(ka.context)&&la.match(/^\s*\(/,!1))&&(na="def");X.token&&(ua=X.token(la,ka,na),void 0!==ua&&(na=ua));"def"==na&&!1===L.styleDefs&&(na="variable");ka.startOfLine=!1;ka.prevToken=Ba?"def":na||Ka;F(la,ka);return na},indent:function(la, ka){if(la.tokenize!=T&&null!=la.tokenize||la.typeAtEndOfLine)return w.Pass;var ua=la.context,na=ka&&ka.charAt(0),oa=na==ua.type;"statement"==ua.type&&"}"==na&&(ua=ua.prev);if(L.dontIndentStatements)for(;"statement"==ua.type&&L.dontIndentStatements.test(ua.info);)ua=ua.prev;if(X.indent&&(la=X.indent(la,ua,ka,O),"number"==typeof la))return la;la=ua.prev&&"switch"==ua.prev.info;if(L.allmanIndentation&&/[{(]/.test(na)){for(;"top"!=ua.type&&"}"!=ua.type;)ua=ua.prev;return ua.indented}return"statement"== ua.type?ua.indented+("{"==na?0:M):!ua.align||I&&")"==ua.type?")"!=ua.type||oa?ua.indented+(oa?0:O)+(oa||!la||/^(?:case|default)\b/.test(ka)?0:O):ua.indented+M:ua.column+(oa?0:1)},electricInput:!1!==L.indentSwitch?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var J=A("int long char short double float unsigned signed void bool"),V=A("SEL instancetype id Class Protocol BOOL");t(["text/x-csrc", "text/x-c","text/x-chdr"],{name:"clike",keywords:A("auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran"),types:C,blockKeywords:A("case do else for if switch while struct enum union"),defKeywords:A("struct enum union"),typeFirstDefinitions:!0,atoms:A("NULL true false"),isReservedIdentifier:b,hooks:{"#":g,"*":h},modeProps:{fold:["brace","include"]}});t(["text/x-c++src","text/x-c++hdr"], {name:"clike",keywords:A("auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq"), types:C,blockKeywords:A("case do else for if switch while struct enum union class try catch"),defKeywords:A("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:A("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:b,hooks:{"#":g,"*":h,u:m,U:m,L:m,R:m,0:l,1:l,2:l,3:l,4:l,5:l,6:l,7:l,8:l,9:l,token:function(S,L,T){if("variable"==T&&"("==S.peek()&&(";"==L.prevToken||null==L.prevToken||"}"==L.prevToken)&&p(S.current()))return"def"}}, namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});t("text/x-java",{name:"clike",keywords:A("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:A("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"), blockKeywords:A("catch class do else finally for if switch try while"),defKeywords:A("class interface enum @interface"),typeFirstDefinitions:!0,atoms:A("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(S){if(S.match("interface",!1))return!1;S.eatWhile(/[\w\$_]/);return"meta"},'"':function(S,L){if(!S.match(/""$/))return!1;L.tokenize=r;return L.tokenize(S,L)}},modeProps:{fold:["brace","import"]}});t("text/x-csharp",{name:"clike", keywords:A("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"), types:A("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:A("catch class do else finally for foreach if struct switch try while"),defKeywords:A("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:A("true false null"),hooks:{"@":function(S,L){if(S.eat('"'))return L.tokenize= D,D(S,L);S.eatWhile(/[\w\$_]/);return"meta"}}});t("text/x-scala",{name:"clike",keywords:A("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:A("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:!0,blockKeywords:A("catch class enum do else finally for forSome if match switch try while"),defKeywords:A("class enum def object package trait type val var"),atoms:A("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(S){S.eatWhile(/[\w\$_]/);return"meta"},'"':function(S,L){if(!S.match('""'))return!1;L.tokenize=r;return L.tokenize(S,L)},"'":function(S){if(S.match(/^(\\[^'\s]+|[^\\'])'/))return"string-2";S.eatWhile(/[\w\$_\xa1-\uffff]/); return"atom"},"\x3d":function(S,L){var T=L.context;return"}"==T.type&&T.align&&S.eat("\x3e")?(L.context=new Y(T.indented,T.column,T.type,T.info,null,T.prev),"operator"):!1},"/":function(S,L){if(!S.eat("*"))return!1;L.tokenize=f(1);return L.tokenize(S,L)}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});t("text/x-kotlin",{name:"clike",keywords:A("package as typealias class interface this super val operator var fun for is in This throw return annotation 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 suspend actual expect setparam value"), types:A("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 Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1, indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:A("catch class do else finally for if where try while enum"),defKeywords:A("class val var object interface fun"),atoms:A("true false null this"),hooks:{"@":function(S){S.eatWhile(/[\w\$_]/);return"meta"},"*":function(S,L){return"."==L.prevToken?"variable":"operator"},'"':function(S,L){L.tokenize=E(S.match('""'));return L.tokenize(S,L)},"/":function(S,L){if(!S.eat("*"))return!1; L.tokenize=f(1);return L.tokenize(S,L)},indent:function(S,L,T,R){var G=T&&T.charAt(0);if(("}"==S.prevToken||")"==S.prevToken)&&""==T)return S.indented;if("operator"==S.prevToken&&"}"!=T&&"}"!=S.context.type||"variable"==S.prevToken&&"."==G||("}"==S.prevToken||")"==S.prevToken)&&"."==G)return 2*R+L.indented;if(L.align&&"}"==L.type)return L.indented+(S.context.type==(T||"").charAt(0)?0:R)}},modeProps:{closeBrackets:{triples:'"'}}});t(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:A("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"), types:A("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:A("for while do if else struct"),builtin:A("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:A("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_TextureMatrixTranspose 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:!1,hooks:{"#":g},modeProps:{fold:["brace","include"]}});t("text/x-nesc",{name:"clike",keywords:A("auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran 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:C,blockKeywords:A("case do else for if switch while struct enum union"), atoms:A("null true false"),hooks:{"#":g},modeProps:{fold:["brace","include"]}});t("text/x-objectivec",{name:"clike",keywords:A("auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available"), types:P,builtin:A("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:A("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:A("struct enum union @interface @implementation @protocol @class"), dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:A("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":g,"*":h},modeProps:{fold:["brace","include"]}});t("text/x-objectivec++",{name:"clike",keywords:A("auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq"), types:P,builtin:A("FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT"),blockKeywords:A("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:A("struct enum union @interface @implementation @protocol @class class namespace"), dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:A("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:b,hooks:{"#":g,"*":h,u:m,U:m,L:m,R:m,0:l,1:l,2:l,3:l,4:l,5:l,6:l,7:l,8:l,9:l,token:function(S,L,T){if("variable"==T&&"("==S.peek()&&(";"==L.prevToken||null==L.prevToken||"}"==L.prevToken)&&p(S.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});t("text/x-squirrel",{name:"clike",keywords:A("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"), types:C,blockKeywords:A("case catch class else for foreach if switch try while"),defKeywords:A("function local class"),typeFirstDefinitions:!0,atoms:A("true false null"),hooks:{"#":g},modeProps:{fold:["brace","include"]}});var H=null;t("text/x-ceylon",{name:"clike",keywords:A("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(S){S=S.charAt(0);return S===S.toUpperCase()&&S!==S.toLowerCase()},blockKeywords:A("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:A("class dynamic function interface module object package value"),builtin:A("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:!0,typeFirstDefinitions:!0,atoms:A("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(S){S.eatWhile(/[\w\$_]/);return"meta"},'"':function(S,L){L.tokenize=B(S.match('""')?"triple":"single");return L.tokenize(S,L)},"`":function(S,L){if(!H||!S.match("`"))return!1;L.tokenize= H;H=null;return L.tokenize(S,L)},"'":function(S){S.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(S,L,T){if(("variable"==T||"type"==T)&&"."==L.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})}; shadow$provide[466]=function(ya,ca,Sa,Q){(function(w){"object"===typeof Q&&"object"===typeof Sa?w(ca(455)):"function"===typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){w.defineMode("clojure",function(Y){function y(t,r){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(p))return[null,"number"];if(t.match(D))return[null,"string-2"];if(t.eat(/^"/))return(r.tokenize=q)(t,r);if(t.eat(/^[(\[{]/))return["open","bracket"];if(t.eat(/^[)\]}]/))return["close", "bracket"];if(t.eat(/^;/))return t.skipToEnd(),["space","comment"];if(t.eat(/^[#'@^`~]/))return[null,"meta"];var f=t.match(v);f=f&&f[0];return f?"comment"===f&&"("===r.lastToken?(r.tokenize=c)(t,r):A(f,g)||":"===f.charAt(0)?["symbol","atom"]:A(f,h)||A(f,b)?["symbol","keyword"]:"("===r.lastToken?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(E){return!A(E,m)}),[null,"error"])}function q(t,r){for(var f=!1,E;E=t.next();){if('"'===E&&!f){r.tokenize=y;break}f=!f&&"\\"===E}return[null, "string"]}function c(t,r){for(var f=1,E;E=t.next();)if(")"===E&&f--,"("===E&&f++,0===f){t.backUp(1);r.tokenize=y;break}return["space","comment"]}function u(t){for(var r={},f=0;f=l)h="def";else if(72<=l&&79>=l)h.skipToEnd(), h="header";else if("*"==m&&6==l)h.skipToEnd(),h="comment";else if('"'==m||"'"==m)h=b.mode="string";else if("'"!=m||A.test(h.peek()))if("."==m)h="link";else if(b=m,"0"===b&&h.eat(/x/i)?(h.eatWhile(z),b=!0):("+"!=b&&"-"!=b||!u.test(h.peek())||(h.eat(C),b=h.next()),u.test(b)?(h.eat(b),h.eatWhile(u),"."==h.peek()&&(h.eat("."),h.eatWhile(u)),h.eat(P)&&(h.eat(C),h.eatWhile(u)),b=!0):b=!1),b)h="number";else{if(h.current().match(g))for(;71>l&&void 0!==h.eat(g);)l++;h=q&&q.propertyIsEnumerable(h.current().toUpperCase())? "keyword":c&&c.propertyIsEnumerable(h.current().toUpperCase())?"builtin":y&&y.propertyIsEnumerable(h.current().toUpperCase())?"atom":null}else h="atom"}return h},indent:function(h){return null==h.indentStack?h.indentation:h.indentStack.indent}}});w.defineMIME("text/x-cobol","cobol")})}; shadow$provide[469]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){w.defineMode("coffeescript",function(Y,y){function q(r){return new RegExp("^(("+r.join(")|(")+"))\\b")}function c(r,f){if(r.sol()){null===f.scope.align&&(f.scope.align=!1);var E=f.scope.offset;if(r.eatSpace())return r=r.indentation(),r>E&&"coffee"==f.scope.type?"indent":r|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|~|!|\?|(or|and|\|\||&&|\?)=)/,g=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,h=/^[_A-Za-z$][_A-Za-z$0-9]*/,b=/^@[_A-Za-z$][_A-Za-z$0-9]*/, l=q("and or not is isnt in instanceof typeof".split(" ")),m="for while loop if unless else switch try catch finally class".split(" "),p=q(m.concat("break by continue debugger delete do in of new return then this @ throw when until extends".split(" ")));m=q(m);var D=/^('{3}|"{3}|['"])/,v=/^(\/{3}|\/)/,t=q("Infinity NaN undefined null true false on off yes no".split(" "));return{startState:function(r){return{tokenize:c,scope:{offset:r||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(r, f){var E=null===f.scope.align&&f.scope;E&&r.sol()&&(E.align=!1);var B=f.tokenize(r,f);var J=r.current();"return"===J&&(f.dedent=!0);(("-\x3e"===J||"\x3d\x3e"===J)&&r.eol()||"indent"===B)&&z(r,f);var V="[({".indexOf(J);-1!==V&&z(r,f,"])}".slice(V,V+1));m.exec(J)&&z(r,f);"then"==J&&C(r,f);if("dedent"===B&&C(r,f))B="error";else{V="])}".indexOf(J);if(-1!==V){for(;"coffee"==f.scope.type&&f.scope.prev;)f.scope=f.scope.prev;f.scope.type==J&&(f.scope=f.scope.prev)}f.dedent&&r.eol()&&("coffee"==f.scope.type&& f.scope.prev&&(f.scope=f.scope.prev),f.dedent=!1)}B&&"comment"!=B&&(E&&(E.align=!0),f.prop="punctuation"==B&&"."==r.current());return B},indent:function(r,f){if(r.tokenize!=c)return 0;r=r.scope;var E=f&&-1<"])}".indexOf(f.charAt(0));if(E)for(;"coffee"==r.type&&r.prev;)r=r.prev;f=E&&r.type===f.charAt(0);return r.align?r.alignOffset-(f?1:0):(f?r.prev:r).offset},lineComment:"#",fold:"indent"}});w.defineMIME("application/vnd.coffeescript","coffeescript");w.defineMIME("text/x-coffeescript","coffeescript"); w.defineMIME("text/coffeescript","coffeescript")})}; shadow$provide[470]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){w.defineMode("commonlisp",function(Y){function y(h){for(var b;b=h.next();)if("\\"==b)h.next();else if(!P.test(b)){h.backUp(1);break}return h.current()}function q(h,b){if(h.eatSpace())return g="ws",null;if(h.match(C))return"number";var l=h.next();"\\"==l&&(l=h.next());if('"'==l)return(b.tokenize= c)(h,b);if("("==l)return g="open","bracket";if(")"==l||"]"==l)return g="close","bracket";if(";"==l)return h.skipToEnd(),g="ws","comment";if(/['`,@]/.test(l))return null;if("|"==l){if(h.skipTo("|"))return h.next(),"symbol";h.skipToEnd();return"error"}if("#"==l)return l=h.next(),"("==l?(g="open","bracket"):/[+\-=\.']/.test(l)||/\d/.test(l)&&h.match(/^\d*#/)?null:"|"==l?(b.tokenize=u)(h,b):":"==l?(y(h),"meta"):"\\"==l?(h.next(),y(h),"string-2"):"error";h=y(h);if("."==h)return null;g="symbol";return"nil"== h||"t"==h||":"==h.charAt(0)?"atom":"open"==b.lastType&&(A.test(h)||z.test(h))?"keyword":"\x26"==h.charAt(0)?"variable-2":"variable"}function c(h,b){for(var l=!1,m;m=h.next();){if('"'==m&&!l){b.tokenize=q;break}l=!l&&"\\"==m}return"string"}function u(h,b){for(var l,m;l=h.next();){if("#"==l&&"|"==m){b.tokenize=q;break}m=l}g="ws";return"comment"}var A=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/, z=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,C=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,P=/[^\s'`,@()\[\]";]/,g;return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:q}},token:function(h,b){h.sol()&&"number"!=typeof b.ctx.indentTo&&(b.ctx.indentTo=b.ctx.start+1);g=null;var l=b.tokenize(h,b);"ws"!=g&&(null==b.ctx.indentTo?"symbol"==g&&z.test(h.current())?b.ctx.indentTo= b.ctx.start+Y.indentUnit:b.ctx.indentTo="next":"next"==b.ctx.indentTo&&(b.ctx.indentTo=h.column()),b.lastType=g);"open"==g?b.ctx={prev:b.ctx,start:h.column(),indentTo:null}:"close"==g&&(b.ctx=b.ctx.prev||b.ctx);return l},indent:function(h,b){b=h.ctx.indentTo;return"number"==typeof b?b:h.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}});w.defineMIME("text/x-common-lisp","commonlisp")})}; shadow$provide[471]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){w.defineMode("crystal",function(Y){function y(L,T){return new RegExp((T?"":"^")+"(?:"+L.join("|")+")"+(T?"$":"\\b"))}function q(L,T,R){R.tokenize.push(L);return L(T,R)}function c(L,T){if(L.eatSpace())return null;if("\\"!=T.lastToken&&L.match("{%",!1))return q(A("%","%"),L,T);if("\\"!=T.lastToken&& L.match("{{",!1))return q(A("{","}"),L,T);if("#"==L.peek())return L.skipToEnd(),"comment";if(L.match(p)){L.eat(/[?!]/);var R=L.current();return L.eat(":")?"atom":"."==T.lastToken?"property":v.test(R)?(r.test(R)?"fun"==R&&0<=T.blocks.indexOf("lib")||"def"==R&&"abstract"==T.lastToken||(T.blocks.push(R),T.currentIndent+=1):"operator"!=T.lastStyle&&T.lastStyle||!f.test(R)?"end"==R&&(T.blocks.pop(),--T.currentIndent):(T.blocks.push(R),T.currentIndent+=1),H.hasOwnProperty(R)&&T.tokenize.push(H[R]),"keyword"): t.test(R)?"atom":"variable"}if(L.eat("@")){if("["==L.peek())return q(u("[","]","meta"),L,T);L.eat("@");L.match(p)||L.match(D);return"variable-2"}if(L.match(D))return"tag";if(L.eat(":")){if(L.eat('"'))return q(P('"',"atom",!1),L,T);if(L.match(p)||L.match(D)||L.match(h)||L.match(b)||L.match(l))return"atom";L.eat(":");return"operator"}if(L.eat('"'))return q(P('"',"string",!0),L,T);if("%"==L.peek()){R="string";var G=!0;if(L.match("%r")){R="string-2";var F=L.next()}else if(L.match("%w"))G=!1,F=L.next(); else if(L.match("%q"))G=!1,F=L.next();else if(F=L.match(/^%([^\w\s=])/))F=F[1];else{if(L.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(L.eat("%"))return"operator"}S.hasOwnProperty(F)&&(F=S[F]);return q(P(F,R,G),L,T)}if(R=L.match(/^<<-('?)([A-Z]\w*)\1/))return q(g(R[2],!R[1]),L,T);if(L.eat("'"))return L.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),L.eat("'"),"atom";if(L.eat("0"))return L.eat("x")?L.match(/^[0-9a-fA-F_]+/):L.eat("o")? L.match(/^[0-7_]+/):L.eat("b")&&L.match(/^[01_]+/),"number";if(L.eat(/^\d/))return L.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number";if(L.match(h))return L.eat("\x3d"),"operator";if(L.match(b)||L.match(m))return"operator";if(R=L.match(/[({[]/,!1))return R=R[0],q(u(R,S[R],null),L,T);if(L.eat("\\"))return L.next(),"meta";L.next();return null}function u(L,T,R,G){return function(F,O){if(!G&&F.match(L))return O.tokenize[O.tokenize.length-1]=u(L,T,R,!0),O.currentIndent+=1,R;var M=c(F,O);F.current()=== T&&(O.tokenize.pop(),--O.currentIndent,M=R);return M}}function A(L,T,R){return function(G,F){return!R&&G.match("{"+L)?(F.currentIndent+=1,F.tokenize[F.tokenize.length-1]=A(L,T,!0),"meta"):G.match(T+"}")?(--F.currentIndent,F.tokenize.pop(),"meta"):c(G,F)}}function z(L,T){if(L.eatSpace())return null;L.match(p)?L.eat(/[!?]/):L.match(h)||L.match(b)||L.match(l);T.tokenize.pop();return"def"}function C(L,T){if(L.eatSpace())return null;L.match(D);T.tokenize.pop();return"def"}function P(L,T,R){return function(G, F){for(var O=!1;G.peek();)if(O)G.next(),O=!1;else{if(G.match("{%",!1)){F.tokenize.push(A("%","%"));break}if(G.match("{{",!1)){F.tokenize.push(A("{","}"));break}if(R&&G.match("#{",!1)){F.tokenize.push(u("#{","}","meta"));break}O=G.next();if(O==L){F.tokenize.pop();break}O=R&&"\\"==O}return T}}function g(L,T){return function(R,G){if(R.sol()&&(R.eatSpace(),R.match(L)))return G.tokenize.pop(),"string";for(var F=!1;R.peek();)if(F)R.next(),F=!1;else{if(R.match("{%",!1)){G.tokenize.push(A("%","%"));break}if(R.match("{{", !1)){G.tokenize.push(A("{","}"));break}if(T&&R.match("#{",!1)){G.tokenize.push(u("#{","}","meta"));break}F=T&&"\\"==R.next()}return"string"}}var h=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,b=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,l=/^(?:\[\][?=]?)/,m=/^(?:\.(?:\.{2})?|->|[?:])/,p=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,D=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,v=y("abstract alias as asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof lib macro module next of out pointerof private protected rescue return require select sizeof struct super then type typeof uninitialized union unless until when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__".split(" ")), t=y(["true","false","nil","self"]),r=y("def fun macro class module struct lib enum union do for".split(" ")),f=y("if unless case while until begin then".split(" ")),E=["end","else","elsif","rescue","ensure"],B=y(E),J=["\\)","\\}","\\]"],V=new RegExp("^(?:"+J.join("|")+")$"),H={def:z,fun:z,macro:function(L,T){if(L.eatSpace())return null;var R;if(R=L.match(p)){if("def"==R)return"keyword";L.eat(/[?!]/)}T.tokenize.pop();return"def"},"class":C,module:C,struct:C,lib:C,"enum":C,union:C},S={"[":"]","{":"}", "(":")","\x3c":"\x3e"};return{startState:function(){return{tokenize:[c],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(L,T){var R=T.tokenize[T.tokenize.length-1](L,T);L=L.current();R&&"comment"!=R&&(T.lastToken=L,T.lastStyle=R);return R},indent:function(L,T){T=T.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,"");return B.test(T)||V.test(T)?Y.indentUnit*(L.currentIndent-1):Y.indentUnit*L.currentIndent},fold:"indent",electricInput:y(J.concat(E),!0),lineComment:"#"}});w.defineMIME("text/x-crystal", "crystal")})}; shadow$provide[472]=function(ya,ca,Sa,Q){(function(w){"object"==typeof Q&&"object"==typeof Sa?w(ca(455)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],w):w(CodeMirror)})(function(w){function Y(E){for(var B={},J=0;J*\/]/.test(la)?J(null,"select-op"):"."==la&&Ka.match(/^-?[_a-z][_a-z0-9-]*/i)?J("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(la)?J(null,la):Ka.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Ka.current())&&(Ba.tokenize=S),J("variable callee","variable")):/[\w\\\-]/.test(la)? (Ka.eatWhile(/[\w\\\-]/),J("property","word")):J(null,null)}function H(Ka){return function(Ba,la){for(var ka=!1,ua;null!=(ua=Ba.next());){if(ua==Ka&&!ka){")"==Ka&&Ba.backUp(1);break}ka=!ka&&"\\"==ua}if(ua==Ka||!ka&&")"!=Ka)la.tokenize=null;return J("string","string")}}function S(Ka,Ba){Ka.next();Ka.match(/^\s*["')]/,!1)?Ba.tokenize=null:Ba.tokenize=H(")");return J(null,"(")}function L(Ka,Ba,la){this.type=Ka;this.indent=Ba;this.prev=la}function T(Ka,Ba,la,ka){Ka.context=new L(la,Ba.indentation()+(!1=== ka?0:M),Ka.context);return la}function R(Ka){Ka.context.prev&&(Ka.context=Ka.context.prev);return Ka.context.type}function G(Ka,Ba,la,ka){for(ka=ka||1;0