(function(){ shadow$provide[464]=function(ya,ba,Ta,I){(function(v,Y){"object"===typeof I&&"undefined"!==typeof Ta?Ta.exports=Y():"function"===typeof define&&define.amd?define(Y):(v=v||self,v.CodeMirror=Y())})(this,function(){function v(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}function Y(x){for(var ca=x.childNodes.length;0$a||$a>=ca)return Ia+(ca-xa);Ia+=$a-xa;Ia+=Aa-Ia%Aa;xa=$a+1}}function p(x,ca){for(var Aa=0;Aa=ca)return xa+Math.min(lb,ca-Ia);Ia+=$a-xa;Ia+=Aa-Ia%Aa;xa=$a+1;if(Ia>=ca)return xa}} function q(x){for(;mn.length<=x;)mn.push(E(mn)+" ");return mn[x]}function E(x){return x[x.length-1]}function w(x,ca){for(var Aa=[],xa=0;xaAa?0Aa?-1:1;;){if(ca==Aa)return ca;var Ia=(ca+Aa)/2;Ia=0>xa?Math.ceil(Ia):Math.floor(Ia);if(Ia==ca)return x(Ia)?ca:Aa;x(Ia)?Aa=Ia:ca=Ia+xa}}function P(x,ca,Aa,xa){if(!x)return xa(ca,Aa,"ltr",0);for(var Ia= !1,$a=0;$aca||ca==Aa&&lb.to==ca)xa(Math.max(lb.from,ca),Math.min(lb.to,Aa),1==lb.level?"rtl":"ltr",$a),Ia=!0}Ia||xa(ca,Aa,"ltr")}function V(x,ca,Aa){var xa;kn=null;for(var Ia=0;Iaca)return Ia;$a.to==ca&&($a.from!=$a.to&&"before"==Aa?xa=Ia:kn=Ia);$a.from==ca&&($a.from!=$a.to&&"before"!=Aa?xa=Ia:kn=Ia)}return null!=xa?xa:kn}function T(x,ca){var Aa=x.order;null==Aa&&(Aa=x.order=mo(x.text,ca));return Aa} function K(x,ca,Aa){if(x.removeEventListener)x.removeEventListener(ca,Aa,!1);else if(x.detachEvent)x.detachEvent("on"+ca,Aa);else{var xa=(x=x._handlers)&&x[ca];xa&&(Aa=p(xa,Aa),-1ca||ca>=x.size)throw Error("There is no line "+(ca+x.first)+" in the document.");for(;!x.lines;)for(var Aa=0;;++Aa){var xa=x.children[Aa],Ia=xa.chunkSize();if(ca=x.first&&casa(x,ca)?ca:x}function Pa(x,ca){return 0>sa(x,ca)?x:ca}function cb(x,ca){if(ca.lineAa)return ia(Aa,Oa(x,Aa).text.length);x=Oa(x,ca.line).text.length;Aa=ca.ch;ca=null==Aa||Aa>x?ia(ca.line,x):0>Aa?ia(ca.line,0):ca;return ca}function tb(x,ca){for(var Aa=[],xa=0;xard&&Ia.splice(Lc,1,rd,Ia[Lc+1],Af);Lc+=2;od=Math.min(rd,Af)}if(xd)if(wc.opaque)Ia.splice(oe,Lc-oe,rd,"overlay "+xd),Lc=oe+2;else for(;oex.options.maxHighlightLength&&Fa(x.doc.mode,xa.state),$a=Mb(x,ca,xa);Ia&&(xa.state=Ia);ca.stateAfter=xa.save(!Ia);ca.styles=$a.styles;$a.classes?ca.styleClasses=$a.classes:ca.styleClasses&&(ca.styleClasses=null);Aa===x.doc.highlightFrontier&&(x.doc.modeFrontier= Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return ca.styles}function ob(x,ca,Aa){var xa=x.doc,Ia=x.display;if(!xa.mode.startState)return new rm(xa,!0,ca);var $a=dc(x,ca,Aa),lb=$a>xa.first&&Oa(xa,$a-1).stateAfter,pb=lb?rm.fromSaved(xa,lb,$a):new rm(xa,Ka(xa.mode),$a);xa.iter($a,ca,function(Vb){Ja(x,Vb.text,pb);var wc=pb.line;Vb.stateAfter=wc==ca-1||0==wc%5||wc>=Ia.viewFrom&&wcIa;Ia++){xa&&(xa[0]=Ba(x,Aa).mode);var $a=x.token(ca,Aa);if(ca.pos>ca.start)return $a}throw Error("Mode "+x.name+" failed to advance stream.");}function Qb(x,ca,Aa,xa){var Ia=x.doc,$a=Ia.mode; ca=cb(Ia,ca);var lb=Oa(Ia,ca.line);Aa=ob(x,ca.line,Aa);x=new Mi(lb.text,x.options.tabSize,Aa);var pb;for(xa&&(pb=[]);(xa||x.posx.options.maxHighlightLength){pb=!1;lb&&Ja(x,ca,xa,Lc.pos);Lc.pos=ca.length;var rd=null}else rd=ub(hb(Aa,Lc,xa.state,od),$a);if(od){var xd=od[0].name;xd&&(rd="m-"+(rd?xd+" "+rd:xd))}if(!pb||wc!=rd){for(;Vb< Lc.start;)Vb=Math.min(Lc.start,Vb+5E3),Ia(Vb,wc);wc=rd}Lc.start=Lc.pos}for(;Vblb;--ca){if(ca<=$a.first)return $a.first;var pb=Oa($a,ca-1),Vb=pb.stateAfter;if(Vb&&(!Aa||ca+(Vb instanceof Ni?Vb.lookAhead:0)<=$a.modeFrontier))return ca;pb=c(pb.text,null,x.options.tabSize);if(null==Ia||xa>pb)Ia=ca-1,xa=pb}return Ia}function uc(x,ca){x.modeFrontier=Math.min(x.modeFrontier, ca);if(!(x.highlightFrontierAa;xa--){var Ia=Oa(x,xa).stateAfter;if(Ia&&(!(Ia instanceof Ni)||xa+Ia.lookAhead=x:Vb.to>x);(lb||=[]).push(new xc(wc,Vb.from,Lc?null:Vb.to))}}Aa=lb;var od;if(xa)for(lb=0;lb=Ia:pb.to>Ia)||pb.from==Ia&&"bookmark"==Vb.type&&(!$a||pb.marker.insertLeft))wc=null==pb.from||(Vb.inclusiveLeft?pb.from<=Ia:pb.fromsa(lb.to,Ia.from)||0Vb||!Aa.inclusiveLeft&&!Vb)&&pb.push({from:lb.from,to:Ia.from});(0Oc(Ia,Aa.marker)))var Ia=Aa.marker;return Ia}function Vc(x,ca,Aa,xa,Ia){x=Oa(x,ca);if(x=ei&&x.markedSpans)for(ca=0;ca=Vb||0>=pb&&0<=Vb)&&(0>=pb&&($a.marker.inclusiveRight&&Ia.inclusiveLeft?0<=sa(lb.to,Aa):0=sa(lb.from,xa):0>sa(lb.from,xa))))return!0}}}function jd(x){for(var ca;ca=dd(x,!0);)x=ca.find(-1,!0).line;return x}function Cb(x,ca){x=Oa(x,ca);var Aa=jd(x);return x==Aa?ca:La(Aa)}function $b(x,ca){if(ca>x.lastLine())return ca;var Aa=Oa(x,ca);if(!Wb(x,Aa))return ca;for(;x= dd(Aa,!1);)Aa=x.find(1,!0).line;return La(Aa)+1}function Wb(x,ca){var Aa=ei&&ca.markedSpans;if(Aa)for(var xa,Ia=0;Iaca.maxLineLength&&(ca.maxLineLength=xa,ca.maxLine=Aa)})}function fd(x,ca){if(!x||/^\s*$/.test(x))return null;ca=ca.addModeClass?ks:Op;return ca[x]||(ca[x]=x.replace(/\S+/g,"cm-$\x26"))} function kd(x,ca){var Aa=b("span",null,null,vj?"padding-right: .1px":null);Aa={pre:b("pre",[Aa],"CodeMirror-line"),content:Aa,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};ca.measure={};for(var xa=0;xa<=(ca.rest?ca.rest.length:0);xa++){var Ia=xa?ca.rest[xa-1]:ca.line,$a=void 0;Aa.pos=0;Aa.addToken=Wd;var lb=x.display.measure;if(null!=sl)lb=sl;else{var pb=y(lb,document.createTextNode("AخA")),Vb=ii(pb,0,1).getBoundingClientRect();pb=ii(pb,1,2).getBoundingClientRect();Y(lb); lb=Vb&&Vb.left!=Vb.right?sl=3>pb.right-Vb.right:!1}lb&&($a=T(Ia,x.doc.direction))&&(Aa.addToken=Qd(Aa.addToken,$a));Aa.map=[];var wc=ca!=x.display.externalMeasured&&La(Ia);a:{var Lc=pb=Vb=lb=void 0,od=void 0,rd=void 0,xd=void 0;$a=Aa;wc=yb(x,Ia,wc);var oe=Ia.markedSpans,Af=Ia.text,Bg=0;if(oe)for(var vi=Af.length,sg=0,Di=1,Uh="",Qh=0;;){if(Qh==sg){od=Lc=pb=rd="";Vb=lb=null;Qh=Infinity;for(var di=[],qh=void 0,Wh=0;Whsg||bi.collapsed&&Xh.to==sg&&Xh.from==sg)){null!=Xh.to&&Xh.to!=sg&&Qh>Xh.to&&(Qh=Xh.to,Lc="");bi.className&&(od+=" "+bi.className);bi.css&&(rd=(rd?rd+";":"")+bi.css);bi.startStyle&&Xh.from==sg&&(pb+=" "+bi.startStyle);bi.endStyle&&Xh.to==Qh&&(qh||=[]).push(bi.endStyle,Xh.to);bi.title&&((lb||={}).title=bi.title);if(bi.attributes)for(var qj in bi.attributes)(lb||={})[qj]=bi.attributes[qj];bi.collapsed&&(!Vb||0>Oc(Vb.marker,bi))&&(Vb=Xh)}else Xh.from>sg&&Qh>Xh.from&& (Qh=Xh.from)}if(qh)for(Wh=0;Wh=vi)break;for(di=Math.min(vi,Qh);;){if(Uh){qh=sg+Uh.length;Vb||(Wh=qh>di?Uh.slice(0,di-sg):Uh,$a.addToken($a,Wh,xd?xd+od:od,pb,sg+Wh.length==Qh?Lc:"",rd,lb));if(qh>=di){Uh=Uh.slice(di-sg);sg=di;break}sg=qh;pb=""}Uh=Af.slice(Bg, Bg=wc[Di++]);xd=fd(wc[Di++],$a.cm.options)}}else for(lb=1;lb=Lc.offsetWidth&&2ui))),pb=Fl?n("span","​"):n("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px"),pb.setAttribute("cm-text",""),$a.call(Ia,0,0,Vb.call(lb,pb)));0==xa?(ca.measure.map=Aa.map,ca.measure.cache={}):((ca.measure.maps||(ca.measure.maps=[])).push(Aa.map),(ca.measure.caches||(ca.measure.caches=[])).push({}))}vj&&(qj=Aa.content.lastChild,/\bcm-tab\b/.test(qj.className)||qj.querySelector&&qj.querySelector(".cm-tab"))&& (Aa.content.className="cm-tab-wrap-hack");D(x,"renderLine",x,ca.line,Aa.pre);Aa.pre.className&&(Aa.textClass=B(Aa.pre.className,Aa.textClass||""));return Aa}function wd(x){var ca=n("span","•","cm-invalidchar");ca.title="\\u"+x.charCodeAt(0).toString(16);ca.setAttribute("aria-label",ca.title);return ca}function Wd(x,ca,Aa,xa,Ia,$a,lb){if(ca){if(x.splitSpaces){var pb=x.trailingSpace;if(1ui?pb.appendChild(n("span",[oe])):pb.appendChild(oe);x.map.push(x.pos,x.pos+xd,oe);x.col+=xd;x.pos+=xd}if(!rd)break;od+=xd+1;"\t"==rd[0]?(rd=x.cm.options.tabSize,rd-=x.col%rd,xd=pb.appendChild(n("span", q(rd),"cm-tab")),xd.setAttribute("role","presentation"),xd.setAttribute("cm-text","\t"),x.col+=rd):("\r"==rd[0]||"\n"==rd[0]?(xd=pb.appendChild(n("span","\r"==rd[0]?"␍":"␤","cm-invalidchar")),xd.setAttribute("cm-text",rd[0])):(xd=x.cm.options.specialCharPlaceholder(rd[0]),xd.setAttribute("cm-text",rd[0]),Sg&&9>ui?pb.appendChild(n("span",[xd])):pb.appendChild(xd)),x.col+=1);x.map.push(x.pos,x.pos+1,xd);x.pos++}}else x.col+=ca.length,pb=document.createTextNode(Vb),x.map.push(x.pos,x.pos+ca.length,pb), Sg&&9>ui&&(Lc=!0),x.pos+=ca.length;x.trailingSpace=32==Vb.charCodeAt(ca.length-1);if(Aa||xa||Ia||Lc||$a||lb){ca=Aa||"";xa&&(ca+=xa);Ia&&(ca+=Ia);xa=n("span",[pb],ca,$a);if(lb)for(var Af in lb)lb.hasOwnProperty(Af)&&"style"!=Af&&"class"!=Af&&xa.setAttribute(Af,lb[Af]);return x.content.appendChild(xa)}x.content.appendChild(pb)}}function Qd(x,ca){return function(Aa,xa,Ia,$a,lb,pb,Vb){Ia=Ia?Ia+" cm-force-border":"cm-force-border";for(var wc=Aa.pos,Lc=wc+xa.length;;){for(var od=void 0,rd=0;rdwc&&od.from<=wc);rd++);if(od.to>=Lc)return x(Aa,xa,Ia,$a,lb,pb,Vb);x(Aa,xa.slice(0,od.to-wc),Ia,$a,null,pb,Vb);$a=null;xa=xa.slice(od.to-wc);wc=od.to}}}function Ge(x,ca,Aa,xa){var Ia=!xa&&Aa.widgetNode;Ia&&x.map.push(x.pos,x.pos+ca,Ia);!xa&&x.cm.display.input.needsContentAttribute&&(Ia||=x.content.appendChild(document.createElement("span")),Ia.setAttribute("cm-marker",Aa.id));Ia&&(x.cm.display.input.setUneditable(Ia),x.content.appendChild(Ia));x.pos+=ca;x.trailingSpace=!1}function de(x, ca,Aa){for(var xa=this.line=ca,Ia;xa=dd(xa,!1);)xa=xa.find(1,!0).line,(Ia||=[]).push(xa);this.size=(this.rest=Ia)?La(E(this.rest))-Aa+1:1;this.node=this.text=null;this.hidden=Wb(x,ca)}function $c(x,ca,Aa){var xa=[],Ia;for(Ia=ca;Iaui&&(x.node.style.zIndex=2));return x.node}function re(x,ca){var Aa=x.display.externalMeasured;return Aa&&Aa.line==ca.line?(x.display.externalMeasured= null,ca.measure=Aa.measure,Aa.built):kd(x,ca)}function xf(x,ca){var Aa=ca.bgClass?ca.bgClass+" "+(ca.line.bgClass||""):ca.line.bgClass;Aa&&(Aa+=" CodeMirror-linebackground");if(ca.background)Aa?ca.background.className=Aa:(ca.background.parentNode.removeChild(ca.background),ca.background=null);else if(Aa){var xa=Yf(ca);ca.background=xa.insertBefore(n("div",null,Aa),xa.firstChild);x.display.input.setUneditable(ca.background)}ca.line.wrapClass?Yf(ca).className=ca.line.wrapClass:ca.node!=ca.text&&(ca.node.className= "");ca.text.className=(ca.textClass?ca.textClass+" "+(ca.line.textClass||""):ca.line.textClass)||""}function Dh(x,ca,Aa,xa){ca.gutter&&(ca.node.removeChild(ca.gutter),ca.gutter=null);ca.gutterBackground&&(ca.node.removeChild(ca.gutterBackground),ca.gutterBackground=null);if(ca.line.gutterClass){var Ia=Yf(ca);ca.gutterBackground=n("div",null,"CodeMirror-gutter-background "+ca.line.gutterClass,"left: "+(x.options.fixedGutter?xa.fixedPos:-xa.gutterTotalWidth)+"px; width: "+xa.gutterTotalWidth+"px"); x.display.input.setUneditable(ca.gutterBackground);Ia.insertBefore(ca.gutterBackground,ca.text)}Ia=ca.line.gutterMarkers;if(x.options.lineNumbers||Ia){var $a=Yf(ca),lb=ca.gutter=n("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?xa.fixedPos:-xa.gutterTotalWidth)+"px");lb.setAttribute("aria-hidden","true");x.display.input.setUneditable(lb);$a.insertBefore(lb,ca.text);ca.line.gutterClass&&(lb.className+=" "+ca.line.gutterClass);!x.options.lineNumbers||Ia&&Ia["CodeMirror-linenumbers"]|| (ca.lineNumber=lb.appendChild(n("div",oa(x.options,Aa),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+xa.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px")));if(Ia)for(ca=0;caAa)return{map:x.measure.maps[ca],cache:x.measure.caches[ca],before:!0}}}function kb(x,ca){if(ca>=x.display.viewFrom&&ca=x.lineN&&card;rd++){for(;pb&&aa(ca.line.text.charAt(lb.coverStart+pb));)--pb;for(;lb.coverStart+Vbui&&0==pb&&Vb==lb.coverEnd-lb.coverStart)var xd=xa.parentNode.getBoundingClientRect();else{xd=ii(xa,pb,Vb).getClientRects();Vb=Jk;if("left"==Lc)for(wc=0;wcui&&((rd=!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI)||(null!=Km?rd=Km:(Lc=y(x.display.measure,n("span","x")),rd=Lc.getBoundingClientRect(),Lc=ii(Lc,0,1).getBoundingClientRect(),rd=Km=1ui)||pb||xd&&(xd.left||xd.right)||(xd=(xd=xa.parentNode.getClientRects()[0])?{left:xd.left,right:xd.left+Pc(x.display),top:xd.top,bottom:xd.bottom}:Jk);xa=xd.top-ca.rect.top;pb=xd.bottom-ca.rect.top;rd=(xa+pb)/2;Lc=ca.view.measure.heights;for(lb=0;lbca)$a=Vb-pb,Ia=$a-1,ca>=Vb&&(lb="right");if(null!=Ia){xa=x[wc+2];pb==Vb&&Aa==(xa.insertLeft?"left":"right")&&(lb=Aa);if("left"==Aa&&0==Ia)for(;wc&&x[wc-2]==x[wc-3]&&x[wc-1].insertLeft;)xa=x[(wc-=3)+2],lb="left";if("right"==Aa&&Ia==Vb-pb)for(;wc=xa.text.length?(wc=xa.text.length,ca="before"):0>=wc&&(wc=0,ca="after");if(!Vb)return lb("before"==ca?wc-1:wc,"before"==ca);var Lc=V(Vb, wc,ca),od=kn;Lc=pb(wc,Lc,"before"==ca);null!=od&&(Lc.other=pb(wc,od,"before"!=ca));return Lc}function Eg(x,ca){var Aa=0;ca=cb(x.doc,ca);x.options.lineWrapping||(Aa=Pc(x.display)*ca.ch);ca=Oa(x.doc,ca.line);x=sb(ca)+x.display.lineSpace.offsetTop;return{left:Aa,right:Aa,top:x,bottom:x+ca.height}}function qb(x,ca,Aa,xa,Ia){x=ia(x,ca,Aa);x.xRel=Ia;xa&&(x.outside=xa);return x}function za(x,ca,Aa){var xa=x.doc;Aa+=x.display.viewOffset;if(0>Aa)return qb(xa.first,0,null,-1,-1);var Ia=ma(xa,Aa),$a=xa.first+ xa.size-1;if(Ia>$a)return qb(xa.first+xa.size-1,Oa(xa,$a).text.length,null,1,1);0>ca&&(ca=0);for(var lb=Oa(xa,Ia);;){$a=ab(x,lb,Ia,ca,Aa);var pb=void 0;var Vb=$a.ch+(0<$a.xRel||0<$a.outside?1:0);if(lb=ei&&lb.markedSpans)for(var wc=0;wcVb)&&(!pb||0>Oc(pb,Lc.marker))&&(pb=Lc.marker)}if(!pb)return $a;$a=pb.find(1);if($a.line==Ia)return $a;lb=Oa(xa,Ia=$a.line)}}function ea(x,ca,Aa,xa){xa-=ke(ca);ca=ca.text.length; var Ia=U(function($a){return nb(x,Aa,$a-1).bottom<=xa},ca,0);ca=U(function($a){return nb(x,Aa,$a).top>xa},Ia,ca);return{begin:Ia,end:ca}}function ua(x,ca,Aa,xa){Aa||=rb(x,ca);xa=bf(x,ca,nb(x,Aa,xa),"line").top;return ea(x,ca,Aa,xa)}function Na(x,ca,Aa,xa){return x.bottom<=Aa?!1:x.top>Aa?!0:(xa?x.left:x.right)>ca}function ab(x,ca,Aa,xa,Ia){Ia-=sb(ca);var $a=rb(x,ca),lb=ke(ca),pb=0,Vb=ca.text.length,wc=!0,Lc=T(ca,x.doc.direction);Lc&&(Lc=(x.options.lineWrapping?ic:Db)(x,ca,Aa,$a,Lc,xa,Ia),pb=(wc=1!= Lc.level)?Lc.from:Lc.to-1,Vb=wc?Lc.to:Lc.from-1);var od=null,rd=null;Lc=U(function(oe){var Af=nb(x,$a,oe);Af.top+=lb;Af.bottom+=lb;if(!Na(Af,xa,Ia,!1))return!1;Af.top<=Ia&&Af.left<=xa&&(od=oe,rd=Af);return!0},pb,Vb);var xd=!1;rd?(pb=xa-rd.left=xd.bottom?1:0);Lc=O(ca.text,Lc,1);return qb(Aa,Lc,wc,xd,xa-pb)}function Db(x,ca,Aa,xa,Ia,$a,lb){var pb=U(function(Lc){Lc=Ia[Lc];var od=1!=Lc.level;return Na(pg(x,ia(Aa,od?Lc.to:Lc.from,od?"before":"after"),"line",ca,xa),$a,lb,!0)},0,Ia.length-1),Vb=Ia[pb];if(0lb&&(Vb=Ia[pb-1])}return Vb}function ic(x,ca,Aa,xa,Ia,$a,lb){lb=ea(x,ca,xa,lb);Aa=lb.begin;lb=lb.end;/\s/.test(ca.text.charAt(lb- 1))&&lb--;for(var pb=ca=null,Vb=0;Vb=lb||wc.to<=Aa)){var Lc=nb(x,xa,1!=wc.level?Math.min(lb,wc.to)-1:Math.max(Aa,wc.from)).right;Lc=Lc<$a?$a-Lc+1E9:Lc-$a;if(!ca||pb>Lc)ca=wc,pb=Lc}}ca||=Ia[Ia.length-1];ca.fromlb&&(ca={from:ca.from,to:lb,level:ca.level});return ca}function Gc(x){if(null!=x.cachedTextHeight)return x.cachedTextHeight;if(null==vg){vg=n("pre",null,"CodeMirror-line-like");for(var ca=0;49>ca;++ca)vg.appendChild(document.createTextNode("x")), vg.appendChild(n("br"));vg.appendChild(document.createTextNode("x"))}y(x.measure,vg);ca=vg.offsetHeight/50;3=x.display.viewTo)return null;ca-=x.display.viewFrom;if(0>ca)return null;x=x.display.view;for(var Aa=0;Aaca)return Aa}function Ff(x,ca,Aa,xa){null==ca&&(ca=x.doc.first);null==Aa&&(Aa=x.doc.first+x.doc.size);xa||=0;var Ia=x.display; xa&&Aaca)&&(Ia.updateLineNumbers=ca);x.curOp.viewChanged=!0;if(ca>=Ia.viewTo)ei&&Cb(x.doc,ca)Ia.viewFrom?jg(x):(Ia.viewFrom+=xa,Ia.viewTo+=xa);else if(ca<=Ia.viewFrom&&Aa>=Ia.viewTo)jg(x);else if(ca<=Ia.viewFrom){var $a=Jf(x,Aa,Aa+xa,1);$a?(Ia.view=Ia.view.slice($a.index),Ia.viewFrom=$a.lineN,Ia.viewTo+=xa):jg(x)}else if(Aa>=Ia.viewTo)($a=Jf(x,ca,ca,-1))?(Ia.view=Ia.view.slice(0, $a.index),Ia.viewTo=$a.lineN):jg(x);else{$a=Jf(x,ca,ca,-1);var lb=Jf(x,Aa,Aa+xa,1);$a&&lb?(Ia.view=Ia.view.slice(0,$a.index).concat($c(x,$a.lineN,lb.lineN)).concat(Ia.view.slice(lb.index)),Ia.viewTo+=xa):jg(x)}if(x=Ia.externalMeasured)Aa=Ia.lineN&&ca=xa.viewTo||(x=xa.view[Me(x, ca)],null!=x.node&&(x=x.changes||(x.changes=[]),-1==p(x,Aa)&&x.push(Aa)))}function jg(x){x.display.viewFrom=x.display.viewTo=x.doc.first;x.display.view=[];x.display.viewOffset=0}function Jf(x,ca,Aa,xa){var Ia=Me(x,ca),$a=x.display.view;if(!ei||Aa==x.doc.first+x.doc.size)return{index:Ia,lineN:Aa};for(var lb=x.display.viewFrom,pb=0;pbxa?0:$a.length- 1))return null;Aa+=xa*$a[Ia-(0>xa?1:0)].size;Ia+=xa}return{index:Ia,lineN:Aa}}function tg(x){x=x.display.view;for(var ca=0,Aa=0;Aa=x.display.viewTo||Vb.to().lineoe&&(oe=0);oe=Math.round(oe);Bg=Math.round(Bg);pb.appendChild(n("div",null,"CodeMirror-selected","position: absolute; left: "+xd+"px;\n top: "+oe+"px; width: "+(null==Af?Lc-xd:Af)+"px;\n height: "+(Bg-oe)+"px"))}function Ia(xd,oe,Af){function Bg(qh,Wh){return tf(x,ia(xd,qh),"div",sg,Wh)}function vi(qh,Wh,Xh){qh=ua(x,sg,null,qh);Wh="ltr"==Wh==("after"==Xh)?"left":"right";Xh="after"==Xh?qh.begin:qh.end-(/\s/.test(sg.text.charAt(qh.end- 1))?2:1);return Bg(Xh,Wh)[Wh]}var sg=Oa(lb,xd),Di=sg.text.length,Uh,Qh,di=T(sg,lb.direction);P(di,oe||0,null==Af?Di:Af,function(qh,Wh,Xh,bi){var qj="ltr"==Xh,zk=Bg(qh,qj?"left":"right"),hl=Bg(Wh-1,qj?"right":"left"),un=null==oe&&0==qh,Vm=null==Af&&Wh==Di,tn=0==bi;bi=!di||bi==di.length-1;3>=hl.top-zk.top?(Wh=(od?un:Vm)&&tn?wc:(qj?zk:hl).left,xa(Wh,zk.top,((od?Vm:un)&&bi?Lc:(qj?hl:zk).right)-Wh,zk.bottom)):(qj?(qj=od&&un&&tn?wc:zk.left,un=od?Lc:vi(qh,Xh,"before"),qh=od?wc:vi(Wh,Xh,"after"),Vm=od&&Vm&& bi?Lc:hl.right):(qj=od?vi(qh,Xh,"before"):wc,un=!od&&un&&tn?Lc:zk.right,qh=!od&&Vm&&bi?wc:hl.left,Vm=od?vi(Wh,Xh,"after"):Lc),xa(qj,zk.top,un-qj,zk.bottom),zk.bottomji(zk,Uh))Uh=zk;0>ji(hl,Uh)&&(Uh=hl);if(!Qh||0>ji(zk,Qh))Qh=zk;0>ji(hl,Qh)&&(Qh=hl)});return{start:Uh,end:Qh}}var $a=x.display,lb=x.doc,pb=document.createDocumentFragment(),Vb=Ib(x.display),wc=Vb.left,Lc=Math.max($a.sizerWidth,be(x)-$a.sizer.offsetLeft)-Vb.right, od="ltr"==lb.direction;$a=ca.from();ca=ca.to();if($a.line==ca.line)Ia($a.line,$a.ch,ca.ch);else{var rd=Oa(lb,$a.line);Vb=Oa(lb,ca.line);Vb=jd(rd)==jd(Vb);$a=Ia($a.line,$a.ch,Vb?rd.text.length+1:null).end;ca=Ia(ca.line,Vb?0:null,ca.ch).start;Vb&&($a.topx.options.cursorBlinkRate&&(ca.cursorDiv.style.visibility="hidden")}}function rj(x){x.hasFocus()||(x.display.input.focus(),x.state.focused||th(x))}function Oi(x){x.state.delayingBlurEvent=!0;setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,x.state.focused&&Bk(x))}, 100)}function th(x,ca){x.state.delayingBlurEvent&&!x.state.draggingText&&(x.state.delayingBlurEvent=!1);"nocursor"!=x.options.readOnly&&(x.state.focused||(D(x,"focus",x,ca),x.state.focused=!0,A(x.display.wrapper,"CodeMirror-focused"),x.curOp||x.display.selForContextMenu==x.doc.sel||(x.display.input.reset(),vj&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Oj(x))}function Bk(x,ca){x.state.delayingBlurEvent||(x.state.focused&&(D(x,"blur",x,ca),x.state.focused= !1,Wm(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function yj(x){for(var ca=x.display,Aa=ca.lineDiv.offsetTop,xa=Math.max(0,ca.scroller.getBoundingClientRect().top),Ia=ca.lineDiv.getBoundingClientRect().top,$a=0,lb=0;lbui){Vb=pb.node.offsetTop+pb.node.offsetHeight;var Lc=Vb-Aa;Aa=Vb}else{var od= pb.node.getBoundingClientRect();Lc=od.bottom-od.top;!Vb&&pb.text.firstChild&&(wc=pb.text.firstChild.getBoundingClientRect().right-od.left-1)}Vb=pb.line.height-Lc;if(.005Vb)if(Iax.display.sizerWidth&&(wc=Math.ceil(wc/Pc(x.display)),wc>x.display.maxLineLength&&(x.display.maxLineLength=wc,x.display.maxLine=pb.line,x.display.maxLineChanged=!0))}}2=Ia&&(xa=ma(ca,sb(Oa(ca,Aa))- x.wrapper.clientHeight),Ia=Aa)}return{from:xa,to:Math.max(Ia,xa+1)}}function ih(x,ca){var Aa=x.display,xa=Gc(x.display);0>ca.top&&(ca.top=0);var Ia=x.curOp&&null!=x.curOp.scrollTop?x.curOp.scrollTop:Aa.scroller.scrollTop,$a=Od(x),lb={};ca.bottom-ca.top>$a&&(ca.bottom=ca.top+$a);var pb=x.doc.height+Sb(Aa),Vb=ca.toppb-xa;ca.topIa+$a&&($a=Math.min(ca.top,(xa?pb:ca.bottom)-$a),$a!=Ia&&(lb.scrollTop=$a));Ia=x.options.fixedGutter?0:Aa.gutters.offsetWidth; $a=x.curOp&&null!=x.curOp.scrollLeft?x.curOp.scrollLeft:Aa.scroller.scrollLeft-Ia;x=be(x)-Aa.gutters.offsetWidth;if(Aa=ca.right-ca.left>x)ca.right=ca.left+x;10>ca.left?lb.scrollLeft=0:ca.left<$a?lb.scrollLeft=Math.max(0,ca.left+Ia-(Aa?0:10)):ca.right>x+$a-3&&(lb.scrollLeft=ca.right+(Aa?0:10)-x);return lb}function wf(x,ca){null!=ca&&(Il(x),x.curOp.scrollTop=(null==x.curOp.scrollTop?x.doc.scrollTop:x.curOp.scrollTop)+ca)}function Zf(x){Il(x);var ca=x.getCursor();x.curOp.scrollToPos={from:ca,to:ca,margin:x.options.cursorScrollMargin}} function vl(x,ca,Aa){null==ca&&null==Aa||Il(x);null!=ca&&(x.curOp.scrollLeft=ca);null!=Aa&&(x.curOp.scrollTop=Aa)}function Il(x){var ca=x.curOp.scrollToPos;if(ca){x.curOp.scrollToPos=null;var Aa=Eg(x,ca.from),xa=Eg(x,ca.to);Pe(x,Aa,xa,ca.margin)}}function Pe(x,ca,Aa,xa){ca=ih(x,{left:Math.min(ca.left,Aa.left),top:Math.min(ca.top,Aa.top)-xa,right:Math.max(ca.right,Aa.right),bottom:Math.max(ca.bottom,Aa.bottom)+xa});vl(x,ca.scrollLeft,ca.scrollTop)}function ek(x,ca){2>Math.abs(x.doc.scrollTop-ca)|| (xk||qi(x,{top:ca}),pn(x,ca,!0),xk&&qi(x),li(x,100))}function pn(x,ca,Aa){ca=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,ca));if(x.display.scroller.scrollTop!=ca||Aa)x.doc.scrollTop=ca,x.display.scrollbars.setScrollTop(ca),x.display.scroller.scrollTop!=ca&&(x.display.scroller.scrollTop=ca)}function fk(x,ca,Aa,xa){ca=Math.max(0,Math.min(ca,x.display.scroller.scrollWidth-x.display.scroller.clientWidth));(Aa?ca==x.doc.scrollLeft:2>Math.abs(x.doc.scrollLeft-ca))&& !xa||(x.doc.scrollLeft=ca,xh(x),x.display.scroller.scrollLeft!=ca&&(x.display.scroller.scrollLeft=ca),x.display.scrollbars.setScrollLeft(ca))}function sm(x){var ca=x.display,Aa=ca.gutters.offsetWidth,xa=Math.round(x.doc.height+Sb(x.display));return{clientHeight:ca.scroller.clientHeight,viewHeight:ca.wrapper.clientHeight,scrollWidth:ca.scroller.scrollWidth,clientWidth:ca.scroller.clientWidth,viewWidth:ca.wrapper.clientWidth,barLeft:x.options.fixedGutter?Aa:0,docHeight:xa,scrollHeight:xa+Ad(x)+ca.barHeight, nativeBarWidth:ca.nativeBarWidth,gutterWidth:Aa}}function Eh(x,ca){ca||=sm(x);var Aa=x.display.barWidth,xa=x.display.barHeight;gk(x,ca);for(ca=0;4>ca&&Aa!=x.display.barWidth||xa!=x.display.barHeight;ca++)Aa!=x.display.barWidth&&x.options.lineWrapping&&yj(x),gk(x,sm(x)),Aa=x.display.barWidth,xa=x.display.barHeight}function gk(x,ca){var Aa=x.display,xa=Aa.scrollbars.update(ca);Aa.sizer.style.paddingRight=(Aa.barWidth=xa.right)+"px";Aa.sizer.style.paddingBottom=(Aa.barHeight=xa.bottom)+"px";Aa.heightForcer.style.borderBottom= xa.bottom+"px solid transparent";xa.right&&xa.bottom?(Aa.scrollbarFiller.style.display="block",Aa.scrollbarFiller.style.height=xa.bottom+"px",Aa.scrollbarFiller.style.width=xa.right+"px"):Aa.scrollbarFiller.style.display="";xa.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(Aa.gutterFiller.style.display="block",Aa.gutterFiller.style.height=xa.bottom+"px",Aa.gutterFiller.style.width=ca.gutterWidth+"px"):Aa.gutterFiller.style.display=""}function Jl(x){x.display.scrollbars&&(x.display.scrollbars.clear(), x.display.scrollbars.addClass&&Wm(x.display.wrapper,x.display.scrollbars.addClass));x.display.scrollbars=new yk[x.options.scrollbarStyle](function(ca){x.display.wrapper.insertBefore(ca,x.display.scrollbarFiller);Dg(ca,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)});ca.setAttribute("cm-not-content","true")},function(ca,Aa){"horizontal"==Aa?fk(x,ca):ek(x,ca)},x);x.display.scrollbars.addClass&&A(x.display.wrapper,x.display.scrollbars.addClass)}function Kk(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:++pj,markArrays:null};x=x.curOp;zo?zo.ops.push(x):x.ownsGroup=zo={ops:[x],delayedCallbacks:[]}}function kg(x){(x=x.curOp)&&Kc(x,function(ca){for(var Aa=0;Aa=$a.viewTo)||$a.maxLineChanged&& Ia.options.lineWrapping;xa.update=xa.mustUpdate&&new Gl(Ia,xa.mustUpdate&&{top:xa.scrollTop,ensure:xa.scrollToPos},xa.forceUpdate)}for(Aa=0;Aaod;od++){var rd= !1;pb=pg(Ia,Vb);var xd=wc&&wc!=Vb?pg(Ia,wc):pb;pb={left:Math.min(pb.left,xd.left),top:Math.min(pb.top,xd.top)-Lc,right:Math.max(pb.left,xd.left),bottom:Math.max(pb.bottom,xd.bottom)+Lc};xd=ih(Ia,pb);var oe=Ia.doc.scrollTop,Af=Ia.doc.scrollLeft;null!=xd.scrollTop&&(ek(Ia,xd.scrollTop),1wc.top+od.top?Vb=!0:wc.bottom+od.top>(rd.defaultView.innerHeight||rd.documentElement.clientHeight)&&(Vb=!1),null==Vb||yo||(wc=n("div","​",null,"position: absolute;\n top: "+(wc.top-Lc.viewOffset-Ia.display.lineSpace.offsetTop)+"px;\n height: "+(wc.bottom-wc.top+Ad(Ia)+Lc.barHeight)+"px;\n left: "+wc.left+"px; width: "+Math.max(2,wc.right-wc.left)+"px;"),Ia.display.lineSpace.appendChild(wc), wc.scrollIntoView(Vb),Ia.display.lineSpace.removeChild(wc)))}wc=xa.maybeHiddenMarkers;Vb=xa.maybeUnhiddenMarkers;if(wc)for(Lc=0;Lc= x.display.viewTo)){var Aa=+new Date+x.options.workTime,xa=ob(x,ca.highlightFrontier),Ia=[];ca.iter(xa.line,Math.min(ca.first+ca.size,x.display.viewTo+500),function($a){if(xa.line>=x.display.viewFrom){var lb=$a.styles,pb=$a.text.length>x.options.maxHighlightLength?Fa(ca.mode,xa.state):null,Vb=Mb(x,$a,xa,!0);pb&&(xa.state=pb);$a.styles=Vb.styles;pb=$a.styleClasses;(Vb=Vb.classes)?$a.styleClasses=Vb:pb&&($a.styleClasses=null);Vb=!lb||lb.length!=$a.styles.length||pb!=Vb&&(!pb||!Vb||pb.bgClass!=Vb.bgClass|| pb.textClass!=Vb.textClass);for(pb=0;!Vb&&pbAa)return li(x,x.options.workDelay),!0});ca.highlightFrontier=xa.line;ca.modeFrontier=Math.max(ca.modeFrontier,xa.line);Ia.length&&rg(x,function(){for(var $a=0;$a=Aa.viewFrom&&ca.visible.to<=Aa.viewTo&&(null==Aa.updateLineNumbers||Aa.updateLineNumbers>=Aa.viewTo)&&Aa.renderedView==Aa.view&&0==tg(x))return!1;$k(x)&&(jg(x),ca.dims=Rd(x));var Ia=xa.first+xa.size,$a=Math.max(ca.visible.from-x.options.viewportMargin,xa.first),lb=Math.min(Ia,ca.visible.to+x.options.viewportMargin);Aa.viewFrom<$a&&20>$a-Aa.viewFrom&&($a=Math.max(xa.first,Aa.viewFrom));Aa.viewTo>lb&&20>Aa.viewTo-lb&&(lb=Math.min(Ia, Aa.viewTo));ei&&($a=Cb(x.doc,$a),lb=$b(x.doc,lb));xa=$a!=Aa.viewFrom||lb!=Aa.viewTo||Aa.lastWrapHeight!=ca.wrapperHeight||Aa.lastWrapWidth!=ca.wrapperWidth;Ia=x.display;0==Ia.view.length||$a>=Ia.viewTo||lb<=Ia.viewFrom?(Ia.view=$c(x,$a,lb),Ia.viewFrom=$a):(Ia.viewFrom>$a?Ia.view=$c(x,$a,Ia.viewFrom).concat(Ia.view):Ia.viewFrom<$a&&(Ia.view=Ia.view.slice(Me(x,$a))),Ia.viewFrom=$a,Ia.viewTolb&&(Ia.view=Ia.view.slice(0,Me(x,lb))));Ia.viewTo=lb; Aa.viewOffset=sb(Oa(x.doc,Aa.viewFrom));x.display.mover.style.top=Aa.viewOffset+"px";lb=tg(x);if(!xa&&0==lb&&!ca.force&&Aa.renderedView==Aa.view&&(null==Aa.updateLineNumbers||Aa.updateLineNumbers>=Aa.viewTo))return!1;x.hasFocus()?$a=null:($a=z(J(x)))&&u(x.display.lineDiv,$a)?($a={activeElt:$a},window.getSelection&&(Ia=J(x).defaultView.getSelection(),Ia.anchorNode&&Ia.extend&&u(x.display.lineDiv,Ia.anchorNode)&&($a.anchorNode=Ia.anchorNode,$a.anchorOffset=Ia.anchorOffset,$a.focusNode=Ia.focusNode, $a.focusOffset=Ia.focusOffset))):$a=null;4=x.display.viewFrom&&ca.visible.to<=x.display.viewTo)break;if(!Pg(x,ca))break;yj(x);xa=sm(x);Zh(x);Eh(x,xa);fj(x,xa);ca.force=!1}ca.signal(x,"update",x);if(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)ca.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo}function qi(x,ca){ca= new Gl(x,ca);if(Pg(x,ca)){yj(x);Mh(x,ca);var Aa=sm(x);Zh(x);Eh(x,Aa);fj(x,Aa);ca.finish()}}function Nm(x,ca,Aa){function xa(rd){var xd=rd.nextSibling;vj&&Uk&&x.display.currentWheelTarget==rd?rd.style.display="none":rd.parentNode.removeChild(rd);return xd}var Ia=x.display,$a=x.options.lineNumbers,lb=Ia.lineDiv,pb=lb.firstChild,Vb=Ia.view;Ia=Ia.viewFrom;for(var wc=0;wcui&&(this.gutters.style.zIndex=-1,this.scroller.style.paddingRight=0);vj||xk&&ti||(this.scroller.draggable=!0);x&&(x.appendChild?x.appendChild(this.wrapper):x(this.wrapper));this.reportedViewFrom=this.reportedViewTo=this.viewFrom=this.viewTo=ca.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=zj(xa.gutters,xa.lineNumbers);Om(this);Aa.init(this)} function Zl(x){var ca=x.wheelDeltaX,Aa=x.wheelDeltaY;null==ca&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(ca=x.detail);null==Aa&&x.detail&&x.axis==x.VERTICAL_AXIS?Aa=x.detail:null==Aa&&(Aa=x.wheelDelta);return{x:ca,y:Aa}}function Ck(x){x=Zl(x);x.x*=Xl;x.y*=Xl;return x}function Qj(x,ca){mm&&102==To&&(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 Aa=Zl(ca),xa=Aa.x;Aa=Aa.y;var Ia=Xl;0===ca.deltaMode&&(xa=ca.deltaX,Aa=ca.deltaY,Ia=1);var $a=x.display,lb=$a.scroller,pb=lb.scrollWidth>lb.clientWidth,Vb=lb.scrollHeight>lb.clientHeight;if(xa&&pb||Aa&&Vb){if(Aa&&Uk&&vj){pb=ca.target;var wc=$a.view;a:for(;pb!=lb;pb=pb.parentNode)for(var Lc=0;LcIa?Vb=Math.max(0,Vb+ Ia-50):pb=Math.min(x.doc.height,pb+Ia+50),qi(x,{top:Vb,bottom:pb})),20>mf&&0!==ca.deltaMode&&(null==$a.wheelStartX?($a.wheelStartX=lb.scrollLeft,$a.wheelStartY=lb.scrollTop,$a.wheelDX=xa,$a.wheelDY=Aa,setTimeout(function(){if(null!=$a.wheelStartX){var od=lb.scrollLeft-$a.wheelStartX,rd=lb.scrollTop-$a.wheelStartY;od=rd&&$a.wheelDY&&rd/$a.wheelDY||od&&$a.wheelDX&&od/$a.wheelDX;$a.wheelStartX=$a.wheelStartY=null;od&&(Xl=(Xl*mf+od)/(mf+1),++mf)}},200)):($a.wheelDX+=xa,$a.wheelDY+=Aa))):(Aa&&Vb&&ek(x, Math.max(0,lb.scrollTop+Aa*Ia)),fk(x,Math.max(0,lb.scrollLeft+xa*Ia)),(!Aa||Aa&&Vb)&&R(ca),$a.wheelStartX=null)}}function Jg(x,ca,Aa){x=x&&x.options.selectionsMayTouch;Aa=ca[Aa];ca.sort(function(Vb,wc){return sa(Vb.from(),wc.from())});Aa=p(ca,Aa);for(var xa=1;xasa(x,ca.from))return x;if(0>=sa(x,ca.to))return mi(ca);var Aa=x.line+ca.text.length-(ca.to.line-ca.from.line)-1,xa=x.ch;x.line==ca.to.line&&(xa+=mi(ca).ch-ca.to.ch);return ia(Aa,xa)}function Pm(x,ca){for(var Aa=[],xa=0;xa$a-(x.cm?x.cm.options.historyEventDelay:500)||"*"==ca.origin.charAt(0))){if(Ia.lastOp==xa){Yn(Ia.done);var pb= E(Ia.done)}else Ia.done.length&&!E(Ia.done).ranges?pb=E(Ia.done):1Ia.undoDepth;)Ia.done.shift(),Ia.done[0].ranges||Ia.done.shift();Ia.done.push(Aa);Ia.generation= ++Ia.maxGeneration;Ia.lastModTime=Ia.lastSelTime=$a;Ia.lastOp=Ia.lastSelOp=xa;Ia.lastOrigin=Ia.lastSelOrigin=ca.origin;Vb||D(x,"historyAdded")}function Qm(x,ca){var Aa=E(ca);Aa&&Aa.ranges&&Aa.equals(x)||ca.push(x)}function up(x,ca,Aa,xa){var Ia=ca["spans_"+x.id],$a=0;x.iter(Math.max(x.first,Aa),Math.min(x.first+x.size,xa),function(lb){lb.markedSpans&&((Ia||=ca["spans_"+x.id]={})[$a]=lb.markedSpans);++$a})}function Sj(x,ca){var Aa;if(Aa=ca["spans_"+x.id]){for(var xa=[],Ia=0;Iasa(ca,x),xa!=0>sa(Aa,x)?(x=ca,ca=Aa):xa!=0>sa(ca,Aa)&&(ca=Aa)),new Xf(x,ca)): new Xf(Aa||ca,ca)}function En(x,ca,Aa,xa,Ia){null==Ia&&(Ia=x.cm&&(x.cm.display.shift||x.extend));Rg(x,new Gh([Ek(x.sel.primary(),ca,Aa,Ia)],0),xa)}function am(x,ca,Aa){for(var xa=[],Ia=x.cm&&(x.cm.display.shift||x.extend),$a=0;$asa(ca.primary().head,x.sel.primary().head)?-1:1);vh(x,Ze(x,ca,xa,!0));Aa&&!1===Aa.scroll||!x.cm||"nocursor"==x.cm.getOption("readOnly")||Zf(x.cm)}function vh(x,ca){ca.equals(x.sel)||(x.sel=ca,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Q(x.cm)),Ce(x,"cursorActivity",x))}function tj(x){vh(x,Ze(x,x.sel,null,!1))}function Ze(x,ca,Aa,xa){for(var Ia,$a=0;$a=ca.ch:pb.to>ca.ch))){if(Ia&&(D(Vb,"beforeCursorEnter"),Vb.explicitlyCleared))if($a.markedSpans){--lb;continue}else break;if(Vb.atomic){if(Aa){lb=Vb.find(0>xa?1:-1);pb=void 0;if(0>xa?Lc:wc)lb=Fn(x,lb,-xa,lb&&lb.line==ca.line?$a:null);if(lb&&lb.line==ca.line&&(pb=sa(lb,Aa))&&(0>xa?0>pb:0xa?-1:1);if(0>xa?wc:Lc)Aa=Fn(x,Aa,xa,Aa.line==ca.line?$a:null);return Aa?Si(x,Aa,ca,xa,Ia):null}}}return ca} function Bj(x,ca,Aa,xa,Ia){xa=xa||1;ca=Si(x,ca,Aa,xa,Ia)||!Ia&&Si(x,ca,Aa,xa,!0)||Si(x,ca,Aa,-xa,Ia)||!Ia&&Si(x,ca,Aa,-xa,!0);return ca?ca:(x.cantEdit=!0,ia(x.first,0))}function Fn(x,ca,Aa,xa){return 0>Aa&&0==ca.ch?ca.line>x.first?cb(x,ia(ca.line-1)):null:0x.lastLine())){if(ca.from.lineIa&&(ca={from:ca.from,to:ia(Ia,Oa(x,Ia).text.length),text:[ca.text[0]],origin:ca.origin});ca.removed=Va(x,ca.from,ca.to);Aa||=Pm(x,ca);x.cm?el(x.cm,ca,xa):Ti(x,ca,xa);um(x,Aa,om);x.cantEdit&&Bj(x,ia(x.firstLine(),0))&&(x.cantEdit=!1)}}function el(x,ca,Aa){var xa=x.doc,Ia=x.display,$a=ca.from,lb=ca.to,pb=!1,Vb=$a.line;x.options.lineWrapping|| (Vb=La(jd(Oa(xa,$a.line))),xa.iter(Vb,lb.line+1,function(wc){if(wc==Ia.maxLine)return pb=!0}));-1Ia.maxLineLength&&(Ia.maxLine=wc,Ia.maxLineLength=Lc,Ia.maxLineChanged=!0,pb=!1)}),pb&&(x.curOp.updateMaxLine=!0));uc(xa,$a.line);li(x,400);Aa=ca.text.length-(lb.line-$a.line)-1;ca.full?Ff(x):$a.line!=lb.line||1!=ca.text.length||hj(x.doc,ca)?Ff(x,$a.line,lb.line+ 1,Aa):If(x,$a.line,"text");Aa=N(x,"changes");if((xa=N(x,"change"))||Aa)ca={from:$a,to:lb,text:ca.text,removed:ca.removed,origin:ca.origin},xa&&Ce(x,"change",x,ca),Aa&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(ca);x.display.selForContextMenu=null}function lg(x,ca,Aa,xa,Ia){xa||=Aa;0>sa(xa,Aa)&&(xa=[xa,Aa],Aa=xa[0],xa=xa[1]);"string"==typeof ca&&(ca=x.splitLines(ca));He(x,{from:Aa,to:xa,text:ca,origin:Ia})}function fl(x,ca,Aa,xa){Aa=sa($a.from,E(xa).to);){var lb=xa.pop();if(0>sa(lb.from,$a.from)){$a.from=lb.from;break}}xa.push($a)}rg(x,function(){for(var pb=xa.length-1;0<=pb;pb--)lg(x.doc,"",xa[pb].from,xa[pb].to,"+delete");Zf(x)})}function nc(x,ca,Aa){ca=O(x.text,ca+Aa,Aa);return 0>ca||ca>x.text.length?null:ca}function jc(x,ca,Aa){x=nc(x,ca.ch,Aa);return null==x?null:new ia(ca.line,x,0>Aa?"after":"before")} function Lb(x,ca,Aa,xa,Ia){if(x&&("rtl"==ca.doc.direction&&(Ia=-Ia),x=T(Aa,ca.doc.direction))){x=0>Ia?E(x):x[0];var $a=0>Ia==(1==x.level)?"after":"before";if(0Ia?Aa.text.length-1:0;var Vb=nb(ca,lb,pb).top;pb=U(function(wc){return nb(ca,lb,wc).top==Vb},0>Ia==(1==x.level)?x.from:x.to-1,pb);"before"==$a&&(pb=nc(Aa,pb,1))}else pb=0>Ia?x.to:x.from;return new ia(xa,pb,$a)}return new ia(xa,0>Ia?Aa.text.length:0,0>Ia?"before":"after")}function Jb(x, ca,Aa,xa){var Ia=T(ca,x.doc.direction);if(!Ia)return jc(ca,Aa,xa);Aa.ch>=ca.text.length?(Aa.ch=ca.text.length,Aa.sticky="before"):0>=Aa.ch&&(Aa.ch=0,Aa.sticky="after");var $a=V(Ia,Aa.ch,Aa.sticky),lb=Ia[$a];if("ltr"==x.doc.direction&&0==lb.level%2&&(0Aa.ch:lb.fromxa,rd=pb(Aa,od?1:-1);if(null!=rd&&(od?rd<=lb.to&&rd<=Lc.end:rd>=lb.from&&rd>=Lc.begin))return new ia(Aa.line,rd,od?"before":"after")}lb=function(xd,oe,Af){for(var Bg=function(Uh,Qh){return Qh?new ia(Aa.line,pb(Uh,1),"before"):new ia(Aa.line,Uh,"after")};0<=xd&&xdui&&27==x.keyCode&&(x.returnValue=!1);var ca=x.keyCode;this.display.shift=16==ca||x.shiftKey;var Aa=Ld(this,x);rl&&(Ao=Aa?ca:null,!Aa&&88==ca&&!Uo&&(Uk?x.metaKey:x.ctrlKey)&&this.replaceSelection("", null,"cut"));xk&&!Uk&&!Aa&&46==ca&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut");18!=ca||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||je(this)}}function je(x){function ca(xa){18!=xa.keyCode&&xa.altKey||(Wm(Aa,"CodeMirror-crosshair"),K(document,"keyup",ca),K(document,"mouseover",ca))}var Aa=x.display.lineDiv;A(Aa,"CodeMirror-crosshair");Dg(document,"keyup",ca);Dg(document,"mouseover",ca)}function af(x){16==x.keyCode&&(this.doc.sel.shift=!1);L(this,x)} function jf(x){if(!(x.target&&x.target!=this.display.input.getField()||Hb(this.display,x)||L(this,x)||x.ctrlKey&&!x.altKey||Uk&&x.metaKey)){var ca=x.keyCode,Aa=x.charCode;if(rl&&ca==Ao)Ao=null,R(x);else if(!rl||x.which&&!(10>x.which)||!Ld(this,x))if(ca=String.fromCharCode(null==Aa?ca:Aa),"\b"!=ca&&!pe(this,x,ca))this.display.input.onKeyPress(x)}}function le(x,ca){var Aa=+new Date;if(Yg&&Yg.compare(Aa,x,ca))return Dj=Yg=null,"triple";if(Dj&&Dj.compare(Aa,x,ca))return Yg=new sp(Aa,x,ca),Dj=null,"double"; Dj=new sp(Aa,x,ca);Yg=null;return"single"}function qg(x){var ca=this.display;if(!(L(this,x)||ca.activeTouch&&ca.input.supportsTouch()))if(ca.input.ensurePolled(),ca.shift=x.shiftKey,Hb(ca,x))vj||(ca.scroller.draggable=!1,setTimeout(function(){return ca.scroller.draggable=!0},100));else if(!Oh(this,x,"gutterClick",!0)){var Aa=Ye(this,x),xa=ha(x),Ia=Aa?le(Aa,xa):"single";J(this).defaultView.focus();1==xa&&this.state.selectingText&&this.state.selectingText(x);if(!Aa||!Qg(this,xa,Aa,Ia,x))if(1==xa)Aa? Pf(this,Aa,Ia,x):(x.target||x.srcElement)==ca.scroller&&R(x);else if(2==xa)Aa&&En(this.doc,Aa),setTimeout(function(){return ca.input.focus()},20);else if(3==xa)if(jn)this.display.input.onContextMenu(x);else Oi(this)}}function Qg(x,ca,Aa,xa,Ia){var $a="Click";"double"==xa?$a="Double"+$a:"triple"==xa&&($a="Triple"+$a);return Sc(x,Ra((1==ca?"Left":2==ca?"Middle":"Right")+$a,Ia),Ia,function(lb){"string"==typeof lb&&(lb=xp[lb]);if(!lb)return!1;var pb=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),pb= lb(x,Aa)!=Vl}finally{x.state.suppressEdits=!1}return pb})}function Pf(x,ca,Aa,xa){Sg?setTimeout(g(rj,x),0):x.curOp.focus=z(J(x));var Ia=x.getOption("configureMouse");Ia=Ia?Ia(x,Aa,xa):{};null==Ia.unit&&(Ia.unit=(zq?xa.shiftKey&&xa.metaKey:xa.altKey)?"rectangle":"single"==Aa?"char":"double"==Aa?"word":"line");if(null==Ia.extend||x.doc.extend)Ia.extend=x.doc.extend||xa.shiftKey;null==Ia.addNew&&(Ia.addNew=Uk?xa.metaKey:xa.ctrlKey);null==Ia.moveOnDrag&&(Ia.moveOnDrag=!(Uk?xa.altKey:xa.ctrlKey));var $a= x.doc.sel,lb;x.options.dragDrop&&oo&&!x.isReadOnly()&&"single"==Aa&&-1<(lb=$a.contains(ca))&&(0>sa((lb=$a.ranges[lb]).from(),ca)||0ca.xRel)?Qf(x,xa,ca,Ia):Vg(x,xa,ca,Ia)}function Qf(x,ca,Aa,xa){var Ia=x.display,$a=!1,lb=ki(x,function(wc){vj&&(Ia.scroller.draggable=!1);x.state.draggingText=!1;x.state.delayingBlurEvent&&(x.hasFocus()?x.state.delayingBlurEvent=!1:Oi(x));K(Ia.wrapper.ownerDocument,"mouseup",lb);K(Ia.wrapper.ownerDocument,"mousemove",pb);K(Ia.scroller,"dragstart", Vb);K(Ia.scroller,"drop",lb);$a||(R(wc),xa.addNew||En(x.doc,Aa,null,null,xa.extend),vj&&!dj||Sg&&9==ui?setTimeout(function(){Ia.wrapper.ownerDocument.body.focus({preventScroll:!0});Ia.input.focus()},20):Ia.input.focus())}),pb=function(wc){$a=$a||10<=Math.abs(ca.clientX-wc.clientX)+Math.abs(ca.clientY-wc.clientY)},Vb=function(){return $a=!0};vj&&(Ia.scroller.draggable=!0);x.state.draggingText=lb;lb.copy=!xa.moveOnDrag;Dg(Ia.wrapper.ownerDocument,"mouseup",lb);Dg(Ia.wrapper.ownerDocument,"mousemove", pb);Dg(Ia.scroller,"dragstart",Vb);Dg(Ia.scroller,"drop",lb);x.state.delayingBlurEvent=!0;setTimeout(function(){return Ia.input.focus()},20);Ia.scroller.dragDrop&&Ia.scroller.dragDrop()}function Gg(x,ca,Aa){if("char"==Aa)return new Xf(ca,ca);if("word"==Aa)return x.findWordAt(ca);if("line"==Aa)return new Xf(ia(ca.line,0),cb(x.doc,ia(ca.line+1,0)));x=Aa(x,ca);return new Xf(x.from,x.to)}function Vg(x,ca,Aa,xa){function Ia(sg){if(0!=sa(xd,sg))if(xd=sg,"rectangle"==xa.unit){var Di=[],Uh=x.options.tabSize, Qh=c(Oa(Vb,Aa.line).text,Aa.ch,Uh),di=c(Oa(Vb,sg.line).text,sg.ch,Uh),qh=Math.min(Qh,di);Qh=Math.max(Qh,di);di=Math.min(Aa.line,sg.line);for(var Wh=Math.min(x.lastLine(),Math.max(Aa.line,sg.line));di<=Wh;di++){var Xh=Oa(Vb,di).text,bi=m(Xh,qh,Uh);qh==Qh?Di.push(new Xf(ia(di,bi),ia(di,bi))):Xh.length>bi&&Di.push(new Xf(ia(di,bi),ia(di,m(Xh,Qh,Uh))))}Di.length||Di.push(new Xf(Aa,Aa));Rg(Vb,Jg(x,wc.ranges.slice(0,od).concat(Di),od),{origin:"*mouse",scroll:!1});x.scrollIntoView(sg)}else Di=rd,qh=Gg(x, sg,xa.unit),sg=Di.anchor,0=Qh.to||Uh.lineoe.bottom?20:0;di&&setTimeout(ki(x,function(){Af== Di&&(pb.scroller.scrollTop+=di,$a(sg))}),50)}}function lb(sg){x.state.selectingText=!1;Af=Infinity;sg&&(R(sg),pb.input.focus());K(pb.wrapper.ownerDocument,"mousemove",Bg);K(pb.wrapper.ownerDocument,"mouseup",vi);Vb.history.lastSelOrigin=null}Sg&&Oi(x);var pb=x.display,Vb=x.doc;R(ca);var wc=Vb.sel,Lc=wc.ranges;if(xa.addNew&&!xa.extend){var od=Vb.sel.contains(Aa);var rd=-1$a:0<$a);Ia=Ia[pb+(x?-1:0)];Ia=(pb=x==(1==Ia.level))?Ia.from:Ia.to;pb=pb?"after":"before";return Aa.ch==Ia&&Aa.sticky==pb?ca:new Xf(new ia(Aa.line,Ia,pb),xa)}function Oh(x,ca,Aa,xa){if(ca.touches){var Ia=ca.touches[0].clientX;var $a=ca.touches[0].clientY}else try{Ia=ca.clientX,$a=ca.clientY}catch(Vb){return!1}if(Ia>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;xa&&R(ca);xa=x.display;var lb=xa.lineDiv.getBoundingClientRect(); if($a>lb.bottom||!N(x,Aa))return X(ca);$a-=lb.top-xa.viewOffset;for(lb=0;lb=Ia)return Ia=ma(x.doc,$a),D(x,Aa,x,Ia,x.display.gutterSpecs[lb].className,ca),X(ca)}}function Jj(x,ca){var Aa;(Aa=Hb(x.display,ca))||(Aa=N(x,"gutterContextMenu")?Oh(x,ca,"gutterContextMenu",!1):!1);if(!Aa&&!L(x,ca,"contextmenu")&&!jn)x.display.input.onContextMenu(ca)}function $f(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g, "")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-");Wc(x)}function xi(x,ca,Aa){!ca!=!(Aa&&Aa!=pm)&&(Aa=x.display.dragFunctions,ca=ca?Dg:K,ca(x.display.scroller,"dragstart",Aa.start),ca(x.display.scroller,"dragenter",Aa.enter),ca(x.display.scroller,"dragover",Aa.over),ca(x.display.scroller,"dragleave",Aa.leave),ca(x.display.scroller,"drop",Aa.drop))}function em(x){x.options.lineWrapping?(A(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Wm(x.display.wrapper, "CodeMirror-wrap"),Ac(x));Oe(x);Ff(x);Wc(x);setTimeout(function(){return Eh(x)},100)}function yg(x,ca){var Aa=this;if(!(this instanceof yg))return new yg(x,ca);this.options=ca=ca?h(ca):{};h(Bo,ca,!1);var xa=ca.value;"string"==typeof xa?xa=new mj(xa,ca.mode,null,ca.lineSeparator,ca.direction):ca.mode&&(xa.modeOption=ca.mode);this.doc=xa;var Ia=new yg.inputStyles[ca.inputStyle](this);x=this.display=new Zi(x,xa,Ia,ca);x.wrapper.CodeMirror=this;$f(this);ca.lineWrapping&&(this.display.wrapper.className+= " CodeMirror-wrap");Jl(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 Dl,keySeq:null,specialChars:null};ca.autofocus&&!ti&&x.input.focus();Sg&&11>ui&&setTimeout(function(){return Aa.display.input.reset(!0)},20);Ki(this);Zp||(vm(),Zp=!0);Kk(this);this.curOp.forceUpdate=!0;Rh(this,xa);ca.autofocus&&!ti||this.hasFocus()?setTimeout(function(){Aa.hasFocus()&& !Aa.state.focused&&th(Aa)},20):Bk(this);for(var $a in qm)if(qm.hasOwnProperty($a))qm[$a](this,ca[$a],pm);$k(this);ca.finishInit&&ca.finishInit(this);for(xa=0;xaui?Dg(xa.scroller,"dblclick",ki(x,function(pb){if(!L(x,pb)){var Vb=Ye(x,pb);!Vb||Oh(x,pb,"gutterClick",!0)||Hb(x.display,pb)||(R(pb),pb=x.findWordAt(Vb),En(x.doc,pb.anchor,pb.head))}})):Dg(xa.scroller,"dblclick",function(pb){return L(x,pb)||R(pb)});Dg(xa.scroller,"contextmenu",function(pb){return Jj(x,pb)});Dg(xa.input.getField(),"contextmenu",function(pb){xa.scroller.contains(pb.target)|| Jj(x,pb)});var Ia,$a={end:0};Dg(xa.scroller,"touchstart",function(pb){var Vb;if(Vb=!L(x,pb))1!=pb.touches.length?Vb=!1:(Vb=pb.touches[0],Vb=1>=Vb.radiusX&&1>=Vb.radiusY),Vb=!Vb;Vb&&!Oh(x,pb,"gutterClick",!0)&&(xa.input.ensurePolled(),clearTimeout(Ia),Vb=+new Date,xa.activeTouch={start:Vb,moved:!1,prev:300>=Vb-$a.end?$a:null},1==pb.touches.length&&(xa.activeTouch.left=pb.touches[0].pageX,xa.activeTouch.top=pb.touches[0].pageY))});Dg(xa.scroller,"touchmove",function(){xa.activeTouch&&(xa.activeTouch.moved= !0)});Dg(xa.scroller,"touchend",function(pb){var Vb=xa.activeTouch;if(Vb&&!Hb(xa,pb)&&null!=Vb.left&&!Vb.moved&&300>new Date-Vb.start){var wc=x.coordsChar(xa.activeTouch,"page");Vb=!Vb.prev||Aa(Vb,Vb.prev)?new Xf(wc,wc):!Vb.prev.prev||Aa(Vb,Vb.prev.prev)?x.findWordAt(wc):new Xf(ia(wc.line,0),cb(x.doc,ia(wc.line+1,0)));x.setSelection(Vb.anchor,Vb.head);x.focus();R(pb)}ca()});Dg(xa.scroller,"touchcancel",ca);Dg(xa.scroller,"scroll",function(){xa.scroller.clientHeight&&(ek(x,xa.scroller.scrollTop),fk(x, xa.scroller.scrollLeft,!0),D(x,"scroll",x))});Dg(xa.scroller,"mousewheel",function(pb){return Qj(x,pb)});Dg(xa.scroller,"DOMMouseScroll",function(pb){return Qj(x,pb)});Dg(xa.wrapper,"scroll",function(){return xa.wrapper.scrollTop=xa.wrapper.scrollLeft=0});xa.dragFunctions={enter:function(pb){L(x,pb)||S(pb)},over:function(pb){if(!L(x,pb)){var Vb=Ye(x,pb);if(Vb){var wc=document.createDocumentFragment();pi(x,Vb,wc);x.display.dragCursor||(x.display.dragCursor=n("div",null,"CodeMirror-cursors CodeMirror-dragcursors"), x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv));y(x.display.dragCursor,wc)}S(pb)}},start:function(pb){if(Sg&&(!x.state.draggingText||100>+new Date-sh))S(pb);else if(!L(x,pb)&&!Hb(x.display,pb)&&(pb.dataTransfer.setData("Text",x.getSelection()),pb.dataTransfer.effectAllowed="copyMove",pb.dataTransfer.setDragImage&&!dj)){var Vb=n("img",null,null,"position: fixed; left: 0; top: 0;");Vb.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d"; rl&&(Vb.width=Vb.height=1,x.display.wrapper.appendChild(Vb),Vb._top=Vb.offsetTop);pb.dataTransfer.setDragImage(Vb,0,0);rl&&Vb.parentNode.removeChild(Vb)}},drop:ki(x,Ok),leave:function(pb){L(x,pb)||Ui(x)}};var lb=xa.input.getField();Dg(lb,"keyup",function(pb){return af.call(x,pb)});Dg(lb,"keydown",ki(x,Zd));Dg(lb,"keypress",ki(x,jf));Dg(lb,"focus",function(pb){return th(x,pb)});Dg(lb,"blur",function(pb){return Bk(x,pb)})}function Fh(x,ca,Aa,xa){var Ia=x.doc,$a;null==Aa&&(Aa="add");"smart"==Aa&&(Ia.mode.indent? $a=ob(x,ca).state:Aa="prev");var lb=x.options.tabSize,pb=Oa(Ia,ca),Vb=c(pb.text,null,lb);pb.stateAfter&&(pb.stateAfter=null);var wc=pb.text.match(/^\s*/)[0];if(!xa&&!/\S/.test(pb.text)){var Lc=0;Aa="not"}else if("smart"==Aa&&(Lc=Ia.mode.indent($a,pb.text.slice(wc.length),pb.text),Lc==Vl||150Ia.first?c(Oa(Ia,ca-1).text,null,lb):0:"add"==Aa?Lc=Vb+x.options.indentUnit:"subtract"==Aa?Lc=Vb-x.options.indentUnit:"number"==typeof Aa&&(Lc=Vb+Aa);Lc=Math.max(0, Lc);Aa="";xa=0;if(x.options.indentWithTabs)for(x=Math.floor(Lc/lb);x;--x)xa+=lb,Aa+="\t";xalb,Vb=Vk(ca),wc=null; if(pb&&1lb?"cut":"+input")};He(x.doc,rd);Ce(x,"inputRead",x,rd)}ca&&!pb&&hh(x,ca);Zf(x);2>x.curOp.updateInput&&(x.curOp.updateInput=Lc);x.curOp.typing=!0;x.state.pasteIncoming=x.state.cutIncoming=-1}function nm(x,ca){var Aa=x.clipboardData&&x.clipboardData.getData("Text");if(Aa)return x.preventDefault(),ca.isReadOnly()|| ca.options.disableInput||!ca.hasFocus()||rg(ca,function(){return zl(ca,Aa,0,null,"paste")}),!0}function hh(x,ca){if(x.options.electricChars&&x.options.smartIndent)for(var Aa=x.doc.sel,xa=Aa.ranges.length-1;0<=xa;xa--){var Ia=Aa.ranges[xa];if(!(100Bg:56320<=Bg&&57343>Bg)?2:1))),-Aa)}else Bg=Ia?Jb(x.cm,Vb,ca,Aa):jc(Vb,ca,Aa);if(null==Bg){if(Af=!Af)Af=ca.line+wc,Af=x.first+x.size?Af=!1:(ca=new ia(Af,ca.ch,ca.sticky),Af=Vb=Oa(x,Af));if(Af)ca=Lb(Ia,x.cm,Vb,ca.line,wc);else return!1}else ca=Bg;return!0}var lb=ca,pb=Aa,Vb=Oa(x,ca.line),wc=Ia&&"rtl"==x.direction?-Aa:Aa;if("char"==xa||"codepoint"==xa)$a();else if("column"==xa)$a(!0);else if("word"==xa||"group"==xa)for(var Lc=null,od="group"==xa,rd=x.cm&& x.cm.getHelper(ca,"wordChars"),xd=!0;!(0>Aa)||$a(!xd);xd=!1){var oe=Vb.text.charAt(ca.ch)||"\n";oe=C(oe,rd)?"w":od&&"\n"==oe?"n":!od||/\s/.test(oe)?null:"p";!od||xd||oe||(oe="s");if(Lc&&Lc!=oe){0>Aa&&(Aa=1,$a(),ca.sticky="after");break}oe&&(Lc=oe);if(0Aa?0>=lb:lb>=Ia.height){ca.hitSide=!0;break}lb+=5*Aa}return ca}function Vn(x,ca){var Aa=kb(x,ca.line);if(!Aa||Aa.hidden)return null;var xa=Oa(x.doc,ca.line);Aa=Hf(Aa,xa,ca.line);x=T(xa,x.doc.direction);xa="left";x&&(xa=V(x,ca.ch)%2?"right":"left");ca=Ub(Aa.map,ca.ch,xa);ca.offset="right"==ca.collapse?ca.end:ca.start;return ca}function hi(x){for(;x;x= x.parentNode)if(/CodeMirror-gutter-wrapper/.test(x.className))return!0;return!1}function hn(x,ca){ca&&(x.bad=!0);return x}function ck(x,ca,Aa,xa,Ia){function $a(xd){return function(oe){return oe.id==xd}}function lb(){Lc&&(wc+=od,rd&&(wc+=od),Lc=rd=!1)}function pb(xd){xd&&(lb(),wc+=xd)}function Vb(xd){if(1==xd.nodeType){var oe=xd.getAttribute("cm-text");if(oe)pb(oe);else{oe=xd.getAttribute("cm-marker");var Af;if(oe)xd=x.findMarks(ia(xa,0),ia(Ia+1,0),$a(+oe)),xd.length&&(Af=xd[0].find(0))&&pb(Va(x.doc, Af.from,Af.to).join(od));else if("false"!=xd.getAttribute("contenteditable")&&(Af=/^(pre|div|p|li|table|br)$/i.test(xd.nodeName),/^br$/i.test(xd.nodeName)||0!=xd.textContent.length)){Af&&lb();for(oe=0;oexd?Vb.map:wc[xd],Af=0;Afxd?x.line:x.rest[xd]);xd=oe[Af]+rd;if(0>rd||Bg!=Lc)xd=oe[Af+(rd?1:0)];return ia(od,xd)}}}var Ia=x.text.firstChild,$a=!1;if(!ca||!u(Ia,ca))return hn(ia(La(x.line),0),!0);if(ca==Ia&&($a=!0,ca=Ia.childNodes[Aa],Aa=0,!ca))return Aa=x.rest?E(x.rest):x.line,hn(ia(La(Aa),Aa.text.length),$a);var lb=3==ca.nodeType?ca:null,pb=ca;lb||1!=ca.childNodes.length||3!=ca.firstChild.nodeType||(lb=ca.firstChild,Aa&&(Aa=lb.nodeValue.length));for(;pb.parentNode!=Ia;)pb=pb.parentNode; var Vb=x.measure,wc=Vb.maps;if(ca=xa(lb,pb,Aa))return hn(ca,$a);Ia=pb.nextSibling;for(lb=lb?lb.nodeValue.length-Aa:0;Ia;Ia=Ia.nextSibling){if(ca=xa(Ia,Ia.firstChild,0))return hn(ia(ca.line,ca.ch-lb),$a);lb+=Ia.textContent.length}for(pb=pb.previousSibling;pb;pb=pb.previousSibling){if(ca=xa(pb,pb.firstChild,-1))return hn(ia(ca.line,ca.ch+Aa),$a);Aa+=pb.textContent.length}}var Pj=navigator.userAgent,dk=navigator.platform,xk=/gecko\/\d/i.test(Pj),rp=/MSIE \d/.test(Pj),ko=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pj), zn=/Edge\/(\d+)/.exec(Pj),Sg=rp||ko||zn,ui=Sg&&(rp?document.documentMode||6:+(zn||ko)[1]),vj=!zn&&/WebKit\//.test(Pj),So=vj&&/Qt\/\d+\.\d+/.test(Pj),mm=!zn&&/Chrome\/(\d+)/.exec(Pj),To=mm&&+mm[1],rl=/Opera\//.test(Pj),dj=/Apple Computer/.test(navigator.vendor),xo=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Pj),yo=/PhantomJS/.test(Pj),In=dj&&(/Mobile\/\w+/.test(Pj)||2xm)),jn=xk||Sg&&9<=ui,Wm=function(x,ca){var Aa=x.className;if(ca=v(ca).exec(Aa)){var xa=Aa.slice(ca.index+ca[0].length);x.className=Aa.slice(0,ca.index)+(xa?ca[1]+xa:"")}};var ii=document.createRange?function(x,ca,Aa,xa){var Ia=document.createRange();Ia.setEnd(xa||x,Aa);Ia.setStart(x,ca);return Ia}:function(x,ca,Aa){var xa=document.body.createTextRange(); try{xa.moveToElementText(x.parentNode)}catch(Ia){return xa}xa.collapse(!0);xa.moveEnd("character",Aa);xa.moveStart("character",ca);return xa};var lo=function(x){x.select()};In?lo=function(x){x.selectionStart=0;x.selectionEnd=x.value.length}:Sg&&(lo=function(x){try{x.select()}catch(ca){}});var Dl=function(){this.f=this.id=null;this.time=0;this.handler=g(this.onTimeout,this)};Dl.prototype.onTimeout=function(x){x.id=0;x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)};Dl.prototype.set=function(x, ca){this.f=ca;ca=+new Date+x;if(!this.id||ca=oe?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(oe): 1424<=oe&&1524>=oe?"R":1536<=oe&&1785>=oe?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(oe-1536):1774<=oe&&2220>=oe?"r":8192<=oe&&8203>=oe?"w":8204==oe?"b":"L";xd.call(rd,oe)}od=0;for(rd=Vb;odui)return!1;var x=n("div");return"draggable"in x||"dragDrop"in x}(),Fl,sl,Vk=3!="\n\nb".split(/\n/).length?function(x){for(var ca=0,Aa=[],xa=x.length;ca<=xa;){var Ia=x.indexOf("\n",ca);-1==Ia&&(Ia=x.length);var $a=x.slice(ca,"\r"==x.charAt(Ia-1)?Ia-1:Ia),lb=$a.indexOf("\r");-1!=lb?(Aa.push($a.slice(0,lb)),ca+=lb+1):(Aa.push($a),ca=Ia+1)}return Aa}:function(x){return x.split(/\r\n?|\n/)},Jm=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(ca){return!1}}:function(x){try{var ca= x.ownerDocument.selection.createRange()}catch(Aa){}return ca&&ca.parentElement()==x?0!=ca.compareEndPoints("StartToEnd",ca):!1},Uo=function(){var x=n("div");if("oncopy"in x)return!0;x.setAttribute("oncopy","return;");return"function"==typeof x.oncopy}(),Km=null,po={},Lm={},tl={},Mi=function(x,ca,Aa){this.pos=this.start=0;this.string=x;this.tabSize=ca||8;this.lineStart=this.lastColumnPos=this.lastColumnValue=0;this.lineOracle=Aa};Mi.prototype.eol=function(){return this.pos>=this.string.length};Mi.prototype.sol= function(){return this.pos==this.lineStart};Mi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0};Mi.prototype.next=function(){if(this.posca};Mi.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos; return this.pos>x};Mi.prototype.skipToEnd=function(){this.pos=this.string.length};Mi.prototype.skipTo=function(x){x=this.string.indexOf(x,this.pos);if(-1this.maxLookAhead&&(this.maxLookAhead=x);return ca};rm.prototype.baseToken=function(x){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=x;)this.baseTokenPos+=2;var ca=this.baseTokens[this.baseTokenPos+1];return{type:ca&&ca.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-x}};rm.prototype.nextLine=function(){this.line++;0ui&&(this.horiz.style.minHeight= this.vert.style.minWidth="18px")};Ef.prototype.update=function(x){var ca=x.scrollWidth>x.clientWidth+1,Aa=x.scrollHeight>x.clientHeight+1,xa=x.nativeBarWidth;Aa?(this.vert.style.display="block",this.vert.style.bottom=ca?xa+"px":"0",this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+(x.viewHeight-(ca?xa:0)))+"px"):(this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0");ca?(this.horiz.style.display="block",this.horiz.style.right=Aa?xa+"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-(Aa?xa:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0");!this.checkedZeroWidth&&0=sa(x,xa.to()))return Aa}return-1};var Xf=function(x,ca){this.anchor=x;this.head=ca};Xf.prototype.from=function(){return Pa(this.anchor, this.head)};Xf.prototype.to=function(){return Xa(this.anchor,this.head)};Xf.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};ij.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,ca){for(var Aa=x,xa=x+ca;Aathis.size-ca&&(1=this.children.length)){var x=this;do{var ca=x.children.splice(x.children.length-5,5);ca=new gj(ca);if(x.parent){x.size-=ca.size;x.height-=ca.height;var Aa=p(x.parent.children,x);x.parent.children.splice(Aa+1,0,ca)}else Aa=new gj(x.children), Aa.parent=x,x.children=[Aa,ca],x=Aa;ca.parent=x.parent}while(10x.display.maxLineLength&&(x.display.maxLine=$a,x.display.maxLineLength=lb,x.display.maxLineChanged= !0);null!=Aa&&x&&this.collapsed&&Ff(x,Aa,xa+1);this.lines.length=0;this.explicitlyCleared=!0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&tj(x.doc));x&&Ce(x,"markerCleared",x,this,Aa,xa);ca&&kg(x);this.parent&&this.parent.clear()}};Lj.prototype.find=function(x,ca){null==x&&"bookmark"==this.type&&(x=1);for(var Aa,xa,Ia=0;Iasa(pb.head,pb.anchor),x[$a]=new Xf(pb?Vb:lb,pb?lb:Vb)):x[$a]=new Xf(lb,lb)}x= new Gh(x,this.sel.primIndex)}ca=x;for(x=xa.length-1;0<=x;x--)He(this,xa[x]);ca?Sm(this,ca):this.cm&&Zf(this.cm)}),undo:oh(function(){xg(this,"undo")}),redo:oh(function(){xg(this,"redo")}),undoSelection:oh(function(){xg(this,"undo",!0)}),redoSelection:oh(function(){xg(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,ca=0,Aa=0,xa=0;xa=x.ch)&&ca.push(Ia.marker.parent||Ia.marker)}return ca},findMarks:function(x,ca,Aa){x=cb(this,x);ca=cb(this,ca);var xa=[],Ia=x.line;this.iter(x.line,ca.line+1,function($a){if($a=$a.markedSpans)for(var lb=0;lb<$a.length;lb++){var pb=$a[lb];null!=pb.to&&Ia==x.line&&x.ch>=pb.to||null==pb.from&&Ia!=x.line||null!=pb.from&&Ia==ca.line&&pb.from>=ca.ch||Aa&&!Aa(pb.marker)||xa.push(pb.marker.parent||pb.marker)}++Ia});return xa}, getAllMarks:function(){var x=[];this.iter(function(ca){if(ca=ca.markedSpans)for(var Aa=0;Aax)return ca=x,!0;x-=Ia;++Aa});return cb(this,ia(Aa,ca))},indexFromPos:function(x){x=cb(this,x);var ca=x.ch;if(x.linex.ch)return 0;var Aa=this.lineSeparator().length;this.iter(this.first,x.line,function(xa){ca+= xa.text.length+Aa});return ca},copy:function(x){var ca=new mj(Ya(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);ca.scrollTop=this.scrollTop;ca.scrollLeft=this.scrollLeft;ca.sel=this.sel;ca.extend=!1;x&&(ca.history.undoDepth=this.history.undoDepth,ca.setHistory(this.getHistory()));return ca},linkedDoc:function(x){x||={};var ca=this.first,Aa=this.first+this.size;null!=x.from&&x.from>ca&&(ca=x.from);null!=x.to&&x.toCj;Cj++)nh[Cj+48]=nh[Cj+96]=String(Cj);for(var Vh=65;90>=Vh;Vh++)nh[Vh]=String.fromCharCode(Vh);for(var wp=1;12>=wp;wp++)nh[wp+111]=nh[wp+63235]="F"+wp;var Vo={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"]}};Vo["default"]=Uk?Vo.macDefault:Vo.pcDefault;var xp={selectAll:yl,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),om)},killLine:function(x){return Tb(x,function(ca){if(ca.empty()){var Aa=Oa(x.doc,ca.head.line).text.length;return ca.head.ch==Aa&&ca.head.linex.doc.first){var lb=Oa(x.doc,Ia.line-1).text;lb&&(Ia=new ia(Ia.line,1),x.replaceRange($a.charAt(0)+x.doc.lineSeparator()+lb.charAt(lb.length-1),ia(Ia.line-1,lb.length-1),Ia,"+transpose"))}Aa.push(new Xf(Ia,Ia))}x.setSelections(Aa)})},newlineAndIndent:function(x){return rg(x,function(){for(var ca=x.listSelections(),Aa=ca.length-1;0<=Aa;Aa--)x.replaceRange(x.doc.lineSeparator(),ca[Aa].anchor,ca[Aa].head,"+input");ca=x.listSelections();for(Aa=0;Aa< ca.length;Aa++)x.indentLine(ca[Aa].from().line,null,!0);Zf(x)})},openLine:function(x){return x.replaceSelection("\n","start")},toggleOverwrite:function(x){return x.toggleOverwrite()}},Qp=new Dl,Ao=null,sp=function(x,ca,Aa){this.time=x;this.pos=ca;this.button=Aa};sp.prototype.compare=function(x,ca,Aa){return this.time+400>x&&0==sa(ca,this.pos)&&Aa==this.button};var Dj,Yg,pm={toString:function(){return"CodeMirror.Init"}},Bo={},qm={};yg.defaults=Bo;yg.optionHandlers=qm;var Zo=[];yg.defineInitHook=function(x){return Zo.push(x)}; var cj=null,zi=function(x){this.cm=x;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new Dl;this.composing=null;this.gracePeriod=!1;this.readDOMTimeout=null};zi.prototype.init=function(x){function ca(pb){for(pb=pb.target;pb;pb=pb.parentNode){if(pb==lb)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(pb.className))break}return!1}function Aa(pb){if(ca(pb)&&!L($a,pb)){if($a.somethingSelected())cj={lineWise:!1,text:$a.getSelections()},"cut"==pb.type&& $a.replaceSelection("",null,"cut");else if($a.options.lineWiseCopyCut){var Vb=Hj($a);cj={lineWise:!0,text:Vb.text};"cut"==pb.type&&$a.operation(function(){$a.setSelections(Vb.ranges,0,om);$a.replaceSelection("",null,"cut")})}else return;if(pb.clipboardData){pb.clipboardData.clearData();var wc=cj.text.join("\n");pb.clipboardData.setData("Text",wc);if(pb.clipboardData.getData("Text")==wc){pb.preventDefault();return}}var Lc=ig();pb=Lc.firstChild;Gj(pb);$a.display.lineSpace.insertBefore(Lc,$a.display.lineSpace.firstChild); pb.value=cj.text.join("\n");var od=z(lb.ownerDocument);lo(pb);setTimeout(function(){$a.display.lineSpace.removeChild(Lc);od.focus();od==lb&&Ia.showPrimarySelection()},50)}}var xa=this,Ia=this,$a=Ia.cm,lb=Ia.div=x.lineDiv;lb.contentEditable=!0;Gj(lb,$a.options.spellcheck,$a.options.autocorrect,$a.options.autocapitalize);Dg(lb,"paste",function(pb){!ca(pb)||L($a,pb)||nm(pb,$a)||11>=ui&&setTimeout(ki($a,function(){return xa.updateFromDOM()}),20)});Dg(lb,"compositionstart",function(pb){xa.composing={data:pb.data, done:!1}});Dg(lb,"compositionupdate",function(pb){xa.composing||(xa.composing={data:pb.data,done:!1})});Dg(lb,"compositionend",function(pb){xa.composing&&(pb.data!=xa.composing.data&&xa.readFromDOMSoon(),xa.composing.done=!0)});Dg(lb,"touchstart",function(){return Ia.forceCompositionEnd()});Dg(lb,"input",function(){xa.composing||xa.readFromDOMSoon()});Dg(lb,"copy",Aa);Dg(lb,"cut",Aa)};zi.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")}; zi.prototype.prepareSelection=function(){var x=Og(this.cm,!1);x.focus=z(this.div.ownerDocument)==this.div;return x};zi.prototype.showSelection=function(x,ca){x&&this.cm.display.view.length&&((x.focus||ca)&&this.showPrimarySelection(),this.showMultipleSelections(x))};zi.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()};zi.prototype.showPrimarySelection=function(){var x=this.getSelection(),ca=this.cm,Aa=ca.doc.sel.primary(),xa=Aa.from();Aa=Aa.to();if(ca.display.viewTo== ca.display.viewFrom||xa.line>=ca.display.viewTo||Aa.line=ca.display.viewFrom&&Vn(ca,xa)||{node:Ia[0].measure.map[2],offset:0},Aa=Aa.linex.firstLine()&&(xa=ia(xa.line-1,Oa(x.doc,xa.line-1).length));Ia.ch==Oa(x.doc,Ia.line).text.length&&Ia.lineca.viewTo-1)return!1;var $a;xa.line==ca.viewFrom||0==($a=Me(x,xa.line))?(Aa=La(ca.view[0].line),$a=ca.view[0].node): (Aa=La(ca.view[$a].line),$a=ca.view[$a-1].node.nextSibling);var lb=Me(x,Ia.line);lb==ca.view.length-1?(Ia=ca.viewTo-1,ca=ca.lineDiv.lastChild):(Ia=La(ca.view[lb+1].line)-1,ca=ca.view[lb+1].node.previousSibling);if(!$a)return!1;ca=x.doc.splitLines(ck(x,$a,ca,Aa,Ia));for($a=Va(x.doc,ia(Aa,0),ia(Ia,Oa(x.doc,Ia).text.length));1xa.ch&&Vb.charCodeAt(Vb.length-lb-1)==wc.charCodeAt(wc.length-lb-1);)pb--,lb++;ca[ca.length-1]=Vb.slice(0,Vb.length-lb).replace(/^\u200b+/,"");ca[0]=ca[0].slice(pb).replace(/\u200b+$/,"");xa=ia(Aa,pb);Aa=ia(Ia,$a.length? E($a).length-lb:0);if(1ui&&$a.scrollbars.setScrollTop($a.scroller.scrollTop=Vb),null!=lb.selectionStart)){(!Sg||Sg&&9>ui)&&ca();var xd=0,oe=function(){$a.selForContextMenu==Ia.doc.sel&&0==lb.selectionStart&&0xd++?$a.detectingSelectAll=setTimeout(oe,500):($a.selForContextMenu= null,$a.input.reset())};$a.detectingSelectAll=setTimeout(oe,200)}}var xa=this,Ia=xa.cm,$a=Ia.display,lb=xa.textarea;xa.contextMenuPending&&xa.contextMenuPending();var pb=Ye(Ia,x),Vb=$a.scroller.scrollTop;if(pb&&!rl){Ia.options.resetSelectionOnContextMenu&&-1==Ia.doc.sel.contains(pb)&&ki(Ia,Rg)(Ia.doc,$h(pb),om);var wc=lb.style.cssText,Lc=xa.wrapper.style.cssText;pb=xa.wrapper.offsetParent.getBoundingClientRect();xa.wrapper.style.cssText="position: static";lb.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+ (x.clientY-pb.top-5)+"px; left: "+(x.clientX-pb.left-5)+"px;\n z-index: 1000; background: "+(Sg?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity\x3d5);";if(vj)var od=lb.ownerDocument.defaultView.scrollY;$a.input.focus();vj&&lb.ownerDocument.defaultView.scrollTo(null,od);$a.input.reset();Ia.somethingSelected()||(lb.value=xa.prevInput=" ");xa.contextMenuPending=Aa;$a.selForContextMenu=Ia.doc.sel; clearTimeout($a.detectingSelectAll);Sg&&9<=ui&&ca();if(jn){S(x);var rd=function(){K(window,"mouseup",rd);setTimeout(Aa,20)};Dg(window,"mouseup",rd)}else setTimeout(Aa,50)}};oi.prototype.readOnlyChanged=function(x){x||this.reset();this.textarea.disabled="nocursor"==x;this.textarea.readOnly=!!x};oi.prototype.setUneditable=function(){};oi.prototype.needsContentAttribute=!1;(function(x){function ca(xa,Ia,$a,lb){x.defaults[xa]=Ia;$a&&(Aa[xa]=lb?function(pb,Vb,wc){wc!=pm&&$a(pb,Vb,wc)}:$a)}var Aa=x.optionHandlers; x.defineOption=ca;x.Init=pm;ca("value","",function(xa,Ia){return xa.setValue(Ia)},!0);ca("mode",null,function(xa,Ia){xa.doc.modeOption=Ia;wl(xa)},!0);ca("indentUnit",2,wl,!0);ca("indentWithTabs",!1);ca("smartIndent",!0);ca("tabSize",4,function(xa){sj(xa);Wc(xa);Ff(xa)},!0);ca("lineSeparator",null,function(xa,Ia){if(xa.doc.lineSep=Ia){var $a=[],lb=xa.doc.first;xa.doc.iter(function(Vb){for(var wc=0;;){var Lc=Vb.text.indexOf(Ia,wc);if(-1==Lc)break;wc=Lc+Ia.length;$a.push(ia(lb,Lc))}lb++});for(var pb= $a.length-1;0<=pb;pb--)lg(xa.doc,Ia,$a[pb],ia($a[pb].line,$a[pb].ch+Ia.length))}});ca("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(xa,Ia,$a){xa.state.specialChars=new RegExp(Ia.source+(Ia.test("\t")?"":"|\t"),"g");$a!=pm&&xa.refresh()});ca("specialCharPlaceholder",wd,function(xa){return xa.refresh()},!0);ca("electricChars",!0);ca("inputStyle",ti?"contenteditable":"textarea",function(){throw Error("inputStyle can not (yet) be changed in a running editor"); },!0);ca("spellcheck",!1,function(xa,Ia){return xa.getInputField().spellcheck=Ia},!0);ca("autocorrect",!1,function(xa,Ia){return xa.getInputField().autocorrect=Ia},!0);ca("autocapitalize",!1,function(xa,Ia){return xa.getInputField().autocapitalize=Ia},!0);ca("rtlMoveVisually",!Ll);ca("wholeLineUpdateBefore",!0);ca("theme","default",function(xa){$f(xa);al(xa)},!0);ca("keyMap","default",function(xa,Ia,$a){Ia=qc(Ia);($a=$a!=pm&&qc($a))&&$a.detach&&$a.detach(xa,Ia);Ia.attach&&Ia.attach(xa,$a||null)}); ca("extraKeys",null);ca("configureMouse",null);ca("lineWrapping",!1,em,!0);ca("gutters",[],function(xa,Ia){xa.display.gutterSpecs=zj(Ia,xa.options.lineNumbers);al(xa)},!0);ca("fixedGutter",!0,function(xa,Ia){xa.display.gutters.style.left=Ia?zd(xa.display)+"px":"0";xa.refresh()},!0);ca("coverGutterNextToScrollbar",!1,function(xa){return Eh(xa)},!0);ca("scrollbarStyle","native",function(xa){Jl(xa);Eh(xa);xa.display.scrollbars.setScrollTop(xa.doc.scrollTop);xa.display.scrollbars.setScrollLeft(xa.doc.scrollLeft)}, !0);ca("lineNumbers",!1,function(xa,Ia){xa.display.gutterSpecs=zj(xa.options.gutters,Ia);al(xa)},!0);ca("firstLineNumber",1,al,!0);ca("lineNumberFormatter",function(xa){return xa},al,!0);ca("showCursorWhenSelecting",!1,Zh,!0);ca("resetSelectionOnContextMenu",!0);ca("lineWiseCopyCut",!0);ca("pasteLinesPerSelection",!0);ca("selectionsMayTouch",!1);ca("readOnly",!1,function(xa,Ia){"nocursor"==Ia&&(Bk(xa),xa.display.input.blur());xa.display.input.readOnlyChanged(Ia)});ca("screenReaderLabel",null,function(xa, Ia){xa.display.input.screenReaderLabelChanged(""===Ia?null:Ia)});ca("disableInput",!1,function(xa,Ia){Ia||xa.display.input.reset()},!0);ca("dragDrop",!0,xi);ca("allowDropFileTypes",null);ca("cursorBlinkRate",530);ca("cursorScrollMargin",0);ca("cursorHeight",1,Zh,!0);ca("singleCursorHeightPerLine",!0,Zh,!0);ca("workTime",100);ca("workDelay",100);ca("flattenSpans",!0,sj,!0);ca("addModeClass",!1,sj,!0);ca("pollInterval",100);ca("undoDepth",200,function(xa,Ia){return xa.doc.history.undoDepth=Ia});ca("historyEventDelay", 1250);ca("viewportMargin",10,function(xa){return xa.refresh()},!0);ca("maxHighlightLength",1E4,sj,!0);ca("moveInputWithCursor",!0,function(xa,Ia){Ia||xa.display.input.resetPosition()});ca("tabindex",null,function(xa,Ia){return xa.display.input.getField().tabIndex=Ia||""});ca("autofocus",null);ca("direction","ltr",function(xa,Ia){return xa.doc.setDirection(Ia)},!0);ca("phrases",null)})(yg);(function(x){var ca=x.optionHandlers,Aa=x.helpers={};x.prototype={constructor:x,focus:function(){J(this).defaultView.focus(); this.display.input.focus()},setOption:function(xa,Ia){var $a=this.options,lb=$a[xa];if($a[xa]!=Ia||"mode"==xa)$a[xa]=Ia,ca.hasOwnProperty(xa)&&ki(this,ca[xa])(this,Ia,lb),D(this,"optionChange",this,xa)},getOption:function(xa){return this.options[xa]},getDoc:function(){return this.doc},addKeyMap:function(xa,Ia){this.state.keyMaps[Ia?"push":"unshift"](qc(xa))},removeKeyMap:function(xa){for(var Ia=this.state.keyMaps,$a=0;$a$a&&(Fh(this,pb.head.line,xa,!0),$a=pb.head.line,lb==this.doc.sel.primIndex&&Zf(this));else{var Vb=pb.from();pb=pb.to();var wc=Math.max($a,Vb.line);$a=Math.min(this.lastLine(),pb.line-(pb.ch?0:1))+1;for(pb=wc;pb< $a;++pb)Fh(this,pb,xa);pb=this.doc.sel.ranges;0==Vb.ch&&Ia.length==pb.length&&0>1;if((pb?Ia[2*pb-1]:0)>=xa)lb=pb;else if(Ia[2*pb+1]$a?Ia:0==$a?null:Ia.slice(0,$a-1)},getModeAt:function(xa){var Ia=this.doc.mode;return Ia.innerMode?x.innerMode(Ia,this.getTokenAt(xa).state).mode:Ia},getHelper:function(xa,Ia){return this.getHelpers(xa,Ia)[0]},getHelpers:function(xa,Ia){var $a=[];if(!Aa.hasOwnProperty(Ia))return $a;var lb=Aa[Ia];xa=this.getModeAt(xa);if("string"==typeof xa[Ia])lb[xa[Ia]]&&$a.push(lb[xa[Ia]]);else if(xa[Ia])for(var pb=0;pbpb&&(xa=pb,lb=!0);xa=Oa(this.doc,xa)}return bf(this,xa,{top:0,left:0}, Ia||"page",$a||lb).top+(lb?this.doc.height-sb(xa):0)},defaultTextHeight:function(){return Gc(this.display)},defaultCharWidth:function(){return Pc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(xa,Ia,$a,lb,pb){var Vb=this.display;xa=pg(this,cb(this.doc,xa));var wc=xa.bottom,Lc=xa.left;Ia.style.position="absolute";Ia.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(Ia);Vb.sizer.appendChild(Ia);if("over"==lb)wc= xa.top;else if("above"==lb||"near"==lb){var od=Math.max(Vb.wrapper.clientHeight,this.doc.height),rd=Math.max(Vb.sizer.clientWidth,Vb.lineSpace.clientWidth);("above"==lb||xa.bottom+Ia.offsetHeight>od)&&xa.top>Ia.offsetHeight?wc=xa.top-Ia.offsetHeight:xa.bottom+Ia.offsetHeight<=od&&(wc=xa.bottom);Lc+Ia.offsetWidth>rd&&(Lc=rd-Ia.offsetWidth)}Ia.style.top=wc+"px";Ia.style.left=Ia.style.right="";"right"==pb?(Lc=Vb.sizer.clientWidth-Ia.offsetWidth,Ia.style.right="0px"):("left"==pb?Lc=0:"middle"==pb&&(Lc= (Vb.sizer.clientWidth-Ia.offsetWidth)/2),Ia.style.left=Lc+"px");$a&&(xa=ih(this,{left:Lc,top:wc,right:Lc+Ia.offsetWidth,bottom:wc+Ia.offsetHeight}),null!=xa.scrollTop&&ek(this,xa.scrollTop),null!=xa.scrollLeft&&fk(this,xa.scrollLeft))},triggerOnKeyDown:Ri(Zd),triggerOnKeyPress:Ri(jf),triggerOnKeyUp:af,triggerOnMouseDown:Ri(qg),execCommand:function(xa){if(xp.hasOwnProperty(xa))return xp[xa].call(null,this)},triggerElectric:Ri(function(xa){hh(this,xa)}),findPosH:function(xa,Ia,$a,lb){var pb=1;0>Ia&& (pb=-1,Ia=-Ia);xa=cb(this.doc,xa);for(var Vb=0;Vbxa?lb.from():lb.to()},Wn)}),deleteH:Ri(function(xa,Ia){var $a=this.doc;this.doc.sel.somethingSelected()?$a.replaceSelection("",null,"+delete"):Tb(this,function(lb){var pb=yi($a,lb.head,xa,Ia,!1);return 0>xa?{from:pb, to:lb.head}:{from:lb.head,to:pb}})}),findPosV:function(xa,Ia,$a,lb){var pb=1;0>Ia&&(pb=-1,Ia=-Ia);var Vb=cb(this.doc,xa);for(xa=0;xaxa?Lc.from():Lc.to();var od=pg($a,Lc.head,"div");null!=Lc.goalColumn&&(od.left=Lc.goalColumn); pb.push(od.left);var rd=Tk($a,od,xa,Ia);"page"==Ia&&Lc==lb.sel.primary()&&wf($a,tf($a,rd,"div").top-od.top);return rd},Wn);if(pb.length)for(var wc=0;wcp(pr,Wo)&&(yg.prototype[Wo]=function(x){return function(){return x.apply(this.doc, arguments)}}(mj.prototype[Wo]));la(mj);yg.inputStyles={textarea:oi,contenteditable:zi};yg.defineMode=function(x){yg.defaults.mode||"null"==x||(yg.defaults.mode=x);W.apply(this,arguments)};yg.defineMIME=function(x,ca){Lm[x]=ca};yg.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}});yg.defineMIME("text/plain","null");yg.defineExtension=function(x,ca){yg.prototype[x]=ca};yg.defineDocExtension=function(x,ca){mj.prototype[x]=ca};yg.fromTextArea=function(x,ca){function Aa(){x.value= pb.getValue()}ca=ca?h(ca):{};ca.value=x.value;!ca.tabindex&&x.tabIndex&&(ca.tabindex=x.tabIndex);!ca.placeholder&&x.placeholder&&(ca.placeholder=x.placeholder);if(null==ca.autofocus){var xa=z(x.ownerDocument);ca.autofocus=xa==x||null!=x.getAttribute("autofocus")&&xa==document.body}if(x.form&&(Dg(x.form,"submit",Aa),!ca.leaveSubmitMethodAlone)){var Ia=x.form;var $a=Ia.submit;try{var lb=Ia.submit=function(){Aa();Ia.submit=$a;Ia.submit();Ia.submit=lb}}catch(Vb){}}ca.finishInit=function(Vb){Vb.save=Aa; Vb.getTextArea=function(){return x};Vb.toTextArea=function(){Vb.toTextArea=isNaN;Aa();x.parentNode.removeChild(Vb.getWrapperElement());x.style.display="";x.form&&(K(x.form,"submit",Aa),ca.leaveSubmitMethodAlone||"function"!=typeof x.form.submit||(x.form.submit=$a))}};x.style.display="none";var pb=yg(function(Vb){return x.parentNode.insertBefore(Vb,x.nextSibling)},ca);return pb};(function(x){x.off=K;x.on=Dg;x.wheelEventPixels=Ck;x.Doc=mj;x.splitLines=Vk;x.countColumn=c;x.findColumn=m;x.isWordChar= F;x.Pass=Vl;x.signal=D;x.Line=ch;x.changeEnd=mi;x.scrollbarModel=yk;x.Pos=ia;x.cmpPos=sa;x.modes=po;x.mimeModes=Lm;x.resolveMode=ra;x.getMode=wa;x.modeExtensions=tl;x.extendMode=va;x.copyState=Fa;x.startState=Ka;x.innerMode=Ba;x.commands=xp;x.keyMap=Vo;x.keyName=rc;x.isModifierKey=Rb;x.lookupKey=cm;x.normalizeKeyMap=Hn;x.StringStream=Mi;x.SharedTextMarker=Nl;x.TextMarker=Lj;x.LineWidget=ag;x.e_preventDefault=R;x.e_stopPropagation=Z;x.e_stop=S;x.addClass=A;x.contains=u;x.rmClass=Wm;x.keyNames=nh})(yg); yg.version="5.65.13";return yg})}; shadow$provide[465]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(c,p){return"pairs"==p&&"string"==typeof c?c:"object"==typeof c&&null!=c[p]?c[p]:J[p]}function y(c){for(var p=0;pm))for(w==g.line&&(r=g.ch-(0>h?1:0));r!=f;r+=h){var F=t.charAt(r);if(p.test(F)&&(void 0===c||(J.getTokenTypeAt(A(w,r+1))||"")==(c||""))){var C=B[F];if(C&&"\x3e"==C.charAt(1)==0document.documentMode),A=v.Pos,B={"(":")\x3e",")":"(\x3c","[":"]\x3e","]":"[\x3c", "{":"}\x3e","}":"{\x3c","\x3c":"\x3e\x3e","\x3e":"\x3c\x3c"};v.defineOption("matchBrackets",!1,function(J,g,h){h&&h!=v.Init&&(J.off("cursorActivity",b),J.off("focus",b),J.off("blur",u),u(J));g&&(J.state.matchBrackets="object"==typeof g?g:{},J.on("cursorActivity",b),J.on("focus",b),J.on("blur",u))});v.defineExtension("matchBrackets",function(){n(this,!0)});v.defineExtension("findMatchingBracket",function(J,g,h){if(h||"boolean"==typeof g)h?(h.strict=g,g=h):g=g?{strict:!0}:null;return Y(this,J,g)}); v.defineExtension("scanForBracket",function(J,g,h,c){return y(this,J,g,h,c)})})}; shadow$provide[467]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(u){for(var z=0;z E.clientHeight+1:!1,V;setTimeout(function(){V=p.getScrollInfo()});if(0K&&(E.style.height=(T=K)+"px"),E.style.top=(aa=t.top-T)+F+"px",O=!1):E.style.height=U-C.top-2+"px"}F=C.right-f;P&&(F+=p.display.nativeBarWidth);0f&&(E.style.width=f-5+"px",F-=C.right-C.left-f),E.style.left=(M=Math.max(t.left-F-r,0))+"px");if(P)for(t=E.firstChild;t;t=t.nextSibling)t.style.paddingRight=p.display.nativeBarWidth+"px";p.addKeyMap(this.keyMap= y(g,{moveFocus:function(L,Q){c.changeActive(c.selectedHint+L,Q)},setFocus:function(L){c.changeActive(L)},menuSize:function(){return c.screenAmount()},length:w.length,close:function(){g.close()},pick:function(){c.pick()},data:h}));if(g.options.closeOnUnfocus){var D;p.on("blur",this.onBlur=function(){D=setTimeout(function(){g.close()},100)});p.on("focus",this.onFocus=function(){clearTimeout(D)})}p.on("scroll",this.onScroll=function(){var L=p.getScrollInfo(),Q=p.getWrapperElement().getBoundingClientRect(); V||=p.getScrollInfo();var N=aa+V.top-L.top,la=N-(q.pageYOffset||(m.documentElement||m.body).scrollTop);O||(la+=E.offsetHeight);if(la<=Q.top||la>=Q.bottom)return g.close();E.style.top=N+"px";E.style.left=M+V.left-L.left+"px"});v.on(E,"dblclick",function(L){(L=n(E,L.target||L.srcElement))&&null!=L.hintId&&(c.changeActive(L.hintId),c.pick())});v.on(E,"click",function(L){(L=n(E,L.target||L.srcElement))&&null!=L.hintId&&(c.changeActive(L.hintId),g.options.completeOnSingleClick&&c.pick())});v.on(E,"mousedown", function(){setTimeout(function(){p.focus()},20)});t=this.getSelectedHintRange();0===t.from&&0===t.to||this.scrollToActive();v.signal(h,"select",w[this.selectedHint],E.childNodes[this.selectedHint]);return!0}function u(g,h){if(!g.somethingSelected())return h;g=[];for(var c=0;c=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();v.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 c=this.hints.firstChild;h.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=g.offsetTop+g.offsetHeight-this.hints.clientHeight+c.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)}}};v.registerHelper("hint","auto",{resolve:function(g,h){var c=g.getHelpers(h,"hint"),p;return c.length?(g=function(m,q,E){function w(r){if(r==t.length)return q(null);z(t[r],m,E,function(f){f&&0,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};v.defineOption("hintOptions",null)})}; shadow$provide[469]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){v.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"]},n=/[\.\/⌿⍀¨⍣]/,b=/⍬/,u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,z=/←/,A=/[⍝#].*$/,B=function(J){var g=!1;return function(h){g=h;return h===J?"\\"===g:!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(J,g){if(J.eatSpace())return null;var h=J.next();if('"'===h||"'"===h)return J.eatWhile(B(h)),J.next(),g.prev=!0,"string";if(/[\[{\(]/.test(h))return g.prev= !1,null;if(/[\]}\)]/.test(h))return g.prev=!0,null;if(b.test(h))return g.prev=!1,"niladic";if(/[¯\d]/.test(h))return g.func?(g.func=!1,g.prev=!1):g.prev=!0,J.eatWhile(/[\w\.]/),"number";if(n.test(h))return"operator apl-"+Y[h];if(z.test(h))return"apl-arrow";if(u.test(h))return J="apl-",null!=y[h]&&(J=g.prev?J+y[h][1]:J+y[h][0]),g.func=!0,g.prev=!1,"function "+J;if(A.test(h))return J.skipToEnd(),"comment";if("∘"===h&&"."===J.peek())return J.next(),"function jot-dot";J.eatWhile(/[\w\$_]/);g.prev=!0; return"keyword"}}});v.defineMIME("text/apl","apl")})}; shadow$provide[470]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(y){var n=y.match(/^\s*\S/);y.skipToEnd();return n?"error":null}v.defineMode("asciiarmor",function(){return{token:function(y,n){var b;if("top"==n.state)return y.sol()&&(b=y.match(/^-----BEGIN (.*)?-----\s*$/))?(n.state="headers",n.type=b[1],"tag"):Y(y);if("headers"==n.state){if(y.sol()&& y.match(/^\w+:/))return n.state="header","atom";if(y=Y(y))n.state="body";return y}if("header"==n.state)return y.skipToEnd(),n.state="headers","string";if("body"==n.state){if(y.sol()&&(b=y.match(/^-----END (.*)?-----\s*$/))){if(b[1]!=n.type)return"error";n.state="end";return"tag"}if(y.eatWhile(/[A-Za-z0-9+\/=]/))return null;y.next();return"error"}if("end"==n.state)return Y(y)},blankLine:function(y){"headers"==y.state&&(y.state="body")},startState:function(){return{state:"top",type:null}}}});v.defineMIME("application/pgp", "asciiarmor");v.defineMIME("application/pgp-encrypted","asciiarmor");v.defineMIME("application/pgp-keys","asciiarmor");v.defineMIME("application/pgp-signature","asciiarmor")})}; shadow$provide[471]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(y){var n={};y=y.split(" ");for(var b=0;b?$/.test(A))return z.extenExten=!0,z.extenStart=!1,"strong";z.extenStart=!1;u.skipToEnd();return"error"}if(z.extenExten)return z.extenExten=!1,z.extenPriority=!0,u.eatWhile(/[^,]/),z.extenInclude&&(u.skipToEnd(),z.extenPriority=!1,z.extenInclude= !1),z.extenSame&&(z.extenPriority=!1,z.extenSame=!1,z.extenApplication=!0),"tag";if(z.extenPriority){z.extenPriority=!1;z.extenApplication=!0;u.next();if(z.extenSame)return null;u.eatWhile(/[^,]/);return"number"}if(z.extenApplication){u.eatWhile(/,/);A=u.current();if(","===A)return null;u.eatWhile(/\w/);A=u.current().toLowerCase();z.extenApplication=!1;if(-1!==b.indexOf(A))return"def strong"}else return Y(u,z);return null},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}});v.defineMIME("text/x-asterisk", "asterisk")})}; shadow$provide[473]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){var Y="\x3e\x3c+-.,[]".split("");v.defineMode("brainfuck",function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(y,n){if(y.eatSpace())return null;y.sol()&&(n.commentLine=!1);var b=y.next().toString();if(-1!==Y.indexOf(b)){if(!0===n.commentLine)return y.eol()&& (n.commentLine=!1),"comment";if("]"===b||"["===b)return"["===b?n.left++:n.right++,"bracket";if("+"===b||"-"===b)return"keyword";if("\x3c"===b||"\x3e"===b)return"atom";if("."===b||","===b)return"def"}else return n.commentLine=!0,y.eol()&&(n.commentLine=!1),"comment";y.eol()&&(n.commentLine=!1)}}});v.defineMIME("text/x-brainfuck","brainfuck")})}; shadow$provide[474]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(U,P,V,T,K,D){this.indented=U;this.column=P;this.type=V;this.info=T;this.align=K;this.prev=D}function y(U,P,V,T){var K=U.indented;U.context&&"statement"==U.context.type&&"statement"!=V&&(K=U.context.indented);return U.context=new Y(K,P,V,T,null,U.context)}function n(U){var P=U.context.type; if(")"==P||"]"==P||"}"==P)U.indented=U.context.indented;return U.context=U.context.prev}function b(U,P,V){if("variable"==P.prevToken||"type"==P.prevToken||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(U.string.slice(0,V))||P.typeAtEndOfLine&&U.column()==U.indentation())return!0}function u(U){for(;;){if(!U||"top"==U.type)return!0;if("}"==U.type&&"namespace"!=U.prev.info)return!1;U=U.prev}}function z(U){var P={};U=U.split(" ");for(var V=0;VU.length||"_"!=U[0]?!1:"_"==U[1]||U[1]!==U[1].toLowerCase()}function p(U){U.eatWhile(/[\w\.']/);return"number"}function m(U, P){U.backUp(1);if(U.match(/^(?:R|u8R|uR|UR|LR)/)){var V=U.match(/^"([^\s\\()]{0,16})\(/);if(!V)return!1;P.cpp11RawStringDelim=V[1];P.tokenize=w;return w(U,P)}if(U.match(/^(?:u8|u|U|L)/))return U.match(/^["']/,!1)?"string":!1;U.next();return!1}function q(U){return(U=/(\w+)::~?(\w+)$/.exec(U))&&U[1]==U[2]}function E(U,P){for(var V;null!=(V=U.next());)if('"'==V&&!U.eat('"')){P.tokenize=null;break}return"string"}function w(U,P){var V=P.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$\x26");U.match(new RegExp(".*?\\)"+ V+'"'))?P.tokenize=null:U.skipToEnd();return"string"}function t(U,P){function V(D){if(D)for(var L in D)D.hasOwnProperty(L)&&T.push(L)}"string"==typeof U&&(U=[U]);var T=[];V(P.keywords);V(P.types);V(P.builtin);V(P.atoms);T.length&&(P.helperType=U[0],v.registerHelper("hintWords",U[0],T));for(var K=0;K!?|\/]/,Va=P.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Ya=P.isReservedIdentifier||!1,Ua,La;return{startState:function(ma){return{tokenize:null,context:new Y((ma||0)-L,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(ma,ja){var oa=ja.context;ma.sol()&&(null==oa.align&& (oa.align=!1),ja.indented=ma.indentation(),ja.startOfLine=!0);if(ma.eatSpace())return D(ma,ja),null;Ua=La=null;var ia=(ja.tokenize||V)(ma,ja);if("comment"==ia||"meta"==ia)return ia;null==oa.align&&(oa.align=!0);if(";"==Ua||":"==Ua||","==Ua&&ma.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==ja.context.type;)n(ja);else if("{"==Ua)y(ja,ma.column(),"}");else if("["==Ua)y(ja,ma.column(),"]");else if("("==Ua)y(ja,ma.column(),")");else if("}"==Ua){for(;"statement"==oa.type;)oa=n(ja);for("}"==oa.type&&(oa= n(ja));"statement"==oa.type;)oa=n(ja)}else Ua==oa.type?n(ja):wa&&(("}"==oa.type||"top"==oa.type)&&";"!=Ua||"statement"==oa.type&&"newstatement"==Ua)&&y(ja,ma.column(),"statement",ma.current());"variable"==ia&&("def"==ja.prevToken||P.typeFirstDefinitions&&b(ma,ja,ma.start)&&u(ja.context)&&ma.match(/^\s*\(/,!1))&&(ia="def");W.token&&(oa=W.token(ma,ja,ia),void 0!==oa&&(ia=oa));"def"==ia&&!1===P.styleDefs&&(ia="variable");ja.startOfLine=!1;ja.prevToken=La?"def":ia||Ua;D(ma,ja);return ia},indent:function(ma, ja){if(ma.tokenize!=V&&null!=ma.tokenize||ma.typeAtEndOfLine)return v.Pass;var oa=ma.context,ia=ja&&ja.charAt(0),sa=ia==oa.type;"statement"==oa.type&&"}"==ia&&(oa=oa.prev);if(P.dontIndentStatements)for(;"statement"==oa.type&&P.dontIndentStatements.test(oa.info);)oa=oa.prev;if(W.indent&&(ma=W.indent(ma,oa,ja,L),"number"==typeof ma))return ma;ma=oa.prev&&"switch"==oa.prev.info;if(P.allmanIndentation&&/[{(]/.test(ia)){for(;"top"!=oa.type&&"}"!=oa.type;)oa=oa.prev;return oa.indented}return"statement"== oa.type?oa.indented+("{"==ia?0:Q):!oa.align||N&&")"==oa.type?")"!=oa.type||sa?oa.indented+(sa?0:L)+(sa||!ma||/^(?:case|default)\b/.test(ja)?0:L):oa.indented+Q:oa.column+(sa?0:1)},electricInput:!1!==P.indentSwitch?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var M=z("int long char short double float unsigned signed void bool"),aa=z("SEL instancetype id Class Protocol BOOL");t(["text/x-csrc", "text/x-c","text/x-chdr"],{name:"clike",keywords:z("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:B,blockKeywords:z("case do else for if switch while struct enum union"),defKeywords:z("struct enum union"),typeFirstDefinitions:!0,atoms:z("NULL true false"),isReservedIdentifier:c,hooks:{"#":g,"*":h},modeProps:{fold:["brace","include"]}});t(["text/x-c++src","text/x-c++hdr"], {name:"clike",keywords:z("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:B,blockKeywords:z("case do else for if switch while struct enum union class try catch"),defKeywords:z("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:z("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:c,hooks:{"#":g,"*":h,u:m,U:m,L:m,R:m,0:p,1:p,2:p,3:p,4:p,5:p,6:p,7:p,8:p,9:p,token:function(U,P,V){if("variable"==V&&"("==U.peek()&&(";"==P.prevToken||null==P.prevToken||"}"==P.prevToken)&&q(U.current()))return"def"}}, namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});t("text/x-java",{name:"clike",keywords:z("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:z("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:z("catch class do else finally for if switch try while"),defKeywords:z("class interface enum @interface"),typeFirstDefinitions:!0,atoms:z("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(U){if(U.match("interface",!1))return!1;U.eatWhile(/[\w\$_]/);return"meta"},'"':function(U,P){if(!U.match(/""$/))return!1;P.tokenize=r;return P.tokenize(U,P)}},modeProps:{fold:["brace","import"]}});t("text/x-csharp",{name:"clike", keywords:z("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:z("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:z("catch class do else finally for foreach if struct switch try while"),defKeywords:z("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:z("true false null"),hooks:{"@":function(U,P){if(U.eat('"'))return P.tokenize= E,E(U,P);U.eatWhile(/[\w\$_]/);return"meta"}}});t("text/x-scala",{name:"clike",keywords:z("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:z("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:z("catch class enum do else finally for forSome if match switch try while"),defKeywords:z("class enum def object package trait type val var"),atoms:z("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(U){U.eatWhile(/[\w\$_]/);return"meta"},'"':function(U,P){if(!U.match('""'))return!1;P.tokenize=r;return P.tokenize(U,P)},"'":function(U){if(U.match(/^(\\[^'\s]+|[^\\'])'/))return"string-2";U.eatWhile(/[\w\$_\xa1-\uffff]/); return"atom"},"\x3d":function(U,P){var V=P.context;return"}"==V.type&&V.align&&U.eat("\x3e")?(P.context=new Y(V.indented,V.column,V.type,V.info,null,V.prev),"operator"):!1},"/":function(U,P){if(!U.eat("*"))return!1;P.tokenize=f(1);return P.tokenize(U,P)}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});t("text/x-kotlin",{name:"clike",keywords:z("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:z("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:z("catch class do else finally for if where try while enum"),defKeywords:z("class val var object interface fun"),atoms:z("true false null this"),hooks:{"@":function(U){U.eatWhile(/[\w\$_]/);return"meta"},"*":function(U,P){return"."==P.prevToken?"variable":"operator"},'"':function(U,P){P.tokenize=F(U.match('""'));return P.tokenize(U,P)},"/":function(U,P){if(!U.eat("*"))return!1; P.tokenize=f(1);return P.tokenize(U,P)},indent:function(U,P,V,T){var K=V&&V.charAt(0);if(("}"==U.prevToken||")"==U.prevToken)&&""==V)return U.indented;if("operator"==U.prevToken&&"}"!=V&&"}"!=U.context.type||"variable"==U.prevToken&&"."==K||("}"==U.prevToken||")"==U.prevToken)&&"."==K)return 2*T+P.indented;if(P.align&&"}"==P.type)return P.indented+(U.context.type==(V||"").charAt(0)?0:T)}},modeProps:{closeBrackets:{triples:'"'}}});t(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:z("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"), types:z("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:z("for while do if else struct"),builtin:z("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:z("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:z("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:B,blockKeywords:z("case do else for if switch while struct enum union"), atoms:z("null true false"),hooks:{"#":g},modeProps:{fold:["brace","include"]}});t("text/x-objectivec",{name:"clike",keywords:z("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:J,builtin:z("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:z("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:z("struct enum union @interface @implementation @protocol @class"), dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:z("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":g,"*":h},modeProps:{fold:["brace","include"]}});t("text/x-objectivec++",{name:"clike",keywords:z("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:J,builtin:z("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:z("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:z("struct enum union @interface @implementation @protocol @class class namespace"), dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:z("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:c,hooks:{"#":g,"*":h,u:m,U:m,L:m,R:m,0:p,1:p,2:p,3:p,4:p,5:p,6:p,7:p,8:p,9:p,token:function(U,P,V){if("variable"==V&&"("==U.peek()&&(";"==P.prevToken||null==P.prevToken||"}"==P.prevToken)&&q(U.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});t("text/x-squirrel",{name:"clike",keywords:z("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"), types:B,blockKeywords:z("case catch class else for foreach if switch try while"),defKeywords:z("function local class"),typeFirstDefinitions:!0,atoms:z("true false null"),hooks:{"#":g},modeProps:{fold:["brace","include"]}});var O=null;t("text/x-ceylon",{name:"clike",keywords:z("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(U){U=U.charAt(0);return U===U.toUpperCase()&&U!==U.toLowerCase()},blockKeywords:z("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:z("class dynamic function interface module object package value"),builtin:z("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:z("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(U){U.eatWhile(/[\w\$_]/);return"meta"},'"':function(U,P){P.tokenize=C(U.match('""')?"triple":"single");return P.tokenize(U,P)},"`":function(U,P){if(!O||!U.match("`"))return!1;P.tokenize= O;O=null;return P.tokenize(U,P)},"'":function(U){U.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(U,P,V){if(("variable"==V||"type"==V)&&"."==P.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})}; shadow$provide[475]=function(ya,ba,Ta,I){(function(v){"object"===typeof I&&"object"===typeof Ta?v(ba(464)):"function"===typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){v.defineMode("clojure",function(Y){function y(t,r){if(t.eatSpace()||t.eat(","))return["space",null];if(t.match(q))return[null,"number"];if(t.match(E))return[null,"string-2"];if(t.eat(/^"/))return(r.tokenize=n)(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(w);f=f&&f[0];return f?"comment"===f&&"("===r.lastToken?(r.tokenize=b)(t,r):z(f,g)||":"===f.charAt(0)?["symbol","atom"]:z(f,h)||z(f,c)?["symbol","keyword"]:"("===r.lastToken?["symbol","builtin"]:["symbol","variable"]:(t.next(),t.eatWhile(function(F){return!z(F,m)}),[null,"error"])}function n(t,r){for(var f=!1,F;F=t.next();){if('"'===F&&!f){r.tokenize=y;break}f=!f&&"\\"===F}return[null, "string"]}function b(t,r){for(var f=1,F;F=t.next();)if(")"===F&&f--,"("===F&&f++,0===f){t.backUp(1);r.tokenize=y;break}return["space","comment"]}function u(t){for(var r={},f=0;f=p)h="def";else if(72<=p&&79>=p)h.skipToEnd(), h="header";else if("*"==m&&6==p)h.skipToEnd(),h="comment";else if('"'==m||"'"==m)h=c.mode="string";else if("'"!=m||z.test(h.peek()))if("."==m)h="link";else if(c=m,"0"===c&&h.eat(/x/i)?(h.eatWhile(A),c=!0):("+"!=c&&"-"!=c||!u.test(h.peek())||(h.eat(B),c=h.next()),u.test(c)?(h.eat(c),h.eatWhile(u),"."==h.peek()&&(h.eat("."),h.eatWhile(u)),h.eat(J)&&(h.eat(B),h.eatWhile(u)),c=!0):c=!1),c)h="number";else{if(h.current().match(g))for(;71>p&&void 0!==h.eat(g);)p++;h=n&&n.propertyIsEnumerable(h.current().toUpperCase())? "keyword":b&&b.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}}});v.defineMIME("text/x-cobol","cobol")})}; shadow$provide[478]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){v.defineMode("coffeescript",function(Y,y){function n(r){return new RegExp("^(("+r.join(")|(")+"))\\b")}function b(r,f){if(r.sol()){null===f.scope.align&&(f.scope.align=!1);var F=f.scope.offset;if(r.eatSpace())return r=r.indentation(),r>F&&"coffee"==f.scope.type?"indent":r|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|~|!|\?|(or|and|\|\||&&|\?)=)/,g=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,h=/^[_A-Za-z$][_A-Za-z$0-9]*/,c=/^@[_A-Za-z$][_A-Za-z$0-9]*/, p=n("and or not is isnt in instanceof typeof".split(" ")),m="for while loop if unless else switch try catch finally class".split(" "),q=n(m.concat("break by continue debugger delete do in of new return then this @ throw when until extends".split(" ")));m=n(m);var E=/^('{3}|"{3}|['"])/,w=/^(\/{3}|\/)/,t=n("Infinity NaN undefined null true false on off yes no".split(" "));return{startState:function(r){return{tokenize:b,scope:{offset:r||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(r, f){var F=null===f.scope.align&&f.scope;F&&r.sol()&&(F.align=!1);var C=f.tokenize(r,f);var M=r.current();"return"===M&&(f.dedent=!0);(("-\x3e"===M||"\x3d\x3e"===M)&&r.eol()||"indent"===C)&&A(r,f);var aa="[({".indexOf(M);-1!==aa&&A(r,f,"])}".slice(aa,aa+1));m.exec(M)&&A(r,f);"then"==M&&B(r,f);if("dedent"===C&&B(r,f))C="error";else{aa="])}".indexOf(M);if(-1!==aa){for(;"coffee"==f.scope.type&&f.scope.prev;)f.scope=f.scope.prev;f.scope.type==M&&(f.scope=f.scope.prev)}f.dedent&&r.eol()&&("coffee"==f.scope.type&& f.scope.prev&&(f.scope=f.scope.prev),f.dedent=!1)}C&&"comment"!=C&&(F&&(F.align=!0),f.prop="punctuation"==C&&"."==r.current());return C},indent:function(r,f){if(r.tokenize!=b)return 0;r=r.scope;var F=f&&-1<"])}".indexOf(f.charAt(0));if(F)for(;"coffee"==r.type&&r.prev;)r=r.prev;f=F&&r.type===f.charAt(0);return r.align?r.alignOffset-(f?1:0):(f?r.prev:r).offset},lineComment:"#",fold:"indent"}});v.defineMIME("application/vnd.coffeescript","coffeescript");v.defineMIME("text/x-coffeescript","coffeescript"); v.defineMIME("text/coffeescript","coffeescript")})}; shadow$provide[479]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){v.defineMode("commonlisp",function(Y){function y(h){for(var c;c=h.next();)if("\\"==c)h.next();else if(!J.test(c)){h.backUp(1);break}return h.current()}function n(h,c){if(h.eatSpace())return g="ws",null;if(h.match(B))return"number";var p=h.next();"\\"==p&&(p=h.next());if('"'==p)return(c.tokenize= b)(h,c);if("("==p)return g="open","bracket";if(")"==p||"]"==p)return g="close","bracket";if(";"==p)return h.skipToEnd(),g="ws","comment";if(/['`,@]/.test(p))return null;if("|"==p){if(h.skipTo("|"))return h.next(),"symbol";h.skipToEnd();return"error"}if("#"==p)return p=h.next(),"("==p?(g="open","bracket"):/[+\-=\.']/.test(p)||/\d/.test(p)&&h.match(/^\d*#/)?null:"|"==p?(c.tokenize=u)(h,c):":"==p?(y(h),"meta"):"\\"==p?(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"==c.lastType&&(z.test(h)||A.test(h))?"keyword":"\x26"==h.charAt(0)?"variable-2":"variable"}function b(h,c){for(var p=!1,m;m=h.next();){if('"'==m&&!p){c.tokenize=n;break}p=!p&&"\\"==m}return"string"}function u(h,c){for(var p,m;p=h.next();){if("#"==p&&"|"==m){c.tokenize=n;break}m=p}g="ws";return"comment"}var z=/^(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)$/, A=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,B=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,J=/[^\s'`,@()\[\]";]/,g;return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:n}},token:function(h,c){h.sol()&&"number"!=typeof c.ctx.indentTo&&(c.ctx.indentTo=c.ctx.start+1);g=null;var p=c.tokenize(h,c);"ws"!=g&&(null==c.ctx.indentTo?"symbol"==g&&A.test(h.current())?c.ctx.indentTo= c.ctx.start+Y.indentUnit:c.ctx.indentTo="next":"next"==c.ctx.indentTo&&(c.ctx.indentTo=h.column()),c.lastType=g);"open"==g?c.ctx={prev:c.ctx,start:h.column(),indentTo:null}:"close"==g&&(c.ctx=c.ctx.prev||c.ctx);return p},indent:function(h,c){c=h.ctx.indentTo;return"number"==typeof c?c:h.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",fold:"brace-paren",blockCommentStart:"#|",blockCommentEnd:"|#"}});v.defineMIME("text/x-common-lisp","commonlisp")})}; shadow$provide[480]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){v.defineMode("crystal",function(Y){function y(P,V){return new RegExp((V?"":"^")+"(?:"+P.join("|")+")"+(V?"$":"\\b"))}function n(P,V,T){T.tokenize.push(P);return P(V,T)}function b(P,V){if(P.eatSpace())return null;if("\\"!=V.lastToken&&P.match("{%",!1))return n(z("%","%"),P,V);if("\\"!=V.lastToken&& P.match("{{",!1))return n(z("{","}"),P,V);if("#"==P.peek())return P.skipToEnd(),"comment";if(P.match(q)){P.eat(/[?!]/);var T=P.current();return P.eat(":")?"atom":"."==V.lastToken?"property":w.test(T)?(r.test(T)?"fun"==T&&0<=V.blocks.indexOf("lib")||"def"==T&&"abstract"==V.lastToken||(V.blocks.push(T),V.currentIndent+=1):"operator"!=V.lastStyle&&V.lastStyle||!f.test(T)?"end"==T&&(V.blocks.pop(),--V.currentIndent):(V.blocks.push(T),V.currentIndent+=1),O.hasOwnProperty(T)&&V.tokenize.push(O[T]),"keyword"): t.test(T)?"atom":"variable"}if(P.eat("@")){if("["==P.peek())return n(u("[","]","meta"),P,V);P.eat("@");P.match(q)||P.match(E);return"variable-2"}if(P.match(E))return"tag";if(P.eat(":")){if(P.eat('"'))return n(J('"',"atom",!1),P,V);if(P.match(q)||P.match(E)||P.match(h)||P.match(c)||P.match(p))return"atom";P.eat(":");return"operator"}if(P.eat('"'))return n(J('"',"string",!0),P,V);if("%"==P.peek()){T="string";var K=!0;if(P.match("%r")){T="string-2";var D=P.next()}else if(P.match("%w"))K=!1,D=P.next(); else if(P.match("%q"))K=!1,D=P.next();else if(D=P.match(/^%([^\w\s=])/))D=D[1];else{if(P.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(P.eat("%"))return"operator"}U.hasOwnProperty(D)&&(D=U[D]);return n(J(D,T,K),P,V)}if(T=P.match(/^<<-('?)([A-Z]\w*)\1/))return n(g(T[2],!T[1]),P,V);if(P.eat("'"))return P.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),P.eat("'"),"atom";if(P.eat("0"))return P.eat("x")?P.match(/^[0-9a-fA-F_]+/):P.eat("o")? P.match(/^[0-7_]+/):P.eat("b")&&P.match(/^[01_]+/),"number";if(P.eat(/^\d/))return P.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number";if(P.match(h))return P.eat("\x3d"),"operator";if(P.match(c)||P.match(m))return"operator";if(T=P.match(/[({[]/,!1))return T=T[0],n(u(T,U[T],null),P,V);if(P.eat("\\"))return P.next(),"meta";P.next();return null}function u(P,V,T,K){return function(D,L){if(!K&&D.match(P))return L.tokenize[L.tokenize.length-1]=u(P,V,T,!0),L.currentIndent+=1,T;var Q=b(D,L);D.current()=== V&&(L.tokenize.pop(),--L.currentIndent,Q=T);return Q}}function z(P,V,T){return function(K,D){return!T&&K.match("{"+P)?(D.currentIndent+=1,D.tokenize[D.tokenize.length-1]=z(P,V,!0),"meta"):K.match(V+"}")?(--D.currentIndent,D.tokenize.pop(),"meta"):b(K,D)}}function A(P,V){if(P.eatSpace())return null;P.match(q)?P.eat(/[!?]/):P.match(h)||P.match(c)||P.match(p);V.tokenize.pop();return"def"}function B(P,V){if(P.eatSpace())return null;P.match(E);V.tokenize.pop();return"def"}function J(P,V,T){return function(K, D){for(var L=!1;K.peek();)if(L)K.next(),L=!1;else{if(K.match("{%",!1)){D.tokenize.push(z("%","%"));break}if(K.match("{{",!1)){D.tokenize.push(z("{","}"));break}if(T&&K.match("#{",!1)){D.tokenize.push(u("#{","}","meta"));break}L=K.next();if(L==P){D.tokenize.pop();break}L=T&&"\\"==L}return V}}function g(P,V){return function(T,K){if(T.sol()&&(T.eatSpace(),T.match(P)))return K.tokenize.pop(),"string";for(var D=!1;T.peek();)if(D)T.next(),D=!1;else{if(T.match("{%",!1)){K.tokenize.push(z("%","%"));break}if(T.match("{{", !1)){K.tokenize.push(z("{","}"));break}if(V&&T.match("#{",!1)){K.tokenize.push(u("#{","}","meta"));break}D=V&&"\\"==T.next()}return"string"}}var h=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,c=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,p=/^(?:\[\][?=]?)/,m=/^(?:\.(?:\.{2})?|->|[?:])/,q=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,E=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,w=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(" ")),F=["end","else","elsif","rescue","ensure"],C=y(F),M=["\\)","\\}","\\]"],aa=new RegExp("^(?:"+M.join("|")+")$"),O={def:A,fun:A,macro:function(P,V){if(P.eatSpace())return null;var T;if(T=P.match(q)){if("def"==T)return"keyword";P.eat(/[?!]/)}V.tokenize.pop();return"def"},"class":B,module:B,struct:B,lib:B,"enum":B,union:B},U={"[":"]","{":"}", "(":")","\x3c":"\x3e"};return{startState:function(){return{tokenize:[b],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(P,V){var T=V.tokenize[V.tokenize.length-1](P,V);P=P.current();T&&"comment"!=T&&(V.lastToken=P,V.lastStyle=T);return T},indent:function(P,V){V=V.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,"");return C.test(V)||aa.test(V)?Y.indentUnit*(P.currentIndent-1):Y.indentUnit*P.currentIndent},fold:"indent",electricInput:y(M.concat(F),!0),lineComment:"#"}});v.defineMIME("text/x-crystal", "crystal")})}; shadow$provide[481]=function(ya,ba,Ta,I){(function(v){"object"==typeof I&&"object"==typeof Ta?v(ba(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],v):v(CodeMirror)})(function(v){function Y(F){for(var C={},M=0;M*\/]/.test(ma)?M(null,"select-op"):"."==ma&&Ua.match(/^-?[_a-z][_a-z0-9-]*/i)?M("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ma)?M(null,ma):Ua.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Ua.current())&&(La.tokenize=U),M("variable callee","variable")):/[\w\\\-]/.test(ma)? (Ua.eatWhile(/[\w\\\-]/),M("property","word")):M(null,null)}function O(Ua){return function(La,ma){for(var ja=!1,oa;null!=(oa=La.next());){if(oa==Ua&&!ja){")"==Ua&&La.backUp(1);break}ja=!ja&&"\\"==oa}if(oa==Ua||!ja&&")"!=Ua)ma.tokenize=null;return M("string","string")}}function U(Ua,La){Ua.next();Ua.match(/^\s*["')]/,!1)?La.tokenize=null:La.tokenize=O(")");return M(null,"(")}function P(Ua,La,ma){this.type=Ua;this.indent=La;this.prev=ma}function V(Ua,La,ma,ja){Ua.context=new P(ma,La.indentation()+(!1=== ja?0:Q),Ua.context);return ma}function T(Ua){Ua.context.prev&&(Ua.context=Ua.context.prev);return Ua.context.type}function K(Ua,La,ma,ja){for(ja=ja||1;0