1721 lines
965 KiB
JavaScript
1721 lines
965 KiB
JavaScript
|
(function(){
|
|||
|
shadow$provide[454]=function(wa,W,Ta,I){(function(q,R){"object"===typeof I&&"undefined"!==typeof Ta?Ta.exports=R():"function"===typeof define&&define.amd?define(R):(q=q||self,q.CodeMirror=R())})(this,function(){function q(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}function R(y){for(var V=y.childNodes.length;0<V;--V)y.removeChild(y.firstChild);return y}function A(y,V){return R(y).appendChild(V)}function t(y,V,xa,ua){y=document.createElement(y);xa&&(y.className=xa);ua&&(y.style.cssText=ua);if("string"==
|
|||
|
typeof V)y.appendChild(document.createTextNode(V));else if(V)for(xa=0;xa<V.length;++xa)y.appendChild(V[xa]);return y}function d(y,V,xa,ua){y=t(y,V,xa,ua);y.setAttribute("role","presentation");return y}function w(y,V){3==V.nodeType&&(V=V.parentNode);if(y.contains)return y.contains(V);do if(11==V.nodeType&&(V=V.host),V==y)return!0;while(V=V.parentNode)}function B(){try{var y=document.activeElement}catch(V){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;
|
|||
|
return y}function C(y,V){var xa=y.className;q(V).test(xa)||(y.className+=(xa?" ":"")+V)}function a(y,V){y=y.split(" ");for(var xa=0;xa<y.length;xa++)y[xa]&&!q(y[xa]).test(V)&&(V+=" "+y[xa]);return V}function K(y){var V=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,V)}}function r(y,V,xa){V||={};for(var ua in y)!y.hasOwnProperty(ua)||!1===xa&&V.hasOwnProperty(ua)||(V[ua]=y[ua]);return V}function h(y,V,xa,ua,Fa){null==V&&(V=y.search(/[^\s\u00a0]/),-1==V&&(V=y.length));
|
|||
|
ua=ua||0;for(Fa=Fa||0;;){var $a=y.indexOf("\t",ua);if(0>$a||$a>=V)return Fa+(V-ua);Fa+=$a-ua;Fa+=xa-Fa%xa;ua=$a+1}}function k(y,V){for(var xa=0;xa<y.length;++xa)if(y[xa]==V)return xa;return-1}function f(y,V,xa){for(var ua=0,Fa=0;;){var $a=y.indexOf("\t",ua);-1==$a&&($a=y.length);var qb=$a-ua;if($a==y.length||Fa+qb>=V)return ua+Math.min(qb,V-Fa);Fa+=$a-ua;Fa+=xa-Fa%xa;ua=$a+1;if(Fa>=V)return ua}}function v(y){for(;zi.length<=y;)zi.push(x(zi)+" ");return zi[y]}function x(y){return y[y.length-1]}function L(y,
|
|||
|
V){for(var xa=[],ua=0;ua<y.length;ua++)xa[ua]=V(y[ua],ua);return xa}function z(y,V,xa){for(var ua=0,Fa=xa(V);ua<y.length&&xa(y[ua])<=Fa;)ua++;y.splice(ua,0,V)}function u(){}function m(y,V){Object.create?y=Object.create(y):(u.prototype=y,y=new u);V&&r(V,y);return y}function l(y){return/\w/.test(y)||""<y&&(y.toUpperCase()!=y.toLowerCase()||tk.test(y))}function J(y,V){return V?-1<V.source.indexOf("\\w")&&l(y)?!0:V.test(y):l(y)}function X(y){for(var V in y)if(y.hasOwnProperty(V)&&y[V])return!1;return!0}
|
|||
|
function F(y){return 768<=y.charCodeAt(0)&&Ql.test(y)}function ha(y,V,xa){for(;(0>xa?0<V:V<y.length)&&F(y.charAt(V));)V+=xa;return V}function T(y,V,xa){for(var ua=V>xa?-1:1;;){if(V==xa)return V;var Fa=(V+xa)/2;Fa=0>ua?Math.ceil(Fa):Math.floor(Fa);if(Fa==V)return y(Fa)?V:xa;y(Fa)?xa=Fa:V=Fa+ua}}function Z(y,V,xa,ua){if(!y)return ua(V,xa,"ltr",0);for(var Fa=!1,$a=0;$a<y.length;++$a){var qb=y[$a];if(qb.from<xa&&qb.to>V||V==xa&&qb.to==V)ua(Math.max(qb.from,V),Math.min(qb.to,xa),1==qb.level?"rtl":"ltr",
|
|||
|
$a),Fa=!0}Fa||ua(V,xa,"ltr")}function E(y,V,xa){var ua;Yi=null;for(var Fa=0;Fa<y.length;++Fa){var $a=y[Fa];if($a.from<V&&$a.to>V)return Fa;$a.to==V&&($a.from!=$a.to&&"before"==xa?ua=Fa:Yi=Fa);$a.from==V&&($a.from!=$a.to&&"before"!=xa?ua=Fa:Yi=Fa)}return null!=ua?ua:Yi}function aa(y,V){var xa=y.order;null==xa&&(xa=y.order=om(y.text,V));return xa}function M(y,V,xa){if(y.removeEventListener)y.removeEventListener(V,xa,!1);else if(y.detachEvent)y.detachEvent("on"+V,xa);else{var ua=(y=y._handlers)&&y[V];
|
|||
|
ua&&(xa=k(ua,xa),-1<xa&&(y[V]=ua.slice(0,xa).concat(ua.slice(xa+1))))}}function S(y,V){var xa=y._handlers&&y._handlers[V]||Rm;if(xa.length)for(var ua=Array.prototype.slice.call(arguments,2),Fa=0;Fa<xa.length;++Fa)xa[Fa].apply(null,ua)}function D(y,V,xa){"string"==typeof V&&(V={type:V,preventDefault:function(){this.defaultPrevented=!0}});S(y,xa||V.type,y,V);return ja(V)||V.codemirrorIgnore}function O(y){var V=y._handlers&&y._handlers.cursorActivity;if(V){y=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=
|
|||
|
[]);for(var xa=0;xa<V.length;++xa)-1==k(y,V[xa])&&y.push(V[xa])}}function P(y,V){return 0<(y._handlers&&y._handlers[V]||Rm).length}function da(y){y.prototype.on=function(V,xa){ug(this,V,xa)};y.prototype.off=function(V,xa){M(this,V,xa)}}function ba(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function H(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function ja(y){return null!=y.defaultPrevented?y.defaultPrevented:0==y.returnValue}function N(y){ba(y);H(y)}function ca(y){var V=
|
|||
|
y.which;null==V&&(y.button&1?V=1:y.button&2?V=3:y.button&4&&(V=2));Tf&&y.ctrlKey&&1==V&&(V=3);return V}function ia(y,V){2<arguments.length&&(V.dependencies=Array.prototype.slice.call(arguments,2));oi[y]=V}function ea(y){if("string"==typeof y&&pm.hasOwnProperty(y))y=pm[y];else if(y&&"string"==typeof y.name&&pm.hasOwnProperty(y.name)){var V=pm[y.name];"string"==typeof V&&(V={name:V});y=m(V,y);y.name=V.name}else{if("string"==typeof y&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return ea("application/xml");if("string"==
|
|||
|
typeof y&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return ea("application/json")}return"string"==typeof y?{name:y}:y||{name:"null"}}function qa(y,V){V=ea(V);var xa=oi[V.name];if(!xa)return qa(y,"text/plain");y=xa(y,V);if(rm.hasOwnProperty(V.name)){xa=rm[V.name];for(var ua in xa)xa.hasOwnProperty(ua)&&(y.hasOwnProperty(ua)&&(y["_"+ua]=y[ua]),y[ua]=xa[ua])}y.name=V.name;V.helperType&&(y.helperType=V.helperType);if(V.modeProps)for(var Fa in V.modeProps)y[Fa]=V.modeProps[Fa];return y}function za(y,V){y=rm.hasOwnProperty(y)?
|
|||
|
rm[y]:rm[y]={};r(V,y)}function ya(y,V){if(!0===V)return V;if(y.copyState)return y.copyState(V);y={};for(var xa in V){var ua=V[xa];ua instanceof Array&&(ua=ua.concat([]));y[xa]=ua}return y}function Ha(y,V){for(var xa;y.innerMode;){xa=y.innerMode(V);if(!xa||xa.mode==y)break;V=xa.state;y=xa.mode}return xa||{mode:y,state:V}}function Ua(y,V,xa){return y.startState?y.startState(V,xa):!0}function Ea(y,V){V-=y.first;if(0>V||V>=y.size)throw Error("There is no line "+(V+y.first)+" in the document.");for(;!y.lines;)for(var xa=
|
|||
|
0;;++xa){var ua=y.children[xa],Fa=ua.chunkSize();if(V<Fa){y=ua;break}V-=Fa}return y.lines[V]}function Oa(y,V,xa){var ua=[],Fa=V.line;y.iter(V.line,xa.line+1,function($a){$a=$a.text;Fa==xa.line&&($a=$a.slice(0,xa.ch));Fa==V.line&&($a=$a.slice(V.ch));ua.push($a);++Fa});return ua}function Xa(y,V,xa){var ua=[];y.iter(V,xa,function(Fa){ua.push(Fa.text)});return ua}function Ma(y,V){if(V-=y.height)for(;y;y=y.parent)y.height+=V}function eb(y){if(null==y.parent)return null;var V=y.parent;y=k(V.lines,y);for(var xa=
|
|||
|
V.parent;xa;V=xa,xa=xa.parent)for(var ua=0;xa.children[ua]!=V;++ua)y+=xa.children[ua].chunkSize();return y+V.first}function db(y,V){var xa=y.first;a:do{for(var ua=0;ua<y.children.length;++ua){var Fa=y.children[ua],$a=Fa.height;if(V<$a){y=Fa;continue a}V-=$a;xa+=Fa.chunkSize()}return xa}while(!y.lines);for(ua=0;ua<y.lines.length;++ua){Fa=y.lines[ua].height;if(V<Fa)break;V-=Fa}return xa+ua}function Na(y,V){return V>=y.first&&V<y.first+y.size}function oa(y,V){return String(y.lineNumberFormatter(V+y.firstLineNumber))}
|
|||
|
function Ca(y,V,xa){void 0===xa&&(xa=null);if(!(this instanceof Ca))return new Ca(y,V,xa);this.line=y;this.ch=V;this.sticky=xa}function sa(y,V){return y.line-V.line||y.ch-V.ch}function Aa(y,V){return y.sticky==V.sticky&&0==sa(y,V)}function Ja(y){return Ca(y.line,y.ch)}function Sa(y,V){return 0>sa(y,V)?V:y}function Ab(y,V){return 0>sa(y,V)?y:V}function jb(y,V){if(V.line<y.first)return Ca(y.first,0);var xa=y.first+y.size-1;if(V.line>xa)return Ca(xa,Ea(y,xa).text.length);y=Ea(y,V.line).text.length;xa=
|
|||
|
V.ch;V=null==xa||xa>y?Ca(V.line,y):0>xa?Ca(V.line,0):V;return V}function Ob(y,V){for(var xa=[],ua=0;ua<V.length;ua++)xa[ua]=jb(y,V[ua]);return xa}function Wb(y,V,xa,ua){var Fa=[y.state.modeGen],$a={};Pc(y,V.text,y.doc.mode,xa,function(Xb,Cc){return Fa.push(Xb,Cc)},$a,ua);var qb=xa.state;ua=function(Xb){xa.baseTokens=Fa;var Cc=y.state.overlays[Xb],Dc=1,Fd=0;xa.state=!0;Pc(y,V.text,Cc.mode,xa,function(Md,od){for(var Ce=Dc;Fd<Md;){var Cf=Fa[Dc];Cf>Md&&Fa.splice(Dc,1,Md,Fa[Dc+1],Cf);Dc+=2;Fd=Math.min(Md,
|
|||
|
Cf)}if(od)if(Cc.opaque)Fa.splice(Ce,Dc-Ce,Md,"overlay "+od),Dc=Ce+2;else for(;Ce<Dc;Ce+=2)Md=Fa[Ce+1],Fa[Ce+1]=(Md?Md+" ":"")+"overlay "+od},$a);xa.state=qb;xa.baseTokens=null;xa.baseTokenPos=1};for(var ub=0;ub<y.state.overlays.length;++ub)ua(ub);return{styles:Fa,classes:$a.bgClass||$a.textClass?$a:null}}function hc(y,V,xa){if(!V.styles||V.styles[0]!=y.state.modeGen){var ua=Pa(y,eb(V)),Fa=V.text.length>y.options.maxHighlightLength&&ya(y.doc.mode,ua.state),$a=Wb(y,V,ua);Fa&&(ua.state=Fa);V.stateAfter=
|
|||
|
ua.save(!Fa);V.styles=$a.styles;$a.classes?V.styleClasses=$a.classes:V.styleClasses&&(V.styleClasses=null);xa===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return V.styles}function Pa(y,V,xa){var ua=y.doc,Fa=y.display;if(!ua.mode.startState)return new re(ua,!0,V);var $a=Fb(y,V,xa),qb=$a>ua.first&&Ea(ua,$a-1).stateAfter,ub=qb?re.fromSaved(ua,qb,$a):new re(ua,Ua(ua.mode),$a);ua.iter($a,V,function(Xb){ob(y,Xb.text,ub);var Cc=ub.line;Xb.stateAfter=
|
|||
|
Cc==V-1||0==Cc%5||Cc>=Fa.viewFrom&&Cc<Fa.viewTo?ub.save():null;ub.nextLine()});xa&&(ua.modeFrontier=ub.line);return ub}function ob(y,V,xa,ua){var Fa=y.doc.mode;y=new Ri(V,y.options.tabSize,xa);y.start=y.pos=ua||0;for(""==V&&pb(Fa,xa.state);!y.eol();)Zb(Fa,y,xa.state),y.start=y.pos}function pb(y,V){if(y.blankLine)return y.blankLine(V);if(y.innerMode&&(y=Ha(y,V),y.mode.blankLine))return y.mode.blankLine(y.state)}function Zb(y,V,xa,ua){for(var Fa=0;10>Fa;Fa++){ua&&(ua[0]=Ha(y,xa).mode);var $a=y.token(V,
|
|||
|
xa);if(V.pos>V.start)return $a}throw Error("Mode "+y.name+" failed to advance stream.");}function Jc(y,V,xa,ua){var Fa=y.doc,$a=Fa.mode;V=jb(Fa,V);var qb=Ea(Fa,V.line);xa=Pa(y,V.line,xa);y=new Ri(qb.text,y.options.tabSize,xa);var ub;for(ua&&(ub=[]);(ua||y.pos<V.ch)&&!y.eol();){y.start=y.pos;var Xb=Zb($a,y,xa.state);ua&&ub.push(new Mf(y,Xb,ya(Fa.mode,xa.state)))}return ua?ub:new Mf(y,Xb,xa.state)}function ad(y,V){if(y)for(;;){var xa=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!xa)break;y=y.slice(0,
|
|||
|
xa.index)+y.slice(xa.index+xa[0].length);var ua=xa[1]?"bgClass":"textClass";null==V[ua]?V[ua]=xa[2]:(new RegExp("(?:^|\\s)"+xa[2]+"(?:$|\\s)")).test(V[ua])||(V[ua]+=" "+xa[2])}return y}function Pc(y,V,xa,ua,Fa,$a,qb){var ub=xa.flattenSpans;null==ub&&(ub=y.options.flattenSpans);var Xb=0,Cc=null,Dc=new Ri(V,y.options.tabSize,ua),Fd=y.options.addModeClass&&[null];for(""==V&&ad(pb(xa,ua.state),$a);!Dc.eol();){if(Dc.pos>y.options.maxHighlightLength){ub=!1;qb&&ob(y,V,ua,Dc.pos);Dc.pos=V.length;var Md=null}else Md=
|
|||
|
ad(Zb(xa,Dc,ua.state,Fd),$a);if(Fd){var od=Fd[0].name;od&&(Md="m-"+(Md?od+" "+Md:od))}if(!ub||Cc!=Md){for(;Xb<Dc.start;)Xb=Math.min(Dc.start,Xb+5E3),Fa(Xb,Cc);Cc=Md}Dc.start=Dc.pos}for(;Xb<Dc.pos;)y=Math.min(Dc.pos,Xb+5E3),Fa(y,Cc),Xb=y}function Fb(y,V,xa){for(var ua,Fa,$a=y.doc,qb=xa?-1:V-(y.doc.mode.innerMode?1E3:100);V>qb;--V){if(V<=$a.first)return $a.first;var ub=Ea($a,V-1),Xb=ub.stateAfter;if(Xb&&(!xa||V+(Xb instanceof $k?Xb.lookAhead:0)<=$a.modeFrontier))return V;ub=h(ub.text,null,y.options.tabSize);
|
|||
|
if(null==Fa||ua>ub)Fa=V-1,ua=ub}return Fa}function yc(y,V){y.modeFrontier=Math.min(y.modeFrontier,V);if(!(y.highlightFrontier<V-10)){for(var xa=y.first,ua=V-1;ua>xa;ua--){var Fa=Ea(y,ua).stateAfter;if(Fa&&(!(Fa instanceof $k)||ua+Fa.lookAhead<V)){xa=ua+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,xa)}}function Vc(y,V,xa){this.marker=y;this.from=V;this.to=xa}function hd(y,V){if(y)for(var xa=0;xa<y.length;++xa){var ua=y[xa];if(ua.marker==V)return ua}}function Kd(y,V){if(V.full)return null;
|
|||
|
var xa=Na(y,V.from.line)&&Ea(y,V.from.line).markedSpans,ua=Na(y,V.to.line)&&Ea(y,V.to.line).markedSpans;if(!xa&&!ua)return null;y=V.from.ch;var Fa=V.to.ch,$a=0==sa(V.from,V.to),qb;if(xa)for(var ub=0;ub<xa.length;++ub){var Xb=xa[ub],Cc=Xb.marker;if(null==Xb.from||(Cc.inclusiveLeft?Xb.from<=y:Xb.from<y)||!(Xb.from!=y||"bookmark"!=Cc.type||$a&&Xb.marker.insertLeft)){var Dc=null==Xb.to||(Cc.inclusiveRight?Xb.to>=y:Xb.to>y);(qb||=[]).push(new Vc(Cc,Xb.from,Dc?null:Xb.to))}}xa=qb;var Fd;if(ua)for(qb=0;qb<
|
|||
|
ua.length;++qb)if(ub=ua[qb],Xb=ub.marker,null==ub.to||(Xb.inclusiveRight?ub.to>=Fa:ub.to>Fa)||ub.from==Fa&&"bookmark"==Xb.type&&(!$a||ub.marker.insertLeft))Cc=null==ub.from||(Xb.inclusiveLeft?ub.from<=Fa:ub.from<Fa),(Fd||=[]).push(new Vc(Xb,Cc?null:ub.from-Fa,null==ub.to?null:ub.to-Fa));ua=1==V.text.length;Fa=x(V.text).length+(ua?y:0);if(xa)for($a=0;$a<xa.length;++$a)if(qb=xa[$a],null==qb.to)(ub=hd(Fd,qb.marker),ub)?ua&&(qb.to=null==ub.to?null:ub.to+Fa):qb.to=y;if(Fd)for(y=0;y<Fd.length;++y)$a=Fd[y],
|
|||
|
null!=$a.to&&($a.to+=Fa),null==$a.from?hd(xa,$a.marker)||($a.from=Fa,ua&&(xa||=[]).push($a)):($a.from+=Fa,ua&&(xa||=[]).push($a));xa&&=Jd(xa);Fd&&Fd!=xa&&(Fd=Jd(Fd));y=[xa];if(!ua){V=V.text.length-2;var Md;if(0<V&&xa)for(ua=0;ua<xa.length;++ua)null==xa[ua].to&&(Md||=[]).push(new Vc(xa[ua].marker,null,null));for(xa=0;xa<V;++xa)y.push(Md);y.push(Fd)}return y}function Jd(y){for(var V=0;V<y.length;++V){var xa=y[V];null!=xa.from&&xa.from==xa.to&&!1!==xa.marker.clearWhenEmpty&&y.splice(V--,1)}return y.length?
|
|||
|
y:null}function pc(y,V,xa){var ua=null;y.iter(V.line,xa.line+1,function(Dc){if(Dc.markedSpans)for(var Fd=0;Fd<Dc.markedSpans.length;++Fd){var Md=Dc.markedSpans[Fd].marker;!Md.readOnly||ua&&-1!=k(ua,Md)||(ua||=[]).push(Md)}});if(!ua)return null;y=[{from:V,to:xa}];for(V=0;V<ua.length;++V){xa=ua[V];for(var Fa=xa.find(0),$a=0;$a<y.length;++$a){var qb=y[$a];if(!(0>sa(qb.to,Fa.from)||0<sa(qb.from,Fa.to))){var ub=[$a,1],Xb=sa(qb.from,Fa.from),Cc=sa(qb.to,Fa.to);(0>Xb||!xa.inclusiveLeft&&!Xb)&&ub.push({from:qb.from,
|
|||
|
to:Fa.from});(0<Cc||!xa.inclusiveRight&&!Cc)&&ub.push({from:Fa.to,to:qb.to});y.splice.apply(y,ub);$a+=ub.length-3}}}return y}function Dd(y){var V=y.markedSpans;if(V){for(var xa=0;xa<V.length;++xa)V[xa].marker.detachLine(y);y.markedSpans=null}}function wd(y,V){if(V){for(var xa=0;xa<V.length;++xa)V[xa].marker.attachLine(y);y.markedSpans=V}}function Yd(y,V){var xa=y.lines.length-V.lines.length;if(0!=xa)return xa;xa=y.find();var ua=V.find(),Fa=sa(xa.from,ua.from)||(y.inclusiveLeft?-1:0)-(V.inclusiveLeft?
|
|||
|
-1:0);return Fa?-Fa:(xa=sa(xa.to,ua.to)||(y.inclusiveRight?1:0)-(V.inclusiveRight?1:0))?xa:V.id-y.id}function td(y,V){y=ff&&y.markedSpans;if(y)for(var xa,ua=0;ua<y.length;++ua)if(xa=y[ua],xa.marker.collapsed&&null==(V?xa.from:xa.to)&&(!Fa||0>Yd(Fa,xa.marker)))var Fa=xa.marker;return Fa}function Qd(y,V,xa,ua,Fa){y=Ea(y,V);if(y=ff&&y.markedSpans)for(V=0;V<y.length;++V){var $a=y[V];if($a.marker.collapsed){var qb=$a.marker.find(0),ub=sa(qb.from,xa)||($a.marker.inclusiveLeft?-1:0)-(Fa.inclusiveLeft?-1:
|
|||
|
0),Xb=sa(qb.to,ua)||($a.marker.inclusiveRight?1:0)-(Fa.inclusiveRight?1:0);if(!(0<=ub&&0>=Xb||0>=ub&&0<=Xb)&&(0>=ub&&($a.marker.inclusiveRight&&Fa.inclusiveLeft?0<=sa(qb.to,xa):0<sa(qb.to,xa))||0<=ub&&($a.marker.inclusiveRight&&Fa.inclusiveLeft?0>=sa(qb.from,ua):0>sa(qb.from,ua))))return!0}}}function ld(y){for(var V;V=td(y,!0);)y=V.find(-1,!0).line;return y}function Sd(y,V){y=Ea(y,V);var xa=ld(y);return y==xa?V:eb(xa)}function Nb(y,V){if(V>y.lastLine())return V;var xa=Ea(y,V);if(!fc(y,xa))return V;
|
|||
|
for(;y=td(xa,!1);)xa=y.find(1,!0).line;return eb(xa)+1}function fc(y,V){var xa=ff&&V.markedSpans;if(xa)for(var ua,Fa=0;Fa<xa.length;++Fa)if(ua=xa[Fa],ua.marker.collapsed&&(null==ua.from||!ua.marker.widgetNode&&0==ua.from&&ua.marker.inclusiveLeft&&Yb(y,V,ua)))return!0}function Yb(y,V,xa){if(null==xa.to)return V=xa.marker.find(1,!0),Yb(y,V.line,hd(V.line.markedSpans,xa.marker));if(xa.marker.inclusiveRight&&xa.to==V.text.length)return!0;for(var ua,Fa=0;Fa<V.markedSpans.length;++Fa)if(ua=V.markedSpans[Fa],
|
|||
|
ua.marker.collapsed&&!ua.marker.widgetNode&&ua.from==xa.to&&(null==ua.to||ua.to!=xa.from)&&(ua.marker.inclusiveLeft||xa.marker.inclusiveRight)&&Yb(y,V,ua))return!0}function rb(y){y=ld(y);for(var V=0,xa=y.parent,ua=0;ua<xa.lines.length;++ua){var Fa=xa.lines[ua];if(Fa==y)break;else V+=Fa.height}for(y=xa.parent;y;xa=y,y=xa.parent)for(ua=0;ua<y.children.length&&(Fa=y.children[ua],Fa!=xa);++ua)V+=Fa.height;return V}function nb(y){if(0==y.height)return 0;for(var V=y.text.length,xa,ua=y;xa=td(ua,!0);)xa=
|
|||
|
xa.find(0,!0),ua=xa.from.line,V+=xa.from.ch-xa.to.ch;for(ua=y;xa=td(ua,!1);)y=xa.find(0,!0),V-=ua.text.length-y.from.ch,ua=y.to.line,V+=ua.text.length-y.to.ch;return V}function cc(y){var V=y.display;y=y.doc;V.maxLine=Ea(y,y.first);V.maxLineLength=nb(V.maxLine);V.maxLineChanged=!0;y.iter(function(xa){var ua=nb(xa);ua>V.maxLineLength&&(V.maxLineLength=ua,V.maxLine=xa)})}function uc(y,V){if(!y||/^\s*$/.test(y))return null;V=V.addModeClass?fj:dg;return V[y]||(V[y]=y.replace(/\S+/g,"cm-$\x26"))}function Uc(y,
|
|||
|
V){var xa=d("span",null,null,Gd?"padding-right: .1px":null);xa={pre:d("pre",[xa],"CodeMirror-line"),content:xa,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};V.measure={};for(var ua=0;ua<=(V.rest?V.rest.length:0);ua++){var Fa=ua?V.rest[ua-1]:V.line,$a=void 0;xa.pos=0;xa.addToken=Ld;var qb=y.display.measure;if(null!=am)qb=am;else{var ub=A(qb,document.createTextNode("AخA")),Xb=pg(ub,0,1).getBoundingClientRect();ub=pg(ub,1,2).getBoundingClientRect();R(qb);qb=Xb&&Xb.left!=
|
|||
|
Xb.right?am=3>ub.right-Xb.right:!1}qb&&($a=aa(Fa,y.doc.direction))&&(xa.addToken=be(xa.addToken,$a));xa.map=[];var Cc=V!=y.display.externalMeasured&&eb(Fa);a:{var Dc=ub=Xb=qb=void 0,Fd=void 0,Md=void 0,od=void 0;$a=xa;Cc=hc(y,Fa,Cc);var Ce=Fa.markedSpans,Cf=Fa.text,Ng=0;if(Ce)for(var tj=Cf.length,yg=0,nh=1,ai="",Bi=0;;){if(Bi==yg){Fd=Dc=ub=Md="";Xb=qb=null;Bi=Infinity;for(var Gh=[],ig=void 0,Rf=0;Rf<Ce.length;++Rf){var Ch=Ce[Rf],ih=Ch.marker;if("bookmark"==ih.type&&Ch.from==yg&&ih.widgetNode)Gh.push(ih);
|
|||
|
else if(Ch.from<=yg&&(null==Ch.to||Ch.to>yg||ih.collapsed&&Ch.to==yg&&Ch.from==yg)){null!=Ch.to&&Ch.to!=yg&&Bi>Ch.to&&(Bi=Ch.to,Dc="");ih.className&&(Fd+=" "+ih.className);ih.css&&(Md=(Md?Md+";":"")+ih.css);ih.startStyle&&Ch.from==yg&&(ub+=" "+ih.startStyle);ih.endStyle&&Ch.to==Bi&&(ig||=[]).push(ih.endStyle,Ch.to);ih.title&&((qb||={}).title=ih.title);if(ih.attributes)for(var Cj in ih.attributes)(qb||={})[Cj]=ih.attributes[Cj];ih.collapsed&&(!Xb||0>Yd(Xb.marker,ih))&&(Xb=Ch)}else Ch.from>yg&&Bi>Ch.from&&
|
|||
|
(Bi=Ch.from)}if(ig)for(Rf=0;Rf<ig.length;Rf+=2)ig[Rf+1]==Bi&&(Dc+=" "+ig[Rf]);if(!Xb||Xb.from==yg)for(ig=0;ig<Gh.length;++ig)ue($a,0,Gh[ig]);if(Xb&&(Xb.from||0)==yg){ue($a,(null==Xb.to?tj+1:Xb.to)-yg,Xb.marker,null==Xb.from);if(null==Xb.to)break a;Xb.to==yg&&(Xb=!1)}}if(yg>=tj)break;for(Gh=Math.min(tj,Bi);;){if(ai){ig=yg+ai.length;Xb||(Rf=ig>Gh?ai.slice(0,Gh-yg):ai,$a.addToken($a,Rf,od?od+Fd:Fd,ub,yg+Rf.length==Bi?Dc:"",Md,qb));if(ig>=Gh){ai=ai.slice(Gh-yg);yg=Gh;break}yg=ig;ub=""}ai=Cf.slice(Ng,
|
|||
|
Ng=Cc[nh++]);od=uc(Cc[nh++],$a.cm.options)}}else for(qb=1;qb<Cc.length;qb+=2)$a.addToken($a,Cf.slice(Ng,Ng=Cc[qb]),uc(Cc[qb+1],$a.cm.options))}Fa.styleClasses&&(Fa.styleClasses.bgClass&&(xa.bgClass=a(Fa.styleClasses.bgClass,xa.bgClass||"")),Fa.styleClasses.textClass&&(xa.textClass=a(Fa.styleClasses.textClass,xa.textClass||"")));0==xa.map.length&&(Fa=xa.map,$a=Fa.push,qb=xa.content,Xb=qb.appendChild,ub=y.display.measure,null==cn&&(Dc=t("span",""),A(ub,t("span",[Dc,document.createTextNode("x")])),
|
|||
|
0!=ub.firstChild.offsetHeight&&(cn=1>=Dc.offsetWidth&&2<Dc.offsetHeight&&!(Ed&&8>Bd))),ub=cn?t("span",""):t("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px"),ub.setAttribute("cm-text",""),$a.call(Fa,0,0,Xb.call(qb,ub)));0==ua?(V.measure.map=xa.map,V.measure.cache={}):((V.measure.maps||(V.measure.maps=[])).push(xa.map),(V.measure.caches||(V.measure.caches=[])).push({}))}Gd&&(Cj=xa.content.lastChild,/\bcm-tab\b/.test(Cj.className)||Cj.querySelector&&Cj.querySelector(".cm-tab"))&&
|
|||
|
(xa.content.className="cm-tab-wrap-hack");S(y,"renderLine",y,V.line,xa.pre);xa.pre.className&&(xa.textClass=a(xa.pre.className,xa.textClass||""));return xa}function cd(y){var V=t("span","•","cm-invalidchar");V.title="\\u"+y.charCodeAt(0).toString(16);V.setAttribute("aria-label",V.title);return V}function Ld(y,V,xa,ua,Fa,$a,qb){if(V){if(y.splitSpaces){var ub=y.trailingSpace;if(1<V.length&&!/ /.test(V))ub=V;else{for(var Xb="",Cc=0;Cc<V.length;Cc++){var Dc=V.charAt(Cc);" "!=Dc||!ub||Cc!=V.length-1&&
|
|||
|
32!=V.charCodeAt(Cc+1)||(Dc=" ");Xb+=Dc;ub=" "==Dc}ub=Xb}}else ub=V;Xb=ub;Cc=y.cm.state.specialChars;Dc=!1;if(Cc.test(V)){ub=document.createDocumentFragment();for(var Fd=0;;){Cc.lastIndex=Fd;var Md=Cc.exec(V),od=Md?Md.index-Fd:V.length-Fd;if(od){var Ce=document.createTextNode(Xb.slice(Fd,Fd+od));Ed&&9>Bd?ub.appendChild(t("span",[Ce])):ub.appendChild(Ce);y.map.push(y.pos,y.pos+od,Ce);y.col+=od;y.pos+=od}if(!Md)break;Fd+=od+1;"\t"==Md[0]?(Md=y.cm.options.tabSize,Md-=y.col%Md,od=ub.appendChild(t("span",
|
|||
|
v(Md),"cm-tab")),od.setAttribute("role","presentation"),od.setAttribute("cm-text","\t"),y.col+=Md):("\r"==Md[0]||"\n"==Md[0]?(od=ub.appendChild(t("span","\r"==Md[0]?"␍":"","cm-invalidchar")),od.setAttribute("cm-text",Md[0])):(od=y.cm.options.specialCharPlaceholder(Md[0]),od.setAttribute("cm-text",Md[0]),Ed&&9>Bd?ub.appendChild(t("span",[od])):ub.appendChild(od)),y.col+=1);y.map.push(y.pos,y.pos+1,od);y.pos++}}else y.col+=V.length,ub=document.createTextNode(Xb),y.map.push(y.pos,y.pos+V.length,ub),
|
|||
|
Ed&&9>Bd&&(Dc=!0),y.pos+=V.length;y.trailingSpace=32==Xb.charCodeAt(V.length-1);if(xa||ua||Fa||Dc||$a||qb){V=xa||"";ua&&(V+=ua);Fa&&(V+=Fa);ua=t("span",[ub],V,$a);if(qb)for(var Cf in qb)qb.hasOwnProperty(Cf)&&"style"!=Cf&&"class"!=Cf&&ua.setAttribute(Cf,qb[Cf]);return y.content.appendChild(ua)}y.content.appendChild(ub)}}function be(y,V){return function(xa,ua,Fa,$a,qb,ub,Xb){Fa=Fa?Fa+" cm-force-border":"cm-force-border";for(var Cc=xa.pos,Dc=Cc+ua.length;;){for(var Fd=void 0,Md=0;Md<V.length&&!(Fd=
|
|||
|
V[Md],Fd.to>Cc&&Fd.from<=Cc);Md++);if(Fd.to>=Dc)return y(xa,ua,Fa,$a,qb,ub,Xb);y(xa,ua.slice(0,Fd.to-Cc),Fa,$a,null,ub,Xb);$a=null;ua=ua.slice(Fd.to-Cc);Cc=Fd.to}}}function ue(y,V,xa,ua){var Fa=!ua&&xa.widgetNode;Fa&&y.map.push(y.pos,y.pos+V,Fa);!ua&&y.cm.display.input.needsContentAttribute&&(Fa||=y.content.appendChild(document.createElement("span")),Fa.setAttribute("cm-marker",xa.id));Fa&&(y.cm.display.input.setUneditable(Fa),y.content.appendChild(Fa));y.pos+=V;y.trailingSpace=!1}function qd(y,V,
|
|||
|
xa){for(var ua=this.line=V,Fa;ua=td(ua,!1);)ua=ua.find(1,!0).line,(Fa||=[]).push(ua);this.size=(this.rest=Fa)?eb(x(this.rest))-xa+1:1;this.node=this.text=null;this.hidden=fc(y,V)}function vc(y,V,xa){var ua=[],Fa;for(Fa=V;Fa<xa;)V=new qd(y.doc,Ea(y.doc,Fa),Fa),Fa+=V.size,ua.push(V);return ua}function Nc(y,V){if(y=y.ownsGroup)try{var xa=y.delayedCallbacks,ua=0;do{for(;ua<xa.length;ua++)xa[ua].call(null);for(var Fa=0;Fa<y.ops.length;Fa++){var $a=y.ops[Fa];if($a.cursorActivityHandlers)for(;$a.cursorActivityCalled<
|
|||
|
$a.cursorActivityHandlers.length;)$a.cursorActivityHandlers[$a.cursorActivityCalled++].call(null,$a.cm)}}while(ua<xa.length)}finally{Fh=null,V(y)}}function Ie(y,V){var xa=y._handlers&&y._handlers[V]||Rm;if(xa.length){var ua=Array.prototype.slice.call(arguments,2);if(Fh)var Fa=Fh.delayedCallbacks;else Gl?Fa=Gl:(Fa=Gl=[],setTimeout(qc,0));for(var $a=function(ub){Fa.push(function(){return xa[ub].apply(null,ua)})},qb=0;qb<xa.length;++qb)$a(qb)}}function qc(){var y=Gl;Gl=null;for(var V=0;V<y.length;++V)y[V]()}
|
|||
|
function He(y,V,xa,ua){for(var Fa=0;Fa<V.changes.length;Fa++){var $a=V.changes[Fa];if("text"==$a){$a=y;var qb=V,ub=qb.text.className,Xb=Lc($a,qb);qb.text==qb.node&&(qb.node=Xb.pre);qb.text.parentNode.replaceChild(Xb.pre,qb.text);qb.text=Xb.pre;Xb.bgClass!=qb.bgClass||Xb.textClass!=qb.textClass?(qb.bgClass=Xb.bgClass,qb.textClass=Xb.textClass,Vb($a,qb)):ub&&(qb.text.className=ub)}else if("gutter"==$a)dd(y,V,xa,ua);else if("class"==$a)Vb(y,V);else if("widget"==$a){$a=y;qb=V;ub=ua;qb.alignable&&(qb.alignable=
|
|||
|
null);Xb=q("CodeMirror-linewidget");for(var Cc=qb.node.firstChild,Dc;Cc;Cc=Dc)Dc=Cc.nextSibling,Xb.test(Cc.className)&&qb.node.removeChild(Cc);oe($a,qb,ub)}}V.changes=null}function Sb(y){y.node==y.text&&(y.node=t("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),Ed&&8>Bd&&(y.node.style.zIndex=2));return y.node}function Lc(y,V){var xa=y.display.externalMeasured;return xa&&xa.line==V.line?(y.display.externalMeasured=null,
|
|||
|
V.measure=xa.measure,xa.built):Uc(y,V)}function Vb(y,V){var xa=V.bgClass?V.bgClass+" "+(V.line.bgClass||""):V.line.bgClass;xa&&(xa+=" CodeMirror-linebackground");if(V.background)xa?V.background.className=xa:(V.background.parentNode.removeChild(V.background),V.background=null);else if(xa){var ua=Sb(V);V.background=ua.insertBefore(t("div",null,xa),ua.firstChild);y.display.input.setUneditable(V.background)}V.line.wrapClass?Sb(V).className=V.line.wrapClass:V.node!=V.text&&(V.node.className="");V.text.className=
|
|||
|
(V.textClass?V.textClass+" "+(V.line.textClass||""):V.line.textClass)||""}function dd(y,V,xa,ua){V.gutter&&(V.node.removeChild(V.gutter),V.gutter=null);V.gutterBackground&&(V.node.removeChild(V.gutterBackground),V.gutterBackground=null);if(V.line.gutterClass){var Fa=Sb(V);V.gutterBackground=t("div",null,"CodeMirror-gutter-background "+V.line.gutterClass,"left: "+(y.options.fixedGutter?ua.fixedPos:-ua.gutterTotalWidth)+"px; width: "+ua.gutterTotalWidth+"px");y.display.input.setUneditable(V.gutterBackground);
|
|||
|
Fa.insertBefore(V.gutterBackground,V.text)}Fa=V.line.gutterMarkers;if(y.options.lineNumbers||Fa){var $a=Sb(V),qb=V.gutter=t("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?ua.fixedPos:-ua.gutterTotalWidth)+"px");y.display.input.setUneditable(qb);$a.insertBefore(qb,V.text);V.line.gutterClass&&(qb.className+=" "+V.line.gutterClass);!y.options.lineNumbers||Fa&&Fa["CodeMirror-linenumbers"]||(V.lineNumber=qb.appendChild(t("div",oa(y.options,xa),"CodeMirror-linenumber CodeMirror-gutter-elt",
|
|||
|
"left: "+ua.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px")));if(Fa)for(V=0;V<y.display.gutterSpecs.length;++V)xa=y.display.gutterSpecs[V].className,($a=Fa.hasOwnProperty(xa)&&Fa[xa])&&qb.appendChild(t("div",[$a],"CodeMirror-gutter-elt","left: "+ua.gutterLeft[xa]+"px; width: "+ua.gutterWidth[xa]+"px"))}}function ve(y,V,xa,ua){var Fa=Lc(y,V);V.text=V.node=Fa.pre;Fa.bgClass&&(V.bgClass=Fa.bgClass);Fa.textClass&&(V.textClass=Fa.textClass);Vb(y,V);dd(y,V,xa,ua);oe(y,
|
|||
|
V,ua);return V.node}function oe(y,V,xa){Ec(y,V.line,V,xa,!0);if(V.rest)for(var ua=0;ua<V.rest.length;ua++)Ec(y,V.rest[ua],V,xa,!1)}function Ec(y,V,xa,ua,Fa){if(V.widgets){var $a=Sb(xa),qb=0;for(V=V.widgets;qb<V.length;++qb){var ub=V[qb],Xb=t("div",[ub.node],"CodeMirror-linewidget"+(ub.className?" "+ub.className:""));ub.handleMouseEvents||Xb.setAttribute("cm-ignore-events","true");var Cc=ub,Dc=Xb,Fd=ua;if(Cc.noHScroll){(xa.alignable||(xa.alignable=[])).push(Dc);var Md=Fd.wrapperWidth;Dc.style.left=
|
|||
|
Fd.fixedPos+"px";Cc.coverGutter||(Md-=Fd.gutterTotalWidth,Dc.style.paddingLeft=Fd.gutterTotalWidth+"px");Dc.style.width=Md+"px"}Cc.coverGutter&&(Dc.style.zIndex=5,Dc.style.position="relative",Cc.noHScroll||(Dc.style.marginLeft=-Fd.gutterTotalWidth+"px"));y.display.input.setUneditable(Xb);Fa&&ub.above?$a.insertBefore(Xb,xa.gutter||xa.text):$a.appendChild(Xb);Ie(ub,"redraw")}}}function Bb(y){if(null!=y.height)return y.height;var V=y.doc.cm;if(!V)return 0;if(!w(document.body,y.node)){var xa="position: relative;";
|
|||
|
y.coverGutter&&(xa+="margin-left: -"+V.display.gutters.offsetWidth+"px;");y.noHScroll&&(xa+="width: "+V.display.wrapper.clientWidth+"px;");A(V.display.measure,t("div",[y.node],null,xa))}return y.height=y.node.parentNode.offsetHeight}function Hd(y,V){for(V=V.target||V.srcElement;V!=y.wrapper;V=V.parentNode)if(!V||1==V.nodeType&&"true"==V.getAttribute("cm-ignore-events")||V.parentNode==y.sizer&&V!=y.mover)return!0}function ee(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function pd(y){if(y.cachedPaddingH)return y.cachedPaddingH;
|
|||
|
var V=A(y.measure,t("pre","x","CodeMirror-line-like"));V=window.getComputedStyle?window.getComputedStyle(V):V.currentStyle;V={left:parseInt(V.paddingLeft),right:parseInt(V.paddingRight)};isNaN(V.left)||isNaN(V.right)||(y.cachedPaddingH=V);return V}function mc(y){return 50-y.display.nativeBarWidth}function Je(y){return y.display.scroller.clientWidth-mc(y)-y.display.barWidth}function cg(y){return y.display.scroller.clientHeight-mc(y)-y.display.barHeight}function af(y,V,xa){if(y.line==V)return{map:y.measure.map,
|
|||
|
cache:y.measure.cache};for(var ua=0;ua<y.rest.length;ua++)if(y.rest[ua]==V)return{map:y.measure.maps[ua],cache:y.measure.caches[ua]};for(V=0;V<y.rest.length;V++)if(eb(y.rest[V])>xa)return{map:y.measure.maps[V],cache:y.measure.caches[V],before:!0}}function Ag(y,V){if(V>=y.display.viewFrom&&V<y.display.viewTo)return y.display.view[Af(y,V)];if((y=y.display.externalMeasured)&&V>=y.lineN&&V<y.lineN+y.size)return y}function ab(y,V){var xa=eb(V),ua=Ag(y,xa);ua&&!ua.text?ua=null:ua&&ua.changes&&(He(y,ua,
|
|||
|
xa,ye(y)),y.curOp.forceUpdate=!0);if(!ua){var Fa=ld(V);ua=eb(Fa);Fa=y.display.externalMeasured=new qd(y.doc,Fa,ua);Fa.lineN=ua;ua=Fa.built=Uc(y,Fa);Fa.text=ua.pre;A(y.display.lineMeasure,ua.pre);ua=Fa}y=af(ua,V,xa);return{line:V,view:ua,rect:null,map:y.map,cache:y.cache,before:y.before,hasHeights:!1}}function Cb(y,V,xa,ua,Fa){V.before&&(xa=-1);var $a=xa+(ua||"");if(V.cache.hasOwnProperty($a))y=V.cache[$a];else{V.rect||(V.rect=V.view.text.getBoundingClientRect());if(!V.hasHeights){var qb=V.view,ub=
|
|||
|
V.rect,Xb=y.options.lineWrapping,Cc=Xb&&Je(y);if(!qb.measure.heights||Xb&&qb.measure.width!=Cc){var Dc=qb.measure.heights=[];if(Xb)for(qb.measure.width=Cc,qb=qb.text.firstChild.getClientRects(),Xb=0;Xb<qb.length-1;Xb++){Cc=qb[Xb];var Fd=qb[Xb+1];2<Math.abs(Cc.bottom-Fd.bottom)&&Dc.push((Cc.bottom+Fd.top)/2-ub.top)}Dc.push(ub.bottom-ub.top)}V.hasHeights=!0}Dc=ua;qb=cb(V.map,xa,Dc);ua=qb.node;ub=qb.start;Xb=qb.end;xa=qb.collapse;if(3==ua.nodeType){for(var Md=0;4>Md;Md++){for(;ub&&F(V.line.text.charAt(qb.coverStart+
|
|||
|
ub));)--ub;for(;qb.coverStart+Xb<qb.coverEnd&&F(V.line.text.charAt(qb.coverStart+Xb));)++Xb;if(Ed&&9>Bd&&0==ub&&Xb==qb.coverEnd-qb.coverStart)var od=ua.parentNode.getBoundingClientRect();else{od=pg(ua,ub,Xb).getClientRects();Xb=$d;if("left"==Dc)for(Cc=0;Cc<od.length&&(Xb=od[Cc]).left==Xb.right;Cc++);else for(Cc=od.length-1;0<=Cc&&(Xb=od[Cc]).left==Xb.right;Cc--);od=Xb}if(od.left||od.right||0==ub)break;Xb=ub;--ub;xa="right"}Ed&&11>Bd&&((Md=!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==
|
|||
|
screen.deviceXDPI)||(null!=Jh?Md=Jh:(Dc=A(y.display.measure,t("span","x")),Md=Dc.getBoundingClientRect(),Dc=pg(Dc,0,1).getBoundingClientRect(),Md=Jh=1<Math.abs(Md.left-Dc.left)),Md=!Md),Md||(Md=screen.logicalXDPI/screen.deviceXDPI,Dc=screen.logicalYDPI/screen.deviceYDPI,od={left:od.left*Md,right:od.right*Md,top:od.top*Dc,bottom:od.bottom*Dc}))}else 0<ub&&(xa=Dc="right"),od=y.options.lineWrapping&&1<(Md=ua.getClientRects()).length?Md["right"==Dc?Md.length-1:0]:ua.getBoundingClientRect();!(Ed&&9>Bd)||
|
|||
|
ub||od&&(od.left||od.right)||(od=(od=ua.parentNode.getClientRects()[0])?{left:od.left,right:od.left+kd(y.display),top:od.top,bottom:od.bottom}:$d);ua=od.top-V.rect.top;ub=od.bottom-V.rect.top;Md=(ua+ub)/2;Dc=V.view.measure.heights;for(qb=0;qb<Dc.length-1&&!(Md<Dc[qb]);qb++);xa={left:("right"==xa?od.right:od.left)-V.rect.left,right:("left"==xa?od.left:od.right)-V.rect.left,top:qb?Dc[qb-1]:0,bottom:Dc[qb]};od.left||od.right||(xa.bogus=!0);y.options.singleCursorHeightPerLine||(xa.rtop=ua,xa.rbottom=
|
|||
|
ub);y=xa;y.bogus||(V.cache[$a]=y)}return{left:y.left,right:y.right,top:Fa?y.rtop:y.top,bottom:Fa?y.rbottom:y.bottom}}function cb(y,V,xa){for(var ua,Fa,$a,qb,ub,Xb,Cc=0;Cc<y.length;Cc+=3){ub=y[Cc];Xb=y[Cc+1];if(V<ub)Fa=0,$a=1,qb="left";else if(V<Xb)Fa=V-ub,$a=Fa+1;else if(Cc==y.length-3||V==Xb&&y[Cc+3]>V)$a=Xb-ub,Fa=$a-1,V>=Xb&&(qb="right");if(null!=Fa){ua=y[Cc+2];ub==Xb&&xa==(ua.insertLeft?"left":"right")&&(qb=xa);if("left"==xa&&0==Fa)for(;Cc&&y[Cc-2]==y[Cc-3]&&y[Cc-1].insertLeft;)ua=y[(Cc-=3)+2],
|
|||
|
qb="left";if("right"==xa&&Fa==Xb-ub)for(;Cc<y.length-3&&y[Cc+3]==y[Cc+4]&&!y[Cc+5].insertLeft;)ua=y[(Cc+=3)+2],qb="right";break}}return{node:ua,start:Fa,end:$a,collapse:qb,coverStart:ub,coverEnd:Xb}}function Db(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var V=0;V<y.rest.length;V++)y.measure.caches[V]={}}function gc(y){y.display.externalMeasure=null;R(y.display.lineMeasure);for(var V=0;V<y.display.view.length;V++)Db(y.display.view[V])}function kb(y){gc(y);y.display.cachedCharWidth=
|
|||
|
y.display.cachedTextHeight=y.display.cachedPaddingH=null;y.options.lineWrapping||(y.display.maxLineChanged=!0);y.display.lineNumChars=null}function gd(){return Zf&&Vf?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Cd(){return Zf&&Vf?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||
|
|||
|
document.body).scrollTop}function me(y){var V=0;if(y.widgets)for(var xa=0;xa<y.widgets.length;++xa)y.widgets[xa].above&&(V+=Bb(y.widgets[xa]));return V}function Xd(y,V,xa,ua,Fa){Fa||(Fa=me(V),xa.top+=Fa,xa.bottom+=Fa);if("line"==ua)return xa;ua||="local";V=rb(V);V="local"==ua?V+y.display.lineSpace.offsetTop:V-y.display.viewOffset;if("page"==ua||"window"==ua)y=y.display.lineSpace.getBoundingClientRect(),V+=y.top+("window"==ua?0:Cd()),ua=y.left+("window"==ua?0:gd()),xa.left+=ua,xa.right+=ua;xa.top+=
|
|||
|
V;xa.bottom+=V;return xa}function Ue(y,V,xa){if("div"==xa)return V;var ua=V.left;V=V.top;"page"==xa?(ua-=gd(),V-=Cd()):"local"!=xa&&xa||(xa=y.display.sizer.getBoundingClientRect(),ua+=xa.left,V+=xa.top);y=y.display.lineSpace.getBoundingClientRect();return{left:ua-y.left,top:V-y.top}}function we(y,V,xa,ua,Fa){ua||=Ea(y.doc,V.line);var $a=ua;V=V.ch;ua=Cb(y,ab(y,ua),V,Fa);return Xd(y,$a,ua,xa)}function gf(y,V,xa,ua,Fa,$a){function qb(Md,od){Md=Cb(y,Fa,Md,od?"right":"left",$a);od?Md.left=Md.right:Md.right=
|
|||
|
Md.left;return Xd(y,ua,Md,xa)}function ub(Md,od,Ce){return qb(Ce?Md-1:Md,1==Xb[od].level!=Ce)}ua=ua||Ea(y.doc,V.line);Fa||=ab(y,ua);var Xb=aa(ua,y.doc.direction),Cc=V.ch;V=V.sticky;Cc>=ua.text.length?(Cc=ua.text.length,V="before"):0>=Cc&&(Cc=0,V="after");if(!Xb)return qb("before"==V?Cc-1:Cc,"before"==V);var Dc=E(Xb,Cc,V),Fd=Yi;Dc=ub(Cc,Dc,"before"==V);null!=Fd&&(Dc.other=ub(Cc,Fd,"before"!=V));return Dc}function Eg(y,V){var xa=0;V=jb(y.doc,V);y.options.lineWrapping||(xa=kd(y.display)*V.ch);V=Ea(y.doc,
|
|||
|
V.line);y=rb(V)+y.display.lineSpace.offsetTop;return{left:xa,right:xa,top:y,bottom:y+V.height}}function uf(y,V,xa,ua,Fa){y=Ca(y,V,xa);y.xRel=Fa;ua&&(y.outside=ua);return y}function zb(y,V,xa){var ua=y.doc;xa+=y.display.viewOffset;if(0>xa)return uf(ua.first,0,null,-1,-1);var Fa=db(ua,xa),$a=ua.first+ua.size-1;if(Fa>$a)return uf(ua.first+ua.size-1,Ea(ua,$a).text.length,null,1,1);0>V&&(V=0);for(var qb=Ea(ua,Fa);;){$a=bb(y,qb,Fa,V,xa);var ub=void 0;var Xb=$a.ch+(0<$a.xRel||0<$a.outside?1:0);if(qb=ff&&
|
|||
|
qb.markedSpans)for(var Cc=0;Cc<qb.length;++Cc){var Dc=qb[Cc];Dc.marker.collapsed&&(null==Dc.from||Dc.from<Xb)&&(null==Dc.to||Dc.to>Xb)&&(!ub||0>Yd(ub,Dc.marker))&&(ub=Dc.marker)}if(!ub)return $a;$a=ub.find(1);if($a.line==Fa)return $a;qb=Ea(ua,Fa=$a.line)}}function ta(y,V,xa,ua){ua-=me(V);V=V.text.length;var Fa=T(function($a){return Cb(y,xa,$a-1).bottom<=ua},V,0);V=T(function($a){return Cb(y,xa,$a).top>ua},Fa,V);return{begin:Fa,end:V}}function ra(y,V,xa,ua){xa||=ab(y,V);ua=Xd(y,V,Cb(y,xa,ua),"line").top;
|
|||
|
return ta(y,V,xa,ua)}function Ia(y,V,xa,ua){return y.bottom<=xa?!1:y.top>xa?!0:(ua?y.left:y.right)>V}function bb(y,V,xa,ua,Fa){Fa-=rb(V);var $a=ab(y,V),qb=me(V),ub=0,Xb=V.text.length,Cc=!0,Dc=aa(V,y.doc.direction);Dc&&(Dc=(y.options.lineWrapping?kc:Ib)(y,V,xa,$a,Dc,ua,Fa),ub=(Cc=1!=Dc.level)?Dc.from:Dc.to-1,Xb=Cc?Dc.to:Dc.from-1);var Fd=null,Md=null;Dc=T(function(Ce){var Cf=Cb(y,$a,Ce);Cf.top+=qb;Cf.bottom+=qb;if(!Ia(Cf,ua,Fa,!1))return!1;Cf.top<=Fa&&Cf.left<=ua&&(Fd=Ce,Md=Cf);return!0},ub,Xb);var od=
|
|||
|
!1;Md?(ub=ua-Md.left<Md.right-ua,Cc=ub==Cc,Dc=Fd+(Cc?0:1),Cc=Cc?"after":"before",ub=ub?Md.left:Md.right):(Cc||Dc!=Xb&&Dc!=ub||Dc++,Cc=0==Dc?"after":Dc==V.text.length?"before":Cb(y,$a,Dc-(Cc?1:0)).bottom+qb<=Fa==Cc?"after":"before",od=gf(y,Ca(xa,Dc,Cc),"line",V,$a),ub=od.left,od=Fa<od.top?-1:Fa>=od.bottom?1:0);Dc=ha(V.text,Dc,1);return uf(xa,Dc,Cc,od,ua-ub)}function Ib(y,V,xa,ua,Fa,$a,qb){var ub=T(function(Dc){Dc=Fa[Dc];var Fd=1!=Dc.level;return Ia(gf(y,Ca(xa,Fd?Dc.to:Dc.from,Fd?"before":"after"),
|
|||
|
"line",V,ua),$a,qb,!0)},0,Fa.length-1),Xb=Fa[ub];if(0<ub){var Cc=1!=Xb.level;Cc=gf(y,Ca(xa,Cc?Xb.from:Xb.to,Cc?"after":"before"),"line",V,ua);Ia(Cc,$a,qb,!0)&&Cc.top>qb&&(Xb=Fa[ub-1])}return Xb}function kc(y,V,xa,ua,Fa,$a,qb){qb=ta(y,V,ua,qb);xa=qb.begin;qb=qb.end;/\s/.test(V.text.charAt(qb-1))&&qb--;for(var ub=V=null,Xb=0;Xb<Fa.length;Xb++){var Cc=Fa[Xb];if(!(Cc.from>=qb||Cc.to<=xa)){var Dc=Cb(y,ua,1!=Cc.level?Math.min(qb,Cc.to)-1:Math.max(xa,Cc.from)).right;Dc=Dc<$a?$a-Dc+1E9:Dc-$a;if(!V||ub>Dc)V=
|
|||
|
Cc,ub=Dc}}V||=Fa[Fa.length-1];V.from<xa&&(V={from:xa,to:V.to,level:V.level});V.to>qb&&(V={from:V.from,to:qb,level:V.level});return V}function Rc(y){if(null!=y.cachedTextHeight)return y.cachedTextHeight;if(null==Ke){Ke=t("pre",null,"CodeMirror-line-like");for(var V=0;49>V;++V)Ke.appendChild(document.createTextNode("x")),Ke.appendChild(t("br"));Ke.appendChild(document.createTextNode("x"))}A(y.measure,Ke);V=Ke.offsetHeight/50;3<V&&(y.cachedTextHeight=V);R(y.measure);return V||1}function kd(y){if(null!=
|
|||
|
y.cachedCharWidth)return y.cachedCharWidth;var V=t("span","xxxxxxxxxx"),xa=t("pre",[V],"CodeMirror-line-like");A(y.measure,xa);V=V.getBoundingClientRect();V=(V.right-V.left)/10;2<V&&(y.cachedCharWidth=V);return V||10}function ye(y){for(var V=y.display,xa={},ua={},Fa=V.gutters.clientLeft,$a=V.gutters.firstChild,qb=0;$a;$a=$a.nextSibling,++qb){var ub=y.display.gutterSpecs[qb].className;xa[ub]=$a.offsetLeft+$a.clientLeft+Fa;ua[ub]=$a.clientWidth}return{fixedPos:Se(V),gutterTotalWidth:V.gutters.offsetWidth,
|
|||
|
gutterLeft:xa,gutterWidth:ua,wrapperWidth:V.wrapper.clientWidth}}function Se(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function Nf(y){var V=Rc(y.display),xa=y.options.lineWrapping,ua=xa&&Math.max(5,y.display.scroller.clientWidth/kd(y.display)-3);return function(Fa){if(fc(y.doc,Fa))return 0;var $a=0;if(Fa.widgets)for(var qb=0;qb<Fa.widgets.length;qb++)Fa.widgets[qb].height&&($a+=Fa.widgets[qb].height);return xa?$a+(Math.ceil(Fa.text.length/ua)||1)*V:$a+
|
|||
|
V}}function lg(y){var V=y.doc,xa=Nf(y);V.iter(function(ua){var Fa=xa(ua);Fa!=ua.height&&Ma(ua,Fa)})}function Lf(y,V,xa,ua){var Fa=y.display;if(!xa&&"true"==(V.target||V.srcElement).getAttribute("cm-not-content"))return null;xa=Fa.lineSpace.getBoundingClientRect();try{var $a=V.clientX-xa.left;var qb=V.clientY-xa.top}catch(Xb){return null}V=zb(y,$a,qb);var ub;ua&&0<V.xRel&&(ub=Ea(y.doc,V.line).text).length==V.ch&&(ua=h(ub,ub.length,y.options.tabSize)-ub.length,V=Ca(V.line,Math.max(0,Math.round(($a-
|
|||
|
pd(y.display).left)/kd(y.display))-ua)));return V}function Af(y,V){if(V>=y.display.viewTo)return null;V-=y.display.viewFrom;if(0>V)return null;y=y.display.view;for(var xa=0;xa<y.length;xa++)if(V-=y[xa].size,0>V)return xa}function Xf(y,V,xa,ua){null==V&&(V=y.doc.first);null==xa&&(xa=y.doc.first+y.doc.size);ua||=0;var Fa=y.display;ua&&xa<Fa.viewTo&&(null==Fa.updateLineNumbers||Fa.updateLineNumbers>V)&&(Fa.updateLineNumbers=V);y.curOp.viewChanged=!0;if(V>=Fa.viewTo)ff&&Sd(y.doc,V)<Fa.viewTo&&ki(y);else if(xa<=
|
|||
|
Fa.viewFrom)ff&&Nb(y.doc,xa+ua)>Fa.viewFrom?ki(y):(Fa.viewFrom+=ua,Fa.viewTo+=ua);else if(V<=Fa.viewFrom&&xa>=Fa.viewTo)ki(y);else if(V<=Fa.viewFrom){var $a=vh(y,xa,xa+ua,1);$a?(Fa.view=Fa.view.slice($a.index),Fa.viewFrom=$a.lineN,Fa.viewTo+=ua):ki(y)}else if(xa>=Fa.viewTo)($a=vh(y,V,V,-1))?(Fa.view=Fa.view.slice(0,$a.index),Fa.viewTo=$a.lineN):ki(y);else{$a=vh(y,V,V,-1);var qb=vh(y,xa,xa+ua,1);$a&&qb?(Fa.view=Fa.view.slice(0,$a.index).concat(vc(y,$a.lineN,qb.lineN)).concat(Fa.view.slice(qb.index)),
|
|||
|
Fa.viewTo+=ua):ki(y)}if(y=Fa.externalMeasured)xa<y.lineN?y.lineN+=ua:V<y.lineN+y.size&&(Fa.externalMeasured=null)}function Sg(y,V,xa){y.curOp.viewChanged=!0;var ua=y.display,Fa=y.display.externalMeasured;Fa&&V>=Fa.lineN&&V<Fa.lineN+Fa.size&&(ua.externalMeasured=null);V<ua.viewFrom||V>=ua.viewTo||(y=ua.view[Af(y,V)],null!=y.node&&(y=y.changes||(y.changes=[]),-1==k(y,xa)&&y.push(xa)))}function ki(y){y.display.viewFrom=y.display.viewTo=y.doc.first;y.display.view=[];y.display.viewOffset=0}function vh(y,
|
|||
|
V,xa,ua){var Fa=Af(y,V),$a=y.display.view;if(!ff||xa==y.doc.first+y.doc.size)return{index:Fa,lineN:xa};for(var qb=y.display.viewFrom,ub=0;ub<Fa;ub++)qb+=$a[ub].size;if(qb!=V){if(0<ua){if(Fa==$a.length-1)return null;V=qb+$a[Fa].size-V;Fa++}else V=qb-V;xa+=V}for(;Sd(y.doc,xa)!=xa;){if(Fa==(0>ua?0:$a.length-1))return null;xa+=ua*$a[Fa-(0>ua?1:0)].size;Fa+=ua}return{index:Fa,lineN:xa}}function ri(y){y=y.display.view;for(var V=0,xa=0;xa<y.length;xa++){var ua=y[xa];ua.hidden||ua.node&&!ua.changes||++V}return V}
|
|||
|
function ci(y){y.display.input.showSelection(y.display.input.prepareSelection())}function Bg(y,V){void 0===V&&(V=!0);for(var xa=y.doc,ua={},Fa=ua.cursors=document.createDocumentFragment(),$a=ua.selection=document.createDocumentFragment(),qb=0;qb<xa.sel.ranges.length;qb++)if(V||qb!=xa.sel.primIndex){var ub=xa.sel.ranges[qb];if(!(ub.from().line>=y.display.viewTo||ub.to().line<y.display.viewFrom)){var Xb=ub.empty();(Xb||y.options.showCursorWhenSelecting)&&Rh(y,ub.head,Fa);Xb||Sh(y,ub,$a)}}return ua}
|
|||
|
function Rh(y,V,xa){V=gf(y,V,"div",null,null,!y.options.singleCursorHeightPerLine);var ua=xa.appendChild(t("div"," ","CodeMirror-cursor"));ua.style.left=V.left+"px";ua.style.top=V.top+"px";ua.style.height=Math.max(0,V.bottom-V.top)*y.options.cursorHeight+"px";V.other&&(y=xa.appendChild(t("div"," ","CodeMirror-cursor CodeMirror-secondarycursor")),y.style.display="",y.style.left=V.other.left+"px",y.style.top=V.other.top+"px",y.style.height=.85*(V.other.bottom-V.other.top)+"px")}function bf(y,V){return y.top-
|
|||
|
V.top||y.left-V.left}function Sh(y,V,xa){function ua(od,Ce,Cf,Ng){0>Ce&&(Ce=0);Ce=Math.round(Ce);Ng=Math.round(Ng);ub.appendChild(t("div",null,"CodeMirror-selected","position: absolute; left: "+od+"px;\n top: "+Ce+"px; width: "+(null==Cf?Dc-od:Cf)+"px;\n height: "+(Ng-Ce)+"px"))}function Fa(od,Ce,Cf){function Ng(ig,Rf){return we(y,Ca(od,ig),"div",yg,Rf)}function tj(ig,Rf,Ch){ig=ra(y,yg,null,ig);Rf="ltr"==Rf==("after"==Ch)?"left":"right";Ch="after"==
|
|||
|
Ch?ig.begin:ig.end-(/\s/.test(yg.text.charAt(ig.end-1))?2:1);return Ng(Ch,Rf)[Rf]}var yg=Ea(qb,od),nh=yg.text.length,ai,Bi,Gh=aa(yg,qb.direction);Z(Gh,Ce||0,null==Cf?nh:Cf,function(ig,Rf,Ch,ih){var Cj="ltr"==Ch,li=Ng(ig,Cj?"left":"right"),Xj=Ng(Rf-1,Cj?"right":"left"),Pl=null==Ce&&0==ig,Sk=null==Cf&&Rf==nh,im=0==ih;ih=!Gh||ih==Gh.length-1;3>=Xj.top-li.top?(Rf=(Fd?Pl:Sk)&&im?Cc:(Cj?li:Xj).left,ua(Rf,li.top,((Fd?Sk:Pl)&&ih?Dc:(Cj?Xj:li).right)-Rf,li.bottom)):(Cj?(Cj=Fd&&Pl&&im?Cc:li.left,Pl=Fd?Dc:tj(ig,
|
|||
|
Ch,"before"),ig=Fd?Cc:tj(Rf,Ch,"after"),Sk=Fd&&Sk&&ih?Dc:Xj.right):(Cj=Fd?tj(ig,Ch,"before"):Cc,Pl=!Fd&&Pl&&im?Dc:li.right,ig=!Fd&&Sk&&ih?Cc:Xj.left,Sk=Fd?tj(Rf,Ch,"after"):Dc),ua(Cj,li.top,Pl-Cj,li.bottom),li.bottom<Xj.top&&ua(Cc,li.bottom,null,Xj.top),ua(ig,Xj.top,Sk-ig,Xj.bottom));if(!ai||0>bf(li,ai))ai=li;0>bf(Xj,ai)&&(ai=Xj);if(!Bi||0>bf(li,Bi))Bi=li;0>bf(Xj,Bi)&&(Bi=Xj)});return{start:ai,end:Bi}}var $a=y.display,qb=y.doc,ub=document.createDocumentFragment(),Xb=pd(y.display),Cc=Xb.left,Dc=Math.max($a.sizerWidth,
|
|||
|
Je(y)-$a.sizer.offsetLeft)-Xb.right,Fd="ltr"==qb.direction;$a=V.from();V=V.to();if($a.line==V.line)Fa($a.line,$a.ch,V.ch);else{var Md=Ea(qb,$a.line);Xb=Ea(qb,V.line);Xb=ld(Md)==ld(Xb);$a=Fa($a.line,$a.ch,Xb?Md.text.length+1:null).end;V=Fa(V.line,Xb?0:null,V.ch).start;Xb&&($a.top<V.top-2?(ua($a.right,$a.top,null,$a.bottom),ua(Cc,V.top,V.left,V.bottom)):ua($a.right,$a.top,V.left-$a.right,$a.bottom));$a.bottom<V.top&&ua(Cc,$a.bottom,null,V.top)}xa.appendChild(ub)}function Fi(y){if(y.state.focused){var V=
|
|||
|
y.display;clearInterval(V.blinker);var xa=!0;V.cursorDiv.style.visibility="";0<y.options.cursorBlinkRate?V.blinker=setInterval(function(){y.hasFocus()||Xg(y);V.cursorDiv.style.visibility=(xa=!xa)?"":"hidden"},y.options.cursorBlinkRate):0>y.options.cursorBlinkRate&&(V.cursorDiv.style.visibility="hidden")}}function Rl(y){y.state.focused||(y.display.input.focus(),jg(y))}function Gj(y){y.state.delayingBlurEvent=!0;setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Xg(y))},
|
|||
|
100)}function jg(y,V){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1);"nocursor"!=y.options.readOnly&&(y.state.focused||(S(y,"focus",y,V),y.state.focused=!0,C(y.display.wrapper,"CodeMirror-focused"),y.curOp||y.display.selForContextMenu==y.doc.sel||(y.display.input.reset(),Gd&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),Fi(y))}function Xg(y,V){y.state.delayingBlurEvent||(y.state.focused&&(S(y,"blur",y,V),y.state.focused=!1,Dg(y.display.wrapper,
|
|||
|
"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function Ik(y){for(var V=y.display,xa=V.lineDiv.offsetTop,ua=0;ua<V.view.length;ua++){var Fa=V.view[ua],$a=y.options.lineWrapping,qb=0;if(!Fa.hidden){if(Ed&&8>Bd){$a=Fa.node.offsetTop+Fa.node.offsetHeight;var ub=$a-xa;xa=$a}else{var Xb=Fa.node.getBoundingClientRect();ub=Xb.bottom-Xb.top;!$a&&Fa.text.firstChild&&(qb=Fa.text.firstChild.getBoundingClientRect().right-Xb.left-1)}$a=
|
|||
|
Fa.line.height-ub;if(.005<$a||-.005>$a)if(Ma(Fa.line,ub),Xh(Fa.line),Fa.rest)for(ub=0;ub<Fa.rest.length;ub++)Xh(Fa.rest[ub]);qb>y.display.sizerWidth&&(qb=Math.ceil(qb/kd(y.display)),qb>y.display.maxLineLength&&(y.display.maxLineLength=qb,y.display.maxLine=Fa.line,y.display.maxLineChanged=!0))}}}function Xh(y){if(y.widgets)for(var V=0;V<y.widgets.length;++V){var xa=y.widgets[V],ua=xa.node.parentNode;ua&&(xa.height=ua.offsetHeight)}}function dk(y,V,xa){var ua=xa&&null!=xa.top?Math.max(0,xa.top):y.scroller.scrollTop;
|
|||
|
ua=Math.floor(ua-y.lineSpace.offsetTop);var Fa=xa&&null!=xa.bottom?xa.bottom:ua+y.wrapper.clientHeight;ua=db(V,ua);Fa=db(V,Fa);if(xa&&xa.ensure){var $a=xa.ensure.from.line;xa=xa.ensure.to.line;$a<ua?(ua=$a,Fa=db(V,rb(Ea(V,$a))+y.wrapper.clientHeight)):Math.min(xa,V.lastLine())>=Fa&&(ua=db(V,rb(Ea(V,xa))-y.wrapper.clientHeight),Fa=xa)}return{from:ua,to:Math.max(Fa,ua+1)}}function ek(y,V){var xa=y.display,ua=Rc(y.display);0>V.top&&(V.top=0);var Fa=y.curOp&&null!=y.curOp.scrollTop?y.curOp.scrollTop:
|
|||
|
xa.scroller.scrollTop,$a=cg(y),qb={};V.bottom-V.top>$a&&(V.bottom=V.top+$a);var ub=y.doc.height+ee(xa),Xb=V.top<ua;ua=V.bottom>ub-ua;V.top<Fa?qb.scrollTop=Xb?0:V.top:V.bottom>Fa+$a&&($a=Math.min(V.top,(ua?ub:V.bottom)-$a),$a!=Fa&&(qb.scrollTop=$a));Fa=y.curOp&&null!=y.curOp.scrollLeft?y.curOp.scrollLeft:xa.scroller.scrollLeft;y=Je(y)-(y.options.fixedGutter?xa.gutters.offsetWidth:0);if(xa=V.right-V.left>y)V.right=V.left+y;10>V.left?qb.scrollLeft=0:V.left<Fa?qb.scrollLeft=Math.max(0,V.left-(xa?0:10)):
|
|||
|
V.right>y+Fa-3&&(qb.scrollLeft=V.right+(xa?0:10)-y);return qb}function Jk(y,V){null!=V&&(Mj(y),y.curOp.scrollTop=(null==y.curOp.scrollTop?y.doc.scrollTop:y.curOp.scrollTop)+V)}function wh(y){Mj(y);var V=y.getCursor();y.curOp.scrollToPos={from:V,to:V,margin:y.options.cursorScrollMargin}}function si(y,V,xa){null==V&&null==xa||Mj(y);null!=V&&(y.curOp.scrollLeft=V);null!=xa&&(y.curOp.scrollTop=xa)}function Mj(y){var V=y.curOp.scrollToPos;if(V){y.curOp.scrollToPos=null;var xa=Eg(y,V.from),ua=Eg(y,V.to);
|
|||
|
tm(y,xa,ua,V.margin)}}function tm(y,V,xa,ua){V=ek(y,{left:Math.min(V.left,xa.left),top:Math.min(V.top,xa.top)-ua,right:Math.max(V.right,xa.right),bottom:Math.max(V.bottom,xa.bottom)+ua});si(y,V.scrollLeft,V.scrollTop)}function ui(y,V){2>Math.abs(y.doc.scrollTop-V)||(Oc||ik(y,{top:V}),Hj(y,V,!0),Oc&&ik(y),Gi(y,100))}function Hj(y,V,xa){V=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,V));if(y.display.scroller.scrollTop!=V||xa)y.doc.scrollTop=V,y.display.scrollbars.setScrollTop(V),
|
|||
|
y.display.scroller.scrollTop!=V&&(y.display.scroller.scrollTop=V)}function Nj(y,V,xa,ua){V=Math.max(0,Math.min(V,y.display.scroller.scrollWidth-y.display.scroller.clientWidth));(xa?V==y.doc.scrollLeft:2>Math.abs(y.doc.scrollLeft-V))&&!ua||(y.doc.scrollLeft=V,Th(y),y.display.scroller.scrollLeft!=V&&(y.display.scroller.scrollLeft=V),y.display.scrollbars.setScrollLeft(V))}function Bl(y){var V=y.display,xa=V.gutters.offsetWidth,ua=Math.round(y.doc.height+ee(y.display));return{clientHeight:V.scroller.clientHeight,
|
|||
|
viewHeight:V.wrapper.clientHeight,scrollWidth:V.scroller.scrollWidth,clientWidth:V.scroller.clientWidth,viewWidth:V.wrapper.clientWidth,barLeft:y.options.fixedGutter?xa:0,docHeight:ua,scrollHeight:ua+mc(y)+V.barHeight,nativeBarWidth:V.nativeBarWidth,gutterWidth:xa}}function pl(y,V){V||=Bl(y);var xa=y.display.barWidth,ua=y.display.barHeight;Sl(y,V);for(V=0;4>V&&xa!=y.display.barWidth||ua!=y.display.barHeight;V++)xa!=y.display.barWidth&&y.options.lineWrapping&&Ik(y),Sl(y,Bl(y)),xa=y.display.barWidth,
|
|||
|
ua=y.display.barHeight}function Sl(y,V){var xa=y.display,ua=xa.scrollbars.update(V);xa.sizer.style.paddingRight=(xa.barWidth=ua.right)+"px";xa.sizer.style.paddingBottom=(xa.barHeight=ua.bottom)+"px";xa.heightForcer.style.borderBottom=ua.bottom+"px solid transparent";ua.right&&ua.bottom?(xa.scrollbarFiller.style.display="block",xa.scrollbarFiller.style.height=ua.bottom+"px",xa.scrollbarFiller.style.width=ua.right+"px"):xa.scrollbarFiller.style.display="";ua.bottom&&y.options.coverGutterNextToScrollbar&&
|
|||
|
y.options.fixedGutter?(xa.gutterFiller.style.display="block",xa.gutterFiller.style.height=ua.bottom+"px",xa.gutterFiller.style.width=V.gutterWidth+"px"):xa.gutterFiller.style.display=""}function gk(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&Dg(y.display.wrapper,y.display.scrollbars.addClass));y.display.scrollbars=new Ol[y.options.scrollbarStyle](function(V){y.display.wrapper.insertBefore(V,y.display.scrollbarFiller);ug(V,"mousedown",function(){y.state.focused&&
|
|||
|
setTimeout(function(){return y.display.input.focus()},0)});V.setAttribute("cm-not-content","true")},function(V,xa){"horizontal"==xa?Nj(y,V):ui(y,V)},y);y.display.scrollbars.addClass&&C(y.display.wrapper,y.display.scrollbars.addClass)}function hk(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.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};y=y.curOp;Fh?Fh.ops.push(y):y.ownsGroup=Fh={ops:[y],delayedCallbacks:[]}}function xk(y){(y=y.curOp)&&Nc(y,function(V){for(var xa=0;xa<V.ops.length;xa++)V.ops[xa].cm.curOp=null;V=V.ops;for(xa=0;xa<V.length;xa++){var ua=V[xa],Fa=ua.cm,$a=Fa.display,qb=Fa.display;!qb.scrollbarsClipped&&qb.scroller.offsetWidth&&(qb.nativeBarWidth=qb.scroller.offsetWidth-qb.scroller.clientWidth,qb.heightForcer.style.height=mc(Fa)+"px",qb.sizer.style.marginBottom=-qb.nativeBarWidth+"px",qb.sizer.style.borderRightWidth=
|
|||
|
mc(Fa)+"px",qb.scrollbarsClipped=!0);ua.updateMaxLine&&cc(Fa);ua.mustUpdate=ua.viewChanged||ua.forceUpdate||null!=ua.scrollTop||ua.scrollToPos&&(ua.scrollToPos.from.line<$a.viewFrom||ua.scrollToPos.to.line>=$a.viewTo)||$a.maxLineChanged&&Fa.options.lineWrapping;ua.update=ua.mustUpdate&&new Qi(Fa,ua.mustUpdate&&{top:ua.scrollTop,ensure:ua.scrollToPos},ua.forceUpdate)}for(xa=0;xa<V.length;xa++)ua=V[xa],ua.updatedDisplay=ua.mustUpdate&&di(ua.cm,ua.update);for(xa=0;xa<V.length;xa++)if(ua=V[xa],Fa=ua.cm,
|
|||
|
$a=Fa.display,ua.updatedDisplay&&Ik(Fa),ua.barMeasure=Bl(Fa),$a.maxLineChanged&&!Fa.options.lineWrapping&&(qb=$a.maxLine.text.length,qb=Cb(Fa,ab(Fa,$a.maxLine),qb,void 0),ua.adjustWidthTo=qb.left+3,Fa.display.sizerWidth=ua.adjustWidthTo,ua.barMeasure.scrollWidth=Math.max($a.scroller.clientWidth,$a.sizer.offsetLeft+ua.adjustWidthTo+mc(Fa)+Fa.display.barWidth),ua.maxScrollLeft=Math.max(0,$a.sizer.offsetLeft+ua.adjustWidthTo-Je(Fa))),ua.updatedDisplay||ua.selectionChanged)ua.preparedSelection=$a.input.prepareSelection();
|
|||
|
for(xa=0;xa<V.length;xa++)ua=V[xa],Fa=ua.cm,null!=ua.adjustWidthTo&&(Fa.display.sizer.style.minWidth=ua.adjustWidthTo+"px",ua.maxScrollLeft<Fa.doc.scrollLeft&&Nj(Fa,Math.min(Fa.display.scroller.scrollLeft,ua.maxScrollLeft),!0),Fa.display.maxLineChanged=!1),$a=ua.focus&&ua.focus==B(),ua.preparedSelection&&Fa.display.input.showSelection(ua.preparedSelection,$a),(ua.updatedDisplay||ua.startHeight!=Fa.doc.height)&&pl(Fa,ua.barMeasure),ua.updatedDisplay&&Li(Fa,ua.barMeasure),ua.selectionChanged&&Fi(Fa),
|
|||
|
Fa.state.focused&&ua.updateInput&&Fa.display.input.reset(ua.typing),$a&&Rl(ua.cm);for(xa=0;xa<V.length;xa++){var ub=void 0;ua=V[xa];Fa=ua.cm;$a=Fa.display;qb=Fa.doc;ua.updatedDisplay&&Gg(Fa,ua.update);null==$a.wheelStartX||null==ua.scrollTop&&null==ua.scrollLeft&&!ua.scrollToPos||($a.wheelStartX=$a.wheelStartY=null);null!=ua.scrollTop&&Hj(Fa,ua.scrollTop,ua.forceScroll);null!=ua.scrollLeft&&Nj(Fa,ua.scrollLeft,!0,!0);if(ua.scrollToPos){var Xb=jb(qb,ua.scrollToPos.from);var Cc=jb(qb,ua.scrollToPos.to);
|
|||
|
var Dc=ua.scrollToPos.margin;null==Dc&&(Dc=0);Fa.options.lineWrapping||Xb!=Cc||(Xb=Xb.ch?Ca(Xb.line,"before"==Xb.sticky?Xb.ch-1:Xb.ch,"after"):Xb,Cc="before"==Xb.sticky?Ca(Xb.line,Xb.ch+1,"before"):Xb);for(var Fd=0;5>Fd;Fd++){var Md=!1;ub=gf(Fa,Xb);var od=Cc&&Cc!=Xb?gf(Fa,Cc):ub;ub={left:Math.min(ub.left,od.left),top:Math.min(ub.top,od.top)-Dc,right:Math.max(ub.left,od.left),bottom:Math.max(ub.bottom,od.bottom)+Dc};od=ek(Fa,ub);var Ce=Fa.doc.scrollTop,Cf=Fa.doc.scrollLeft;null!=od.scrollTop&&(ui(Fa,
|
|||
|
od.scrollTop),1<Math.abs(Fa.doc.scrollTop-Ce)&&(Md=!0));null!=od.scrollLeft&&(Nj(Fa,od.scrollLeft),1<Math.abs(Fa.doc.scrollLeft-Cf)&&(Md=!0));if(!Md)break}Cc=ub;D(Fa,"scrollCursorIntoView")||(Dc=Fa.display,Fd=Dc.sizer.getBoundingClientRect(),Xb=null,0>Cc.top+Fd.top?Xb=!0:Cc.bottom+Fd.top>(window.innerHeight||document.documentElement.clientHeight)&&(Xb=!1),null==Xb||Oe||(Cc=t("div","",null,"position: absolute;\n top: "+(Cc.top-Dc.viewOffset-Fa.display.lineSpace.offsetTop)+
|
|||
|
"px;\n height: "+(Cc.bottom-Cc.top+mc(Fa)+Dc.barHeight)+"px;\n left: "+Cc.left+"px; width: "+Math.max(2,Cc.right-Cc.left)+"px;"),Fa.display.lineSpace.appendChild(Cc),Cc.scrollIntoView(Xb),Fa.display.lineSpace.removeChild(Cc)))}Cc=ua.maybeHiddenMarkers;Xb=ua.maybeUnhiddenMarkers;if(Cc)for(Dc=0;Dc<Cc.length;++Dc)Cc[Dc].lines.length||S(Cc[Dc],"hide");if(Xb)for(Cc=0;Cc<Xb.length;++Cc)Xb[Cc].lines.length&&S(Xb[Cc],"unhide");$a.wrapper.offsetHeight&&(qb.scrollTop=
|
|||
|
Fa.display.scroller.scrollTop);ua.changeObjs&&S(Fa,"changes",Fa,ua.changeObjs);ua.update&&ua.update.finish()}})}function Ye(y,V){if(y.curOp)return V();hk(y);try{return V()}finally{xk(y)}}function vg(y,V){return function(){if(y.curOp)return V.apply(y,arguments);hk(y);try{return V.apply(y,arguments)}finally{xk(y)}}}function qj(y){return function(){if(this.curOp)return y.apply(this,arguments);hk(this);try{return y.apply(this,arguments)}finally{xk(this)}}}function Eh(y){return function(){var V=this.cm;
|
|||
|
if(!V||V.curOp)return y.apply(this,arguments);hk(V);try{return y.apply(this,arguments)}finally{xk(V)}}}function Gi(y,V){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(V,K(Nh,y))}function Nh(y){var V=y.doc;if(!(V.highlightFrontier>=y.display.viewTo)){var xa=+new Date+y.options.workTime,ua=Pa(y,V.highlightFrontier),Fa=[];V.iter(ua.line,Math.min(V.first+V.size,y.display.viewTo+500),function($a){if(ua.line>=y.display.viewFrom){var qb=$a.styles,ub=$a.text.length>y.options.maxHighlightLength?
|
|||
|
ya(V.mode,ua.state):null,Xb=Wb(y,$a,ua,!0);ub&&(ua.state=ub);$a.styles=Xb.styles;ub=$a.styleClasses;(Xb=Xb.classes)?$a.styleClasses=Xb:ub&&($a.styleClasses=null);Xb=!qb||qb.length!=$a.styles.length||ub!=Xb&&(!ub||!Xb||ub.bgClass!=Xb.bgClass||ub.textClass!=Xb.textClass);for(ub=0;!Xb&&ub<qb.length;++ub)Xb=qb[ub]!=$a.styles[ub];Xb&&Fa.push(ua.line);$a.stateAfter=ua.save()}else $a.text.length<=y.options.maxHighlightLength&&ob(y,$a.text,ua),$a.stateAfter=0==ua.line%5?ua.save():null;ua.nextLine();if(+new Date>
|
|||
|
xa)return Gi(y,y.options.workDelay),!0});V.highlightFrontier=ua.line;V.modeFrontier=Math.max(V.modeFrontier,ua.line);Fa.length&&Ye(y,function(){for(var $a=0;$a<Fa.length;$a++)Sg(y,Fa[$a],"text")})}}function di(y,V){var xa=y.display,ua=y.doc;if(V.editorIsHidden)return ki(y),!1;if(!V.force&&V.visible.from>=xa.viewFrom&&V.visible.to<=xa.viewTo&&(null==xa.updateLineNumbers||xa.updateLineNumbers>=xa.viewTo)&&xa.renderedView==xa.view&&0==ri(y))return!1;bl(y)&&(ki(y),V.dims=ye(y));var Fa=ua.first+ua.size,
|
|||
|
$a=Math.max(V.visible.from-y.options.viewportMargin,ua.first),qb=Math.min(Fa,V.visible.to+y.options.viewportMargin);xa.viewFrom<$a&&20>$a-xa.viewFrom&&($a=Math.max(ua.first,xa.viewFrom));xa.viewTo>qb&&20>xa.viewTo-qb&&(qb=Math.min(Fa,xa.viewTo));ff&&($a=Sd(y.doc,$a),qb=Nb(y.doc,qb));ua=$a!=xa.viewFrom||qb!=xa.viewTo||xa.lastWrapHeight!=V.wrapperHeight||xa.lastWrapWidth!=V.wrapperWidth;Fa=y.display;0==Fa.view.length||$a>=Fa.viewTo||qb<=Fa.viewFrom?(Fa.view=vc(y,$a,qb),Fa.viewFrom=$a):(Fa.viewFrom>
|
|||
|
$a?Fa.view=vc(y,$a,Fa.viewFrom).concat(Fa.view):Fa.viewFrom<$a&&(Fa.view=Fa.view.slice(Af(y,$a))),Fa.viewFrom=$a,Fa.viewTo<qb?Fa.view=Fa.view.concat(vc(y,Fa.viewTo,qb)):Fa.viewTo>qb&&(Fa.view=Fa.view.slice(0,Af(y,qb))));Fa.viewTo=qb;xa.viewOffset=rb(Ea(y.doc,xa.viewFrom));y.display.mover.style.top=xa.viewOffset+"px";qb=ri(y);if(!ua&&0==qb&&!V.force&&xa.renderedView==xa.view&&(null==xa.updateLineNumbers||xa.updateLineNumbers>=xa.viewTo))return!1;y.hasFocus()?$a=null:($a=B())&&w(y.display.lineDiv,$a)?
|
|||
|
($a={activeElt:$a},window.getSelection&&(Fa=window.getSelection(),Fa.anchorNode&&Fa.extend&&w(y.display.lineDiv,Fa.anchorNode)&&($a.anchorNode=Fa.anchorNode,$a.anchorOffset=Fa.anchorOffset,$a.focusNode=Fa.focusNode,$a.focusOffset=Fa.focusOffset))):$a=null;4<qb&&(xa.lineDiv.style.display="none");Kk(y,xa.updateLineNumbers,V.dims);4<qb&&(xa.lineDiv.style.display="");xa.renderedView=xa.view;(qb=$a)&&qb.activeElt&&qb.activeElt!=B()&&(qb.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(qb.activeElt.nodeName)&&
|
|||
|
qb.anchorNode&&w(document.body,qb.anchorNode)&&w(document.body,qb.focusNode)&&($a=window.getSelection(),Fa=document.createRange(),Fa.setEnd(qb.anchorNode,qb.anchorOffset),Fa.collapse(!1),$a.removeAllRanges(),$a.addRange(Fa),$a.extend(qb.focusNode,qb.focusOffset)));R(xa.cursorDiv);R(xa.selectionDiv);xa.gutters.style.height=xa.sizer.style.minHeight=0;ua&&(xa.lastWrapHeight=V.wrapperHeight,xa.lastWrapWidth=V.wrapperWidth,Gi(y,400));xa.updateLineNumbers=null;return!0}function Gg(y,V){for(var xa=V.viewport,
|
|||
|
ua=!0;;ua=!1){if(ua&&y.options.lineWrapping&&V.oldDisplayWidth!=Je(y))ua&&(V.visible=dk(y.display,y.doc,xa));else if(xa&&null!=xa.top&&(xa={top:Math.min(y.doc.height+ee(y.display)-cg(y),xa.top)}),V.visible=dk(y.display,y.doc,xa),V.visible.from>=y.display.viewFrom&&V.visible.to<=y.display.viewTo)break;if(!di(y,V))break;Ik(y);ua=Bl(y);ci(y);pl(y,ua);Li(y,ua);V.force=!1}V.signal(y,"update",y);if(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)V.signal(y,"viewportChange",
|
|||
|
y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo}function ik(y,V){V=new Qi(y,V);if(di(y,V)){Ik(y);Gg(y,V);var xa=Bl(y);ci(y);pl(y,xa);Li(y,xa);V.finish()}}function Kk(y,V,xa){function ua(Md){var od=Md.nextSibling;Gd&&Tf&&y.display.currentWheelTarget==Md?Md.style.display="none":Md.parentNode.removeChild(Md);return od}var Fa=y.display,$a=y.options.lineNumbers,qb=Fa.lineDiv,ub=qb.firstChild,Xb=Fa.view;Fa=Fa.viewFrom;for(var Cc=
|
|||
|
0;Cc<Xb.length;Cc++){var Dc=Xb[Cc];if(!Dc.hidden)if(Dc.node&&Dc.node.parentNode==qb){for(;ub!=Dc.node;)ub=ua(ub);ub=$a&&null!=V&&V<=Fa&&Dc.lineNumber;Dc.changes&&(-1<k(Dc.changes,"gutter")&&(ub=!1),He(y,Dc,Fa,xa));ub&&(R(Dc.lineNumber),Dc.lineNumber.appendChild(document.createTextNode(oa(y.options,Fa))));ub=Dc.node.nextSibling}else{var Fd=ve(y,Dc,Fa,xa);qb.insertBefore(Fd,ub)}Fa+=Dc.size}for(;ub;)ub=ua(ub)}function Oh(y){y.sizer.style.marginLeft=y.gutters.offsetWidth+"px"}function Li(y,V){y.display.sizer.style.minHeight=
|
|||
|
V.docHeight+"px";y.display.heightForcer.style.top=V.docHeight+"px";y.display.gutters.style.height=V.docHeight+y.display.barHeight+mc(y)+"px"}function Th(y){var V=y.display,xa=V.view;if(V.alignWidgets||V.gutters.firstChild&&y.options.fixedGutter){for(var ua=Se(V)-V.scroller.scrollLeft+y.doc.scrollLeft,Fa=V.gutters.offsetWidth,$a=ua+"px",qb=0;qb<xa.length;qb++)if(!xa[qb].hidden){y.options.fixedGutter&&(xa[qb].gutter&&(xa[qb].gutter.style.left=$a),xa[qb].gutterBackground&&(xa[qb].gutterBackground.style.left=
|
|||
|
$a));var ub=xa[qb].alignable;if(ub)for(var Xb=0;Xb<ub.length;Xb++)ub[Xb].style.left=$a}y.options.fixedGutter&&(V.gutters.style.left=ua+Fa+"px")}}function bl(y){if(!y.options.lineNumbers)return!1;var V=y.doc;V=oa(y.options,V.first+V.size-1);var xa=y.display;if(V.length!=xa.lineNumChars){var ua=xa.measure.appendChild(t("div",[t("div",V)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fa=ua.firstChild.offsetWidth;ua=ua.offsetWidth-Fa;xa.lineGutter.style.width="";xa.lineNumInnerWidth=Math.max(Fa,xa.lineGutter.offsetWidth-
|
|||
|
ua)+1;xa.lineNumWidth=xa.lineNumInnerWidth+ua;xa.lineNumChars=xa.lineNumInnerWidth?V.length:-1;xa.lineGutter.style.width=xa.lineNumWidth+"px";Oh(y.display);return!0}return!1}function yk(y,V){for(var xa=[],ua=!1,Fa=0;Fa<y.length;Fa++){var $a=y[Fa],qb=null;"string"!=typeof $a&&(qb=$a.style,$a=$a.className);if("CodeMirror-linenumbers"==$a)if(V)ua=!0;else continue;xa.push({className:$a,style:qb})}V&&!ua&&xa.push({className:"CodeMirror-linenumbers",style:null});return xa}function Oj(y){var V=y.gutters,
|
|||
|
xa=y.gutterSpecs;R(V);y.lineGutter=null;for(var ua=0;ua<xa.length;++ua){var Fa=xa[ua],$a=Fa.className;Fa=Fa.style;var qb=V.appendChild(t("div",null,"CodeMirror-gutter "+$a));Fa&&(qb.style.cssText=Fa);"CodeMirror-linenumbers"==$a&&(y.lineGutter=qb,qb.style.width=(y.lineNumWidth||1)+"px")}V.style.display=xa.length?"":"none";Oh(y)}function ql(y){Oj(y.display);Xf(y);Th(y)}function gn(y,V,xa,ua){this.input=xa;this.scrollbarFiller=t("div",null,"CodeMirror-scrollbar-filler");this.scrollbarFiller.setAttribute("cm-not-content",
|
|||
|
"true");this.gutterFiller=t("div",null,"CodeMirror-gutter-filler");this.gutterFiller.setAttribute("cm-not-content","true");this.lineDiv=d("div",null,"CodeMirror-code");this.selectionDiv=t("div",null,null,"position: relative; z-index: 1");this.cursorDiv=t("div",null,"CodeMirror-cursors");this.measure=t("div",null,"CodeMirror-measure");this.lineMeasure=t("div",null,"CodeMirror-measure");this.lineSpace=d("div",[this.measure,this.lineMeasure,this.selectionDiv,this.cursorDiv,this.lineDiv],null,"position: relative; outline: none");
|
|||
|
var Fa=d("div",[this.lineSpace],"CodeMirror-lines");this.mover=t("div",[Fa],null,"position: relative");this.sizer=t("div",[this.mover],"CodeMirror-sizer");this.sizerWidth=null;this.heightForcer=t("div",null,null,"position: absolute; height: 50px; width: 1px;");this.gutters=t("div",null,"CodeMirror-gutters");this.lineGutter=null;this.scroller=t("div",[this.sizer,this.heightForcer,this.gutters],"CodeMirror-scroll");this.scroller.setAttribute("tabIndex","-1");this.wrapper=t("div",[this.scrollbarFiller,
|
|||
|
this.gutterFiller,this.scroller],"CodeMirror");Ed&&8>Bd&&(this.gutters.style.zIndex=-1,this.scroller.style.paddingRight=0);Gd||Oc&&cj||(this.scroller.draggable=!0);y&&(y.appendChild?y.appendChild(this.wrapper):y(this.wrapper));this.reportedViewFrom=this.reportedViewTo=this.viewFrom=this.viewTo=V.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=yk(ua.gutters,ua.lineNumbers);Oj(this);xa.init(this)}function jk(y){var V=y.wheelDeltaX,xa=y.wheelDeltaY;null==V&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&
|
|||
|
(V=y.detail);null==xa&&y.detail&&y.axis==y.VERTICAL_AXIS?xa=y.detail:null==xa&&(xa=y.wheelDelta);return{x:V,y:xa}}function Ci(y){y=jk(y);y.x*=Ge;y.y*=Ge;return y}function rj(y,V){var xa=jk(V),ua=xa.x;xa=xa.y;var Fa=y.display,$a=Fa.scroller,qb=$a.scrollWidth>$a.clientWidth,ub=$a.scrollHeight>$a.clientHeight;if(ua&&qb||xa&&ub){if(xa&&Tf&&Gd){qb=V.target;var Xb=Fa.view;a:for(;qb!=$a;qb=qb.parentNode)for(var Cc=0;Cc<Xb.length;Cc++)if(Xb[Cc].node==qb){y.display.currentWheelTarget=qb;break a}}!ua||Oc||
|
|||
|
xe||null==Ge?(xa&&null!=Ge&&(V=xa*Ge,ub=y.doc.scrollTop,qb=ub+Fa.wrapper.clientHeight,0>V?ub=Math.max(0,ub+V-50):qb=Math.min(y.doc.height,qb+V+50),ik(y,{top:ub,bottom:qb})),20>Ai&&(null==Fa.wheelStartX?(Fa.wheelStartX=$a.scrollLeft,Fa.wheelStartY=$a.scrollTop,Fa.wheelDX=ua,Fa.wheelDY=xa,setTimeout(function(){if(null!=Fa.wheelStartX){var Dc=$a.scrollLeft-Fa.wheelStartX,Fd=$a.scrollTop-Fa.wheelStartY;Dc=Fd&&Fa.wheelDY&&Fd/Fa.wheelDY||Dc&&Fa.wheelDX&&Dc/Fa.wheelDX;Fa.wheelStartX=Fa.wheelStartY=null;
|
|||
|
Dc&&(Ge=(Ge*Ai+Dc)/(Ai+1),++Ai)}},200)):(Fa.wheelDX+=ua,Fa.wheelDY+=xa))):(xa&&ub&&ui(y,Math.max(0,$a.scrollTop+xa*Ge)),Nj(y,Math.max(0,$a.scrollLeft+ua*Ge)),(!xa||xa&&ub)&&ba(V),Fa.wheelStartX=null)}}function Yh(y,V,xa){y=y&&y.options.selectionsMayTouch;xa=V[xa];V.sort(function(Xb,Cc){return sa(Xb.from(),Cc.from())});xa=k(V,xa);for(var ua=1;ua<V.length;ua++){var Fa=V[ua],$a=V[ua-1],qb=sa($a.to(),Fa.from());if(y&&!Fa.empty()?0<qb:0<=qb){qb=Ab($a.from(),Fa.from());var ub=Sa($a.to(),Fa.to());Fa=$a.empty()?
|
|||
|
Fa.from()==Fa.head:$a.from()==$a.head;ua<=xa&&--xa;V.splice(--ua,2,new kg(Fa?ub:qb,Fa?qb:ub))}}return new Kf(V,xa)}function Ti(y,V){return new Kf([new kg(y,V||y)],0)}function Ph(y){return y.text?Ca(y.from.line+y.text.length-1,x(y.text).length+(1==y.text.length?y.from.ch:0)):y.to}function gj(y,V){if(0>sa(y,V.from))return y;if(0>=sa(y,V.to))return Ph(V);var xa=y.line+V.text.length-(V.to.line-V.from.line)-1,ua=y.ch;y.line==V.to.line&&(ua+=Ph(V).ch-V.to.ch);return Ca(xa,ua)}function vi(y,V){for(var xa=
|
|||
|
[],ua=0;ua<y.sel.ranges.length;ua++){var Fa=y.sel.ranges[ua];xa.push(new kg(gj(Fa.anchor,V),gj(Fa.head,V)))}return Yh(y.cm,xa,y.sel.primIndex)}function cl(y,V,xa){return y.line==V.line?Ca(xa.line,y.ch-V.ch+xa.ch):Ca(xa.line+(y.line-V.line),y.ch)}function dl(y){y.doc.mode=qa(y.options,y.doc.modeOption);Ui(y)}function Ui(y){y.doc.iter(function(V){V.stateAfter&&(V.stateAfter=null);V.styles&&(V.styles=null)});y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first;Gi(y,100);y.state.modeGen++;y.curOp&&
|
|||
|
Xf(y)}function Pg(y,V){return 0==V.from.ch&&0==V.to.ch&&""==x(V.text)&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function Mi(y,V,xa,ua){function Fa(Ce,Cf,Ng){Ce.text=Cf;Ce.stateAfter&&(Ce.stateAfter=null);Ce.styles&&(Ce.styles=null);null!=Ce.order&&(Ce.order=null);Dd(Ce);wd(Ce,Ng);Cf=ua?ua(Ce):1;Cf!=Ce.height&&Ma(Ce,Cf);Ie(Ce,"change",Ce,V)}function $a(Ce,Cf){for(var Ng=[];Ce<Cf;++Ce)Ng.push(new Ei(Xb[Ce],xa?xa[Ce]:null,ua));return Ng}var qb=V.from,ub=V.to,Xb=V.text,Cc=Ea(y,qb.line),Dc=Ea(y,ub.line),
|
|||
|
Fd=x(Xb),Md=xa?xa[Xb.length-1]:null,od=ub.line-qb.line;V.full?(y.insert(0,$a(0,Xb.length)),y.remove(Xb.length,y.size-Xb.length)):Pg(y,V)?(ub=$a(0,Xb.length-1),Fa(Dc,Dc.text,Md),od&&y.remove(qb.line,od),ub.length&&y.insert(qb.line,ub)):Cc==Dc?1==Xb.length?Fa(Cc,Cc.text.slice(0,qb.ch)+Fd+Cc.text.slice(ub.ch),Md):(od=$a(1,Xb.length-1),od.push(new Ei(Fd+Cc.text.slice(ub.ch),Md,ua)),Fa(Cc,Cc.text.slice(0,qb.ch)+Xb[0],xa?xa[0]:null),y.insert(qb.line+1,od)):1==Xb.length?(Fa(Cc,Cc.text.slice(0,qb.ch)+Xb[0]+
|
|||
|
Dc.text.slice(ub.ch),xa?xa[0]:null),y.remove(qb.line+1,od)):(Fa(Cc,Cc.text.slice(0,qb.ch)+Xb[0],xa?xa[0]:null),Fa(Dc,Fd+Dc.text.slice(ub.ch),Md),Md=$a(1,Xb.length-1),1<od&&y.remove(qb.line+1,od-1),y.insert(qb.line+1,Md));Ie(y,"change",y,V)}function Qh(y,V,xa){function ua(Fa,$a,qb){if(Fa.linked)for(var ub=0;ub<Fa.linked.length;++ub){var Xb=Fa.linked[ub];if(Xb.doc!=$a){var Cc=qb&&Xb.sharedHist;if(!xa||Cc)V(Xb.doc,Cc),ua(Xb.doc,Fa,Cc)}}}ua(y,null,!0)}function Qj(y,V){if(V.cm)throw Error("This document is already in use.");
|
|||
|
y.doc=V;V.cm=y;lg(y);dl(y);Hh(y);y.options.lineWrapping||cc(y);y.options.mode=V.modeOption;Xf(y)}function Hh(y){("rtl"==y.doc.direction?C:Dg)(y.display.lineDiv,"CodeMirror-rtl")}function Hi(y){Ye(y,function(){Hh(y);Xf(y)})}function Mk(y){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOrigin=this.lastSelOrigin=this.lastOp=this.lastSelOp=null;this.generation=this.maxGeneration=y||1}function hj(y,V){var xa={from:Ja(V.from),to:Ph(V),text:Oa(y,V.from,V.to)};
|
|||
|
Cl(y,xa,V.from.line,V.to.line+1);Qh(y,function(ua){return Cl(ua,xa,V.from.line,V.to.line+1)},!0);return xa}function xj(y){for(;y.length;)if(x(y).ranges)y.pop();else break}function vn(y,V,xa,ua){var Fa=y.history;Fa.undone.length=0;var $a=+new Date,qb;if(qb=Fa.lastOp==ua||Fa.lastOrigin==V.origin&&V.origin&&("+"==V.origin.charAt(0)&&Fa.lastModTime>$a-(y.cm?y.cm.options.historyEventDelay:500)||"*"==V.origin.charAt(0))){if(Fa.lastOp==ua){xj(Fa.done);var ub=x(Fa.done)}else Fa.done.length&&!x(Fa.done).ranges?
|
|||
|
ub=x(Fa.done):1<Fa.done.length&&!Fa.done[Fa.done.length-2].ranges?(Fa.done.pop(),ub=x(Fa.done)):ub=void 0;qb=ub}if(qb){var Xb=x(ub.changes);0==sa(V.from,V.to)&&0==sa(V.from,Xb.to)?Xb.to=Ph(V):ub.changes.push(hj(y,V))}else for((ub=x(Fa.done))&&ub.ranges||Nk(y.sel,Fa.done),ub={changes:[hj(y,V)],generation:Fa.generation},Fa.done.push(ub);Fa.done.length>Fa.undoDepth;)Fa.done.shift(),Fa.done[0].ranges||Fa.done.shift();Fa.done.push(xa);Fa.generation=++Fa.maxGeneration;Fa.lastModTime=Fa.lastSelTime=$a;Fa.lastOp=
|
|||
|
Fa.lastSelOp=ua;Fa.lastOrigin=Fa.lastSelOrigin=V.origin;Xb||S(y,"historyAdded")}function Nk(y,V){var xa=x(V);xa&&xa.ranges&&xa.equals(y)||V.push(y)}function Cl(y,V,xa,ua){var Fa=V["spans_"+y.id],$a=0;y.iter(Math.max(y.first,xa),Math.min(y.first+y.size,ua),function(qb){qb.markedSpans&&((Fa||=V["spans_"+y.id]={})[$a]=qb.markedSpans);++$a})}function Jm(y,V){var xa;if(xa=V["spans_"+y.id]){for(var ua=[],Fa=0;Fa<V.text.length;++Fa){var $a=ua,qb=$a.push;var ub=void 0;var Xb=xa[Fa];if(Xb){for(var Cc=0;Cc<
|
|||
|
Xb.length;++Cc)Xb[Cc].marker.explicitlyCleared?ub||=Xb.slice(0,Cc):ub&&ub.push(Xb[Cc]);ub=ub?ub.length?ub:null:Xb}else ub=null;qb.call($a,ub)}xa=ua}else xa=null;y=Kd(y,V);if(!xa)return y;if(!y)return xa;for(V=0;V<xa.length;++V)if(ua=xa[V],Fa=y[V],ua&&Fa)a:for($a=0;$a<Fa.length;++$a){qb=Fa[$a];for(ub=0;ub<ua.length;++ub)if(ua[ub].marker==qb.marker)continue a;ua.push(qb)}else Fa&&(xa[V]=Fa);return xa}function ij(y,V,xa){for(var ua=[],Fa=0;Fa<y.length;++Fa){var $a=y[Fa];if($a.ranges)ua.push(xa?Kf.prototype.deepCopy.call($a):
|
|||
|
$a);else{$a=$a.changes;var qb=[];ua.push({changes:qb});for(var ub=0;ub<$a.length;++ub){var Xb=$a[ub],Cc;qb.push({from:Xb.from,to:Xb.to,text:Xb.text});if(V)for(var Dc in Xb)(Cc=Dc.match(/^spans_(\d+)$/))&&-1<k(V,Number(Cc[1]))&&(x(qb)[Dc]=Xb[Dc],delete Xb[Dc])}}}return ua}function Km(y,V,xa,ua){return ua?(y=y.anchor,xa&&(ua=0>sa(V,y),ua!=0>sa(xa,y)?(y=V,V=xa):ua!=0>sa(V,xa)&&(V=xa)),new kg(y,V)):new kg(xa||V,V)}function em(y,V,xa,ua,Fa){null==Fa&&(Fa=y.cm&&(y.cm.display.shift||y.extend));zg(y,new Kf([Km(y.sel.primary(),
|
|||
|
V,xa,Fa)],0),ua)}function Ak(y,V,xa){for(var ua=[],Fa=y.cm&&(y.cm.display.shift||y.extend),$a=0;$a<y.sel.ranges.length;$a++)ua[$a]=Km(y.sel.ranges[$a],V[$a],null,Fa);V=Yh(y.cm,ua,y.sel.primIndex);zg(y,V,xa)}function Yj(y,V,xa,ua){var Fa=y.sel.ranges.slice(0);Fa[V]=xa;zg(y,Yh(y.cm,Fa,y.sel.primIndex),ua)}function fm(y,V,xa){xa={ranges:V.ranges,update:function(ua){this.ranges=[];for(var Fa=0;Fa<ua.length;Fa++)this.ranges[Fa]=new kg(jb(y,ua[Fa].anchor),jb(y,ua[Fa].head))},origin:xa&&xa.origin};S(y,"beforeSelectionChange",
|
|||
|
y,xa);y.cm&&S(y.cm,"beforeSelectionChange",y.cm,xa);return xa.ranges!=V.ranges?Yh(y.cm,xa.ranges,xa.ranges.length-1):V}function zk(y,V,xa){var ua=y.history.done,Fa=x(ua);Fa&&Fa.ranges?(ua[ua.length-1]=V,um(y,V,xa)):zg(y,V,xa)}function zg(y,V,xa){um(y,V,xa);V=y.sel;var ua=y.cm?y.cm.curOp.id:NaN,Fa=y.history,$a=xa&&xa.origin,qb;if(!(qb=ua==Fa.lastSelOp)&&(qb=$a&&Fa.lastSelOrigin==$a)&&!(qb=Fa.lastModTime==Fa.lastSelTime&&Fa.lastOrigin==$a)){qb=x(Fa.done);var ub=$a.charAt(0);qb="*"==ub||"+"==ub&&qb.ranges.length==
|
|||
|
V.ranges.length&&qb.somethingSelected()==V.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}qb?Fa.done[Fa.done.length-1]=V:Nk(V,Fa.done);Fa.lastSelTime=+new Date;Fa.lastSelOrigin=$a;Fa.lastSelOp=ua;xa&&!1!==xa.clearRedo&&xj(Fa.undone)}function um(y,V,xa){if(P(y,"beforeSelectionChange")||y.cm&&P(y.cm,"beforeSelectionChange"))V=fm(y,V,xa);var ua=xa&&xa.bias||(0>sa(V.primary().head,y.sel.primary().head)?-1:1);rh(y,Ok(y,V,ua,!0));xa&&!1===xa.scroll||!y.cm||
|
|||
|
wh(y.cm)}function rh(y,V){V.equals(y.sel)||(y.sel=V,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,O(y.cm)),Ie(y,"cursorActivity",y))}function bj(y){rh(y,Ok(y,y.sel,null,!1))}function Ok(y,V,xa,ua){for(var Fa,$a=0;$a<V.ranges.length;$a++){var qb=V.ranges[$a],ub=V.ranges.length==y.sel.ranges.length&&y.sel.ranges[$a],Xb=jj(y,qb.anchor,ub&&ub.anchor,xa,ua);ub=jj(y,qb.head,ub&&ub.head,xa,ua);if(Fa||Xb!=qb.anchor||ub!=qb.head)Fa||=V.ranges.slice(0,$a),Fa[$a]=new kg(Xb,ub)}return Fa?Yh(y.cm,
|
|||
|
Fa,V.primIndex):V}function cf(y,V,xa,ua,Fa){var $a=Ea(y,V.line);if($a.markedSpans)for(var qb=0;qb<$a.markedSpans.length;++qb){var ub=$a.markedSpans[qb],Xb=ub.marker,Cc="selectLeft"in Xb?!Xb.selectLeft:Xb.inclusiveLeft,Dc="selectRight"in Xb?!Xb.selectRight:Xb.inclusiveRight;if((null==ub.from||(Cc?ub.from<=V.ch:ub.from<V.ch))&&(null==ub.to||(Dc?ub.to>=V.ch:ub.to>V.ch))){if(Fa&&(S(Xb,"beforeCursorEnter"),Xb.explicitlyCleared))if($a.markedSpans){--qb;continue}else break;if(Xb.atomic){if(xa){qb=Xb.find(0>
|
|||
|
ua?1:-1);ub=void 0;if(0>ua?Dc:Cc)qb=kk(y,qb,-ua,qb&&qb.line==V.line?$a:null);if(qb&&qb.line==V.line&&(ub=sa(qb,xa))&&(0>ua?0>ub:0<ub))return cf(y,qb,V,ua,Fa)}xa=Xb.find(0>ua?-1:1);if(0>ua?Cc:Dc)xa=kk(y,xa,ua,xa.line==V.line?$a:null);return xa?cf(y,xa,V,ua,Fa):null}}}return V}function jj(y,V,xa,ua,Fa){ua=ua||1;V=cf(y,V,xa,ua,Fa)||!Fa&&cf(y,V,xa,ua,!0)||cf(y,V,xa,-ua,Fa)||!Fa&&cf(y,V,xa,-ua,!0);return V?V:(y.cantEdit=!0,Ca(y.first,0))}function kk(y,V,xa,ua){return 0>xa&&0==V.ch?V.line>y.first?jb(y,
|
|||
|
Ca(V.line-1)):null:0<xa&&V.ch==(ua||Ea(y,V.line)).text.length?V.line<y.first+y.size-1?Ca(V.line+1,0):null:new Ca(V.line,V.ch+xa)}function Dk(y){y.setSelection(Ca(y.firstLine(),0),Ca(y.lastLine()),th)}function gm(y,V,xa){var ua={canceled:!1,from:V.from,to:V.to,text:V.text,origin:V.origin,cancel:function(){return ua.canceled=!0}};xa&&(ua.update=function(Fa,$a,qb,ub){Fa&&(ua.from=jb(y,Fa));$a&&(ua.to=jb(y,$a));qb&&(ua.text=qb);void 0!==ub&&(ua.origin=ub)});S(y,"beforeChange",y,ua);y.cm&&S(y.cm,"beforeChange",
|
|||
|
y.cm,ua);return ua.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:ua.from,to:ua.to,text:ua.text,origin:ua.origin}}function rg(y,V,xa){if(y.cm){if(!y.cm.curOp)return vg(y.cm,rg)(y,V,xa);if(y.cm.state.suppressEdits)return}if(P(y,"beforeChange")||y.cm&&P(y.cm,"beforeChange"))if(V=gm(y,V,!0),!V)return;if(xa=Le&&!xa&&pc(y,V.from,V.to))for(var ua=xa.length-1;0<=ua;--ua)df(y,{from:xa[ua].from,to:xa[ua].to,text:ua?[""]:V.text,origin:V.origin});else df(y,V)}function df(y,V){if(1!=V.text.length||""!=
|
|||
|
V.text[0]||0!=sa(V.from,V.to)){var xa=vi(y,V);vn(y,V,xa,y.cm?y.cm.curOp.id:NaN);Df(y,V,xa,Kd(y,V));var ua=[];Qh(y,function(Fa,$a){$a||-1!=k(ua,Fa.history)||(sl(Fa.history,V),ua.push(Fa.history));Df(Fa,V,null,Kd(Fa,V))})}}function If(y,V,xa){var ua=y.cm&&y.cm.state.suppressEdits;if(!ua||xa){for(var Fa=y.history,$a,qb=y.sel,ub="undo"==V?Fa.done:Fa.undone,Xb="undo"==V?Fa.undone:Fa.done,Cc=0;Cc<ub.length&&($a=ub[Cc],xa?!$a.ranges||$a.equals(y.sel):$a.ranges);Cc++);if(Cc!=ub.length){for(Fa.lastOrigin=
|
|||
|
Fa.lastSelOrigin=null;;)if($a=ub.pop(),$a.ranges){Nk($a,Xb);if(xa&&!$a.equals(y.sel)){zg(y,$a,{clearRedo:!1});return}qb=$a}else{if(ua){ub.push($a);return}break}var Dc=[];Nk(qb,Xb);Xb.push({changes:Dc,generation:Fa.generation});Fa.generation=$a.generation||++Fa.maxGeneration;var Fd=P(y,"beforeChange")||y.cm&&P(y.cm,"beforeChange");xa=function(Md){var od=$a.changes[Md];od.origin=V;if(Fd&&!gm(y,od,!1))return ub.length=0,{};Dc.push(hj(y,od));var Ce=Md?vi(y,od):x(ub);Df(y,od,Ce,Jm(y,od));!Md&&y.cm&&y.cm.scrollIntoView({from:od.from,
|
|||
|
to:Ph(od)});var Cf=[];Qh(y,function(Ng,tj){tj||-1!=k(Cf,Ng.history)||(sl(Ng.history,od),Cf.push(Ng.history));Df(Ng,od,null,Jm(Ng,od))})};for(ua=$a.changes.length-1;0<=ua;--ua)if(Fa=xa(ua))return Fa.v}}}function Ek(y,V){if(0!=V&&(y.first+=V,y.sel=new Kf(L(y.sel.ranges,function(Fa){return new kg(Ca(Fa.anchor.line+V,Fa.anchor.ch),Ca(Fa.head.line+V,Fa.head.ch))}),y.sel.primIndex),y.cm)){Xf(y.cm,y.first,y.first-V,V);for(var xa=y.cm.display,ua=xa.viewFrom;ua<xa.viewTo;ua++)Sg(y.cm,ua,"gutter")}}function Df(y,
|
|||
|
V,xa,ua){if(y.cm&&!y.cm.curOp)return vg(y.cm,Df)(y,V,xa,ua);if(V.to.line<y.first)Ek(y,V.text.length-1-(V.to.line-V.from.line));else if(!(V.from.line>y.lastLine())){if(V.from.line<y.first){var Fa=V.text.length-1-(y.first-V.from.line);Ek(y,Fa);V={from:Ca(y.first,0),to:Ca(V.to.line+Fa,V.to.ch),text:[x(V.text)],origin:V.origin}}Fa=y.lastLine();V.to.line>Fa&&(V={from:V.from,to:Ca(Fa,Ea(y,Fa).text.length),text:[V.text[0]],origin:V.origin});V.removed=Oa(y,V.from,V.to);xa||=vi(y,V);y.cm?yj(y.cm,V,ua):Mi(y,
|
|||
|
V,ua);um(y,xa,th);y.cantEdit&&jj(y,Ca(y.firstLine(),0))&&(y.cantEdit=!1)}}function yj(y,V,xa){var ua=y.doc,Fa=y.display,$a=V.from,qb=V.to,ub=!1,Xb=$a.line;y.options.lineWrapping||(Xb=eb(ld(Ea(ua,$a.line))),ua.iter(Xb,qb.line+1,function(Cc){if(Cc==Fa.maxLine)return ub=!0}));-1<ua.sel.contains(V.from,V.to)&&O(y);Mi(ua,V,xa,Nf(y));y.options.lineWrapping||(ua.iter(Xb,$a.line+V.text.length,function(Cc){var Dc=nb(Cc);Dc>Fa.maxLineLength&&(Fa.maxLine=Cc,Fa.maxLineLength=Dc,Fa.maxLineChanged=!0,ub=!1)}),
|
|||
|
ub&&(y.curOp.updateMaxLine=!0));yc(ua,$a.line);Gi(y,400);xa=V.text.length-(qb.line-$a.line)-1;V.full?Xf(y):$a.line!=qb.line||1!=V.text.length||Pg(y.doc,V)?Xf(y,$a.line,qb.line+1,xa):Sg(y,$a.line,"text");xa=P(y,"changes");if((ua=P(y,"change"))||xa)V={from:$a,to:qb,text:V.text,removed:V.removed,origin:V.origin},ua&&Ie(y,"change",y,V),xa&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(V);y.display.selForContextMenu=null}function el(y,V,xa,ua,Fa){ua||=xa;0>sa(ua,xa)&&(ua=[ua,xa],xa=ua[0],ua=ua[1]);
|
|||
|
"string"==typeof V&&(V=y.splitLines(V));rg(y,{from:xa,to:ua,text:V,origin:Fa})}function sg(y,V,xa,ua){xa<y.line?y.line+=ua:V<y.line&&(y.line=V,y.ch=0)}function kj(y,V,xa,ua){for(var Fa=0;Fa<y.length;++Fa){var $a=y[Fa],qb=!0;if($a.ranges)for($a.copied||($a=y[Fa]=$a.deepCopy(),$a.copied=!0),qb=0;qb<$a.ranges.length;qb++)sg($a.ranges[qb].anchor,V,xa,ua),sg($a.ranges[qb].head,V,xa,ua);else{for(var ub=0;ub<$a.changes.length;++ub){var Xb=$a.changes[ub];if(xa<Xb.from.line)Xb.from=Ca(Xb.from.line+ua,Xb.from.ch),
|
|||
|
Xb.to=Ca(Xb.to.line+ua,Xb.to.ch);else if(V<=Xb.to.line){qb=!1;break}}qb||(y.splice(0,Fa+1),Fa=0)}}}function sl(y,V){var xa=V.from.line,ua=V.to.line;V=V.text.length-(ua-xa)-1;kj(y.done,xa,ua,V);kj(y.undone,xa,ua,V)}function pf(y,V,xa,ua){var Fa=V,$a=V;"number"==typeof V?$a=Ea(y,Math.max(y.first,Math.min(V,y.first+y.size-1))):Fa=eb(V);if(null==Fa)return null;ua($a,Fa)&&y.cm&&Sg(y.cm,Fa,xa);return $a}function lk(y){this.lines=y;this.parent=null;for(var V=0,xa=0;xa<y.length;++xa)y[xa].parent=this,V+=
|
|||
|
y[xa].height;this.height=V}function Pj(y){this.children=y;for(var V=0,xa=0,ua=0;ua<y.length;++ua){var Fa=y[ua];V+=Fa.chunkSize();xa+=Fa.height;Fa.parent=this}this.size=V;this.height=xa;this.parent=null}function Tl(y,V,xa,ua){var Fa=new Ug(y,xa,ua),$a=y.cm;$a&&Fa.noHScroll&&($a.display.alignWidgets=!0);pf(y,V,"widget",function(qb){var ub=qb.widgets||(qb.widgets=[]);null==Fa.insertAt?ub.push(Fa):ub.splice(Math.min(ub.length-1,Math.max(0,Fa.insertAt)),0,Fa);Fa.line=qb;$a&&!fc(y,qb)&&(ub=rb(qb)<y.scrollTop,
|
|||
|
Ma(qb,qb.height+Bb(Fa)),ub&&Jk($a,Fa.height),$a.curOp.forceUpdate=!0);return!0});$a&&Ie($a,"lineWidgetAdded",$a,Fa,"number"==typeof V?V:eb(V));return Fa}function Lk(y,V,xa,ua,Fa){if(ua&&ua.shared)return Vm(y,V,xa,ua,Fa);if(y.cm&&!y.cm.curOp)return vg(y.cm,Lk)(y,V,xa,ua,Fa);var $a=new Pf(y,Fa);Fa=sa(V,xa);ua&&r(ua,$a,!1);if(0<Fa||0==Fa&&!1!==$a.clearWhenEmpty)return $a;$a.replacedWith&&($a.collapsed=!0,$a.widgetNode=d("span",[$a.replacedWith],"CodeMirror-widget"),ua.handleMouseEvents||$a.widgetNode.setAttribute("cm-ignore-events",
|
|||
|
"true"),ua.insertLeft&&($a.widgetNode.insertLeft=!0));if($a.collapsed){if(Qd(y,V.line,V,xa,$a)||V.line!=xa.line&&Qd(y,xa.line,V,xa,$a))throw Error("Inserting collapsed marker partially overlapping an existing one");ff=!0}$a.addToHistory&&vn(y,{from:V,to:xa,origin:"markText"},y.sel,NaN);var qb=V.line,ub=y.cm,Xb;y.iter(qb,xa.line+1,function(Cc){ub&&$a.collapsed&&!ub.options.lineWrapping&&ld(Cc)==ub.display.maxLine&&(Xb=!0);$a.collapsed&&qb!=V.line&&Ma(Cc,0);var Dc=new Vc($a,qb==V.line?V.ch:null,qb==
|
|||
|
xa.line?xa.ch:null);Cc.markedSpans=Cc.markedSpans?Cc.markedSpans.concat([Dc]):[Dc];Dc.marker.attachLine(Cc);++qb});$a.collapsed&&y.iter(V.line,xa.line+1,function(Cc){fc(y,Cc)&&Ma(Cc,0)});$a.clearOnEnter&&ug($a,"beforeCursorEnter",function(){return $a.clear()});$a.readOnly&&(Le=!0,(y.history.done.length||y.history.undone.length)&&y.clearHistory());$a.collapsed&&($a.id=++$f,$a.atomic=!0);if(ub){Xb&&(ub.curOp.updateMaxLine=!0);if($a.collapsed)Xf(ub,V.line,xa.line+1);else if($a.className||$a.startStyle||
|
|||
|
$a.endStyle||$a.css||$a.attributes||$a.title)for(ua=V.line;ua<=xa.line;ua++)Sg(ub,ua,"text");$a.atomic&&bj(ub.doc);Ie(ub,"markerAdded",ub,$a)}return $a}function Vm(y,V,xa,ua,Fa){ua=r(ua);ua.shared=!1;var $a=[Lk(y,V,xa,ua,Fa)],qb=$a[0],ub=ua.widgetNode;Qh(y,function(Xb){ub&&(ua.widgetNode=ub.cloneNode(!0));$a.push(Lk(Xb,jb(Xb,V),jb(Xb,xa),ua,Fa));for(var Cc=0;Cc<Xb.linked.length;++Cc)if(Xb.linked[Cc].isParent)return;qb=x($a)});return new ol($a,qb)}function xi(y){return y.findMarks(Ca(y.first,0),y.clipPos(Ca(y.lastLine())),
|
|||
|
function(V){return V.parent})}function Vi(y){for(var V=function(ua){ua=y[ua];var Fa=[ua.primary.doc];Qh(ua.primary.doc,function(ub){return Fa.push(ub)});for(var $a=0;$a<ua.markers.length;$a++){var qb=ua.markers[$a];-1==k(Fa,qb.doc)&&(qb.parent=null,ua.markers.splice($a--,1))}},xa=0;xa<y.length;xa++)V(xa)}function Ck(y){var V=this;mk(V);if(!D(V,y)&&!Hd(V.display,y)){ba(y);Ed&&(Hl=+new Date);var xa=Lf(V,y,!0),ua=y.dataTransfer.files;if(xa&&!V.isReadOnly())if(ua&&ua.length&&window.FileReader&&window.File)for(var Fa=
|
|||
|
ua.length,$a=Array(Fa),qb=0,ub=function(){++qb==Fa&&vg(V,function(){xa=jb(V.doc,xa);var Dc={from:xa,to:xa,text:V.doc.splitLines($a.filter(function(Fd){return null!=Fd}).join(V.doc.lineSeparator())),origin:"paste"};rg(V.doc,Dc);zk(V.doc,Ti(jb(V.doc,xa),jb(V.doc,Ph(Dc))))})()},Xb=function(Dc,Fd){if(V.options.allowDropFileTypes&&-1==k(V.options.allowDropFileTypes,Dc.type))ub();else{var Md=new FileReader;Md.onerror=function(){return ub()};Md.onload=function(){var od=Md.result;/[\x00-\x08\x0e-\x1f]{2}/.test(od)||
|
|||
|
($a[Fd]=od);ub()};Md.readAsText(Dc)}},Cc=0;Cc<ua.length;Cc++)Xb(ua[Cc],Cc);else if(V.state.draggingText&&-1<V.doc.sel.contains(xa))V.state.draggingText(y),setTimeout(function(){return V.display.input.focus()},20);else try{if(Xb=y.dataTransfer.getData("Text")){V.state.draggingText&&!V.state.draggingText.copy&&(Cc=V.listSelections());um(V.doc,Ti(xa,xa));if(Cc)for(ua=0;ua<Cc.length;++ua)el(V.doc,"",Cc[ua].anchor,Cc[ua].head,"drag");V.replaceSelection(Xb,"around","paste");V.display.input.focus()}}catch(Dc){}}}
|
|||
|
function mk(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function ul(y){if(document.getElementsByClassName){for(var V=document.getElementsByClassName("CodeMirror"),xa=[],ua=0;ua<V.length;ua++){var Fa=V[ua].CodeMirror;Fa&&xa.push(Fa)}xa.length&&xa[0].operation(function(){for(var $a=0;$a<xa.length;$a++)y(xa[$a])})}}function hn(){var y;ug(window,"resize",function(){null==y&&(y=setTimeout(function(){y=null;ul(Wm)},100))});ug(window,"blur",
|
|||
|
function(){return ul(Xg)})}function Wm(y){var V=y.display;V.cachedCharWidth=V.cachedTextHeight=V.cachedPaddingH=null;V.scrollbarsClipped=!1;y.setSize()}function rl(y){var V=y.split(/-(?!$)/);y=V[V.length-1];for(var xa,ua,Fa,$a,qb=0;qb<V.length-1;qb++){var ub=V[qb];if(/^(cmd|meta|m)$/i.test(ub))$a=!0;else if(/^a(lt)?$/i.test(ub))xa=!0;else if(/^(c|ctrl|control)$/i.test(ub))ua=!0;else if(/^s(hift)?$/i.test(ub))Fa=!0;else throw Error("Unrecognized modifier name: "+ub);}xa&&(y="Alt-"+y);ua&&(y="Ctrl-"+
|
|||
|
y);$a&&(y="Cmd-"+y);Fa&&(y="Shift-"+y);return y}function wm(y){var V={},xa;for(xa in y)if(y.hasOwnProperty(xa)){var ua=y[xa];if(!/^(name|fallthrough|(de|at)tach)$/.test(xa)){if("..."!=ua)for(var Fa=L(xa.split(" "),rl),$a=0;$a<Fa.length;$a++){if($a==Fa.length-1){var qb=Fa.join(" ");var ub=ua}else qb=Fa.slice(0,$a+1).join(" "),ub="...";var Xb=V[qb];if(!Xb)V[qb]=ub;else if(Xb!=ub)throw Error("Inconsistent bindings for "+qb);}delete y[xa]}}for(var Cc in V)y[Cc]=V[Cc];return y}function tl(y,V,xa,ua){V=
|
|||
|
bk(V);var Fa=V.call?V.call(y,ua):V[y];if(!1===Fa)return"nothing";if("..."===Fa)return"multi";if(null!=Fa&&xa(Fa))return"handled";if(V.fallthrough){if("[object Array]"!=Object.prototype.toString.call(V.fallthrough))return tl(y,V.fallthrough,xa,ua);for(Fa=0;Fa<V.fallthrough.length;Fa++){var $a=tl(y,V.fallthrough[Fa],xa,ua);if($a)return $a}}}function Sj(y){y="string"==typeof y?y:pi[y.keyCode];return"Ctrl"==y||"Alt"==y||"Shift"==y||"Mod"==y}function Pk(y,V,xa){var ua=y;V.altKey&&"Alt"!=ua&&(y="Alt-"+
|
|||
|
y);(Tg?V.metaKey:V.ctrlKey)&&"Ctrl"!=ua&&(y="Ctrl-"+y);(Tg?V.ctrlKey:V.metaKey)&&"Mod"!=ua&&(y="Cmd-"+y);!xa&&V.shiftKey&&"Shift"!=ua&&(y="Shift-"+y);return y}function nk(y,V){if(xe&&34==y.keyCode&&y["char"])return!1;var xa=pi[y.keyCode];if(null==xa||y.altGraphKey)return!1;3==y.keyCode&&y.code&&(xa=y.code);return Pk(xa,y,V)}function bk(y){return"string"==typeof y?bm[y]:y}function Rk(y,V){for(var xa=y.doc.sel.ranges,ua=[],Fa=0;Fa<xa.length;Fa++){for(var $a=V(xa[Fa]);ua.length&&0>=sa($a.from,x(ua).to);){var qb=
|
|||
|
ua.pop();if(0>sa(qb.from,$a.from)){$a.from=qb.from;break}}ua.push($a)}Ye(y,function(){for(var ub=ua.length-1;0<=ub;ub--)el(y.doc,"",ua[ub].from,ua[ub].to,"+delete");wh(y)})}function Aj(y,V,xa){V=ha(y.text,V+xa,xa);return 0>V||V>y.text.length?null:V}function Ul(y,V,xa){y=Aj(y,V.ch,xa);return null==y?null:new Ca(V.line,y,0>xa?"after":"before")}function Jj(y,V,xa,ua,Fa){if(y&&("rtl"==V.doc.direction&&(Fa=-Fa),y=aa(xa,V.doc.direction))){y=0>Fa?x(y):y[0];var $a=0>Fa==(1==y.level)?"after":"before";if(0<
|
|||
|
y.level||"rtl"==V.doc.direction){var qb=ab(V,xa);var ub=0>Fa?xa.text.length-1:0;var Xb=Cb(V,qb,ub).top;ub=T(function(Cc){return Cb(V,qb,Cc).top==Xb},0>Fa==(1==y.level)?y.from:y.to-1,ub);"before"==$a&&(ub=Aj(xa,ub,1))}else ub=0>Fa?y.to:y.from;return new Ca(ua,ub,$a)}return new Ca(ua,0>Fa?xa.text.length:0,0>Fa?"before":"after")}function zj(y,V,xa,ua){var Fa=aa(V,y.doc.direction);if(!Fa)return Ul(V,xa,ua);xa.ch>=V.text.length?(xa.ch=V.text.length,xa.sticky="before"):0>=xa.ch&&(xa.ch=0,xa.sticky="after");
|
|||
|
var $a=E(Fa,xa.ch,xa.sticky),qb=Fa[$a];if("ltr"==y.doc.direction&&0==qb.level%2&&(0<ua?qb.to>xa.ch:qb.from<xa.ch))return Ul(V,xa,ua);var ub=function(od,Ce){return Aj(V,od instanceof Ca?od.ch:od,Ce)},Xb,Cc=function(od){if(!y.options.lineWrapping)return{begin:0,end:V.text.length};Xb=Xb||ab(y,V);return ra(y,V,Xb,od)},Dc=Cc("before"==xa.sticky?ub(xa,-1):xa.ch);if("rtl"==y.doc.direction||1==qb.level){var Fd=1==qb.level==0>ua,Md=ub(xa,Fd?1:-1);if(null!=Md&&(Fd?Md<=qb.to&&Md<=Dc.end:Md>=qb.from&&Md>=Dc.begin))return new Ca(xa.line,
|
|||
|
Md,Fd?"before":"after")}qb=function(od,Ce,Cf){for(var Ng=function(ai,Bi){return Bi?new Ca(xa.line,ub(ai,1),"before"):new Ca(xa.line,ai,"after")};0<=od&&od<Fa.length;od+=Ce){var tj=Fa[od],yg=0<Ce==(1!=tj.level),nh=yg?Cf.begin:ub(Cf.end,-1);if(tj.from<=nh&&nh<tj.to)return Ng(nh,yg);nh=yg?tj.from:ub(tj.to,-1);if(Cf.begin<=nh&&nh<Cf.end)return Ng(nh,yg)}};if($a=qb($a+ua,ua,Dc))return $a;Dc=0<ua?Dc.end:ub(Dc.begin,-1);return null==Dc||0<ua&&Dc==V.text.length||!($a=qb(0<ua?0:Fa.length-1,ua,Cc(Dc)))?null:
|
|||
|
$a}function Rj(y,V){var xa=Ea(y.doc,V),ua=ld(xa);ua!=xa&&(V=eb(ua));return Jj(!0,y,ua,V,1)}function hm(y,V){var xa=Rj(y,V.line),ua=Ea(y.doc,xa.line);y=aa(ua,y.doc.direction);return y&&0!=y[0].level?xa:(ua=Math.max(xa.ch,ua.text.search(/\S/)),Ca(xa.line,V.line==xa.line&&V.ch<=ua&&V.ch?0:ua,xa.sticky))}function jm(y,V,xa){if("string"==typeof V&&(V=xm[V],!V))return!1;y.display.input.ensurePolled();var ua=y.display.shift,Fa=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),xa&&(y.display.shift=!1),Fa=
|
|||
|
V(y)!=aj}finally{y.display.shift=ua,y.state.suppressEdits=!1}return Fa}function fl(y,V,xa,ua){var Fa=y.state.keySeq;if(Fa){if(Sj(V))return"handled";/'$/.test(V)?y.state.keySeq=null:Lj.set(50,function(){y.state.keySeq==Fa&&(y.state.keySeq=null,y.display.input.reset())});if(sj(y,Fa+" "+V,xa,ua))return!0}return sj(y,V,xa,ua)}function sj(y,V,xa,ua){a:{for(var Fa=0;Fa<y.state.keyMaps.length;Fa++){var $a=tl(V,y.state.keyMaps[Fa],ua,y);if($a){ua=$a;break a}}ua=y.options.extraKeys&&tl(V,y.options.extraKeys,
|
|||
|
ua,y)||tl(V,y.options.keyMap,ua,y)}"multi"==ua&&(y.state.keySeq=V);"handled"==ua&&Ie(y,"keyHandled",y,V,xa);if("handled"==ua||"multi"==ua)ba(xa),Fi(y);return!!ua}function wl(y,V){var xa=nk(V,!0);return xa?V.shiftKey&&!y.state.keySeq?fl(y,"Shift-"+xa,V,function(ua){return jm(y,ua,!0)})||fl(y,xa,V,function(ua){if("string"==typeof ua?/^go[A-Z]/.test(ua):ua.motion)return jm(y,ua)}):fl(y,xa,V,function(ua){return jm(y,ua)}):!1}function ak(y,V,xa){return fl(y,"'"+xa+"'",V,function(ua){return jm(y,ua,!0)})}
|
|||
|
function ok(y){if(!y.target||y.target==this.display.input.getField())if(this.curOp.focus=B(),!D(this,y)){Ed&&11>Bd&&27==y.keyCode&&(y.returnValue=!1);var V=y.keyCode;this.display.shift=16==V||y.shiftKey;var xa=wl(this,y);xe&&(ao=xa?V:null,!xa&&88==V&&!Ej&&(Tf?y.metaKey:y.ctrlKey)&&this.replaceSelection("",null,"cut"));Oc&&!Tf&&!xa&&46==V&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut");18!=V||/\bCodeMirror-crosshair\b/.test(this.display.lineDiv.className)||Mh(this)}}function Mh(y){function V(ua){18!=
|
|||
|
ua.keyCode&&ua.altKey||(Dg(xa,"CodeMirror-crosshair"),M(document,"keyup",V),M(document,"mouseover",V))}var xa=y.display.lineDiv;C(xa,"CodeMirror-crosshair");ug(document,"keyup",V);ug(document,"mouseover",V)}function wj(y){16==y.keyCode&&(this.doc.sel.shift=!1);D(this,y)}function pk(y){if(!(y.target&&y.target!=this.display.input.getField()||Hd(this.display,y)||D(this,y)||y.ctrlKey&&!y.altKey||Tf&&y.metaKey)){var V=y.keyCode,xa=y.charCode;if(xe&&V==ao)ao=null,ba(y);else if(!xe||y.which&&!(10>y.which)||
|
|||
|
!wl(this,y))if(V=String.fromCharCode(null==xa?V:xa),"\b"!=V&&!ak(this,y,V))this.display.input.onKeyPress(y)}}function wk(y,V){var xa=+new Date;if(Sm&&Sm.compare(xa,y,V))return ei=Sm=null,"triple";if(ei&&ei.compare(xa,y,V))return Sm=new yl(xa,y,V),ei=null,"double";ei=new yl(xa,y,V);Sm=null;return"single"}function zh(y){var V=this.display;if(!(D(this,y)||V.activeTouch&&V.input.supportsTouch()))if(V.input.ensurePolled(),V.shift=y.shiftKey,Hd(V,y))Gd||(V.scroller.draggable=!1,setTimeout(function(){return V.scroller.draggable=
|
|||
|
!0},100));else if(!Xi(this,y,"gutterClick",!0)){var xa=Lf(this,y),ua=ca(y),Fa=xa?wk(xa,ua):"single";window.focus();1==ua&&this.state.selectingText&&this.state.selectingText(y);if(!xa||!Zg(this,ua,xa,Fa,y))if(1==ua)xa?Ig(this,xa,Fa,y):(y.target||y.srcElement)==V.scroller&&ba(y);else if(2==ua)xa&&em(this.doc,xa),setTimeout(function(){return V.input.focus()},20);else if(3==ua)if(bh)this.display.input.onContextMenu(y);else Gj(this)}}function Zg(y,V,xa,ua,Fa){var $a="Click";"double"==ua?$a="Double"+$a:
|
|||
|
"triple"==ua&&($a="Triple"+$a);return fl(y,Pk((1==V?"Left":2==V?"Middle":"Right")+$a,Fa),Fa,function(qb){"string"==typeof qb&&(qb=xm[qb]);if(!qb)return!1;var ub=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),ub=qb(y,xa)!=aj}finally{y.state.suppressEdits=!1}return ub})}function Ig(y,V,xa,ua){Ed?setTimeout(K(Rl,y),0):y.curOp.focus=B();var Fa=y.getOption("configureMouse");Fa=Fa?Fa(y,xa,ua):{};null==Fa.unit&&(Fa.unit=(og?ua.shiftKey&&ua.metaKey:ua.altKey)?"rectangle":"single"==xa?"char":"double"==
|
|||
|
xa?"word":"line");if(null==Fa.extend||y.doc.extend)Fa.extend=y.doc.extend||ua.shiftKey;null==Fa.addNew&&(Fa.addNew=Tf?ua.metaKey:ua.ctrlKey);null==Fa.moveOnDrag&&(Fa.moveOnDrag=!(Tf?ua.altKey:ua.ctrlKey));var $a=y.doc.sel,qb;y.options.dragDrop&&dn&&!y.isReadOnly()&&"single"==xa&&-1<(qb=$a.contains(V))&&(0>sa((qb=$a.ranges[qb]).from(),V)||0<V.xRel)&&(0<sa(qb.to(),V)||0>V.xRel)?fk(y,ua,V,Fa):Wi(y,ua,V,Fa)}function fk(y,V,xa,ua){var Fa=y.display,$a=!1,qb=vg(y,function(Cc){Gd&&(Fa.scroller.draggable=
|
|||
|
!1);y.state.draggingText=!1;M(Fa.wrapper.ownerDocument,"mouseup",qb);M(Fa.wrapper.ownerDocument,"mousemove",ub);M(Fa.scroller,"dragstart",Xb);M(Fa.scroller,"drop",qb);$a||(ba(Cc),ua.addNew||em(y.doc,xa,null,null,ua.extend),Gd&&!We||Ed&&9==Bd?setTimeout(function(){Fa.wrapper.ownerDocument.body.focus({preventScroll:!0});Fa.input.focus()},20):Fa.input.focus())}),ub=function(Cc){$a=$a||10<=Math.abs(V.clientX-Cc.clientX)+Math.abs(V.clientY-Cc.clientY)},Xb=function(){return $a=!0};Gd&&(Fa.scroller.draggable=
|
|||
|
!0);y.state.draggingText=qb;qb.copy=!ua.moveOnDrag;Fa.scroller.dragDrop&&Fa.scroller.dragDrop();ug(Fa.wrapper.ownerDocument,"mouseup",qb);ug(Fa.wrapper.ownerDocument,"mousemove",ub);ug(Fa.scroller,"dragstart",Xb);ug(Fa.scroller,"drop",qb);Gj(y);setTimeout(function(){return Fa.input.focus()},20)}function Lh(y,V,xa){if("char"==xa)return new kg(V,V);if("word"==xa)return y.findWordAt(V);if("line"==xa)return new kg(Ca(V.line,0),jb(y.doc,Ca(V.line+1,0)));y=xa(y,V);return new kg(y.from,y.to)}function Wi(y,
|
|||
|
V,xa,ua){function Fa(yg){if(0!=sa(od,yg))if(od=yg,"rectangle"==ua.unit){var nh=[],ai=y.options.tabSize,Bi=h(Ea(Xb,xa.line).text,xa.ch,ai),Gh=h(Ea(Xb,yg.line).text,yg.ch,ai),ig=Math.min(Bi,Gh);Bi=Math.max(Bi,Gh);Gh=Math.min(xa.line,yg.line);for(var Rf=Math.min(y.lastLine(),Math.max(xa.line,yg.line));Gh<=Rf;Gh++){var Ch=Ea(Xb,Gh).text,ih=f(Ch,ig,ai);ig==Bi?nh.push(new kg(Ca(Gh,ih),Ca(Gh,ih))):Ch.length>ih&&nh.push(new kg(Ca(Gh,ih),Ca(Gh,f(Ch,Bi,ai))))}nh.length||nh.push(new kg(xa,xa));zg(Xb,Yh(y,Cc.ranges.slice(0,
|
|||
|
Fd).concat(nh),Fd),{origin:"*mouse",scroll:!1});y.scrollIntoView(yg)}else nh=Md,ig=Lh(y,yg,ua.unit),yg=nh.anchor,0<sa(ig.anchor,yg)?(ai=ig.head,yg=Ab(nh.from(),ig.anchor)):(ai=ig.anchor,yg=Sa(nh.to(),ig.head)),nh=Cc.ranges.slice(0),nh[Fd]=Cg(y,new kg(jb(Xb,yg),ai)),zg(Xb,Yh(y,nh,Fd),ji)}function $a(yg){var nh=++Cf,ai=Lf(y,yg,!0,"rectangle"==ua.unit);if(ai)if(0!=sa(ai,od)){y.curOp.focus=B();Fa(ai);var Bi=dk(ub,Xb);(ai.line>=Bi.to||ai.line<Bi.from)&&setTimeout(vg(y,function(){Cf==nh&&$a(yg)}),150)}else{var Gh=
|
|||
|
yg.clientY<Ce.top?-20:yg.clientY>Ce.bottom?20:0;Gh&&setTimeout(vg(y,function(){Cf==nh&&(ub.scroller.scrollTop+=Gh,$a(yg))}),50)}}function qb(yg){y.state.selectingText=!1;Cf=Infinity;yg&&(ba(yg),ub.input.focus());M(ub.wrapper.ownerDocument,"mousemove",Ng);M(ub.wrapper.ownerDocument,"mouseup",tj);Xb.history.lastSelOrigin=null}var ub=y.display,Xb=y.doc;ba(V);var Cc=Xb.sel,Dc=Cc.ranges;if(ua.addNew&&!ua.extend){var Fd=Xb.sel.contains(xa);var Md=-1<Fd?Dc[Fd]:new kg(xa,xa)}else Md=Xb.sel.primary(),Fd=Xb.sel.primIndex;
|
|||
|
"rectangle"==ua.unit?(ua.addNew||(Md=new kg(xa,xa)),xa=Lf(y,V,!0,!0),Fd=-1):(V=Lh(y,xa,ua.unit),Md=ua.extend?Km(Md,V.anchor,V.head,ua.extend):V);ua.addNew?-1==Fd?(Fd=Dc.length,zg(Xb,Yh(y,Dc.concat([Md]),Fd),{scroll:!1,origin:"*mouse"})):1<Dc.length&&Dc[Fd].empty()&&"char"==ua.unit&&!ua.extend?(zg(Xb,Yh(y,Dc.slice(0,Fd).concat(Dc.slice(Fd+1)),0),{scroll:!1,origin:"*mouse"}),Cc=Xb.sel):Yj(Xb,Fd,Md,ji):(Fd=0,zg(Xb,new Kf([Md],0),ji),Cc=Xb.sel);var od=xa,Ce=ub.wrapper.getBoundingClientRect(),Cf=0,Ng=
|
|||
|
vg(y,function(yg){0!==yg.buttons&&ca(yg)?$a(yg):qb(yg)}),tj=vg(y,qb);y.state.selectingText=tj;ug(ub.wrapper.ownerDocument,"mousemove",Ng);ug(ub.wrapper.ownerDocument,"mouseup",tj)}function Cg(y,V){var xa=V.anchor,ua=V.head,Fa=Ea(y.doc,xa.line);if(0==sa(xa,ua)&&xa.sticky==ua.sticky)return V;Fa=aa(Fa);if(!Fa)return V;var $a=E(Fa,xa.ch,xa.sticky),qb=Fa[$a];if(qb.from!=xa.ch&&qb.to!=xa.ch)return V;var ub=$a+(qb.from==xa.ch==(1!=qb.level)?0:1);if(0==ub||ub==Fa.length)return V;ua.line!=xa.line?y=0<(ua.line-
|
|||
|
xa.line)*("ltr"==y.doc.direction?1:-1):(y=E(Fa,ua.ch,ua.sticky),$a=y-$a||(ua.ch-xa.ch)*(1==qb.level?-1:1),y=y==ub-1||y==ub?0>$a:0<$a);Fa=Fa[ub+(y?-1:0)];Fa=(ub=y==(1==Fa.level))?Fa.from:Fa.to;ub=ub?"after":"before";return xa.ch==Fa&&xa.sticky==ub?V:new kg(new Ca(xa.line,Fa,ub),ua)}function Xi(y,V,xa,ua){if(V.touches){var Fa=V.touches[0].clientX;var $a=V.touches[0].clientY}else try{Fa=V.clientX,$a=V.clientY}catch(Xb){return!1}if(Fa>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;
|
|||
|
ua&&ba(V);ua=y.display;var qb=ua.lineDiv.getBoundingClientRect();if($a>qb.bottom||!P(y,xa))return ja(V);$a-=qb.top-ua.viewOffset;for(qb=0;qb<y.display.gutterSpecs.length;++qb){var ub=ua.gutters.childNodes[qb];if(ub&&ub.getBoundingClientRect().right>=Fa)return Fa=db(y.doc,$a),S(y,xa,y,Fa,y.display.gutterSpecs[qb].className,V),ja(V)}}function Wf(y,V){var xa;(xa=Hd(y.display,V))||(xa=P(y,"gutterContextMenu")?Xi(y,V,"gutterContextMenu",!1):!1);if(!xa&&!D(y,V,"contextmenu")&&!bh)y.display.input.onContextMenu(V)}
|
|||
|
function Mg(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-");kb(y)}function Bj(y,V,xa){!V!=!(xa&&xa!=mg)&&(xa=y.display.dragFunctions,V=V?ug:M,V(y.display.scroller,"dragstart",xa.start),V(y.display.scroller,"dragenter",xa.enter),V(y.display.scroller,"dragover",xa.over),V(y.display.scroller,"dragleave",xa.leave),V(y.display.scroller,"drop",xa.drop))}function mi(y){y.options.lineWrapping?(C(y.display.wrapper,"CodeMirror-wrap"),
|
|||
|
y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(Dg(y.display.wrapper,"CodeMirror-wrap"),cc(y));lg(y);Xf(y);kb(y);setTimeout(function(){return pl(y)},100)}function ph(y,V){var xa=this;if(!(this instanceof ph))return new ph(y,V);this.options=V=V?r(V):{};r(yi,V,!1);var ua=V.value;"string"==typeof ua?ua=new Jf(ua,V.mode,null,V.lineSeparator,V.direction):V.mode&&(ua.modeOption=V.mode);this.doc=ua;var Fa=new ph.inputStyles[V.inputStyle](this);y=this.display=new gn(y,ua,Fa,V);y.wrapper.CodeMirror=
|
|||
|
this;Mg(this);V.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap");gk(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 Qf,keySeq:null,specialChars:null};V.autofocus&&!cj&&y.input.focus();Ed&&11>Bd&&setTimeout(function(){return xa.display.input.reset(!0)},20);xg(this);eg||(hn(),eg=!0);hk(this);this.curOp.forceUpdate=!0;Qj(this,ua);V.autofocus&&
|
|||
|
!cj||this.hasFocus()?setTimeout(function(){xa.hasFocus()&&!xa.state.focused&&jg(xa)},20):Xg(this);for(var $a in tn)if(tn.hasOwnProperty($a))tn[$a](this,V[$a],mg);bl(this);V.finishInit&&V.finishInit(this);for(ua=0;ua<Wl.length;++ua)Wl[ua](this);xk(this);Gd&&V.lineWrapping&&"optimizelegibility"==getComputedStyle(y.lineDiv).textRendering&&(y.lineDiv.style.textRendering="auto")}function xg(y){function V(){ua.activeTouch&&(Fa=setTimeout(function(){return ua.activeTouch=null},1E3),$a=ua.activeTouch,$a.end=
|
|||
|
+new Date)}function xa(ub,Xb){if(null==Xb.left)return!0;var Cc=Xb.left-ub.left;ub=Xb.top-ub.top;return 400<Cc*Cc+ub*ub}var ua=y.display;ug(ua.scroller,"mousedown",vg(y,zh));Ed&&11>Bd?ug(ua.scroller,"dblclick",vg(y,function(ub){if(!D(y,ub)){var Xb=Lf(y,ub);!Xb||Xi(y,ub,"gutterClick",!0)||Hd(y.display,ub)||(ba(ub),ub=y.findWordAt(Xb),em(y.doc,ub.anchor,ub.head))}})):ug(ua.scroller,"dblclick",function(ub){return D(y,ub)||ba(ub)});ug(ua.scroller,"contextmenu",function(ub){return Wf(y,ub)});ug(ua.input.getField(),
|
|||
|
"contextmenu",function(ub){ua.scroller.contains(ub.target)||Wf(y,ub)});var Fa,$a={end:0};ug(ua.scroller,"touchstart",function(ub){var Xb;if(Xb=!D(y,ub))1!=ub.touches.length?Xb=!1:(Xb=ub.touches[0],Xb=1>=Xb.radiusX&&1>=Xb.radiusY),Xb=!Xb;Xb&&!Xi(y,ub,"gutterClick",!0)&&(ua.input.ensurePolled(),clearTimeout(Fa),Xb=+new Date,ua.activeTouch={start:Xb,moved:!1,prev:300>=Xb-$a.end?$a:null},1==ub.touches.length&&(ua.activeTouch.left=ub.touches[0].pageX,ua.activeTouch.top=ub.touches[0].pageY))});ug(ua.scroller,
|
|||
|
"touchmove",function(){ua.activeTouch&&(ua.activeTouch.moved=!0)});ug(ua.scroller,"touchend",function(ub){var Xb=ua.activeTouch;if(Xb&&!Hd(ua,ub)&&null!=Xb.left&&!Xb.moved&&300>new Date-Xb.start){var Cc=y.coordsChar(ua.activeTouch,"page");Xb=!Xb.prev||xa(Xb,Xb.prev)?new kg(Cc,Cc):!Xb.prev.prev||xa(Xb,Xb.prev.prev)?y.findWordAt(Cc):new kg(Ca(Cc.line,0),jb(y.doc,Ca(Cc.line+1,0)));y.setSelection(Xb.anchor,Xb.head);y.focus();ba(ub)}V()});ug(ua.scroller,"touchcancel",V);ug(ua.scroller,"scroll",function(){ua.scroller.clientHeight&&
|
|||
|
(ui(y,ua.scroller.scrollTop),Nj(y,ua.scroller.scrollLeft,!0),S(y,"scroll",y))});ug(ua.scroller,"mousewheel",function(ub){return rj(y,ub)});ug(ua.scroller,"DOMMouseScroll",function(ub){return rj(y,ub)});ug(ua.wrapper,"scroll",function(){return ua.wrapper.scrollTop=ua.wrapper.scrollLeft=0});ua.dragFunctions={enter:function(ub){D(y,ub)||N(ub)},over:function(ub){if(!D(y,ub)){var Xb=Lf(y,ub);if(Xb){var Cc=document.createDocumentFragment();Rh(y,Xb,Cc);y.display.dragCursor||(y.display.dragCursor=t("div",
|
|||
|
null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv));A(y.display.dragCursor,Cc)}N(ub)}},start:function(ub){if(Ed&&(!y.state.draggingText||100>+new Date-Hl))N(ub);else if(!D(y,ub)&&!Hd(y.display,ub)&&(ub.dataTransfer.setData("Text",y.getSelection()),ub.dataTransfer.effectAllowed="copyMove",ub.dataTransfer.setDragImage&&!We)){var Xb=t("img",null,null,"position: fixed; left: 0; top: 0;");Xb.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw\x3d\x3d";
|
|||
|
xe&&(Xb.width=Xb.height=1,y.display.wrapper.appendChild(Xb),Xb._top=Xb.offsetTop);ub.dataTransfer.setDragImage(Xb,0,0);xe&&Xb.parentNode.removeChild(Xb)}},drop:vg(y,Ck),leave:function(ub){D(y,ub)||mk(y)}};var qb=ua.input.getField();ug(qb,"keyup",function(ub){return wj.call(y,ub)});ug(qb,"keydown",vg(y,ok));ug(qb,"keypress",vg(y,pk));ug(qb,"focus",function(ub){return jg(y,ub)});ug(qb,"blur",function(ub){return Xg(y,ub)})}function lh(y,V,xa,ua){var Fa=y.doc,$a;null==xa&&(xa="add");"smart"==xa&&(Fa.mode.indent?
|
|||
|
$a=Pa(y,V).state:xa="prev");var qb=y.options.tabSize,ub=Ea(Fa,V),Xb=h(ub.text,null,qb);ub.stateAfter&&(ub.stateAfter=null);var Cc=ub.text.match(/^\s*/)[0];if(!ua&&!/\S/.test(ub.text)){var Dc=0;xa="not"}else if("smart"==xa&&(Dc=Fa.mode.indent($a,ub.text.slice(Cc.length),ub.text),Dc==aj||150<Dc)){if(!ua)return;xa="prev"}"prev"==xa?Dc=V>Fa.first?h(Ea(Fa,V-1).text,null,qb):0:"add"==xa?Dc=Xb+y.options.indentUnit:"subtract"==xa?Dc=Xb-y.options.indentUnit:"number"==typeof xa&&(Dc=Xb+xa);Dc=Math.max(0,Dc);
|
|||
|
xa="";ua=0;if(y.options.indentWithTabs)for(y=Math.floor(Dc/qb);y;--y)ua+=qb,xa+="\t";ua<Dc&&(xa+=v(Dc-ua));if(xa!=Cc)return el(Fa,xa,Ca(V,0),Ca(V,Cc.length),"+input"),ub.stateAfter=null,!0;for(qb=0;qb<Fa.sel.ranges.length;qb++)if(ub=Fa.sel.ranges[qb],ub.head.line==V&&ub.head.ch<Cc.length){V=Ca(V,Cc.length);Yj(Fa,qb,new kg(V,V));break}}function Kj(y,V,xa,ua,Fa){var $a=y.doc;y.display.shift=!1;ua||(ua=$a.sel);var qb=+new Date-200,ub="paste"==Fa||y.state.pasteIncoming>qb,Xb=Zk(V),Cc=null;if(ub&&1<ua.ranges.length)if(Fj&&
|
|||
|
Fj.text.join("\n")==V){if(0==ua.ranges.length%Fj.text.length){Cc=[];for(var Dc=0;Dc<Fj.text.length;Dc++)Cc.push($a.splitLines(Fj.text[Dc]))}}else Xb.length==ua.ranges.length&&y.options.pasteLinesPerSelection&&(Cc=L(Xb,function(Cf){return[Cf]}));Dc=y.curOp.updateInput;for(var Fd=ua.ranges.length-1;0<=Fd;Fd--){var Md=ua.ranges[Fd],od=Md.from(),Ce=Md.to();Md.empty()&&(xa&&0<xa?od=Ca(od.line,od.ch-xa):y.state.overwrite&&!ub?Ce=Ca(Ce.line,Math.min(Ea($a,Ce.line).text.length,Ce.ch+x(Xb).length)):ub&&Fj&&
|
|||
|
Fj.lineWise&&Fj.text.join("\n")==Xb.join("\n")&&(od=Ce=Ca(od.line,0)));Md={from:od,to:Ce,text:Cc?Cc[Fd%Cc.length]:Xb,origin:Fa||(ub?"paste":y.state.cutIncoming>qb?"cut":"+input")};rg(y.doc,Md);Ie(y,"inputRead",y,Md)}V&&!ub&&$i(y,V);wh(y);2>y.curOp.updateInput&&(y.curOp.updateInput=Dc);y.curOp.typing=!0;y.state.pasteIncoming=y.state.cutIncoming=-1}function Ii(y,V){var xa=y.clipboardData&&y.clipboardData.getData("Text");if(xa)return y.preventDefault(),V.isReadOnly()||V.options.disableInput||Ye(V,function(){return Kj(V,
|
|||
|
xa,0,null,"paste")}),!0}function $i(y,V){if(y.options.electricChars&&y.options.smartIndent)for(var xa=y.doc.sel,ua=xa.ranges.length-1;0<=ua;ua--){var Fa=xa.ranges[ua];if(!(100<Fa.head.ch||ua&&xa.ranges[ua-1].head.line==Fa.head.line)){var $a=y.getModeAt(Fa.head),qb=!1;if($a.electricChars)for(var ub=0;ub<$a.electricChars.length;ub++){if(-1<V.indexOf($a.electricChars.charAt(ub))){qb=lh(y,Fa.head.line,"smart");break}}else $a.electricInput&&$a.electricInput.test(Ea(y.doc,Fa.head.line).text.slice(0,Fa.head.ch))&&
|
|||
|
(qb=lh(y,Fa.head.line,"smart"));qb&&Ie(y,"electricInput",y,Fa.head.line)}}}function Rb(y){for(var V=[],xa=[],ua=0;ua<y.doc.sel.ranges.length;ua++){var Fa=y.doc.sel.ranges[ua].head.line;Fa={anchor:Ca(Fa,0),head:Ca(Fa+1,0)};xa.push(Fa);V.push(y.getRange(Fa.anchor,Fa.head))}return{text:V,ranges:xa}}function ec(y,V,xa,ua){y.setAttribute("autocorrect",xa?"":"off");y.setAttribute("autocapitalize",ua?"":"off");y.setAttribute("spellcheck",!!V)}function dc(){var y=t("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),
|
|||
|
V=t("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");Gd?y.style.width="1000px":y.setAttribute("wrap","off");tg&&(y.style.border="1px solid black");ec(y);return V}function ka(y,V,xa,ua,Fa){function $a(Cf){if("codepoint"==ua){var Ng=Xb.text.charCodeAt(V.ch+(0<ua?0:-1));Ng=isNaN(Ng)?null:new Ca(V.line,Math.max(0,Math.min(Xb.text.length,V.ch+xa*(55296<=Ng&&56320>Ng?2:1))),-xa)}else Ng=Fa?zj(y.cm,Xb,V,xa):Ul(Xb,V,xa);if(null==Ng){if(Cf=!Cf)Cf=V.line+Cc,Cf<y.first||Cf>=y.first+
|
|||
|
y.size?Cf=!1:(V=new Ca(Cf,V.ch,V.sticky),Cf=Xb=Ea(y,Cf));if(Cf)V=Jj(Fa,y.cm,Xb,V.line,Cc);else return!1}else V=Ng;return!0}var qb=V,ub=xa,Xb=Ea(y,V.line),Cc=Fa&&"rtl"==y.direction?-xa:xa;if("char"==ua||"codepoint"==ua)$a();else if("column"==ua)$a(!0);else if("word"==ua||"group"==ua)for(var Dc=null,Fd="group"==ua,Md=y.cm&&y.cm.getHelper(V,"wordChars"),od=!0;!(0>xa)||$a(!od);od=!1){var Ce=Xb.text.charAt(V.ch)||"\n";Ce=J(Ce,Md)?"w":Fd&&"\n"==Ce?"n":!Fd||/\s/.test(Ce)?null:"p";!Fd||od||Ce||(Ce="s");if(Dc&&
|
|||
|
Dc!=Ce){0>xa&&(xa=1,$a(),V.sticky="after");break}Ce&&(Dc=Ce);if(0<xa&&!$a(!od))break}ub=jj(y,V,qb,ub,!0);Aa(qb,ub)&&(ub.hitSide=!0);return ub}function Eb(y,V,xa,ua){var Fa=y.doc,$a=V.left;if("page"==ua){var qb=Math.max(Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight)-.5*Rc(y.display),3);qb=(0<xa?V.bottom:V.top)+xa*qb}else"line"==ua&&(qb=0<xa?V.bottom+3:V.top-3);for(;;){V=zb(y,$a,qb);if(!V.outside)break;if(0>xa?0>=qb:qb>=Fa.height){V.hitSide=!0;break}qb+=
|
|||
|
5*xa}return V}function Ub(y,V){var xa=Ag(y,V.line);if(!xa||xa.hidden)return null;var ua=Ea(y.doc,V.line);xa=af(xa,ua,V.line);y=aa(ua,y.doc.direction);ua="left";y&&(ua=E(y,V.ch)%2?"right":"left");V=cb(xa.map,V.ch,ua);V.offset="right"==V.collapse?V.end:V.start;return V}function vb(y){for(;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function yb(y,V){V&&(y.bad=!0);return y}function Qb(y,V,xa,ua,Fa){function $a(od){return function(Ce){return Ce.id==od}}function qb(){Dc&&
|
|||
|
(Cc+=Fd,Md&&(Cc+=Fd),Dc=Md=!1)}function ub(od){od&&(qb(),Cc+=od)}function Xb(od){if(1==od.nodeType){var Ce=od.getAttribute("cm-text");if(Ce)ub(Ce);else{Ce=od.getAttribute("cm-marker");var Cf;if(Ce)od=y.findMarks(Ca(ua,0),Ca(Fa+1,0),$a(+Ce)),od.length&&(Cf=od[0].find(0))&&ub(Oa(y.doc,Cf.from,Cf.to).join(Fd));else if("false"!=od.getAttribute("contenteditable")&&(Cf=/^(pre|div|p|li|table|br)$/i.test(od.nodeName),/^br$/i.test(od.nodeName)||0!=od.textContent.length)){Cf&&qb();for(Ce=0;Ce<od.childNodes.length;Ce++)Xb(od.childNodes[Ce]);
|
|||
|
/^(pre|p)$/i.test(od.nodeName)&&(Md=!0);Cf&&(Dc=!0)}}}else 3==od.nodeType&&ub(od.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var Cc="",Dc=!1,Fd=y.doc.lineSeparator(),Md=!1;;){Xb(V);if(V==xa)break;V=V.nextSibling;Md=!1}return Cc}function sb(y,V,xa){if(V==y.display.lineDiv){var ua=y.display.lineDiv.childNodes[xa];if(!ua)return yb(y.clipPos(Ca(y.display.viewTo-1)),!0);V=null;xa=0}else for(ua=V;;ua=ua.parentNode){if(!ua||ua==y.display.lineDiv)return null;if(ua.parentNode&&ua.parentNode==
|
|||
|
y.display.lineDiv)break}for(var Fa=0;Fa<y.display.view.length;Fa++){var $a=y.display.view[Fa];if($a.node==ua)return Mb($a,V,xa)}}function Mb(y,V,xa){function ua(Dc,Fd,Md){for(var od=-1;od<(Cc?Cc.length:0);od++)for(var Ce=0>od?Xb.map:Cc[od],Cf=0;Cf<Ce.length;Cf+=3){var Ng=Ce[Cf+2];if(Ng==Dc||Ng==Fd){Fd=eb(0>od?y.line:y.rest[od]);od=Ce[Cf]+Md;if(0>Md||Ng!=Dc)od=Ce[Cf+(Md?1:0)];return Ca(Fd,od)}}}var Fa=y.text.firstChild,$a=!1;if(!V||!w(Fa,V))return yb(Ca(eb(y.line),0),!0);if(V==Fa&&($a=!0,V=Fa.childNodes[xa],
|
|||
|
xa=0,!V))return xa=y.rest?x(y.rest):y.line,yb(Ca(eb(xa),xa.text.length),$a);var qb=3==V.nodeType?V:null,ub=V;qb||1!=V.childNodes.length||3!=V.firstChild.nodeType||(qb=V.firstChild,xa&&(xa=qb.nodeValue.length));for(;ub.parentNode!=Fa;)ub=ub.parentNode;var Xb=y.measure,Cc=Xb.maps;if(V=ua(qb,ub,xa))return yb(V,$a);Fa=ub.nextSibling;for(qb=qb?qb.nodeValue.length-xa:0;Fa;Fa=Fa.nextSibling){if(V=ua(Fa,Fa.firstChild,0))return yb(Ca(V.line,V.ch-qb),$a);qb+=Fa.textContent.length}for(ub=ub.previousSibling;ub;ub=
|
|||
|
ub.previousSibling){if(V=ua(ub,ub.firstChild,-1))return yb(Ca(V.line,V.ch+xa),$a);xa+=ub.textContent.length}}var ac=navigator.userAgent,Bc=navigator.platform,Oc=/gecko\/\d/i.test(ac),Sc=/MSIE \d/.test(ac),xd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ac),Rd=/Edge\/(\d+)/.exec(ac),Ed=Sc||xd||Rd,Bd=Ed&&(Sc?document.documentMode||6:+(Rd||xd)[1]),Gd=!Rd&&/WebKit\//.test(ac),ze=Gd&&/Qt\/\d+\.\d+/.test(ac),Zf=!Rd&&/Chrome\//.test(ac),xe=/Opera\//.test(ac),We=/Apple Computer/.test(navigator.vendor),Me=
|
|||
|
/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ac),Oe=/PhantomJS/.test(ac),tg=!Rd&&/AppleWebKit/.test(ac)&&/Mobile\/\w+/.test(ac),Vf=/Android/.test(ac),cj=tg||Vf||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ac),Tf=tg||/Mac/.test(Bc),og=/\bCrOS\b/.test(ac),mh=/win/i.test(Bc),Rg=xe&&ac.match(/Version\/(\d*\.\d*)/);Rg&&=Number(Rg[1]);Rg&&15<=Rg&&(xe=!1,Gd=!0);var Tg=Tf&&(ze||xe&&(null==Rg||12.11>Rg)),bh=Oc||Ed&&9<=Bd,Dg=function(y,V){var xa=y.className;if(V=q(V).exec(xa)){var ua=xa.slice(V.index+V[0].length);
|
|||
|
y.className=xa.slice(0,V.index)+(ua?V[1]+ua:"")}};var pg=document.createRange?function(y,V,xa,ua){var Fa=document.createRange();Fa.setEnd(ua||y,xa);Fa.setStart(y,V);return Fa}:function(y,V,xa){var ua=document.body.createTextRange();try{ua.moveToElementText(y.parentNode)}catch(Fa){return ua}ua.collapse(!0);ua.moveEnd("character",xa);ua.moveStart("character",V);return ua};var ch=function(y){y.select()};tg?ch=function(y){y.selectionStart=0;y.selectionEnd=y.value.length}:Ed&&(ch=function(y){try{y.select()}catch(V){}});
|
|||
|
var Qf=function(){this.f=this.id=null;this.time=0;this.handler=K(this.onTimeout,this)};Qf.prototype.onTimeout=function(y){y.id=0;y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)};Qf.prototype.set=function(y,V){this.f=V;V=+new Date+y;if(!this.id||V<this.time)clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=V};var aj={toString:function(){return"CodeMirror.Pass"}},th={scroll:!1},ji={origin:"*mouse"},ck={origin:"+move"},zi=[""],tk=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,
|
|||
|
Ql=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,
|
|||
|
Yi=null,om=function(){function y(qb,ub,Xb){this.level=qb;this.from=ub;this.to=Xb}var V=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,xa=/[stwN]/,ua=/[LRr]/,Fa=/[Lb1n]/,$a=/[1n]/;return function(qb,ub){var Xb="ltr"==ub?"L":"R";if(0==qb.length||"ltr"==ub&&!V.test(qb))return!1;for(var Cc=qb.length,Dc=[],Fd=0;Fd<Cc;++Fd){var Md=Dc,od=Md.push;var Ce=qb.charCodeAt(Fd);Ce=247>=Ce?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(Ce):
|
|||
|
1424<=Ce&&1524>=Ce?"R":1536<=Ce&&1785>=Ce?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(Ce-1536):1774<=Ce&&2220>=Ce?"r":8192<=Ce&&8203>=Ce?"w":8204==Ce?"b":"L";od.call(Md,Ce)}Fd=0;for(Md=Xb;Fd<Cc;++Fd)od=Dc[Fd],"m"==od?Dc[Fd]=Md:Md=od;Fd=0;for(Md=Xb;Fd<Cc;++Fd)od=Dc[Fd],"1"==od&&"r"==Md?
|
|||
|
Dc[Fd]="n":ua.test(od)&&(Md=od,"r"==od&&(Dc[Fd]="R"));Fd=1;for(Md=Dc[0];Fd<Cc-1;++Fd)od=Dc[Fd],"+"==od&&"1"==Md&&"1"==Dc[Fd+1]?Dc[Fd]="1":","!=od||Md!=Dc[Fd+1]||"1"!=Md&&"n"!=Md||(Dc[Fd]=Md),Md=od;for(Fd=0;Fd<Cc;++Fd)if(Md=Dc[Fd],","==Md)Dc[Fd]="N";else if("%"==Md){for(Md=Fd+1;Md<Cc&&"%"==Dc[Md];++Md);for(od=Fd&&"!"==Dc[Fd-1]||Md<Cc&&"1"==Dc[Md]?"1":"N";Fd<Md;++Fd)Dc[Fd]=od;Fd=Md-1}Fd=0;for(Md=Xb;Fd<Cc;++Fd)od=Dc[Fd],"L"==Md&&"1"==od?Dc[Fd]="L":ua.test(od)&&(Md=od);for(Md=0;Md<Cc;++Md)if(xa.test(Dc[Md])){for(Fd=
|
|||
|
Md+1;Fd<Cc&&xa.test(Dc[Fd]);++Fd);od="L"==(Md?Dc[Md-1]:Xb);for(od=od==("L"==(Fd<Cc?Dc[Fd]:Xb))?od?"L":"R":Xb;Md<Fd;++Md)Dc[Md]=od;Md=Fd-1}Xb=[];var Cf;for(Fd=0;Fd<Cc;)if(Fa.test(Dc[Fd])){Md=Fd;for(++Fd;Fd<Cc&&Fa.test(Dc[Fd]);++Fd);Xb.push(new y(0,Md,Fd))}else{var Ng=Fd;Md=Xb.length;od="rtl"==ub?1:0;for(++Fd;Fd<Cc&&"L"!=Dc[Fd];++Fd);for(Ce=Ng;Ce<Fd;)if($a.test(Dc[Ce])){Ng<Ce&&(Xb.splice(Md,0,new y(1,Ng,Ce)),Md+=od);Ng=Ce;for(++Ce;Ce<Fd&&$a.test(Dc[Ce]);++Ce);Xb.splice(Md,0,new y(2,Ng,Ce));Md+=od;Ng=
|
|||
|
Ce}else++Ce;Ng<Fd&&Xb.splice(Md,0,new y(1,Ng,Fd))}"ltr"==ub&&(1==Xb[0].level&&(Cf=qb.match(/^\s+/))&&(Xb[0].from=Cf[0].length,Xb.unshift(new y(0,0,Cf[0].length))),1==x(Xb).level&&(Cf=qb.match(/\s+$/))&&(x(Xb).to-=Cf[0].length,Xb.push(new y(0,Cc-Cf[0].length,Cc))));return"rtl"==ub?Xb.reverse():Xb}}(),Rm=[],ug=function(y,V,xa){y.addEventListener?y.addEventListener(V,xa,!1):y.attachEvent?y.attachEvent("on"+V,xa):(y=y._handlers||(y._handlers={}),y[V]=(y[V]||Rm).concat(xa))},dn=function(){if(Ed&&9>Bd)return!1;
|
|||
|
var y=t("div");return"draggable"in y||"dragDrop"in y}(),cn,am,Zk=3!="\n\nb".split(/\n/).length?function(y){for(var V=0,xa=[],ua=y.length;V<=ua;){var Fa=y.indexOf("\n",V);-1==Fa&&(Fa=y.length);var $a=y.slice(V,"\r"==y.charAt(Fa-1)?Fa-1:Fa),qb=$a.indexOf("\r");-1!=qb?(xa.push($a.slice(0,qb)),V+=qb+1):(xa.push($a),V=Fa+1)}return xa}:function(y){return y.split(/\r\n?|\n/)},Wj=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(V){return!1}}:function(y){try{var V=y.ownerDocument.selection.createRange()}catch(xa){}return V&&
|
|||
|
V.parentElement()==y?0!=V.compareEndPoints("StartToEnd",V):!1},Ej=function(){var y=t("div");if("oncopy"in y)return!0;y.setAttribute("oncopy","return;");return"function"==typeof y.oncopy}(),Jh=null,oi={},pm={},rm={},Ri=function(y,V,xa){this.pos=this.start=0;this.string=y;this.tabSize=V||8;this.lineStart=this.lastColumnPos=this.lastColumnValue=0;this.lineOracle=xa};Ri.prototype.eol=function(){return this.pos>=this.string.length};Ri.prototype.sol=function(){return this.pos==this.lineStart};Ri.prototype.peek=
|
|||
|
function(){return this.string.charAt(this.pos)||void 0};Ri.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)};Ri.prototype.eat=function(y){var V=this.string.charAt(this.pos);if("string"==typeof y?V==y:V&&(y.test?y.test(V):y(V)))return++this.pos,V};Ri.prototype.eatWhile=function(y){for(var V=this.pos;this.eat(y););return this.pos>V};Ri.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>
|
|||
|
y};Ri.prototype.skipToEnd=function(){this.pos=this.string.length};Ri.prototype.skipTo=function(y){y=this.string.indexOf(y,this.pos);if(-1<y)return this.pos=y,!0};Ri.prototype.backUp=function(y){this.pos-=y};Ri.prototype.column=function(){this.lastColumnPos<this.start&&(this.lastColumnValue=h(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start);return this.lastColumnValue-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)};Ri.prototype.indentation=
|
|||
|
function(){return h(this.string,null,this.tabSize)-(this.lineStart?h(this.string,this.lineStart,this.tabSize):0)};Ri.prototype.match=function(y,V,xa){if("string"==typeof y){var ua=function($a){return xa?$a.toLowerCase():$a},Fa=this.string.substr(this.pos,y.length);if(ua(Fa)==ua(y))return!1!==V&&(this.pos+=y.length),!0}else{if((y=this.string.slice(this.pos).match(y))&&0<y.index)return null;y&&!1!==V&&(this.pos+=y[0].length);return y}};Ri.prototype.current=function(){return this.string.slice(this.start,
|
|||
|
this.pos)};Ri.prototype.hideFirstChars=function(y,V){this.lineStart+=y;try{return V()}finally{this.lineStart-=y}};Ri.prototype.lookAhead=function(y){var V=this.lineOracle;return V&&V.lookAhead(y)};Ri.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};var $k=function(y,V){this.state=y;this.lookAhead=V},re=function(y,V,xa,ua){this.state=V;this.doc=y;this.line=xa;this.maxLookAhead=ua||0;this.baseTokens=null;this.baseTokenPos=1};re.prototype.lookAhead=function(y){var V=
|
|||
|
this.doc.getLine(this.line+y);null!=V&&y>this.maxLookAhead&&(this.maxLookAhead=y);return V};re.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var V=this.baseTokens[this.baseTokenPos+1];return{type:V&&V.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}};re.prototype.nextLine=function(){this.line++;0<this.maxLookAhead&&this.maxLookAhead--};re.fromSaved=function(y,V,xa){return V instanceof $k?new re(y,
|
|||
|
ya(y.mode,V.state),xa,V.lookAhead):new re(y,ya(y.mode,V),xa)};re.prototype.save=function(y){y=!1!==y?ya(this.doc.mode,this.state):this.state;return 0<this.maxLookAhead?new $k(y,this.maxLookAhead):y};var Mf=function(y,V,xa){this.start=y.start;this.end=y.pos;this.string=y.current();this.type=V||null;this.state=xa},Le=!1,ff=!1,Ei=function(y,V,xa){this.text=y;wd(this,V);this.height=xa?xa(this):1};Ei.prototype.lineNo=function(){return eb(this)};da(Ei);var dg={},fj={},Fh=null,Gl=null,$d={left:0,right:0,
|
|||
|
top:0,bottom:0},Ke,Uf=function(y,V,xa){this.cm=xa;var ua=this.vert=t("div",[t("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Fa=this.horiz=t("div",[t("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ua.tabIndex=Fa.tabIndex=-1;y(ua);y(Fa);ug(ua,"scroll",function(){ua.clientHeight&&V(ua.scrollTop,"vertical")});ug(Fa,"scroll",function(){Fa.clientWidth&&V(Fa.scrollLeft,"horizontal")});this.checkedZeroWidth=!1;Ed&&8>Bd&&(this.horiz.style.minHeight=this.vert.style.minWidth=
|
|||
|
"18px")};Uf.prototype.update=function(y){var V=y.scrollWidth>y.clientWidth+1,xa=y.scrollHeight>y.clientHeight+1,ua=y.nativeBarWidth;xa?(this.vert.style.display="block",this.vert.style.bottom=V?ua+"px":"0",this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+(y.viewHeight-(V?ua:0)))+"px"):(this.vert.style.display="",this.vert.firstChild.style.height="0");V?(this.horiz.style.display="block",this.horiz.style.right=xa?ua+"px":"0",this.horiz.style.left=y.barLeft+"px",this.horiz.firstChild.style.width=
|
|||
|
Math.max(0,y.scrollWidth-y.clientWidth+(y.viewWidth-y.barLeft-(xa?ua:0)))+"px"):(this.horiz.style.display="",this.horiz.firstChild.style.width="0");!this.checkedZeroWidth&&0<y.clientHeight&&(0==ua&&this.zeroWidthHack(),this.checkedZeroWidth=!0);return{right:xa?ua:0,bottom:V?ua:0}};Uf.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y);this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")};Uf.prototype.setScrollTop=function(y){this.vert.scrollTop!=
|
|||
|
y&&(this.vert.scrollTop=y);this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")};Uf.prototype.zeroWidthHack=function(){this.horiz.style.height=this.vert.style.width=Tf&&!Me?"12px":"18px";this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new Qf;this.disableVert=new Qf};Uf.prototype.enableZeroWidthBar=function(y,V,xa){function ua(){var Fa=y.getBoundingClientRect();("vert"==xa?document.elementFromPoint(Fa.right-1,(Fa.top+Fa.bottom)/2):document.elementFromPoint((Fa.right+
|
|||
|
Fa.left)/2,Fa.bottom-1))!=y?y.style.pointerEvents="none":V.set(1E3,ua)}y.style.pointerEvents="auto";V.set(1E3,ua)};Uf.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz);y.removeChild(this.vert)};var Pd=function(){};Pd.prototype.update=function(){return{bottom:0,right:0}};Pd.prototype.setScrollLeft=function(){};Pd.prototype.setScrollTop=function(){};Pd.prototype.clear=function(){};var Ol={"native":Uf,"null":Pd},pj=0,Qi=function(y,V,xa){var ua=y.display;this.viewport=V;
|
|||
|
this.visible=dk(ua,y.doc,V);this.editorIsHidden=!ua.wrapper.offsetWidth;this.wrapperHeight=ua.wrapper.clientHeight;this.wrapperWidth=ua.wrapper.clientWidth;this.oldDisplayWidth=Je(y);this.force=xa;this.dims=ye(y);this.events=[]};Qi.prototype.signal=function(y,V){P(y,V)&&this.events.push(arguments)};Qi.prototype.finish=function(){for(var y=0;y<this.events.length;y++)S.apply(null,this.events[y])};var Ai=0,Ge=null;Ed?Ge=-.53:Oc?Ge=15:Zf?Ge=-.7:We&&(Ge=-1/3);var Kf=function(y,V){this.ranges=y;this.primIndex=
|
|||
|
V};Kf.prototype.primary=function(){return this.ranges[this.primIndex]};Kf.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var V=0;V<this.ranges.length;V++){var xa=this.ranges[V],ua=y.ranges[V];if(!Aa(xa.anchor,ua.anchor)||!Aa(xa.head,ua.head))return!1}return!0};Kf.prototype.deepCopy=function(){for(var y=[],V=0;V<this.ranges.length;V++)y[V]=new kg(Ja(this.ranges[V].anchor),Ja(this.ranges[V].head));return new Kf(y,this.primIndex)};
|
|||
|
Kf.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1};Kf.prototype.contains=function(y,V){V||=y;for(var xa=0;xa<this.ranges.length;xa++){var ua=this.ranges[xa];if(0<=sa(V,ua.from())&&0>=sa(y,ua.to()))return xa}return-1};var kg=function(y,V){this.anchor=y;this.head=V};kg.prototype.from=function(){return Ab(this.anchor,this.head)};kg.prototype.to=function(){return Sa(this.anchor,this.head)};kg.prototype.empty=function(){return this.head.line==
|
|||
|
this.anchor.line&&this.head.ch==this.anchor.ch};lk.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,V){for(var xa=y,ua=y+V;xa<ua;++xa){var Fa=this.lines[xa];this.height-=Fa.height;var $a=Fa;$a.parent=null;Dd($a);Ie(Fa,"delete")}this.lines.splice(y,V)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,V,xa){this.height+=xa;this.lines=this.lines.slice(0,y).concat(V).concat(this.lines.slice(y));for(y=0;y<V.length;++y)V[y].parent=this},iterN:function(y,
|
|||
|
V,xa){for(V=y+V;y<V;++y)if(xa(this.lines[y]))return!0}};Pj.prototype={chunkSize:function(){return this.size},removeInner:function(y,V){this.size-=V;for(var xa=0;xa<this.children.length;++xa){var ua=this.children[xa],Fa=ua.chunkSize();if(y<Fa){var $a=Math.min(V,Fa-y),qb=ua.height;ua.removeInner(y,$a);this.height-=qb-ua.height;Fa==$a&&(this.children.splice(xa--,1),ua.parent=null);if(0==(V-=$a))break;y=0}else y-=Fa}25>this.size-V&&(1<this.children.length||!(this.children[0]instanceof lk))&&(y=[],this.collapse(y),
|
|||
|
this.children=[new lk(y)],this.children[0].parent=this)},collapse:function(y){for(var V=0;V<this.children.length;++V)this.children[V].collapse(y)},insertInner:function(y,V,xa){this.size+=V.length;this.height+=xa;for(var ua=0;ua<this.children.length;++ua){var Fa=this.children[ua],$a=Fa.chunkSize();if(y<=$a){Fa.insertInner(y,V,xa);if(Fa.lines&&50<Fa.lines.length){for(V=y=Fa.lines.length%25+25;V<Fa.lines.length;)xa=new lk(Fa.lines.slice(V,V+=25)),Fa.height-=xa.height,this.children.splice(++ua,0,xa),
|
|||
|
xa.parent=this;Fa.lines=Fa.lines.slice(0,y);this.maybeSpill()}break}y-=$a}},maybeSpill:function(){if(!(10>=this.children.length)){var y=this;do{var V=y.children.splice(y.children.length-5,5);V=new Pj(V);if(y.parent){y.size-=V.size;y.height-=V.height;var xa=k(y.parent.children,y);y.parent.children.splice(xa+1,0,V)}else xa=new Pj(y.children),xa.parent=y,y.children=[xa,V],y=xa;V.parent=y.parent}while(10<y.children.length);y.parent.maybeSpill()}},iterN:function(y,V,xa){for(var ua=0;ua<this.children.length;++ua){var Fa=
|
|||
|
this.children[ua],$a=Fa.chunkSize();if(y<$a){$a=Math.min(V,$a-y);if(Fa.iterN(y,$a,xa))return!0;if(0==(V-=$a))break;y=0}else y-=$a}}};var Ug=function(y,V,xa){if(xa)for(var ua in xa)xa.hasOwnProperty(ua)&&(this[ua]=xa[ua]);this.doc=y;this.node=V};Ug.prototype.clear=function(){var y=this.doc.cm,V=this.line.widgets,xa=this.line,ua=eb(xa);if(null!=ua&&V){for(var Fa=0;Fa<V.length;++Fa)V[Fa]==this&&V.splice(Fa--,1);V.length||(xa.widgets=null);var $a=Bb(this);Ma(xa,Math.max(0,xa.height-$a));y&&(Ye(y,function(){var qb=
|
|||
|
-$a;rb(xa)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Jk(y,qb);Sg(y,ua,"widget")}),Ie(y,"lineWidgetCleared",y,this,ua))}};Ug.prototype.changed=function(){var y=this,V=this.height,xa=this.doc.cm,ua=this.line;this.height=null;var Fa=Bb(this)-V;Fa&&(fc(this.doc,ua)||Ma(ua,ua.height+Fa),xa&&Ye(xa,function(){xa.curOp.forceUpdate=!0;rb(ua)<(xa.curOp&&xa.curOp.scrollTop||xa.doc.scrollTop)&&Jk(xa,Fa);Ie(xa,"lineWidgetChanged",xa,y,eb(ua))}))};da(Ug);var $f=0,Pf=function(y,V){this.lines=[];this.type=V;
|
|||
|
this.doc=y;this.id=++$f};Pf.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,V=y&&!y.curOp;V&&hk(y);if(P(this,"clear")){var xa=this.find();xa&&Ie(this,"clear",xa.from,xa.to)}for(var ua=xa=null,Fa=0;Fa<this.lines.length;++Fa){var $a=this.lines[Fa],qb=hd($a.markedSpans,this);y&&!this.collapsed?Sg(y,eb($a),"text"):y&&(null!=qb.to&&(ua=eb($a)),null!=qb.from&&(xa=eb($a)));for(var ub=$a,Xb=void 0,Cc=$a.markedSpans,Dc=qb,Fd=0;Fd<Cc.length;++Fd)Cc[Fd]!=Dc&&(Xb||=[]).push(Cc[Fd]);ub.markedSpans=
|
|||
|
Xb;null==qb.from&&this.collapsed&&!fc(this.doc,$a)&&y&&Ma($a,Rc(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(Fa=0;Fa<this.lines.length;++Fa)$a=ld(this.lines[Fa]),qb=nb($a),qb>y.display.maxLineLength&&(y.display.maxLine=$a,y.display.maxLineLength=qb,y.display.maxLineChanged=!0);null!=xa&&y&&this.collapsed&&Xf(y,xa,ua+1);this.lines.length=0;this.explicitlyCleared=!0;this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&bj(y.doc));y&&Ie(y,"markerCleared",y,this,xa,ua);V&&xk(y);this.parent&&
|
|||
|
this.parent.clear()}};Pf.prototype.find=function(y,V){null==y&&"bookmark"==this.type&&(y=1);for(var xa,ua,Fa=0;Fa<this.lines.length;++Fa){var $a=this.lines[Fa],qb=hd($a.markedSpans,this);if(null!=qb.from&&(xa=Ca(V?$a:eb($a),qb.from),-1==y))return xa;if(null!=qb.to&&(ua=Ca(V?$a:eb($a),qb.to),1==y))return ua}return xa&&{from:xa,to:ua}};Pf.prototype.changed=function(){var y=this,V=this.find(-1,!0),xa=this,ua=this.doc.cm;V&&ua&&Ye(ua,function(){var Fa=V.line,$a=eb(V.line);if($a=Ag(ua,$a))Db($a),ua.curOp.selectionChanged=
|
|||
|
ua.curOp.forceUpdate=!0;ua.curOp.updateMaxLine=!0;fc(xa.doc,Fa)||null==xa.height||($a=xa.height,xa.height=null,($a=Bb(xa)-$a)&&Ma(Fa,Fa.height+$a));Ie(ua,"markerChanged",ua,y)})};Pf.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var V=this.doc.cm.curOp;V.maybeHiddenMarkers&&-1!=k(V.maybeHiddenMarkers,this)||(V.maybeUnhiddenMarkers||(V.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)};Pf.prototype.detachLine=function(y){this.lines.splice(k(this.lines,y),1);!this.lines.length&&
|
|||
|
this.doc.cm&&(y=this.doc.cm.curOp,(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this))};da(Pf);var ol=function(y,V){this.markers=y;this.primary=V;for(V=0;V<y.length;++V)y[V].parent=this};ol.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();Ie(this,"clear")}};ol.prototype.find=function(y,V){return this.primary.find(y,V)};da(ol);var Uk=0,Jf=function(y,V,xa,ua,Fa){if(!(this instanceof Jf))return new Jf(y,
|
|||
|
V,xa,ua,Fa);null==xa&&(xa=0);Pj.call(this,[new lk([new Ei("",null)])]);this.first=xa;this.scrollTop=this.scrollLeft=0;this.cantEdit=!1;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=xa;xa=Ca(xa,0);this.sel=Ti(xa);this.history=new Mk(null);this.id=++Uk;this.modeOption=V;this.lineSep=ua;this.direction="rtl"==Fa?"rtl":"ltr";this.extend=!1;"string"==typeof y&&(y=this.splitLines(y));Mi(this,{from:xa,to:xa,text:y});zg(this,Ti(xa),th)};Jf.prototype=m(Pj.prototype,{constructor:Jf,iter:function(y,
|
|||
|
V,xa){xa?this.iterN(y-this.first,V-y,xa):this.iterN(this.first,this.first+this.size,y)},insert:function(y,V){for(var xa=0,ua=0;ua<V.length;++ua)xa+=V[ua].height;this.insertInner(y-this.first,V,xa)},remove:function(y,V){this.removeInner(y-this.first,V)},getValue:function(y){var V=Xa(this,this.first,this.first+this.size);return!1===y?V:V.join(y||this.lineSeparator())},setValue:Eh(function(y){var V=Ca(this.first,0),xa=this.first+this.size-1;rg(this,{from:V,to:Ca(xa,Ea(this,xa).text.length),text:this.splitLines(y),
|
|||
|
origin:"setValue",full:!0},!0);this.cm&&si(this.cm,0,0);zg(this,Ti(V),th)}),replaceRange:function(y,V,xa,ua){V=jb(this,V);xa=xa?jb(this,xa):V;el(this,y,V,xa,ua)},getRange:function(y,V,xa){y=Oa(this,jb(this,y),jb(this,V));return!1===xa?y:y.join(xa||this.lineSeparator())},getLine:function(y){return(y=this.getLineHandle(y))&&y.text},getLineHandle:function(y){if(Na(this,y))return Ea(this,y)},getLineNumber:function(y){return eb(y)},getLineHandleVisualStart:function(y){"number"==typeof y&&(y=Ea(this,y));
|
|||
|
return ld(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return jb(this,y)},getCursor:function(y){var V=this.sel.primary();return null==y||"head"==y?V.head:"anchor"==y?V.anchor:"end"==y||"to"==y||!1===y?V.to():V.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Eh(function(y,V,xa){y=jb(this,"number"==typeof y?
|
|||
|
Ca(y,V||0):y);zg(this,Ti(y,null),xa)}),setSelection:Eh(function(y,V,xa){var ua=jb(this,y);y=jb(this,V||y);zg(this,Ti(ua,y),xa)}),extendSelection:Eh(function(y,V,xa){em(this,jb(this,y),V&&jb(this,V),xa)}),extendSelections:Eh(function(y,V){Ak(this,Ob(this,y),V)}),extendSelectionsBy:Eh(function(y,V){y=L(this.sel.ranges,y);Ak(this,Ob(this,y),V)}),setSelections:Eh(function(y,V,xa){if(y.length){for(var ua=[],Fa=0;Fa<y.length;Fa++)ua[Fa]=new kg(jb(this,y[Fa].anchor),jb(this,y[Fa].head));null==V&&(V=Math.min(y.length-
|
|||
|
1,this.sel.primIndex));zg(this,Yh(this.cm,ua,V),xa)}}),addSelection:Eh(function(y,V,xa){var ua=this.sel.ranges.slice(0);ua.push(new kg(jb(this,y),jb(this,V||y)));zg(this,Yh(this.cm,ua,ua.length-1),xa)}),getSelection:function(y){for(var V=this.sel.ranges,xa,ua=0;ua<V.length;ua++){var Fa=Oa(this,V[ua].from(),V[ua].to());xa=xa?xa.concat(Fa):Fa}return!1===y?xa:xa.join(y||this.lineSeparator())},getSelections:function(y){for(var V=[],xa=this.sel.ranges,ua=0;ua<xa.length;ua++){var Fa=Oa(this,xa[ua].from(),
|
|||
|
xa[ua].to());!1!==y&&(Fa=Fa.join(y||this.lineSeparator()));V[ua]=Fa}return V},replaceSelection:function(y,V,xa){for(var ua=[],Fa=0;Fa<this.sel.ranges.length;Fa++)ua[Fa]=y;this.replaceSelections(ua,V,xa||"+input")},replaceSelections:Eh(function(y,V,xa){for(var ua=[],Fa=this.sel,$a=0;$a<Fa.ranges.length;$a++){var qb=Fa.ranges[$a];ua[$a]={from:qb.from(),to:qb.to(),text:this.splitLines(y[$a]),origin:xa}}if(y=V&&"end"!=V){y=[];Fa=xa=Ca(this.first,0);for($a=0;$a<ua.length;$a++){var ub=ua[$a];qb=cl(ub.from,
|
|||
|
xa,Fa);var Xb=cl(Ph(ub),xa,Fa);xa=ub.to;Fa=Xb;"around"==V?(ub=this.sel.ranges[$a],ub=0>sa(ub.head,ub.anchor),y[$a]=new kg(ub?Xb:qb,ub?qb:Xb)):y[$a]=new kg(qb,qb)}y=new Kf(y,this.sel.primIndex)}V=y;for(y=ua.length-1;0<=y;y--)rg(this,ua[y]);V?zk(this,V):this.cm&&wh(this.cm)}),undo:Eh(function(){If(this,"undo")}),redo:Eh(function(){If(this,"redo")}),undoSelection:Eh(function(){If(this,"undo",!0)}),redoSelection:Eh(function(){If(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},
|
|||
|
historySize:function(){for(var y=this.history,V=0,xa=0,ua=0;ua<y.done.length;ua++)y.done[ua].ranges||++V;for(ua=0;ua<y.undone.length;ua++)y.undone[ua].ranges||++xa;return{undo:V,redo:xa}},clearHistory:function(){var y=this;this.history=new Mk(this.history.maxGeneration);Qh(this,function(V){return V.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null);return this.history.generation},
|
|||
|
isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:ij(this.history.done),undone:ij(this.history.undone)}},setHistory:function(y){var V=this.history=new Mk(this.history.maxGeneration);V.done=ij(y.done.slice(0),null,!0);V.undone=ij(y.undone.slice(0),null,!0)},setGutterMarker:Eh(function(y,V,xa){return pf(this,y,"gutter",function(ua){var Fa=ua.gutterMarkers||(ua.gutterMarkers={});Fa[V]=xa;!xa&&X(Fa)&&(ua.gutterMarkers=null);return!0})}),clearGutter:Eh(function(y){var V=
|
|||
|
this;this.iter(function(xa){xa.gutterMarkers&&xa.gutterMarkers[y]&&pf(V,xa,"gutter",function(){xa.gutterMarkers[y]=null;X(xa.gutterMarkers)&&(xa.gutterMarkers=null);return!0})})}),lineInfo:function(y){if("number"==typeof y){if(!Na(this,y))return null;var V=y;y=Ea(this,y);if(!y)return null}else if(V=eb(y),null==V)return null;return{line:V,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:Eh(function(y,V,
|
|||
|
xa){return pf(this,y,"gutter"==V?"gutter":"class",function(ua){var Fa="text"==V?"textClass":"background"==V?"bgClass":"gutter"==V?"gutterClass":"wrapClass";if(ua[Fa]){if(q(xa).test(ua[Fa]))return!1;ua[Fa]+=" "+xa}else ua[Fa]=xa;return!0})}),removeLineClass:Eh(function(y,V,xa){return pf(this,y,"gutter"==V?"gutter":"class",function(ua){var Fa="text"==V?"textClass":"background"==V?"bgClass":"gutter"==V?"gutterClass":"wrapClass",$a=ua[Fa];if($a)if(null==xa)ua[Fa]=null;else{var qb=$a.match(q(xa));if(!qb)return!1;
|
|||
|
var ub=qb.index+qb[0].length;ua[Fa]=$a.slice(0,qb.index)+(qb.index&&ub!=$a.length?" ":"")+$a.slice(ub)||null}else return!1;return!0})}),addLineWidget:Eh(function(y,V,xa){return Tl(this,y,V,xa)}),removeLineWidget:function(y){y.clear()},markText:function(y,V,xa){return Lk(this,jb(this,y),jb(this,V),xa,xa&&xa.type||"range")},setBookmark:function(y,V){V={replacedWith:V&&(null==V.nodeType?V.widget:V),insertLeft:V&&V.insertLeft,clearWhenEmpty:!1,shared:V&&V.shared,handleMouseEvents:V&&V.handleMouseEvents};
|
|||
|
y=jb(this,y);return Lk(this,y,y,V,"bookmark")},findMarksAt:function(y){y=jb(this,y);var V=[],xa=Ea(this,y.line).markedSpans;if(xa)for(var ua=0;ua<xa.length;++ua){var Fa=xa[ua];(null==Fa.from||Fa.from<=y.ch)&&(null==Fa.to||Fa.to>=y.ch)&&V.push(Fa.marker.parent||Fa.marker)}return V},findMarks:function(y,V,xa){y=jb(this,y);V=jb(this,V);var ua=[],Fa=y.line;this.iter(y.line,V.line+1,function($a){if($a=$a.markedSpans)for(var qb=0;qb<$a.length;qb++){var ub=$a[qb];null!=ub.to&&Fa==y.line&&y.ch>=ub.to||null==
|
|||
|
ub.from&&Fa!=y.line||null!=ub.from&&Fa==V.line&&ub.from>=V.ch||xa&&!xa(ub.marker)||ua.push(ub.marker.parent||ub.marker)}++Fa});return ua},getAllMarks:function(){var y=[];this.iter(function(V){if(V=V.markedSpans)for(var xa=0;xa<V.length;++xa)null!=V[xa].from&&y.push(V[xa].marker)});return y},posFromIndex:function(y){var V,xa=this.first,ua=this.lineSeparator().length;this.iter(function(Fa){Fa=Fa.text.length+ua;if(Fa>y)return V=y,!0;y-=Fa;++xa});return jb(this,Ca(xa,V))},indexFromPos:function(y){y=jb(this,
|
|||
|
y);var V=y.ch;if(y.line<this.first||0>y.ch)return 0;var xa=this.lineSeparator().length;this.iter(this.first,y.line,function(ua){V+=ua.text.length+xa});return V},copy:function(y){var V=new Jf(Xa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);V.scrollTop=this.scrollTop;V.scrollLeft=this.scrollLeft;V.sel=this.sel;V.extend=!1;y&&(V.history.undoDepth=this.history.undoDepth,V.setHistory(this.getHistory()));return V},linkedDoc:function(y){y||={};var V=this.first,
|
|||
|
xa=this.first+this.size;null!=y.from&&y.from>V&&(V=y.from);null!=y.to&&y.to<xa&&(xa=y.to);V=new Jf(Xa(this,V,xa),y.mode||this.modeOption,V,this.lineSep,this.direction);y.sharedHist&&(V.history=this.history);(this.linked||(this.linked=[])).push({doc:V,sharedHist:y.sharedHist});V.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}];y=xi(this);for(xa=0;xa<y.length;xa++){var ua=y[xa],Fa=ua.find(),$a=V.clipPos(Fa.from);Fa=V.clipPos(Fa.to);sa($a,Fa)&&($a=Lk(V,$a,Fa,ua.primary,ua.primary.type),ua.markers.push($a),
|
|||
|
$a.parent=ua)}return V},unlinkDoc:function(y){y instanceof ph&&(y=y.doc);if(this.linked)for(var V=0;V<this.linked.length;++V)if(this.linked[V].doc==y){this.linked.splice(V,1);y.unlinkDoc(this);Vi(xi(this));break}if(y.history==this.history){var xa=[y.id];Qh(y,function(ua){return xa.push(ua.id)},!0);y.history=new Mk(null);y.history.done=ij(this.history.done,xa);y.history.undone=ij(this.history.undone,xa)}},iterLinkedDocs:function(y){Qh(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},
|
|||
|
splitLines:function(y){return this.lineSep?y.split(this.lineSep):Zk(y)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Eh(function(y){"rtl"!=y&&(y="ltr");y!=this.direction&&(this.direction=y,this.iter(function(V){return V.order=null}),this.cm&&Hi(this.cm))})});Jf.prototype.eachLine=Jf.prototype.iter;for(var Hl=0,eg=!1,pi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",
|
|||
|
37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"\x3d",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"\x3d",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"\x3d",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ah=0;10>Ah;Ah++)pi[Ah+48]=pi[Ah+96]=String(Ah);for(var Ki=65;90>=Ki;Ki++)pi[Ki]=
|
|||
|
String.fromCharCode(Ki);for(var qh=1;12>=qh;qh++)pi[qh+111]=pi[qh+63235]="F"+qh;var bm={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","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","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"]}};bm["default"]=Tf?bm.macDefault:bm.pcDefault;var xm={selectAll:Dk,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),th)},killLine:function(y){return Rk(y,function(V){if(V.empty()){var xa=Ea(y.doc,V.head.line).text.length;return V.head.ch==xa&&V.head.line<y.lastLine()?{from:V.head,to:Ca(V.head.line+
|
|||
|
1,0)}:{from:V.head,to:Ca(V.head.line,xa)}}return{from:V.from(),to:V.to()}})},deleteLine:function(y){return Rk(y,function(V){return{from:Ca(V.from().line,0),to:jb(y.doc,Ca(V.to().line+1,0))}})},delLineLeft:function(y){return Rk(y,function(V){return{from:Ca(V.from().line,0),to:V.from()}})},delWrappedLineLeft:function(y){return Rk(y,function(V){var xa=y.charCoords(V.head,"div").top+5;return{from:y.coordsChar({left:0,top:xa},"div"),to:V.from()}})},delWrappedLineRight:function(y){return Rk(y,function(V){var xa=
|
|||
|
y.charCoords(V.head,"div").top+5;xa=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:xa},"div");return{from:V.from(),to:xa}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(Ca(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(Ca(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(V){return Rj(y,
|
|||
|
V.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(V){return hm(y,V.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(V){V=V.head.line;var xa=Ea(y.doc,V);var ua=xa;for(var Fa;Fa=td(ua,!1);)ua=Fa.find(1,!0).line;ua!=xa&&(V=eb(ua));return Jj(!0,y,xa,V,-1)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(V){V=y.cursorCoords(V.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+
|
|||
|
100,top:V},"div")},ck)},goLineLeft:function(y){return y.extendSelectionsBy(function(V){V=y.cursorCoords(V.head,"div").top+5;return y.coordsChar({left:0,top:V},"div")},ck)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(V){var xa=y.cursorCoords(V.head,"div").top+5;xa=y.coordsChar({left:0,top:xa},"div");return xa.ch<y.getLine(xa.line).search(/\S/)?hm(y,V.head):xa},ck)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,
|
|||
|
"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,
|
|||
|
"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection("\t")},
|
|||
|
insertSoftTab:function(y){for(var V=[],xa=y.listSelections(),ua=y.options.tabSize,Fa=0;Fa<xa.length;Fa++){var $a=xa[Fa].from();$a=h(y.getLine($a.line),$a.ch,ua);V.push(v(ua-$a%ua))}y.replaceSelections(V)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return Ye(y,function(){for(var V=y.listSelections(),xa=[],ua=0;ua<V.length;ua++)if(V[ua].empty()){var Fa=V[ua].head,$a=Ea(y.doc,Fa.line).text;if($a)if(Fa.ch==$a.length&&(Fa=
|
|||
|
new Ca(Fa.line,Fa.ch-1)),0<Fa.ch)Fa=new Ca(Fa.line,Fa.ch+1),y.replaceRange($a.charAt(Fa.ch-1)+$a.charAt(Fa.ch-2),Ca(Fa.line,Fa.ch-2),Fa,"+transpose");else if(Fa.line>y.doc.first){var qb=Ea(y.doc,Fa.line-1).text;qb&&(Fa=new Ca(Fa.line,1),y.replaceRange($a.charAt(0)+y.doc.lineSeparator()+qb.charAt(qb.length-1),Ca(Fa.line-1,qb.length-1),Fa,"+transpose"))}xa.push(new kg(Fa,Fa))}y.setSelections(xa)})},newlineAndIndent:function(y){return Ye(y,function(){for(var V=y.listSelections(),xa=V.length-1;0<=xa;xa--)y.replaceRange(y.doc.lineSeparator(),
|
|||
|
V[xa].anchor,V[xa].head,"+input");V=y.listSelections();for(xa=0;xa<V.length;xa++)y.indentLine(V[xa].from().line,null,!0);wh(y)})},openLine:function(y){return y.replaceSelection("\n","start")},toggleOverwrite:function(y){return y.toggleOverwrite()}},Lj=new Qf,ao=null,yl=function(y,V,xa){this.time=y;this.pos=V;this.button=xa};yl.prototype.compare=function(y,V,xa){return this.time+400>y&&0==sa(V,this.pos)&&xa==this.button};var ei,Sm,mg={toString:function(){return"CodeMirror.Init"}},yi={},tn={};ph.defaults=
|
|||
|
yi;ph.optionHandlers=tn;var Wl=[];ph.defineInitHook=function(y){return Wl.push(y)};var Fj=null,Yf=function(y){this.cm=y;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new Qf;this.composing=null;this.gracePeriod=!1;this.readDOMTimeout=null};Yf.prototype.init=function(y){function V(ub){for(ub=ub.target;ub;ub=ub.parentNode){if(ub==qb)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ub.className))break}return!1}function xa(ub){if(V(ub)&&!D($a,ub)){if($a.somethingSelected())Fj=
|
|||
|
{lineWise:!1,text:$a.getSelections()},"cut"==ub.type&&$a.replaceSelection("",null,"cut");else if($a.options.lineWiseCopyCut){var Xb=Rb($a);Fj={lineWise:!0,text:Xb.text};"cut"==ub.type&&$a.operation(function(){$a.setSelections(Xb.ranges,0,th);$a.replaceSelection("",null,"cut")})}else return;if(ub.clipboardData){ub.clipboardData.clearData();var Cc=Fj.text.join("\n");ub.clipboardData.setData("Text",Cc);if(ub.clipboardData.getData("Text")==Cc){ub.preventDefault();return}}var Dc=dc();ub=Dc.firstChild;
|
|||
|
$a.display.lineSpace.insertBefore(Dc,$a.display.lineSpace.firstChild);ub.value=Fj.text.join("\n");var Fd=document.activeElement;ch(ub);setTimeout(function(){$a.display.lineSpace.removeChild(Dc);Fd.focus();Fd==qb&&Fa.showPrimarySelection()},50)}}var ua=this,Fa=this,$a=Fa.cm,qb=Fa.div=y.lineDiv;ec(qb,$a.options.spellcheck,$a.options.autocorrect,$a.options.autocapitalize);ug(qb,"paste",function(ub){!V(ub)||D($a,ub)||Ii(ub,$a)||11>=Bd&&setTimeout(vg($a,function(){return ua.updateFromDOM()}),20)});ug(qb,
|
|||
|
"compositionstart",function(ub){ua.composing={data:ub.data,done:!1}});ug(qb,"compositionupdate",function(ub){ua.composing||(ua.composing={data:ub.data,done:!1})});ug(qb,"compositionend",function(ub){ua.composing&&(ub.data!=ua.composing.data&&ua.readFromDOMSoon(),ua.composing.done=!0)});ug(qb,"touchstart",function(){return Fa.forceCompositionEnd()});ug(qb,"input",function(){ua.composing||ua.readFromDOMSoon()});ug(qb,"copy",xa);ug(qb,"cut",xa)};Yf.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",
|
|||
|
y):this.div.removeAttribute("aria-label")};Yf.prototype.prepareSelection=function(){var y=Bg(this.cm,!1);y.focus=document.activeElement==this.div;return y};Yf.prototype.showSelection=function(y,V){y&&this.cm.display.view.length&&((y.focus||V)&&this.showPrimarySelection(),this.showMultipleSelections(y))};Yf.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()};Yf.prototype.showPrimarySelection=function(){var y=this.getSelection(),V=this.cm,xa=V.doc.sel.primary(),
|
|||
|
ua=xa.from();xa=xa.to();if(V.display.viewTo==V.display.viewFrom||ua.line>=V.display.viewTo||xa.line<V.display.viewFrom)y.removeAllRanges();else{var Fa=sb(V,y.anchorNode,y.anchorOffset),$a=sb(V,y.focusNode,y.focusOffset);if(!Fa||Fa.bad||!$a||$a.bad||0!=sa(Ab(Fa,$a),ua)||0!=sa(Sa(Fa,$a),xa))if(Fa=V.display.view,ua=ua.line>=V.display.viewFrom&&Ub(V,ua)||{node:Fa[0].measure.map[2],offset:0},xa=xa.line<V.display.viewTo&&Ub(V,xa),xa||(xa=Fa[Fa.length-1].measure,xa=xa.maps?xa.maps[xa.maps.length-1]:xa.map,
|
|||
|
xa={node:xa[xa.length-1],offset:xa[xa.length-2]-xa[xa.length-3]}),ua&&xa){Fa=y.rangeCount&&y.getRangeAt(0);try{var qb=pg(ua.node,ua.offset,xa.offset,xa.node)}catch(ub){}qb&&(!Oc&&V.state.focused?(y.collapse(ua.node,ua.offset),qb.collapsed||(y.removeAllRanges(),y.addRange(qb))):(y.removeAllRanges(),y.addRange(qb)),Fa&&null==y.anchorNode?y.addRange(Fa):Oc&&this.startGracePeriod());this.rememberSelection()}else y.removeAllRanges()}};Yf.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod);
|
|||
|
this.gracePeriod=setTimeout(function(){y.gracePeriod=!1;y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)};Yf.prototype.showMultipleSelections=function(y){A(this.cm.display.cursorDiv,y.cursors);A(this.cm.display.selectionDiv,y.selection)};Yf.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode;this.lastAnchorOffset=y.anchorOffset;this.lastFocusNode=y.focusNode;this.lastFocusOffset=y.focusOffset};Yf.prototype.selectionInEditor=
|
|||
|
function(){var y=this.getSelection();if(!y.rangeCount)return!1;y=y.getRangeAt(0).commonAncestorContainer;return w(this.div,y)};Yf.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())};Yf.prototype.blur=function(){this.div.blur()};Yf.prototype.getField=function(){return this.div};Yf.prototype.supportsTouch=function(){return!0};Yf.prototype.receivedFocus=function(){function y(){V.cm.state.focused&&
|
|||
|
(V.pollSelection(),V.polling.set(V.cm.options.pollInterval,y))}var V=this;this.selectionInEditor()?this.pollSelection():Ye(this.cm,function(){return V.cm.curOp.selectionChanged=!0});this.polling.set(this.cm.options.pollInterval,y)};Yf.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset};Yf.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&
|
|||
|
!this.gracePeriod&&this.selectionChanged()){var y=this.getSelection(),V=this.cm;if(Vf&&Zf&&this.cm.display.gutterSpecs.length&&vb(y.anchorNode))this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();else if(!this.composing){this.rememberSelection();var xa=sb(V,y.anchorNode,y.anchorOffset),ua=sb(V,y.focusNode,y.focusOffset);xa&&ua&&Ye(V,function(){zg(V.doc,Ti(xa,ua),th);if(xa.bad||ua.bad)V.curOp.selectionChanged=!0})}}};Yf.prototype.pollContent=function(){null!=
|
|||
|
this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,V=y.display,xa=y.doc.sel.primary(),ua=xa.from(),Fa=xa.to();0==ua.ch&&ua.line>y.firstLine()&&(ua=Ca(ua.line-1,Ea(y.doc,ua.line-1).length));Fa.ch==Ea(y.doc,Fa.line).text.length&&Fa.line<y.lastLine()&&(Fa=Ca(Fa.line+1,0));if(ua.line<V.viewFrom||Fa.line>V.viewTo-1)return!1;var $a;ua.line==V.viewFrom||0==($a=Af(y,ua.line))?(xa=eb(V.view[0].line),$a=V.view[0].node):(xa=eb(V.view[$a].line),$a=V.view[$a-1].node.nextSibling);
|
|||
|
var qb=Af(y,Fa.line);qb==V.view.length-1?(Fa=V.viewTo-1,V=V.lineDiv.lastChild):(Fa=eb(V.view[qb+1].line)-1,V=V.view[qb+1].node.previousSibling);if(!$a)return!1;V=y.doc.splitLines(Qb(y,$a,V,xa,Fa));for($a=Oa(y.doc,Ca(xa,0),Ca(Fa,Ea(y.doc,Fa).text.length));1<V.length&&1<$a.length;)if(x(V)==x($a))V.pop(),$a.pop(),Fa--;else if(V[0]==$a[0])V.shift(),$a.shift(),xa++;else break;var ub=0;qb=0;for(var Xb=V[0],Cc=$a[0],Dc=Math.min(Xb.length,Cc.length);ub<Dc&&Xb.charCodeAt(ub)==Cc.charCodeAt(ub);)++ub;Xb=x(V);
|
|||
|
Cc=x($a);for(Dc=Math.min(Xb.length-(1==V.length?ub:0),Cc.length-(1==$a.length?ub:0));qb<Dc&&Xb.charCodeAt(Xb.length-qb-1)==Cc.charCodeAt(Cc.length-qb-1);)++qb;if(1==V.length&&1==$a.length&&xa==ua.line)for(;ub&&ub>ua.ch&&Xb.charCodeAt(Xb.length-qb-1)==Cc.charCodeAt(Cc.length-qb-1);)ub--,qb++;V[V.length-1]=Xb.slice(0,Xb.length-qb).replace(/^\u200b+/,"");V[0]=V[0].slice(ub).replace(/\u200b+$/,"");ua=Ca(xa,ub);xa=Ca(Fa,$a.length?x($a).length-qb:0);if(1<V.length||V[0]||sa(ua,xa))return el(y.doc,V,ua,xa,
|
|||
|
"+input"),!0};Yf.prototype.ensurePolled=function(){this.forceCompositionEnd()};Yf.prototype.reset=function(){this.forceCompositionEnd()};Yf.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())};Yf.prototype.readFromDOMSoon=function(){var y=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){y.readDOMTimeout=null;if(y.composing)if(y.composing.done)y.composing=null;
|
|||
|
else return;y.updateFromDOM()},80))};Yf.prototype.updateFromDOM=function(){var y=this;!this.cm.isReadOnly()&&this.pollContent()||Ye(this.cm,function(){return Xf(y.cm)})};Yf.prototype.setUneditable=function(y){y.contentEditable="false"};Yf.prototype.onKeyPress=function(y){0==y.charCode||this.composing||(y.preventDefault(),this.cm.isReadOnly()||vg(this.cm,Kj)(this.cm,String.fromCharCode(null==y.charCode?y.keyCode:y.charCode),0))};Yf.prototype.readOnlyChanged=function(y){this.div.contentEditable=String("nocursor"!=
|
|||
|
y)};Yf.prototype.onContextMenu=function(){};Yf.prototype.resetPosition=function(){};Yf.prototype.needsContentAttribute=!0;var Si=function(y){this.cm=y;this.prevInput="";this.pollingFast=!1;this.polling=new Qf;this.hasSelection=!1;this.composing=null};Si.prototype.init=function(y){function V(qb){if(!D(Fa,qb)){if(Fa.somethingSelected())Fj={lineWise:!1,text:Fa.getSelections()};else if(Fa.options.lineWiseCopyCut){var ub=Rb(Fa);Fj={lineWise:!0,text:ub.text};"cut"==qb.type?Fa.setSelections(ub.ranges,null,
|
|||
|
th):(ua.prevInput="",$a.value=ub.text.join("\n"),ch($a))}else return;"cut"==qb.type&&(Fa.state.cutIncoming=+new Date)}}var xa=this,ua=this,Fa=this.cm;this.createField(y);var $a=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild);tg&&($a.style.width="0px");ug($a,"input",function(){Ed&&9<=Bd&&xa.hasSelection&&(xa.hasSelection=null);ua.poll()});ug($a,"paste",function(qb){D(Fa,qb)||Ii(qb,Fa)||(Fa.state.pasteIncoming=+new Date,ua.fastPoll())});ug($a,"cut",V);ug($a,"copy",V);ug(y.scroller,
|
|||
|
"paste",function(qb){if(!Hd(y,qb)&&!D(Fa,qb))if($a.dispatchEvent){var ub=new Event("paste");ub.clipboardData=qb.clipboardData;$a.dispatchEvent(ub)}else Fa.state.pasteIncoming=+new Date,ua.focus()});ug(y.lineSpace,"selectstart",function(qb){Hd(y,qb)||ba(qb)});ug($a,"compositionstart",function(){var qb=Fa.getCursor("from");ua.composing&&ua.composing.range.clear();ua.composing={start:qb,range:Fa.markText(qb,Fa.getCursor("to"),{className:"CodeMirror-composing"})}});ug($a,"compositionend",function(){ua.composing&&
|
|||
|
(ua.poll(),ua.composing.range.clear(),ua.composing=null)})};Si.prototype.createField=function(y){this.wrapper=dc();this.textarea=this.wrapper.firstChild};Si.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")};Si.prototype.prepareSelection=function(){var y=this.cm,V=y.display,xa=y.doc,ua=Bg(y);if(y.options.moveInputWithCursor){y=gf(y,xa.sel.primary().head,"div");xa=V.wrapper.getBoundingClientRect();var Fa=V.lineDiv.getBoundingClientRect();
|
|||
|
ua.teTop=Math.max(0,Math.min(V.wrapper.clientHeight-10,y.top+Fa.top-xa.top));ua.teLeft=Math.max(0,Math.min(V.wrapper.clientWidth-10,y.left+Fa.left-xa.left))}return ua};Si.prototype.showSelection=function(y){var V=this.cm.display;A(V.cursorDiv,y.cursors);A(V.selectionDiv,y.selection);null!=y.teTop&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")};Si.prototype.reset=function(y){if(!this.contextMenuPending&&!this.composing){var V=this.cm;V.somethingSelected()?(this.prevInput=
|
|||
|
"",y=V.getSelection(),this.textarea.value=y,V.state.focused&&ch(this.textarea),Ed&&9<=Bd&&(this.hasSelection=y)):y||(this.prevInput=this.textarea.value="",Ed&&9<=Bd&&(this.hasSelection=null))}};Si.prototype.getField=function(){return this.textarea};Si.prototype.supportsTouch=function(){return!1};Si.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!cj||B()!=this.textarea))try{this.textarea.focus()}catch(y){}};Si.prototype.blur=function(){this.textarea.blur()};Si.prototype.resetPosition=
|
|||
|
function(){this.wrapper.style.top=this.wrapper.style.left=0};Si.prototype.receivedFocus=function(){this.slowPoll()};Si.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll();y.cm.state.focused&&y.slowPoll()})};Si.prototype.fastPoll=function(){function y(){xa.poll()||V?(xa.pollingFast=!1,xa.slowPoll()):(V=!0,xa.polling.set(60,y))}var V=!1,xa=this;xa.pollingFast=!0;xa.polling.set(20,y)};Si.prototype.poll=function(){var y=this,V=this.cm,
|
|||
|
xa=this.textarea,ua=this.prevInput;if(this.contextMenuPending||!V.state.focused||Wj(xa)&&!ua&&!this.composing||V.isReadOnly()||V.options.disableInput||V.state.keySeq)return!1;var Fa=xa.value;if(Fa==ua&&!V.somethingSelected())return!1;if(Ed&&9<=Bd&&this.hasSelection===Fa||Tf&&/[\uf700-\uf7ff]/.test(Fa))return V.display.input.reset(),!1;if(V.doc.sel==V.display.selForContextMenu){var $a=Fa.charCodeAt(0);8203!=$a||ua||(ua="");if(8666==$a)return this.reset(),this.cm.execCommand("undo")}var qb=0;for($a=
|
|||
|
Math.min(ua.length,Fa.length);qb<$a&&ua.charCodeAt(qb)==Fa.charCodeAt(qb);)++qb;Ye(V,function(){Kj(V,Fa.slice(qb),ua.length-qb,null,y.composing?"*compose":null);1E3<Fa.length||-1<Fa.indexOf("\n")?xa.value=y.prevInput="":y.prevInput=Fa;y.composing&&(y.composing.range.clear(),y.composing.range=V.markText(y.composing.start,V.getCursor("to"),{className:"CodeMirror-composing"}))});return!0};Si.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)};Si.prototype.onKeyPress=
|
|||
|
function(){Ed&&9<=Bd&&(this.hasSelection=null);this.fastPoll()};Si.prototype.onContextMenu=function(y){function V(){if(null!=qb.selectionStart){var od=Fa.somethingSelected(),Ce=""+(od?qb.value:"");qb.value="⇚";qb.value=Ce;ua.prevInput=od?"":"";qb.selectionStart=1;qb.selectionEnd=Ce.length;$a.selForContextMenu=Fa.doc.sel}}function xa(){if(ua.contextMenuPending==xa&&(ua.contextMenuPending=!1,ua.wrapper.style.cssText=Dc,qb.style.cssText=Cc,Ed&&9>Bd&&$a.scrollbars.setScrollTop($a.scroller.scrollTop=
|
|||
|
Xb),null!=qb.selectionStart)){(!Ed||Ed&&9>Bd)&&V();var od=0,Ce=function(){$a.selForContextMenu==Fa.doc.sel&&0==qb.selectionStart&&0<qb.selectionEnd&&""==ua.prevInput?vg(Fa,Dk)(Fa):10>od++?$a.detectingSelectAll=setTimeout(Ce,500):($a.selForContextMenu=null,$a.input.reset())};$a.detectingSelectAll=setTimeout(Ce,200)}}var ua=this,Fa=ua.cm,$a=Fa.display,qb=ua.textarea;ua.contextMenuPending&&ua.contextMenuPending();var ub=Lf(Fa,y),Xb=$a.scroller.scrollTop;if(ub&&!xe){Fa.options.resetSelectionOnContextMenu&&
|
|||
|
-1==Fa.doc.sel.contains(ub)&&vg(Fa,zg)(Fa.doc,Ti(ub),th);var Cc=qb.style.cssText,Dc=ua.wrapper.style.cssText;ub=ua.wrapper.offsetParent.getBoundingClientRect();ua.wrapper.style.cssText="position: static";qb.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(y.clientY-ub.top-5)+"px; left: "+(y.clientX-ub.left-5)+"px;\n z-index: 1000; background: "+(Ed?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity\x3d5);";
|
|||
|
if(Gd)var Fd=window.scrollY;$a.input.focus();Gd&&window.scrollTo(null,Fd);$a.input.reset();Fa.somethingSelected()||(qb.value=ua.prevInput=" ");ua.contextMenuPending=xa;$a.selForContextMenu=Fa.doc.sel;clearTimeout($a.detectingSelectAll);Ed&&9<=Bd&&V();if(bh){N(y);var Md=function(){M(window,"mouseup",Md);setTimeout(xa,20)};ug(window,"mouseup",Md)}else setTimeout(xa,50)}};Si.prototype.readOnlyChanged=function(y){y||this.reset();this.textarea.disabled="nocursor"==y;this.textarea.readOnly=!!y};Si.prototype.setUneditable=
|
|||
|
function(){};Si.prototype.needsContentAttribute=!1;(function(y){function V(ua,Fa,$a,qb){y.defaults[ua]=Fa;$a&&(xa[ua]=qb?function(ub,Xb,Cc){Cc!=mg&&$a(ub,Xb,Cc)}:$a)}var xa=y.optionHandlers;y.defineOption=V;y.Init=mg;V("value","",function(ua,Fa){return ua.setValue(Fa)},!0);V("mode",null,function(ua,Fa){ua.doc.modeOption=Fa;dl(ua)},!0);V("indentUnit",2,dl,!0);V("indentWithTabs",!1);V("smartIndent",!0);V("tabSize",4,function(ua){Ui(ua);kb(ua);Xf(ua)},!0);V("lineSeparator",null,function(ua,Fa){if(ua.doc.lineSep=
|
|||
|
Fa){var $a=[],qb=ua.doc.first;ua.doc.iter(function(Xb){for(var Cc=0;;){var Dc=Xb.text.indexOf(Fa,Cc);if(-1==Dc)break;Cc=Dc+Fa.length;$a.push(Ca(qb,Dc))}qb++});for(var ub=$a.length-1;0<=ub;ub--)el(ua.doc,Fa,$a[ub],Ca($a[ub].line,$a[ub].ch+Fa.length))}});V("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ua,Fa,$a){ua.state.specialChars=new RegExp(Fa.source+(Fa.test("\t")?"":"|\t"),"g");$a!=mg&&ua.refresh()});V("specialCharPlaceholder",
|
|||
|
cd,function(ua){return ua.refresh()},!0);V("electricChars",!0);V("inputStyle",cj?"contenteditable":"textarea",function(){throw Error("inputStyle can not (yet) be changed in a running editor");},!0);V("spellcheck",!1,function(ua,Fa){return ua.getInputField().spellcheck=Fa},!0);V("autocorrect",!1,function(ua,Fa){return ua.getInputField().autocorrect=Fa},!0);V("autocapitalize",!1,function(ua,Fa){return ua.getInputField().autocapitalize=Fa},!0);V("rtlMoveVisually",!mh);V("wholeLineUpdateBefore",!0);V("theme",
|
|||
|
"default",function(ua){Mg(ua);ql(ua)},!0);V("keyMap","default",function(ua,Fa,$a){Fa=bk(Fa);($a=$a!=mg&&bk($a))&&$a.detach&&$a.detach(ua,Fa);Fa.attach&&Fa.attach(ua,$a||null)});V("extraKeys",null);V("configureMouse",null);V("lineWrapping",!1,mi,!0);V("gutters",[],function(ua,Fa){ua.display.gutterSpecs=yk(Fa,ua.options.lineNumbers);ql(ua)},!0);V("fixedGutter",!0,function(ua,Fa){ua.display.gutters.style.left=Fa?Se(ua.display)+"px":"0";ua.refresh()},!0);V("coverGutterNextToScrollbar",!1,function(ua){return pl(ua)},
|
|||
|
!0);V("scrollbarStyle","native",function(ua){gk(ua);pl(ua);ua.display.scrollbars.setScrollTop(ua.doc.scrollTop);ua.display.scrollbars.setScrollLeft(ua.doc.scrollLeft)},!0);V("lineNumbers",!1,function(ua,Fa){ua.display.gutterSpecs=yk(ua.options.gutters,Fa);ql(ua)},!0);V("firstLineNumber",1,ql,!0);V("lineNumberFormatter",function(ua){return ua},ql,!0);V("showCursorWhenSelecting",!1,ci,!0);V("resetSelectionOnContextMenu",!0);V("lineWiseCopyCut",!0);V("pasteLinesPerSelection",!0);V("selectionsMayTouch",
|
|||
|
!1);V("readOnly",!1,function(ua,Fa){"nocursor"==Fa&&(Xg(ua),ua.display.input.blur());ua.display.input.readOnlyChanged(Fa)});V("screenReaderLabel",null,function(ua,Fa){ua.display.input.screenReaderLabelChanged(""===Fa?null:Fa)});V("disableInput",!1,function(ua,Fa){Fa||ua.display.input.reset()},!0);V("dragDrop",!0,Bj);V("allowDropFileTypes",null);V("cursorBlinkRate",530);V("cursorScrollMargin",0);V("cursorHeight",1,ci,!0);V("singleCursorHeightPerLine",!0,ci,!0);V("workTime",100);V("workDelay",100);
|
|||
|
V("flattenSpans",!0,Ui,!0);V("addModeClass",!1,Ui,!0);V("pollInterval",100);V("undoDepth",200,function(ua,Fa){return ua.doc.history.undoDepth=Fa});V("historyEventDelay",1250);V("viewportMargin",10,function(ua){return ua.refresh()},!0);V("maxHighlightLength",1E4,Ui,!0);V("moveInputWithCursor",!0,function(ua,Fa){Fa||ua.display.input.resetPosition()});V("tabindex",null,function(ua,Fa){return ua.display.input.getField().tabIndex=Fa||""});V("autofocus",null);V("direction","ltr",function(ua,Fa){return ua.doc.setDirection(Fa)},
|
|||
|
!0);V("phrases",null)})(ph);(function(y){var V=y.optionHandlers,xa=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus();this.display.input.focus()},setOption:function(ua,Fa){var $a=this.options,qb=$a[ua];if($a[ua]!=Fa||"mode"==ua)$a[ua]=Fa,V.hasOwnProperty(ua)&&vg(this,V[ua])(this,Fa,qb),S(this,"optionChange",this,ua)},getOption:function(ua){return this.options[ua]},getDoc:function(){return this.doc},addKeyMap:function(ua,Fa){this.state.keyMaps[Fa?"push":"unshift"](bk(ua))},removeKeyMap:function(ua){for(var Fa=
|
|||
|
this.state.keyMaps,$a=0;$a<Fa.length;++$a)if(Fa[$a]==ua||Fa[$a].name==ua)return Fa.splice($a,1),!0},addOverlay:qj(function(ua,Fa){var $a=ua.token?ua:y.getMode(this.options,ua);if($a.startState)throw Error("Overlays may not be stateful.");z(this.state.overlays,{mode:$a,modeSpec:ua,opaque:Fa&&Fa.opaque,priority:Fa&&Fa.priority||0},function(qb){return qb.priority});this.state.modeGen++;Xf(this)}),removeOverlay:qj(function(ua){for(var Fa=this.state.overlays,$a=0;$a<Fa.length;++$a){var qb=Fa[$a].modeSpec;
|
|||
|
if(qb==ua||"string"==typeof ua&&qb.name==ua){Fa.splice($a,1);this.state.modeGen++;Xf(this);break}}}),indentLine:qj(function(ua,Fa,$a){"string"!=typeof Fa&&"number"!=typeof Fa&&(Fa=null==Fa?this.options.smartIndent?"smart":"prev":Fa?"add":"subtract");Na(this.doc,ua)&&lh(this,ua,Fa,$a)}),indentSelection:qj(function(ua){for(var Fa=this.doc.sel.ranges,$a=-1,qb=0;qb<Fa.length;qb++){var ub=Fa[qb];if(ub.empty())ub.head.line>$a&&(lh(this,ub.head.line,ua,!0),$a=ub.head.line,qb==this.doc.sel.primIndex&&wh(this));
|
|||
|
else{var Xb=ub.from();ub=ub.to();var Cc=Math.max($a,Xb.line);$a=Math.min(this.lastLine(),ub.line-(ub.ch?0:1))+1;for(ub=Cc;ub<$a;++ub)lh(this,ub,ua);ub=this.doc.sel.ranges;0==Xb.ch&&Fa.length==ub.length&&0<ub[qb].from().ch&&Yj(this.doc,qb,new kg(Xb,ub[qb].to()),th)}}}),getTokenAt:function(ua,Fa){return Jc(this,ua,Fa)},getLineTokens:function(ua,Fa){return Jc(this,Ca(ua),Fa,!0)},getTokenTypeAt:function(ua){ua=jb(this.doc,ua);var Fa=hc(this,Ea(this.doc,ua.line)),$a=0,qb=(Fa.length-1)/2;ua=ua.ch;if(0==
|
|||
|
ua)Fa=Fa[2];else for(;;){var ub=$a+qb>>1;if((ub?Fa[2*ub-1]:0)>=ua)qb=ub;else if(Fa[2*ub+1]<ua)$a=ub+1;else{Fa=Fa[2*ub+2];break}}$a=Fa?Fa.indexOf("overlay "):-1;return 0>$a?Fa:0==$a?null:Fa.slice(0,$a-1)},getModeAt:function(ua){var Fa=this.doc.mode;return Fa.innerMode?y.innerMode(Fa,this.getTokenAt(ua).state).mode:Fa},getHelper:function(ua,Fa){return this.getHelpers(ua,Fa)[0]},getHelpers:function(ua,Fa){var $a=[];if(!xa.hasOwnProperty(Fa))return $a;var qb=xa[Fa];ua=this.getModeAt(ua);if("string"==
|
|||
|
typeof ua[Fa])qb[ua[Fa]]&&$a.push(qb[ua[Fa]]);else if(ua[Fa])for(var ub=0;ub<ua[Fa].length;ub++){var Xb=qb[ua[Fa][ub]];Xb&&$a.push(Xb)}else ua.helperType&&qb[ua.helperType]?$a.push(qb[ua.helperType]):qb[ua.name]&&$a.push(qb[ua.name]);for(Fa=0;Fa<qb._global.length;Fa++)ub=qb._global[Fa],ub.pred(ua,this)&&-1==k($a,ub.val)&&$a.push(ub.val);return $a},getStateAfter:function(ua,Fa){var $a=this.doc;ua=Math.max($a.first,Math.min(null==ua?$a.first+$a.size-1:ua,$a.first+$a.size-1));return Pa(this,ua+1,Fa).state},
|
|||
|
cursorCoords:function(ua,Fa){var $a=this.doc.sel.primary();ua=null==ua?$a.head:"object"==typeof ua?jb(this.doc,ua):ua?$a.from():$a.to();return gf(this,ua,Fa||"page")},charCoords:function(ua,Fa){return we(this,jb(this.doc,ua),Fa||"page")},coordsChar:function(ua,Fa){ua=Ue(this,ua,Fa||"page");return zb(this,ua.left,ua.top)},lineAtHeight:function(ua,Fa){ua=Ue(this,{top:ua,left:0},Fa||"page").top;return db(this.doc,ua+this.display.viewOffset)},heightAtLine:function(ua,Fa,$a){var qb=!1;if("number"==typeof ua){var ub=
|
|||
|
this.doc.first+this.doc.size-1;ua<this.doc.first?ua=this.doc.first:ua>ub&&(ua=ub,qb=!0);ua=Ea(this.doc,ua)}return Xd(this,ua,{top:0,left:0},Fa||"page",$a||qb).top+(qb?this.doc.height-rb(ua):0)},defaultTextHeight:function(){return Rc(this.display)},defaultCharWidth:function(){return kd(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ua,Fa,$a,qb,ub){var Xb=this.display;ua=gf(this,jb(this.doc,ua));var Cc=ua.bottom,Dc=ua.left;Fa.style.position=
|
|||
|
"absolute";Fa.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(Fa);Xb.sizer.appendChild(Fa);if("over"==qb)Cc=ua.top;else if("above"==qb||"near"==qb){var Fd=Math.max(Xb.wrapper.clientHeight,this.doc.height),Md=Math.max(Xb.sizer.clientWidth,Xb.lineSpace.clientWidth);("above"==qb||ua.bottom+Fa.offsetHeight>Fd)&&ua.top>Fa.offsetHeight?Cc=ua.top-Fa.offsetHeight:ua.bottom+Fa.offsetHeight<=Fd&&(Cc=ua.bottom);Dc+Fa.offsetWidth>Md&&(Dc=Md-Fa.offsetWidth)}Fa.style.top=Cc+"px";Fa.style.left=
|
|||
|
Fa.style.right="";"right"==ub?(Dc=Xb.sizer.clientWidth-Fa.offsetWidth,Fa.style.right="0px"):("left"==ub?Dc=0:"middle"==ub&&(Dc=(Xb.sizer.clientWidth-Fa.offsetWidth)/2),Fa.style.left=Dc+"px");$a&&(ua=ek(this,{left:Dc,top:Cc,right:Dc+Fa.offsetWidth,bottom:Cc+Fa.offsetHeight}),null!=ua.scrollTop&&ui(this,ua.scrollTop),null!=ua.scrollLeft&&Nj(this,ua.scrollLeft))},triggerOnKeyDown:qj(ok),triggerOnKeyPress:qj(pk),triggerOnKeyUp:wj,triggerOnMouseDown:qj(zh),execCommand:function(ua){if(xm.hasOwnProperty(ua))return xm[ua].call(null,
|
|||
|
this)},triggerElectric:qj(function(ua){$i(this,ua)}),findPosH:function(ua,Fa,$a,qb){var ub=1;0>Fa&&(ub=-1,Fa=-Fa);ua=jb(this.doc,ua);for(var Xb=0;Xb<Fa&&(ua=ka(this.doc,ua,ub,$a,qb),!ua.hitSide);++Xb);return ua},moveH:qj(function(ua,Fa){var $a=this;this.extendSelectionsBy(function(qb){return $a.display.shift||$a.doc.extend||qb.empty()?ka($a.doc,qb.head,ua,Fa,$a.options.rtlMoveVisually):0>ua?qb.from():qb.to()},ck)}),deleteH:qj(function(ua,Fa){var $a=this.doc;this.doc.sel.somethingSelected()?$a.replaceSelection("",
|
|||
|
null,"+delete"):Rk(this,function(qb){var ub=ka($a,qb.head,ua,Fa,!1);return 0>ua?{from:ub,to:qb.head}:{from:qb.head,to:ub}})}),findPosV:function(ua,Fa,$a,qb){var ub=1;0>Fa&&(ub=-1,Fa=-Fa);var Xb=jb(this.doc,ua);for(ua=0;ua<Fa&&(Xb=gf(this,Xb,"div"),null==qb?qb=Xb.left:Xb.left=qb,Xb=Eb(this,Xb,ub,$a),!Xb.hitSide);++ua);return Xb},moveV:qj(function(ua,Fa){var $a=this,qb=this.doc,ub=[],Xb=!this.display.shift&&!qb.extend&&qb.sel.somethingSelected();qb.extendSelectionsBy(function(Dc){if(Xb)return 0>ua?
|
|||
|
Dc.from():Dc.to();var Fd=gf($a,Dc.head,"div");null!=Dc.goalColumn&&(Fd.left=Dc.goalColumn);ub.push(Fd.left);var Md=Eb($a,Fd,ua,Fa);"page"==Fa&&Dc==qb.sel.primary()&&Jk($a,we($a,Md,"div").top-Fd.top);return Md},ck);if(ub.length)for(var Cc=0;Cc<qb.sel.ranges.length;Cc++)qb.sel.ranges[Cc].goalColumn=ub[Cc]}),findWordAt:function(ua){var Fa=Ea(this.doc,ua.line).text,$a=ua.ch,qb=ua.ch;if(Fa){var ub=this.getHelper(ua,"wordChars");"before"!=ua.sticky&&qb!=Fa.length||!$a?++qb:--$a;var Xb=Fa.charAt($a);for(Xb=
|
|||
|
J(Xb,ub)?function(Cc){return J(Cc,ub)}:/\s/.test(Xb)?function(Cc){return/\s/.test(Cc)}:function(Cc){return!/\s/.test(Cc)&&!J(Cc)};0<$a&&Xb(Fa.charAt($a-1));)--$a;for(;qb<Fa.length&&Xb(Fa.charAt(qb));)++qb}return new kg(Ca(ua.line,$a),Ca(ua.line,qb))},toggleOverwrite:function(ua){if(null==ua||ua!=this.state.overwrite)(this.state.overwrite=!this.state.overwrite)?C(this.display.cursorDiv,"CodeMirror-overwrite"):Dg(this.display.cursorDiv,"CodeMirror-overwrite"),S(this,"overwriteToggle",this,this.state.overwrite)},
|
|||
|
hasFocus:function(){return this.display.input.getField()==B()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:qj(function(ua,Fa){si(this,ua,Fa)}),getScrollInfo:function(){var ua=this.display.scroller;return{left:ua.scrollLeft,top:ua.scrollTop,height:ua.scrollHeight-mc(this)-this.display.barHeight,width:ua.scrollWidth-mc(this)-this.display.barWidth,clientHeight:cg(this),clientWidth:Je(this)}},scrollIntoView:qj(function(ua,Fa){null==ua?(ua={from:this.doc.sel.primary().head,
|
|||
|
to:null},null==Fa&&(Fa=this.options.cursorScrollMargin)):"number"==typeof ua?ua={from:Ca(ua,0),to:null}:null==ua.from&&(ua={from:ua,to:null});ua.to||(ua.to=ua.from);ua.margin=Fa||0;null!=ua.from.line?(Mj(this),this.curOp.scrollToPos=ua):tm(this,ua.from,ua.to,ua.margin)}),setSize:qj(function(ua,Fa){var $a=this,qb=function(Xb){return"number"==typeof Xb||/^\d+$/.test(String(Xb))?Xb+"px":Xb};null!=ua&&(this.display.wrapper.style.width=qb(ua));null!=Fa&&(this.display.wrapper.style.height=qb(Fa));this.options.lineWrapping&&
|
|||
|
gc(this);var ub=this.display.viewFrom;this.doc.iter(ub,this.display.viewTo,function(Xb){if(Xb.widgets)for(var Cc=0;Cc<Xb.widgets.length;Cc++)if(Xb.widgets[Cc].noHScroll){Sg($a,ub,"widget");break}++ub});this.curOp.forceUpdate=!0;S(this,"refresh",this)}),operation:function(ua){return Ye(this,ua)},startOperation:function(){return hk(this)},endOperation:function(){return xk(this)},refresh:qj(function(){var ua=this.display.cachedTextHeight;Xf(this);this.curOp.forceUpdate=!0;kb(this);si(this,this.doc.scrollLeft,
|
|||
|
this.doc.scrollTop);Oh(this.display);(null==ua||.5<Math.abs(ua-Rc(this.display))||this.options.lineWrapping)&&lg(this);S(this,"refresh",this)}),swapDoc:qj(function(ua){var Fa=this.doc;Fa.cm=null;this.state.selectingText&&this.state.selectingText();Qj(this,ua);kb(this);this.display.input.reset();si(this,ua.scrollLeft,ua.scrollTop);this.curOp.forceScroll=!0;Ie(this,"swapDoc",this,Fa);return Fa}),phrase:function(ua){var Fa=this.options.phrases;return Fa&&Object.prototype.hasOwnProperty.call(Fa,ua)?Fa[ua]:
|
|||
|
ua},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}};da(y);y.registerHelper=function(ua,Fa,$a){xa.hasOwnProperty(ua)||(xa[ua]=y[ua]={_global:[]});xa[ua][Fa]=$a};y.registerGlobalHelper=function(ua,Fa,$a,qb){y.registerHelper(ua,Fa,qb);xa[ua]._global.push({pred:$a,val:qb})}})(ph);var gl="iter insert remove copy getEditor constructor".split(" "),
|
|||
|
Hm;for(Hm in Jf.prototype)Jf.prototype.hasOwnProperty(Hm)&&0>k(gl,Hm)&&(ph.prototype[Hm]=function(y){return function(){return y.apply(this.doc,arguments)}}(Jf.prototype[Hm]));da(Jf);ph.inputStyles={textarea:Si,contenteditable:Yf};ph.defineMode=function(y){ph.defaults.mode||"null"==y||(ph.defaults.mode=y);ia.apply(this,arguments)};ph.defineMIME=function(y,V){pm[y]=V};ph.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}});ph.defineMIME("text/plain","null");ph.defineExtension=
|
|||
|
function(y,V){ph.prototype[y]=V};ph.defineDocExtension=function(y,V){Jf.prototype[y]=V};ph.fromTextArea=function(y,V){function xa(){y.value=ub.getValue()}V=V?r(V):{};V.value=y.value;!V.tabindex&&y.tabIndex&&(V.tabindex=y.tabIndex);!V.placeholder&&y.placeholder&&(V.placeholder=y.placeholder);if(null==V.autofocus){var ua=B();V.autofocus=ua==y||null!=y.getAttribute("autofocus")&&ua==document.body}if(y.form&&(ug(y.form,"submit",xa),!V.leaveSubmitMethodAlone)){var Fa=y.form;var $a=Fa.submit;try{var qb=
|
|||
|
Fa.submit=function(){xa();Fa.submit=$a;Fa.submit();Fa.submit=qb}}catch(Xb){}}V.finishInit=function(Xb){Xb.save=xa;Xb.getTextArea=function(){return y};Xb.toTextArea=function(){Xb.toTextArea=isNaN;xa();y.parentNode.removeChild(Xb.getWrapperElement());y.style.display="";y.form&&(M(y.form,"submit",xa),V.leaveSubmitMethodAlone||"function"!=typeof y.form.submit||(y.form.submit=$a))}};y.style.display="none";var ub=ph(function(Xb){return y.parentNode.insertBefore(Xb,y.nextSibling)},V);return ub};(function(y){y.off=
|
|||
|
M;y.on=ug;y.wheelEventPixels=Ci;y.Doc=Jf;y.splitLines=Zk;y.countColumn=h;y.findColumn=f;y.isWordChar=l;y.Pass=aj;y.signal=S;y.Line=Ei;y.changeEnd=Ph;y.scrollbarModel=Ol;y.Pos=Ca;y.cmpPos=sa;y.modes=oi;y.mimeModes=pm;y.resolveMode=ea;y.getMode=qa;y.modeExtensions=rm;y.extendMode=za;y.copyState=ya;y.startState=Ua;y.innerMode=Ha;y.commands=xm;y.keyMap=bm;y.keyName=nk;y.isModifierKey=Sj;y.lookupKey=tl;y.normalizeKeyMap=wm;y.StringStream=Ri;y.SharedTextMarker=ol;y.TextMarker=Pf;y.LineWidget=Ug;y.e_preventDefault=
|
|||
|
ba;y.e_stopPropagation=H;y.e_stop=N;y.addClass=C;y.contains=w;y.rmClass=Dg;y.keyNames=pi})(ph);ph.version="5.58.1";return ph})};
|
|||
|
shadow$provide[455]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(h,k){return"pairs"==k&&"string"==typeof h?h:"object"==typeof h&&null!=h[k]?h[k]:a[k]}function A(h){for(var k=0;k<h.length;k++){var f=h.charAt(k),v="'"+f+"'";r[v]||(r[v]=t(f))}}function t(h){return function(k){return w(k,h)}}function d(h){var k=h.state.closeBrackets;return!k||k.override?
|
|||
|
k:h.getModeAt(h.getCursor()).closeBrackets||k}function w(h,k){var f=d(h);if(!f||h.getOption("disableInput"))return q.Pass;var v=R(f,"pairs"),x=v.indexOf(k);if(-1==x)return q.Pass;var L=R(f,"closeBefore");f=R(f,"triples");for(var z=v.charAt(x+1)==k,u=h.listSelections(),m=0==x%2,l,J=0;J<u.length;J++){var X=u[J],F=X.head;var ha=h.getRange(F,K(F.line,F.ch+1));if(m&&!X.empty())ha="surround";else if(!z&&m||ha!=k)if(z&&1<F.ch&&0<=f.indexOf(k)&&h.getRange(K(F.line,F.ch-2),F)==k+k){if(2<F.ch&&/\bstring/.test(h.getTokenTypeAt(K(F.line,
|
|||
|
F.ch-2))))return q.Pass;ha="addFour"}else if(z){X=0==F.ch?" ":h.getRange(K(F.line,F.ch-1),F);if(q.isWordChar(ha)||X==k||q.isWordChar(X))return q.Pass;ha="both"}else if(m&&(0===ha.length||/\s/.test(ha)||-1<L.indexOf(ha)))ha="both";else return q.Pass;else ha=z&&C(h,F)?"both":0<=f.indexOf(k)&&h.getRange(F,K(F.line,F.ch+3))==k+k+k?"skipThree":"skip";if(!l)l=ha;else if(l!=ha)return q.Pass}var T=x%2?v.charAt(x-1):k,Z=x%2?k:v.charAt(x+1);h.operation(function(){if("skip"==l)h.execCommand("goCharRight");else if("skipThree"==
|
|||
|
l)for(var E=0;3>E;E++)h.execCommand("goCharRight");else if("surround"==l){var aa=h.getSelections();for(E=0;E<aa.length;E++)aa[E]=T+aa[E]+Z;h.replaceSelections(aa,"around");aa=h.listSelections().slice();for(E=0;E<aa.length;E++){var M=aa,S=E;var D=aa[E];var O=0<q.cmpPos(D.anchor,D.head);D={anchor:new K(D.anchor.line,D.anchor.ch+(O?-1:1)),head:new K(D.head.line,D.head.ch+(O?1:-1))};M[S]=D}h.setSelections(aa)}else"both"==l?(h.replaceSelection(T+Z,null),h.triggerElectric(T+Z),h.execCommand("goCharLeft")):
|
|||
|
"addFour"==l&&(h.replaceSelection(T+T+T+T,"before"),h.execCommand("goCharRight"))})}function B(h,k){h=h.getRange(K(k.line,k.ch-1),K(k.line,k.ch+1));return 2==h.length?h:null}function C(h,k){var f=h.getTokenAt(K(k.line,k.ch+1));return/\bstring/.test(f.type)&&f.start==k.ch&&(0==k.ch||!/\bstring/.test(h.getTokenTypeAt(k)))}var a={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;\x3e",triples:"",explode:"[]{}"},K=q.Pos;q.defineOption("autoCloseBrackets",!1,function(h,k,f){f&&f!=q.Init&&(h.removeKeyMap(r),h.state.closeBrackets=
|
|||
|
null);k&&(A(R(k,"pairs")),h.state.closeBrackets=k,h.addKeyMap(r))});var r={Backspace:function(h){var k=d(h);if(!k||h.getOption("disableInput"))return q.Pass;var f=R(k,"pairs");k=h.listSelections();for(var v=0;v<k.length;v++){if(!k[v].empty())return q.Pass;var x=B(h,k[v].head);if(!x||0!=f.indexOf(x)%2)return q.Pass}for(v=k.length-1;0<=v;v--)f=k[v].head,h.replaceRange("",K(f.line,f.ch-1),K(f.line,f.ch+1),"+delete")},Enter:function(h){var k=d(h);k=k&&R(k,"explode");if(!k||h.getOption("disableInput"))return q.Pass;
|
|||
|
for(var f=h.listSelections(),v=0;v<f.length;v++){if(!f[v].empty())return q.Pass;var x=B(h,f[v].head);if(!x||0!=k.indexOf(x)%2)return q.Pass}h.operation(function(){var L=h.lineSeparator()||"\n";h.replaceSelection(L+L,null);h.execCommand("goCharLeft");f=h.listSelections();for(L=0;L<f.length;L++){var z=f[L].head.line;h.indentLine(z,null,!0);h.indentLine(z+1,null,!0)}})}};A(a.pairs+"`")})};
|
|||
|
shadow$provide[456]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(a,K,r){var h=a.getLineHandle(K.line),k=K.ch-1,f=r&&r.afterCursor;null==f&&(f=/(^| )cm-fat-cursor($| )/.test(a.getWrapperElement().className));var v=r&&r.bracketRegex||/[(){}[\]]/;h=!f&&0<=k&&v.test(h.text.charAt(k))&&C[h.text.charAt(k)]||v.test(h.text.charAt(k+1))&&C[h.text.charAt(++k)];
|
|||
|
if(!h)return null;f="\x3e"==h.charAt(1)?1:-1;if(r&&r.strict&&0<f!=(k==K.ch))return null;v=a.getTokenTypeAt(B(K.line,k+1));a=A(a,B(K.line,k+(0<f?1:0)),f,v||null,r);return null==a?null:{from:B(K.line,k),to:a&&a.pos,match:a&&a.ch==h.charAt(0),forward:0<f}}function A(a,K,r,h,k){var f=k&&k.maxScanLineLength||1E4,v=k&&k.maxScanLines||1E3,x=[];k=k&&k.bracketRegex||/[(){}[\]]/;v=0<r?Math.min(K.line+v,a.lastLine()+1):Math.max(a.firstLine()-1,K.line-v);for(var L=K.line;L!=v;L+=r){var z=a.getLine(L);if(z){var u=
|
|||
|
0<r?0:z.length-1,m=0<r?z.length:-1;if(!(z.length>f))for(L==K.line&&(u=K.ch-(0>r?1:0));u!=m;u+=r){var l=z.charAt(u);if(k.test(l)&&(void 0===h||a.getTokenTypeAt(B(L,u+1))==h)){var J=C[l];if(J&&"\x3e"==J.charAt(1)==0<r)x.push(l);else if(x.length)x.pop();else return{pos:B(L,u),ch:l}}}}}return L-r==(0<r?a.lastLine():a.firstLine())?!1:null}function t(a,K,r){for(var h=a.state.matchBrackets.maxHighlightLineLength||1E3,k=[],f=a.listSelections(),v=0;v<f.length;v++){var x=f[v].empty()&&R(a,f[v].head,r);if(x&&
|
|||
|
a.getLine(x.from.line).length<=h){var L=x.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";k.push(a.markText(x.from,B(x.from.line,x.from.ch+1),{className:L}));x.to&&a.getLine(x.to.line).length<=h&&k.push(a.markText(x.to,B(x.to.line,x.to.ch+1),{className:L}))}}if(k.length)if(w&&a.state.focused&&a.focus(),r=function(){a.operation(function(){for(var z=0;z<k.length;z++)k[z].clear()})},K)setTimeout(r,800);else return r}function d(a){a.operation(function(){a.state.matchBrackets.currentlyHighlighted&&
|
|||
|
(a.state.matchBrackets.currentlyHighlighted(),a.state.matchBrackets.currentlyHighlighted=null);a.state.matchBrackets.currentlyHighlighted=t(a,!1,a.state.matchBrackets)})}var w=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||8>document.documentMode),B=q.Pos,C={"(":")\x3e",")":"(\x3c","[":"]\x3e","]":"[\x3c","{":"}\x3e","}":"{\x3c","\x3c":"\x3e\x3e","\x3e":"\x3c\x3c"};q.defineOption("matchBrackets",!1,function(a,K,r){function h(k){k.state.matchBrackets&&k.state.matchBrackets.currentlyHighlighted&&
|
|||
|
(k.state.matchBrackets.currentlyHighlighted(),k.state.matchBrackets.currentlyHighlighted=null)}r&&r!=q.Init&&(a.off("cursorActivity",d),a.off("focus",d),a.off("blur",h),h(a));K&&(a.state.matchBrackets="object"==typeof K?K:{},a.on("cursorActivity",d),a.on("focus",d),a.on("blur",h))});q.defineExtension("matchBrackets",function(){t(this,!0)});q.defineExtension("findMatchingBracket",function(a,K,r){if(r||"boolean"==typeof K)r?(r.strict=K,K=r):K=K?{strict:!0}:null;return R(this,a,K)});q.defineExtension("scanForBracket",
|
|||
|
function(a,K,r,h){return A(this,a,K,r,h)})})};
|
|||
|
shadow$provide[457]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(w){for(var B=0;B<w.state.activeLines.length;B++)w.removeLineClass(w.state.activeLines[B],"wrap","CodeMirror-activeline"),w.removeLineClass(w.state.activeLines[B],"background","CodeMirror-activeline-background"),w.removeLineClass(w.state.activeLines[B],"gutter","CodeMirror-activeline-gutter")}
|
|||
|
function A(w,B){if(w.length!=B.length)return!1;for(var C=0;C<w.length;C++)if(w[C]!=B[C])return!1;return!0}function t(w,B){for(var C=[],a=0;a<B.length;a++){var K=B[a],r=w.getOption("styleActiveLine");if("object"==typeof r&&r.nonEmpty?K.anchor.line==K.head.line:K.empty())K=w.getLineHandleVisualStart(K.head.line),C[C.length-1]!=K&&C.push(K)}A(w.state.activeLines,C)||w.operation(function(){R(w);for(var h=0;h<C.length;h++)w.addLineClass(C[h],"wrap","CodeMirror-activeline"),w.addLineClass(C[h],"background",
|
|||
|
"CodeMirror-activeline-background"),w.addLineClass(C[h],"gutter","CodeMirror-activeline-gutter");w.state.activeLines=C})}function d(w,B){t(w,B.ranges)}q.defineOption("styleActiveLine",!1,function(w,B,C){C=C==q.Init?!1:C;B!=C&&(C&&(w.off("beforeSelectionChange",d),R(w),delete w.state.activeLines),B&&(w.state.activeLines=[],t(w,w.listSelections()),w.on("beforeSelectionChange",d)))})})};
|
|||
|
shadow$provide[458]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(r,h){this.cm=r;this.options=h;this.widget=null;this.tick=this.debounce=0;this.startPos=this.cm.getCursor("start");this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var k=this;r.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}function A(r,
|
|||
|
h){function k(z,u){var m="string"!=typeof u?function(l){return u(l,h)}:f.hasOwnProperty(u)?f[u]:u;x[z]=m}var f={Up:function(){h.moveFocus(-1)},Down:function(){h.moveFocus(1)},PageUp:function(){h.moveFocus(-h.menuSize()+1,!0)},PageDown:function(){h.moveFocus(h.menuSize()-1,!0)},Home:function(){h.setFocus(0)},End:function(){h.setFocus(h.length-1)},Enter:h.pick,Tab:h.pick,Esc:h.close};/Mac/.test(navigator.platform)&&(f["Ctrl-P"]=function(){h.moveFocus(-1)},f["Ctrl-N"]=function(){h.moveFocus(1)});var v=
|
|||
|
r.options.customKeys,x=v?{}:f;if(v)for(var L in v)v.hasOwnProperty(L)&&k(L,v[L]);if(r=r.options.extraKeys)for(L in r)r.hasOwnProperty(L)&&k(L,r[L]);return x}function t(r,h){for(;h&&h!=r;){if("LI"===h.nodeName.toUpperCase()&&h.parentNode==r)return h;h=h.parentNode}}function d(r,h){this.completion=r;this.data=h;this.picked=!1;var k=this,f=r.cm,v=f.getInputField().ownerDocument,x=v.defaultView||v.parentWindow,L=this.hints=v.createElement("ul");L.className="CodeMirror-hints "+r.cm.options.theme;this.selectedHint=
|
|||
|
h.selectedHint||0;for(var z=h.list,u=0;u<z.length;++u){var m=L.appendChild(v.createElement("li")),l=z[u],J="CodeMirror-hint"+(u!=this.selectedHint?"":" CodeMirror-hint-active");null!=l.className&&(J=l.className+" "+J);m.className=J;l.render?l.render(m,h,l):m.appendChild(v.createTextNode(l.displayText||("string"==typeof l?l:l.text)));m.hintId=u}J=r.options.container||v.body;u=f.cursorCoords(r.options.alignWithWord?h.from:null);var X=u.left,F=u.bottom,ha=!0,T=m=0;if(J!==v.body){l=-1!==["absolute","relative",
|
|||
|
"fixed"].indexOf(x.getComputedStyle(J).position)?J:J.offsetParent;var Z=l.getBoundingClientRect();T=v.body.getBoundingClientRect();m=Z.left-T.left-l.scrollLeft;T=Z.top-T.top-l.scrollTop}L.style.left=X-m+"px";L.style.top=F-T+"px";l=x.innerWidth||Math.max(v.body.offsetWidth,v.documentElement.offsetWidth);var E=x.innerHeight||Math.max(v.body.offsetHeight,v.documentElement.offsetHeight);J.appendChild(L);J=L.getBoundingClientRect();var aa=J.bottom-E;Z=L.scrollHeight>L.clientHeight+1;var M=f.getScrollInfo();
|
|||
|
0<aa&&(aa=J.bottom-J.top,0<u.top-(u.bottom-J.top)-aa?(L.style.top=(F=u.top-aa-T)+"px",ha=!1):aa>E&&(L.style.height=E-5+"px",L.style.top=(F=u.bottom-J.top-T)+"px",T=f.getCursor(),h.from.ch!=T.ch&&(u=f.cursorCoords(T),L.style.left=(X=u.left-m)+"px",J=L.getBoundingClientRect())));T=J.right-l;0<T&&(J.right-J.left>l&&(L.style.width=l-5+"px",T-=J.right-J.left-l),L.style.left=(X=u.left-T-m)+"px");if(Z)for(u=L.firstChild;u;u=u.nextSibling)u.style.paddingRight=f.display.nativeBarWidth+"px";f.addKeyMap(this.keyMap=
|
|||
|
A(r,{moveFocus:function(D,O){k.changeActive(k.selectedHint+D,O)},setFocus:function(D){k.changeActive(D)},menuSize:function(){return k.screenAmount()},length:z.length,close:function(){r.close()},pick:function(){k.pick()},data:h}));if(r.options.closeOnUnfocus){var S;f.on("blur",this.onBlur=function(){S=setTimeout(function(){r.close()},100)});f.on("focus",this.onFocus=function(){clearTimeout(S)})}f.on("scroll",this.onScroll=function(){var D=f.getScrollInfo(),O=f.getWrapperElement().getBoundingClientRect(),
|
|||
|
P=F+M.top-D.top,da=P-(x.pageYOffset||(v.documentElement||v.body).scrollTop);ha||(da+=L.offsetHeight);if(da<=O.top||da>=O.bottom)return r.close();L.style.top=P+"px";L.style.left=X+M.left-D.left+"px"});q.on(L,"dblclick",function(D){(D=t(L,D.target||D.srcElement))&&null!=D.hintId&&(k.changeActive(D.hintId),k.pick())});q.on(L,"click",function(D){(D=t(L,D.target||D.srcElement))&&null!=D.hintId&&(k.changeActive(D.hintId),r.options.completeOnSingleClick&&k.pick())});q.on(L,"mousedown",function(){setTimeout(function(){f.focus()},
|
|||
|
20)});this.scrollToActive();q.signal(h,"select",z[this.selectedHint],L.childNodes[this.selectedHint]);return!0}function w(r,h){if(!r.somethingSelected())return h;r=[];for(var k=0;k<h.length;k++)h[k].supportsSelection&&r.push(h[k]);return r}function B(r,h,k,f){r.async?r(h,f,k):(r=r(h,k))&&r.then?r.then(f):f(r)}q.showHint=function(r,h,k){if(!h)return r.showHint(k);k&&k.async&&(h.async=!0);h={hint:h};if(k)for(var f in k)h[f]=k[f];return r.showHint(h)};q.defineExtension("showHint",function(r){var h=this.getCursor("start"),
|
|||
|
k=this.options.hintOptions,f={},v;for(v in K)f[v]=K[v];if(k)for(v in k)void 0!==k[v]&&(f[v]=k[v]);if(r)for(v in r)void 0!==r[v]&&(f[v]=r[v]);f.hint.resolve&&(f.hint=f.hint.resolve(this,h));r=f;h=this.listSelections();if(!(1<h.length)){if(this.somethingSelected()){if(!r.hint.supportsSelection)return;for(v=0;v<h.length;v++)if(h[v].head.line!=h[v].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();h=this.state.completionActive=new R(this,r);h.options.hint&&(q.signal(this,
|
|||
|
"startCompletion",this),h.update(!0))}});q.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var C=window.requestAnimationFrame||function(r){return setTimeout(r,1E3/60)},a=window.cancelAnimationFrame||clearTimeout;R.prototype={close:function(){this.active()&&(this.tick=this.cm.state.completionActive=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&q.signal(this.data,"close"),this.widget&&this.widget.close(),q.signal(this.cm,
|
|||
|
"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(r,h){var k=r.list[h],f=this;this.cm.operation(function(){k.hint?k.hint(f.cm,r,k):f.cm.replaceRange("string"==typeof k?k:k.text,k.from||r.from,k.to||r.to,"complete");q.signal(r,"pick",k);f.cm.scrollIntoView()});this.close()},cursorActivity:function(){this.debounce&&(a(this.debounce),this.debounce=0);var r=this.startPos;this.data&&(r=this.data.from);var h=this.cm.getCursor(),k=this.cm.getLine(h.line);
|
|||
|
if(h.line!=this.startPos.line||k.length-h.ch!=this.startLen-this.startPos.ch||h.ch<r.ch||this.cm.somethingSelected()||!h.ch||this.options.closeCharacters.test(k.charAt(h.ch-1)))this.close();else{var f=this;this.debounce=C(function(){f.update()});this.widget&&this.widget.disable()}},update:function(r){if(null!=this.tick){var h=this,k=++this.tick;B(this.options.hint,this.cm,this.options,function(f){h.tick==k&&h.finishUpdate(f,r)})}},finishUpdate:function(r,h){this.data&&q.signal(this.data,"update");
|
|||
|
h=this.widget&&this.widget.picked||h&&this.options.completeSingle;this.widget&&this.widget.close();(this.data=r)&&r.list.length&&(h&&1==r.list.length?this.pick(r,0):(this.widget=new d(this,r),q.signal(r,"shown")))}};d.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null;this.hints.parentNode.removeChild(this.hints);this.completion.cm.removeKeyMap(this.keyMap);var r=this.completion.cm;this.completion.options.closeOnUnfocus&&(r.off("blur",this.onBlur),r.off("focus",
|
|||
|
this.onFocus));r.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var r=this;this.keyMap={Enter:function(){r.picked=!0}};this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(r,h){r>=this.data.list.length?r=h?this.data.list.length-1:0:0>r&&(r=h?0:this.data.list.length-1);if(this.selectedHint!=r){if(h=this.hints.childNodes[this.selectedHint])h.className=h.className.replace(" CodeMirror-hint-active",
|
|||
|
"");h=this.hints.childNodes[this.selectedHint=r];h.className+=" CodeMirror-hint-active";this.scrollToActive();q.signal(this.data,"select",this.data.list[this.selectedHint],h)}},scrollToActive:function(){var r=this.completion.options.scrollMargin||0,h=this.hints.childNodes[Math.max(0,this.selectedHint-r)];r=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+r)];var k=this.hints.firstChild;h.offsetTop<this.hints.scrollTop?this.hints.scrollTop=h.offsetTop-k.offsetTop:r.offsetTop+
|
|||
|
r.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+k.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}};q.registerHelper("hint","auto",{resolve:function(r,h){var k=r.getHelpers(h,"hint"),f;return k.length?(r=function(v,x,L){function z(m){if(m==u.length)return x(null);B(u[m],v,L,function(l){l&&0<l.list.length?x(l):z(m+1)})}var u=w(v,k);z(0)},r.async=
|
|||
|
!0,r.supportsSelection=!0,r):(f=r.getHelper(r.getCursor(),"hintWords"))?function(v){return q.hint.fromList(v,{words:f})}:q.hint.anyword?function(v,x){return q.hint.anyword(v,x)}:function(){}}});q.registerHelper("hint","fromList",function(r,h){var k=r.getCursor(),f=r.getTokenAt(k);r=q.Pos(k.line,f.start);f.start<k.ch&&/\w/.test(f.string.charAt(k.ch-f.start-1))?f=f.string.substr(0,k.ch-f.start):(f="",r=k);for(var v=[],x=0;x<h.words.length;x++){var L=h.words[x];L.slice(0,f.length)==f&&v.push(L)}if(v.length)return{list:v,
|
|||
|
from:r,to:k}});q.commands.autocomplete=q.showHint;var K={hint:q.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};q.defineOption("hintOptions",null)})};
|
|||
|
shadow$provide[459]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("apl",function(){var R={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},A={"+":["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"]},t=/[\.\/⌿⍀¨⍣]/,d=/⍬/,w=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,B=/←/,C=/[⍝#].*$/,a=function(K){var r=!1;return function(h){r=h;return h===K?"\\"===r:!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(K,r){if(K.eatSpace())return null;var h=K.next();if('"'===h||"'"===h)return K.eatWhile(a(h)),K.next(),r.prev=!0,"string";if(/[\[{\(]/.test(h))return r.prev=
|
|||
|
!1,null;if(/[\]}\)]/.test(h))return r.prev=!0,null;if(d.test(h))return r.prev=!1,"niladic";if(/[¯\d]/.test(h))return r.func?(r.func=!1,r.prev=!1):r.prev=!0,K.eatWhile(/[\w\.]/),"number";if(t.test(h))return"operator apl-"+R[h];if(B.test(h))return"apl-arrow";if(w.test(h))return K="apl-",null!=A[h]&&(K=r.prev?K+A[h][1]:K+A[h][0]),r.func=!0,r.prev=!1,"function "+K;if(C.test(h))return K.skipToEnd(),"comment";if("∘"===h&&"."===K.peek())return K.next(),"function jot-dot";K.eatWhile(/[\w\$_]/);r.prev=!0;
|
|||
|
return"keyword"}}});q.defineMIME("text/apl","apl")})};
|
|||
|
shadow$provide[460]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t=A.match(/^\s*\S/);A.skipToEnd();return t?"error":null}q.defineMode("asciiarmor",function(){return{token:function(A,t){var d;if("top"==t.state)return A.sol()&&(d=A.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=d[1],"tag"):R(A);if("headers"==t.state){if(A.sol()&&
|
|||
|
A.match(/^\w+:/))return t.state="header","atom";if(A=R(A))t.state="body";return A}if("header"==t.state)return A.skipToEnd(),t.state="headers","string";if("body"==t.state){if(A.sol()&&(d=A.match(/^-----END (.*)?-----\s*$/))){if(d[1]!=t.type)return"error";t.state="end";return"tag"}if(A.eatWhile(/[A-Za-z0-9+\/=]/))return null;A.next();return"error"}if("end"==t.state)return R(A)},blankLine:function(A){"headers"==A.state&&(A.state="body")},startState:function(){return{state:"top",type:null}}}});q.defineMIME("application/pgp",
|
|||
|
"asciiarmor");q.defineMIME("application/pgp-encrypted","asciiarmor");q.defineMIME("application/pgp-keys","asciiarmor");q.defineMIME("application/pgp-signature","asciiarmor")})};
|
|||
|
shadow$provide[461]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMode("asn.1",function(A,t){function d(X,F){var ha=X.next();if('"'==ha||"'"==ha)return F.tokenize=w(ha),F.tokenize(X,F);if(/[\[\]\(\){}:=,;]/.test(ha))return J=ha,"punctuation";if("-"==ha&&X.eat("-"))return X.skipToEnd(),
|
|||
|
"comment";if(/\d/.test(ha))return X.eatWhile(/[\w\.]/),"number";if(l.test(ha))return X.eatWhile(l),"operator";X.eatWhile(/[\w\-]/);X=X.current();return r.propertyIsEnumerable(X)?"keyword":h.propertyIsEnumerable(X)?"variable cmipVerbs":k.propertyIsEnumerable(X)?"atom compareTypes":f.propertyIsEnumerable(X)?"comment status":v.propertyIsEnumerable(X)?"variable-3 tags":x.propertyIsEnumerable(X)?"builtin storage":L.propertyIsEnumerable(X)?"string-2 modifier":z.propertyIsEnumerable(X)?"atom accessTypes":
|
|||
|
"variable"}function w(X){return function(F,ha){for(var T=!1,Z,E=!1;null!=(Z=F.next());){if(Z==X&&!T){if(Z=F.peek())Z=Z.toLowerCase(),"b"!=Z&&"h"!=Z&&"o"!=Z||F.next();E=!0;break}T=!T&&"\\"==Z}if(E||!T&&!u)ha.tokenize=null;return"string"}}function B(X,F,ha,T,Z){this.indented=X;this.column=F;this.type=ha;this.align=T;this.prev=Z}function C(X,F,ha){var T=X.indented;X.context&&"statement"==X.context.type&&(T=X.context.indented);return X.context=new B(T,F,ha,null,X.context)}function a(X){var F=X.context.type;
|
|||
|
if(")"==F||"]"==F||"}"==F)X.indented=X.context.indented;return X.context=X.context.prev}var K=A.indentUnit,r=t.keywords||{},h=t.cmipVerbs||{},k=t.compareTypes||{},f=t.status||{},v=t.tags||{},x=t.storage||{},L=t.modifier||{},z=t.accessTypes||{},u=t.multiLineStrings,m=!1!==t.indentStatements,l=/[\|\^]/,J;return{startState:function(X){return{tokenize:null,context:new B((X||0)-K,0,"top",!1),indented:0,startOfLine:!0}},token:function(X,F){var ha=F.context;X.sol()&&(null==ha.align&&(ha.align=!1),F.indented=
|
|||
|
X.indentation(),F.startOfLine=!0);if(X.eatSpace())return null;J=null;var T=(F.tokenize||d)(X,F);if("comment"==T)return T;null==ha.align&&(ha.align=!0);if(";"!=J&&":"!=J&&","!=J||"statement"!=ha.type)if("{"==J)C(F,X.column(),"}");else if("["==J)C(F,X.column(),"]");else if("("==J)C(F,X.column(),")");else if("}"==J){for(;"statement"==ha.type;)ha=a(F);for("}"==ha.type&&(ha=a(F));"statement"==ha.type;)ha=a(F)}else J==ha.type?a(F):m&&(("}"==ha.type||"top"==ha.type)&&";"!=J||"statement"==ha.type&&"newstatement"==
|
|||
|
J)&&C(F,X.column(),"statement");else a(F);F.startOfLine=!1;return T},electricChars:"{}",lineComment:"--",fold:"brace"}});q.defineMIME("text/x-ttcn-asn",{name:"asn.1",keywords:R("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),
|
|||
|
cmipVerbs:R("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:R("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:R("current deprecated mandatory obsolete"),tags:R("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:R("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminAtring TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
|
|||
|
modifier:R("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:R("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0})})};
|
|||
|
shadow$provide[462]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("asterisk",function(){function R(w,B){var C=w.next();if(B.blockComment)return"-"==C&&w.match("-;",!0)?B.blockComment=!1:w.skipTo("--;")?(w.next(),w.next(),w.next(),B.blockComment=!1):w.skipToEnd(),"comment";if(";"==C){if(w.match("--",!0)&&!w.match("-",!1))return B.blockComment=!0,"comment";
|
|||
|
w.skipToEnd();return"comment"}if("["==C)return w.skipTo("]"),w.eat("]"),"header";if('"'==C)return w.skipTo('"'),"string";if("'"==C)return w.skipTo("'"),"string-2";if("#"==C){w.eatWhile(/\w/);var a=w.current();if(-1!==t.indexOf(a))return w.skipToEnd(),"strong"}if("$"==C&&"{"==w.peek())return w.skipTo("}"),w.eat("}"),"variable-3";w.eatWhile(/\w/);a=w.current();if(-1!==A.indexOf(a)){B.extenStart=!0;switch(a){case "same":B.extenSame=!0;break;case "include":case "switch":case "ignorepat":B.extenInclude=
|
|||
|
!0}return"atom"}}var A=["exten","same","include","ignorepat","switch"],t=["#include","#exec"],d="addqueuemember adsiprog aelsub agentlogin agentmonitoroutgoing agi alarmreceiver amd answer authenticate background backgrounddetect bridge busy callcompletioncancel callcompletionrequest celgenuserevent changemonitor chanisavail channelredirect chanspy clearhash confbridge congestion continuewhile controlplayback dahdiacceptr2call dahdibarge dahdiras dahdiscan dahdisendcallreroutingfacility dahdisendkeypadfacility datetime dbdel dbdeltree deadagi dial dictate directory disa dumpchan eagi echo endwhile exec execif execiftime exitwhile extenspy externalivr festival flash followme forkcdr getcpeid gosub gosubif goto gotoif gotoiftime hangup iax2provision ices importvar incomplete ivrdemo jabberjoin jabberleave jabbersend jabbersendgroup jabberstatus jack log macro macroexclusive macroexit macroif mailboxexists meetme meetmeadmin meetmechanneladmin meetmecount milliwatt minivmaccmess minivmdelete minivmgreet minivmmwi minivmnotify minivmrecord mixmonitor monitor morsecode mp3player mset musiconhold nbscat nocdr noop odbc odbc odbcfinish originate ospauth ospfinish osplookup ospnext page park parkandannounce parkedcall pausemonitor pausequeuemember pickup pickupchan playback playtones privacymanager proceeding progress queue queuelog raiseexception read readexten readfile receivefax receivefax receivefax record removequeuemember resetcdr retrydial return ringing sayalpha saycountedadj saycountednoun saycountpl saydigits saynumber sayphonetic sayunixtime senddtmf sendfax sendfax sendfax sendimage sendtext sendurl set setamaflags setcallerpres setmusiconhold sipaddheader sipdtmfmode sipremoveheader skel slastation slatrunk sms softhangup speechactivategrammar speechbackground speechcreate speechdeactivategrammar speechdestroy speechloadgrammar speechprocessingsound speechstart speechunloadgrammar stackpop startmusiconhold stopmixmonitor stopmonitor stopmusiconhold stopplaytones system testclient testserver transfer tryexec trysystem unpausemonitor unpausequeuemember userevent verbose vmauthenticate vmsayname voicemail voicemailmain wait waitexten waitfornoise waitforring waitforsilence waitmusiconhold waituntil while zapateller".split(" ");
|
|||
|
return{startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(w,B){if(w.eatSpace())return null;if(B.extenStart){w.eatWhile(/[^\s]/);var C=w.current();if(/^=>?$/.test(C))return B.extenExten=!0,B.extenStart=!1,"strong";B.extenStart=!1;w.skipToEnd();return"error"}if(B.extenExten)return B.extenExten=!1,B.extenPriority=!0,w.eatWhile(/[^,]/),B.extenInclude&&(w.skipToEnd(),B.extenPriority=!1,B.extenInclude=
|
|||
|
!1),B.extenSame&&(B.extenPriority=!1,B.extenSame=!1,B.extenApplication=!0),"tag";if(B.extenPriority){B.extenPriority=!1;B.extenApplication=!0;w.next();if(B.extenSame)return null;w.eatWhile(/[^,]/);return"number"}if(B.extenApplication){w.eatWhile(/,/);C=w.current();if(","===C)return null;w.eatWhile(/\w/);C=w.current().toLowerCase();B.extenApplication=!1;if(-1!==d.indexOf(C))return"def strong"}else return R(w,B);return null},blockCommentStart:";--",blockCommentEnd:"--;",lineComment:";"}});q.defineMIME("text/x-asterisk",
|
|||
|
"asterisk")})};
|
|||
|
shadow$provide[463]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){var R="\x3e\x3c+-.,[]".split("");q.defineMode("brainfuck",function(){return{startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(A,t){if(A.eatSpace())return null;A.sol()&&(t.commentLine=!1);var d=A.next().toString();if(-1!==R.indexOf(d)){if(!0===t.commentLine)return A.eol()&&
|
|||
|
(t.commentLine=!1),"comment";if("]"===d||"["===d)return"["===d?t.left++:t.right++,"bracket";if("+"===d||"-"===d)return"keyword";if("\x3c"===d||"\x3e"===d)return"atom";if("."===d||","===d)return"def"}else return t.commentLine=!0,A.eol()&&(t.commentLine=!1),"comment";A.eol()&&(t.commentLine=!1)}}});q.defineMIME("text/x-brainfuck","brainfuck")})};
|
|||
|
shadow$provide[464]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(Z,E,aa,M,S,D){this.indented=Z;this.column=E;this.type=aa;this.info=M;this.align=S;this.prev=D}function A(Z,E,aa,M){var S=Z.indented;Z.context&&"statement"==Z.context.type&&"statement"!=aa&&(S=Z.context.indented);return Z.context=new R(S,E,aa,M,null,Z.context)}function t(Z){var E=Z.context.type;
|
|||
|
if(")"==E||"]"==E||"}"==E)Z.indented=Z.context.indented;return Z.context=Z.context.prev}function d(Z,E,aa){if("variable"==E.prevToken||"type"==E.prevToken||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(Z.string.slice(0,aa))||E.typeAtEndOfLine&&Z.column()==Z.indentation())return!0}function w(Z){for(;;){if(!Z||"top"==Z.type)return!0;if("}"==Z.type&&"namespace"!=Z.prev.info)return!1;Z=Z.prev}}function B(Z){var E={};Z=Z.split(" ");for(var aa=0;aa<Z.length;++aa)E[Z[aa]]=!0;return E}function C(Z,E){return"function"===
|
|||
|
typeof Z?Z(E):Z.propertyIsEnumerable(E)}function a(Z){return C(F,Z)||/.+_t$/.test(Z)}function K(Z){return a(Z)||C(ha,Z)}function r(Z,E){if(!E.startOfLine)return!1;for(var aa,M=null;aa=Z.peek();){if("\\"==aa&&Z.match(/^.$/)){M=r;break}else if("/"==aa&&Z.match(/^\/[\/\*]/,!1))break;Z.next()}E.tokenize=M;return"meta"}function h(Z,E){return"type"==E.prevToken?"type":!1}function k(Z){return!Z||2>Z.length||"_"!=Z[0]?!1:"_"==Z[1]||Z[1]!==Z[1].toLowerCase()}function f(Z){Z.eatWhile(/[\w\.']/);return"number"}
|
|||
|
function v(Z,E){Z.backUp(1);if(Z.match(/(R|u8R|uR|UR|LR)/)){var aa=Z.match(/"([^\s\\()]{0,16})\(/);if(!aa)return!1;E.cpp11RawStringDelim=aa[1];E.tokenize=z;return z(Z,E)}if(Z.match(/(u8|u|U|L)/))return Z.match(/["']/,!1)?"string":!1;Z.next();return!1}function x(Z){return(Z=/(\w+)::~?(\w+)$/.exec(Z))&&Z[1]==Z[2]}function L(Z,E){for(var aa;null!=(aa=Z.next());)if('"'==aa&&!Z.eat('"')){E.tokenize=null;break}return"string"}function z(Z,E){var aa=E.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$\x26");Z.match(new RegExp(".*?\\)"+
|
|||
|
aa+'"'))?E.tokenize=null:Z.skipToEnd();return"string"}function u(Z,E){function aa(D){if(D)for(var O in D)D.hasOwnProperty(O)&&M.push(O)}"string"==typeof Z&&(Z=[Z]);var M=[];aa(E.keywords);aa(E.types);aa(E.builtin);aa(E.atoms);M.length&&(E.helperType=Z[0],q.registerHelper("hintWords",Z[0],M));for(var S=0;S<Z.length;++S)q.defineMIME(Z[S],E)}function m(Z,E){for(var aa=!1;!Z.eol();){if(!aa&&Z.match('"""')){E.tokenize=null;break}aa="\\"==Z.next()&&!aa}return"string"}function l(Z){return function(E,aa){for(var M;M=
|
|||
|
E.next();)if("*"==M&&E.eat("/"))if(1==Z){aa.tokenize=null;break}else return aa.tokenize=l(Z-1),aa.tokenize(E,aa);else if("/"==M&&E.eat("*"))return aa.tokenize=l(Z+1),aa.tokenize(E,aa);return"comment"}}function J(Z){return function(E,aa){for(var M=!1,S,D=!1;!E.eol();){if(!Z&&!M&&E.match('"')){D=!0;break}if(Z&&E.match('"""')){D=!0;break}S=E.next();!M&&"$"==S&&E.match("{")&&E.skipTo("}");M=!M&&"\\"==S&&!Z}if(D||!Z)aa.tokenize=null;return"string"}}function X(Z){return function(E,aa){for(var M=!1,S,D=
|
|||
|
!1;!E.eol();){if(!M&&E.match('"')&&("single"==Z||E.match('""'))){D=!0;break}if(!M&&E.match("``")){T=X(Z);D=!0;break}S=E.next();M="single"==Z&&!M&&"\\"==S}D&&(aa.tokenize=null);return"string"}}q.defineMode("clike",function(Z,E){function aa(Na,oa){var Ca=Na.next();if(ea[Ca]){var sa=ea[Ca](Na,oa);if(!1!==sa)return sa}if('"'==Ca||"'"==Ca)return oa.tokenize=M(Ca),oa.tokenize(Na,oa);if(Ha.test(Ca))return eb=Ca,null;if(Ua.test(Ca)){Na.backUp(1);if(Na.match(Ea))return"number";Na.next()}if("/"==Ca){if(Na.eat("*"))return oa.tokenize=
|
|||
|
S,S(Na,oa);if(Na.eat("/"))return Na.skipToEnd(),"comment"}if(Oa.test(Ca)){for(;!Na.match(/^\/[\/*]/,!1)&&Na.eat(Oa););return"operator"}Na.eatWhile(Xa);if(ya)for(;Na.match(ya);)Na.eatWhile(Xa);Na=Na.current();return C(ba,Na)?(C(N,Na)&&(eb="newstatement"),C(ca,Na)&&(db=!0),"keyword"):C(H,Na)?"type":C(ja,Na)||Ma&&Ma(Na)?(C(N,Na)&&(eb="newstatement"),"builtin"):C(ia,Na)?"atom":"variable"}function M(Na){return function(oa,Ca){for(var sa=!1,Aa,Ja=!1;null!=(Aa=oa.next());){if(Aa==Na&&!sa){Ja=!0;break}sa=
|
|||
|
!sa&&"\\"==Aa}if(Ja||!sa&&!qa)Ca.tokenize=null;return"string"}}function S(Na,oa){for(var Ca=!1,sa;sa=Na.next();){if("/"==sa&&Ca){oa.tokenize=null;break}Ca="*"==sa}return"comment"}function D(Na,oa){E.typeFirstDefinitions&&Na.eol()&&w(oa.context)&&(oa.typeAtEndOfLine=d(Na,oa,Na.pos))}var O=Z.indentUnit,P=E.statementIndentUnit||O,da=E.dontAlignCalls,ba=E.keywords||{},H=E.types||{},ja=E.builtin||{},N=E.blockKeywords||{},ca=E.defKeywords||{},ia=E.atoms||{},ea=E.hooks||{},qa=E.multiLineStrings,za=!1!==
|
|||
|
E.indentStatements,ya=E.namespaceSeparator,Ha=E.isPunctuationChar||/[\[\]{}\(\),;:\.]/,Ua=E.numberStart||/[\d\.]/,Ea=E.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Oa=E.isOperatorChar||/[+\-*&%=<>!?|\/]/,Xa=E.isIdentifierChar||/[\w\$_\xa1-\uffff]/,Ma=E.isReservedIdentifier||!1,eb,db;return{startState:function(Na){return{tokenize:null,context:new R((Na||0)-O,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Na,oa){var Ca=oa.context;Na.sol()&&
|
|||
|
(null==Ca.align&&(Ca.align=!1),oa.indented=Na.indentation(),oa.startOfLine=!0);if(Na.eatSpace())return D(Na,oa),null;eb=db=null;var sa=(oa.tokenize||aa)(Na,oa);if("comment"==sa||"meta"==sa)return sa;null==Ca.align&&(Ca.align=!0);if(";"==eb||":"==eb||","==eb&&Na.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==oa.context.type;)t(oa);else if("{"==eb)A(oa,Na.column(),"}");else if("["==eb)A(oa,Na.column(),"]");else if("("==eb)A(oa,Na.column(),")");else if("}"==eb){for(;"statement"==Ca.type;)Ca=t(oa);for("}"==
|
|||
|
Ca.type&&(Ca=t(oa));"statement"==Ca.type;)Ca=t(oa)}else eb==Ca.type?t(oa):za&&(("}"==Ca.type||"top"==Ca.type)&&";"!=eb||"statement"==Ca.type&&"newstatement"==eb)&&A(oa,Na.column(),"statement",Na.current());"variable"==sa&&("def"==oa.prevToken||E.typeFirstDefinitions&&d(Na,oa,Na.start)&&w(oa.context)&&Na.match(/^\s*\(/,!1))&&(sa="def");ea.token&&(Ca=ea.token(Na,oa,sa),void 0!==Ca&&(sa=Ca));"def"==sa&&!1===E.styleDefs&&(sa="variable");oa.startOfLine=!1;oa.prevToken=db?"def":sa||eb;D(Na,oa);return sa},
|
|||
|
indent:function(Na,oa){if(Na.tokenize!=aa&&null!=Na.tokenize||Na.typeAtEndOfLine)return q.Pass;var Ca=Na.context,sa=oa&&oa.charAt(0),Aa=sa==Ca.type;"statement"==Ca.type&&"}"==sa&&(Ca=Ca.prev);if(E.dontIndentStatements)for(;"statement"==Ca.type&&E.dontIndentStatements.test(Ca.info);)Ca=Ca.prev;if(ea.indent&&(Na=ea.indent(Na,Ca,oa,O),"number"==typeof Na))return Na;Na=Ca.prev&&"switch"==Ca.prev.info;if(E.allmanIndentation&&/[{(]/.test(sa)){for(;"top"!=Ca.type&&"}"!=Ca.type;)Ca=Ca.prev;return Ca.indented}return"statement"==
|
|||
|
Ca.type?Ca.indented+("{"==sa?0:P):!Ca.align||da&&")"==Ca.type?")"!=Ca.type||Aa?Ca.indented+(Aa?0:O)+(Aa||!Na||/^(?:case|default)\b/.test(oa)?0:O):Ca.indented+P:Ca.column+(Aa?0:1)},electricInput:!1!==E.indentSwitch?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});var F=B("int long char short double float unsigned signed void bool"),ha=B("SEL instancetype id Class Protocol BOOL");u(["text/x-csrc",
|
|||
|
"text/x-c","text/x-chdr"],{name:"clike",keywords:B("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:a,blockKeywords:B("case do else for if switch while struct enum union"),defKeywords:B("struct enum union"),typeFirstDefinitions:!0,atoms:B("NULL true false"),isReservedIdentifier:k,hooks:{"#":r,"*":h},modeProps:{fold:["brace","include"]}});u(["text/x-c++src","text/x-c++hdr"],
|
|||
|
{name:"clike",keywords:B("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:a,blockKeywords:B("case do else for if switch while struct enum union class try catch"),defKeywords:B("struct enum union class namespace"),typeFirstDefinitions:!0,atoms:B("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:k,hooks:{"#":r,"*":h,u:v,U:v,L:v,R:v,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(Z,E,aa){if("variable"==aa&&"("==Z.peek()&&(";"==E.prevToken||null==E.prevToken||"}"==E.prevToken)&&x(Z.current()))return"def"}},
|
|||
|
namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});u("text/x-java",{name:"clike",keywords:B("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:B("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
|
|||
|
blockKeywords:B("catch class do else finally for if switch try while"),defKeywords:B("class interface enum @interface"),typeFirstDefinitions:!0,atoms:B("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(Z){if(Z.match("interface",!1))return!1;Z.eatWhile(/[\w\$_]/);return"meta"}},modeProps:{fold:["brace","import"]}});u("text/x-csharp",{name:"clike",keywords:B("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 interface internal is lock namespace new operator out override params private protected public readonly ref 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:B("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:B("catch class do else finally for foreach if struct switch try while"),defKeywords:B("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:B("true false null"),hooks:{"@":function(Z,E){if(Z.eat('"'))return E.tokenize=
|
|||
|
L,L(Z,E);Z.eatWhile(/[\w\$_]/);return"meta"}}});u("text/x-scala",{name:"clike",keywords:B("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:B("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:B("catch class enum do else finally for forSome if match switch try while"),defKeywords:B("class enum def object package trait type val var"),atoms:B("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(Z){Z.eatWhile(/[\w\$_]/);return"meta"},'"':function(Z,E){if(!Z.match('""'))return!1;E.tokenize=m;return E.tokenize(Z,E)},"'":function(Z){Z.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"\x3d":function(Z,E){var aa=
|
|||
|
E.context;return"}"==aa.type&&aa.align&&Z.eat("\x3e")?(E.context=new R(aa.indented,aa.column,aa.type,aa.info,null,aa.prev),"operator"):!1},"/":function(Z,E){if(!Z.eat("*"))return!1;E.tokenize=l(1);return E.tokenize(Z,E)}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});u("text/x-kotlin",{name:"clike",keywords:B("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"),
|
|||
|
types:B("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:B("catch class do else finally for if where try while enum"),defKeywords:B("class val var object interface fun"),atoms:B("true false null this"),hooks:{"@":function(Z){Z.eatWhile(/[\w\$_]/);return"meta"},"*":function(Z,E){return"."==E.prevToken?"variable":"operator"},'"':function(Z,E){E.tokenize=J(Z.match('""'));return E.tokenize(Z,E)},"/":function(Z,E){if(!Z.eat("*"))return!1;
|
|||
|
E.tokenize=l(1);return E.tokenize(Z,E)},indent:function(Z,E,aa,M){var S=aa&&aa.charAt(0);if(("}"==Z.prevToken||")"==Z.prevToken)&&""==aa)return Z.indented;if("operator"==Z.prevToken&&"}"!=aa&&"}"!=Z.context.type||"variable"==Z.prevToken&&"."==S||("}"==Z.prevToken||")"==Z.prevToken)&&"."==S)return 2*M+E.indented;if(E.align&&"}"==E.type)return E.indented+(Z.context.type==(aa||"").charAt(0)?0:M)}},modeProps:{closeBrackets:{triples:'"'}}});u(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:B("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
|
|||
|
types:B("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:B("for while do if else struct"),builtin:B("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:B("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
|
|||
|
indentSwitch:!1,hooks:{"#":r},modeProps:{fold:["brace","include"]}});u("text/x-nesc",{name:"clike",keywords:B("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:a,blockKeywords:B("case do else for if switch while struct enum union"),
|
|||
|
atoms:B("null true false"),hooks:{"#":r},modeProps:{fold:["brace","include"]}});u("text/x-objectivec",{name:"clike",keywords:B("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:K,builtin:B("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:B("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:B("struct enum union @interface @implementation @protocol @class"),
|
|||
|
dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:B("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:k,hooks:{"#":r,"*":h},modeProps:{fold:["brace","include"]}});u("text/x-objectivec++",{name:"clike",keywords:B("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:K,builtin:B("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:B("case do else for if switch while struct enum union @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:B("struct enum union @interface @implementation @protocol @class class namespace"),
|
|||
|
dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:B("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:k,hooks:{"#":r,"*":h,u:v,U:v,L:v,R:v,0:f,1:f,2:f,3:f,4:f,5:f,6:f,7:f,8:f,9:f,token:function(Z,E,aa){if("variable"==aa&&"("==Z.peek()&&(";"==E.prevToken||null==E.prevToken||"}"==E.prevToken)&&x(Z.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}});u("text/x-squirrel",{name:"clike",keywords:B("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
|
|||
|
types:a,blockKeywords:B("case catch class else for foreach if switch try while"),defKeywords:B("function local class"),typeFirstDefinitions:!0,atoms:B("true false null"),hooks:{"#":r},modeProps:{fold:["brace","include"]}});var T=null;u("text/x-ceylon",{name:"clike",keywords:B("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(Z){Z=Z.charAt(0);return Z===Z.toUpperCase()&&Z!==Z.toLowerCase()},blockKeywords:B("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:B("class dynamic function interface module object package value"),builtin:B("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:B("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(Z){Z.eatWhile(/[\w\$_]/);return"meta"},'"':function(Z,E){E.tokenize=X(Z.match('""')?"triple":"single");return E.tokenize(Z,E)},"`":function(Z,E){if(!T||!Z.match("`"))return!1;E.tokenize=
|
|||
|
T;T=null;return E.tokenize(Z,E)},"'":function(Z){Z.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(Z,E,aa){if(("variable"==aa||"type"==aa)&&"."==E.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})};
|
|||
|
shadow$provide[465]=function(wa,W,Ta,I){(function(q){"object"===typeof I&&"object"===typeof Ta?q(W(454)):"function"===typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("clojure",function(R){function A(u,m){if(u.eatSpace()||u.eat(","))return["space",null];if(u.match(x))return[null,"number"];if(u.match(L))return[null,"string-2"];if(u.eat(/^"/))return(m.tokenize=t)(u,m);if(u.eat(/^[(\[{]/))return["open","bracket"];if(u.eat(/^[)\]}]/))return["close",
|
|||
|
"bracket"];if(u.eat(/^;/))return u.skipToEnd(),["space","comment"];if(u.eat(/^[#'@^`~]/))return[null,"meta"];var l=u.match(z);l=l&&l[0];return l?"comment"===l&&"("===m.lastToken?(m.tokenize=d)(u,m):B(l,r)||":"===l.charAt(0)?["symbol","atom"]:B(l,h)||B(l,k)?["symbol","keyword"]:"("===m.lastToken?["symbol","builtin"]:["symbol","variable"]:(u.next(),u.eatWhile(function(J){return!B(J,v)}),[null,"error"])}function t(u,m){for(var l=!1,J;J=u.next();){if('"'===J&&!l){m.tokenize=A;break}l=!l&&"\\"===J}return[null,
|
|||
|
"string"]}function d(u,m){for(var l=1,J;J=u.next();)if(")"===J&&l--,"("===J&&l++,0===l){u.backUp(1);m.tokenize=A;break}return["space","comment"]}function w(u){for(var m={},l=0;l<u.length;++l)m[u[l]]=!0;return m}function B(u,m){if(m instanceof RegExp)return m.test(u);if(m instanceof Object)return m.propertyIsEnumerable(u)}var C=["false","nil","true"],a=". catch def do if monitor-enter monitor-exit new quote recur set! throw try var".split(" "),K="* *' *1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* *command-line-args* *compile-files* *compile-path* *compiler-options* *data-readers* *default-data-reader-fn* *e *err* *file* *flush-on-newline* *fn-loader* *in* *math-context* *ns* *out* *print-dup* *print-length* *print-level* *print-meta* *print-namespace-maps* *print-readably* *read-eval* *reader-resolver* *source-path* *suppress-read* *unchecked-math* *use-context-classloader* *verbose-defrecords* *warn-on-reflection* + +' - -' -\x3e -\x3e\x3e -\x3eArrayChunk -\x3eEduction -\x3eVec -\x3eVecNode -\x3eVecSeq -cache-protocol-fn -reset-methods .. / \x3c \x3c\x3d \x3d \x3d\x3d \x3e \x3e\x3d EMPTY-NODE Inst StackTraceElement-\x3evec Throwable-\x3emap accessor aclone add-classpath add-watch agent agent-error agent-errors aget alength alias all-ns alter alter-meta! alter-var-root amap ancestors and any? apply areduce array-map as-\x3e aset aset-boolean aset-byte aset-char aset-double aset-float aset-int aset-long aset-short assert assoc assoc! assoc-in associative? atom await await-for await1 bases bean bigdec bigint biginteger binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array boolean? booleans bound-fn bound-fn* bound? bounded-count butlast byte byte-array bytes bytes? case cast cat char char-array char-escape-string char-name-string char? chars chunk chunk-append chunk-buffer chunk-cons chunk-first chunk-next chunk-rest chunked-seq? class class? clear-agent-errors clojure-version coll? comment commute comp comparator compare compare-and-set! compile complement completing concat cond cond-\x3e cond-\x3e\x3e condp conj conj! cons constantly construct-proxy contains? count counted? create-ns create-struct cycle dec dec' decimal? declare dedupe default-data-readers definline definterface defmacro defmethod defmulti defn defn- defonce defprotocol defrecord defstruct deftype delay delay? deliver denominator deref derive descendants destructure disj disj! dissoc dissoc! distinct distinct? doall dorun doseq dosync dotimes doto double double-array double? doubles drop drop-last drop-while eduction empty empty? ensure ensure-reduced enumeration-seq error-handler error-mode eval even? every-pred every? ex-data ex-info extend extend-protocol extend-type extenders extends? false? ffirst file-seq filter filterv find find-keyword find-ns find-protocol-impl find-protocol-method find-var first flatten float float-array float? floats flush fn fn? fnext fnil for force format frequencies future future-call future-cancel future-cancelled? future-done? future? gen-class gen-interface gensym get get-in get-method get-proxy-class get-thread-bindings get-validator group-by halt-when hash hash-combine hash-map hash-ordered-coll hash-set hash-unordered-coll ident? identical? identity if-let if-not if-some ifn? import in-ns inc inc' indexed? init-proxy inst-ms inst-ms* inst? instance? int int-array int? integer? interleave intern interpose into into-array ints io! isa? iterate iterator-seq juxt keep keep-indexed key keys keyword keyword? last lazy-cat lazy-seq let letfn line-seq list list* list? load load-file load-reader load-string loaded-libs locking long long-array longs loop macroexpand macroexpand-1 make-array make-hierarchy map map-entry? map-indexed map? mapcat mapv max max-key memfn memoize merge merge-with meta method-sig methods min min-key mix-collection-hash mod munge name namespace namespace-munge nat-int? neg-int? neg? newline next nfirst nil? nnext not not-any? not-empty not-every? not\x3d ns ns-aliases ns-imports ns-interns ns-map
|
|||
|
q.registerHelper("hintWords","clojure",[].concat(C,a,K));var r=w(C),h=w(a),k=w(K),f=w("-\x3e -\x3e\x3e as-\x3e binding bound-fn case catch comment cond cond-\x3e cond-\x3e\x3e condp def definterface defmethod defn defmacro defprotocol defrecord defstruct deftype do doseq dotimes doto extend extend-protocol extend-type fn for future if if-let if-not if-some let letfn locking loop ns proxy reify struct-map some-\x3e some-\x3e\x3e try when when-first when-let when-not when-some while with-bindings with-bindings* with-in-str with-loading-context with-local-vars with-meta with-open with-out-str with-precision with-redefs with-redefs-fn".split(" ")),
|
|||
|
v=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,x=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,L=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,z=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
|||
|
return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastToken:null,tokenize:A}},token:function(u,m){u.sol()&&"number"!==typeof m.ctx.indentTo&&(m.ctx.indentTo=m.ctx.start+1);var l=m.tokenize(u,m),J=l[0];l=l[1];var X=u.current();"space"!==J&&("("===m.lastToken&&null===m.ctx.indentTo?"symbol"===J&&B(X,f)?m.ctx.indentTo=m.ctx.start+R.indentUnit:m.ctx.indentTo="next":"next"===m.ctx.indentTo&&(m.ctx.indentTo=u.column()),m.lastToken=X);"open"===J?m.ctx={prev:m.ctx,start:u.column(),indentTo:null}:
|
|||
|
"close"===J&&(m.ctx=m.ctx.prev||m.ctx);return l},indent:function(u){var m=u.ctx.indentTo;return"number"===typeof m?m:u.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}});q.defineMIME("text/x-clojure","clojure");q.defineMIME("text/x-clojurescript","clojure");q.defineMIME("application/edn","clojure")})};
|
|||
|
shadow$provide[466]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("cmake",function(){function R(d,w){for(var B,C,a=!1;!d.eol()&&(B=d.next())!=w.pending;){if("$"===B&&"\\"!=C&&'"'==w.pending){a=!0;break}C=B}a&&d.backUp(1);w.continueString=B==w.pending?!1:!0;return"string"}function A(d,w){var B=d.next();if("$"===B)return d.match(t)?"variable-2":"variable";
|
|||
|
if(w.continueString)return d.backUp(1),R(d,w);if(d.match(/(\s+)?\w+\(/)||d.match(/(\s+)?\w+ \(/))return d.backUp(1),"def";if("#"==B)return d.skipToEnd(),"comment";if("'"==B||'"'==B)return w.pending=B,R(d,w);if("("==B||")"==B)return"bracket";if(B.match(/[0-9]/))return"number";d.eatWhile(/[\w-]/);return null}var t=/({)?[a-zA-Z0-9_]+(})?/;return{startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(d,w){return d.eatSpace()?null:A(d,w)}}});q.defineMIME("text/x-cmake",
|
|||
|
"cmake")})};
|
|||
|
shadow$provide[467]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("cobol",function(){function R(h){var k={};h=h.split(" ");for(var f=0;f<h.length;++f)k[h[f]]=!0;return k}var A=R("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),t=R("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUS
|
|||
|
d=R("- * ** / + \x3c \x3c\x3d \x3d \x3e \x3e\x3d "),w=/\d/,B=/[\d:]/,C=/[0-9a-f]/i,a=/[+-]/,K=/e/i,r=/[\w*+\-]/;return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(h,k){null==k.indentStack&&h.sol()&&(k.indentation=6);if(h.eatSpace())return null;switch(k.mode){case "string":for(var f;null!=(f=h.next());)if('"'==f||"'"==f){k.mode=!1;break}h="string";break;default:var v=h.next();f=h.column();if(0<=f&&5>=f)h="def";else if(72<=f&&79>=f)h.skipToEnd(),h="header";else if("*"==
|
|||
|
v&&6==f)h.skipToEnd(),h="comment";else if('"'==v||"'"==v)h=k.mode="string";else if("'"!=v||B.test(h.peek()))if("."==v)h="link";else if(k=v,"0"===k&&h.eat(/x/i)?(h.eatWhile(C),k=!0):("+"!=k&&"-"!=k||!w.test(h.peek())||(h.eat(a),k=h.next()),w.test(k)?(h.eat(k),h.eatWhile(w),"."==h.peek()&&(h.eat("."),h.eatWhile(w)),h.eat(K)&&(h.eat(a),h.eatWhile(w)),k=!0):k=!1),k)h="number";else{if(h.current().match(r))for(;71>f&&void 0!==h.eat(r);)f++;h=t&&t.propertyIsEnumerable(h.current().toUpperCase())?"keyword":
|
|||
|
d&&d.propertyIsEnumerable(h.current().toUpperCase())?"builtin":A&&A.propertyIsEnumerable(h.current().toUpperCase())?"atom":null}else h="atom"}return h},indent:function(h){return null==h.indentStack?h.indentation:h.indentStack.indent}}});q.defineMIME("text/x-cobol","cobol")})};
|
|||
|
shadow$provide[468]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("coffeescript",function(R,A){function t(m){return new RegExp("^(("+m.join(")|(")+"))\\b")}function d(m,l){if(m.sol()){null===l.scope.align&&(l.scope.align=!1);var J=l.scope.offset;if(m.eatSpace())return m=m.indentation(),m>J&&"coffee"==l.scope.type?"indent":m<J?"dedent":null;0<J&&a(m,
|
|||
|
l)}if(m.eatSpace())return null;J=m.peek();if(m.match("####"))return m.skipToEnd(),"comment";if(m.match("###"))return l.tokenize=B,l.tokenize(m,l);if("#"===J)return m.skipToEnd(),"comment";if(m.match(/^-?[0-9\.]/,!1)){J=!1;m.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(J=!0);m.match(/^-?\d+\.\d*/)&&(J=!0);m.match(/^-?\.\d+/)&&(J=!0);if(J)return"."==m.peek()&&m.backUp(1),"number";J=!1;m.match(/^-?0x[0-9a-f]+/i)&&(J=!0);m.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(J=!0);m.match(/^-?0(?![\dx])/i)&&(J=!0);if(J)return"number"}if(m.match(L))return l.tokenize=
|
|||
|
w(m.current(),!1,"string"),l.tokenize(m,l);if(m.match(z)){if("/"!=m.current()||m.match(/^.*\//,!1))return l.tokenize=w(m.current(),!0,"string-2"),l.tokenize(m,l);m.backUp(1)}if(m.match(K)||m.match(f))return"operator";if(m.match(r))return"punctuation";if(m.match(u))return"atom";if(m.match(k)||l.prop&&m.match(h))return"property";if(m.match(x))return"keyword";if(m.match(h))return"variable";m.next();return"error"}function w(m,l,J){return function(X,F){for(;!X.eol();)if(X.eatWhile(/[^'"\/\\]/),X.eat("\\")){if(X.next(),
|
|||
|
l&&X.eol())return J}else{if(X.match(m))return F.tokenize=d,J;X.eat(/['"\/]/)}l&&(A.singleLineStringErrors?J="error":F.tokenize=d);return J}}function B(m,l){for(;!m.eol();){m.eatWhile(/[^#]/);if(m.match("###")){l.tokenize=d;break}m.eatWhile("#")}return"comment"}function C(m,l,J){J=J||"coffee";for(var X=0,F=!1,ha=null,T=l.scope;T;T=T.prev)if("coffee"===T.type||"}"==T.type){X=T.offset+R.indentUnit;break}"coffee"!==J?(F=null,ha=m.column()+m.current().length):l.scope.align&&(l.scope.align=!1);l.scope=
|
|||
|
{offset:X,type:J,prev:l.scope,align:F,alignOffset:ha}}function a(m,l){if(l.scope.prev){if("coffee"===l.scope.type){m=m.indentation();for(var J=!1,X=l.scope;X;X=X.prev)if(m===X.offset){J=!0;break}if(!J)return!0;for(;l.scope.prev&&l.scope.offset!==m;)l.scope=l.scope.prev}else l.scope=l.scope.prev;return!1}}var K=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|~|!|\?|(or|and|\|\||&&|\?)=)/,r=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,h=/^[_A-Za-z$][_A-Za-z$0-9]*/,k=/^@[_A-Za-z$][_A-Za-z$0-9]*/,
|
|||
|
f=t("and or not is isnt in instanceof typeof".split(" ")),v="for while loop if unless else switch try catch finally class".split(" "),x=t(v.concat("break by continue debugger delete do in of new return then this @ throw when until extends".split(" ")));v=t(v);var L=/^('{3}|"{3}|['"])/,z=/^(\/{3}|\/)/,u=t("Infinity NaN undefined null true false on off yes no".split(" "));return{startState:function(m){return{tokenize:d,scope:{offset:m||0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(m,
|
|||
|
l){var J=null===l.scope.align&&l.scope;J&&m.sol()&&(J.align=!1);var X=l.tokenize(m,l);var F=m.current();"return"===F&&(l.dedent=!0);(("-\x3e"===F||"\x3d\x3e"===F)&&m.eol()||"indent"===X)&&C(m,l);var ha="[({".indexOf(F);-1!==ha&&C(m,l,"])}".slice(ha,ha+1));v.exec(F)&&C(m,l);"then"==F&&a(m,l);if("dedent"===X&&a(m,l))X="error";else{ha="])}".indexOf(F);if(-1!==ha){for(;"coffee"==l.scope.type&&l.scope.prev;)l.scope=l.scope.prev;l.scope.type==F&&(l.scope=l.scope.prev)}l.dedent&&m.eol()&&("coffee"==l.scope.type&&
|
|||
|
l.scope.prev&&(l.scope=l.scope.prev),l.dedent=!1)}X&&"comment"!=X&&(J&&(J.align=!0),l.prop="punctuation"==X&&"."==m.current());return X},indent:function(m,l){if(m.tokenize!=d)return 0;m=m.scope;var J=l&&-1<"])}".indexOf(l.charAt(0));if(J)for(;"coffee"==m.type&&m.prev;)m=m.prev;l=J&&m.type===l.charAt(0);return m.align?m.alignOffset-(l?1:0):(l?m.prev:m).offset},lineComment:"#",fold:"indent"}});q.defineMIME("application/vnd.coffeescript","coffeescript");q.defineMIME("text/x-coffeescript","coffeescript");
|
|||
|
q.defineMIME("text/coffeescript","coffeescript")})};
|
|||
|
shadow$provide[469]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("commonlisp",function(R){function A(h){for(var k;k=h.next();)if("\\"==k)h.next();else if(!K.test(k)){h.backUp(1);break}return h.current()}function t(h,k){if(h.eatSpace())return r="ws",null;if(h.match(a))return"number";var f=h.next();"\\"==f&&(f=h.next());if('"'==f)return(k.tokenize=d)(h,
|
|||
|
k);if("("==f)return r="open","bracket";if(")"==f||"]"==f)return r="close","bracket";if(";"==f)return h.skipToEnd(),r="ws","comment";if(/['`,@]/.test(f))return null;if("|"==f){if(h.skipTo("|"))return h.next(),"symbol";h.skipToEnd();return"error"}if("#"==f)return f=h.next(),"("==f?(r="open","bracket"):/[+\-=\.']/.test(f)||/\d/.test(f)&&h.match(/^\d*#/)?null:"|"==f?(k.tokenize=w)(h,k):":"==f?(A(h),"meta"):"\\"==f?(h.next(),A(h),"string-2"):"error";h=A(h);if("."==h)return null;r="symbol";return"nil"==
|
|||
|
h||"t"==h||":"==h.charAt(0)?"atom":"open"==k.lastType&&(B.test(h)||C.test(h))?"keyword":"\x26"==h.charAt(0)?"variable-2":"variable"}function d(h,k){for(var f=!1,v;v=h.next();){if('"'==v&&!f){k.tokenize=t;break}f=!f&&"\\"==v}return"string"}function w(h,k){for(var f,v;f=h.next();){if("#"==f&&"|"==v){k.tokenize=t;break}v=f}r="ws";return"comment"}var B=/^(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)$/,
|
|||
|
C=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,K=/[^\s'`,@()\[\]";]/,r;return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:t}},token:function(h,k){h.sol()&&"number"!=typeof k.ctx.indentTo&&(k.ctx.indentTo=k.ctx.start+1);r=null;var f=k.tokenize(h,k);"ws"!=r&&(null==k.ctx.indentTo?"symbol"==r&&C.test(h.current())?k.ctx.indentTo=
|
|||
|
k.ctx.start+R.indentUnit:k.ctx.indentTo="next":"next"==k.ctx.indentTo&&(k.ctx.indentTo=h.column()),k.lastType=r);"open"==r?k.ctx={prev:k.ctx,start:h.column(),indentTo:null}:"close"==r&&(k.ctx=k.ctx.prev||k.ctx);return f},indent:function(h,k){k=h.ctx.indentTo;return"number"==typeof k?k:h.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}});q.defineMIME("text/x-common-lisp","commonlisp")})};
|
|||
|
shadow$provide[470]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("crystal",function(R){function A(E,aa){return new RegExp((aa?"":"^")+"(?:"+E.join("|")+")"+(aa?"$":"\\b"))}function t(E,aa,M){M.tokenize.push(E);return E(aa,M)}function d(E,aa){if(E.eatSpace())return null;if("\\"!=aa.lastToken&&E.match("{%",!1))return t(B("%","%"),E,aa);if("\\"!=aa.lastToken&&
|
|||
|
E.match("{{",!1))return t(B("{","}"),E,aa);if("#"==E.peek())return E.skipToEnd(),"comment";if(E.match(x)){E.eat(/[?!]/);var M=E.current();return E.eat(":")?"atom":"."==aa.lastToken?"property":z.test(M)?(m.test(M)?"fun"==M&&0<=aa.blocks.indexOf("lib")||"def"==M&&"abstract"==aa.lastToken||(aa.blocks.push(M),aa.currentIndent+=1):"operator"!=aa.lastStyle&&aa.lastStyle||!l.test(M)?"end"==M&&(aa.blocks.pop(),--aa.currentIndent):(aa.blocks.push(M),aa.currentIndent+=1),T.hasOwnProperty(M)&&aa.tokenize.push(T[M]),
|
|||
|
"keyword"):u.test(M)?"atom":"variable"}if(E.eat("@")){if("["==E.peek())return t(w("[","]","meta"),E,aa);E.eat("@");E.match(x)||E.match(L);return"variable-2"}if(E.match(L))return"tag";if(E.eat(":")){if(E.eat('"'))return t(K('"',"atom",!1),E,aa);if(E.match(x)||E.match(L)||E.match(h)||E.match(k)||E.match(f))return"atom";E.eat(":");return"operator"}if(E.eat('"'))return t(K('"',"string",!0),E,aa);if("%"==E.peek()){M="string";var S=!0;if(E.match("%r")){M="string-2";var D=E.next()}else if(E.match("%w"))S=
|
|||
|
!1,D=E.next();else if(E.match("%q"))S=!1,D=E.next();else if(D=E.match(/^%([^\w\s=])/))D=D[1];else return E.match(/^%[a-zA-Z0-9_\u009F-\uFFFF]*/)?"meta":"operator";Z.hasOwnProperty(D)&&(D=Z[D]);return t(K(D,M,S),E,aa)}if(M=E.match(/^<<-('?)([A-Z]\w*)\1/))return t(r(M[2],!M[1]),E,aa);if(E.eat("'"))return E.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),E.eat("'"),"atom";if(E.eat("0"))return E.eat("x")?E.match(/^[0-9a-fA-F]+/):E.eat("o")?E.match(/^[0-7]+/):E.eat("b")&&
|
|||
|
E.match(/^[01]+/),"number";if(E.eat(/^\d/))return E.match(/^\d*(?:\.\d+)?(?:[eE][+-]?\d+)?/),"number";if(E.match(h))return E.eat("\x3d"),"operator";if(E.match(k)||E.match(v))return"operator";if(M=E.match(/[({[]/,!1))return M=M[0],t(w(M,Z[M],null),E,aa);if(E.eat("\\"))return E.next(),"meta";E.next();return null}function w(E,aa,M,S){return function(D,O){if(!S&&D.match(E))return O.tokenize[O.tokenize.length-1]=w(E,aa,M,!0),O.currentIndent+=1,M;var P=d(D,O);D.current()===aa&&(O.tokenize.pop(),--O.currentIndent,
|
|||
|
P=M);return P}}function B(E,aa,M){return function(S,D){return!M&&S.match("{"+E)?(D.currentIndent+=1,D.tokenize[D.tokenize.length-1]=B(E,aa,!0),"meta"):S.match(aa+"}")?(--D.currentIndent,D.tokenize.pop(),"meta"):d(S,D)}}function C(E,aa){if(E.eatSpace())return null;E.match(x)?E.eat(/[!?]/):E.match(h)||E.match(k)||E.match(f);aa.tokenize.pop();return"def"}function a(E,aa){if(E.eatSpace())return null;E.match(L);aa.tokenize.pop();return"def"}function K(E,aa,M){return function(S,D){for(var O=!1;S.peek();)if(O)S.next(),
|
|||
|
O=!1;else{if(S.match("{%",!1)){D.tokenize.push(B("%","%"));break}if(S.match("{{",!1)){D.tokenize.push(B("{","}"));break}if(M&&S.match("#{",!1)){D.tokenize.push(w("#{","}","meta"));break}O=S.next();if(O==E){D.tokenize.pop();break}O=M&&"\\"==O}return aa}}function r(E,aa){return function(M,S){if(M.sol()&&(M.eatSpace(),M.match(E)))return S.tokenize.pop(),"string";for(var D=!1;M.peek();)if(D)M.next(),D=!1;else{if(M.match("{%",!1)){S.tokenize.push(B("%","%"));break}if(M.match("{{",!1)){S.tokenize.push(B("{",
|
|||
|
"}"));break}if(aa&&M.match("#{",!1)){S.tokenize.push(w("#{","}","meta"));break}D=aa&&"\\"==M.next()}return"string"}}var h=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,k=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,f=/^(?:\[\][?=]?)/,v=/^(?:\.(?:\.{2})?|->|[?:])/,x=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,L=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,z=A("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(" ")),
|
|||
|
u=A(["true","false","nil","self"]),m=A("def fun macro class module struct lib enum union do for".split(" ")),l=A("if unless case while until begin then".split(" ")),J=["end","else","elsif","rescue","ensure"],X=A(J),F=["\\)","\\}","\\]"],ha=new RegExp("^(?:"+F.join("|")+")$"),T={def:C,fun:C,macro:function(E,aa){if(E.eatSpace())return null;var M;if(M=E.match(x)){if("def"==M)return"keyword";E.eat(/[?!]/)}aa.tokenize.pop();return"def"},"class":a,module:a,struct:a,lib:a,"enum":a,union:a},Z={"[":"]","{":"}",
|
|||
|
"(":")","\x3c":"\x3e"};return{startState:function(){return{tokenize:[d],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(E,aa){var M=aa.tokenize[aa.tokenize.length-1](E,aa);E=E.current();M&&"comment"!=M&&(aa.lastToken=E,aa.lastStyle=M);return M},indent:function(E,aa){aa=aa.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,"");return X.test(aa)||ha.test(aa)?R.indentUnit*(E.currentIndent-1):R.indentUnit*E.currentIndent},fold:"indent",electricInput:A(F.concat(J),!0),lineComment:"#"}});
|
|||
|
q.defineMIME("text/x-crystal","crystal")})};
|
|||
|
shadow$provide[471]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(J){for(var X={},F=0;F<J.length;++F)X[J[F].toLowerCase()]=!0;return X}function A(J,X){for(var F=!1,ha;null!=(ha=J.next());){if(F&&"/"==ha){X.tokenize=null;break}F="*"==ha}return["comment","comment"]}q.defineMode("css",function(J,X){function F(Ma,eb){Ea=eb;return Ma}function ha(Ma,eb){var db=
|
|||
|
Ma.next();if(da[db]){var Na=da[db](Ma,eb);if(!1!==Na)return Na}if("@"==db)return Ma.eatWhile(/[\w\\\-]/),F("def",Ma.current());if("\x3d"==db||("~"==db||"|"==db)&&Ma.eat("\x3d"))return F(null,"compare");if('"'==db||"'"==db)return eb.tokenize=T(db),eb.tokenize(Ma,eb);if("#"==db)return Ma.eatWhile(/[\w\\\-]/),F("atom","hash");if("!"==db)return Ma.match(/^\s*\w*/),F("keyword","important");if(/\d/.test(db)||"."==db&&Ma.eat(/\d/))return Ma.eatWhile(/[\w.%]/),F("number","unit");if("-"===db){if(/[\d.]/.test(Ma.peek()))return Ma.eatWhile(/[\w.%]/),
|
|||
|
F("number","unit");if(Ma.match(/^-[\w\\\-]*/))return Ma.eatWhile(/[\w\\\-]/),Ma.match(/^\s*:/,!1)?F("variable-2","variable-definition"):F("variable-2","variable");if(Ma.match(/^\w+-/))return F("meta","meta")}else return/[,+>*\/]/.test(db)?F(null,"select-op"):"."==db&&Ma.match(/^-?[_a-z][_a-z0-9-]*/i)?F("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(db)?F(null,db):Ma.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(Ma.current().toLowerCase())&&(eb.tokenize=Z),F("variable callee","variable")):
|
|||
|
/[\w\\\-]/.test(db)?(Ma.eatWhile(/[\w\\\-]/),F("property","word")):F(null,null)}function T(Ma){return function(eb,db){for(var Na=!1,oa;null!=(oa=eb.next());){if(oa==Ma&&!Na){")"==Ma&&eb.backUp(1);break}Na=!Na&&"\\"==oa}if(oa==Ma||!Na&&")"!=Ma)db.tokenize=null;return F("string","string")}}function Z(Ma,eb){Ma.next();Ma.match(/\s*["')]/,!1)?eb.tokenize=null:eb.tokenize=T(")");return F(null,"(")}function E(Ma,eb,db){this.type=Ma;this.indent=eb;this.prev=db}function aa(Ma,eb,db,Na){Ma.context=new E(db,
|
|||
|
eb.indentation()+(!1===Na?0:P),Ma.context);return db}function M(Ma){Ma.context.prev&&(Ma.context=Ma.context.prev);return Ma.context.type}function S(Ma,eb,db,Na){for(Na=Na||1;0<Na;Na--)db.context=db.context.prev;return Xa[db.context.type](Ma,eb,db)}function D(Ma){Ma=Ma.current().toLowerCase();Oa=ya.hasOwnProperty(Ma)?"atom":za.hasOwnProperty(Ma)?"keyword":"variable"}var O=X.inline;X.propertyKeywords||(X=q.resolveMode("text/css"));var P=J.indentUnit,da=X.tokenHooks,ba=X.documentTypes||{},H=X.mediaTypes||
|
|||
|
{},ja=X.mediaFeatures||{},N=X.mediaValueKeywords||{},ca=X.propertyKeywords||{},ia=X.nonStandardPropertyKeywords||{},ea=X.fontProperties||{},qa=X.counterDescriptors||{},za=X.colorKeywords||{},ya=X.valueKeywords||{},Ha=X.allowNested,Ua=!0===X.supportsAtComponent,Ea,Oa,Xa={top:function(Ma,eb,db){if("{"==Ma)return aa(db,eb,"block");if("}"==Ma&&db.context.prev)return M(db);if(Ua&&/@component/i.test(Ma))return aa(db,eb,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Ma))return aa(db,eb,"documentTypes");
|
|||
|
if(/^@(media|supports|(-moz-)?document|import)$/i.test(Ma))return aa(db,eb,"atBlock");if(/^@(font-face|counter-style)/i.test(Ma))return db.stateArg=Ma,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Ma))return"keyframes";if(Ma&&"@"==Ma.charAt(0))return aa(db,eb,"at");if("hash"==Ma)Oa="builtin";else if("word"==Ma)Oa="tag";else{if("variable-definition"==Ma)return"maybeprop";if("interpolation"==Ma)return aa(db,eb,"interpolation");if(":"==Ma)return"pseudo";if(Ha&&"("==Ma)return aa(db,
|
|||
|
eb,"parens")}return db.context.type},block:function(Ma,eb,db){if("word"==Ma){Ma=eb.current().toLowerCase();if(ca.hasOwnProperty(Ma))return Oa="property","maybeprop";if(ia.hasOwnProperty(Ma))return Oa="string-2","maybeprop";if(Ha)return Oa=eb.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block";Oa+=" error";return"maybeprop"}if("meta"==Ma)return"block";if(Ha||"hash"!=Ma&&"qualifier"!=Ma)return Xa.top(Ma,eb,db);Oa="error";return"block"},maybeprop:function(Ma,eb,db){return":"==Ma?aa(db,eb,"prop"):Xa[db.context.type](Ma,
|
|||
|
eb,db)},prop:function(Ma,eb,db){if(";"==Ma)return M(db);if("{"==Ma&&Ha)return aa(db,eb,"propBlock");if("}"==Ma||"{"==Ma)return S(Ma,eb,db);if("("==Ma)return aa(db,eb,"parens");if("hash"==Ma&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(eb.current()))Oa+=" error";else if("word"==Ma)D(eb);else if("interpolation"==Ma)return aa(db,eb,"interpolation");return"prop"},propBlock:function(Ma,eb,db){return"}"==Ma?M(db):"word"==Ma?(Oa="property","maybeprop"):db.context.type},parens:function(Ma,
|
|||
|
eb,db){if("{"==Ma||"}"==Ma)return S(Ma,eb,db);if(")"==Ma)return M(db);if("("==Ma)return aa(db,eb,"parens");if("interpolation"==Ma)return aa(db,eb,"interpolation");"word"==Ma&&D(eb);return"parens"},pseudo:function(Ma,eb,db){return"meta"==Ma?"pseudo":"word"==Ma?(Oa="variable-3",db.context.type):Xa[db.context.type](Ma,eb,db)},documentTypes:function(Ma,eb,db){return"word"==Ma&&ba.hasOwnProperty(eb.current())?(Oa="tag",db.context.type):Xa.atBlock(Ma,eb,db)},atBlock:function(Ma,eb,db){if("("==Ma)return aa(db,
|
|||
|
eb,"atBlock_parens");if("}"==Ma||";"==Ma)return S(Ma,eb,db);if("{"==Ma)return M(db)&&aa(db,eb,Ha?"block":"top");if("interpolation"==Ma)return aa(db,eb,"interpolation");"word"==Ma&&(Ma=eb.current().toLowerCase(),Oa="only"==Ma||"not"==Ma||"and"==Ma||"or"==Ma?"keyword":H.hasOwnProperty(Ma)?"attribute":ja.hasOwnProperty(Ma)?"property":N.hasOwnProperty(Ma)?"keyword":ca.hasOwnProperty(Ma)?"property":ia.hasOwnProperty(Ma)?"string-2":ya.hasOwnProperty(Ma)?"atom":za.hasOwnProperty(Ma)?"keyword":"error");return db.context.type},
|
|||
|
atComponentBlock:function(Ma,eb,db){if("}"==Ma)return S(Ma,eb,db);if("{"==Ma)return M(db)&&aa(db,eb,Ha?"block":"top",!1);"word"==Ma&&(Oa="error");return db.context.type},atBlock_parens:function(Ma,eb,db){return")"==Ma?M(db):"{"==Ma||"}"==Ma?S(Ma,eb,db,2):Xa.atBlock(Ma,eb,db)},restricted_atBlock_before:function(Ma,eb,db){return"{"==Ma?aa(db,eb,"restricted_atBlock"):"word"==Ma&&"@counter-style"==db.stateArg?(Oa="variable","restricted_atBlock_before"):Xa[db.context.type](Ma,eb,db)},restricted_atBlock:function(Ma,
|
|||
|
eb,db){return"}"==Ma?(db.stateArg=null,M(db)):"word"==Ma?(Oa="@font-face"==db.stateArg&&!ea.hasOwnProperty(eb.current().toLowerCase())||"@counter-style"==db.stateArg&&!qa.hasOwnProperty(eb.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(Ma,eb,db){return"word"==Ma?(Oa="variable","keyframes"):"{"==Ma?aa(db,eb,"top"):Xa[db.context.type](Ma,eb,db)},at:function(Ma,eb,db){if(";"==Ma)return M(db);if("{"==Ma||"}"==Ma)return S(Ma,eb,db);"word"==Ma?Oa="tag":
|
|||
|
"hash"==Ma&&(Oa="builtin");return"at"},interpolation:function(Ma,eb,db){if("}"==Ma)return M(db);if("{"==Ma||";"==Ma)return S(Ma,eb,db);"word"==Ma?Oa="variable":"variable"!=Ma&&"("!=Ma&&")"!=Ma&&(Oa="error");return"interpolation"}};return{startState:function(Ma){return{tokenize:null,state:O?"block":"top",stateArg:null,context:new E(O?"block":"top",Ma||0,null)}},token:function(Ma,eb){if(!eb.tokenize&&Ma.eatSpace())return null;var db=(eb.tokenize||ha)(Ma,eb);db&&"object"==typeof db&&(Ea=db[1],db=db[0]);
|
|||
|
Oa=db;"comment"!=Ea&&(eb.state=Xa[eb.state](Ea,Ma,eb));return Oa},indent:function(Ma,eb){Ma=Ma.context;eb=eb&&eb.charAt(0);var db=Ma.indent;"prop"!=Ma.type||"}"!=eb&&")"!=eb||(Ma=Ma.prev);if(Ma.prev)if("}"==eb&&("block"==Ma.type||"top"==Ma.type||"interpolation"==Ma.type||"restricted_atBlock"==Ma.type))Ma=Ma.prev,db=Ma.indent;else if(")"==eb&&("parens"==Ma.type||"atBlock_parens"==Ma.type)||"{"==eb&&("at"==Ma.type||"atBlock"==Ma.type))db=Math.max(0,Ma.indent-P);return db},electricChars:"}",blockCommentStart:"/*",
|
|||
|
blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:X.lineComment,fold:"brace"}});var t=["domain","regexp","url","url-prefix"],d=R(t),w="all aural braille handheld print projection screen tty tv embossed".split(" "),B=R(w),C="width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid orientation device-pixel-ratio min-device-pixel-ratio max-device-pixel-ratio pointer any-pointer hover any-hover prefers-color-scheme".split(" "),
|
|||
|
a=R(C),K="landscape portrait none coarse fine on-demand hover interlace progressive dark light".split(" "),r=R(K),h="align-content align-items align-self alignment-adjust alignment-baseline all anchor-point animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size baseline-shift binding bleed block-size bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side caret-color clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns contain content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-family font-feature-settings font-kerning font-language-override font-optical-sizing font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align inset inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start isolation justify-content justify-items justify-self left letter-spacing line-break line-height line-height-step line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type max-block-size max-height max-inline-size max-width min-block-size min-height min-inline-size min-width mix-blend-mode move-to nav-down nav-index nav-left nav-right nav-up object-fit object-position offset offset-anchor offset-distance offset-path offset-position offset-rotate opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range place-content place-items place-self play-during position presentation-level punctuation-trim quotes region-break-after reg
|
|||
|
k=R(h),f="border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-inline border-inline-color border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width margin-block margin-block-end margin-block-start margin-inline margin-inline-end margin-inline-start padding-block padding-block-end padding-block-start padding-inline padding-inline-end padding-inline-start scroll-snap-stop scrollbar-3d-light-color scrollbar-arrow-color scrollbar-base-color scrollbar-dark-shadow-color scrollbar-face-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-track-color searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration shape-inside zoom".split(" "),
|
|||
|
v=R(f),x=R("font-display font-family src unicode-range font-variant font-feature-settings font-stretch font-weight font-style".split(" ")),L=R("additive-symbols fallback negative pad prefix range speak-as suffix symbols system".split(" ")),z="aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" "),
|
|||
|
u=R(z),m="above absolute activeborder additive activecaption afar after-white-space ahead alias all all-scroll alphabetic alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks attr auto auto-flow avoid avoid-column avoid-page avoid-region axis-pan background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word bullets button button-bevel buttonface buttonhighlight buttonshadow buttontext calc cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-decimal cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse color color-burn color-dodge column column-reverse compact condensed contain content contents content-box context-menu continuous copy counter counters cover crop cross crosshair currentcolor cursive cyclic darken dashed decimal decimal-leading-zero default default-button dense destination-atop destination-in destination-out destination-over devanagari difference disc discard disclosure-closed disclosure-open document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ethiopic-numeric ew-resize exclusion expanded extends extra-condensed extra-expanded fantasy fast fill fill-box fixed flat flex flex-end flex-start footnotes forwards from geometricPrecision georgian graytext grid groove gujarati gurmukhi hand hangul hangul-consonant hard-light hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla hue icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-flex inline-grid inline-table inset inside intrinsic invert italic japanese-formal japanese-informal justify kannada katakana katakana-iroha keep-all khmer korean-hangul-formal korean-hanja-formal korean-hanja-informal landscape lao large larger left level lighter lighten line-through linear linear-gradient lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr luminosity malayalam manipulation match matrix matrix3d media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple multiple_mask_images multiply myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize numbers numeric nw-resize nwse-resize oblique octal opacity open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian perspective pinch-zoom plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radial-gradient radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeating-linear-gradient repeating-radial-gradient repeat-x repeat-y reset reverse rgb rgba ridge right rotate rotate3d rotateX rotateY rotateZ round row row-resize row-reverse rtl run-in running s-resize sans-serif saturation scale scale3d scaleX scaleY scaleZ screen scroll scrollbar scroll
|
|||
|
l=R(m);t=t.concat(w).concat(C).concat(K).concat(h).concat(f).concat(z).concat(m);q.registerHelper("hintWords","css",t);q.defineMIME("text/css",{documentTypes:d,mediaTypes:B,mediaFeatures:a,mediaValueKeywords:r,propertyKeywords:k,nonStandardPropertyKeywords:v,fontProperties:x,counterDescriptors:L,colorKeywords:u,valueKeywords:l,tokenHooks:{"/":function(J,X){if(!J.eat("*"))return!1;X.tokenize=A;return A(J,X)}},name:"css"});q.defineMIME("text/x-scss",{mediaTypes:B,mediaFeatures:a,mediaValueKeywords:r,
|
|||
|
propertyKeywords:k,nonStandardPropertyKeywords:v,colorKeywords:u,valueKeywords:l,fontProperties:x,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(J,X){return J.eat("/")?(J.skipToEnd(),["comment","comment"]):J.eat("*")?(X.tokenize=A,A(J,X)):["operator","operator"]},":":function(J){return J.match(/\s*\{/,!1)?[null,null]:!1},$:function(J){J.match(/^[\w-]+/);return J.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(J){return J.eat("{")?[null,"interpolation"]:
|
|||
|
!1}},name:"css",helperType:"scss"});q.defineMIME("text/x-less",{mediaTypes:B,mediaFeatures:a,mediaValueKeywords:r,propertyKeywords:k,nonStandardPropertyKeywords:v,colorKeywords:u,valueKeywords:l,fontProperties:x,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(J,X){return J.eat("/")?(J.skipToEnd(),["comment","comment"]):J.eat("*")?(X.tokenize=A,A(J,X)):["operator","operator"]},"@":function(J){if(J.eat("{"))return[null,"interpolation"];if(J.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,
|
|||
|
!1))return!1;J.eatWhile(/[\w\\\-]/);return J.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"\x26":function(){return["atom","atom"]}},name:"css",helperType:"less"});q.defineMIME("text/x-gss",{documentTypes:d,mediaTypes:B,mediaFeatures:a,propertyKeywords:k,nonStandardPropertyKeywords:v,fontProperties:x,counterDescriptors:L,colorKeywords:u,valueKeywords:l,supportsAtComponent:!0,tokenHooks:{"/":function(J,X){if(!J.eat("*"))return!1;X.tokenize=A;return A(J,X)}},name:"css",
|
|||
|
helperType:"gss"})})};
|
|||
|
shadow$provide[472]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){var R=function(A){return new RegExp("^(?:"+A.join("|")+")$","i")};q.defineMode("cypher",function(A){var t=function(f){var v=f.next();if('"'===v)return f.match(/.*?"/),"string";if("'"===v)return f.match(/.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(v))return C=v,"node";if("/"===v&&f.eat("/"))return f.skipToEnd(),
|
|||
|
"comment";if(k.test(v))return f.eatWhile(k),null;f.eatWhile(/[_\w\d]/);if(f.eat(":"))return f.eatWhile(/[\w\d_\-]/),"atom";f=f.current();return a.test(f)?"builtin":K.test(f)?"def":r.test(f)||h.test(f)?"keyword":"variable"},d=function(f,v,x){return f.context={prev:f.context,indent:f.indent,col:x,type:v}},w=function(f){f.indent=f.context.indent;return f.context=f.context.prev},B=A.indentUnit,C,a=R("abs acos allShortestPaths asin atan atan2 avg ceil coalesce collect cos cot count degrees e endnode exp extract filter floor haversin head id keys labels last left length log log10 lower ltrim max min node nodes percentileCont percentileDisc pi radians rand range reduce rel relationship relationships replace reverse right round rtrim shortestPath sign sin size split sqrt startnode stdev stdevp str substring sum tail tan timestamp toFloat toInt toString trim type upper".split(" ")),
|
|||
|
K=R("all and any contains exists has in none not or single xor".split(" ")),r=R("as asc ascending assert by case commit constraint create csv cypher delete desc descending detach distinct drop else end ends explain false fieldterminator foreach from headers in index is join limit load match merge null on optional order periodic profile remove return scan set skip start starts then true union unique unwind using when where with call yield".split(" ")),h=R("access active assign all alter as catalog change copy create constraint constraints current database databases dbms default deny drop element elements exists from grant graph graphs if index indexes label labels management match name names new node nodes not of on or password populated privileges property read relationship relationships remove replace required revoke role roles set show start status stop suspended to traverse type types user users with write".split(" ")),
|
|||
|
k=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:t,context:null,indent:0,col:0}},token:function(f,v){f.sol()&&(v.context&&null==v.context.align&&(v.context.align=!1),v.indent=f.indentation());if(f.eatSpace())return null;var x=v.tokenize(f,v);"comment"!==x&&v.context&&null==v.context.align&&"pattern"!==v.context.type&&(v.context.align=!0);if("("===C)d(v,")",f.column());else if("["===C)d(v,"]",f.column());else if("{"===C)d(v,"}",f.column());else if(/[\]\}\)]/.test(C)){for(;v.context&&
|
|||
|
"pattern"===v.context.type;)w(v);v.context&&C===v.context.type&&w(v)}else"."===C&&v.context&&"pattern"===v.context.type?w(v):/atom|string|variable/.test(x)&&v.context&&(/[\}\]]/.test(v.context.type)?d(v,"pattern",f.column()):"pattern"!==v.context.type||v.context.align||(v.context.align=!0,v.context.col=f.column()));return x},indent:function(f,v){v=v&&v.charAt(0);f=f.context;if(/[\]\}]/.test(v))for(;f&&"pattern"===f.type;)f=f.prev;v=f&&v===f.type;return f?"keywords"===f.type?q.commands.newlineAndIndent:
|
|||
|
f.align?f.col+(v?0:1):f.indent+(v?0:B):0}}});q.modeExtensions.cypher={autoFormatLineBreaks:function(A){var t=A.split("\n");var d=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g;for(A=0;A<t.length;A++)t[A]=t[A].replace(d," \n$1 ").trim();return t.join("\n")}};q.defineMIME("application/x-cypher-query","cypher")})};
|
|||
|
shadow$provide[473]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMode("d",function(A,t){function d(J,X){var F=J.next();if(z[F]){var ha=z[F](J,X);if(!1!==ha)return ha}if('"'==F||"'"==F||"`"==F)return X.tokenize=w(F),X.tokenize(J,X);if(/[\[\]{}\(\),;:\.]/.test(F))return l=
|
|||
|
F,null;if(/\d/.test(F))return J.eatWhile(/[\w\.]/),"number";if("/"==F){if(J.eat("+"))return X.tokenize=C,C(J,X);if(J.eat("*"))return X.tokenize=B,B(J,X);if(J.eat("/"))return J.skipToEnd(),"comment"}if(m.test(F))return J.eatWhile(m),"operator";J.eatWhile(/[\w\$_\xa1-\uffff]/);J=J.current();return f.propertyIsEnumerable(J)?(x.propertyIsEnumerable(J)&&(l="newstatement"),"keyword"):v.propertyIsEnumerable(J)?(x.propertyIsEnumerable(J)&&(l="newstatement"),"builtin"):L.propertyIsEnumerable(J)?"atom":"variable"}
|
|||
|
function w(J){return function(X,F){for(var ha=!1,T,Z=!1;null!=(T=X.next());){if(T==J&&!ha){Z=!0;break}ha=!ha&&"\\"==T}if(Z||!ha&&!u)F.tokenize=null;return"string"}}function B(J,X){for(var F=!1,ha;ha=J.next();){if("/"==ha&&F){X.tokenize=null;break}F="*"==ha}return"comment"}function C(J,X){for(var F=!1,ha;ha=J.next();){if("/"==ha&&F){X.tokenize=null;break}F="+"==ha}return"comment"}function a(J,X,F,ha,T){this.indented=J;this.column=X;this.type=F;this.align=ha;this.prev=T}function K(J,X,F){var ha=J.indented;
|
|||
|
J.context&&"statement"==J.context.type&&(ha=J.context.indented);return J.context=new a(ha,X,F,null,J.context)}function r(J){var X=J.context.type;if(")"==X||"]"==X||"}"==X)J.indented=J.context.indented;return J.context=J.context.prev}var h=A.indentUnit,k=t.statementIndentUnit||h,f=t.keywords||{},v=t.builtin||{},x=t.blockKeywords||{},L=t.atoms||{},z=t.hooks||{},u=t.multiLineStrings,m=/[+\-*&%=<>!?|\/]/,l;return{startState:function(J){return{tokenize:null,context:new a((J||0)-h,0,"top",!1),indented:0,
|
|||
|
startOfLine:!0}},token:function(J,X){var F=X.context;J.sol()&&(null==F.align&&(F.align=!1),X.indented=J.indentation(),X.startOfLine=!0);if(J.eatSpace())return null;l=null;var ha=(X.tokenize||d)(J,X);if("comment"==ha||"meta"==ha)return ha;null==F.align&&(F.align=!0);if(";"!=l&&":"!=l&&","!=l||"statement"!=F.type)if("{"==l)K(X,J.column(),"}");else if("["==l)K(X,J.column(),"]");else if("("==l)K(X,J.column(),")");else if("}"==l){for(;"statement"==F.type;)F=r(X);for("}"==F.type&&(F=r(X));"statement"==
|
|||
|
F.type;)F=r(X)}else l==F.type?r(X):(("}"==F.type||"top"==F.type)&&";"!=l||"statement"==F.type&&"newstatement"==l)&&K(X,J.column(),"statement");else r(X);X.startOfLine=!1;return ha},indent:function(J,X){if(J.tokenize!=d&&null!=J.tokenize)return q.Pass;J=J.context;X=X&&X.charAt(0);"statement"==J.type&&"}"==X&&(J=J.prev);var F=X==J.type;return"statement"==J.type?J.indented+("{"==X?0:k):J.align?J.column+(F?0:1):J.indented+(F?0:h)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",
|
|||
|
lineComment:"//",fold:"brace"}});q.defineMIME("text/x-d",{name:"d",keywords:R("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with"),
|
|||
|
blockKeywords:R("body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with"),builtin:R("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:R("exit failure success true false null"),hooks:{"@":function(A,t){A.eatWhile(/[\w\$_]/);return"meta"}}})})};
|
|||
|
shadow$provide[474]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../clike/clike"],q):q(CodeMirror)})(function(q){function R(K){for(var r={},h=0;h<K.length;++h)r[K[h]]=!0;return r}function A(K,r,h,k){function f(x,L){for(var z=!1;!x.eol();){if(!k&&!z&&"$"==x.peek()){x=L;(x.interpolationStack||(x.interpolationStack=[])).push(x.tokenize);L.tokenize=t;break}var u=x.next();if(u==K&&!z&&(!v||
|
|||
|
x.match(K+K))){L.tokenize=null;break}z=!k&&!z&&"\\"==u}return"string"}var v=!1;if(r.eat(K))if(r.eat(K))v=!0;else return"string";h.tokenize=f;return f(r,h)}function t(K,r){K.eat("$");K.eat("{")?r.tokenize=null:r.tokenize=d;return null}function d(K,r){K.eatWhile(/[\w_]/);r.tokenize=(r.interpolationStack||(r.interpolationStack=[])).pop();return"variable"}function w(K){return function(r,h){for(var k;k=r.next();)if("*"==k&&r.eat("/"))if(1==K){h.tokenize=null;break}else return h.tokenize=w(K-1),h.tokenize(r,
|
|||
|
h);else if("/"==k&&r.eat("*"))return h.tokenize=w(K+1),h.tokenize(r,h);return"comment"}}var B="this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required".split(" "),C=["true","false","null"],a="void bool num int double dynamic var String Null Never".split(" ");
|
|||
|
q.defineMIME("application/dart",{name:"clike",keywords:R(B),blockKeywords:R("try catch finally do else for if switch while".split(" ")),builtin:R(a),atoms:R(C),hooks:{"@":function(K){K.eatWhile(/[\w\$_\.]/);return"meta"},"'":function(K,r){return A("'",K,r,!1)},'"':function(K,r){return A('"',K,r,!1)},r:function(K,r){var h=K.peek();return"'"==h||'"'==h?A(K.next(),K,r,!0):!1},"}":function(K,r){return 0<(r.interpolationStack?r.interpolationStack.length:0)?(r.tokenize=(r.interpolationStack||(r.interpolationStack=
|
|||
|
[])).pop(),null):!1},"/":function(K,r){if(!K.eat("*"))return!1;r.tokenize=w(1);return r.tokenize(K,r)},token:function(K,r,h){if("variable"==h&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(K.current()))return"variable-2"}}});q.registerHelper("hintWords","application/dart",B.concat(C).concat(a));q.defineMode("dart",function(K){return q.getMode(K,"application/dart")},"clike")})};
|
|||
|
shadow$provide[475]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("diff",function(){var R={"+":"positive","-":"negative","@":"meta"};return{token:function(A){var t=A.string.search(/[\t ]+?$/);if(!A.sol()||0===t)return A.skipToEnd(),("error "+(R[A.string.charAt(0)]||"")).replace(/ $/,"");var d=R[A.peek()]||A.skipToEnd();-1===t?A.skipToEnd():A.pos=t;
|
|||
|
return d}}});q.defineMIME("text/x-diff","diff")})};
|
|||
|
shadow$provide[476]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){var R={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,
|
|||
|
dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,
|
|||
|
caseFold:!0},A={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};q.defineMode("xml",function(t,d){function w(E,aa){function M(D){aa.tokenize=D;return D(E,aa)}var S=E.next();if("\x3c"==S){if(E.eat("!"))return E.eat("[")?E.match("CDATA[")?M(a("atom","]]\x3e")):null:E.match("--")?M(a("comment","--\x3e")):E.match("DOCTYPE",!0,!0)?(E.eatWhile(/[\w\._\-]/),M(K(1))):null;if(E.eat("?"))return E.eatWhile(/[\w\._\-]/),
|
|||
|
aa.tokenize=a("meta","?\x3e"),"meta";T=E.eat("/")?"closeTag":"openTag";aa.tokenize=B;return"tag bracket"}if("\x26"==S)return(E.eat("#")?E.eat("x")?E.eatWhile(/[a-fA-F\d]/)&&E.eat(";"):E.eatWhile(/[\d]/)&&E.eat(";"):E.eatWhile(/[\w\.\-:]/)&&E.eat(";"))?"atom":"error";E.eatWhile(/[^&<]/);return null}function B(E,aa){var M=E.next();if("\x3e"==M||"/"==M&&E.eat("\x3e"))return aa.tokenize=w,T="\x3e"==M?"endTag":"selfcloseTag","tag bracket";if("\x3d"==M)return T="equals",null;if("\x3c"==M)return aa.tokenize=
|
|||
|
w,aa.state=f,aa.tagName=aa.tagStart=null,(E=aa.tokenize(E,aa))?E+" tag error":"tag error";if(/['"]/.test(M))return aa.tokenize=C(M),aa.stringStartCol=E.column(),aa.tokenize(E,aa);E.match(/^[^\s\u00a0=<>"']*[^\s\u00a0=<>"'\/]/);return"word"}function C(E){var aa=function(M,S){for(;!M.eol();)if(M.next()==E){S.tokenize=B;break}return"string"};aa.isInAttribute=!0;return aa}function a(E,aa){return function(M,S){for(;!M.eol();){if(M.match(aa)){S.tokenize=w;break}M.next()}return E}}function K(E){return function(aa,
|
|||
|
M){for(var S;null!=(S=aa.next());){if("\x3c"==S)return M.tokenize=K(E+1),M.tokenize(aa,M);if("\x3e"==S)if(1==E){M.tokenize=w;break}else return M.tokenize=K(E-1),M.tokenize(aa,M)}return"meta"}}function r(E,aa,M){this.prev=E.context;this.tagName=aa;this.indent=E.indented;this.startOfLine=M;if(F.doNotIndent.hasOwnProperty(aa)||E.context&&E.context.noIndent)this.noIndent=!0}function h(E){E.context&&(E.context=E.context.prev)}function k(E,aa){for(var M;E.context;){M=E.context.tagName;if(!F.contextGrabbers.hasOwnProperty(M)||
|
|||
|
!F.contextGrabbers[M].hasOwnProperty(aa))break;h(E)}}function f(E,aa,M){return"openTag"==E?(M.tagStart=aa.column(),v):"closeTag"==E?x:f}function v(E,aa,M){if("word"==E)return M.tagName=aa.current(),Z="tag",u;if(F.allowMissingTagName&&"endTag"==E)return Z="tag bracket",u(E,aa,M);Z="error";return v}function x(E,aa,M){if("word"==E){E=aa.current();M.context&&M.context.tagName!=E&&F.implicitlyClosed.hasOwnProperty(M.context.tagName)&&h(M);if(M.context&&M.context.tagName==E||!1===F.matchClosing)return Z=
|
|||
|
"tag",L;Z="tag error";return z}if(F.allowMissingTagName&&"endTag"==E)return Z="tag bracket",L(E,aa,M);Z="error";return z}function L(E,aa,M){if("endTag"!=E)return Z="error",L;h(M);return f}function z(E,aa,M){Z="error";return L(E,aa,M)}function u(E,aa,M){if("word"==E)return Z="attribute",m;if("endTag"==E||"selfcloseTag"==E){aa=M.tagName;var S=M.tagStart;M.tagName=M.tagStart=null;"selfcloseTag"==E||F.autoSelfClosers.hasOwnProperty(aa)?k(M,aa):(k(M,aa),M.context=new r(M,aa,S==M.indented));return f}Z=
|
|||
|
"error";return u}function m(E,aa,M){if("equals"==E)return l;F.allowMissing||(Z="error");return u(E,aa,M)}function l(E,aa,M){if("string"==E)return J;if("word"==E&&F.allowUnquoted)return Z="string",u;Z="error";return u(E,aa,M)}function J(E,aa,M){return"string"==E?J:u(E,aa,M)}var X=t.indentUnit,F={};t=d.htmlMode?R:A;for(var ha in t)F[ha]=t[ha];for(ha in d)F[ha]=d[ha];var T,Z;w.isInText=!0;return{startState:function(E){var aa={tokenize:w,state:f,indented:E||0,tagName:null,tagStart:null,context:null};
|
|||
|
null!=E&&(aa.baseIndent=E);return aa},token:function(E,aa){!aa.tagName&&E.sol()&&(aa.indented=E.indentation());if(E.eatSpace())return null;T=null;var M=aa.tokenize(E,aa);(M||T)&&"comment"!=M&&(Z=null,aa.state=aa.state(T||M,E,aa),Z&&(M="error"==Z?M+" error":Z));return M},indent:function(E,aa,M){var S=E.context;if(E.tokenize.isInAttribute)return E.tagStart==E.indented?E.stringStartCol+1:E.indented+X;if(S&&S.noIndent)return q.Pass;if(E.tokenize!=B&&E.tokenize!=w)return M?M.match(/^(\s*)/)[0].length:
|
|||
|
0;if(E.tagName)return!1!==F.multilineTagIndentPastTag?E.tagStart+E.tagName.length+2:E.tagStart+X*(F.multilineTagIndentFactor||1);if(F.alignCDATA&&/<!\[CDATA\[/.test(aa))return 0;if((aa=aa&&/^<(\/)?([\w_:\.-]*)/.exec(aa))&&aa[1])for(;S;)if(S.tagName==aa[2]){S=S.prev;break}else if(F.implicitlyClosed.hasOwnProperty(S.tagName))S=S.prev;else break;else if(aa)for(;S;)if((M=F.contextGrabbers[S.tagName])&&M.hasOwnProperty(aa[2]))S=S.prev;else break;for(;S&&S.prev&&!S.startOfLine;)S=S.prev;return S?S.indent+
|
|||
|
X:E.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:F.htmlMode?"html":"xml",helperType:F.htmlMode?"html":"xml",skipAttribute:function(E){E.state==l&&(E.state=u)},xmlCurrentTag:function(E){return E.tagName?{name:E.tagName,close:"closeTag"==E.type}:null},xmlCurrentContext:function(E){var aa=[];for(E=E.context;E;E=E.prev)E.tagName&&aa.push(E.tagName);return aa.reverse()}}});q.defineMIME("text/xml","xml");q.defineMIME("application/xml","xml");
|
|||
|
q.mimeModes.hasOwnProperty("text/html")||q.defineMIME("text/html",{name:"xml",htmlMode:!0})})};
|
|||
|
shadow$provide[477]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("javascript",function(R,A){function t(Sb,Lc,Vb){vc=Sb;Nc=Vb;return Lc}function d(Sb,Lc){var Vb=Sb.next();if('"'==Vb||"'"==Vb)return Lc.tokenize=w(Vb),Lc.tokenize(Sb,Lc);if("."==Vb&&Sb.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return t("number","number");if("."==Vb&&Sb.match(".."))return t("spread",
|
|||
|
"meta");if(/[\[\]{}\(\),;:\.]/.test(Vb))return t(Vb);if("\x3d"==Vb&&Sb.eat("\x3e"))return t("\x3d\x3e","operator");if("0"==Vb&&Sb.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return t("number","number");if(/\d/.test(Vb))return Sb.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),t("number","number");if("/"==Vb){if(Sb.eat("*"))return Lc.tokenize=B,B(Sb,Lc);if(Sb.eat("/"))return Sb.skipToEnd(),t("comment","comment");if(rb(Sb,Lc,1)){a:for(var dd=Lc=!1;null!=(Vb=Sb.next());){if(!Lc){if("/"==
|
|||
|
Vb&&!dd)break a;"["==Vb?dd=!0:dd&&"]"==Vb&&(dd=!1)}Lc=!Lc&&"\\"==Vb}Sb.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return t("regexp","string-2")}Sb.eat("\x3d");return t("operator","operator",Sb.current())}if("`"==Vb)return Lc.tokenize=C,C(Sb,Lc);if("#"==Vb&&"!"==Sb.peek())return Sb.skipToEnd(),t("meta","meta");if("#"==Vb&&Sb.eatWhile(Ld))return t("variable","property");if("\x3c"==Vb&&Sb.match("!--")||"-"==Vb&&Sb.match("-\x3e")&&!/\S/.test(Sb.string.slice(0,Sb.start)))return Sb.skipToEnd(),t("comment",
|
|||
|
"comment");if(ue.test(Vb))return"\x3e"==Vb&&Lc.lexical&&"\x3e"==Lc.lexical.type||(Sb.eat("\x3d")?"!"!=Vb&&"\x3d"!=Vb||Sb.eat("\x3d"):/[<>*+\-|&?]/.test(Vb)&&(Sb.eat(Vb),"\x3e"==Vb&&Sb.eat(Vb))),"?"==Vb&&Sb.eat(".")?t("."):t("operator","operator",Sb.current());if(Ld.test(Vb)){Sb.eatWhile(Ld);Vb=Sb.current();if("."!=Lc.lastType){if(be.propertyIsEnumerable(Vb))return Sb=be[Vb],t(Sb.type,Sb.style,Vb);if("async"==Vb&&Sb.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return t("async","keyword",Vb)}return t("variable",
|
|||
|
"variable",Vb)}}function w(Sb){return function(Lc,Vb){var dd=!1,ve;if(uc&&"@"==Lc.peek()&&Lc.match(qd))return Vb.tokenize=d,t("jsonld-keyword","meta");for(;null!=(ve=Lc.next())&&(ve!=Sb||dd);)dd=!dd&&"\\"==ve;dd||(Vb.tokenize=d);return t("string","string")}}function B(Sb,Lc){for(var Vb=!1,dd;dd=Sb.next();){if("/"==dd&&Vb){Lc.tokenize=d;break}Vb="*"==dd}return t("comment","comment")}function C(Sb,Lc){for(var Vb=!1,dd;null!=(dd=Sb.next());){if(!Vb&&("`"==dd||"$"==dd&&Sb.eat("{"))){Lc.tokenize=d;break}Vb=
|
|||
|
!Vb&&"\\"==dd}return t("quasi","string-2",Sb.current())}function a(Sb,Lc){Lc.fatArrowAt&&(Lc.fatArrowAt=null);var Vb=Sb.string.indexOf("\x3d\x3e",Sb.start);if(!(0>Vb)){if(cd){var dd=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Sb.string.slice(Sb.start,Vb));dd&&(Vb=dd.index)}dd=0;var ve=!1;for(--Vb;0<=Vb;--Vb){var oe=Sb.string.charAt(Vb),Ec="([{}])".indexOf(oe);if(0<=Ec&&3>Ec){if(!dd){++Vb;break}if(0==--dd){"("==oe&&(ve=!0);break}}else if(3<=Ec&&6>Ec)++dd;else if(Ld.test(oe))ve=!0;else if(/["'\/`]/.test(oe))for(;;--Vb){if(0==
|
|||
|
Vb)return;if(Sb.string.charAt(Vb-1)==oe&&"\\"!=Sb.string.charAt(Vb-2)){Vb--;break}}else if(ve&&!dd){++Vb;break}}ve&&!dd&&(Lc.fatArrowAt=Vb)}}function K(Sb,Lc,Vb,dd,ve,oe){this.indented=Sb;this.column=Lc;this.type=Vb;this.prev=ve;this.info=oe;null!=dd&&(this.align=dd)}function r(){for(var Sb=arguments.length-1;0<=Sb;Sb--)qc.cc.push(arguments[Sb])}function h(){r.apply(null,arguments);return!0}function k(Sb,Lc){for(;Lc;Lc=Lc.next)if(Lc.name==Sb)return!0;return!1}function f(Sb){var Lc=qc.state;qc.marked=
|
|||
|
"def";if(Lc.context)if("var"==Lc.lexical.info&&Lc.context&&Lc.context.block){var Vb=v(Sb,Lc.context);if(null!=Vb){Lc.context=Vb;return}}else if(!k(Sb,Lc.localVars)){Lc.localVars=new z(Sb,Lc.localVars);return}A.globalVars&&!k(Sb,Lc.globalVars)&&(Lc.globalVars=new z(Sb,Lc.globalVars))}function v(Sb,Lc){return Lc?Lc.block?(Sb=v(Sb,Lc.prev))?Sb==Lc.prev?Lc:new L(Sb,Lc.vars,!0):null:k(Sb,Lc.vars)?Lc:new L(Lc.prev,new z(Sb,Lc.vars),!1):null}function x(Sb){return"public"==Sb||"private"==Sb||"protected"==
|
|||
|
Sb||"abstract"==Sb||"readonly"==Sb}function L(Sb,Lc,Vb){this.prev=Sb;this.vars=Lc;this.block=Vb}function z(Sb,Lc){this.name=Sb;this.next=Lc}function u(){qc.state.context=new L(qc.state.context,qc.state.localVars,!1);qc.state.localVars=He}function m(){qc.state.context=new L(qc.state.context,qc.state.localVars,!0);qc.state.localVars=null}function l(){qc.state.localVars=qc.state.context.vars;qc.state.context=qc.state.context.prev}function J(Sb,Lc){var Vb=function(){var dd=qc.state,ve=dd.indented;if("stat"==
|
|||
|
dd.lexical.type)ve=dd.lexical.indented;else for(var oe=dd.lexical;oe&&")"==oe.type&&oe.align;oe=oe.prev)ve=oe.indented;dd.lexical=new K(ve,qc.stream.column(),Sb,null,dd.lexical,Lc)};Vb.lex=!0;return Vb}function X(){var Sb=qc.state;Sb.lexical.prev&&(")"==Sb.lexical.type&&(Sb.indented=Sb.lexical.indented),Sb.lexical=Sb.lexical.prev)}function F(Sb){function Lc(Vb){return Vb==Sb?h():";"==Sb||"}"==Vb||")"==Vb||"]"==Vb?r():h(Lc)}return Lc}function ha(Sb,Lc){return"var"==Sb?h(J("vardef",Lc),Ab,F(";"),X):
|
|||
|
"keyword a"==Sb?h(J("form"),aa,ha,X):"keyword b"==Sb?h(J("form"),ha,X):"keyword d"==Sb?qc.stream.match(/^\s*$/,!1)?h():h(J("stat"),S,F(";"),X):"debugger"==Sb?h(F(";")):"{"==Sb?h(J("}"),m,Ea,X,l):";"==Sb?h():"if"==Sb?("else"==qc.state.lexical.info&&qc.state.cc[qc.state.cc.length-1]==X&&qc.state.cc.pop()(),h(J("form"),aa,ha,X,ob)):"function"==Sb?h(ad):"for"==Sb?h(J("form"),pb,ha,X):"class"==Sb||cd&&"interface"==Lc?(qc.marked="keyword",h(J("form","class"==Sb?Sb:Lc),hd,X)):"variable"==Sb?cd&&"declare"==
|
|||
|
Lc?(qc.marked="keyword",h(ha)):cd&&("module"==Lc||"enum"==Lc||"type"==Lc)&&qc.stream.match(/^\s*\w/,!1)?(qc.marked="keyword","enum"==Lc?h(fc):"type"==Lc?h(Fb,F("operator"),db,F(";")):h(J("form"),jb,F("{"),J("}"),Ea,X,X)):cd&&"namespace"==Lc?(qc.marked="keyword",h(J("form"),Z,ha,X)):cd&&"abstract"==Lc?(qc.marked="keyword",h(ha)):h(J("stat"),ia):"switch"==Sb?h(J("form"),aa,F("{"),J("}","switch"),m,Ea,X,X,l):"case"==Sb?h(Z,F(":")):"default"==Sb?h(F(":")):"catch"==Sb?h(J("form"),u,T,ha,X,l):"export"==
|
|||
|
Sb?h(J("stat"),Dd,X):"import"==Sb?h(J("stat"),Yd,X):"async"==Sb?h(ha):"@"==Lc?h(Z,ha):r(J("stat"),Z,F(";"),X)}function T(Sb){if("("==Sb)return h(yc,F(")"))}function Z(Sb,Lc){return M(Sb,Lc,!1)}function E(Sb,Lc){return M(Sb,Lc,!0)}function aa(Sb){return"("!=Sb?r():h(J(")"),S,F(")"),X)}function M(Sb,Lc,Vb){if(qc.state.fatArrowAt==qc.stream.start){var dd=Vb?H:ba;if("("==Sb)return h(u,J(")"),Ha(yc,")"),X,F("\x3d\x3e"),dd,l);if("variable"==Sb)return r(u,jb,F("\x3d\x3e"),dd,l)}dd=Vb?O:D;return Ie.hasOwnProperty(Sb)?
|
|||
|
h(dd):"function"==Sb?h(ad,dd):"class"==Sb||cd&&"interface"==Lc?(qc.marked="keyword",h(J("form"),Vc,X)):"keyword c"==Sb||"async"==Sb?h(Vb?E:Z):"("==Sb?h(J(")"),S,F(")"),X,dd):"operator"==Sb||"spread"==Sb?h(Vb?E:Z):"["==Sb?h(J("]"),Nb,X,dd):"{"==Sb?Ua(qa,"}",null,dd):"quasi"==Sb?r(P,dd):"new"==Sb?h(ja(Vb)):"import"==Sb?h(Z):h()}function S(Sb){return Sb.match(/[;\}\)\],]/)?r():r(Z)}function D(Sb,Lc){return","==Sb?h(S):O(Sb,Lc,!1)}function O(Sb,Lc,Vb){var dd=0==Vb?D:O,ve=0==Vb?Z:E;if("\x3d\x3e"==Sb)return h(u,
|
|||
|
Vb?H:ba,l);if("operator"==Sb)return/\+\+|--/.test(Lc)||cd&&"!"==Lc?h(dd):cd&&"\x3c"==Lc&&qc.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?h(J("\x3e"),Ha(db,"\x3e"),X,dd):"?"==Lc?h(Z,F(":"),ve):h(ve);if("quasi"==Sb)return r(P,dd);if(";"!=Sb){if("("==Sb)return Ua(E,")","call",dd);if("."==Sb)return h(ea,dd);if("["==Sb)return h(J("]"),S,F("]"),X,dd);if(cd&&"as"==Lc)return qc.marked="keyword",h(db,dd);if("regexp"==Sb)return qc.state.lastType=qc.marked="operator",qc.stream.backUp(qc.stream.pos-qc.stream.start-
|
|||
|
1),h(ve)}}function P(Sb,Lc){return"quasi"!=Sb?r():"${"!=Lc.slice(Lc.length-2)?h(P):h(Z,da)}function da(Sb){if("}"==Sb)return qc.marked="string-2",qc.state.tokenize=C,h(P)}function ba(Sb){a(qc.stream,qc.state);return r("{"==Sb?ha:Z)}function H(Sb){a(qc.stream,qc.state);return r("{"==Sb?ha:E)}function ja(Sb){return function(Lc){return"."==Lc?h(Sb?ca:N):"variable"==Lc&&cd?h(Aa,Sb?O:D):r(Sb?E:Z)}}function N(Sb,Lc){if("target"==Lc)return qc.marked="keyword",h(D)}function ca(Sb,Lc){if("target"==Lc)return qc.marked=
|
|||
|
"keyword",h(O)}function ia(Sb){return":"==Sb?h(X,ha):r(D,F(";"),X)}function ea(Sb){if("variable"==Sb)return qc.marked="property",h()}function qa(Sb,Lc){if("async"==Sb)return qc.marked="property",h(qa);if("variable"==Sb||"keyword"==qc.style){qc.marked="property";if("get"==Lc||"set"==Lc)return h(za);var Vb;cd&&qc.state.fatArrowAt==qc.stream.start&&(Vb=qc.stream.match(/^\s*:\s*/,!1))&&(qc.state.fatArrowAt=qc.stream.pos+Vb[0].length);return h(ya)}if("number"==Sb||"string"==Sb)return qc.marked=uc?"property":
|
|||
|
qc.style+" property",h(ya);if("jsonld-keyword"==Sb)return h(ya);if(cd&&x(Lc))return qc.marked="keyword",h(qa);if("["==Sb)return h(Z,Oa,F("]"),ya);if("spread"==Sb)return h(E,ya);if("*"==Lc)return qc.marked="keyword",h(qa);if(":"==Sb)return r(ya)}function za(Sb){if("variable"!=Sb)return r(ya);qc.marked="property";return h(ad)}function ya(Sb){if(":"==Sb)return h(E);if("("==Sb)return r(ad)}function Ha(Sb,Lc,Vb){function dd(ve,oe){return(Vb?-1<Vb.indexOf(ve):","==ve)?(ve=qc.state.lexical,"call"==ve.info&&
|
|||
|
(ve.pos=(ve.pos||0)+1),h(function(Ec,Bb){return Ec==Lc||Bb==Lc?r():r(Sb)},dd)):ve==Lc||oe==Lc?h():Vb&&-1<Vb.indexOf(";")?r(Sb):h(F(Lc))}return function(ve,oe){return ve==Lc||oe==Lc?h():r(Sb,dd)}}function Ua(Sb,Lc,Vb){for(var dd=3;dd<arguments.length;dd++)qc.cc.push(arguments[dd]);return h(J(Lc,Vb),Ha(Sb,Lc),X)}function Ea(Sb){return"}"==Sb?h():r(ha,Ea)}function Oa(Sb,Lc){if(cd){if(":"==Sb)return h(db);if("?"==Lc)return h(Oa)}}function Xa(Sb,Lc){if(cd&&(":"==Sb||"in"==Lc))return h(db)}function Ma(Sb){if(cd&&
|
|||
|
":"==Sb)return qc.stream.match(/^\s*\w+\s+is\b/,!1)?h(Z,eb,db):h(db)}function eb(Sb,Lc){if("is"==Lc)return qc.marked="keyword",h()}function db(Sb,Lc){if("keyof"==Lc||"typeof"==Lc||"infer"==Lc)return qc.marked="keyword",h("typeof"==Lc?E:db);if("variable"==Sb||"void"==Lc)return qc.marked="type",h(sa);if("|"==Lc||"\x26"==Lc)return h(db);if("string"==Sb||"number"==Sb||"atom"==Sb)return h(sa);if("["==Sb)return h(J("]"),Ha(db,"]",","),X,sa);if("{"==Sb)return h(J("}"),Ha(oa,"}",",;"),X,sa);if("("==Sb)return h(Ha(Ca,
|
|||
|
")"),Na,sa);if("\x3c"==Sb)return h(Ha(db,"\x3e"),db)}function Na(Sb){if("\x3d\x3e"==Sb)return h(db)}function oa(Sb,Lc){if("variable"==Sb||"keyword"==qc.style)return qc.marked="property",h(oa);if("?"==Lc||"number"==Sb||"string"==Sb)return h(oa);if(":"==Sb)return h(db);if("["==Sb)return h(F("variable"),Xa,F("]"),oa);if("("==Sb)return r(Pc,oa)}function Ca(Sb,Lc){return"variable"==Sb&&qc.stream.match(/^\s*[?:]/,!1)||"?"==Lc?h(Ca):":"==Sb?h(db):"spread"==Sb?h(Ca):r(db)}function sa(Sb,Lc){if("\x3c"==Lc)return h(J("\x3e"),
|
|||
|
Ha(db,"\x3e"),X,sa);if("|"==Lc||"."==Sb||"\x26"==Lc)return h(db);if("["==Sb)return h(db,F("]"),sa);if("extends"==Lc||"implements"==Lc)return qc.marked="keyword",h(db);if("?"==Lc)return h(db,F(":"),db)}function Aa(Sb,Lc){if("\x3c"==Lc)return h(J("\x3e"),Ha(db,"\x3e"),X,sa)}function Ja(){return r(db,Sa)}function Sa(Sb,Lc){if("\x3d"==Lc)return h(db)}function Ab(Sb,Lc){return"enum"==Lc?(qc.marked="keyword",h(fc)):r(jb,Oa,hc,Pa)}function jb(Sb,Lc){if(cd&&x(Lc))return qc.marked="keyword",h(jb);if("variable"==
|
|||
|
Sb)return f(Lc),h();if("spread"==Sb)return h(jb);if("["==Sb)return Ua(Wb,"]");if("{"==Sb)return Ua(Ob,"}")}function Ob(Sb,Lc){if("variable"==Sb&&!qc.stream.match(/^\s*:/,!1))return f(Lc),h(hc);"variable"==Sb&&(qc.marked="property");return"spread"==Sb?h(jb):"}"==Sb?r():"["==Sb?h(Z,F("]"),F(":"),Ob):h(F(":"),jb,hc)}function Wb(){return r(jb,hc)}function hc(Sb,Lc){if("\x3d"==Lc)return h(E)}function Pa(Sb){if(","==Sb)return h(Ab)}function ob(Sb,Lc){if("keyword b"==Sb&&"else"==Lc)return h(J("form","else"),
|
|||
|
ha,X)}function pb(Sb,Lc){if("await"==Lc)return h(pb);if("("==Sb)return h(J(")"),Zb,X)}function Zb(Sb){return"var"==Sb?h(Ab,Jc):"variable"==Sb?h(Jc):r(Jc)}function Jc(Sb,Lc){return")"==Sb?h():";"==Sb?h(Jc):"in"==Lc||"of"==Lc?(qc.marked="keyword",h(Z,Jc)):r(Z,Jc)}function ad(Sb,Lc){if("*"==Lc)return qc.marked="keyword",h(ad);if("variable"==Sb)return f(Lc),h(ad);if("("==Sb)return h(u,J(")"),Ha(yc,")"),X,Ma,ha,l);if(cd&&"\x3c"==Lc)return h(J("\x3e"),Ha(Ja,"\x3e"),X,ad)}function Pc(Sb,Lc){if("*"==Lc)return qc.marked=
|
|||
|
"keyword",h(Pc);if("variable"==Sb)return f(Lc),h(Pc);if("("==Sb)return h(u,J(")"),Ha(yc,")"),X,Ma,l);if(cd&&"\x3c"==Lc)return h(J("\x3e"),Ha(Ja,"\x3e"),X,Pc)}function Fb(Sb,Lc){if("keyword"==Sb||"variable"==Sb)return qc.marked="type",h(Fb);if("\x3c"==Lc)return h(J("\x3e"),Ha(Ja,"\x3e"),X)}function yc(Sb,Lc){"@"==Lc&&h(Z,yc);return"spread"==Sb?h(yc):cd&&x(Lc)?(qc.marked="keyword",h(yc)):cd&&"this"==Sb?h(Oa,hc):r(jb,Oa,hc)}function Vc(Sb,Lc){return"variable"==Sb?hd(Sb,Lc):Kd(Sb,Lc)}function hd(Sb,Lc){if("variable"==
|
|||
|
Sb)return f(Lc),h(Kd)}function Kd(Sb,Lc){if("\x3c"==Lc)return h(J("\x3e"),Ha(Ja,"\x3e"),X,Kd);if("extends"==Lc||"implements"==Lc||cd&&","==Sb)return"implements"==Lc&&(qc.marked="keyword"),h(cd?db:Z,Kd);if("{"==Sb)return h(J("}"),Jd,X)}function Jd(Sb,Lc){if("async"==Sb||"variable"==Sb&&("static"==Lc||"get"==Lc||"set"==Lc||cd&&x(Lc))&&qc.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return qc.marked="keyword",h(Jd);if("variable"==Sb||"keyword"==qc.style)return qc.marked="property",h(pc,Jd);if("number"==Sb||
|
|||
|
"string"==Sb)return h(pc,Jd);if("["==Sb)return h(Z,Oa,F("]"),pc,Jd);if("*"==Lc)return qc.marked="keyword",h(Jd);if(cd&&"("==Sb)return r(Pc,Jd);if(";"==Sb||","==Sb)return h(Jd);if("}"==Sb)return h();if("@"==Lc)return h(Z,Jd)}function pc(Sb,Lc){if("?"==Lc)return h(pc);if(":"==Sb)return h(db,hc);if("\x3d"==Lc)return h(E);Sb=qc.state.lexical.prev;return r(Sb&&"interface"==Sb.info?Pc:ad)}function Dd(Sb,Lc){return"*"==Lc?(qc.marked="keyword",h(Sd,F(";"))):"default"==Lc?(qc.marked="keyword",h(Z,F(";"))):
|
|||
|
"{"==Sb?h(Ha(wd,"}"),Sd,F(";")):r(ha)}function wd(Sb,Lc){if("as"==Lc)return qc.marked="keyword",h(F("variable"));if("variable"==Sb)return r(E,wd)}function Yd(Sb){return"string"==Sb?h():"("==Sb?r(Z):r(td,Qd,Sd)}function td(Sb,Lc){if("{"==Sb)return Ua(td,"}");"variable"==Sb&&f(Lc);"*"==Lc&&(qc.marked="keyword");return h(ld)}function Qd(Sb){if(","==Sb)return h(td,Qd)}function ld(Sb,Lc){if("as"==Lc)return qc.marked="keyword",h(td)}function Sd(Sb,Lc){if("from"==Lc)return qc.marked="keyword",h(Z)}function Nb(Sb){return"]"==
|
|||
|
Sb?h():r(Ha(E,"]"))}function fc(){return r(J("form"),jb,F("{"),J("}"),Ha(Yb,"}"),X,X)}function Yb(){return r(jb,hc)}function rb(Sb,Lc,Vb){return Lc.tokenize==d&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Lc.lastType)||"quasi"==Lc.lastType&&/\{\s*$/.test(Sb.string.slice(0,Sb.pos-(Vb||0)))}var nb=R.indentUnit,cc=A.statementIndent,uc=A.jsonld,Uc=A.json||uc,cd=A.typescript,Ld=A.wordCharacters||/[\w$\xa1-\uffff]/,be=function(){function Sb(Bb){return{type:Bb,style:"keyword"}}
|
|||
|
var Lc=Sb("keyword a"),Vb=Sb("keyword b"),dd=Sb("keyword c"),ve=Sb("keyword d"),oe=Sb("operator"),Ec={type:"atom",style:"atom"};return{"if":Sb("if"),"while":Lc,"with":Lc,"else":Vb,"do":Vb,"try":Vb,"finally":Vb,"return":ve,"break":ve,"continue":ve,"new":Sb("new"),"delete":dd,"void":dd,"throw":dd,"debugger":Sb("debugger"),"var":Sb("var"),"const":Sb("var"),let:Sb("var"),"function":Sb("function"),"catch":Sb("catch"),"for":Sb("for"),"switch":Sb("switch"),"case":Sb("case"),"default":Sb("default"),"in":oe,
|
|||
|
"typeof":oe,"instanceof":oe,"true":Ec,"false":Ec,"null":Ec,undefined:Ec,NaN:Ec,Infinity:Ec,"this":Sb("this"),"class":Sb("class"),"super":Sb("atom"),yield:dd,"export":Sb("export"),"import":Sb("import"),"extends":dd,await:dd}}(),ue=/[+\-*&%=<>!?|~^@]/,qd=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,vc,Nc,Ie={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},qc={state:null,column:null,marked:null,cc:null},He=new z("this",new z("arguments",
|
|||
|
null));l.lex=!0;X.lex=!0;return{startState:function(Sb){Sb={tokenize:d,lastType:"sof",cc:[],lexical:new K((Sb||0)-nb,0,"block",!1),localVars:A.localVars,context:A.localVars&&new L(null,null,!1),indented:Sb||0};A.globalVars&&"object"==typeof A.globalVars&&(Sb.globalVars=A.globalVars);return Sb},token:function(Sb,Lc){Sb.sol()&&(Lc.lexical.hasOwnProperty("align")||(Lc.lexical.align=!1),Lc.indented=Sb.indentation(),a(Sb,Lc));if(Lc.tokenize!=B&&Sb.eatSpace())return null;var Vb=Lc.tokenize(Sb,Lc);if("comment"==
|
|||
|
vc)return Vb;Lc.lastType="operator"!=vc||"++"!=Nc&&"--"!=Nc?vc:"incdec";a:{var dd=vc,ve=Nc,oe=Lc.cc;qc.state=Lc;qc.stream=Sb;qc.marked=null;qc.cc=oe;qc.style=Vb;Lc.lexical.hasOwnProperty("align")||(Lc.lexical.align=!0);for(;;)if((oe.length?oe.pop():Uc?Z:ha)(dd,ve)){for(;oe.length&&oe[oe.length-1].lex;)oe.pop()();if(qc.marked){Vb=qc.marked;break a}if(Sb="variable"==dd)b:{for(Sb=Lc.localVars;Sb;Sb=Sb.next)if(Sb.name==ve){Sb=!0;break b}for(Lc=Lc.context;Lc;Lc=Lc.prev)for(Sb=Lc.vars;Sb;Sb=Sb.next)if(Sb.name==
|
|||
|
ve){Sb=!0;break b}Sb=void 0}if(Sb){Vb="variable-2";break a}break a}}return Vb},indent:function(Sb,Lc){if(Sb.tokenize==B)return q.Pass;if(Sb.tokenize!=d)return 0;var Vb=Lc&&Lc.charAt(0),dd=Sb.lexical,ve;if(!/^\s*else\b/.test(Lc))for(var oe=Sb.cc.length-1;0<=oe;--oe){var Ec=Sb.cc[oe];if(Ec==X)dd=dd.prev;else if(Ec!=ob)break}for(;!("stat"!=dd.type&&"form"!=dd.type||"}"!=Vb&&(!(ve=Sb.cc[Sb.cc.length-1])||ve!=D&&ve!=O||/^[,\.=+\-*:?[\(]/.test(Lc)));)dd=dd.prev;cc&&")"==dd.type&&"stat"==dd.prev.type&&(dd=
|
|||
|
dd.prev);ve=dd.type;oe=Vb==ve;return"vardef"==ve?dd.indented+("operator"==Sb.lastType||","==Sb.lastType?dd.info.length+1:0):"form"==ve&&"{"==Vb?dd.indented:"form"==ve?dd.indented+nb:"stat"==ve?(Vb=dd.indented,Sb="operator"==Sb.lastType||","==Sb.lastType||ue.test(Lc.charAt(0))||/[,.]/.test(Lc.charAt(0)),Vb+(Sb?cc||nb:0)):"switch"!=dd.info||oe||0==A.doubleIndentSwitch?dd.align?dd.column+(oe?0:1):dd.indented+(oe?0:nb):dd.indented+(/^(?:case|default)\b/.test(Lc)?nb:2*nb)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,
|
|||
|
blockCommentStart:Uc?null:"/*",blockCommentEnd:Uc?null:"*/",blockCommentContinue:Uc?null:" * ",lineComment:Uc?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Uc?"json":"javascript",jsonldMode:uc,jsonMode:Uc,expressionAllowed:rb,skipExpression:function(Sb){var Lc=Sb.cc[Sb.cc.length-1];Lc!=Z&&Lc!=E||Sb.cc.pop()}}});q.registerHelper("wordChars","javascript",/[\w$]/);q.defineMIME("text/javascript","javascript");q.defineMIME("text/ecmascript","javascript");q.defineMIME("application/javascript",
|
|||
|
"javascript");q.defineMIME("application/x-javascript","javascript");q.defineMIME("application/ecmascript","javascript");q.defineMIME("application/json",{name:"javascript",json:!0});q.defineMIME("application/x-json",{name:"javascript",json:!0});q.defineMIME("application/ld+json",{name:"javascript",jsonld:!0});q.defineMIME("text/typescript",{name:"javascript",typescript:!0});q.defineMIME("application/typescript",{name:"javascript",typescript:!0})})};
|
|||
|
shadow$provide[478]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(476),W(477),W(471)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],q):q(CodeMirror)})(function(q){function R(w,B){for(var C in w)for(var a=B[C]||(B[C]=[]),K=w[C],r=K.length-1;0<=r;r--)a.unshift(K[r])}function A(w,B){for(var C=0;C<w.length;C++){var a=w[C],K;if(!(K=!a[0])){K=a[1];var r=K.test;var h=B;var k=h.match;var f=a[0];
|
|||
|
var v=d[f];f=v?v:d[f]=new RegExp("\\s+"+f+"\\s*\x3d\\s*('|\")?([^'\"]+)('|\")?\\s*");h=(h=k.call(h,f))?/^\s*(.*?)\s*$/.exec(h[2])[1]:"";K=r.call(K,h)}if(K)return a[2]}}var t={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},d={};q.defineMode("htmlmixed",
|
|||
|
function(w,B){function C(h,k){var f=a.token(h,k.htmlState),v=/\btag\b/.test(f),x;if(v&&!/[<>\s\/]/.test(h.current())&&(x=k.htmlState.tagName&&k.htmlState.tagName.toLowerCase())&&K.hasOwnProperty(x))k.inTag=x+" ";else if(k.inTag&&v&&/>$/.test(h.current())){v=/^([\S]+) (.*)/.exec(k.inTag);k.inTag=null;h="\x3e"==h.current()&&A(K[v[1]],v[2]);h=q.getMode(w,h);var L=new RegExp("^\x3c/s*"+v[1]+"s*\x3e","i"),z=new RegExp("\x3c/s*"+v[1]+"s*\x3e","i");k.token=function(u,m){if(u.match(L,!1))return m.token=C,
|
|||
|
m.localState=m.localMode=null;m=m.localMode.token(u,m.localState);var l=u.current(),J=l.search(z);-1<J?u.backUp(l.length-J):l.match(/<\/?$/)&&(u.backUp(l.length),u.match(z,!1)||u.match(l));return m};k.localMode=h;k.localState=q.startState(h,a.indent(k.htmlState,"",""))}else k.inTag&&(k.inTag+=h.current(),h.eol()&&(k.inTag+=" "));return f}var a=q.getMode(w,{name:"xml",htmlMode:!0,multilineTagIndentFactor:B.multilineTagIndentFactor,multilineTagIndentPastTag:B.multilineTagIndentPastTag}),K={},r=B&&B.tags;
|
|||
|
B=B&&B.scriptTypes;R(t,K);r&&R(r,K);if(B)for(r=B.length-1;0<=r;r--)K.script.unshift(["type",B[r].matches,B[r].mode]);return{startState:function(){var h=q.startState(a);return{token:C,inTag:null,localMode:null,localState:null,htmlState:h}},copyState:function(h){var k;h.localState&&(k=q.copyState(h.localMode,h.localState));return{token:h.token,inTag:h.inTag,localMode:h.localMode,localState:k,htmlState:q.copyState(a,h.htmlState)}},token:function(h,k){return k.token(h,k)},indent:function(h,k,f){return!h.localMode||
|
|||
|
/^\s*<\//.test(k)?a.indent(h.htmlState,k,f):h.localMode.indent?h.localMode.indent(h.localState,k,f):q.Pass},innerMode:function(h){return{state:h.localState||h.htmlState,mode:h.localMode||a}}}},"xml","javascript","css");q.defineMIME("text/html","htmlmixed")})};
|
|||
|
shadow$provide[479]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.overlayMode=function(R,A,t){return{startState:function(){return{base:q.startState(R),overlay:q.startState(A),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(d){return{base:q.copyState(R,d.base),overlay:q.copyState(A,d.overlay),basePos:d.basePos,baseCur:null,
|
|||
|
overlayPos:d.overlayPos,overlayCur:null}},token:function(d,w){if(d!=w.streamSeen||Math.min(w.basePos,w.overlayPos)<d.start)w.streamSeen=d,w.basePos=w.overlayPos=d.start;d.start==w.basePos&&(w.baseCur=R.token(d,w.base),w.basePos=d.pos);d.start==w.overlayPos&&(d.pos=d.start,w.overlayCur=A.token(d,w.overlay),w.overlayPos=d.pos);d.pos=Math.min(w.basePos,w.overlayPos);return null==w.overlayCur?w.baseCur:null!=w.baseCur&&w.overlay.combineTokens||t&&null==w.overlay.combineTokens?w.baseCur+" "+w.overlayCur:
|
|||
|
w.overlayCur},indent:R.indent&&function(d,w,B){return R.indent(d.base,w,B)},electricChars:R.electricChars,innerMode:function(d){return{state:d.base,mode:R}},blankLine:function(d){var w,B;R.blankLine&&(w=R.blankLine(d.base));A.blankLine&&(B=A.blankLine(d.overlay));return null==B?w:t&&null!=w?w+" "+B:B}}}})};
|
|||
|
shadow$provide[480]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(479)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/overlay"],q):q(CodeMirror)})(function(q){q.defineMode("django:inner",function(){function R(h,k){if(h.match("{{"))return k.tokenize=t,"tag";if(h.match("{%"))return k.tokenize=d,"tag";if(h.match("{#"))return k.tokenize=w,"comment";for(;null!=h.next()&&!h.match(/\{[{%#]/,!1););
|
|||
|
return null}function A(h,k){return function(f,v){!v.escapeNext&&f.eat(h)?v.tokenize=k:(v.escapeNext&&(v.escapeNext=!1),"\\"==f.next()&&(v.escapeNext=!0));return"string"}}function t(h,k){if(k.waitDot){k.waitDot=!1;if("."!=h.peek())return"null";if(h.match(/\.\W+/))return"error";if(h.eat("."))return k.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.");}if(k.waitPipe){k.waitPipe=!1;if("|"!=h.peek())return"null";if(h.match(/\.\W+/))return"error";if(h.eat("|"))return k.waitFilter=
|
|||
|
!0,"null";throw Error("Unexpected error while waiting for filter.");}if(k.waitProperty&&(k.waitProperty=!1,h.match(/\b(\w+)\b/)))return k.waitDot=!0,k.waitPipe=!0,"property";if(k.waitFilter&&(k.waitFilter=!1,h.match(a)))return"variable-2";if(h.eatSpace())return k.waitProperty=!1,"null";if(h.match(/\b\d+(\.\d+)?\b/))return"number";if(h.match("'"))return k.tokenize=A("'",k.tokenize),"string";if(h.match('"'))return k.tokenize=A('"',k.tokenize),"string";if(h.match(/\b(\w+)\b/)&&!k.foundVariable)return k.waitDot=
|
|||
|
!0,k.waitPipe=!0,"variable";if(h.match("}}"))return k.waitProperty=null,k.waitFilter=null,k.waitDot=null,k.waitPipe=null,k.tokenize=R,"tag";h.next();return"null"}function d(h,k){if(k.waitDot){k.waitDot=!1;if("."!=h.peek())return"null";if(h.match(/\.\W+/))return"error";if(h.eat("."))return k.waitProperty=!0,"null";throw Error("Unexpected error while waiting for property.");}if(k.waitPipe){k.waitPipe=!1;if("|"!=h.peek())return"null";if(h.match(/\.\W+/))return"error";if(h.eat("|"))return k.waitFilter=
|
|||
|
!0,"null";throw Error("Unexpected error while waiting for filter.");}if(k.waitProperty&&(k.waitProperty=!1,h.match(/\b(\w+)\b/)))return k.waitDot=!0,k.waitPipe=!0,"property";if(k.waitFilter&&(k.waitFilter=!1,h.match(a)))return"variable-2";if(h.eatSpace())return k.waitProperty=!1,"null";if(h.match(/\b\d+(\.\d+)?\b/))return"number";if(h.match("'"))return k.tokenize=A("'",k.tokenize),"string";if(h.match('"'))return k.tokenize=A('"',k.tokenize),"string";if(h.match(K))return"operator";if(h.match(r))return"keyword";
|
|||
|
var f=h.match(C);if(f)return"comment"==f[0]&&(k.blockCommentTag=!0),"keyword";if(h.match(/\b(\w+)\b/))return k.waitDot=!0,k.waitPipe=!0,"variable";if(h.match("%}"))return k.waitProperty=null,k.waitFilter=null,k.waitDot=null,k.waitPipe=null,k.blockCommentTag?(k.blockCommentTag=!1,k.tokenize=B):k.tokenize=R,"tag";h.next();return"null"}function w(h,k){h.match(/^.*?#\}/)?k.tokenize=R:h.skipToEnd();return"comment"}function B(h,k){if(h.match(/\{%\s*endcomment\s*%\}/,!1))return k.tokenize=d,h.match("{%"),
|
|||
|
"tag";h.next();return"comment"}var C="block endblock for endfor true false filter endfilter loop none self super if elif endif as else import with endwith without context ifequal endifequal ifnotequal endifnotequal extends include load comment endcomment empty url static trans blocktrans endblocktrans now regroup lorem ifchanged endifchanged firstof debug cycle csrf_token autoescape endautoescape spaceless endspaceless ssi templatetag verbatim endverbatim widthratio".split(" "),a="add addslashes capfirst center cut date default default_if_none dictsort dictsortreversed divisibleby escape escapejs filesizeformat first floatformat force_escape get_digit iriencode join last length length_is linebreaks linebreaksbr linenumbers ljust lower make_list phone2numeric pluralize pprint random removetags rjust safe safeseq slice slugify stringformat striptags time timesince timeuntil title truncatechars truncatechars_html truncatewords truncatewords_html unordered_list upper urlencode urlize urlizetrunc wordcount wordwrap yesno".split(" "),
|
|||
|
K="\x3d\x3d !\x3d \x3c \x3e \x3c\x3d \x3e\x3d".split(" "),r=["in","not","or","and"];C=new RegExp("^\\b("+C.join("|")+")\\b");a=new RegExp("^\\b("+a.join("|")+")\\b");K=new RegExp("^\\b("+K.join("|")+")\\b");r=new RegExp("^\\b("+r.join("|")+")\\b");return{startState:function(){return{tokenize:R}},token:function(h,k){return k.tokenize(h,k)},blockCommentStart:"{% comment %}",blockCommentEnd:"{% endcomment %}"}});q.defineMode("django",function(R){var A=q.getMode(R,"text/html");R=q.getMode(R,"django:inner");
|
|||
|
return q.overlayMode(A,R)});q.defineMIME("text/x-django","django")})};
|
|||
|
shadow$provide[481]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(a,K){if(!a.hasOwnProperty(K))throw Error("Undefined state "+K+" in simple mode");}function A(a,K){if(!a)return/(?:)/;var r="";a instanceof RegExp?(a.ignoreCase&&(r="i"),a=a.source):a=String(a);return new RegExp((!1===K?"":"^")+"(?:"+a+")",r)}function t(a){if(!a)return null;if(a.apply)return a;
|
|||
|
if("string"==typeof a)return a.replace(/\./g," ");for(var K=[],r=0;r<a.length;r++)K.push(a[r]&&a[r].replace(/\./g," "));return K}function d(a,K){(a.next||a.push)&&R(K,a.next||a.push);this.regex=A(a.regex);this.token=t(a.token);this.data=a}function w(a,K){return function(r,h){if(h.pending){var k=h.pending.shift();0==h.pending.length&&(h.pending=null);r.pos+=k.text.length;return k.token}if(h.local){if(h.local.end&&r.match(h.local.end))k=h.local.endToken||null,h.local=h.localState=null;else{k=h.local.mode.token(r,
|
|||
|
h.localState);var f;h.local.endScan&&(f=h.local.endScan.exec(r.current()))&&(r.pos=r.start+f.index)}return k}for(var v=a[h.state],x=0;x<v.length;x++)if(k=v[x],f=(!k.data.sol||r.sol())&&r.match(k.regex)){k.data.next?h.state=k.data.next:k.data.push?((h.stack||(h.stack=[])).push(h.state),h.state=k.data.push):k.data.pop&&h.stack&&h.stack.length&&(h.state=h.stack.pop());if(k.data.mode){v=void 0;var L=K;x=h;var z=k.data.mode,u=k.token;if(z.persistent)for(var m=x.persistentStates;m&&!v;m=m.next)if(z.spec?
|
|||
|
B(z.spec,m.spec):z.mode==m.mode)v=m;L=v?v.mode:z.mode||q.getMode(L,z.spec);m=v?v.state:q.startState(L);z.persistent&&!v&&(x.persistentStates={mode:L,spec:z.spec,state:m,next:x.persistentStates});x.localState=m;x.local={mode:L,end:z.end&&A(z.end),endScan:z.end&&!1!==z.forceEnd&&A(z.end,!1),endToken:u&&u.join?u[u.length-1]:u}}k.data.indent&&h.indent.push(r.indentation()+K.indentUnit);k.data.dedent&&h.indent.pop();(v=k.token)&&v.apply&&(v=v(f));if(2<f.length&&k.token&&"string"!=typeof k.token){h.pending=
|
|||
|
[];for(x=2;x<f.length;x++)f[x]&&h.pending.push({text:f[x],token:k.token[x-1]});r.backUp(f[0].length-(f[1]?f[1].length:0));return v[0]}return v&&v.join?v[0]:v}r.next();return null}}function B(a,K){if(a===K)return!0;if(!a||"object"!=typeof a||!K||"object"!=typeof K)return!1;var r=0,h;for(h in a)if(a.hasOwnProperty(h)){if(!K.hasOwnProperty(h)||!B(a[h],K[h]))return!1;r++}for(h in K)K.hasOwnProperty(h)&&r--;return 0==r}function C(a,K){return function(r,h,k){if(r.local&&r.local.mode.indent)return r.local.mode.indent(r.localState,
|
|||
|
h,k);if(!(k=null==r.indent||r.local)&&(k=K.dontIndentStates)){a:{k=K.dontIndentStates;for(var f=0;f<k.length;f++)if(k[f]===r.state){k=!0;break a}k=void 0}k=-1<k}if(k)return q.Pass;k=r.indent.length-1;f=a[r.state];a:for(;;){for(var v=0;v<f.length;v++){var x=f[v];if(x.data.dedent&&!1!==x.data.dedentIfLineStart){var L=x.regex.exec(h);if(L&&L[0]){k--;if(x.next||x.push)f=a[x.next||x.push];h=h.slice(L[0].length);continue a}}}break}return 0>k?0:r.indent[k]}}q.defineSimpleMode=function(a,K){q.defineMode(a,
|
|||
|
function(r){return q.simpleMode(r,K)})};q.simpleMode=function(a,K){R(K,"start");var r={},h=K.meta||{},k=!1,f;for(f in K)if(f!=h&&K.hasOwnProperty(f))for(var v=r[f]=[],x=K[f],L=0;L<x.length;L++){var z=x[L];v.push(new d(z,K));if(z.indent||z.dedent)k=!0}a={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:k?[]:null}},copyState:function(m){var l={state:m.state,pending:m.pending,local:m.local,localState:null,indent:m.indent&&m.indent.slice(0)};m.localState&&(l.localState=
|
|||
|
q.copyState(m.local.mode,m.localState));m.stack&&(l.stack=m.stack.slice(0));for(var J=m.persistentStates;J;J=J.next)l.persistentStates={mode:J.mode,spec:J.spec,state:J.state==m.localState?l.localState:q.copyState(J.mode,J.state),next:l.persistentStates};return l},token:w(r,a),innerMode:function(m){return m.local&&{mode:m.local.mode,state:m.localState}},indent:C(r,h)};if(h)for(var u in h)h.hasOwnProperty(u)&&(a[u]=h[u]);return a}})};
|
|||
|
shadow$provide[482]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],q):q(CodeMirror)})(function(q){var R=RegExp("^(\\s*)\\b(from)\\b","i"),A=["run","cmd","entrypoint","shell"],t=new RegExp("^(\\s*)("+A.join("|")+")(\\s+\\[)","i"),d=RegExp("^(\\s*)(expose)(\\s+)","i");A="("+["from","expose"].concat(A).concat("arg from maintainer label env add copy volume user workdir onbuild stopsignal healthcheck shell".split(" ")).join("|")+
|
|||
|
")";q.defineSimpleMode("dockerfile",{start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:R,token:[null,"keyword"],sol:!0,next:"from"},{regex:new RegExp("^(\\s*)"+A+"(\\s*)(#.*)?$","i"),token:[null,"keyword",null,"error"],sol:!0},{regex:t,token:[null,"keyword",null],sol:!0,next:"array"},{regex:d,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:new RegExp("^(\\s*)"+A+"(\\s+)","i"),token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,
|
|||
|
next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},
|
|||
|
{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],meta:{lineComment:"#"}});q.defineMIME("text/x-dockerfile",
|
|||
|
"dockerfile")})};
|
|||
|
shadow$provide[483]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("dtd",function(R){function A(K,r){a=r;return K}function t(K,r){var h=K.next();if("\x3c"==h&&K.eat("!")){if(K.eatWhile(/[\-]/))return r.tokenize=d,d(K,r);if(K.eatWhile(/[\w]/))return A("keyword","doindent")}else{if("\x3c"==h&&K.eat("?"))return r.tokenize=B("meta","?\x3e"),A("meta",h);
|
|||
|
if("#"==h&&K.eatWhile(/[\w]/))return A("atom","tag");if("|"==h)return A("keyword","seperator");if(h.match(/[\(\)\[\]\-\.,\+\?>]/))return A(null,h);if(h.match(/[\[\]]/))return A("rule",h);if('"'==h||"'"==h)return r.tokenize=w(h),r.tokenize(K,r);if(K.eatWhile(/[a-zA-Z\?\+\d]/))return r=K.current(),null!==r.substr(r.length-1,r.length).match(/\?|\+/)&&K.backUp(1),A("tag","tag");if("%"==h||"*"==h)return A("number","number");K.eatWhile(/[\w\\\-_%.{,]/);return A(null,null)}}function d(K,r){for(var h=0,k;null!=
|
|||
|
(k=K.next());){if(2<=h&&"\x3e"==k){r.tokenize=t;break}h="-"==k?h+1:0}return A("comment","comment")}function w(K){return function(r,h){for(var k=!1,f;null!=(f=r.next());){if(f==K&&!k){h.tokenize=t;break}k=!k&&"\\"==f}return A("string","tag")}}function B(K,r){return function(h,k){for(;!h.eol();){if(h.match(r)){k.tokenize=t;break}h.next()}return K}}var C=R.indentUnit,a;return{startState:function(K){return{tokenize:t,baseIndent:K||0,stack:[]}},token:function(K,r){if(K.eatSpace())return null;var h=r.tokenize(K,
|
|||
|
r),k=r.stack[r.stack.length-1];"["==K.current()||"doindent"===a||"["==a?r.stack.push("rule"):"endtag"===a?r.stack[r.stack.length-1]="endtag":"]"==K.current()||"]"==a||"\x3e"==a&&"rule"==k?r.stack.pop():"["==a&&r.stack.push("[");return h},indent:function(K,r){var h=K.stack.length;if(r.match(/\]\s+|\]/))--h;else if("\x3e"===r.substr(r.length-1,r.length)){if("\x3c"!==r.substr(0,1)&&!("doindent"==a&&1<r.length))if("doindent"==a)h--;else if(!("\x3e"==a&&1<r.length||"tag"==a&&"\x3e"!==r))if("tag"==a&&"rule"==
|
|||
|
K.stack[K.stack.length-1])h--;else if("tag"==a)h++;else if("\x3e"===r&&"rule"==K.stack[K.stack.length-1]&&"\x3e"===a)h--;else if("\x3e"!==r||"rule"!=K.stack[K.stack.length-1])"\x3c"!==r.substr(0,1)&&"\x3e"===r.substr(0,1)?--h:"\x3e"!==r&&--h;null!=a&&"]"!=a||h--}return K.baseIndent+h*C},electricChars:"]\x3e"}});q.defineMIME("application/xml-dtd","dtd")})};
|
|||
|
shadow$provide[484]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(t,d){for(var w=0;w<t.length;w++)d(t[w],w)}function A(t,d){for(var w=0;w<t.length;w++)if(d(t[w],w))return!0;return!1}q.defineMode("dylan",function(t){function d(L,z,u){z.tokenize=u;return u(L,z)}function w(L,z){var u=L.peek();if("'"==u||'"'==u)return L.next(),d(L,z,C(u,"string"));if("/"==
|
|||
|
u){L.next();if(L.eat("*"))return d(L,z,B);if(L.eat("/"))return L.skipToEnd(),"comment";L.backUp(1)}else if(/[+\-\d\.]/.test(u)){if(L.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||L.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||L.match(/^[+-]?\d+/))return"number"}else{if("#"==u){L.next();u=L.peek();if('"'==u)return L.next(),d(L,z,C('"',"string"));if("b"==u)return L.next(),L.eatWhile(/[01]/),"number";if("x"==u)return L.next(),L.eatWhile(/[\da-f]/i),"number";if("o"==u)return L.next(),L.eatWhile(/[0-7]/),
|
|||
|
"number";if("#"==u)return L.next(),"punctuation";if("["==u||"("==u)return L.next(),"bracket";if(L.match(/f|t|all-keys|include|key|next|rest/i))return"atom";L.eatWhile(/[-a-zA-Z]/);return"error"}if("~"==u)return L.next(),u=L.peek(),"\x3d"==u&&(L.next(),u=L.peek(),"\x3d"==u&&L.next()),"operator";if(":"==u){L.next();u=L.peek();if("\x3d"==u)return L.next(),"operator";if(":"==u)return L.next(),"punctuation"}else{if(-1!="[](){}".indexOf(u))return L.next(),"bracket";if(-1!=".,".indexOf(u))return L.next(),
|
|||
|
"punctuation";if(L.match("end"))return"keyword"}}for(var m in r)if(r.hasOwnProperty(m)&&(z=r[m],z instanceof Array&&A(z,function(l){return L.match(l)})||L.match(z)))return h[m];if(/[+\-*\/^=<>&|]/.test(u))return L.next(),"operator";if(L.match("define"))return"def";L.eatWhile(/[\w\-]/);if(v.hasOwnProperty(L.current()))return x[L.current()];if(L.current().match(K))return"variable";L.next();return"variable-2"}function B(L,z){for(var u=!1,m=!1,l=0,J;J=L.next();){if("/"==J&&u)if(0<l)l--;else{z.tokenize=
|
|||
|
w;break}else"*"==J&&m&&l++;u="*"==J;m="/"==J}return"comment"}function C(L,z){return function(u,m){for(var l=!1,J,X=!1;null!=(J=u.next());){if(J==L&&!l){X=!0;break}l=!l&&"\\"==J}if(X||!l)m.tokenize=w;return z}}var a={unnamedDefinition:["interface"],namedDefinition:"module library macro C-struct C-union C-function C-callable-wrapper".split(" "),typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],
|
|||
|
variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:"if block begin method case for select when unless until while iterate profiling dynamic-bind".split(" "),separator:"finally exception cleanup else elseif afterwards".split(" "),other:"above below by from handler in instance let local otherwise slot subclass then to keyed-by virtual".split(" "),signalingCalls:"signal error cerror break check-type abort".split(" ")};a.otherDefinition=
|
|||
|
a.unnamedDefinition.concat(a.namedDefinition).concat(a.otherParameterizedDefinition);a.definition=a.typeParameterizedDefinition.concat(a.otherDefinition);a.parameterizedDefinition=a.typeParameterizedDefinition.concat(a.otherParameterizedDefinition);a.simpleDefinition=a.constantSimpleDefinition.concat(a.variableSimpleDefinition).concat(a.otherSimpleDefinition);a.keyword=a.statement.concat(a.separator).concat(a.other);var K=RegExp("^[-_a-zA-Z?!*@\x3c\x3e$%]+"),r={symbolKeyword:"[-_a-zA-Z?!*@\x3c\x3e$%]+:",
|
|||
|
symbolClass:"\x3c[-_a-zA-Z?!*@\x3c\x3e$%]+\x3e",symbolGlobal:"\\*[-_a-zA-Z?!*@\x3c\x3e$%]+\\*",symbolConstant:"\\$[-_a-zA-Z?!*@\x3c\x3e$%]+"},h={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"},k;for(k in r)r.hasOwnProperty(k)&&(r[k]=new RegExp("^"+r[k]));r.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var f={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},v={},x={};R(["keyword","definition","simpleDefinition","signalingCalls"],
|
|||
|
function(L){R(a[L],function(z){v[z]=L;x[z]=f[L]})});return{startState:function(){return{tokenize:w,currentIndent:0}},token:function(L,z){return L.eatSpace()?null:z.tokenize(L,z)},blockCommentStart:"/*",blockCommentEnd:"*/"}});q.defineMIME("text/x-dylan","dylan")})};
|
|||
|
shadow$provide[485]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("ebnf",function(R){var A=null;R.bracesMode&&(A=q.getMode(R,R.bracesMode));return{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(t,d){if(t){0===d.stack.length&&('"'==t.peek()||"'"==t.peek()?(d.stringType=
|
|||
|
t.peek(),t.next(),d.stack.unshift(1)):t.match(/^\/\*/)?(d.stack.unshift(0),d.commentType=0):t.match(/^\(\*/)&&(d.stack.unshift(0),d.commentType=1));switch(d.stack[0]){case 1:for(;1===d.stack[0]&&!t.eol();)t.peek()===d.stringType?(t.next(),d.stack.shift()):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\"']*/);return d.lhs?"property string":"string";case 0:for(;0===d.stack[0]&&!t.eol();)0===d.commentType&&t.match(/\*\//)?(d.stack.shift(),d.commentType=null):1===d.commentType&&t.match(/\*\)/)?(d.stack.shift(),
|
|||
|
d.commentType=null):t.match(/^.[^\*]*/);return"comment";case 2:for(;2===d.stack[0]&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||d.stack.shift();return"operator"}var w=t.peek();if(null!==A&&(d.braced||"{"===w)){null===d.localState&&(d.localState=q.startState(A));w=A.token(t,d.localState);t=t.current();if(!w)for(var B=0;B<t.length;B++)"{"===t[B]?(0===d.braced&&(w="matchingbracket"),d.braced++):"}"===t[B]&&(d.braced--,0===d.braced&&(w="matchingbracket"));return w}switch(w){case "[":return t.next(),
|
|||
|
d.stack.unshift(2),"bracket";case ":":case "|":case ";":return t.next(),"operator";case "%":if(t.match("%%"))return"header";if(t.match(/[%][A-Za-z]+/))return"keyword";if(t.match(/[%][}]/))return"matchingbracket";break;case "/":if(t.match(/[\/][A-Za-z]+/))return"keyword";case "\\":if(t.match(/[\][a-z]+/))return"string-2";case ".":if(t.match("."))return"atom";case "*":case "-":case "+":case "^":if(t.match(w))return"atom";case "$":if(t.match("$$"))return"builtin";if(t.match(/[$][0-9]+/))return"variable-3";
|
|||
|
case "\x3c":if(t.match(/<<[a-zA-Z_]+>>/))return"builtin"}if(t.match(/^\/\//))return t.skipToEnd(),"comment";if(t.match(/return/))return"operator";if(t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/))return t.match(/(?=[\(.])/)?"variable":t.match(/(?=[\s\n]*[:=])/)?"def":"variable-2";if(-1!=["[","]","(",")"].indexOf(t.peek()))return t.next(),"bracket";t.eatSpace()||t.next();return null}}}});q.defineMIME("text/x-ebnf","ebnf")})};
|
|||
|
shadow$provide[486]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("ecl",function(R){function A(l){var J={};l=l.split(" ");for(var X=0;X<l.length;++X)J[l[X]]=!0;return J}function t(l,J){var X=l.next();if(z[X]){var F=z[X](l,J);if(!1!==F)return F}if('"'==X||"'"==X)return J.tokenize=d(X),J.tokenize(l,J);if(/[\[\]{}\(\),;:\.]/.test(X))return m=X,null;if(/\d/.test(X))return l.eatWhile(/[\w\.]/),
|
|||
|
"number";if("/"==X){if(l.eat("*"))return J.tokenize=w,w(l,J);if(l.eat("/"))return l.skipToEnd(),"comment"}if(u.test(X))return l.eatWhile(u),"operator";l.eatWhile(/[\w\$_]/);l=l.current().toLowerCase();if(r.propertyIsEnumerable(l))return x.propertyIsEnumerable(l)&&(m="newstatement"),"keyword";if(h.propertyIsEnumerable(l))return x.propertyIsEnumerable(l)&&(m="newstatement"),"variable";if(k.propertyIsEnumerable(l))return x.propertyIsEnumerable(l)&&(m="newstatement"),"variable-2";if(f.propertyIsEnumerable(l))return x.propertyIsEnumerable(l)&&
|
|||
|
(m="newstatement"),"variable-3";if(v.propertyIsEnumerable(l))return x.propertyIsEnumerable(l)&&(m="newstatement"),"builtin";for(J=l.length-1;0<=J&&(!isNaN(l[J])||"_"==l[J]);)--J;return 0<J&&(J=l.substr(0,J+1),f.propertyIsEnumerable(J))?(x.propertyIsEnumerable(J)&&(m="newstatement"),"variable-3"):L.propertyIsEnumerable(l)?"atom":null}function d(l){return function(J,X){for(var F=!1,ha,T=!1;null!=(ha=J.next());){if(ha==l&&!F){T=!0;break}F=!F&&"\\"==ha}if(T||!F)X.tokenize=t;return"string"}}function w(l,
|
|||
|
J){for(var X=!1,F;F=l.next();){if("/"==F&&X){J.tokenize=t;break}X="*"==F}return"comment"}function B(l,J,X,F,ha){this.indented=l;this.column=J;this.type=X;this.align=F;this.prev=ha}function C(l,J,X){return l.context=new B(l.indented,J,X,null,l.context)}function a(l){var J=l.context.type;if(")"==J||"]"==J||"}"==J)l.indented=l.context.indented;return l.context=l.context.prev}var K=R.indentUnit,r=A("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),
|
|||
|
h=A("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),k=A("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),
|
|||
|
f=A("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),v=A("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),x=A("catch class do else finally for if switch try while"),L=A("true false null"),z={"#":function(l,J){if(!J.startOfLine)return!1;l.skipToEnd();return"meta"}},u=/[+\-*&%=<>!?|\/]/,m;return{startState:function(l){return{tokenize:null,
|
|||
|
context:new B((l||0)-K,0,"top",!1),indented:0,startOfLine:!0}},token:function(l,J){var X=J.context;l.sol()&&(null==X.align&&(X.align=!1),J.indented=l.indentation(),J.startOfLine=!0);if(l.eatSpace())return null;m=null;var F=(J.tokenize||t)(l,J);if("comment"==F||"meta"==F)return F;null==X.align&&(X.align=!0);if(";"!=m&&":"!=m||"statement"!=X.type)if("{"==m)C(J,l.column(),"}");else if("["==m)C(J,l.column(),"]");else if("("==m)C(J,l.column(),")");else if("}"==m){for(;"statement"==X.type;)X=a(J);for("}"==
|
|||
|
X.type&&(X=a(J));"statement"==X.type;)X=a(J)}else m==X.type?a(J):("}"==X.type||"top"==X.type||"statement"==X.type&&"newstatement"==m)&&C(J,l.column(),"statement");else a(J);J.startOfLine=!1;return F},indent:function(l,J){if(l.tokenize!=t&&null!=l.tokenize)return 0;l=l.context;J=J&&J.charAt(0);"statement"==l.type&&"}"==J&&(l=l.prev);var X=J==l.type;return"statement"==l.type?l.indented+("{"==J?0:K):l.align?l.column+(X?0:1):l.indented+(X?0:K)},electricChars:"{}"}});q.defineMIME("text/x-ecl","ecl")})};
|
|||
|
shadow$provide[487]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("eiffel",function(){function R(B){for(var C={},a=0,K=B.length;a<K;++a)C[B[a]]=!0;return C}function A(B,C){if(B.eatSpace())return null;var a=B.next();return'"'==a||"'"==a?(a=t(a,"string"),C.tokenize.push(a),a(B,C)):"-"==a&&B.eat("-")?(B.skipToEnd(),"comment"):":"==a&&B.eat("\x3d")?"operator":
|
|||
|
/[0-9]/.test(a)?(B.eatWhile(/[xXbBCc0-9\.]/),B.eat(/[\?!]/),"ident"):/[a-zA-Z_0-9]/.test(a)?(B.eatWhile(/[a-zA-Z_0-9]/),B.eat(/[\?!]/),"ident"):/[=+\-\/*^%<>~]/.test(a)?(B.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function t(B,C,a){return function(K,r){for(var h=!1,k;null!=(k=K.next());){if(k==B&&(a||!h)){r.tokenize.pop();break}h=!h&&"%"==k}return C}}var d=R("note across when variant until unique undefine then strip select retry rescue require rename reference redefine prefix once old obsolete loop local like is inspect infix include if frozen from external export ensure end elseif else do creation create check alias agent separate invariant inherit indexing feature expanded deferred class Void True Result Precursor False Current create attached detachable as and implies not or".split(" ")),
|
|||
|
w=R(":\x3d;and then;and;or;\x3c\x3c;\x3e\x3e".split(";"));return{startState:function(){return{tokenize:[A]}},token:function(B,C){C=C.tokenize[C.tokenize.length-1](B,C);"ident"==C&&(C=B.current(),C=d.propertyIsEnumerable(B.current())?"keyword":w.propertyIsEnumerable(B.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(C)?"tag":/^0[bB][0-1]+$/g.test(C)?"number":/^0[cC][0-7]+$/g.test(C)?"number":/^0[xX][a-fA-F0-9]+$/g.test(C)?"number":/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(C)?"number":/^[0-9]+$/g.test(C)?
|
|||
|
"number":"variable");return C},lineComment:"--"}});q.defineMIME("text/x-eiffel","eiffel")})};
|
|||
|
shadow$provide[488]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("elm",function(){function R(z,u,m){u(m);return m(z,u)}function A(){return function(z,u){if(z.eatWhile(x))return null;var m=z.next();if(v.test(m))return"{"===m&&z.eat("-")?R(z,u,t(1)):"["===m&&z.match("glsl|")?R(z,u,C):"builtin";if("'"===m)return R(z,u,B);if('"'===m)return z.eat('"')?
|
|||
|
z.eat('"')?R(z,u,d):"string":R(z,u,w);if(K.test(m))return z.eatWhile(r),"variable-2";if(a.test(m))return u=1===z.pos,z.eatWhile(r),u?"def":"variable";if(h.test(m)){if("0"===m){if(z.eat(/[xX]/))return z.eatWhile(k),"number"}else z.eatWhile(h);z.eat(".")&&z.eatWhile(h);z.eat(/[eE]/)&&(z.eat(/[-+]/),z.eatWhile(h));return"number"}if(f.test(m)){if("-"===m&&z.eat("-"))return z.skipToEnd(),"comment";z.eatWhile(f);return"keyword"}return"_"===m?"keyword":"error"}}function t(z){return 0==z?A():function(u,m){for(;!u.eol();){var l=
|
|||
|
u.next();if("{"==l&&u.eat("-"))++z;else if("-"==l&&u.eat("}")&&(--z,0===z))return m(A()),"comment"}m(t(z));return"comment"}}function d(z,u){for(;!z.eol();)if('"'===z.next()&&z.eat('"')&&z.eat('"')){u(A());break}return"string"}function w(z,u){for(;z.skipTo('\\"');)z.next(),z.next();if(z.skipTo('"'))return z.next(),u(A()),"string";z.skipToEnd();u(A());return"error"}function B(z,u){for(;z.skipTo("\\'");)z.next(),z.next();if(z.skipTo("'"))return z.next(),u(A()),"string";z.skipToEnd();u(A());return"error"}
|
|||
|
function C(z,u){for(;!z.eol();)if("|"===z.next()&&z.eat("]")){u(A());break}return"string"}var a=/[a-z]/,K=/[A-Z]/,r=/[a-zA-Z0-9_]/,h=/[0-9]/,k=/[0-9A-Fa-f]/,f=/[-&*+.\\/<>=?^|:]/,v=/[(),[\]{}]/,x=/[ \v\f]/,L={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};return{startState:function(){return{f:A()}},copyState:function(z){return{f:z.f}},token:function(z,u){var m=u.f(z,function(l){u.f=l});z=z.current();return L.hasOwnProperty(z)?"keyword":m}}});
|
|||
|
q.defineMIME("text/x-elm","elm")})};
|
|||
|
shadow$provide[489]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMIME("text/x-erlang","erlang");q.defineMode("erlang",function(R){function A(S,D){if(D.in_string)return D.in_string=!w(S,'"',"\\"),C(D,S,"string");if(D.in_atom)return D.in_atom=!w(S,"'","\\"),C(D,S,"atom");if(S.eatSpace())return C(D,S,"whitespace");if(!a(D)&&S.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return B(S.current(),
|
|||
|
x)?C(D,S,"type"):C(D,S,"attribute");var O=S.next();if("%"==O)return S.skipToEnd(),C(D,S,"comment");if(":"==O)return C(D,S,"colon");if("?"==O)return S.eatSpace(),S.eatWhile(aa),C(D,S,"macro");if("#"==O)return S.eatSpace(),S.eatWhile(aa),C(D,S,"record");if("$"==O)return"\\"!=S.next()||S.match(M)?C(D,S,"number"):C(D,S,"error");if("."==O)return C(D,S,"dot");if("'"==O){if(!(D.in_atom=!w(S,"'","\\"))){if(S.match(/\s*\/\s*[0-9]/,!1))return S.match(/\s*\/\s*[0-9]/,!0),C(D,S,"fun");if(S.match(/\s*\(/,!1)||
|
|||
|
S.match(/\s*:/,!1))return C(D,S,"function")}return C(D,S,"atom")}if('"'==O)return D.in_string=!w(S,'"',"\\"),C(D,S,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(O))return S.eatWhile(aa),C(D,S,"variable");if(/[a-z_ß-öø-ÿ]/.test(O)){S.eatWhile(aa);if(S.match(/\s*\/\s*[0-9]/,!1))return S.match(/\s*\/\s*[0-9]/,!0),C(D,S,"fun");O=S.current();if(B(O,L))return C(D,S,"keyword");if(B(O,m))return C(D,S,"operator");if(S.match(/\s*\(/,!1))return!B(O,E)||":"==a(D).token&&"erlang"!=a(D,2).token?B(O,Z)?C(D,S,"guard"):C(D,S,
|
|||
|
"function"):C(D,S,"builtin");var P=S.match(/([\n\s]+|%[^\n]*\n)*(.)/,!1);return":"==(P?P.pop():"")?"erlang"==O?C(D,S,"builtin"):C(D,S,"function"):B(O,["true","false"])?C(D,S,"boolean"):C(D,S,"atom")}P=/[0-9]/;var da=/[0-9a-zA-Z]/;return P.test(O)?(S.eatWhile(P),S.eat("#")?S.eatWhile(da)||S.backUp(1):S.eat(".")&&(S.eatWhile(P)?S.eat(/[eE]/)&&(S.eat(/[-+]/)?S.eatWhile(P)||S.backUp(2):S.eatWhile(P)||S.backUp(1)):S.backUp(1)),C(D,S,"number")):t(S,X,F)?C(D,S,"open_paren"):t(S,ha,T)?C(D,S,"close_paren"):
|
|||
|
d(S,z,u)?C(D,S,"separator"):d(S,l,J)?C(D,S,"operator"):C(D,S,null)}function t(S,D,O){if(1==S.current().length&&D.test(S.current())){for(S.backUp(1);D.test(S.peek());)if(S.next(),B(S.current(),O))return!0;S.backUp(S.current().length-1)}return!1}function d(S,D,O){if(1==S.current().length&&D.test(S.current())){for(;D.test(S.peek());)S.next();for(;0<S.current().length;){if(B(S.current(),O))return!0;S.backUp(1)}S.next()}return!1}function w(S,D,O){for(;!S.eol();){var P=S.next();if(P==D)return!0;P==O&&S.next()}return!1}
|
|||
|
function B(S,D){return-1<D.indexOf(S)}function C(S,D,O){var P=D.current();var da=D.column();D=D.indentation();P={token:P,column:da,indent:D,type:O};"comment"!=P.type&&"whitespace"!=P.type&&(da=S.tokenStack,D=da.length-1,0<D&&"record"===da[D].type&&"dot"===P.type?da.pop():(0<D&&"group"===da[D].type&&da.pop(),da.push(P)),S.tokenStack=da,S.tokenStack=K(S.tokenStack));switch(O){case "atom":return"atom";case "attribute":return"attribute";case "boolean":return"atom";case "builtin":return"builtin";case "close_paren":return null;
|
|||
|
case "colon":return null;case "comment":return"comment";case "dot":return null;case "error":return"error";case "fun":return"meta";case "function":return"tag";case "guard":return"property";case "keyword":return"keyword";case "macro":return"variable-2";case "number":return"number";case "open_paren":return null;case "operator":return"operator";case "record":return"bracket";case "separator":return null;case "string":return"string";case "type":return"def";case "variable":return"variable";default:return null}}
|
|||
|
function a(S,D){var O=S.tokenStack.length;D=D?D:1;return O<D?!1:S.tokenStack[O-D]}function K(S){if(!S.length)return S;var D=S.length-1;if("dot"===S[D].type)return[];if(1<D&&"fun"===S[D].type&&"fun"===S[D-1].token)return S.slice(0,D-1);switch(S[D].token){case "}":return r(S,{g:["{"]});case "]":return r(S,{i:["["]});case ")":return r(S,{i:["("]});case "\x3e\x3e":return r(S,{i:["\x3c\x3c"]});case "end":return r(S,{i:"begin case fun if receive try".split(" ")});case ",":return r(S,{e:"begin try when -\x3e , ( [ { \x3c\x3c".split(" ")});
|
|||
|
case "-\x3e":return r(S,{r:["when"],m:["try","if","case","receive"]});case ";":return r(S,{E:"case fun if receive try when".split(" ")});case "catch":return r(S,{e:["try"]});case "of":return r(S,{e:["case"]});case "after":return r(S,{e:["receive","try"]});default:return S}}function r(S,D){for(var O in D)for(var P=S.length-1,da=D[O],ba=P-1;-1<ba;ba--)if(B(S[ba].token,da)){var H=S.slice(0,ba);switch(O){case "m":return H.concat(S[ba]).concat(S[P]);case "r":return H.concat(S[P]);case "i":return H;case "g":return S=
|
|||
|
H,S.concat.call(S,{token:"group",column:0,indent:0,type:"group"});case "E":return H.concat(S[ba]);case "e":return H.concat(S[ba])}}return"E"==O?[]:S}function h(S,D){var O,P=R.indentUnit;D=D.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);D=v(D)&&0===D.index?D[0]:"";var da=a(S,1),ba=a(S,2);if(S.in_string||S.in_atom)return q.Pass;if(ba){if("when"==da.token)return da.column+P;if("when"===D&&"function"===ba.type)return ba.indent+P;if("("===D&&"fun"===da.token)return da.column+3;if("catch"===D&&(O=k(S,["try"])))return O.column;
|
|||
|
if(B(D,["end","after","of"]))return(O=k(S,"begin case fun if receive try".split(" ")))?O.column:q.Pass;if(B(D,T))return(O=k(S,F))?O.column:q.Pass;if(B(da.token,[",","|","||"])||B(D,[",","|","||"]))return S=S.tokenStack.slice(0,-1),O=f(S,"type",["open_paren"]),(O=v(S[O])?S[O]:!1)?O.column+O.token.length:P;if("-\x3e"==da.token)return B(ba.token,["receive","case","if","try"])?ba.column+P+P:ba.column+P;if(B(da.token,F))return da.column+da.token.length;S=S.tokenStack;O=f(S,"type",["open_paren","separator",
|
|||
|
"keyword"]);D=f(S,"type",["operator"]);O=v(O)&&v(D)&&O<D?S[O+1]:v(O)?S[O]:!1;return v(O)?O.column+P:0}return 0}function k(S,D){S=S.tokenStack;D=f(S,"token",D);return v(S[D])?S[D]:!1}function f(S,D,O){for(var P=S.length-1;-1<P;P--)if(B(S[P][D],O))return P;return!1}function v(S){return!1!==S&&null!=S}var x=["-type","-spec","-export_type","-opaque"],L="after begin catch case cond end fun if let of query receive try when".split(" "),z=/[\->,;]/,u=["-\x3e",";",","],m="and andalso band bnot bor bsl bsr bxor div not or orelse rem xor".split(" "),
|
|||
|
l=/[\+\-\*\/<>=\|:!]/,J="\x3d + - * / \x3e \x3e\x3d \x3c \x3d\x3c \x3d:\x3d \x3d\x3d \x3d/\x3d /\x3d || \x3c- !".split(" "),X=/[<\(\[\{]/,F=["\x3c\x3c","(","[","{"],ha=/[>\)\]\}]/,T=["}","]",")","\x3e\x3e"],Z="is_atom is_binary is_bitstring is_boolean is_float is_function is_integer is_list is_number is_pid is_port is_record is_reference is_tuple atom binary bitstring boolean function integer list number pid port record reference tuple".split(" "),E="abs adler32 adler32_combine alive apply atom_to_binary atom_to_list binary_to_atom binary_to_existing_atom binary_to_list binary_to_term bit_size bitstring_to_list byte_size check_process_code contact_binary crc32 crc32_combine date decode_packet delete_module disconnect_node element erase exit float float_to_list garbage_collect get get_keys group_leader halt hd integer_to_list internal_bif iolist_size iolist_to_binary is_alive is_atom is_binary is_bitstring is_boolean is_float is_function is_integer is_list is_number is_pid is_port is_process_alive is_record is_reference is_tuple length link list_to_atom list_to_binary list_to_bitstring list_to_existing_atom list_to_float list_to_integer list_to_pid list_to_tuple load_module make_ref module_loaded monitor_node node node_link node_unlink nodes notalive now open_port pid_to_list port_close port_command port_connect port_control pre_loaded process_flag process_info processes purge_module put register registered round self setelement size spawn spawn_link spawn_monitor spawn_opt split_binary statistics term_to_binary time throw tl trunc tuple_size tuple_to_list unlink unregister whereis".split(" "),
|
|||
|
aa=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,M=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(S,D){return A(S,D)},indent:function(S,D){return h(S,D)},lineComment:"%"}})})};
|
|||
|
shadow$provide[490]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],q):q(CodeMirror)})(function(q){q.defineSimpleMode("factor",{start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,
|
|||
|
token:"number"},{regex:/((?:GENERIC)|:?:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING:/,token:"keyword",next:"vocabulary"},{regex:/(USE:|IN:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|<PRIVATE|\.|\S*\[|\]|\S*\{|\})(?=\s|$)/,token:"keyword"},{regex:/\S+[\)>\.\*\?]+(?=\s|$)/,
|
|||
|
token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",
|
|||
|
next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],meta:{dontIndentStates:["start","vocabulary","string","string3","stack"],lineComment:["!","#!"]}});q.defineMIME("text/x-factor","factor")})};
|
|||
|
shadow$provide[491]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("fcl",function(R){function A(h,k){var f=h.next();if(/[\d\.]/.test(f))return"."==f?h.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==f?h.match(/^[xX][0-9a-fA-F]+/)||h.match(/^0[0-7]+/):h.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==f||"("==f){if(h.eat("*"))return k.tokenize=
|
|||
|
t,t(h,k);if(h.eat("/"))return h.skipToEnd(),"comment"}if(r.test(f))return h.eatWhile(r),"operator";h.eatWhile(/[\w\$_\xa1-\uffff]/);h=h.current().toLowerCase();return B.propertyIsEnumerable(h)||C.propertyIsEnumerable(h)||a.propertyIsEnumerable(h)?"keyword":K.propertyIsEnumerable(h)?"atom":"variable"}function t(h,k){for(var f=!1,v;v=h.next();){if(("/"==v||")"==v)&&f){k.tokenize=A;break}f="*"==v}return"comment"}function d(h,k,f,v,x){this.indented=h;this.column=k;this.type=f;this.align=v;this.prev=x}
|
|||
|
var w=R.indentUnit,B={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,"if":!0,"default":!0},C={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},a={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},K={"true":!0,"false":!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},r=/[+\-*&^%:=<>!|\/]/;return{startState:function(h){return{tokenize:null,context:new d((h||0)-w,0,"top",!1),indented:0,startOfLine:!0}},token:function(h,k){var f=
|
|||
|
k.context;h.sol()&&(null==f.align&&(f.align=!1),k.indented=h.indentation(),k.startOfLine=!0);if(h.eatSpace())return null;var v=(k.tokenize||A)(h,k);if("comment"==v)return v;null==f.align&&(f.align=!0);f=h.current().toLowerCase();C.propertyIsEnumerable(f)?(h=h.column(),k.context=new d(k.indented,h,"end_block",null,k.context)):a.propertyIsEnumerable(f)&&k.context.prev&&("end_block"==k.context.type&&(k.indented=k.context.indented),k.context=k.context.prev);k.startOfLine=!1;return v},indent:function(h,
|
|||
|
k){if(h.tokenize!=A&&null!=h.tokenize)return 0;h=h.context;k=a.propertyIsEnumerable(k);return h.align?h.column+(k?0:1):h.indented+(k?0:w)},electricChars:"ryk",fold:"brace",blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:"//"}});q.defineMIME("text/x-fcl","fcl")})};
|
|||
|
shadow$provide[492]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(d){var w=[];d.split(" ").forEach(function(B){w.push({name:B})});return w}var A=R("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0\x3d \x3d 0\x3c \x3c \x3e U\x3c MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP \x3eR R\x3e R@ + - 1+ 1- ABS NEGATE S\x3eD * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES\x3e \x3eBODY EVALUATE SOURCE \x3eIN \x3c# # #S #\x3e HOLD SIGN BASE \x3eNUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE \x3c\x3e U\x3e 0\x3c\x3e 0\x3e NIP TUCK ROLL PICK 2\x3eR 2R@ 2R\x3e WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0\x3c D0\x3d D2* D2/ D\x3c D\x3d DMAX DMIN D\x3eS DABS M+ M*/ D. D.R 2ROT DU\x3c CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE\x3e BLANK SLITERAL"),
|
|||
|
t=R("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");q.defineMode("forth",function(){function d(w,B){var C;for(C=w.length-1;0<=C;C--)if(w[C].name===B.toUpperCase())return w[C]}return{startState:function(){return{state:"",base:10,coreWordList:A,immediateWordList:t,wordList:[]}},token:function(w,B){var C;if(w.eatSpace())return null;if(""===B.state){if(w.match(/^(\]|:NONAME)(\s|$)/i))return B.state=" compilation","builtin compilation";
|
|||
|
if(C=w.match(/^(:)\s+(\S+)(\s|$)+/))return B.wordList.push({name:C[2].toUpperCase()}),B.state=" compilation","def"+B.state;if(C=w.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return B.wordList.push({name:C[2].toUpperCase()}),"def"+B.state;if(C=w.match(/^('|\['\])\s+(\S+)(\s|$)+/))return"builtin"+B.state}else{if(w.match(/^(;|\[)(\s)/))return B.state="",w.backUp(1),"builtin compilation";if(w.match(/^(;|\[)($)/))return B.state="","builtin compilation";
|
|||
|
if(w.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}if(C=w.match(/^(\S+)(\s+|$)/))return void 0!==d(B.wordList,C[1])?"variable"+B.state:"\\"===C[1]?(w.skipToEnd(),"comment"+B.state):void 0!==d(B.coreWordList,C[1])?"builtin"+B.state:void 0!==d(B.immediateWordList,C[1])?"keyword"+B.state:"("===C[1]?(w.eatWhile(function(a){return")"!==a}),w.eat(")"),"comment"+B.state):".("===C[1]?(w.eatWhile(function(a){return")"!==a}),w.eat(")"),"string"+B.state):'S"'===C[1]||'."'===C[1]||'C"'===C[1]?(w.eatWhile(function(a){return'"'!==
|
|||
|
a}),w.eat('"'),"string"+B.state):C[1]-68719476735?"number"+B.state:"atom"+B.state}}});q.defineMIME("text/x-forth","forth")})};
|
|||
|
shadow$provide[493]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("fortran",function(){function R(K){for(var r={},h=0;h<K.length;++h)r[K[h]]=!0;return r}function A(K,r){if(K.match(a))return"operator";var h=K.next();if("!"==h)return K.skipToEnd(),"comment";if('"'==h||"'"==h)return r.tokenize=t(h),r.tokenize(K,r);if(/[\[\]\(\),]/.test(h))return null;
|
|||
|
if(/\d/.test(h))return K.eatWhile(/[\w\.]/),"number";if(C.test(h))return K.eatWhile(C),"operator";K.eatWhile(/[\w\$_]/);K=K.current().toLowerCase();return d.hasOwnProperty(K)?"keyword":w.hasOwnProperty(K)||B.hasOwnProperty(K)?"builtin":"variable"}function t(K){return function(r,h){for(var k=!1,f,v=!1;null!=(f=r.next());){if(f==K&&!k){v=!0;break}k=!k&&"\\"==f}if(v||!k)h.tokenize=null;return"string"}}var d=R("abstract accept allocatable allocate array assign asynchronous backspace bind block byte call case class close common contains continue cycle data deallocate decode deferred dimension do elemental else encode end endif entry enumerator equivalence exit external extrinsic final forall format function generic go goto if implicit import include inquire intent interface intrinsic module namelist non_intrinsic non_overridable none nopass nullify open optional options parameter pass pause pointer print private program protected public pure read recursive result return rewind save select sequence stop subroutine target then to type use value volatile where while write".split(" ")),
|
|||
|
w=R("abort abs access achar acos adjustl adjustr aimag aint alarm all allocated alog amax amin amod and anint any asin associated atan besj besjn besy besyn bit_size btest cabs ccos ceiling cexp char chdir chmod clog cmplx command_argument_count complex conjg cos cosh count cpu_time cshift csin csqrt ctime c_funloc c_loc c_associated c_null_ptr c_null_funptr c_f_pointer c_null_char c_alert c_backspace c_form_feed c_new_line c_carriage_return c_horizontal_tab c_vertical_tab dabs dacos dasin datan date_and_time dbesj dbesj dbesjn dbesy dbesy dbesyn dble dcos dcosh ddim derf derfc dexp digits dim dint dlog dlog dmax dmin dmod dnint dot_product dprod dsign dsinh dsin dsqrt dtanh dtan dtime eoshift epsilon erf erfc etime exit exp exponent extends_type_of fdate fget fgetc float floor flush fnum fputc fput fraction fseek fstat ftell gerror getarg get_command get_command_argument get_environment_variable getcwd getenv getgid getlog getpid getuid gmtime hostnm huge iabs iachar iand iargc ibclr ibits ibset ichar idate idim idint idnint ieor ierrno ifix imag imagpart index int ior irand isatty ishft ishftc isign iso_c_binding is_iostat_end is_iostat_eor itime kill kind lbound len len_trim lge lgt link lle llt lnblnk loc log logical long lshift lstat ltime matmul max maxexponent maxloc maxval mclock merge move_alloc min minexponent minloc minval mod modulo mvbits nearest new_line nint not or pack perror precision present product radix rand random_number random_seed range real realpart rename repeat reshape rrspacing rshift same_type_as scale scan second selected_int_kind selected_real_kind set_exponent shape short sign signal sinh sin sleep sngl spacing spread sqrt srand stat sum symlnk system system_clock tan tanh time tiny transfer transpose trim ttynam ubound umask unlink unpack verify xor zabs zcos zexp zlog zsin zsqrt".split(" ")),
|
|||
|
B=R("c_bool c_char c_double c_double_complex c_float c_float_complex c_funptr c_int c_int16_t c_int32_t c_int64_t c_int8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_int_fast8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_least8_t c_intmax_t c_intptr_t c_long c_long_double c_long_double_complex c_long_long c_ptr c_short c_signed_char c_size_t character complex double integer logical real".split(" ")),C=/[+\-*&=<>\/:]/,a=RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)",
|
|||
|
"i");return{startState:function(){return{tokenize:null}},token:function(K,r){return K.eatSpace()?null:(r.tokenize||A)(K,r)}}});q.defineMIME("text/x-fortran","fortran")})};
|
|||
|
shadow$provide[494]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("gas",function(R,A){function t(K){B="@";C.syntax="builtin";a.r0="variable";a.r1="variable";a.r2="variable";a.r3="variable";a.r4="variable";a.r5="variable";a.r6="variable";a.r7="variable";a.r8="variable";a.r9="variable";a.r10="variable";a.r11="variable";a.r12="variable";a.sp="variable-2";
|
|||
|
a.lr="variable-2";a.pc="variable-2";a.r13=a.sp;a.r14=a.lr;a.r15=a.pc;w.push(function(r,h){if("#"===r)return h.eatWhile(/\w/),"number"})}function d(K,r){for(var h=!1,k;null!=(k=K.next());){if("/"===k&&h){r.tokenize=null;break}h="*"===k}return"comment"}var w=[],B="",C={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",
|
|||
|
".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",
|
|||
|
".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",
|
|||
|
".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",
|
|||
|
".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},a={};R=(A.architecture||"x86").toLowerCase();"x86"===R?(B="#",a.ax="variable",a.eax="variable-2",a.rax="variable-3",a.bx="variable",a.ebx="variable-2",a.rbx="variable-3",a.cx=
|
|||
|
"variable",a.ecx="variable-2",a.rcx="variable-3",a.dx="variable",a.edx="variable-2",a.rdx="variable-3",a.si="variable",a.esi="variable-2",a.rsi="variable-3",a.di="variable",a.edi="variable-2",a.rdi="variable-3",a.sp="variable",a.esp="variable-2",a.rsp="variable-3",a.bp="variable",a.ebp="variable-2",a.rbp="variable-3",a.ip="variable",a.eip="variable-2",a.rip="variable-3",a.cs="keyword",a.ds="keyword",a.ss="keyword",a.es="keyword",a.fs="keyword",a.gs="keyword"):"arm"!==R&&"armv6"!==R||t(A);return{startState:function(){return{tokenize:null}},
|
|||
|
token:function(K,r){if(r.tokenize)return r.tokenize(K,r);if(K.eatSpace())return null;var h,k=K.next();if("/"===k&&K.eat("*"))return r.tokenize=d,d(K,r);if(k===B)return K.skipToEnd(),"comment";if('"'===k){a:for(r=!1;null!=(h=K.next());){if('"'===h&&!r)break a;r=!r&&"\\"===h}return"string"}if("."===k)return K.eatWhile(/\w/),K=K.current().toLowerCase(),(h=C[K])||null;if("\x3d"===k)return K.eatWhile(/\w/),"tag";if("{"===k||"}"===k)return"braket";if(/\d/.test(k)){if("0"===k&&K.eat("x"))return K.eatWhile(/[0-9a-fA-F]/),
|
|||
|
"number";K.eatWhile(/\d/);return"number"}if(/\w/.test(k)){K.eatWhile(/\w/);if(K.eat(":"))return"tag";K=K.current().toLowerCase();return(h=a[K])||null}for(var f=0;f<w.length;f++)if(h=w[f](k,K,r))return h},lineComment:B,blockCommentStart:"/*",blockCommentEnd:"*/"}})})};
|
|||
|
shadow$provide[495]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../lib/codemirror"],q):q(CodeMirror)})(function(q){q.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},
|
|||
|
{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:"cpp c++ cc cxx hpp h++ hh hxx".split(" "),alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",
|
|||
|
mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",
|
|||
|
mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",
|
|||
|
ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",
|
|||
|
ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},
|
|||
|
{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",
|
|||
|
ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",
|
|||
|
ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript",
|
|||
|
"text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",
|
|||
|
mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",
|
|||
|
mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",
|
|||
|
mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",
|
|||
|
mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:"php php3 php4 php5 php7 phtml".split(" ")},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:"txt text conf def list log".split(" ")},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",
|
|||
|
ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",
|
|||
|
ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",
|
|||
|
mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",
|
|||
|
mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},
|
|||
|
{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},
|
|||
|
{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:"123456789".split("")},
|
|||
|
{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",
|
|||
|
mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},
|
|||
|
{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]}];for(var R=0;R<q.modeInfo.length;R++){var A=
|
|||
|
q.modeInfo[R];A.mimes&&(A.mime=A.mimes[0])}q.findModeByMIME=function(t){t=t.toLowerCase();for(var d=0;d<q.modeInfo.length;d++){var w=q.modeInfo[d];if(w.mime==t)return w;if(w.mimes)for(var B=0;B<w.mimes.length;B++)if(w.mimes[B]==t)return w}if(/\+xml$/.test(t))return q.findModeByMIME("application/xml");if(/\+json$/.test(t))return q.findModeByMIME("application/json")};q.findModeByExtension=function(t){t=t.toLowerCase();for(var d=0;d<q.modeInfo.length;d++){var w=q.modeInfo[d];if(w.ext)for(var B=0;B<w.ext.length;B++)if(w.ext[B]==
|
|||
|
t)return w}};q.findModeByFileName=function(t){for(var d=0;d<q.modeInfo.length;d++){var w=q.modeInfo[d];if(w.file&&w.file.test(t))return w}d=t.lastIndexOf(".");if(t=-1<d&&t.substring(d+1,t.length))return q.findModeByExtension(t)};q.findModeByName=function(t){t=t.toLowerCase();for(var d=0;d<q.modeInfo.length;d++){var w=q.modeInfo[d];if(w.name.toLowerCase()==t)return w;if(w.alias)for(var B=0;B<w.alias.length;B++)if(w.alias[B].toLowerCase()==t)return w}}})};
|
|||
|
shadow$provide[496]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(476),W(495)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],q):q(CodeMirror)})(function(q){q.defineMode("markdown",function(R,A){function t(O,P,da){P.f=P.inline=da;return da(O,P)}function d(O){O.linkTitle=!1;O.linkHref=!1;O.linkText=!1;O.em=!1;O.strong=!1;O.strikethrough=!1;O.quote=0;O.indentedCode=!1;if(O.f==B){var P=u;P||(P=q.innerMode(z,O.htmlState),
|
|||
|
P="xml"==P.mode.name&&null===P.state.tagStart&&!P.state.context&&P.state.tokenize.isInText);P&&(O.f=r,O.block=w,O.htmlState=null)}O.trailingSpace=0;O.trailingSpaceNewLine=!1;O.prevLine=O.thisLine;O.thisLine={stream:null};return null}function w(O,P){var da=O.column()===P.indentation,ba=P.prevLine.stream;var H=!ba||!/\S/.test(ba.string);var ja=P.indentedCode,N=P.prevLine.hr,ca=!1!==P.list,ia=(P.listStack[P.listStack.length-1]||0)+3;P.indentedCode=!1;ba=P.indentation;if(null===P.indentationDiff&&(P.indentationDiff=
|
|||
|
P.indentation,ca)){for(P.list=null;ba<P.listStack[P.listStack.length-1];)P.listStack.pop(),P.listStack.length?P.indentation=P.listStack[P.listStack.length-1]:P.list=!1;!1!==P.list&&(P.indentationDiff=ba-P.listStack[P.listStack.length-1])}var ea=!H&&!N&&!P.prevLine.header&&(!ca||!ja)&&!P.prevLine.fencedCodeEnd,qa=(!1===P.list||N||H)&&P.indentation<=ia&&O.match(J);N=null;if(4<=P.indentationDiff&&(ja||P.prevLine.fencedCodeEnd||P.prevLine.header||H))return O.skipToEnd(),P.indentedCode=!0,m.code;if(O.eatSpace())return null;
|
|||
|
if(da&&P.indentation<=ia&&(N=O.match(ha))&&6>=N[1].length)return P.quote=0,P.header=N[1].length,P.thisLine.header=!0,A.highlightFormatting&&(P.formatting="header"),P.f=P.inline,a(P);if(P.indentation<=ia&&O.eat("\x3e"))return P.quote=da?1:P.quote+1,A.highlightFormatting&&(P.formatting="quote"),O.eatSpace(),a(P);if(!qa&&!P.setext&&da&&P.indentation<=ia&&(N=O.match(X)))return da=N[1]?"ol":"ul",P.indentation=ba+O.current().length,P.list=!0,P.quote=0,P.listStack.push(P.indentation),P.em=!1,P.strong=!1,
|
|||
|
P.code=!1,P.strikethrough=!1,A.taskLists&&O.match(F,!1)&&(P.taskList=!0),P.f=P.inline,A.highlightFormatting&&(P.formatting=["list","list-"+da]),a(P);if(da&&P.indentation<=ia&&(N=O.match(E,!0))){P.quote=0;P.fencedEndRE=new RegExp(N[1]+"+ *$");if(O=A.fencedCodeBlockHighlighting)O=N[2]||A.fencedCodeBlockDefaultMode,q.findModeByName&&(da=q.findModeByName(O))&&(O=da.mime||da.mimes[0]),O=q.getMode(R,O),O="null"==O.name?null:O;P.localMode=O;P.localMode&&(P.localState=q.startState(P.localMode));P.f=P.block=
|
|||
|
C;A.highlightFormatting&&(P.formatting="code-block");P.code=-1;return a(P)}return P.setext||!(ea&&ca||P.quote||!1!==P.list||P.code||qa||aa.test(O.string))&&(N=O.lookAhead(1))&&(N=N.match(T))?(P.setext?(P.header=P.setext,P.setext=0,O.skipToEnd(),A.highlightFormatting&&(P.formatting="header")):(P.header="\x3d"==N[0].charAt(0)?1:2,P.setext=P.header),P.thisLine.header=!0,P.f=P.inline,a(P)):qa?(O.skipToEnd(),P.hr=!0,P.thisLine.hr=!0,m.hr):"["===O.peek()?t(O,P,v):t(O,P,P.inline)}function B(O,P){var da=
|
|||
|
z.token(O,P.htmlState);if(!u){var ba=q.innerMode(z,P.htmlState);if("xml"==ba.mode.name&&null===ba.state.tagStart&&!ba.state.context&&ba.state.tokenize.isInText||P.md_inside&&-1<O.current().indexOf("\x3e"))P.f=r,P.block=w,P.htmlState=null}return da}function C(O,P){var da=P.listStack[P.listStack.length-1]||0,ba=P.indentation<da;if(P.fencedEndRE&&P.indentation<=da+3&&(ba||O.match(P.fencedEndRE))){A.highlightFormatting&&(P.formatting="code-block");var H;ba||(H=a(P));P.localMode=P.localState=null;P.block=
|
|||
|
w;P.f=r;P.fencedEndRE=null;P.code=0;P.thisLine.fencedCodeEnd=!0;return ba?(da=P.block,P.f=P.block=da,da(O,P)):H}if(P.localMode)return P.localMode.token(O,P.localState);O.skipToEnd();return m.code}function a(O){var P=[];if(O.formatting){P.push(m.formatting);"string"===typeof O.formatting&&(O.formatting=[O.formatting]);for(var da=0;da<O.formatting.length;da++)P.push(m.formatting+"-"+O.formatting[da]),"header"===O.formatting[da]&&P.push(m.formatting+"-"+O.formatting[da]+"-"+O.header),"quote"===O.formatting[da]&&
|
|||
|
(!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=O.quote?P.push(m.formatting+"-"+O.formatting[da]+"-"+O.quote):P.push("error"))}if(O.taskOpen)return P.push("meta"),P.length?P.join(" "):null;if(O.taskClosed)return P.push("property"),P.length?P.join(" "):null;O.linkHref?P.push(m.linkHref,"url"):(O.strong&&P.push(m.strong),O.em&&P.push(m.em),O.strikethrough&&P.push(m.strikethrough),O.emoji&&P.push(m.emoji),O.linkText&&P.push(m.linkText),O.code&&P.push(m.code),O.image&&P.push(m.image),O.imageAltText&&P.push(m.imageAltText,
|
|||
|
"link"),O.imageMarker&&P.push(m.imageMarker));O.header&&P.push(m.header,m.header+"-"+O.header);O.quote&&(P.push(m.quote),!A.maxBlockquoteDepth||A.maxBlockquoteDepth>=O.quote?P.push(m.quote+"-"+O.quote):P.push(m.quote+"-"+A.maxBlockquoteDepth));!1!==O.list&&((da=(O.listStack.length-1)%3)?1===da?P.push(m.list2):P.push(m.list3):P.push(m.list1));O.trailingSpaceNewLine?P.push("trailing-space-new-line"):O.trailingSpace&&P.push("trailing-space-"+(O.trailingSpace%2?"a":"b"));return P.length?P.join(" "):null}
|
|||
|
function K(O,P){if(O.match(Z,!0))return a(P)}function r(O,P){var da=P.text(O,P);if("undefined"!==typeof da)return da;if(P.list)return P.list=null,a(P);if(P.taskList)return" "===O.match(F,!0)[1]?P.taskOpen=!0:P.taskClosed=!0,A.highlightFormatting&&(P.formatting="task"),P.taskList=!1,a(P);P.taskOpen=!1;P.taskClosed=!1;if(P.header&&O.match(/^#+$/,!0))return A.highlightFormatting&&(P.formatting="header"),a(P);da=O.next();if(P.linkTitle){P.linkTitle=!1;var ba=da;"("===da&&(ba=")");ba=(ba+"").replace(/([.?*+^\[\]\\(){}|-])/g,
|
|||
|
"\\$1");if(O.match(new RegExp("^\\s*(?:[^"+ba+"\\\\]+|\\\\\\\\|\\\\.)"+ba),!0))return m.linkHref}if("`"===da){da=P.formatting;A.highlightFormatting&&(P.formatting="code");O.eatWhile("`");O=O.current().length;if(0!=P.code||P.quote&&1!=O){if(O==P.code)return O=a(P),P.code=0,O;P.formatting=da;return a(P)}P.code=O;return a(P)}if(P.code)return a(P);if("\\"===da&&(O.next(),A.highlightFormatting))return da=a(P),P=m.formatting+"-escape",da?da+" "+P:P;if("!"===da&&O.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return P.imageMarker=
|
|||
|
!0,P.image=!0,A.highlightFormatting&&(P.formatting="image"),a(P);if("["===da&&P.imageMarker&&O.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return P.imageMarker=!1,P.imageAltText=!0,A.highlightFormatting&&(P.formatting="image"),a(P);if("]"===da&&P.imageAltText)return A.highlightFormatting&&(P.formatting="image"),da=a(P),P.imageAltText=!1,P.image=!1,P.inline=P.f=k,da;if("["===da&&!P.image){if(P.linkText&&O.match(/^.*?\]/))return a(P);P.linkText=!0;A.highlightFormatting&&(P.formatting="link");return a(P)}if("]"===
|
|||
|
da&&P.linkText)return A.highlightFormatting&&(P.formatting="link"),da=a(P),P.linkText=!1,P.inline=P.f=O.match(/\(.*?\)| ?\[.*?\]/,!1)?k:r,da;if("\x3c"===da&&O.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return P.f=P.inline=h,A.highlightFormatting&&(P.formatting="link"),da=a(P),(da?da+" ":"")+m.linkInline;if("\x3c"===da&&O.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return P.f=P.inline=h,A.highlightFormatting&&(P.formatting="link"),da=a(P),(da?da+" ":"")+m.linkEmail;if(A.xml&&"\x3c"===da&&O.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,
|
|||
|
!1))return da=O.string.indexOf("\x3e",O.pos),-1!=da&&(da=O.string.substring(O.start,da),/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(da)&&(P.md_inside=!0)),O.backUp(1),P.htmlState=q.startState(z),da=B,P.f=P.block=da,da(O,P);if(A.xml&&"\x3c"===da&&O.match(/^\/\w*?>/))return P.md_inside=!1,"tag";if("*"===da||"_"===da){for(var H=1,ja=1==O.pos?" ":O.string.charAt(O.pos-2);3>H&&O.eat(da);)H++;var N=O.peek()||" ",ca=!/\s/.test(N)&&(!M.test(N)||/\s/.test(ja)||M.test(ja)),ia=!/\s/.test(ja)&&(!M.test(ja)||
|
|||
|
/\s/.test(N)||M.test(N)),ea=ba=null;H%2&&(P.em||!ca||"*"!==da&&ia&&!M.test(ja)?P.em!=da||!ia||"*"!==da&&ca&&!M.test(N)||(ba=!1):ba=!0);1<H&&(P.strong||!ca||"*"!==da&&ia&&!M.test(ja)?P.strong!=da||!ia||"*"!==da&&ca&&!M.test(N)||(ea=!1):ea=!0);if(null!=ea||null!=ba)return A.highlightFormatting&&(P.formatting=null==ba?"strong":null==ea?"em":"strong em"),!0===ba&&(P.em=da),!0===ea&&(P.strong=da),O=a(P),!1===ba&&(P.em=!1),!1===ea&&(P.strong=!1),O}else if(" "===da&&(O.eat("*")||O.eat("_"))){if(" "===O.peek())return a(P);
|
|||
|
O.backUp(1)}if(A.strikethrough)if("~"===da&&O.eatWhile(da)){if(P.strikethrough)return A.highlightFormatting&&(P.formatting="strikethrough"),O=a(P),P.strikethrough=!1,O;if(O.match(/^[^\s]/,!1))return P.strikethrough=!0,A.highlightFormatting&&(P.formatting="strikethrough"),a(P)}else if(" "===da&&O.match(/^~~/,!0)){if(" "===O.peek())return a(P);O.backUp(2)}if(A.emoji&&":"===da&&O.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/))return P.emoji=!0,A.highlightFormatting&&(P.formatting="emoji"),
|
|||
|
O=a(P),P.emoji=!1,O;" "===da&&(O.match(/^ +$/,!1)?P.trailingSpace++:P.trailingSpace&&(P.trailingSpaceNewLine=!0));return a(P)}function h(O,P){if("\x3e"===O.next())return P.f=P.inline=r,A.highlightFormatting&&(P.formatting="link"),O=a(P),(O?O+" ":"")+m.linkInline;O.match(/^[^>]+/,!0);return m.linkInline}function k(O,P){if(O.eatSpace())return null;O=O.next();return"("===O||"["===O?(P.f=P.inline=f("("===O?")":"]"),A.highlightFormatting&&(P.formatting="link-string"),P.linkHref=!0,a(P)):"error"}function f(O){return function(P,
|
|||
|
da){if(P.next()===O)return da.f=da.inline=r,A.highlightFormatting&&(da.formatting="link-string"),P=a(da),da.linkHref=!1,P;P.match(S[O]);da.linkHref=!0;return a(da)}}function v(O,P){return O.match(/^([^\]\\]|\\.)*\]:/,!1)?(P.f=x,O.next(),A.highlightFormatting&&(P.formatting="link"),P.linkText=!0,a(P)):t(O,P,r)}function x(O,P){if(O.match(/^\]:/,!0))return P.f=P.inline=L,A.highlightFormatting&&(P.formatting="link"),O=a(P),P.linkText=!1,O;O.match(/^([^\]\\]|\\.)+/,!0);return m.linkText}function L(O,P){if(O.eatSpace())return null;
|
|||
|
O.match(/^[^\s]+/,!0);void 0===O.peek()?P.linkTitle=!0:O.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0);P.f=P.inline=r;return m.linkHref+" url"}var z=q.getMode(R,"text/html"),u="null"==z.name;void 0===A.highlightFormatting&&(A.highlightFormatting=!1);void 0===A.maxBlockquoteDepth&&(A.maxBlockquoteDepth=0);void 0===A.taskLists&&(A.taskLists=!1);void 0===A.strikethrough&&(A.strikethrough=!1);void 0===A.emoji&&(A.emoji=!1);void 0===A.fencedCodeBlockHighlighting&&
|
|||
|
(A.fencedCodeBlockHighlighting=!0);void 0===A.fencedCodeBlockDefaultMode&&(A.fencedCodeBlockDefaultMode="text/plain");void 0===A.xml&&(A.xml=!0);void 0===A.tokenTypeOverrides&&(A.tokenTypeOverrides={});var m={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",
|
|||
|
strikethrough:"strikethrough",emoji:"builtin"},l;for(l in m)m.hasOwnProperty(l)&&A.tokenTypeOverrides[l]&&(m[l]=A.tokenTypeOverrides[l]);var J=/^([*\-_])(?:\s*\1){2,}\s*$/,X=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,F=/^\[(x| )\](?=\s)/i,ha=A.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,T=/^ {0,3}(?:={1,}|-{2,})\s*$/,Z=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,aa=/^\s*\[[^\]]+?\]:.*$/,M=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,
|
|||
|
S={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},D={startState:function(){return{f:w,prevLine:{stream:null},thisLine:{stream:null},block:w,htmlState:null,indentation:0,inline:r,text:K,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(O){return{f:O.f,
|
|||
|
prevLine:O.prevLine,thisLine:O.thisLine,block:O.block,htmlState:O.htmlState&&q.copyState(z,O.htmlState),indentation:O.indentation,localMode:O.localMode,localState:O.localMode?q.copyState(O.localMode,O.localState):null,inline:O.inline,text:O.text,formatting:!1,linkText:O.linkText,linkTitle:O.linkTitle,linkHref:O.linkHref,code:O.code,em:O.em,strong:O.strong,strikethrough:O.strikethrough,emoji:O.emoji,header:O.header,setext:O.setext,hr:O.hr,taskList:O.taskList,list:O.list,listStack:O.listStack.slice(0),
|
|||
|
quote:O.quote,indentedCode:O.indentedCode,trailingSpace:O.trailingSpace,trailingSpaceNewLine:O.trailingSpaceNewLine,md_inside:O.md_inside,fencedEndRE:O.fencedEndRE}},token:function(O,P){P.formatting=!1;if(O!=P.thisLine.stream){P.header=0;P.hr=!1;if(O.match(/^\s*$/,!0))return d(P),null;P.prevLine=P.thisLine;P.thisLine={stream:O};P.taskList=!1;P.trailingSpace=0;P.trailingSpaceNewLine=!1;if(!P.localState&&(P.f=P.block,P.f!=B)){var da=O.match(/^\s*/,!0)[0].replace(/\t/g," ").length;P.indentation=da;
|
|||
|
P.indentationDiff=null;if(0<da)return null}}return P.f(O,P)},innerMode:function(O){return O.block==B?{state:O.htmlState,mode:z}:O.localState?{state:O.localState,mode:O.localMode}:{state:O,mode:D}},indent:function(O,P,da){return O.block==B&&z.indent?z.indent(O.htmlState,P,da):O.localState&&O.localMode.indent?O.localMode.indent(O.localState,P,da):q.Pass},blankLine:d,getType:a,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D},"xml");q.defineMIME("text/markdown",
|
|||
|
"markdown");q.defineMIME("text/x-markdown","markdown")})};
|
|||
|
shadow$provide[497]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(496),W(479)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],q):q(CodeMirror)})(function(q){var R=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;
|
|||
|
q.defineMode("gfm",function(A,t){var d=0,w={taskLists:!0,strikethrough:!0,emoji:!0},B;for(B in t)w[B]=t[B];w.name="markdown";return q.overlayMode(q.getMode(A,w),{startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(C){return{code:C.code,codeBlock:C.codeBlock,ateSpace:C.ateSpace}},token:function(C,a){a.combineTokens=null;if(a.codeBlock){if(C.match(/^```+/))return a.codeBlock=!1,null;C.skipToEnd();return null}C.sol()&&(a.code=!1);if(C.sol()&&C.match(/^```+/))return C.skipToEnd(),
|
|||
|
a.codeBlock=!0,null;if("`"===C.peek()){C.next();var K=C.pos;C.eatWhile("`");C=1+C.pos-K;a.code?C===d&&(a.code=!1):(d=C,a.code=!0);return null}if(a.code)return C.next(),null;if(C.eatSpace())return a.ateSpace=!0,null;if(C.sol()||a.ateSpace)if(a.ateSpace=!1,!1!==t.gitHubSpice&&(C.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/)||C.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/)))return a.combineTokens=!0,"link";if(C.match(R)&&"]("!=C.string.slice(C.start-
|
|||
|
2,C.start)&&(0==C.start||/\W/.test(C.string.charAt(C.start-1))))return a.combineTokens=!0,"link";C.next();return null},blankLine:function(C){C.code=!1;return null}})},"markdown");q.defineMIME("text/x-gfm","gfm")})};
|
|||
|
shadow$provide[498]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("gherkin",function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(R,A){R.sol()&&
|
|||
|
(A.lineNumber++,A.inKeywordLine=!1,A.inMultilineTable&&(A.tableHeaderLine=!1,R.match(/\s*\|/,!1)||(A.allowMultilineArgument=!1,A.inMultilineTable=!1)));R.eatSpace();if(A.allowMultilineArgument){if(A.inMultilineString)return R.match('"""')?(A.inMultilineString=!1,A.allowMultilineArgument=!1):R.match(/.*/),"string";if(A.inMultilineTable){if(R.match(/\|\s*/))return"bracket";R.match(/[^\|]*/);return A.tableHeaderLine?"header":"string"}if(R.match('"""'))return A.inMultilineString=!0,"string";if(R.match("|"))return A.inMultilineTable=
|
|||
|
!0,A.tableHeaderLine=!0,"bracket"}if(R.match(/#.*/))return"comment";if(!A.inKeywordLine&&R.match(/@\S+/))return"tag";if(!A.inKeywordLine&&A.allowFeature&&R.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/))return A.allowScenario=
|
|||
|
!0,A.allowBackground=!0,A.allowPlaceholders=!1,A.allowSteps=!1,A.allowMultilineArgument=!1,A.inKeywordLine=!0,"keyword";if(!A.inKeywordLine&&A.allowBackground&&R.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/))return A.allowPlaceholders=
|
|||
|
!1,A.allowSteps=!0,A.allowBackground=!1,A.allowMultilineArgument=!1,A.inKeywordLine=!0,"keyword";if(!A.inKeywordLine&&A.allowScenario&&R.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/))return A.allowPlaceholders=
|
|||
|
!0,A.allowSteps=!0,A.allowMultilineArgument=!1,A.inKeywordLine=!0,"keyword";if(A.allowScenario&&R.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/))return A.allowPlaceholders=
|
|||
|
!1,A.allowSteps=!0,A.allowBackground=!1,A.allowMultilineArgument=!0,"keyword";if(!A.inKeywordLine&&A.allowScenario&&R.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/))return A.allowPlaceholders=
|
|||
|
!1,A.allowSteps=!0,A.allowBackground=!1,A.allowMultilineArgument=!1,A.inKeywordLine=!0,"keyword";if(!A.inKeywordLine&&A.allowSteps&&R.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/))return A.inStep=
|
|||
|
!0,A.allowPlaceholders=!0,A.allowMultilineArgument=!0,A.inKeywordLine=!0,"keyword";if(R.match(/"[^"]*"?/))return"string";if(A.allowPlaceholders&&R.match(/<[^>]*>?/))return"variable";R.next();R.eatWhile(/[^@"<#]/);return null}}});q.defineMIME("text/x-feature","gherkin")})};
|
|||
|
shadow$provide[499]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("go",function(R){function A(f,v){var x=f.next();if('"'==x||"'"==x||"`"==x)return v.tokenize=t(x),v.tokenize(f,v);if(/[\d\.]/.test(x))return"."==x?f.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==x?f.match(/^[xX][0-9a-fA-F]+/)||f.match(/^0[0-7]+/):f.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),
|
|||
|
"number";if(/[\[\]{}\(\),;:\.]/.test(x))return k=x,null;if("/"==x){if(f.eat("*"))return v.tokenize=d,d(f,v);if(f.eat("/"))return f.skipToEnd(),"comment"}if(h.test(x))return f.eatWhile(h),"operator";f.eatWhile(/[\w\$_\xa1-\uffff]/);f=f.current();if(K.propertyIsEnumerable(f)){if("case"==f||"default"==f)k="case";return"keyword"}return r.propertyIsEnumerable(f)?"atom":"variable"}function t(f){return function(v,x){for(var L=!1,z,u=!1;null!=(z=v.next());){if(z==f&&!L){u=!0;break}L=!L&&"`"!=f&&"\\"==z}if(u||
|
|||
|
!L&&"`"!=f)x.tokenize=A;return"string"}}function d(f,v){for(var x=!1,L;L=f.next();){if("/"==L&&x){v.tokenize=A;break}x="*"==L}return"comment"}function w(f,v,x,L,z){this.indented=f;this.column=v;this.type=x;this.align=L;this.prev=z}function B(f,v,x){return f.context=new w(f.indented,v,x,null,f.context)}function C(f){if(f.context.prev){var v=f.context.type;if(")"==v||"]"==v||"}"==v)f.indented=f.context.indented;return f.context=f.context.prev}}var a=R.indentUnit,K={"break":!0,"case":!0,chan:!0,"const":!0,
|
|||
|
"continue":!0,"default":!0,defer:!0,"else":!0,fallthrough:!0,"for":!0,func:!0,go:!0,"goto":!0,"if":!0,"import":!0,"interface":!0,map:!0,"package":!0,range:!0,"return":!0,select:!0,struct:!0,"switch":!0,type:!0,"var":!0,bool:!0,"byte":!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,"int":!0,uint:!0,uintptr:!0,error:!0,rune:!0},r={"true":!0,"false":!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,"delete":!0,
|
|||
|
imag:!0,len:!0,make:!0,"new":!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},h=/[+\-*&^%:=<>!|\/]/,k;return{startState:function(f){return{tokenize:null,context:new w((f||0)-a,0,"top",!1),indented:0,startOfLine:!0}},token:function(f,v){var x=v.context;f.sol()&&(null==x.align&&(x.align=!1),v.indented=f.indentation(),v.startOfLine=!0,"case"==x.type&&(x.type="}"));if(f.eatSpace())return null;k=null;var L=(v.tokenize||A)(f,v);if("comment"==L)return L;null==x.align&&(x.align=!0);"{"==k?B(v,f.column(),
|
|||
|
"}"):"["==k?B(v,f.column(),"]"):"("==k?B(v,f.column(),")"):"case"==k?x.type="case":"}"==k&&"}"==x.type?C(v):k==x.type&&C(v);v.startOfLine=!1;return L},indent:function(f,v){if(f.tokenize!=A&&null!=f.tokenize)return q.Pass;var x=f.context,L=v&&v.charAt(0);if("case"==x.type&&/^(?:case|default)\b/.test(v))return f.context.type="}",x.indented;f=L==x.type;return x.align?x.column+(f?0:1):x.indented+(f?0:a)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",
|
|||
|
lineComment:"//"}});q.defineMIME("text/x-go","go")})};
|
|||
|
shadow$provide[500]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("groovy",function(R){function A(L){var z={};L=L.split(" ");for(var u=0;u<L.length;++u)z[L[u]]=!0;return z}function t(L,z){var u=L.next();if('"'==u||"'"==u)return d(u,L,z);if(/[\[\]{}\(\),;:\.]/.test(u))return x=u,null;if(/\d/.test(u))return L.eatWhile(/[\w\.]/),L.eat(/eE/)&&(L.eat(/\+\-/),
|
|||
|
L.eatWhile(/\d/)),"number";if("/"==u){if(L.eat("*"))return z.tokenize.push(B),B(L,z);if(L.eat("/"))return L.skipToEnd(),"comment";if(C(z.lastToken,!1))return d(u,L,z)}if("-"==u&&L.eat("\x3e"))return x="-\x3e",null;if(/[+\-*&%=<>!?|\/~]/.test(u))return L.eatWhile(/[+\-*&%=<>|~]/),"operator";L.eatWhile(/[\w\$_]/);if("@"==u)return L.eatWhile(/[\w\$_\.]/),"meta";if("."==z.lastToken)return"property";if(L.eat(":"))return x="proplabel","property";L=L.current();return v.propertyIsEnumerable(L)?"atom":h.propertyIsEnumerable(L)?
|
|||
|
(k.propertyIsEnumerable(L)?x="newstatement":f.propertyIsEnumerable(L)&&(x="standalone"),"keyword"):"variable"}function d(L,z,u){function m(J,X){for(var F=!1,ha,T=!l;null!=(ha=J.next());){if(ha==L&&!F){if(!l)break;if(J.match(L+L)){T=!0;break}}if('"'==L&&"$"==ha&&!F&&J.eat("{"))return X.tokenize.push(w()),"string";F=!F&&"\\"==ha}T&&X.tokenize.pop();return"string"}var l=!1;if("/"!=L&&z.eat(L))if(z.eat(L))l=!0;else return"string";u.tokenize.push(m);return m(z,u)}function w(){function L(u,m){if("}"==u.peek()){if(z--,
|
|||
|
0==z)return m.tokenize.pop(),m.tokenize[m.tokenize.length-1](u,m)}else"{"==u.peek()&&z++;return t(u,m)}var z=1;L.isBase=!0;return L}function B(L,z){for(var u=!1,m;m=L.next();){if("/"==m&&u){z.tokenize.pop();break}u="*"==m}return"comment"}function C(L,z){return!L||"operator"==L||"-\x3e"==L||/[\.\[\{\(,;:]/.test(L)||"newstatement"==L||"keyword"==L||"proplabel"==L||"standalone"==L&&!z}function a(L,z,u,m,l){this.indented=L;this.column=z;this.type=u;this.align=m;this.prev=l}function K(L,z,u){return L.context=
|
|||
|
new a(L.indented,z,u,null,L.context)}function r(L){var z=L.context.type;if(")"==z||"]"==z||"}"==z)L.indented=L.context.indented;return L.context=L.context.prev}var h=A("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),
|
|||
|
k=A("catch class def do else enum finally for if interface switch trait try while"),f=A("return break continue"),v=A("null true false this"),x;t.isBase=!0;return{startState:function(L){return{tokenize:[t],context:new a((L||0)-R.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(L,z){var u=z.context;L.sol()&&(null==u.align&&(u.align=!1),z.indented=L.indentation(),z.startOfLine=!0,"statement"!=u.type||C(z.lastToken,!0)||(r(z),u=z.context));if(L.eatSpace())return null;x=
|
|||
|
null;var m=z.tokenize[z.tokenize.length-1](L,z);if("comment"==m)return m;null==u.align&&(u.align=!0);if(";"!=x&&":"!=x||"statement"!=u.type)if("-\x3e"==x&&"statement"==u.type&&"}"==u.prev.type)r(z),z.context.align=!1;else if("{"==x)K(z,L.column(),"}");else if("["==x)K(z,L.column(),"]");else if("("==x)K(z,L.column(),")");else if("}"==x){for(;"statement"==u.type;)u=r(z);for("}"==u.type&&(u=r(z));"statement"==u.type;)u=r(z)}else x==u.type?r(z):("}"==u.type||"top"==u.type||"statement"==u.type&&"newstatement"==
|
|||
|
x)&&K(z,L.column(),"statement");else r(z);z.startOfLine=!1;z.lastToken=x||m;return m},indent:function(L,z){if(!L.tokenize[L.tokenize.length-1].isBase)return q.Pass;z=z&&z.charAt(0);var u=L.context;"statement"!=u.type||C(L.lastToken,!0)||(u=u.prev);L=z==u.type;return"statement"==u.type?u.indented+("{"==z?0:R.indentUnit):u.align?u.column+(L?0:1):u.indented+(L?0:R.indentUnit)},electricChars:"{}",closeBrackets:{triples:"'\""},fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});
|
|||
|
q.defineMIME("text/x-groovy","groovy")})};
|
|||
|
shadow$provide[501]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(a){for(var K={},r=0,h=a.length;r<h;++r)K[a[r]]=!0;return K}var A="alias and BEGIN begin break case class def defined? do else elsif END end ensure false for if in module next not or redo rescue retry return self super then true undef unless until when while yield nil raise throw catch fail loop callcc caller lambda proc public protected private require load require_relative extend autoload __END__ __FILE__ __LINE__ __dir__".split(" "),
|
|||
|
t=R(A),d=R("def class case for while until module then catch loop proc begin".split(" ")),w=R(["end","until"]),B={"[":"]","{":"}","(":")"},C={"]":"[","}":"{",")":"("};q.defineMode("ruby",function(a){function K(z,u,m){m.tokenize.push(z);return z(u,m)}function r(z,u){if(z.sol()&&z.match("\x3dbegin")&&z.eol())return u.tokenize.push(x),"comment";if(z.eatSpace())return null;var m=z.next();if("`"==m||"'"==m||'"'==m)return K(f(m,"string",'"'==m||"`"==m),z,u);if("/"==m){var l=z.pos;for(var J=0,X,F=!1,ha=
|
|||
|
!1;null!=(X=z.next());)if(ha)ha=!1;else{if(-1<"[{(".indexOf(X))J++;else if(-1<"]})".indexOf(X)){if(J--,0>J)break}else if("/"==X&&0==J){F=!0;break}ha="\\"==X}z.backUp(z.pos-l);return F?K(f(m,"string-2",!0),z,u):"operator"}if("%"==m){m="string";l=!0;z.eat("s")?m="atom":z.eat(/[WQ]/)?m="string":z.eat(/[r]/)?m="string-2":z.eat(/[wxq]/)&&(m="string",l=!1);J=z.eat(/[^\w\s=]/);if(!J)return"operator";B.propertyIsEnumerable(J)&&(J=B[J]);return K(f(J,m,l,!0),z,u)}if("#"==m)return z.skipToEnd(),"comment";if("\x3c"==
|
|||
|
m&&(l=z.match(/^<([-~])[`"']?([a-zA-Z_?]\w*)[`"']?(?:;|$)/)))return K(v(l[2],l[1]),z,u);if("0"==m)return z.eat("x")?z.eatWhile(/[\da-fA-F]/):z.eat("b")?z.eatWhile(/[01]/):z.eatWhile(/[0-7]/),"number";if(/\d/.test(m))return z.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==m){for(;z.match(/^\\[CM]-/););z.eat("\\")?z.eatWhile(/\w/):z.next();return"string"}if(":"==m)return z.eat("'")?K(f("'","atom",!1),z,u):z.eat('"')?K(f('"',"atom",!0),z,u):z.eat(/[<>]/)?(z.eat(/[<>]/),"atom"):z.eat(/[\+\-\*\/&\|:!]/)?
|
|||
|
"atom":z.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(z.eatWhile(/[\w$\xa1-\uffff]/),z.eat(/[\?!=]/),"atom"):"operator";if("@"==m&&z.match(/^@?[a-zA-Z_\xa1-\uffff]/))return z.eat("@"),z.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==m)return z.eat(/[a-zA-Z_]/)?z.eatWhile(/[\w]/):z.eat(/\d/)?z.eat(/\d/):z.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(m))return z.eatWhile(/[\w\xa1-\uffff]/),z.eat(/[\?!]/),z.eat(":")?"atom":"ident";if("|"!=m||!u.varList&&"{"!=u.lastTok&&"do"!=u.lastTok)return/[\(\)\[\]{}\\;]/.test(m)?
|
|||
|
(L=m,null):"-"==m&&z.eat("\x3e")?"arrow":/[=+\-\/*:\.^%<>~|]/.test(m)?(z=z.eatWhile(/[=+\-\/*:\.^%<>~|]/),"."!=m||z||(L="."),"operator"):null;L="|";return null}function h(z){z||=1;return function(u,m){if("}"==u.peek()){if(1==z)return m.tokenize.pop(),m.tokenize[m.tokenize.length-1](u,m);m.tokenize[m.tokenize.length-1]=h(z-1)}else"{"==u.peek()&&(m.tokenize[m.tokenize.length-1]=h(z+1));return r(u,m)}}function k(){var z=!1;return function(u,m){if(z)return m.tokenize.pop(),m.tokenize[m.tokenize.length-
|
|||
|
1](u,m);z=!0;return r(u,m)}}function f(z,u,m,l){return function(J,X){var F=!1,ha;"read-quoted-paused"===X.context.type&&(X.context=X.context.prev,J.eat("}"));for(;null!=(ha=J.next());){if(ha==z&&(l||!F)){X.tokenize.pop();break}if(m&&"#"==ha&&!F)if(J.eat("{")){"}"==z&&(X.context={prev:X.context,type:"read-quoted-paused"});X.tokenize.push(h());break}else if(/[@\$]/.test(J.peek())){X.tokenize.push(k());break}F=!F&&"\\"==ha}return u}}function v(z,u){return function(m,l){u&&m.eatSpace();m.match(z)?l.tokenize.pop():
|
|||
|
m.skipToEnd();return"string"}}function x(z,u){z.sol()&&z.match("\x3dend")&&z.eol()&&u.tokenize.pop();z.skipToEnd();return"comment"}var L;return{startState:function(){return{tokenize:[r],indented:0,context:{type:"top",indented:-a.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(z,u){L=null;z.sol()&&(u.indented=z.indentation());var m=u.tokenize[u.tokenize.length-1](z,u),l,J=L;if("ident"==m){var X=z.current();m="."==u.lastTok?"property":t.propertyIsEnumerable(z.current())?"keyword":
|
|||
|
/^[A-Z]/.test(X)?"tag":"def"==u.lastTok||"class"==u.lastTok||u.varList?"def":"variable";"keyword"==m&&(J=X,d.propertyIsEnumerable(X)?l="indent":w.propertyIsEnumerable(X)?l="dedent":"if"!=X&&"unless"!=X||z.column()!=z.indentation()?"do"==X&&u.context.indented<u.indented&&(l="indent"):l="indent")}if(L||m&&"comment"!=m)u.lastTok=J;"|"==L&&(u.varList=!u.varList);"indent"==l||/[\(\[\{]/.test(L)?u.context={prev:u.context,type:L||m,indented:u.indented}:("dedent"==l||/[\)\]\}]/.test(L))&&u.context.prev&&
|
|||
|
(u.context=u.context.prev);z.eol()&&(u.continuedLine="\\"==L||"operator"==m);return m},indent:function(z,u){if(z.tokenize[z.tokenize.length-1]!=r)return q.Pass;var m=u&&u.charAt(0),l=z.context;u=l.type==C[m]||"keyword"==l.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(u);return l.indented+(u?0:a.indentUnit)+(z.continuedLine?a.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}});q.defineMIME("text/x-ruby","ruby");q.registerHelper("hintWords","ruby",
|
|||
|
A)})};
|
|||
|
shadow$provide[502]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(501)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],q):q(CodeMirror)})(function(q){q.defineMode("haml",function(R){function A(C){return function(a,K){return a.peek()==C&&1==K.rubyState.tokenize.length?(a.next(),K.tokenize=d,"closeAttributeTag"):t(a,K)}}function t(C,a){return C.match("-#")?(C.skipToEnd(),"comment"):B.token(C,
|
|||
|
a.rubyState)}function d(C,a){var K=C.peek();if("comment"==a.previousToken.style&&a.indented>a.previousToken.indented)return C.skipToEnd(),"commentLine";if(a.startOfLine){if("!"==K&&C.match("!!"))return C.skipToEnd(),"tag";if(C.match(/^%[\w:#\.]+=/))return a.tokenize=t,"hamlTag";if(C.match(/^%[\w:]+/))return"hamlTag";if("/"==K)return C.skipToEnd(),"comment"}if(a.startOfLine||"hamlTag"==a.previousToken.style)if("#"==K||"."==K)return C.match(/[\w-#\.]*/),"hamlAttribute";if(a.startOfLine&&!C.match("--\x3e",
|
|||
|
!1)&&("\x3d"==K||"-"==K))return a.tokenize=t,a.tokenize(C,a);if("hamlTag"==a.previousToken.style||"closeAttributeTag"==a.previousToken.style||"hamlAttribute"==a.previousToken.style){if("("==K)return a.tokenize=A(")"),a.tokenize(C,a);if("{"==K&&!C.match(/^\{%.*/))return a.tokenize=A("}"),a.tokenize(C,a)}return w.token(C,a.htmlState)}var w=q.getMode(R,{name:"htmlmixed"}),B=q.getMode(R,"ruby");return{startState:function(){var C=q.startState(w),a=q.startState(B);return{htmlState:C,rubyState:a,indented:0,
|
|||
|
previousToken:{style:null,indented:0},tokenize:d}},copyState:function(C){return{htmlState:q.copyState(w,C.htmlState),rubyState:q.copyState(B,C.rubyState),indented:C.indented,previousToken:C.previousToken,tokenize:C.tokenize}},token:function(C,a){C.sol()&&(a.indented=C.indentation(),a.startOfLine=!0);if(C.eatSpace())return null;var K=a.tokenize(C,a);a.startOfLine=!1;K&&"commentLine"!=K&&(a.previousToken={style:K,indented:a.indented});if(C.eol()&&a.tokenize==t){C.backUp(1);var r=C.peek();C.next();r&&
|
|||
|
","!=r&&(a.tokenize=d)}"hamlTag"==K?K="tag":"commentLine"==K?K="comment":"hamlAttribute"==K?K="attribute":"closeAttributeTag"==K&&(K=null);return K}}},"htmlmixed","ruby");q.defineMIME("text/x-haml","haml")})};
|
|||
|
shadow$provide[503]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.multiplexingMode=function(R){function A(d,w,B,C){return"string"==typeof w?(B=d.indexOf(w,B),C&&-1<B?B+w.length:B):(w=w.exec(B?d.slice(B):d))?w.index+B+(C?w[0].length:0):-1}var t=Array.prototype.slice.call(arguments,1);return{startState:function(){return{outer:q.startState(R),innerActive:null,inner:null}},
|
|||
|
copyState:function(d){return{outer:q.copyState(R,d.outer),innerActive:d.innerActive,inner:d.innerActive&&q.copyState(d.innerActive.mode,d.inner)}},token:function(d,w){if(w.innerActive){var B=w.innerActive;a=d.string;if(!B.close&&d.sol())return w.innerActive=w.inner=null,this.token(d,w);r=B.close?A(a,B.close,d.pos,B.parseDelimiters):-1;if(r==d.pos&&!B.parseDelimiters)return d.match(B.close),w.innerActive=w.inner=null,B.delimStyle&&B.delimStyle+" "+B.delimStyle+"-close";-1<r&&(d.string=a.slice(0,r));
|
|||
|
var C=B.mode.token(d,w.inner);-1<r&&(d.string=a);r==d.pos&&B.parseDelimiters&&(w.innerActive=w.inner=null);B.innerStyle&&(C=C?C+" "+B.innerStyle:B.innerStyle);return C}C=Infinity;for(var a=d.string,K=0;K<t.length;++K){B=t[K];var r=A(a,B.open,d.pos);if(r==d.pos)return B.parseDelimiters||d.match(B.open),w.innerActive=B,d=0,R.indent&&(a=R.indent(w.outer,"",""),a!==q.Pass&&(d=a)),w.inner=q.startState(B.mode,d),B.delimStyle&&B.delimStyle+" "+B.delimStyle+"-open";-1!=r&&r<C&&(C=r)}Infinity!=C&&(d.string=
|
|||
|
a.slice(0,C));w=R.token(d,w.outer);Infinity!=C&&(d.string=a);return w},indent:function(d,w,B){var C=d.innerActive?d.innerActive.mode:R;return C.indent?C.indent(d.innerActive?d.inner:d.outer,w,B):q.Pass},blankLine:function(d){var w=d.innerActive?d.innerActive.mode:R;w.blankLine&&w.blankLine(d.innerActive?d.inner:d.outer);if(d.innerActive)"\n"===d.innerActive.close&&(d.innerActive=d.inner=null);else for(var B=0;B<t.length;++B){var C=t[B];"\n"===C.open&&(d.innerActive=C,d.inner=q.startState(C.mode,w.indent?
|
|||
|
w.indent(d.outer,"",""):0))}},electricChars:R.electricChars,innerMode:function(d){return d.inner?{state:d.inner,mode:d.innerActive.mode}:{state:d.outer,mode:R}}}}})};
|
|||
|
shadow$provide[504]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481),W(503)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple","../../addon/mode/multiplex"],q):q(CodeMirror)})(function(q){q.defineSimpleMode("handlebars-tags",{start:[{regex:/\{\{\{/,push:"handlebars_raw",token:"tag"},{regex:/\{\{!--/,push:"dash_comment",token:"comment"},{regex:/\{\{!/,push:"comment",token:"comment"},{regex:/\{\{/,push:"handlebars",
|
|||
|
token:"tag"}],handlebars_raw:[{regex:/\}\}\}/,pop:!0,token:"tag"}],handlebars:[{regex:/\}\}/,pop:!0,token:"tag"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/>|[#\/]([A-Za-z_]\w*)/,token:"keyword"},{regex:/(?:else|this)\b/,token:"keyword"},{regex:/\d+/i,token:"number"},{regex:/=|~|@|true|false/,token:"atom"},{regex:/(?:\.\.\/)*(?:[A-Za-z_][\w\.]*)+/,token:"variable-2"}],dash_comment:[{regex:/--\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],
|
|||
|
comment:[{regex:/\}\}/,pop:!0,token:"comment"},{regex:/./,token:"comment"}],meta:{blockCommentStart:"{{--",blockCommentEnd:"--}}"}});q.defineMode("handlebars",function(R,A){var t=q.getMode(R,"handlebars-tags");return A&&A.base?q.multiplexingMode(q.getMode(R,A.base),{open:"{{",close:/\}\}\}?/,mode:t,parseDelimiters:!0}):t});q.defineMIME("text/x-handlebars-template","handlebars")})};
|
|||
|
shadow$provide[505]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("haskell",function(R,A){function t(u,m,l){m(l);return l(u,m)}function d(u,m){if(u.eatWhile(L))return null;var l=u.next();if(x.test(l)){if("{"==l&&u.eat("-")){var J="comment";u.eat("#")&&(J="meta");return t(u,m,w(J,1))}return null}if("'"==l)return u.eat("\\"),u.next(),u.eat("'")?"string":
|
|||
|
"string error";if('"'==l)return t(u,m,B);if(K.test(l))return u.eatWhile(f),u.eat(".")?"qualifier":"variable-2";if(a.test(l))return u.eatWhile(f),"variable";if(r.test(l)){if("0"==l){if(u.eat(/[xX]/))return u.eatWhile(h),"integer";if(u.eat(/[oO]/))return u.eatWhile(k),"number"}u.eatWhile(r);J="number";u.match(/^\.\d+/)&&(J="number");u.eat(/[eE]/)&&(J="number",u.eat(/[-+]/),u.eatWhile(r));return J}if("."==l&&u.eat("."))return"keyword";if(v.test(l)){if("-"==l&&u.eat(/-/)&&(u.eatWhile(/-/),!u.eat(v)))return u.skipToEnd(),
|
|||
|
"comment";J="variable";":"==l&&(J="variable-2");u.eatWhile(v);return J}return"error"}function w(u,m){return 0==m?d:function(l,J){for(var X=m;!l.eol();){var F=l.next();if("{"==F&&l.eat("-"))++X;else if("-"==F&&l.eat("}")&&(--X,0==X))return J(d),u}J(w(u,X));return u}}function B(u,m){for(;!u.eol();){var l=u.next();if('"'==l)return m(d),"string";if("\\"==l){if(u.eol()||u.eat(L))return m(C),"string";u.eat("\x26")||u.next()}}m(d);return"string error"}function C(u,m){if(u.eat("\\"))return t(u,m,B);u.next();
|
|||
|
m(d);return"error"}var a=/[a-z_]/,K=/[A-Z]/,r=/\d/,h=/[0-9A-Fa-f]/,k=/[0-7]/,f=/[a-z_A-Z0-9'\xa1-\uffff]/,v=/[-!#$%&*+.\/<=>?@\\^|~:]/,x=/[(),;[\]`{}]/,L=/[ \t\v\f]/,z=function(){function u(X){return function(){for(var F=0;F<arguments.length;F++)m[arguments[F]]=X}}var m={};u("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_");u("keyword")("..",":","::","\x3d","\\",
|
|||
|
"\x3c-","-\x3e","@","~","\x3d\x3e");u("builtin")("!!","$!","$","\x26\x26","+","++","-",".","/","/\x3d","\x3c","\x3c*","\x3c\x3d","\x3c$\x3e","\x3c*\x3e","\x3d\x3c\x3c","\x3d\x3d","\x3e","\x3e\x3d","\x3e\x3e","\x3e\x3e\x3d","^","^^","||","*","*\x3e","**");u("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord",
|
|||
|
"Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True");u("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip",
|
|||
|
"floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise",
|
|||
|
"pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail",
|
|||
|
"take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var l=A.overrideKeywords;if(l)for(var J in l)l.hasOwnProperty(J)&&(m[J]=l[J]);return m}();return{startState:function(){return{f:d}},copyState:function(u){return{f:u.f}},token:function(u,m){var l=m.f(u,function(J){m.f=J});u=u.current();return z.hasOwnProperty(u)?z[u]:l},blockCommentStart:"{-",
|
|||
|
blockCommentEnd:"-}",lineComment:"--"}});q.defineMIME("text/x-haskell","haskell")})};
|
|||
|
shadow$provide[506]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(505)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../haskell/haskell"],q):q(CodeMirror)})(function(q){q.defineMode("haskell-literate",function(R,A){var t=q.getMode(R,A&&A.base||"haskell");return{startState:function(){return{inCode:!1,baseState:q.startState(t)}},token:function(d,w){if(d.sol()&&(w.inCode=d.eat("\x3e")))return"meta";if(w.inCode)return t.token(d,w.baseState);
|
|||
|
d.skipToEnd();return"comment"},innerMode:function(d){return d.inCode?{state:d.baseState,mode:t}:null}}},"haskell");q.defineMIME("text/x-literate-haskell","haskell-literate")})};
|
|||
|
shadow$provide[507]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("haxe",function(R,A){function t(sa){return{type:sa,style:"keyword"}}function d(sa,Aa){for(var Ja=!1,Sa;null!=(Sa=sa.next());){if(Sa==Aa&&!Ja)return!0;Ja=!Ja&&"\\"==Sa}}function w(sa,Aa,Ja){Xa=sa;db=Ja;return Aa}function B(sa,Aa){var Ja=sa.next();if('"'==Ja||"'"==Ja)return Ja=C(Ja),Aa.tokenize=
|
|||
|
Ja,Ja(sa,Aa);if(/[\[\]{}\(\),;:\.]/.test(Ja))return w(Ja);if("0"==Ja&&sa.eat(/x/i))return sa.eatWhile(/[\da-f]/i),w("number","number");if(/\d/.test(Ja)||"-"==Ja&&sa.eat(/\d/))return sa.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),w("number","number");if(Aa.reAllowed&&"~"==Ja&&sa.eat(/\//))return d(sa,"/"),sa.eatWhile(/[gimsu]/),w("regexp","string-2");if("/"==Ja){if(sa.eat("*"))return Ja=a,Aa.tokenize=Ja,Ja(sa,Aa);if(sa.eat("/"))return sa.skipToEnd(),w("comment","comment");sa.eatWhile(eb);return w("operator",
|
|||
|
null,sa.current())}if("#"==Ja)return sa.skipToEnd(),w("conditional","meta");if("@"==Ja)return sa.eat(/:/),sa.eatWhile(/[\w_]/),w("metadata","meta");if(eb.test(Ja))return sa.eatWhile(eb),w("operator",null,sa.current());if(/[A-Z]/.test(Ja))return sa.eatWhile(/[\w_<>]/),sa=sa.current(),w("type","variable-3",sa);sa.eatWhile(/[\w_]/);sa=sa.current();return(Ja=Ma.propertyIsEnumerable(sa)&&Ma[sa])&&Aa.kwAllowed?w(Ja.type,Ja.style,sa):w("variable","variable",sa)}function C(sa){return function(Aa,Ja){d(Aa,
|
|||
|
sa)&&(Ja.tokenize=B);return w("string","string")}}function a(sa,Aa){for(var Ja=!1,Sa;Sa=sa.next();){if("/"==Sa&&Ja){Aa.tokenize=B;break}Ja="*"==Sa}return w("comment","comment")}function K(sa,Aa,Ja,Sa,Ab,jb){this.indented=sa;this.column=Aa;this.type=Ja;this.prev=Ab;this.info=jb;null!=Sa&&(this.align=Sa)}function r(sa){for(var Aa=oa.state,Ja=Aa.importedtypes;Ja;Ja=Ja.next)if(Ja.name==sa)return;Aa.importedtypes={name:sa,next:Aa.importedtypes}}function h(){for(var sa=arguments.length-1;0<=sa;sa--)oa.cc.push(arguments[sa])}
|
|||
|
function k(){h.apply(null,arguments);return!0}function f(sa,Aa){for(;Aa;Aa=Aa.next)if(Aa.name==sa)return!0;return!1}function v(sa){var Aa=oa.state;Aa.context?(oa.marked="def",f(sa,Aa.localVars)||(Aa.localVars={name:sa,next:Aa.localVars})):Aa.globalVars&&!f(sa,Aa.globalVars)&&(Aa.globalVars={name:sa,next:Aa.globalVars})}function x(){oa.state.context||(oa.state.localVars=Ca);oa.state.context={prev:oa.state.context,vars:oa.state.localVars}}function L(){oa.state.localVars=oa.state.context.vars;oa.state.context=
|
|||
|
oa.state.context.prev}function z(sa,Aa){var Ja=function(){var Sa=oa.state;Sa.lexical=new K(Sa.indented,oa.stream.column(),sa,null,Sa.lexical,Aa)};Ja.lex=!0;return Ja}function u(){var sa=oa.state;sa.lexical.prev&&(")"==sa.lexical.type&&(sa.indented=sa.lexical.indented),sa.lexical=sa.lexical.prev)}function m(sa){function Aa(Ja){return Ja==sa?k():";"==sa?h():k(Aa)}return Aa}function l(sa){return"@"==sa?k(T):"var"==sa?k(z("vardef"),da,m(";"),u):"keyword a"==sa?k(z("form"),J,l,u):"keyword b"==sa?k(z("form"),
|
|||
|
l,u):"{"==sa?k(z("}"),x,P,u,L):";"==sa?k():"attribute"==sa?k(ha):"function"==sa?k(N):"for"==sa?k(z("form"),m("("),z(")"),H,m(")"),u,l,u):"variable"==sa?k(z("stat"),M):"switch"==sa?k(z("form"),J,z("}","switch"),m("{"),P,u,u):"case"==sa?k(J,m(":")):"default"==sa?k(m(":")):"catch"==sa?k(z("form"),x,m("("),qa,m(")"),l,u,L):"import"==sa?k(E,m(";")):"typedef"==sa?k(aa):h(z("stat"),J,m(";"),u)}function J(sa){return Na.hasOwnProperty(sa)||"type"==sa?k(F):"function"==sa?k(N):"keyword c"==sa?k(X):"("==sa?k(z(")"),
|
|||
|
X,m(")"),u,F):"operator"==sa?k(J):"["==sa?k(z("]"),O(X,"]"),u,F):"{"==sa?k(z("}"),O(D,"}"),u,F):k()}function X(sa){return sa.match(/[;\}\)\],]/)?h():h(J)}function F(sa,Aa){if("operator"==sa&&/\+\+|--/.test(Aa))return k(F);if("operator"==sa||":"==sa)return k(J);if(";"!=sa){if("("==sa)return k(z(")"),O(J,")"),u,F);if("."==sa)return k(S,F);if("["==sa)return k(z("]"),J,m("]"),u,F)}}function ha(sa){if("attribute"==sa)return k(ha);if("function"==sa)return k(N);if("var"==sa)return k(da)}function T(sa){if(":"==
|
|||
|
sa||"variable"==sa)return k(T);if("("==sa)return k(z(")"),O(Z,")"),u,l)}function Z(sa){if("variable"==sa)return k()}function E(sa,Aa){if("variable"==sa&&/[A-Z]/.test(Aa.charAt(0)))return r(Aa),k();if("variable"==sa||"property"==sa||"."==sa||"*"==Aa)return k(E)}function aa(sa,Aa){if("variable"==sa&&/[A-Z]/.test(Aa.charAt(0)))return r(Aa),k();if("type"==sa&&/[A-Z]/.test(Aa.charAt(0)))return k()}function M(sa){return":"==sa?k(u,l):h(F,m(";"),u)}function S(sa){if("variable"==sa)return oa.marked="property",
|
|||
|
k()}function D(sa){"variable"==sa&&(oa.marked="property");if(Na.hasOwnProperty(sa))return k(m(":"),J)}function O(sa,Aa){function Ja(Sa){return","==Sa?k(sa,Ja):Sa==Aa?k():k(m(Aa))}return function(Sa){return Sa==Aa?k():h(sa,Ja)}}function P(sa){return"}"==sa?k():h(l,P)}function da(sa,Aa){return"variable"==sa?(v(Aa),k(ca,ba)):k()}function ba(sa,Aa){if("\x3d"==Aa)return k(J,ba);if(","==sa)return k(da)}function H(sa,Aa){return"variable"==sa?(v(Aa),k(ja,J)):h()}function ja(sa,Aa){if("in"==Aa)return k()}
|
|||
|
function N(sa,Aa){if("variable"==sa||"type"==sa)return v(Aa),k(N);if("new"==Aa)return k(N);if("("==sa)return k(z(")"),x,O(qa,")"),u,ca,l,L)}function ca(sa){if(":"==sa)return k(ia)}function ia(sa){if("type"==sa||"variable"==sa)return k();if("{"==sa)return k(z("}"),O(ea,"}"),u)}function ea(sa){if("variable"==sa)return k(ca)}function qa(sa,Aa){if("variable"==sa)return v(Aa),k(ca)}var za=R.indentUnit;R=t("keyword a");var ya=t("keyword b"),Ha=t("keyword c"),Ua=t("operator"),Ea={type:"atom",style:"atom"},
|
|||
|
Oa={type:"attribute",style:"attribute"},Xa=t("typedef"),Ma={"if":R,"while":R,"else":ya,"do":ya,"try":ya,"return":Ha,"break":Ha,"continue":Ha,"new":Ha,"throw":Ha,"var":t("var"),inline:Oa,"static":Oa,using:t("import"),"public":Oa,"private":Oa,cast:t("cast"),"import":t("import"),macro:t("macro"),"function":t("function"),"catch":t("catch"),untyped:t("untyped"),callback:t("cb"),"for":t("for"),"switch":t("switch"),"case":t("case"),"default":t("default"),"in":Ua,never:t("property_access"),trace:t("trace"),
|
|||
|
"class":Xa,"abstract":Xa,"enum":Xa,"interface":Xa,typedef:Xa,"extends":Xa,"implements":Xa,dynamic:Xa,"true":Ea,"false":Ea,"null":Ea},eb=/[+\-*&%=<>!?|]/,db,Na={atom:!0,number:!0,variable:!0,string:!0,regexp:!0},oa={state:null,column:null,marked:null,cc:null},Ca={name:"this",next:null};L.lex=!0;u.lex=!0;return{startState:function(sa){sa={tokenize:B,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new K((sa||0)-za,0,"block",!1),localVars:A.localVars,importedtypes:"Int Float String Void Std Bool Dynamic Array".split(" "),
|
|||
|
context:A.localVars&&{vars:A.localVars},indented:0};A.globalVars&&"object"==typeof A.globalVars&&(sa.globalVars=A.globalVars);return sa},token:function(sa,Aa){sa.sol()&&(Aa.lexical.hasOwnProperty("align")||(Aa.lexical.align=!1),Aa.indented=sa.indentation());if(sa.eatSpace())return null;var Ja=Aa.tokenize(sa,Aa);if("comment"==Xa)return Ja;Aa.reAllowed=!("operator"!=Xa&&"keyword c"!=Xa&&!Xa.match(/^[\[{}\(,;:]$/));Aa.kwAllowed="."!=Xa;a:{var Sa=Xa,Ab=db,jb=Aa.cc;oa.state=Aa;oa.stream=sa;oa.marked=null;
|
|||
|
oa.cc=jb;Aa.lexical.hasOwnProperty("align")||(Aa.lexical.align=!0);for(;;)if((jb.length?jb.pop():l)(Sa,Ab)){for(;jb.length&&jb[jb.length-1].lex;)jb.pop()();if(oa.marked){Ja=oa.marked;break a}if(sa="variable"==Sa)b:{for(sa=Aa.localVars;sa;sa=sa.next)if(sa.name==Ab){sa=!0;break b}sa=void 0}if(sa){Ja="variable-2";break a}if(Sa="variable"==Sa)b:if(/[a-z]/.test(Ab.charAt(0)))Sa=!1;else{Sa=Aa.importedtypes.length;for(sa=0;sa<Sa;sa++)if(Aa.importedtypes[sa]==Ab){Sa=!0;break b}Sa=void 0}if(Sa){Ja="variable-3";
|
|||
|
break a}break a}}return Ja},indent:function(sa,Aa){if(sa.tokenize!=B)return 0;var Ja=Aa&&Aa.charAt(0);sa=sa.lexical;"stat"==sa.type&&"}"==Ja&&(sa=sa.prev);var Sa=sa.type,Ab=Ja==Sa;return"vardef"==Sa?sa.indented+4:"form"==Sa&&"{"==Ja?sa.indented:"stat"==Sa||"form"==Sa?sa.indented+za:"switch"!=sa.info||Ab?sa.align?sa.column+(Ab?0:1):sa.indented+(Ab?0:za):sa.indented+(/^(?:case|default)\b/.test(Aa)?za:2*za)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});q.defineMIME("text/x-haxe",
|
|||
|
"haxe");q.defineMode("hxml",function(){return{startState:function(){return{define:!1,inString:!1}},token:function(R,A){var t=R.peek(),d=R.sol();if("#"==t)return R.skipToEnd(),"comment";if(d&&"-"==t)return t="variable-2",R.eat(/-/),"-"==R.peek()&&(R.eat(/-/),t="keyword a"),"D"==R.peek()&&(R.eat(/[D]/),t="keyword c",A.define=!0),R.eatWhile(/[A-Z]/i),t;t=R.peek();0==A.inString&&"'"==t&&(A.inString=!0,R.next());if(1==A.inString)return R.skipTo("'")||R.skipToEnd(),"'"==R.peek()&&(R.next(),A.inString=!1),
|
|||
|
"string";R.next();return null},lineComment:"#"}});q.defineMIME("text/x-hxml","hxml")})};
|
|||
|
shadow$provide[508]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(503)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/multiplex"],q):q(CodeMirror)})(function(q){q.defineMode("htmlembedded",function(R,A){var t=A.closeComment||"--%\x3e";return q.multiplexingMode(q.getMode(R,"htmlmixed"),{open:A.openComment||"\x3c%--",close:t,delimStyle:"comment",mode:{token:function(d){d.skipTo(t)||d.skipToEnd();
|
|||
|
return"comment"}}},{open:A.open||A.scriptStartRegex||"\x3c%",close:A.close||A.scriptEndRegex||"%\x3e",mode:q.getMode(R,A.scriptingModeSpec)})},"htmlmixed");q.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"});q.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"});q.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"});q.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})})};
|
|||
|
shadow$provide[509]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("http",function(){function R(K,r){K.skipToEnd();r.cur=C;return"error"}function A(K,r){return K.match(/^HTTP\/\d\.\d/)?(r.cur=t,"keyword"):K.match(/^[A-Z]+/)&&/[ \t]/.test(K.peek())?(r.cur=w,"keyword"):R(K,r)}function t(K,r){var h=K.match(/^\d+/);if(!h)return R(K,r);r.cur=d;K=Number(h[0]);
|
|||
|
return 100<=K&&200>K?"positive informational":200<=K&&300>K?"positive success":300<=K&&400>K?"positive redirect":400<=K&&500>K?"negative client-error":500<=K&&600>K?"negative server-error":"error"}function d(K,r){K.skipToEnd();r.cur=C;return null}function w(K,r){K.eatWhile(/\S/);r.cur=B;return"string-2"}function B(K,r){return K.match(/^HTTP\/\d\.\d$/)?(r.cur=C,"keyword"):R(K,r)}function C(K){if(K.sol()&&!K.eat(/[ \t]/)){if(K.match(/^.*?:/))return"atom";K.skipToEnd();return"error"}K.skipToEnd();return"string"}
|
|||
|
function a(K){K.skipToEnd();return null}return{token:function(K,r){var h=r.cur;return h!=C&&h!=a&&K.eatSpace()?null:h(K,r)},blankLine:function(K){K.cur=a},startState:function(){return{cur:A}}}});q.defineMIME("message/http","http")})};
|
|||
|
shadow$provide[510]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(r){return new RegExp("^(("+r.join(")|(")+"))\\b","i")}function A(r){if(r.eatSpace())return null;if(r.match(";"))return r.skipToEnd(),"comment";if(r.match(/^[0-9\.+-]/,!1)&&(r.match(/^[+-]?0x[0-9a-fA-F]+/)||r.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||r.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)))return"number";
|
|||
|
if(r.match(/^"([^"]|(""))*"/)||r.match(/^'([^']|(''))*'/))return"string";if(r.match(B))return"keyword";if(r.match(d))return"builtin";if(r.match(C))return"variable";if(r.match(a)||r.match(K))return"operator";r.next();return null}var t="a_correlate abs acos adapt_hist_equal alog alog2 alog10 amoeba annotate app_user_dir app_user_dir_query arg_present array_equal array_indices arrow ascii_template asin assoc atan axis axis bandpass_filter bandreject_filter barplot bar_plot beseli beselj beselk besely beta biginteger bilinear bin_date binary_template bindgen binomial bit_ffs bit_population blas_axpy blk_con boolarr boolean boxplot box_cursor breakpoint broyden bubbleplot butterworth bytarr byte byteorder bytscl c_correlate calendar caldat call_external call_function call_method call_procedure canny catch cd cdf ceil chebyshev check_math chisqr_cvf chisqr_pdf choldc cholsol cindgen cir_3pnt clipboard close clust_wts cluster cluster_tree cmyk_convert code_coverage color_convert color_exchange color_quan color_range_map colorbar colorize_sample colormap_applicable colormap_gradient colormap_rotation colortable comfit command_line_args common compile_opt complex complexarr complexround compute_mesh_normals cond congrid conj constrained_min contour contour convert_coord convol convol_fft coord2to3 copy_lun correlate cos cosh cpu cramer createboxplotdata create_cursor create_struct create_view crossp crvlength ct_luminance cti_test cursor curvefit cv_coord cvttobm cw_animate cw_animate_getp cw_animate_load cw_animate_run cw_arcball cw_bgroup cw_clr_index cw_colorsel cw_defroi cw_field cw_filesel cw_form cw_fslider cw_light_editor cw_light_editor_get cw_light_editor_set cw_orient cw_palette_editor cw_palette_editor_get cw_palette_editor_set cw_pdmenu cw_rgbslider cw_tmpl cw_zoom db_exists dblarr dcindgen dcomplex dcomplexarr define_key define_msgblk define_msgblk_from_file defroi defsysv delvar dendro_plot dendrogram deriv derivsig determ device dfpmin diag_matrix dialog_dbconnect dialog_message dialog_pickfile dialog_printersetup dialog_printjob dialog_read_image dialog_write_image dictionary digital_filter dilate dindgen dissolve dist distance_measure dlm_load dlm_register doc_library double draw_roi edge_dog efont eigenql eigenvec ellipse elmhes emboss empty enable_sysrtn eof eos erase erf erfc erfcx erode errorplot errplot estimator_filter execute exit exp expand expand_path expint extrac extract_slice f_cvf f_pdf factorial fft file_basename file_chmod file_copy file_delete file_dirname file_expand_path file_gunzip file_gzip file_info file_lines file_link file_mkdir file_move file_poll_input file_readlink file_same file_search file_tar file_test file_untar file_unzip file_which file_zip filepath findgen finite fix flick float floor flow3 fltarr flush format_axis_values forward_function free_lun fstat fulstr funct function fv_test fx_root fz_roots gamma gamma_ct gauss_cvf gauss_pdf gauss_smooth gauss2dfit gaussfit gaussian_function gaussint get_drive_list get_dxf_objects get_kbrd get_login_info get_lun get_screen_size getenv getwindows greg2jul grib grid_input grid_tps grid3 griddata gs_iter h_eq_ct h_eq_int hanning hash hdf hdf5 heap_free heap_gc heap_nosave heap_refcount heap_save help hilbert hist_2d hist_equal histogram hls hough hqr hsv i18n_multibytetoutf8 i18n_multibytetowidechar i18n_utf8tomultibyte i18n_widechartomultibyte ibeta icontour iconvertcoord idelete identity idl_base64 idl_container idl_validname idlexbr_assistant idlitsys_createtool idlunit iellipse igamma igetcurrent igetdata igetid igetproperty iimage image image_cont image_statistics image_threshold imaginary imap indgen int_2d int_3d int_tabulated intarr interpol interpolate interval_volume invert ioctl iopen ir_filter iplot ipolygon ipolyline iputdata iregister ireset iresolve irotate isa isave iscale isetcurrent isetproperty ishft isocontour isosurface isurface itext itranslate ivector ivolume izoom journal json_parse json_serialize jul2greg julday keyword_set krig2d kurtosis kw_test l64indgen la_choldc la_cholmprove la_cholsol la_determ la_eigenproble
|
|||
|
d=R(t),w="begin end endcase endfor endwhile endif endrep endforeach break case continue for foreach goto if then else repeat until switch while do pro function".split(" "),B=R(w);q.registerHelper("hintWords","idl",t.concat(w));var C=RegExp("^[_a-z¡-][_a-z0-9¡-]*","i"),a=/[+\-*&=<>\/@#~$]/,K=RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");q.defineMode("idl",function(){return{token:function(r){return A(r)}}});q.defineMIME("text/x-idl","idl")})};
|
|||
|
shadow$provide[511]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("jinja2",function(){function R(C,a){var K=C.peek();if(a.incomment)return C.skipTo("#}")?(C.eatWhile(/#|}/),a.incomment=!1):C.skipToEnd(),"comment";if(a.intag){if(a.operator){a.operator=!1;if(C.match(w))return"atom";if(C.match(B))return"number"}if(a.sign){a.sign=!1;if(C.match(w))return"atom";
|
|||
|
if(C.match(B))return"number"}if(a.instring)return K==a.instring&&(a.instring=!1),C.next(),"string";if("'"==K||'"'==K)return a.instring=K,C.next(),"string";if(C.match(a.intag+"}")||C.eat("-")&&C.match(a.intag+"}"))return a.intag=!1,"tag";if(C.match(t))return a.operator=!0,"operator";if(C.match(d))a.sign=!0;else if(C.eat(" ")||C.sol()){if(C.match(A))return"keyword";if(C.match(w))return"atom";if(C.match(B))return"number";C.sol()&&C.next()}else C.next();return"variable"}if(C.eat("{")){if(C.eat("#"))return a.incomment=
|
|||
|
!0,C.skipTo("#}")?(C.eatWhile(/#|}/),a.incomment=!1):C.skipToEnd(),"comment";if(K=C.eat(/\{|%/))return a.intag=K,"{"==K&&(a.intag="}"),C.eat("-"),"tag"}C.next()}var A="and as block endblock by cycle debug else elif extends filter endfilter firstof for endfor if endif ifchanged endifchanged ifequal endifequal ifnotequal endifnotequal in include load not now or parsed regroup reversed spaceless endspaceless ssi templatetag openblock closeblock openvariable closevariable openbrace closebrace opencomment closecomment widthratio url with endwith get_current_language trans endtrans noop blocktrans endblocktrans get_available_languages get_current_language_bidi plural".split(" "),
|
|||
|
t=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,w=["true","false"],B=/^(\d[+\-\*\/])?\d+(\.\d+)?/;A=new RegExp("(("+A.join(")|(")+"))\\b");w=new RegExp("(("+w.join(")|(")+"))\\b");return{startState:function(){return{tokenize:R}},token:function(C,a){return a.tokenize(C,a)},blockCommentStart:"{#",blockCommentEnd:"#}"}});q.defineMIME("text/jinja2","jinja2")})};
|
|||
|
shadow$provide[512]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(476),W(477)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript"],q):q(CodeMirror)})(function(q){function R(t,d,w,B){this.state=t;this.mode=d;this.depth=w;this.prev=B}function A(t){return new R(q.copyState(t.mode,t.state),t.mode,t.depth,t.prev&&A(t.prev))}q.defineMode("jsx",function(t,d){function w(r){var h=r.tagName;r.tagName=null;var k=
|
|||
|
a.indent(r,"","");r.tagName=h;return k}function B(r,h){if(h.context.mode==a)return C(r,h,h.context);var k=h.context;if("\x3c"==r.peek()&&K.expressionAllowed(r,k.state))K.skipExpression(k.state),h.context=new R(q.startState(a,K.indent(k.state,"","")),a,0,h.context),h=null;else{var f=K.token(r,k.state);f||null==k.depth||(r=r.current(),"{"==r?k.depth++:"}"==r&&0==--k.depth&&(h.context=h.context.prev));h=f}return h}function C(r,h,k){if(2==k.depth)return r.match(/^.*?\*\//)?k.depth=1:r.skipToEnd(),"comment";
|
|||
|
if("{"==r.peek()){a.skipAttribute(k.state);var f=w(k.state),v=k.state.context;if(v&&r.match(/^[^>]*>\s*$/,!1)){for(;v.prev&&!v.startOfLine;)v=v.prev;v.startOfLine?f-=t.indentUnit:k.prev.state.lexical&&(f=k.prev.state.lexical.indented)}else 1==k.depth&&(f+=t.indentUnit);h.context=new R(q.startState(K,f),K,0,h.context);return null}if(1==k.depth){if("\x3c"==r.peek())return a.skipAttribute(k.state),h.context=new R(q.startState(a,w(k.state)),a,0,h.context),null;if(r.match("//"))return r.skipToEnd(),"comment";
|
|||
|
if(r.match("/*"))return k.depth=2,B(r,h)}f=a.token(r,k.state);v=r.current();var x;/\btag\b/.test(f)?/>$/.test(v)?k.state.context?k.depth=0:h.context=h.context.prev:/^</.test(v)&&(k.depth=1):!f&&-1<(x=v.indexOf("{"))&&r.backUp(v.length-x);return f}var a=q.getMode(t,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),K=q.getMode(t,d&&d.base||"javascript");return{startState:function(){return{context:new R(q.startState(K),K)}},copyState:function(r){return{context:A(r.context)}},
|
|||
|
token:B,indent:function(r,h,k){return r.context.mode.indent(r.context.state,h,k)},innerMode:function(r){return r.context}}},"xml","javascript");q.defineMIME("text/jsx","jsx");q.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})};
|
|||
|
shadow$provide[513]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("julia",function(R,A){function t(F,ha){"undefined"===typeof ha&&(ha="\\b");return new RegExp("^(("+F.join(")|(")+"))"+ha)}function d(F,ha){"undefined"===typeof ha&&(ha=0);return F.scopes.length<=ha?null:F.scopes[F.scopes.length-(ha+1)]}function w(F,ha){if(F.match(/^#=/,!1))return ha.tokenize=
|
|||
|
a,ha.tokenize(F,ha);var T=ha.leavingExpr;F.sol()&&(T=!1);ha.leavingExpr=!1;if(T&&F.match(/^'+/))return"operator";if(F.match(/\.{4,}/))return"error";if(F.match(/\.{1,3}/))return"operator";if(F.eatSpace())return null;var Z=F.peek();if("#"===Z)return F.skipToEnd(),"comment";"["===Z&&(ha.scopes.push("["),ha.nestedArrays++);"("===Z&&(ha.scopes.push("("),ha.nestedGenerators++);if(0<ha.nestedArrays&&"]"===Z){for(;ha.scopes.length&&"["!==d(ha);)ha.scopes.pop();ha.scopes.pop();ha.nestedArrays--;ha.leavingExpr=
|
|||
|
!0}if(0<ha.nestedGenerators&&")"===Z){for(;ha.scopes.length&&"("!==d(ha);)ha.scopes.pop();ha.scopes.pop();ha.nestedGenerators--;ha.leavingExpr=!0}if(0<ha.nestedArrays){if("end"==ha.lastToken&&F.match(/^:/))return"operator";if(F.match(/^end/))return"number"}var E;(E=F.match(L,!1))&&ha.scopes.push(E[0]);F.match(z,!1)&&ha.scopes.pop();if(F.match(/^::(?![:\$])/))return ha.tokenize=C,ha.tokenize(F,ha);if(!T&&F.match(J)||F.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";
|
|||
|
if(F.match(h))return"operator";if(F.match(/^\.?\d/,!1)&&(T=RegExp(/^im\b/),Z=!1,F.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(Z=!0),F.match(/^0x[0-9a-f_]+/i)&&(Z=!0),F.match(/^0b[01_]+/i)&&(Z=!0),F.match(/^0o[0-7_]+/i)&&(Z=!0),F.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(Z=!0),F.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(Z=!0),Z))return F.match(T),ha.leavingExpr=!0,"number";if(F.match(/^'/))return ha.tokenize=K,ha.tokenize(F,ha);if(F.match(X))return ha.tokenize=
|
|||
|
r(F.current()),ha.tokenize(F,ha);if(F.match(l))return"meta";if(F.match(k))return null;if(F.match(u))return"keyword";if(F.match(m))return"builtin";T=ha.isDefinition||"function"==ha.lastToken||"macro"==ha.lastToken||"type"==ha.lastToken||"struct"==ha.lastToken||"immutable"==ha.lastToken;if(F.match(f)){if(T){if("."===F.peek())return ha.isDefinition=!0,"variable";ha.isDefinition=!1;return"def"}if(F.match(/^({[^}]*})*\(/,!1))return ha.tokenize=B,ha.tokenize(F,ha);ha.leavingExpr=!0;return"variable"}F.next();
|
|||
|
return"error"}function B(F,ha){var T=F.match(/^(\(\s*)/);T&&(0>ha.firstParenPos&&(ha.firstParenPos=ha.scopes.length),ha.scopes.push("("),ha.charsAdvanced+=T[1].length);if("("==d(ha)&&F.match(/^\)/)&&(ha.scopes.pop(),ha.charsAdvanced+=1,ha.scopes.length<=ha.firstParenPos))return T=F.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1),F.backUp(ha.charsAdvanced),ha.firstParenPos=-1,ha.charsAdvanced=0,ha.tokenize=w,T?"def":"builtin";if(F.match(/^$/g,!1)){for(F.backUp(ha.charsAdvanced);ha.scopes.length>ha.firstParenPos;)ha.scopes.pop();
|
|||
|
ha.firstParenPos=-1;ha.charsAdvanced=0;ha.tokenize=w;return"builtin"}ha.charsAdvanced+=F.match(/^([^()]*)/)[1].length;return ha.tokenize(F,ha)}function C(F,ha){F.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/);F.match(/^{/)?ha.nestedParameters++:F.match(/^}/)&&0<ha.nestedParameters&&ha.nestedParameters--;0<ha.nestedParameters?F.match(/.*?(?={|})/)||F.next():0==ha.nestedParameters&&(ha.tokenize=w);return"builtin"}function a(F,ha){F.match(/^#=/)&&ha.nestedComments++;F.match(/.*?(?=(#=|=#))/)||F.skipToEnd();F.match(/^=#/)&&
|
|||
|
(ha.nestedComments--,0==ha.nestedComments&&(ha.tokenize=w));return"comment"}function K(F,ha){var T=!1,Z;if(F.match(v))T=!0;else if(Z=F.match(/\\u([a-f0-9]{1,4})(?=')/i)){if(Z=parseInt(Z[1],16),55295>=Z||57344<=Z)T=!0,F.next()}else if(Z=F.match(/\\U([A-Fa-f0-9]{5,8})(?=')/))Z=parseInt(Z[1],16),1114111>=Z&&(T=!0,F.next());if(T)return ha.leavingExpr=!0,ha.tokenize=w,"string";F.match(/^[^']+(?=')/)||F.skipToEnd();F.match(/^'/)&&(ha.tokenize=w);return"error"}function r(F){'"""'===F.substr(-3)?F='"""':
|
|||
|
'"'===F.substr(-1)&&(F='"');return function(ha,T){if(ha.eat("\\"))ha.next();else{if(ha.match(F))return T.tokenize=w,T.leavingExpr=!0,"string";ha.eat(/[`"]/)}ha.eatWhile(/[^\\`"]/);return"string"}}var h=A.operators||t("[\x3c\x3e]: [\x3c\x3e\x3d]\x3d \x3c\x3c\x3d? \x3e\x3e\x3e?\x3d? \x3d\x3e -\x3e \\/\\/ [\\\\%*+\\-\x3c\x3e!\x3d\\/^|\x26\\u00F7\\u22BB]\x3d? \\? \\$ ~ : \\u00D7 \\u2208 \\u2209 \\u220B \\u220C \\u2218 \\u221A \\u221B \\u2229 \\u222A \\u2260 \\u2264 \\u2265 \\u2286 \\u2288 \\u228A \\u22C5 \\b(in|isa)\\b(?!.?\\()".split(" "),
|
|||
|
""),k=A.delimiters||/^[;,()[\]{}]/,f=A.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,v=t(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'");A="if else elseif while for begin let end do try catch finally return break continue global local const export import importall using function where macro module baremodule struct type mutable immutable quote typealias abstract primitive bitstype".split(" ");
|
|||
|
var x=["true","false","nothing","NaN","Inf"];q.registerHelper("hintWords","julia",A.concat(x));var L=t("begin function type struct immutable let macro for while quote if else elseif try finally catch do".split(" ")),z=t(["end","else","elseif","catch","finally"]),u=t(A),m=t(x),l=/^@[_A-Za-z][\w]*/,J=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,X=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;return{startState:function(){return{tokenize:w,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,
|
|||
|
nestedComments:0,nestedGenerators:0,nestedParameters:0,charsAdvanced:0,firstParenPos:-1}},token:function(F,ha){var T=ha.tokenize(F,ha);(F=F.current())&&T&&(ha.lastToken=F);return T},indent:function(F,ha){var T=0;if("]"===ha||")"===ha||/^end\b/.test(ha)||/^else/.test(ha)||/^catch\b/.test(ha)||/^elseif\b/.test(ha)||/^finally/.test(ha))T=-1;return(F.scopes.length+T)*R.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#\x3d",blockCommentEnd:"\x3d#",lineComment:"#",closeBrackets:'()[]{}""',
|
|||
|
fold:"indent"}});q.defineMIME("text/x-julia","julia")})};
|
|||
|
shadow$provide[514]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("livescript",function(){var a=function(K,r){var h=r.next||"start";r.next=r.next;var k=t[h];if(k.splice){for(h=0;h<k.length;++h){var f=k[h];if(f.regex&&K.match(f.regex))return r.next=f.next||r.next,f.token}K.next();return"error"}if(K.match(f=t[h])){if(f.regex&&K.match(f.regex))return r.next=
|
|||
|
f.next,f.token;K.next();return"error"}K.next();return"error"};return{startState:function(){return{next:"start",lastToken:{style:null,indent:0,content:""}}},token:function(K,r){for(;K.pos==K.start;)var h=a(K,r);r.lastToken={style:h,indent:K.indentation(),content:K.current()};return h.replace(/\./g," ")},indent:function(K){var r=K.lastToken.indent;K.lastToken.content.match(R)&&(r+=2);return r}}});var R=RegExp("(?:[({[\x3d:]|[-~]\x3e|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*)?))\\s*$"),
|
|||
|
A={token:"string",regex:".+"},t={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},
|
|||
|
{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},{token:"language.support.function",
|
|||
|
regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)(?![$\\w]|-[A-Za-z]|\\s*:(?![:\x3d]))"},{token:"identifier",regex:"(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*\\s*:(?![:\x3d])"},{token:"variable",regex:"(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*"},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},
|
|||
|
{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"\x3c\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",
|
|||
|
next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},
|
|||
|
{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:"(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},A],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},A],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},
|
|||
|
A],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},A],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},A],words:[{token:"string",regex:".*?\\]\x3e",next:"key"},A]},d;for(d in t)if(A=t[d],A.splice)for(var w=0,B=A.length;w<B;++w){var C=A[w];"string"===typeof C.regex&&(t[d][w].regex=new RegExp("^"+C.regex))}else"string"===typeof C.regex&&(t[d].regex=new RegExp("^"+A.regex));q.defineMIME("text/x-livescript","livescript")})};
|
|||
|
shadow$provide[515]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("lua",function(R,A){function t(x){return new RegExp("^(?:"+x.join("|")+")$","i")}function d(x){for(var L=0;x.eat("\x3d");)++L;x.eat("[");return L}function w(x,L){var z=x.next();if("-"==z&&x.eat("-")){if(x.eat("[")&&x.eat("["))return(L.cur=B(d(x),"comment"))(x,L);x.skipToEnd();return"comment"}return'"'==
|
|||
|
z||"'"==z?(L.cur=C(z))(x,L):"["==z&&/[\[=]/.test(x.peek())?(L.cur=B(d(x),"string"))(x,L):/\d/.test(z)?(x.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(z)?(x.eatWhile(/[\w\\\-_.]/),"variable"):null}function B(x,L){return function(z,u){for(var m=null,l;null!=(l=z.next());)if(null==m)"]"==l&&(m=0);else if("\x3d"==l)++m;else if("]"==l&&m==x){u.cur=w;break}else m=null;return L}}function C(x){return function(L,z){for(var u=!1,m;null!=(m=L.next())&&(m!=x||u);)u=!u&&"\\"==m;u||(z.cur=w);return"string"}}var a=
|
|||
|
R.indentUnit,K=t(A.specials||[]),r=t("_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine.create coroutine.resume coroutine.running coroutine.status coroutine.wrap coroutine.yield debug.debug debug.getfenv debug.gethook debug.getinfo debug.getlocal debug.getmetatable debug.getregistry debug.getupvalue debug.setfenv debug.sethook debug.setlocal debug.setmetatable debug.setupvalue debug.traceback close flush lines read seek setvbuf write io.close io.flush io.input io.lines io.open io.output io.popen io.read io.stderr io.stdin io.stdout io.tmpfile io.type io.write math.abs math.acos math.asin math.atan math.atan2 math.ceil math.cos math.cosh math.deg math.exp math.floor math.fmod math.frexp math.huge math.ldexp math.log math.log10 math.max math.min math.modf math.pi math.pow math.rad math.random math.randomseed math.sin math.sinh math.sqrt math.tan math.tanh os.clock os.date os.difftime os.execute os.exit os.getenv os.remove os.rename os.setlocale os.time os.tmpname package.cpath package.loaded package.loaders package.loadlib package.path package.preload package.seeall string.byte string.char string.dump string.find string.format string.gmatch string.gsub string.len string.lower string.match string.rep string.reverse string.sub string.upper table.concat table.insert table.maxn table.remove table.sort".split(" ")),
|
|||
|
h=t("and break elseif false nil not or return true function end if then else do while repeat until for in local".split(" ")),k=t("function if repeat do \\( {".split(" ")),f=t(["end","until","\\)","}"]),v=RegExp("^(?:end|until|\\)|}|else|elseif)","i");return{startState:function(x){return{basecol:x||0,indentDepth:0,cur:w}},token:function(x,L){if(x.eatSpace())return null;var z=L.cur(x,L);x=x.current();"variable"==z&&(h.test(x)?z="keyword":r.test(x)?z="builtin":K.test(x)&&(z="variable-2"));"comment"!=
|
|||
|
z&&"string"!=z&&(k.test(x)?++L.indentDepth:f.test(x)&&--L.indentDepth);return z},indent:function(x,L){L=v.test(L);return x.basecol+a*(x.indentDepth-(L?1:0))},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}});q.defineMIME("text/x-lua","lua")})};
|
|||
|
shadow$provide[516]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("mathematica",function(R,A){function t(K,r){var h=K.next();if('"'===h)return r.tokenize=d,r.tokenize(K,r);if("("===h&&K.eat("*"))return r.commentLevel++,r.tokenize=w,r.tokenize(K,r);K.backUp(1);if(K.match(B,!0,!1)||K.match(C,!0,!1))return"number";if(K.match(/(?:In|Out)\[[0-9]*\]/,!0,
|
|||
|
!1))return"atom";if(K.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1))return"meta";if(K.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1))return"string-2";if(K.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^&\*\)\[\]'\?,\|])).*/,!0,!1)||K.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||K.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||K.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1))return"variable-2";
|
|||
|
if(K.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1))return"variable-3";if(K.match(/(?:\[|\]|{|}|\(|\))/,!0,!1))return"bracket";if(K.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1))return"variable-2";if(K.match(a,!0,!1))return"keyword";if(K.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1))return"operator";K.next();return"error"}function d(K,r){for(var h,k=!1,f=!1;null!=(h=K.next());){if('"'===h&&!f){k=!0;break}f=!f&&"\\"===h}k&&!f&&(r.tokenize=t);return"string"}function w(K,
|
|||
|
r){for(var h,k;0<r.commentLevel&&null!=(k=K.next());)"("===h&&"*"===k&&r.commentLevel++,"*"===h&&")"===k&&r.commentLevel--,h=k;0>=r.commentLevel&&(r.tokenize=t);return"comment"}var B=RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)(?:`(?:`?(?:\\.\\d+|\\d+\\.\\d*|\\d+))?)?(?:\\*\\^[+-]?\\d+)?))"),C=RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:`(?:`?(?:\\.\\d+|\\d+\\.\\d*|\\d+))?)?(?:\\*\\^[+-]?\\d+)?)"),a=RegExp("(?:`?)(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*)(?:`(?:[a-zA-Z\\$][a-zA-Z0-9\\$]*))*(?:`?)");
|
|||
|
return{startState:function(){return{tokenize:t,commentLevel:0}},token:function(K,r){return K.eatSpace()?null:r.tokenize(K,r)},blockCommentStart:"(*",blockCommentEnd:"*)"}});q.defineMIME("text/x-mathematica",{name:"mathematica"})})};
|
|||
|
shadow$provide[517]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(f,v){if(f.sol()){v.inSeparator=!1;if(v.inHeader&&f.match(d))return null;v.inHeader=!1;v.header=null;if(f.match(w))return v.inHeaders=!0,v.inSeparator=!0,"atom";var x,L=!1;if((x=f.match(C))||(L=!0,x=f.match(B)))return v.inHeaders=!0,v.inHeader=!0,v.emailPermitted=L,v.header=x[1],"atom";
|
|||
|
if(v.inHeaders&&(x=f.match(a)))return v.inHeader=!0,v.emailPermitted=!0,v.header=x[1],"atom";v.inHeaders=!1;f.skipToEnd();return null}if(v.inSeparator){if(f.match(K))return"link";if(f.match(r))return"atom";f.skipToEnd();return"atom"}if(v.inHeader){x="Subject"===v.header?"header":"string";if(v.emailPermitted){if(f.match(h))return x+" link";if(f.match(k))return x}f.skipToEnd();return x}f.skipToEnd();return null}var A="From Sender Reply-To To Cc Bcc Message-ID In-Reply-To References Resent-From Resent-Sender Resent-To Resent-Cc Resent-Bcc Resent-Message-ID Return-Path Received".split(" "),
|
|||
|
t=["Date","Subject","Comments","Keywords","Resent-Date"];q.registerHelper("hintWords","mbox",A.concat(t));var d=/^[ \t]/,w=/^From /,B=new RegExp("^("+A.join("|")+"): "),C=new RegExp("^("+t.join("|")+"): "),a=/^[^:]+:/,K=/^[^ ]+@[^ ]+/,r=/^.*?(?=[^ ]+?@[^ ]+)/,h=/^<.*?>/,k=/^.*?(?=<.*>)/;q.defineMode("mbox",function(){return{startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:R,blankLine:function(f){f.inHeaders=f.inSeparator=f.inHeader=!1}}});
|
|||
|
q.defineMIME("application/mbox","mbox")})};
|
|||
|
shadow$provide[518]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMIME("text/mirc","mirc");q.defineMode("mirc",function(){function R(K){var r={};K=K.split(" ");for(var h=0;h<K.length;++h)r[K[h]]=!0;return r}function A(K,r){var h=r.beforeParams;r.beforeParams=!1;var k=K.next();if(/[\[\]{}\(\),\.]/.test(k))return"("==k&&h?r.inParams=!0:")"==k&&(r.inParams=
|
|||
|
!1),null;if(/\d/.test(k))return K.eatWhile(/[\w\.]/),"number";if("\\"==k)return K.eat("\\"),K.eat(/./),"number";if("/"==k&&K.eat("*"))return h=t,r.tokenize=h,h(K,r);if(";"==k&&K.match(/ *\( *\(/))return h=d,r.tokenize=h,h(K,r);if(";"!=k||r.inParams){if('"'==k)return K.eat(/"/),"keyword";if("$"==k){K.eatWhile(/[$_a-z0-9A-Z\.:]/);if(w&&w.propertyIsEnumerable(K.current().toLowerCase()))return"keyword";r.beforeParams=!0;return"builtin"}if("%"==k)return K.eatWhile(/[^,\s()]/),r.beforeParams=!0,"string";
|
|||
|
if(a.test(k))return K.eatWhile(a),"operator";K.eatWhile(/[\w\$_{}]/);K=K.current().toLowerCase();return B&&B.propertyIsEnumerable(K)?"keyword":C&&C.propertyIsEnumerable(K)?(r.beforeParams=!0,"keyword"):null}K.skipToEnd();return"comment"}function t(K,r){for(var h=!1,k;k=K.next();){if("/"==k&&h){r.tokenize=A;break}h="*"==k}return"comment"}function d(K,r){for(var h=0,k;k=K.next();){if(";"==k&&2==h){r.tokenize=A;break}")"==k?h++:" "!=k&&(h=0)}return"meta"}var w=R("$! $$ $\x26 $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),
|
|||
|
B=R("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),
|
|||
|
C=R("if elseif else and not or eq ne in ni for foreach while switch"),a=/[+\-*&%=<>!?^\/\|]/;return{startState:function(){return{tokenize:A,beforeParams:!1,inParams:!1}},token:function(K,r){return K.eatSpace()?null:r.tokenize(K,r)}}})})};
|
|||
|
shadow$provide[519]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("mllike",function(R,A){function t(r,h){var k=r.next();return'"'===k?(h.tokenize=d,h.tokenize(r,h)):"{"===k&&r.eat("|")?(h.longString=!0,h.tokenize=B,h.tokenize(r,h)):"("===k&&r.eat("*")?(h.commentLevel++,h.tokenize=w,h.tokenize(r,h)):"~"===k||"?"===k?(r.eatWhile(/\w/),"variable-2"):"`"===
|
|||
|
k?(r.eatWhile(/\w/),"quote"):"/"===k&&A.slashComments&&r.eat("/")?(r.skipToEnd(),"comment"):/\d/.test(k)?("0"===k&&r.eat(/[bB]/)&&r.eatWhile(/[01]/),"0"===k&&r.eat(/[xX]/)&&r.eatWhile(/[0-9a-fA-F]/),"0"===k&&r.eat(/[oO]/)?r.eatWhile(/[0-7]/):(r.eatWhile(/[\d_]/),r.eat(".")&&r.eatWhile(/[\d]/),r.eat(/[eE]/)&&r.eatWhile(/[\d\-+]/)),"number"):/[+\-*&%=<>!?|@\.~:]/.test(k)?"operator":/[\w\xa1-\uffff]/.test(k)?(r.eatWhile(/[\w\xa1-\uffff]/),r=r.current(),C.hasOwnProperty(r)?C[r]:"variable"):null}function d(r,
|
|||
|
h){for(var k,f=!1,v=!1;null!=(k=r.next());){if('"'===k&&!v){f=!0;break}v=!v&&"\\"===k}f&&!v&&(h.tokenize=t);return"string"}function w(r,h){for(var k,f;0<h.commentLevel&&null!=(f=r.next());)"("===k&&"*"===f&&h.commentLevel++,"*"===k&&")"===f&&h.commentLevel--,k=f;0>=h.commentLevel&&(h.tokenize=t);return"comment"}function B(r,h){for(var k,f;h.longString&&null!=(f=r.next());)"|"===k&&"}"===f&&(h.longString=!1),k=f;h.longString||(h.tokenize=t);return"string"}var C={as:"keyword","do":"keyword","else":"keyword",
|
|||
|
end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword","if":"keyword","in":"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword","while":"keyword","with":"keyword"};R=A.extraWords||{};for(var a in R)R.hasOwnProperty(a)&&(C[a]=A.extraWords[a]);a=[];for(var K in C)a.push(K);q.registerHelper("hintWords","mllike",a);return{startState:function(){return{tokenize:t,commentLevel:0,longString:!1}},token:function(r,
|
|||
|
h){return r.eatSpace()?null:h.tokenize(r,h)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:A.slashComments?"//":null}});q.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword","class":"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword","function":"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword","new":"keyword",nonrec:"keyword",object:"keyword","private":"keyword",
|
|||
|
sig:"keyword",to:"keyword","try":"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin","true":"builtin","false":"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin","int":"type","float":"type",bool:"type","char":"type",string:"type",unit:"type",List:"builtin"}});q.defineMIME("text/x-fsharp",
|
|||
|
{name:"mllike",extraWords:{"abstract":"keyword",assert:"keyword",base:"keyword",begin:"keyword","class":"keyword","default":"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword","finally":"keyword","for":"keyword","function":"keyword",global:"keyword",inherit:"keyword",inline:"keyword","interface":"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",
|
|||
|
namespace:"keyword","new":"keyword","null":"keyword",override:"keyword","private":"keyword","public":"keyword","return!":"keyword","return":"keyword",select:"keyword","static":"keyword",to:"keyword","try":"keyword",upcast:"keyword","use!":"keyword",use:"keyword","void":"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword","break":"keyword",checked:"keyword",component:"keyword","const":"keyword",constraint:"keyword",constructor:"keyword","continue":"keyword",eager:"keyword",
|
|||
|
event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword","protected":"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword","volatile":"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin","int":"builtin",string:"builtin",not:"builtin","true":"builtin","false":"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0});q.defineMIME("text/x-sml",
|
|||
|
{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword","case":"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword","true":"keyword","false":"keyword","int":"builtin",real:"builtin",string:"builtin","char":"builtin",bool:"builtin"},slashComments:!0})})};
|
|||
|
shadow$provide[520]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMode("modelica",function(A,t){function d(u,m){u.skipToEnd();m.tokenize=null;return"comment"}function w(u,m){for(var l=!1,J;J=u.next();){if(l&&"/"==J){m.tokenize=null;break}l="*"==J}return"comment"}function B(u,
|
|||
|
m){for(var l=!1,J;null!=(J=u.next());){if('"'==J&&!l){m.tokenize=null;m.sol=!1;break}l=!l&&"\\"==J}return"string"}function C(u,m){for(u.eatWhile(L);u.eat(L)||u.eat(z););u=u.current();!m.sol||"package"!=u&&"model"!=u&&"when"!=u&&"connector"!=u?m.sol&&"end"==u&&0<m.level&&m.level--:m.level++;m.tokenize=null;m.sol=!1;return h.propertyIsEnumerable(u)?"keyword":k.propertyIsEnumerable(u)?"builtin":f.propertyIsEnumerable(u)?"atom":"variable"}function a(u,m){for(;u.eat(/[^']/););m.tokenize=null;m.sol=!1;
|
|||
|
return u.eat("'")?"variable":"error"}function K(u,m){u.eatWhile(L);u.eat(".")&&u.eatWhile(L);if(u.eat("e")||u.eat("E"))u.eat("-")||u.eat("+"),u.eatWhile(L);m.tokenize=null;m.sol=!1;return"number"}var r=A.indentUnit,h=t.keywords||{},k=t.builtin||{},f=t.atoms||{},v=/[;=\(:\),{}.*<>+\-\/^\[\]]/,x=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,L=/[0-9]/,z=/[_a-zA-Z]/;return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(u,m){if(null!=m.tokenize)return m.tokenize(u,m);u.sol()&&
|
|||
|
(m.sol=!0);if(u.eatSpace())return m.tokenize=null;var l=u.next();if("/"==l&&u.eat("/"))m.tokenize=d;else if("/"==l&&u.eat("*"))m.tokenize=w;else{if(x.test(l+u.peek()))return u.next(),m.tokenize=null,"operator";if(v.test(l))return m.tokenize=null,"operator";if(z.test(l))m.tokenize=C;else if("'"==l&&u.peek()&&"'"!=u.peek())m.tokenize=a;else if('"'==l)m.tokenize=B;else if(L.test(l))m.tokenize=K;else return m.tokenize=null,"error"}return m.tokenize(u,m)},indent:function(u,m){if(null!=u.tokenize)return q.Pass;
|
|||
|
u=u.level;/(algorithm)/.test(m)&&u--;/(equation)/.test(m)&&u--;/(initial algorithm)/.test(m)&&u--;/(initial equation)/.test(m)&&u--;/(end)/.test(m)&&u--;return 0<u?r*u:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});(function(A,t){function d(C){if(C)for(var a in C)C.hasOwnProperty(a)&&w.push(a)}"string"==typeof A&&(A=[A]);var w=[];d(t.keywords);d(t.builtin);d(t.atoms);w.length&&(t.helperType=A[0],q.registerHelper("hintWords",A[0],w));for(var B=0;B<A.length;++B)q.defineMIME(A[B],
|
|||
|
t)})(["text/x-modelica"],{name:"modelica",keywords:R("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),builtin:R("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),
|
|||
|
atoms:R("Real Boolean Integer String")})})};
|
|||
|
shadow$provide[521]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(C){return new RegExp("\\b("+C.join("|")+")\\b","i")}function A(C){return new RegExp("("+C.join("|")+")","i")}function t(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function d(C){return{inComment:C.inComment,inString:C.inString,inAttributeList:C.inAttributeList,inScript:C.inScript}}
|
|||
|
function w(C){return function(a,K){if(a.match(A(C.brackets),!0,!0))return"bracket";if(!K.inComment){if(a.match(/\/\*[^\*\/]*/,!0,!0))return K.inComment=!0,"comment";if(a.match(A(C.singlecomment),!0,!0))return a.skipToEnd(),"comment"}if(K.inComment)return a.match(/[^\*\/]*\*\//,!0,!0)?K.inComment=!1:a.skipToEnd(),"comment";if(!K.inString&&a.match(/"(\\"|[^"])*/,!0,!0))return K.inString=!0,"string";if(K.inString)return a.match(/[^"]*"/,!0,!0)?K.inString=!1:a.skipToEnd(),"string";if(C.keywords&&a.match(R(C.keywords),
|
|||
|
!0,!0)||a.match(R(C.options),!0,!0)||a.match(R(C.arcsWords),!0,!0)||a.match(A(C.arcsOthers),!0,!0))return"keyword";if(C.operators&&a.match(A(C.operators),!0,!0))return"operator";if(C.constants&&a.match(A(C.constants),!0,!0))return"variable";if(!C.inAttributeList&&C.attributes&&a.match(/\[/,!0,!0))return C.inAttributeList=!0,"bracket";if(C.inAttributeList){if(null!==C.attributes&&a.match(R(C.attributes),!0,!0))return"attribute";if(a.match(/]/,!0,!0))return C.inAttributeList=!1,"bracket"}a.next();return"base"}}
|
|||
|
var B={mscgen:{keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:"label idurl id url linecolor linecolour textcolor textcolour textbgcolor textbgcolour arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour arcskip".split(" "),brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:"\\|\\|\\| \\.\\.\\. --- -- \x3c-\x3e \x3d\x3d \x3c\x3c\x3d\x3e\x3e \x3c\x3d\x3e \\.\\. \x3c\x3c\x3e\x3e :: \x3c:\x3e -\x3e \x3d\x3e\x3e \x3d\x3e \x3e\x3e :\x3e \x3c- \x3c\x3c\x3d \x3c\x3d \x3c\x3c \x3c: x- -x".split(" "),
|
|||
|
singlecomment:["//","#"],operators:["\x3d"]},xu:{keywords:["msc","xu"],options:"hscale width arcgradient wordwraparcs wordwrapentities watermark".split(" "),constants:["true","false","on","off","auto"],attributes:"label idurl id url linecolor linecolour textcolor textcolour textbgcolor textbgcolour arclinecolor arclinecolour arctextcolor arctextcolour arctextbgcolor arctextbgcolour arcskip title deactivate activate activation".split(" "),brackets:["\\{","\\}"],arcsWords:"note abox rbox box alt else opt break par seq strict neg critical ignore consider assert loop ref exc".split(" "),
|
|||
|
arcsOthers:"\\|\\|\\| \\.\\.\\. --- -- \x3c-\x3e \x3d\x3d \x3c\x3c\x3d\x3e\x3e \x3c\x3d\x3e \\.\\. \x3c\x3c\x3e\x3e :: \x3c:\x3e -\x3e \x3d\x3e\x3e \x3d\x3e \x3e\x3e :\x3e \x3c- \x3c\x3c\x3d \x3c\x3d \x3c\x3c \x3c: x- -x".split(" "),singlecomment:["//","#"],operators:["\x3d"]},msgenny:{keywords:null,options:"hscale width arcgradient wordwraparcs wordwrapentities watermark".split(" "),constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:"note abox rbox box alt else opt break par seq strict neg critical ignore consider assert loop ref exc".split(" "),
|
|||
|
arcsOthers:"\\|\\|\\| \\.\\.\\. --- -- \x3c-\x3e \x3d\x3d \x3c\x3c\x3d\x3e\x3e \x3c\x3d\x3e \\.\\. \x3c\x3c\x3e\x3e :: \x3c:\x3e -\x3e \x3d\x3e\x3e \x3d\x3e \x3e\x3e :\x3e \x3c- \x3c\x3c\x3d \x3c\x3d \x3c\x3c \x3c: x- -x".split(" "),singlecomment:["//","#"],operators:["\x3d"]}};q.defineMode("mscgen",function(C,a){return{startState:t,copyState:d,token:w(B[a&&a.language||"mscgen"]),lineComment:"#",blockCommentStart:"/*",blockCommentEnd:"*/"}});q.defineMIME("text/x-mscgen","mscgen");q.defineMIME("text/x-xu",
|
|||
|
{name:"mscgen",language:"xu"});q.defineMIME("text/x-msgenny",{name:"mscgen",language:"msgenny"})})};
|
|||
|
shadow$provide[522]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("mumps",function(){function R(r){return new RegExp("^(("+r.join(")|(")+"))\\b","i")}function A(r,h){r.sol()&&(h.label=!0,h.commandMode=0);var k=r.peek();if(" "==k||"\t"==k)if(h.label=!1,0==h.commandMode)h.commandMode=1;else{if(0>h.commandMode||2==h.commandMode)h.commandMode=0}else"."!=
|
|||
|
k&&0<h.commandMode&&(h.commandMode=":"==k?-1:2);if("("===k||"\t"===k)h.label=!1;if(";"===k)return r.skipToEnd(),"comment";if(r.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))return"number";if('"'==k){if(r.skipTo('"'))return r.next(),"string";r.skipToEnd();return"error"}if(r.match(d)||r.match(t))return"operator";if(r.match(w))return null;if(B.test(k))return r.next(),"bracket";if(0<h.commandMode&&r.match(K))return"variable-2";if(r.match(a))return"builtin";if(r.match(C))return"variable";if("$"===k||"^"===
|
|||
|
k)return r.next(),"builtin";if("@"===k)return r.next(),"string-2";if(/[\w%]/.test(k))return r.eatWhile(/[\w%]/),"variable";r.next();return"error"}var t=RegExp("^[\\+\\-\\*/\x26#!_?\\\\\x3c\x3e\x3d\\'\\[\\]]"),d=RegExp("^(('\x3d)|(\x3c\x3d)|(\x3e\x3d)|('\x3e)|('\x3c)|([[)|(]])|(^$))"),w=RegExp("^[\\.,:]"),B=RegExp("[()]"),C=RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=R("\\$ascii \\$char \\$data \\$ecode \\$estack \\$etrap \\$extract \\$find \\$fnumber \\$get \\$horolog \\$io \\$increment \\$job \\$justify \\$length \\$name \\$next \\$order \\$piece \\$qlength \\$qsubscript \\$query \\$quit \\$random \\$reverse \\$select \\$stack \\$test \\$text \\$translate \\$view \\$x \\$y \\$a \\$c \\$d \\$e \\$ec \\$es \\$et \\$f \\$fn \\$g \\$h \\$i \\$j \\$l \\$n \\$na \\$o \\$p \\$q \\$ql \\$qs \\$r \\$re \\$s \\$st \\$t \\$tr \\$v \\$z".split(" ")),
|
|||
|
K=R("break close do else for goto halt hang if job kill lock merge new open quit read set tcommit trollback tstart use view write xecute b c d e f g h i j k l m n o q r s tc tro ts u v w x".split(" "));return{startState:function(){return{label:!1,commandMode:0}},token:function(r,h){r=A(r,h);return h.label?"tag":r}}});q.defineMIME("text/x-mumps","mumps")})};
|
|||
|
shadow$provide[523]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("nginx",function(R){function A(f){var v={};f=f.split(" ");for(var x=0;x<f.length;++x)v[f[x]]=!0;return v}function t(f,v){k=v;return f}function d(f,v){f.eatWhile(/[\w\$_]/);var x=f.current();if(a.propertyIsEnumerable(x))return"keyword";if(K.propertyIsEnumerable(x))return"variable-2";if(r.propertyIsEnumerable(x))return"string-2";
|
|||
|
x=f.next();if("@"==x)return f.eatWhile(/[\w\\\-]/),t("meta",f.current());if("/"==x&&f.eat("*"))return v.tokenize=w,w(f,v);if("\x3c"==x&&f.eat("!"))return v.tokenize=B,B(f,v);if("\x3d"==x)t(null,"compare");else{if("~"!=x&&"|"!=x||!f.eat("\x3d")){if('"'==x||"'"==x)return v.tokenize=C(x),v.tokenize(f,v);if("#"==x)return f.skipToEnd(),t("comment","comment");if("!"==x)return f.match(/^\s*\w*/),t("keyword","important");if(/\d/.test(x))return f.eatWhile(/[\w.%]/),t("number","unit");if(/[,.+>*\/]/.test(x))return t(null,
|
|||
|
"select-op");if(/[;{}:\[\]]/.test(x))return t(null,x);f.eatWhile(/[\w\\\-]/);return t("variable","variable")}return t(null,"compare")}}function w(f,v){for(var x=!1,L;null!=(L=f.next());){if(x&&"/"==L){v.tokenize=d;break}x="*"==L}return t("comment","comment")}function B(f,v){for(var x=0,L;null!=(L=f.next());){if(2<=x&&"\x3e"==L){v.tokenize=d;break}x="-"==L?x+1:0}return t("comment","comment")}function C(f){return function(v,x){for(var L=!1,z;null!=(z=v.next())&&(z!=f||L);)L=!L&&"\\"==z;L||(x.tokenize=
|
|||
|
d);return t("string","string")}}var a=A("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size
|
|||
|
K=A("http mail events server types location upstream charset_map limit_except if geo map"),r=A("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),h=R.indentUnit,k;return{startState:function(f){return{tokenize:d,baseIndent:f||0,stack:[]}},token:function(f,v){if(f.eatSpace())return null;k=null;f=v.tokenize(f,v);var x=v.stack[v.stack.length-1];"hash"==k&&"rule"==x?f="atom":"variable"==f&&("rule"==x?f="number":x&&"@media{"!=x||(f="tag"));"rule"==x&&/^[\{\};]$/.test(k)&&
|
|||
|
v.stack.pop();"{"==k?"@media"==x?v.stack[v.stack.length-1]="@media{":v.stack.push("{"):"}"==k?v.stack.pop():"@media"==k?v.stack.push("@media"):"{"==x&&"comment"!=k&&v.stack.push("rule");return f},indent:function(f,v){var x=f.stack.length;/^\}/.test(v)&&(x-="rule"==f.stack[f.stack.length-1]?2:1);return f.baseIndent+x*h},electricChars:"}"}});q.defineMIME("text/x-nginx-conf","nginx")})};
|
|||
|
shadow$provide[524]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],q):q(CodeMirror)})(function(q){q.defineSimpleMode("nsis",{start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:!(include|addincludedir|addplugindir|appendfile|cd|delfile|echo|error|execute|packhdr|pragma|finalize|getdllversion|gettlbversion|system|tempfile|warning|verbose|define|undef|insertmacro|macro|macroend|makensis|searchparse|searchreplace))\b/,
|
|||
|
token:"keyword"},{regex:/^\s*(?:!(if(?:n?def)?|ifmacron?def|macro))\b/,token:"keyword",indent:!0},{regex:/^\s*(?:!(else|endif|macroend))\b/,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/,
|
|||
|
token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/,
|
|||
|
token:"atom"},{regex:/\b(?:admin|all|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|zlib)\b/,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/,
|
|||
|
token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/,
|
|||
|
token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/,token:"variable-2",dedent:!0},{regex:/\$\{(?:RunningX64)\}/,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/,token:"variable-2",dedent:!0},{regex:/(#|;).*/,token:"comment"},
|
|||
|
{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w+/,token:"variable"},{regex:/\${[\w\.:-]+}/,token:"variable-2"},{regex:/\$\([\w\.:-]+\)/,token:"variable-3"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{electricInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:["#",";"]}});
|
|||
|
q.defineMIME("text/x-nsis","nsis")})};
|
|||
|
shadow$provide[525]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("ntriples",function(){function R(t,d){var w=t.location;t.location=w==A.PRE_SUBJECT&&"\x3c"==d?A.WRITING_SUB_URI:w==A.PRE_SUBJECT&&"_"==d?A.WRITING_BNODE_URI:w==A.PRE_PRED&&"\x3c"==d?A.WRITING_PRED_URI:w==A.PRE_OBJ&&"\x3c"==d?A.WRITING_OBJ_URI:w==A.PRE_OBJ&&"_"==d?A.WRITING_OBJ_BNODE:
|
|||
|
w==A.PRE_OBJ&&'"'==d?A.WRITING_OBJ_LITERAL:w==A.WRITING_SUB_URI&&"\x3e"==d?A.PRE_PRED:w==A.WRITING_BNODE_URI&&" "==d?A.PRE_PRED:w==A.WRITING_PRED_URI&&"\x3e"==d?A.PRE_OBJ:w==A.WRITING_OBJ_URI&&"\x3e"==d?A.POST_OBJ:w==A.WRITING_OBJ_BNODE&&" "==d?A.POST_OBJ:w==A.WRITING_OBJ_LITERAL&&'"'==d?A.POST_OBJ:w==A.WRITING_LIT_LANG&&" "==d?A.POST_OBJ:w==A.WRITING_LIT_TYPE&&"\x3e"==d?A.POST_OBJ:w==A.WRITING_OBJ_LITERAL&&"@"==d?A.WRITING_LIT_LANG:w==A.WRITING_OBJ_LITERAL&&"^"==d?A.WRITING_LIT_TYPE:" "!=d||w!=A.PRE_SUBJECT&&
|
|||
|
w!=A.PRE_PRED&&w!=A.PRE_OBJ&&w!=A.POST_OBJ?w==A.POST_OBJ&&"."==d?A.PRE_SUBJECT:A.ERROR:w}var A={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};return{startState:function(){return{location:A.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,d){var w=t.next();if("\x3c"==w){R(d,w);var B="";t.eatWhile(function(h){return"#"!=
|
|||
|
h&&"\x3e"!=h?(B+=h,!0):!1});d.uris.push(B);if(t.match("#",!1))return"variable";t.next();R(d,"\x3e");return"variable"}if("#"==w){var C="";t.eatWhile(function(h){return"\x3e"!=h&&" "!=h?(C+=h,!0):!1});d.anchors.push(C);return"variable-2"}if("\x3e"==w)return R(d,"\x3e"),"variable";if("_"==w){R(d,w);var a="";t.eatWhile(function(h){return" "!=h?(a+=h,!0):!1});d.bnodes.push(a);t.next();R(d," ");return"builtin"}if('"'==w)return R(d,w),t.eatWhile(function(h){return'"'!=h}),t.next(),"@"!=t.peek()&&"^"!=t.peek()&&
|
|||
|
R(d,'"'),"string";if("@"==w){R(d,"@");var K="";t.eatWhile(function(h){return" "!=h?(K+=h,!0):!1});d.langs.push(K);t.next();R(d," ");return"string-2"}if("^"==w){t.next();R(d,"^");var r="";t.eatWhile(function(h){return"\x3e"!=h?(r+=h,!0):!1});d.types.push(r);t.next();R(d,"\x3e");return"variable"}" "==w&&R(d,w);"."==w&&R(d,w)}}});q.defineMIME("application/n-triples","ntriples");q.defineMIME("application/n-quads","ntriples");q.defineMIME("text/n-triples","ntriples")})};
|
|||
|
shadow$provide[526]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("octave",function(){function R(v){return new RegExp("^(("+v.join(")|(")+"))\\b")}function A(v,x){if(!v.sol()&&"'"===v.peek())return v.next(),x.tokenize=d,"operator";x.tokenize=d;return d(v,x)}function t(v,x){if(v.match(/^.*%}/))return x.tokenize=d,"comment";v.skipToEnd();return"comment"}
|
|||
|
function d(v,x){if(v.eatSpace())return null;if(v.match("%{"))return x.tokenize=t,v.skipToEnd(),"comment";if(v.match(/^[%#]/))return v.skipToEnd(),"comment";if(v.match(/^[0-9\.+-]/,!1)){if(v.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return v.tokenize=d,"number";if(v.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||v.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(v.match(R(["nan","NaN","inf","Inf"])))return"number";var L=v.match(/^"(?:[^"]|"")*("|$)/)||v.match(/^'(?:[^']|'')*('|$)/);if(L)return L[1]?
|
|||
|
"string":"string error";if(v.match(f))return"keyword";if(v.match(k))return"builtin";if(v.match(h))return"variable";if(v.match(w)||v.match(C))return"operator";if(v.match(B)||v.match(a)||v.match(K))return null;if(v.match(r))return x.tokenize=A,null;v.next();return"error"}var w=RegExp("^[\\+\\-\\*/\x26|\\^~\x3c\x3e!@'\\\\]"),B=RegExp("^[\\(\\[\\{\\},:\x3d;\\.]"),C=RegExp("^((\x3d\x3d)|(~\x3d)|(\x3c\x3d)|(\x3e\x3d)|(\x3c\x3c)|(\x3e\x3e)|(\\.[\\+\\-\\*/\\^\\\\]))"),a=RegExp("^((!\x3d)|(\\+\x3d)|(\\-\x3d)|(\\*\x3d)|(/\x3d)|(\x26\x3d)|(\\|\x3d)|(\\^\x3d))"),
|
|||
|
K=RegExp("^((\x3e\x3e\x3d)|(\x3c\x3c\x3d))"),r=RegExp("^[\\]\\)]"),h=RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),k=R("error eval function abs acos atan asin cos cosh exp log prod sum log10 max min sign sin sinh sqrt tan reshape break zeros default margin round ones rand syn ceil floor size clear zeros eye mean std cov det eig inv norm rank trace expm logm sqrtm linspace plot title xlabel ylabel legend text grid meshgrid mesh num2str fft ifft arrayfun cellfun input fliplr flipud ismember".split(" ")),
|
|||
|
f=R("return case switch else elseif end endif endfunction if otherwise do for while try catch classdef properties events methods global persistent endfor endwhile printf sprintf disp until continue pkg".split(" "));return{startState:function(){return{tokenize:d}},token:function(v,x){v=x.tokenize(v,x);if("number"===v||"variable"===v)x.tokenize=A;return v},lineComment:"%",fold:"indent"}});q.defineMIME("text/x-octave","octave")})};
|
|||
|
shadow$provide[527]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("oz",function(R){function A(m){return new RegExp("^(("+m.join(")|(")+"))\\b")}function t(m,l){if(m.eatSpace())return null;if(m.match(/[{}]/))return"bracket";if(m.match(/(\[])/))return"keyword";if(m.match(h)||m.match(r))return"operator";if(m.match(v))return"atom";var J=m.match(L);if(J)return l.doInCurrentLine?
|
|||
|
l.doInCurrentLine=!1:l.currentIndent++,"proc"==J[0]||"fun"==J[0]?l.tokenize=B:"class"==J[0]?l.tokenize=d:"meth"==J[0]&&(l.tokenize=w),"keyword";if(m.match(z)||m.match(x))return"keyword";if(m.match(u))return l.currentIndent--,"keyword";J=m.next();if('"'==J||"'"==J)return l.tokenize=a(J),l.tokenize(m,l);if(/[~\d]/.test(J)){if("~"==J){if(!/^[0-9]/.test(m.peek()))return null;if("0"==m.next()&&m.match(/^[xX][0-9a-fA-F]+/)||m.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==J&&m.match(/^[xX][0-9a-fA-F]+/)||
|
|||
|
m.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}if("%"==J)return m.skipToEnd(),"comment";if("/"==J&&m.eat("*"))return l.tokenize=C,C(m,l);if(K.test(J))return"operator";m.eatWhile(/\w/);return"variable"}function d(m,l){if(m.eatSpace())return null;m.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);l.tokenize=t;return"variable-3"}function w(m,l){if(m.eatSpace())return null;m.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);l.tokenize=t;return"def"}function B(m,l){if(m.eatSpace())return null;if(!l.hasPassedFirstStage&&
|
|||
|
m.eat("{"))return l.hasPassedFirstStage=!0,"bracket";if(l.hasPassedFirstStage)return m.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),l.hasPassedFirstStage=!1,l.tokenize=t,"def";l.tokenize=t;return null}function C(m,l){for(var J=!1,X;X=m.next();){if("/"==X&&J){l.tokenize=t;break}J="*"==X}return"comment"}function a(m){return function(l,J){for(var X=!1,F,ha=!1;null!=(F=l.next());){if(F==m&&!X){ha=!0;break}X=!X&&"\\"==F}if(ha||!X)J.tokenize=t;return"string"}}var K=/[\^@!\|<>#~\.\*\-\+\\/,=]/,r=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,
|
|||
|
h=/(:::)|(\.\.\.)|(=<:)|(>=:)/,k="in then else of elseof elsecase elseif catch finally with require prepare import export define do".split(" "),f=["end"],v=A(["true","false","nil","unit"]),x=A("andthen at attr declare feat from lex mod div mode orelse parser prod prop scanner self syn token".split(" ")),L=A("local proc fun case class if cond or dis choice not thread try raise lock for suchthat meth functor".split(" ")),z=A(k),u=A(f);return{startState:function(){return{tokenize:t,currentIndent:0,doInCurrentLine:!1,
|
|||
|
hasPassedFirstStage:!1}},token:function(m,l){m.sol()&&(l.doInCurrentLine=0);return l.tokenize(m,l)},indent:function(m,l){l=l.replace(/^\s+|\s+$/g,"");return l.match(u)||l.match(z)||l.match(/(\[])/)?R.indentUnit*(m.currentIndent-1):0>m.currentIndent?0:m.currentIndent*R.indentUnit},fold:"indent",electricInput:function(){var m=k.concat(f);return new RegExp("[\\[\\]]|("+m.join("|")+")$")}(),lineComment:"%",blockCommentStart:"/*",blockCommentEnd:"*/"}});q.defineMIME("text/x-oz","oz")})};
|
|||
|
shadow$provide[528]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("pascal",function(){function R(a,K){var r=a.next();if("#"==r&&K.startOfLine)return a.skipToEnd(),"meta";if('"'==r||"'"==r)return K.tokenize=A(r),K.tokenize(a,K);if("("==r&&a.eat("*"))return K.tokenize=t,t(a,K);if("{"==r)return K.tokenize=d,d(a,K);if(/[\[\]\(\),;:\.]/.test(r))return null;
|
|||
|
if(/\d/.test(r))return a.eatWhile(/[\w\.]/),"number";if("/"==r&&a.eat("/"))return a.skipToEnd(),"comment";if(C.test(r))return a.eatWhile(C),"operator";a.eatWhile(/[\w\$_]/);a=a.current();return w.propertyIsEnumerable(a)?"keyword":B.propertyIsEnumerable(a)?"atom":"variable"}function A(a){return function(K,r){for(var h=!1,k,f=!1;null!=(k=K.next());){if(k==a&&!h){f=!0;break}h=!h&&"\\"==k}if(f||!h)r.tokenize=null;return"string"}}function t(a,K){for(var r=!1,h;h=a.next();){if(")"==h&&r){K.tokenize=null;
|
|||
|
break}r="*"==h}return"comment"}function d(a,K){for(var r;r=a.next();)if("}"==r){K.tokenize=null;break}return"comment"}var w=function(a){var K={};a=a.split(" ");for(var r=0;r<a.length;++r)K[a[r]]=!0;return K}("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),
|
|||
|
B={"null":!0},C=/[+\-*&%=<>!?|\/]/;return{startState:function(){return{tokenize:null}},token:function(a,K){return a.eatSpace()?null:(K.tokenize||R)(a,K)},electricChars:"{}"}});q.defineMIME("text/x-pascal","pascal")})};
|
|||
|
shadow$provide[529]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(477)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../javascript/javascript"],q):q(CodeMirror)})(function(q){q.defineMode("pegjs",function(R){var A=q.getMode(R,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,d){!t||d.inString||d.inComment||'"'!=t.peek()&&"'"!=
|
|||
|
t.peek()||(d.stringType=t.peek(),t.next(),d.inString=!0);d.inString||d.inComment||!t.match(/^\/\*/)||(d.inComment=!0);if(d.inString){for(;d.inString&&!t.eol();)t.peek()===d.stringType?(t.next(),d.inString=!1):"\\"===t.peek()?(t.next(),t.next()):t.match(/^.[^\\"']*/);return d.lhs?"property string":"string"}if(d.inComment){for(;d.inComment&&!t.eol();)t.match(/\*\//)?d.inComment=!1:t.match(/^.[^\*]*/);return"comment"}if(d.inCharacterClass)for(;d.inCharacterClass&&!t.eol();)t.match(/^[^\]\\]+/)||t.match(/^\\./)||
|
|||
|
(d.inCharacterClass=!1);else{if("["===t.peek())return t.next(),d.inCharacterClass=!0,"bracket";if(t.match(/^\/\//))return t.skipToEnd(),"comment";if(d.braced||"{"===t.peek()){null===d.localState&&(d.localState=q.startState(A));var w=A.token(t,d.localState);t=t.current();if(!w)for(var B=0;B<t.length;B++)"{"===t[B]?d.braced++:"}"===t[B]&&d.braced--;return w}if(t.match(/^[a-zA-Z_][a-zA-Z0-9_]*/))return":"===t.peek()?"variable":"variable-2";if(-1!=["[","]","(",")"].indexOf(t.peek()))return t.next(),"bracket";
|
|||
|
t.eatSpace()||t.next()}return null}}},"javascript")})};
|
|||
|
shadow$provide[530]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(w,B){return w.string.charAt(w.pos+(B||0))}function A(w,B){if(B){var C=w.pos-B;return w.string.substr(0<=C?C:0,B)}return w.string.substr(0,w.pos-1)}function t(w,B){var C=w.string.length,a=C-w.pos+1;return w.string.substr(w.pos,B&&B<C?B:a)}function d(w,B){B=w.pos+B;var C;0>=B?w.pos=0:B>=
|
|||
|
(C=w.string.length-1)?w.pos=C:w.pos=B}q.defineMode("perl",function(){function w(r,h,k,f,v){h.chain=null;h.style=null;h.tail=null;h.tokenize=function(x,L){for(var z=!1,u,m=0;u=x.next();){if(u===k[m]&&!z){void 0!==k[++m]?(L.chain=k[m],L.style=f,L.tail=v):v&&x.eatWhile(v);L.tokenize=C;break}z=!z&&"\\"==u}return f};return h.tokenize(r,h)}function B(r,h,k){h.tokenize=function(f,v){f.string==k&&(v.tokenize=C);f.skipToEnd();return"string"};return h.tokenize(r,h)}function C(r,h){if(r.eatSpace())return null;
|
|||
|
if(h.chain)return w(r,h,h.chain,h.style,h.tail);if(r.match(/^\-?[\d\.]/,!1)&&r.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(r.match(/^<<(?=\w)/))return r.eatWhile(/\w/),B(r,h,r.current().substr(2));if(r.sol()&&r.match(/^=item(?!\w)/))return B(r,h,"\x3dcut");var k=r.next();if('"'==k||"'"==k){if(A(r,3)=="\x3c\x3c"+k){var f=r.pos;r.eatWhile(/\w/);var v=r.current().substr(1);if(v&&r.eat(k))return B(r,h,v);r.pos=f}return w(r,h,[k],"string")}if("q"==
|
|||
|
k&&(v=R(r,-2),!v||!/\w/.test(v)))if(v=R(r,0),"x"==v){v=R(r,1);if("("==v)return d(r,2),w(r,h,[")"],"string-2",K);if("["==v)return d(r,2),w(r,h,["]"],"string-2",K);if("{"==v)return d(r,2),w(r,h,["}"],"string-2",K);if("\x3c"==v)return d(r,2),w(r,h,["\x3e"],"string-2",K);if(/[\^'"!~\/]/.test(v))return d(r,1),w(r,h,[r.eat(v)],"string-2",K)}else if("q"==v){v=R(r,1);if("("==v)return d(r,2),w(r,h,[")"],"string");if("["==v)return d(r,2),w(r,h,["]"],"string");if("{"==v)return d(r,2),w(r,h,["}"],"string");if("\x3c"==
|
|||
|
v)return d(r,2),w(r,h,["\x3e"],"string");if(/[\^'"!~\/]/.test(v))return d(r,1),w(r,h,[r.eat(v)],"string")}else if("w"==v){v=R(r,1);if("("==v)return d(r,2),w(r,h,[")"],"bracket");if("["==v)return d(r,2),w(r,h,["]"],"bracket");if("{"==v)return d(r,2),w(r,h,["}"],"bracket");if("\x3c"==v)return d(r,2),w(r,h,["\x3e"],"bracket");if(/[\^'"!~\/]/.test(v))return d(r,1),w(r,h,[r.eat(v)],"bracket")}else if("r"==v){v=R(r,1);if("("==v)return d(r,2),w(r,h,[")"],"string-2",K);if("["==v)return d(r,2),w(r,h,["]"],
|
|||
|
"string-2",K);if("{"==v)return d(r,2),w(r,h,["}"],"string-2",K);if("\x3c"==v)return d(r,2),w(r,h,["\x3e"],"string-2",K);if(/[\^'"!~\/]/.test(v))return d(r,1),w(r,h,[r.eat(v)],"string-2",K)}else if(/[\^'"!~\/(\[{<]/.test(v)){if("("==v)return d(r,1),w(r,h,[")"],"string");if("["==v)return d(r,1),w(r,h,["]"],"string");if("{"==v)return d(r,1),w(r,h,["}"],"string");if("\x3c"==v)return d(r,1),w(r,h,["\x3e"],"string");if(/[\^'"!~\/]/.test(v))return w(r,h,[r.eat(v)],"string")}if("m"==k&&(v=R(r,-2),!v||!/\w/.test(v))&&
|
|||
|
(v=r.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(v))return w(r,h,[v],"string-2",K);if("("==v)return w(r,h,[")"],"string-2",K);if("["==v)return w(r,h,["]"],"string-2",K);if("{"==v)return w(r,h,["}"],"string-2",K);if("\x3c"==v)return w(r,h,["\x3e"],"string-2",K)}if("s"==k&&(v=/[\/>\]})\w]/.test(R(r,-2)),!v&&(v=r.eat(/[(\[{<\^'"!~\/]/)))||"y"==k&&(v=/[\/>\]})\w]/.test(R(r,-2)),!v&&(v=r.eat(/[(\[{<\^'"!~\/]/)))||"t"==k&&(v=/[\/>\]})\w]/.test(R(r,-2)),!v&&(v=r.eat("r")))&&(v=r.eat(/[(\[{<\^'"!~\/]/)))return"["==
|
|||
|
v?w(r,h,["]","]"],"string-2",K):"{"==v?w(r,h,["}","}"],"string-2",K):"\x3c"==v?w(r,h,["\x3e","\x3e"],"string-2",K):"("==v?w(r,h,[")",")"],"string-2",K):w(r,h,[v,v],"string-2",K);if("`"==k)return w(r,h,[k],"variable-2");if("/"==k)return/~\s*$/.test(A(r))?w(r,h,[k],"string-2",K):"operator";if("$"==k){f=r.pos;if(r.eatWhile(/\d/)||r.eat("{")&&r.eatWhile(/\d/)&&r.eat("}"))return"variable-2";r.pos=f}if(/[$@%]/.test(k)){f=r.pos;if(r.eat("^")&&r.eat(/[A-Z]/)||!/[@$%&]/.test(R(r,-2))&&r.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/))if(v=
|
|||
|
r.current(),a[v])return"variable-2";r.pos=f}if(/[$@%&]/.test(k)&&(r.eatWhile(/[\w$\[\]]/)||r.eat("{")&&r.eatWhile(/[\w$\[\]]/)&&r.eat("}")))return v=r.current(),a[v]?"variable-2":"variable";if("#"==k&&"$"!=R(r,-2))return r.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(k)){f=r.pos;r.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/);if(a[r.current()])return"operator";r.pos=f}if("_"==k&&1==r.pos){if("_END__"==t(r,6))return w(r,h,["\x00"],"comment");if("_DATA__"==t(r,7))return w(r,h,["\x00"],"variable-2");
|
|||
|
if("_C__"==t(r,7))return w(r,h,["\x00"],"string")}if(/\w/.test(k)){f=r.pos;if("{"==R(r,-2)&&("}"==R(r,0)||r.eatWhile(/\w/)&&"}"==R(r,0)))return"string";r.pos=f}if(/[A-Z]/.test(k))if(h=R(r,-2),f=r.pos,r.eatWhile(/[A-Z_]/),/[\da-z]/.test(R(r,0)))r.pos=f;else{v=a[r.current()];if(!v)return"meta";v[1]&&(v=v[0]);return":"!=h?1==v?"keyword":2==v?"def":3==v?"atom":4==v?"operator":5==v?"variable-2":"meta":"meta"}if(/[a-zA-Z_]/.test(k)){h=R(r,-2);r.eatWhile(/\w/);v=a[r.current()];if(!v)return"meta";v[1]&&(v=
|
|||
|
v[0]);return":"!=h?1==v?"keyword":2==v?"def":3==v?"atom":4==v?"operator":5==v?"variable-2":"meta":"meta"}return null}var a={"-\x3e":4,"++":4,"--":4,"**":4,"\x3d~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"\x3c\x3c":4,"\x3e\x3e":4,"\x3c":4,"\x3e":4,"\x3c\x3d":4,"\x3e\x3d":4,lt:4,gt:4,le:4,ge:4,"\x3d\x3d":4,"!\x3d":4,"\x3c\x3d\x3e":4,eq:4,ne:4,cmp:4,"~~":4,"\x26":4,"|":4,"^":4,"\x26\x26":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"\x3d":4,"+\x3d":4,"-\x3d":4,"*\x3d":4,",":4,"\x3d\x3e":4,"::":4,
|
|||
|
not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$\x3c":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$\x3e":5,
|
|||
|
$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$\x26":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,
|
|||
|
$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,
|
|||
|
"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$\x3d":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,
|
|||
|
"$[":5,$OLD_PERL_VERSION:5,"$]":5,"if":[1,1],elsif:[1,1],"else":[1,1],"while":[1,1],unless:[1,1],"for":[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,"break":1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,"continue":[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,"default":1,defined:1,"delete":1,die:1,"do":1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,
|
|||
|
exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,"goto":1,grep:1,hex:1,"import":1,index:1,"int":1,ioctl:1,join:1,keys:1,
|
|||
|
kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,"new":1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,"package":1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,"return":1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,
|
|||
|
say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,
|
|||
|
ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},K=/[goseximacplud]/;return{startState:function(){return{tokenize:C,chain:null,style:null,tail:null}},token:function(r,h){return(h.tokenize||C)(r,h)},lineComment:"#"}});q.registerHelper("wordChars","perl",/[\w$]/);q.defineMIME("text/x-perl","perl")})};
|
|||
|
shadow$provide[531]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(464)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],q):q(CodeMirror)})(function(q){function R(w){var B={};w=w.split(" ");for(var C=0;C<w.length;++C)B[w[C]]=!0;return B}function A(w,B,C){return 0==w.length?t(B):function(a,K){for(var r=w[0],h=0;h<r.length;h++)if(a.match(r[h][0]))return K.tokenize=A(w.slice(1),B),r[h][1];K.tokenize=
|
|||
|
t(B,C);return"string"}}function t(w,B){return function(C,a){if(!1!==B&&C.match("${",!1)||C.match("{$",!1))a.tokenize=null,C="string";else if(!1!==B&&C.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))C.match("[",!1)&&(a.tokenize=A([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],w,B)),C.match(/\->\w/,!1)&&(a.tokenize=A([[["-\x3e",null]],[[/[\w]+/,"variable"]]],w,B)),C="variable-2";else{for(var K=!1;!C.eol()&&(K||!1===B||!C.match("{$",!1)&&!C.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,
|
|||
|
!1));){if(!K&&C.match(w)){a.tokenize=null;a.tokStack.pop();a.tokStack.pop();break}K="\\"==C.next()&&!K}C="string"}return C}}q.registerHelper("hintWords","php","abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__ func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_
|
|||
|
q.registerHelper("wordChars","php",/[\w$]/);var d={name:"clike",helperType:"php",keywords:R("abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally"),
|
|||
|
blockKeywords:R("catch do else elseif for foreach if switch try while finally"),defKeywords:R("class function interface namespace trait"),atoms:R("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"),builtin:R("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_
|
|||
|
multiLineStrings:!0,hooks:{$:function(w){w.eatWhile(/[\w\$_]/);return"variable-2"},"\x3c":function(w,B){var C;if(C=w.match(/<<\s*/)){var a=w.eat(/['"]/);w.eatWhile(/[\w\.]/);C=w.current().slice(C[0].length+(a?2:1));a&&w.eat(a);if(C)return(B.tokStack||(B.tokStack=[])).push(C,0),B.tokenize=t(C,"'"!=a),"string"}return!1},"#":function(w){for(;!w.eol()&&!w.match("?\x3e",!1);)w.next();return"comment"},"/":function(w){if(w.eat("/")){for(;!w.eol()&&!w.match("?\x3e",!1);)w.next();return"comment"}return!1},
|
|||
|
'"':function(w,B){(B.tokStack||(B.tokStack=[])).push('"',0);B.tokenize=t('"');return"string"},"{":function(w,B){B.tokStack&&B.tokStack.length&&B.tokStack[B.tokStack.length-1]++;return!1},"}":function(w,B){B.tokStack&&0<B.tokStack.length&&!--B.tokStack[B.tokStack.length-1]&&(B.tokenize=t(B.tokStack[B.tokStack.length-2]));return!1}}};q.defineMode("php",function(w,B){var C=q.getMode(w,B&&B.htmlMode||"text/html"),a=q.getMode(w,d);return{startState:function(){var K=q.startState(C),r=B.startOpen?q.startState(a):
|
|||
|
null;return{html:K,php:r,curMode:B.startOpen?a:C,curState:B.startOpen?r:K,pending:null}},copyState:function(K){var r=q.copyState(C,K.html),h=K.php;h=h&&q.copyState(a,h);return{html:r,php:h,curMode:K.curMode,curState:K.curMode==C?r:h,pending:K.pending}},token:function(K,r){var h=r.curMode==a;K.sol()&&r.pending&&'"'!=r.pending&&"'"!=r.pending&&(r.pending=null);if(h)return h&&null==r.php.tokenize&&K.match("?\x3e")?(r.curMode=C,r.curState=r.html,r.php.context.prev||(r.php=null),"meta"):a.token(K,r.curState);
|
|||
|
if(K.match(/^<\?\w*/))return r.curMode=a,r.php||(r.php=q.startState(a,C.indent(r.html,"",""))),r.curState=r.php,"meta";if('"'==r.pending||"'"==r.pending){for(;!K.eol()&&K.next()!=r.pending;);h="string"}else r.pending&&K.pos<r.pending.end?(K.pos=r.pending.end,h=r.pending.style):h=C.token(K,r.curState);r.pending&&(r.pending=null);var k=K.current(),f=k.search(/<\?/),v;-1!=f&&("string"==h&&(v=k.match(/['"]$/))&&!/\?>/.test(k)?r.pending=v[0]:r.pending={end:K.pos,style:h},K.backUp(k.length-f));return h},
|
|||
|
indent:function(K,r,h){return K.curMode!=a&&/^\s*<\//.test(r)||K.curMode==a&&/^\?>/.test(r)?C.indent(K.html,r,h):K.curMode.indent(K.curState,r,h)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(K){return{state:K.curState,mode:K.curMode}}}},"htmlmixed","clike");q.defineMIME("application/x-httpd-php","php");q.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0});q.defineMIME("text/x-php",d)})};
|
|||
|
shadow$provide[532]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("pig",function(R,A){function t(h,k){for(var f=!1,v;v=h.next();){if("/"==v&&f){k.tokenize=w;break}f="*"==v}return"comment"}function d(h){return function(k,f){for(var v=!1,x,L=!1;null!=(x=k.next());){if(x==h&&!v){L=!0;break}v=!v&&"\\"==x}if(L||!v&&!K)f.tokenize=w;return"error"}}function w(h,
|
|||
|
k){var f=h.next();if('"'==f||"'"==f)return f=d(f),k.tokenize=f,f(h,k);if(/[\[\]{}\(\),;\.]/.test(f))return null;if(/\d/.test(f))return h.eatWhile(/[\w\.]/),"number";if("/"==f){if(h.eat("*"))return k.tokenize=t,t(h,k);h.eatWhile(r);return"operator"}if("-"==f){if(h.eat("-"))return h.skipToEnd(),"comment";h.eatWhile(r);return"operator"}if(r.test(f))return h.eatWhile(r),"operator";h.eatWhile(/[\w\$_]/);return B&&B.propertyIsEnumerable(h.current().toUpperCase())&&!h.eat(")")&&!h.eat(".")?"keyword":C&&
|
|||
|
C.propertyIsEnumerable(h.current().toUpperCase())?"variable-2":a&&a.propertyIsEnumerable(h.current().toUpperCase())?"variable-3":"variable"}var B=A.keywords,C=A.builtins,a=A.types,K=A.multiLineStrings,r=/[*+\-%<>=&?:\/!|]/;return{startState:function(){return{tokenize:w,startOfLine:!0}},token:function(h,k){return h.eatSpace()?null:k.tokenize(h,k)}}});(function(){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMIME("text/x-pig",{name:"pig",builtins:R("ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER "),
|
|||
|
keywords:R("VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP"),types:R("BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ")});q.registerHelper("hintWords","pig","ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP".split(" "))})()})};
|
|||
|
shadow$provide[533]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(window.CodeMirror)})(function(q){q.defineMode("powershell",function(){function R(u,m){m=m||{};var l=void 0!==m.prefix?m.prefix:"^";m=void 0!==m.suffix?m.suffix:"\\b";for(var J=0;J<u.length;J++)u[J]=u[J]instanceof RegExp?u[J].source:u[J].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$\x26");return new RegExp(l+"("+u.join("|")+")"+m,
|
|||
|
"i")}function A(u,m){var l=m.returnStack[m.returnStack.length-1];if(l&&l.shouldReturnFrom(m))return m.tokenize=l.tokenize,m.returnStack.pop(),m.tokenize(u,m);if(u.eatSpace())return null;if(u.eat("("))return m.bracketNesting+=1,"punctuation";if(u.eat(")"))return--m.bracketNesting,"punctuation";for(var J in z)if(u.match(z[J]))return J;l=u.next();if("'"===l){a:{for(;null!=(l=u.peek());)if(u.next(),"'"===l&&!u.eat("'")){m.tokenize=A;u="string";break a}u="error"}return u}if("$"===l)return K(u,m);if('"'===
|
|||
|
l)return t(u,m);if("\x3c"===l&&u.eat("#"))return m.tokenize=a,a(u,m);if("#"===l)return u.skipToEnd(),"comment";if("@"===l){if((l=u.eat(/["']/))&&u.eol())return m.tokenize=h,m.startQuote=l[0],h(u,m);if(!u.eol()){if(u.peek().match(/[({]/))return"punctuation";if(u.peek().match(k))return K(u,m)}}return"error"}function t(u,m){for(var l;null!=(l=u.peek());){if("$"===l)return m.tokenize=d,"string";u.next();if("`"===l)u.next();else if('"'===l&&!u.eat('"'))return m.tokenize=A,"string"}return"error"}function d(u,
|
|||
|
m){return C(u,m,t)}function w(u,m){m.tokenize=h;m.startQuote='"';return h(u,m)}function B(u,m){return C(u,m,w)}function C(u,m,l){if(u.match("$(")){var J=m.bracketNesting;m.returnStack.push({shouldReturnFrom:function(X){return X.bracketNesting===J},tokenize:l});m.tokenize=A;m.bracketNesting+=1;return"punctuation"}u.next();m.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:l});m.tokenize=K;return m.tokenize(u,m)}function a(u,m){for(var l=!1,J;null!=(J=u.next());){if(l&&"\x3e"==J){m.tokenize=
|
|||
|
A;break}l="#"===J}return"comment"}function K(u,m){var l=u.peek();if(u.eat("{"))return m.tokenize=r,r(u,m);if(void 0!=l&&l.match(k))return u.eatWhile(k),m.tokenize=A,"variable-2";m.tokenize=A;return"error"}function r(u,m){for(var l;null!=(l=u.next());)if("}"===l){m.tokenize=A;break}return"variable-2"}function h(u,m){var l=m.startQuote;if(u.sol()&&u.match(new RegExp(l+"@")))m.tokenize=A;else if('"'===l)for(;!u.eol();){l=u.peek();if("$"===l){m.tokenize=B;break}u.next();"`"===l&&u.next()}else u.skipToEnd();
|
|||
|
return"string"}var k=/[\w\-:]/,f=R([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:"(?\x3d[^A-Za-z\\d\\-_]|$)"}),v=R(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"});v=R([v,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""});
|
|||
|
var x=R([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
|
|||
|
/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
|
|||
|
/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,
|
|||
|
/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
|
|||
|
/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,
|
|||
|
/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
|
|||
|
/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),L=R([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
|
|||
|
/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""});x=R([/[A-Z]:|%|\?/i,x,L],{suffix:"(?\x3d[^A-Za-z\\d\\-_]|$)"});var z=
|
|||
|
{keyword:f,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:v,builtin:x,punctuation:/[\[\]{},;`\\\.]|@[({]/,identifier:/^[A-Za-z_][A-Za-z\-_\d]*\b/};return{startState:function(){return{returnStack:[],bracketNesting:0,tokenize:A}},token:function(u,m){return m.tokenize(u,m)},blockCommentStart:"\x3c#",blockCommentEnd:"#\x3e",lineComment:"#",fold:"brace"}});q.defineMIME("application/x-powershell","powershell")})};
|
|||
|
shadow$provide[534]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("properties",function(){return{token:function(R,A){var t=R.sol()||A.afterSection,d=R.eol();A.afterSection=!1;t&&(A.nextMultiline?(A.inMultiline=!0,A.nextMultiline=!1):A.position="def");d&&!A.nextMultiline&&(A.inMultiline=!1,A.position="def");if(t)for(;R.eatSpace(););d=R.next();if(!t||
|
|||
|
"#"!==d&&"!"!==d&&";"!==d){if(t&&"["===d)return A.afterSection=!0,R.skipTo("]"),R.eat("]"),"header";if("\x3d"===d||":"===d)return A.position="quote",null;"\\"===d&&"quote"===A.position&&R.eol()&&(A.nextMultiline=!0)}else return A.position="comment",R.skipToEnd(),"comment";return A.position},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}});q.defineMIME("text/x-properties","properties");q.defineMIME("text/x-ini","properties")})};
|
|||
|
shadow$provide[535]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(w){if(w.eatSpace())return null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match(/^[0-9\.+-]/,!1)&&(w.match(/^[+-]?0x[0-9a-fA-F]+/)||w.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/)||w.match(/^[+-]?\d+([EeDd][+-]?\d+)?/)))return"number";if(w.match(/^"([^"]|(""))*"/)||w.match(/^'([^']|(''))*'/))return"string";
|
|||
|
if(w.match(t))return"keyword";if(w.match(d))return"variable";w.next();return null}var A="package message import syntax required optional repeated reserved default extensions packed bool bytes double enum float string int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 option service rpc returns".split(" "),t=new RegExp("^(("+A.join(")|(")+"))\\b","i");q.registerHelper("hintWords","protobuf",A);var d=RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");q.defineMode("protobuf",function(){return{token:R,
|
|||
|
fold:"brace"}});q.defineMIME("text/x-protobuf","protobuf")})};
|
|||
|
shadow$provide[536]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(477),W(471),W(478)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],q):q(CodeMirror)})(function(q){q.defineMode("pug",function(R){function A(){this.javaScriptArguments=this.javaScriptLineExcludesColon=this.javaScriptLine=!1;this.javaScriptArgumentsDepth=0;this.isInterpolating=!1;this.interpolationNesting=0;this.jsState=
|
|||
|
q.startState(K);this.restOfLine="";this.isEach=this.isIncludeFiltered=!1;this.scriptType=this.lastTag="";this.isAttrs=!1;this.attrsNest=[];this.inAttributeName=!0;this.attributeIsType=!1;this.attrValue="";this.indentOf=Infinity;this.indentToken="";this.innerState=this.innerMode=null;this.innerModeForLine=!1}function t(r,h){if(r.match("#{"))return h.isInterpolating=!0,h.interpolationNesting=0,"punctuation"}function d(r,h){if(r.match(/^:([\w\-]+)/)){var k;R&&R.innerModes&&(k=R.innerModes(r.current().substring(1)));
|
|||
|
k||=r.current().substring(1);"string"===typeof k&&(k=q.getMode(R,k));B(r,h,k);return"atom"}}function w(r,h){if(h.isAttrs){a[r.peek()]&&h.attrsNest.push(a[r.peek()]);if(h.attrsNest[h.attrsNest.length-1]===r.peek())h.attrsNest.pop();else if(r.eat(")"))return h.isAttrs=!1,"punctuation";if(h.inAttributeName&&r.match(/^[^=,\)!]+/)){if("\x3d"===r.peek()||"!"===r.peek())h.inAttributeName=!1,h.jsState=q.startState(K),"script"===h.lastTag&&"type"===r.current().trim().toLowerCase()?h.attributeIsType=!0:h.attributeIsType=
|
|||
|
!1;return"attribute"}var k=K.token(r,h.jsState);h.attributeIsType&&"string"===k&&(h.scriptType=r.current().toString());if(0===h.attrsNest.length&&("string"===k||"variable"===k||"keyword"===k))try{return Function("","var x "+h.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),h.inAttributeName=!0,h.attrValue="",r.backUp(r.current().length),w(r,h)}catch(f){}h.attrValue+=r.current();return k||!0}}function B(r,h,k){k=q.mimeModes[k]||k;k=R.innerModes?R.innerModes(k)||k:k;k=q.mimeModes[k]||k;k=q.getMode(R,
|
|||
|
k);h.indentOf=r.indentation();k&&"null"!==k.name?h.innerMode=k:h.indentToken="string"}function C(r,h,k){if(r.indentation()>h.indentOf||h.innerModeForLine&&!r.sol()||k){if(h.innerMode)return h.innerState||(h.innerState=h.innerMode.startState?q.startState(h.innerMode,r.indentation()):{}),r.hideFirstChars(h.indentOf+2,function(){return h.innerMode.token(r,h.innerState)||!0});r.skipToEnd();return h.indentToken}r.sol()&&(h.indentOf=Infinity,h.indentToken=null,h.innerMode=null,h.innerState=null)}var a=
|
|||
|
{"{":"}","(":")","[":"]"},K=q.getMode(R,"javascript");A.prototype.copy=function(){var r=new A;r.javaScriptLine=this.javaScriptLine;r.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon;r.javaScriptArguments=this.javaScriptArguments;r.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth;r.isInterpolating=this.isInterpolating;r.interpolationNesting=this.interpolationNesting;r.jsState=q.copyState(K,this.jsState);(r.innerMode=this.innerMode)&&this.innerState&&(r.innerState=q.copyState(this.innerMode,
|
|||
|
this.innerState));r.restOfLine=this.restOfLine;r.isIncludeFiltered=this.isIncludeFiltered;r.isEach=this.isEach;r.lastTag=this.lastTag;r.scriptType=this.scriptType;r.isAttrs=this.isAttrs;r.attrsNest=this.attrsNest.slice();r.inAttributeName=this.inAttributeName;r.attributeIsType=this.attributeIsType;r.attrValue=this.attrValue;r.indentOf=this.indentOf;r.indentToken=this.indentToken;r.innerModeForLine=this.innerModeForLine;return r};return{startState:function(){return new A},copyState:function(r){return r.copy()},
|
|||
|
token:function(r,h){var k;(k=C(r,h))||(r.sol()&&(h.restOfLine=""),h.restOfLine?(r.skipToEnd(),k=h.restOfLine,h.restOfLine=""):k=void 0);if(!k)a:if(h.isInterpolating){if("}"===r.peek()){if(h.interpolationNesting--,0>h.interpolationNesting){r.next();h.isInterpolating=!1;k="punctuation";break a}}else"{"===r.peek()&&h.interpolationNesting++;k=K.token(r,h.jsState)||!0}else k=void 0;k||(h.isIncludeFiltered?(k=d(r,h),h.isIncludeFiltered=!1,h.restOfLine="string"):k=void 0);if(!k)a:{if(h.isEach)if(r.match(/^ in\b/)){h.javaScriptLine=
|
|||
|
!0;h.isEach=!1;k="keyword";break a}else if(r.sol()||r.eol())h.isEach=!1;else if(r.next()){for(;!r.match(/^ in\b/,!1)&&r.next(););k="variable";break a}k=void 0}(k=k||w(r,h))||(r.sol()&&(h.javaScriptLine=!1,h.javaScriptLineExcludesColon=!1),h.javaScriptLine?h.javaScriptLineExcludesColon&&":"===r.peek()?(h.javaScriptLine=!1,h.javaScriptLineExcludesColon=!1,k=void 0):(k=K.token(r,h.jsState),r.eol()&&(h.javaScriptLine=!1),k=k||!0):k=void 0);k||(h.javaScriptArguments?0===h.javaScriptArgumentsDepth&&"("!==
|
|||
|
r.peek()?(h.javaScriptArguments=!1,k=void 0):("("===r.peek()?h.javaScriptArgumentsDepth++:")"===r.peek()&&h.javaScriptArgumentsDepth--,0===h.javaScriptArgumentsDepth?(h.javaScriptArguments=!1,k=void 0):k=K.token(r,h.jsState)||!0):k=void 0);k||(h.mixinCallAfter?(h.mixinCallAfter=!1,r.match(/^\( *[-\w]+ *=/,!1)||(h.javaScriptArguments=!0,h.javaScriptArgumentsDepth=0),k=!0):k=void 0);k||(k=r.match(/^yield\b/)?"keyword":void 0);k||(k=r.match(/^(?:doctype) *([^\n]+)?/)?"meta":void 0);(k=k||t(r,h))||(r.match(/^case\b/)?
|
|||
|
(h.javaScriptLine=!0,k="keyword"):k=void 0);k||(r.match(/^when\b/)?(h.javaScriptLine=!0,h.javaScriptLineExcludesColon=!0,k="keyword"):k=void 0);k||(k=r.match(/^default\b/)?"keyword":void 0);k||(r.match(/^extends?\b/)?(h.restOfLine="string",k="keyword"):k=void 0);k||(r.match(/^append\b/)?(h.restOfLine="variable",k="keyword"):k=void 0);k||(r.match(/^prepend\b/)?(h.restOfLine="variable",k="keyword"):k=void 0);k||(r.match(/^block\b *(?:(prepend|append)\b)?/)?(h.restOfLine="variable",k="keyword"):k=void 0);
|
|||
|
k||(r.match(/^include\b/)?(h.restOfLine="string",k="keyword"):k=void 0);k||(r.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&r.match("include")?(h.isIncludeFiltered=!0,k="keyword"):k=void 0);k||(r.match(/^mixin\b/)?(h.javaScriptLine=!0,k="keyword"):k=void 0);k||(r.match(/^\+([-\w]+)/)?(r.match(/^\( *[-\w]+ *=/,!1)||(h.javaScriptArguments=!0,h.javaScriptArgumentsDepth=0),k="variable"):r.match(/^\+#{/,!1)?(r.next(),h.mixinCallAfter=!0,k=t(r,h)):k=void 0);k||(r.match(/^(if|unless|else if|else)\b/)?(h.javaScriptLine=
|
|||
|
!0,k="keyword"):k=void 0);k||(r.match(/^(- *)?(each|for)\b/)?(h.isEach=!0,k="keyword"):k=void 0);k||(r.match(/^while\b/)?(h.javaScriptLine=!0,k="keyword"):k=void 0);k||((k=r.match(/^(\w(?:[-:\w]*\w)?)\/?/))?(h.lastTag=k[1].toLowerCase(),"script"===h.lastTag&&(h.scriptType="application/javascript"),k="tag"):k=void 0);(k=k||d(r,h))||(r.match(/^(!?=|-)/)?(h.javaScriptLine=!0,k="punctuation"):k=void 0);k||(k=r.match(/^#([\w-]+)/)?"builtin":void 0);k||(k=r.match(/^\.([\w-]+)/)?"qualifier":void 0);k||("("==
|
|||
|
r.peek()?(r.next(),h.isAttrs=!0,h.attrsNest=[],h.inAttributeName=!0,h.attrValue="",h.attributeIsType=!1,k="punctuation"):k=void 0);k||(r.match(/^&attributes\b/)?(h.javaScriptArguments=!0,h.javaScriptArgumentsDepth=0,k="keyword"):k=void 0);k||(k=r.sol()&&r.eatSpace()?"indent":void 0);k||(r.match(/^(?:\| ?| )([^\n]+)/)?k="string":r.match(/^(<[^\n]*)/,!1)?(B(r,h,"htmlmixed"),h.innerModeForLine=!0,k=C(r,h,!0)):k=void 0);k||(r.match(/^ *\/\/(-)?([^\n]*)/)?(h.indentOf=r.indentation(),k=h.indentToken="comment"):
|
|||
|
k=void 0);k||(k=r.match(/^: */)?"colon":void 0);k||(r.eat(".")?(k=null,"script"===h.lastTag&&-1!=h.scriptType.toLowerCase().indexOf("javascript")?k=h.scriptType.toLowerCase().replace(/"|'/g,""):"style"===h.lastTag&&(k="css"),B(r,h,k),k="dot"):k=void 0);(h=k)||(r.next(),h=null);r=h;return!0===r?null:r}}},"javascript","css","htmlmixed");q.defineMIME("text/x-pug","pug");q.defineMIME("text/x-jade","pug")})};
|
|||
|
shadow$provide[537]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("puppet",function(){function R(B,C){C=C.split(" ");for(var a=0;a<C.length;a++)d[C[a]]=B}function A(B,C){for(var a,K,r=!1;!B.eol()&&(a=B.next())!=C.pending;){if("$"===a&&"\\"!=K&&'"'==C.pending){r=!0;break}K=a}r&&B.backUp(1);C.continueString=a==C.pending?!1:!0;return"string"}function t(B,
|
|||
|
C){var a=B.match(/[\w]+/,!1),K=B.match(/(\s+)?\w+\s+=>.*/,!1),r=B.match(/(\s+)?[\w:_]+(\s+)?{/,!1),h=B.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),k=B.next();if("$"===k)return B.match(w)?C.continueString?"variable-2":"variable":"error";if(C.continueString)return B.backUp(1),A(B,C);if(C.inDefinition){if(B.match(/(\s+)?[\w:_]+(\s+)?/))return"def";B.match(/\s+{/);C.inDefinition=!1}if(C.inInclude)return B.match(/(\s+)?\S+(\s+)?/),C.inInclude=!1,"def";if(B.match(/(\s+)?\w+\(/))return B.backUp(1),"def";if(K)return B.match(/(\s+)?\w+/),
|
|||
|
"tag";if(a&&d.hasOwnProperty(a))return B.backUp(1),B.match(/[\w]+/),B.match(/\s+\S+\s+{/,!1)&&(C.inDefinition=!0),"include"==a&&(C.inInclude=!0),d[a];if(/(^|\s+)[A-Z][\w:_]+/.test(a))return B.backUp(1),B.match(/(^|\s+)[A-Z][\w:_]+/),"def";if(r)return B.match(/(\s+)?[\w:_]+/),"def";if(h)return B.match(/(\s+)?[@]{1,2}/),"special";if("#"==k)return B.skipToEnd(),"comment";if("'"==k||'"'==k)return C.pending=k,A(B,C);if("{"==k||"}"==k)return"bracket";if("/"==k)return B.match(/.*?\//),"variable-3";if(k.match(/[0-9]/))return B.eatWhile(/[0-9]+/),
|
|||
|
"number";if("\x3d"==k)return"\x3e"==B.peek()&&B.next(),"operator";B.eatWhile(/[\w-]/);return null}var d={},w=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;R("keyword","class define site node include import inherits");R("keyword","case if else in and elsif default or");R("atom","false true running present absent file directory undef");R("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool");
|
|||
|
return{startState:function(){return{inDefinition:!1,inInclude:!1,continueString:!1,pending:!1}},token:function(B,C){return B.eatSpace()?null:t(B,C)}}});q.defineMIME("text/x-puppet","puppet")})};
|
|||
|
shadow$provide[538]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(B){return new RegExp("^(("+B.join(")|(")+"))\\b")}function A(B){return B.scopes[B.scopes.length-1]}var t=R(["and","or","not","is"]),d="as assert break class continue def del elif else except finally for from global if import lambda pass raise return try while with yield in".split(" "),
|
|||
|
w="abs all any bin bool bytearray callable chr classmethod compile complex delattr dict dir divmod enumerate eval filter float format frozenset getattr globals hasattr hash help hex id input int isinstance issubclass iter len list locals map max memoryview min next object oct open ord pow property range repr reversed round set setattr slice sorted staticmethod str sum super tuple type vars zip __import__ NotImplemented Ellipsis __debug__".split(" ");q.registerHelper("hintWords","python",d.concat(w));
|
|||
|
q.defineMode("python",function(B,C){function a(ha,T){var Z=ha.sol()&&"\\"!=T.lastToken;Z&&(T.indent=ha.indentation());if(Z&&"py"==A(T).type){Z=A(T).offset;if(ha.eatSpace()){var E=ha.indentation();E>Z?k(T):E<Z&&f(ha,T)&&"#"!=ha.peek()&&(T.errorToken=!0);return null}E=K(ha,T);0<Z&&f(ha,T)&&(E+=" error");return E}return K(ha,T)}function K(ha,T,Z){if(ha.eatSpace())return null;if(!Z&&ha.match(/^#.*/))return"comment";if(ha.match(/^[0-9\.]/,!1)){var E=!1;ha.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(E=!0);ha.match(/^[\d_]+\.\d*/)&&
|
|||
|
(E=!0);ha.match(/^\.\d+/)&&(E=!0);if(E)return ha.eat(/J/i),"number";E=!1;ha.match(/^0x[0-9a-f_]+/i)&&(E=!0);ha.match(/^0b[01_]+/i)&&(E=!0);ha.match(/^0o[0-7_]+/i)&&(E=!0);ha.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(ha.eat(/J/i),E=!0);ha.match(/^0(?![\dx])/i)&&(E=!0);if(E)return ha.eat(/L/i),"number"}if(ha.match(J))return-1===ha.current().toLowerCase().indexOf("f")?T.tokenize=h(ha.current(),T.tokenize):T.tokenize=r(ha.current(),T.tokenize),T.tokenize(ha,T);for(E=0;E<x.length;E++)if(ha.match(x[E]))return"operator";
|
|||
|
if(ha.match(v))return"punctuation";if("."==T.lastToken&&ha.match(l))return"property";if(ha.match(X)||ha.match(t))return"keyword";if(ha.match(F))return"builtin";if(ha.match(/^(self|cls)\b/))return"variable-2";if(ha.match(l))return"def"==T.lastToken||"class"==T.lastToken?"def":"variable";ha.next();return Z?null:"error"}function r(ha,T){function Z(M){return function(S,D){var O=K(S,D,!0);"punctuation"==O&&("{"==S.current()?D.tokenize=Z(M+1):"}"==S.current()&&(D.tokenize=1<M?Z(M-1):E));return O}}function E(M,
|
|||
|
S){for(;!M.eol();)if(M.eatWhile(/[^'"\{\}\\]/),M.eat("\\")){if(M.next(),aa&&M.eol())return"string"}else{if(M.match(ha))return S.tokenize=T,"string";if(M.match("{{"))return"string";if(M.match("{",!1))return S.tokenize=Z(0),M.current()?"string":S.tokenize(M,S);if(M.match("}}"))return"string";if(M.match("}"))return"error";M.eat(/['"]/)}if(aa){if(C.singleLineStringErrors)return"error";S.tokenize=T}return"string"}for(;0<="rubf".indexOf(ha.charAt(0).toLowerCase());)ha=ha.substr(1);var aa=1==ha.length;E.isString=
|
|||
|
!0;return E}function h(ha,T){function Z(aa,M){for(;!aa.eol();)if(aa.eatWhile(/[^'"\\]/),aa.eat("\\")){if(aa.next(),E&&aa.eol())return"string"}else{if(aa.match(ha))return M.tokenize=T,"string";aa.eat(/['"]/)}if(E){if(C.singleLineStringErrors)return"error";M.tokenize=T}return"string"}for(;0<="rubf".indexOf(ha.charAt(0).toLowerCase());)ha=ha.substr(1);var E=1==ha.length;Z.isString=!0;return Z}function k(ha){for(;"py"!=A(ha).type;)ha.scopes.pop();ha.scopes.push({offset:A(ha).offset+B.indentUnit,type:"py",
|
|||
|
align:null})}function f(ha,T){for(ha=ha.indentation();1<T.scopes.length&&A(T).offset>ha;){if("py"!=A(T).type)return!0;T.scopes.pop()}return A(T).offset!=ha}for(var v=C.delimiters||C.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,x=[C.singleOperators,C.doubleOperators,C.doubleDelimiters,C.tripleDelimiters,C.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],L=0;L<x.length;L++)x[L]||x.splice(L--,1);var z=C.hangingIndent||B.indentUnit;L=d;var u=w;void 0!=C.extra_keywords&&(L=L.concat(C.extra_keywords));
|
|||
|
void 0!=C.extra_builtins&&(u=u.concat(C.extra_builtins));var m=!(C.version&&3>Number(C.version));if(m){var l=C.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;L=L.concat("nonlocal False True None async await".split(" "));u=u.concat(["ascii","bytes","exec","print"]);var J=RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else l=C.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/,L=L.concat(["exec","print"]),u=u.concat("apply basestring buffer cmp coerce execfile file intern long raw_input reduce reload unichr unicode xrange False True None".split(" ")),
|
|||
|
J=RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i");var X=R(L),F=R(u);return{startState:function(ha){return{tokenize:a,scopes:[{offset:ha||0,type:"py",align:null}],indent:ha||0,lastToken:null,lambda:!1,dedent:0}},token:function(ha,T){var Z=T.errorToken;Z&&(T.errorToken=!1);a:{ha.sol()&&(T.beginningOfLine=!0);var E=T.tokenize(ha,T);var aa=ha.current();if(T.beginningOfLine&&"@"==aa)E=ha.match(l,!1)?"meta":m?"operator":"error";else{/\S/.test(aa)&&(T.beginningOfLine=!1);"variable"!=E&&"builtin"!=
|
|||
|
E||"meta"!=T.lastToken||(E="meta");if("pass"==aa||"return"==aa)T.dedent+=1;"lambda"==aa&&(T.lambda=!0);":"!=aa||T.lambda||"py"!=A(T).type||k(T);if(1==aa.length&&!/string|comment/.test(E)){var M="[({".indexOf(aa);if(-1!=M){M="])}".slice(M,M+1);var S=ha.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:ha.column()+1;T.scopes.push({offset:T.indent+z,type:M,align:S})}M="])}".indexOf(aa);if(-1!=M)if(A(T).type==aa)T.indent=T.scopes.pop().offset-z;else{E="error";break a}}0<T.dedent&&ha.eol()&&"py"==A(T).type&&(1<T.scopes.length&&
|
|||
|
T.scopes.pop(),--T.dedent)}}E&&"comment"!=E&&(T.lastToken="keyword"==E||"punctuation"==E?ha.current():E);"punctuation"==E&&(E=null);ha.eol()&&T.lambda&&(T.lambda=!1);return Z?E+" error":E},indent:function(ha,T){if(ha.tokenize!=a)return ha.tokenize.isString?q.Pass:0;ha=A(ha);T=ha.type==T.charAt(0);return null!=ha.align?ha.align-(T?1:0):ha.offset-(T?z:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}});q.defineMIME("text/x-python","python");q.defineMIME("text/x-cython",
|
|||
|
{name:"python",extra_keywords:"by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE".split(" ")})})};
|
|||
|
shadow$provide[539]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("q",function(R){function A(f,v){var x=f.sol(),L=f.next();r=null;if(x){if("/"==L)return(v.tokenize=t)(f,v);if("\\"==L)return f.eol()||/\s/.test(f.peek())?(f.skipToEnd(),/^\\\s*$/.test(f.current())?(v.tokenize=w)(f):v.tokenize=A,"comment"):(v.tokenize=A,"builtin")}if(/\s/.test(L))return"/"==
|
|||
|
f.peek()?(f.skipToEnd(),"comment"):"whitespace";if('"'==L)return(v.tokenize=B)(f,v);if("`"==L)return f.eatWhile(/[A-Za-z\d_:\/.]/),"symbol";if("."==L&&/\d/.test(f.peek())||/\d/.test(L)){v=null;f.backUp(1);if(f.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||f.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||f.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||f.match(/^\d+[ptuv]{1}/))v="temporal";else if(f.match(/^0[NwW]{1}/)||f.match(/^0x[\da-fA-F]*/)||f.match(/^[01]+[b]{1}/)||
|
|||
|
f.match(/^\d+[chijn]{1}/)||f.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))v="number";return!v||(L=f.peek())&&!k.test(L)?(f.next(),"error"):v}return/[A-Za-z]|\./.test(L)?(f.eatWhile(/[A-Za-z._\d]/),h.test(f.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_']/.test(L)||/[{}\(\[\]\)]/.test(L)?null:"error"}function t(f,v){return f.skipToEnd(),/\/\s*$/.test(f.current())?(v.tokenize=d)(f,v):v.tokenize=A,"comment"}function d(f,v){var x=f.sol()&&"\\"==f.peek();f.skipToEnd();x&&/^\\\s*$/.test(f.current())&&
|
|||
|
(v.tokenize=A);return"comment"}function w(f){return f.skipToEnd(),"comment"}function B(f,v){for(var x=!1,L,z=!1;L=f.next();){if('"'==L&&!x){z=!0;break}x=!x&&"\\"==L}z&&(v.tokenize=A);return"string"}function C(f,v,x){f.context={prev:f.context,indent:f.indent,col:x,type:v}}function a(f){f.indent=f.context.indent;f.context=f.context.prev}var K=R.indentUnit,r,h=RegExp("^(abs|acos|aj|aj0|all|and|any|asc|asin|asof|atan|attr|avg|avgs|bin|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|each|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|idesc|if|ij|in|insert|inter|inv|key|keys|last|like|list|lj|load|log|lower|lsq|ltime|ltrim|mavg|max|maxs|mcount|md5|mdev|med|meta|min|mins|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prd|prds|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reverse|rload|rotate|rsave|rtrim|save|scan|select|set|setenv|show|signum|sin|sqrt|ss|ssr|string|sublist|sum|sums|sv|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|view|views|vs|wavg|where|where|while|within|wj|wj1|wsum|xasc|xbar|xcol|xcols|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)$"),
|
|||
|
k=/[|/&^!+:\\\-*%$=~#;@><,?_'"\[\(\]\)\s{}]/;return{startState:function(){return{tokenize:A,context:null,indent:0,col:0}},token:function(f,v){f.sol()&&(v.context&&null==v.context.align&&(v.context.align=!1),v.indent=f.indentation());var x=v.tokenize(f,v);"comment"!=x&&v.context&&null==v.context.align&&"pattern"!=v.context.type&&(v.context.align=!0);if("("==r)C(v,")",f.column());else if("["==r)C(v,"]",f.column());else if("{"==r)C(v,"}",f.column());else if(/[\]\}\)]/.test(r)){for(;v.context&&"pattern"==
|
|||
|
v.context.type;)a(v);v.context&&r==v.context.type&&a(v)}else"."==r&&v.context&&"pattern"==v.context.type?a(v):/atom|string|variable/.test(x)&&v.context&&(/[\}\]]/.test(v.context.type)?C(v,"pattern",f.column()):"pattern"!=v.context.type||v.context.align||(v.context.align=!0,v.context.col=f.column()));return x},indent:function(f,v){v=v&&v.charAt(0);f=f.context;if(/[\]\}]/.test(v))for(;f&&"pattern"==f.type;)f=f.prev;v=f&&v==f.type;return f?"pattern"==f.type?f.col:f.align?f.col+(v?0:1):f.indent+(v?0:
|
|||
|
K):0}}});q.defineMIME("text/x-q","q")})};
|
|||
|
shadow$provide[540]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.registerHelper("wordChars","r",/[\w.]/);q.defineMode("r",function(R){function A(z){for(var u={},m=0;m<z.length;++m)u[z[m]]=!0;return u}function t(z,u){L=null;var m=z.next();if("#"==m)return z.skipToEnd(),"comment";if("0"==m&&z.eat("x"))return z.eatWhile(/[\da-f]/i),"number";if("."==m&&z.eat(/\d/))return z.match(/\d*(?:e[+\-]?\d+)?/),
|
|||
|
"number";if(/\d/.test(m))return z.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==m||'"'==m)return u.tokenize=d(m),"string";if("`"==m)return z.match(/[^`]+`/),"variable-3";if("."==m&&z.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(m)&&"_"!=m)return z.eatWhile(/[\w\.]/),u=z.current(),h.propertyIsEnumerable(u)?"atom":f.propertyIsEnumerable(u)?(v.propertyIsEnumerable(u)&&!z.match(/\s*if(\s+|$)/,!1)&&(L="block"),"keyword"):k.propertyIsEnumerable(u)?"builtin":"variable";if("%"==m)return z.skipTo("%")&&
|
|||
|
z.next(),"operator variable-2";if("\x3c"==m&&z.eat("-")||"\x3c"==m&&z.match("\x3c-")||"-"==m&&z.match(/>>?/))return"operator arrow";if("\x3d"==m&&u.ctx.argList)return"arg-is";if(x.test(m)){if("$"==m)return"operator dollar";z.eatWhile(x);return"operator"}return/[\(\){}\[\];]/.test(m)?(L=m,";"==m?"semi":null):null}function d(z){return function(u,m){if(u.eat("\\"))return m=u.next(),"x"==m?u.match(/^[a-f0-9]{2}/i):("u"==m||"U"==m)&&u.eat("{")&&u.skipTo("}")?u.next():"u"==m?u.match(/^[a-f0-9]{4}/i):"U"==
|
|||
|
m?u.match(/^[a-f0-9]{8}/i):/[0-7]/.test(m)&&u.match(/^[0-7]{1,2}/),"string-2";for(var l;null!=(l=u.next());){if(l==z){m.tokenize=t;break}if("\\"==l){u.backUp(1);break}}return"string"}}function w(z,u,m){z.ctx={type:u,indent:z.indent,flags:0,column:m.column(),prev:z.ctx}}function B(z,u){var m=z.ctx;z.ctx={type:m.type,indent:m.indent,flags:m.flags|u,column:m.column,prev:m.prev}}function C(z){z.indent=z.ctx.indent;z.ctx=z.ctx.prev}var a="NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_ TRUE FALSE".split(" "),
|
|||
|
K="list quote bquote eval return call parse deparse".split(" "),r="if else repeat while function for in next break".split(" ");q.registerHelper("hintWords","r",a.concat(K,r));var h=A(a),k=A(K),f=A(r),v=A("if else repeat while function for".split(" ")),x=/[+\-*\/^<>=!&|~$:]/,L;return{startState:function(){return{tokenize:t,ctx:{type:"top",indent:-R.indentUnit,flags:2},indent:0,afterIdent:!1}},token:function(z,u){z.sol()&&(0==(u.ctx.flags&3)&&(u.ctx.flags|=2),u.ctx.flags&4&&C(u),u.indent=z.indentation());
|
|||
|
if(z.eatSpace())return null;var m=u.tokenize(z,u);"comment"!=m&&0==(u.ctx.flags&2)&&B(u,1);";"!=L&&"{"!=L&&"}"!=L||"block"!=u.ctx.type||C(u);"{"==L?w(u,"}",z):"("==L?(w(u,")",z),u.afterIdent&&(u.ctx.argList=!0)):"["==L?w(u,"]",z):"block"==L?w(u,"block",z):L==u.ctx.type?C(u):"block"==u.ctx.type&&"comment"!=m&&B(u,4);u.afterIdent="variable"==m||"keyword"==m;return m},indent:function(z,u){if(z.tokenize!=t)return 0;u=u&&u.charAt(0);z=z.ctx;var m=u==z.type;z.flags&4&&(z=z.prev);return"block"==z.type?z.indent+
|
|||
|
("{"==u?0:R.indentUnit):z.flags&1?z.column+(m?0:1):z.indent+(m?0:R.indentUnit)},lineComment:"#"}});q.defineMIME("text/x-rsrc","r")})};
|
|||
|
shadow$provide[541]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("rpm-changes",function(){var R=/^-+$/,A=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,t=/^[\w+.-]+@[\w.-]+/;return{token:function(d){if(d.sol()&&(d.match(R)||d.match(A)))return"tag";if(d.match(t))return"string";
|
|||
|
d.next();return null}}});q.defineMIME("text/x-rpm-changes","rpm-changes");q.defineMode("rpm-spec",function(){var R=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,A=/^[a-zA-Z0-9()]+:/,t=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,d=/^%(ifnarch|ifarch|if)/,w=
|
|||
|
/^%(else|endif)/,B=/^(!|\?|<=|<|>=|>|==|&&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(C,a){if("#"==C.peek())return C.skipToEnd(),"comment";if(C.sol()){if(C.match(A))return"header";if(C.match(t))return"atom"}if(C.match(/^\$\w+/)||C.match(/^\$\{\w+\}/))return"def";if(C.match(w))return"keyword";if(C.match(d))return a.controlFlow=!0,"keyword";if(a.controlFlow){if(C.match(B))return"operator";if(C.match(/^(\d+)/))return"number";C.eol()&&(a.controlFlow=
|
|||
|
!1)}if(C.match(R))return C.eol()&&(a.controlFlow=!1),"number";if(C.match(/^%[\w]+/))return C.match(/^\(/)&&(a.macroParameters=!0),"keyword";if(a.macroParameters){if(C.match(/^\d+/))return"number";if(C.match(/^\)/))return a.macroParameters=!1,"keyword"}if(C.match(/^%\{\??[\w \-:!]+\}/))return C.eol()&&(a.controlFlow=!1),"def";C.next();return null}}});q.defineMIME("text/x-rpm-spec","rpm-spec")})};
|
|||
|
shadow$provide[542]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("stex",function(R,A){function t(r){r=r.cmdState;for(var h=r.length-1;0<=h;h--){var k=r[h];if("DEFAULT"!=k.name)return k}return{styleIdentifier:function(){return null}}}function d(r,h,k){return function(){this.name=r;this.bracketNo=0;this.style=h;this.styles=k;this.argument=null;this.styleIdentifier=
|
|||
|
function(){return this.styles[this.bracketNo-1]||null};this.openBracket=function(){this.bracketNo++;return"bracket"};this.closeBracket=function(){}}}function w(r,h){r.f=h}function B(r,h){if(r.match(/^\\[a-zA-Z@]+/)){r=r.current().slice(1);var k=K.hasOwnProperty(r)?K[r]:K.DEFAULT;k=new k;h.cmdState.push(k);h.f=a;return k.style}if(r.match(/^\\[$&%#{}_]/)||r.match(/^\\[,;!\/\\]/))return"tag";if(r.match("\\["))return w(h,function(v,x){return C(v,x,"\\]")}),"keyword";if(r.match("\\("))return w(h,function(v,
|
|||
|
x){return C(v,x,"\\)")}),"keyword";if(r.match("$$"))return w(h,function(v,x){return C(v,x,"$$")}),"keyword";if(r.match("$"))return w(h,function(v,x){return C(v,x,"$")}),"keyword";var f=r.next();if("%"==f)return r.skipToEnd(),"comment";if("}"==f||"]"==f){if(k=0<h.cmdState.length?h.cmdState[h.cmdState.length-1]:null)k.closeBracket(f),h.f=a;else return"error";return"bracket"}if("{"==f||"["==f)return k=K.DEFAULT,k=new k,h.cmdState.push(k),"bracket";if(/\d/.test(f))return r.eatWhile(/[\w.%]/),"atom";r.eatWhile(/[\w\-_]/);
|
|||
|
k=t(h);"begin"==k.name&&(k.argument=r.current());return k.styleIdentifier()}function C(r,h,k){if(r.eatSpace())return null;if(k&&r.match(k))return h.f=B,"keyword";if(r.match(/^\\[a-zA-Z@]+/))return"tag";if(r.match(/^[a-zA-Z]+/))return"variable-2";if(r.match(/^\\[$&%#{}_]/)||r.match(/^\\[,;!\/]/)||r.match(/^[\^_&]/))return"tag";if(r.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(r.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";h=r.next();return"{"==h||"}"==h||"["==h||"]"==h||"("==h||")"==h?"bracket":
|
|||
|
"%"==h?(r.skipToEnd(),"comment"):"error"}function a(r,h){var k=r.peek();if("{"==k||"["==k){var f=0<h.cmdState.length?h.cmdState[h.cmdState.length-1]:null;f.openBracket(k);r.eat(k);h.f=B;return"bracket"}if(/[ \t\r]/.test(k))return r.eat(k),null;h.f=B;(k=h.cmdState.pop())&&k.closeBracket();return B(r,h)}var K={};K.importmodule=d("importmodule","tag",["string","builtin"]);K.documentclass=d("documentclass","tag",["","atom"]);K.usepackage=d("usepackage","tag",["atom"]);K.begin=d("begin","tag",["atom"]);
|
|||
|
K.end=d("end","tag",["atom"]);K.label=d("label","tag",["atom"]);K.ref=d("ref","tag",["atom"]);K.eqref=d("eqref","tag",["atom"]);K.cite=d("cite","tag",["atom"]);K.bibitem=d("bibitem","tag",["atom"]);K.Bibitem=d("Bibitem","tag",["atom"]);K.RBibitem=d("RBibitem","tag",["atom"]);K.DEFAULT=function(){this.name="DEFAULT";this.style="tag";this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};return{startState:function(){return{cmdState:[],f:A.inMathMode?function(r,h){return C(r,h)}:B}},copyState:function(r){return{cmdState:r.cmdState.slice(),
|
|||
|
f:r.f}},token:function(r,h){return h.f(r,h)},blankLine:function(r){r.f=B;r.cmdState.length=0},lineComment:"%"}});q.defineMIME("text/x-stex","stex");q.defineMIME("text/x-latex","stex")})};
|
|||
|
shadow$provide[543]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(538),W(542),W(479)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../python/python","../stex/stex","../../addon/mode/overlay"],q):q(CodeMirror)})(function(q){q.defineMode("rst",function(R,A){var t=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,d=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,w=/^``[^`\s](?:[^`]*[^`\s])``/,B=/^(?:[\d]+(?:[\.,]\d+)*)/,C=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,a=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,
|
|||
|
K=RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\\x26\\-\\.\\,\\/\\:\\\x3d\\?\\~]+)*");R=q.getMode(R,A.backdrop||"rst-base");return q.overlayMode(R,{token:function(r){if(r.match(t)&&r.match(/\W+|$/,!1))return"strong";if(r.match(d)&&r.match(/\W+|$/,!1))return"em";if(r.match(w)&&r.match(/\W+|$/,!1))return"string-2";if(r.match(B))return"number";if(r.match(C))return"positive";if(r.match(a))return"negative";if(r.match(K))return"link";for(;!(null==r.next()||r.match(t,
|
|||
|
!1)||r.match(d,!1)||r.match(w,!1)||r.match(B,!1)||r.match(C,!1)||r.match(a,!1)||r.match(K,!1)););return null}},!0)},"python","stex");q.defineMode("rst-base",function(R){function A(za){var ya=Array.prototype.slice.call(arguments,1);return za.replace(/{(\d+)}/g,function(Ha,Ua){return"undefined"!=typeof ya[Ua]?ya[Ua]:Ha})}function t(za,ya){var Ha=null;if(za.sol()&&za.match(qa,!1))r(ya,a,{mode:k,local:q.startState(k)});else if(za.sol()&&za.match(u))r(ya,d),Ha="meta";else if(za.sol()&&za.match(z))r(ya,
|
|||
|
t),Ha="header";else if(ya.ctx.phase==M||za.match(M,!1))switch(h(ya)){case 0:r(ya,t,K(M,1));za.match(/^:/);Ha="meta";break;case 1:r(ya,t,K(M,2));za.match(x);Ha="keyword";za.current().match(/^(?:math|latex)/)&&(ya.tmp_stex=!0);break;case 2:r(ya,t,K(M,3));za.match(/^:`/);Ha="meta";break;case 3:ya.tmp_stex&&(ya.tmp_stex=void 0,ya.tmp={mode:f,local:q.startState(f)});if(ya.tmp){if("`"==za.peek()){r(ya,t,K(M,4));ya.tmp=void 0;break}Ha=ya.tmp.mode.token(za,ya.tmp.local);break}r(ya,t,K(M,4));za.match(L);Ha=
|
|||
|
"string";break;case 4:r(ya,t,K(M,5));za.match(/^`/);Ha="meta";break;case 5:r(ya,t,K(M,6));za.match(v);break;default:r(ya,t)}else if(ya.ctx.phase==S||za.match(S,!1))switch(h(ya)){case 0:r(ya,t,K(S,1));za.match(/^`/);Ha="meta";break;case 1:r(ya,t,K(S,2));za.match(L);Ha="string";break;case 2:r(ya,t,K(S,3));za.match(/^`:/);Ha="meta";break;case 3:r(ya,t,K(S,4));za.match(x);Ha="keyword";break;case 4:r(ya,t,K(S,5));za.match(/^:/);Ha="meta";break;case 5:r(ya,t,K(S,6));za.match(v);break;default:r(ya,t)}else if(ya.ctx.phase==
|
|||
|
D||za.match(D,!1))switch(h(ya)){case 0:r(ya,t,K(D,1));za.match(/^:/);Ha="meta";break;case 1:r(ya,t,K(D,2));za.match(x);Ha="keyword";break;case 2:r(ya,t,K(D,3));za.match(/^:/);Ha="meta";break;case 3:r(ya,t,K(D,4));za.match(v);break;default:r(ya,t)}else if(ya.ctx.phase==ha||za.match(ha,!1))switch(h(ya)){case 0:r(ya,t,K(ha,1));za.match(da);Ha="variable-2";break;case 1:r(ya,t,K(ha,2));za.match(/^_?_?/)&&(Ha="link");break;default:r(ya,t)}else if(za.match(T))r(ya,t),Ha="quote";else if(za.match(Z))r(ya,
|
|||
|
t),Ha="quote";else if(za.match(E)){if(r(ya,t),!za.peek()||za.peek().match(/^\W$/))Ha="link"}else if(ya.ctx.phase==aa||za.match(aa,!1))switch(h(ya)){case 0:!za.peek()||za.peek().match(/^\W$/)?r(ya,t,K(aa,1)):za.match(aa);break;case 1:r(ya,t,K(aa,2));za.match(/^`/);Ha="link";break;case 2:r(ya,t,K(aa,3));za.match(L);break;case 3:r(ya,t,K(aa,4));za.match(/^`_/);Ha="link";break;default:r(ya,t)}else za.match(ea)?r(ya,B):za.next()&&r(ya,t);return Ha}function d(za,ya){var Ha=null;if(ya.ctx.phase==J||za.match(J,
|
|||
|
!1))switch(h(ya)){case 0:r(ya,d,K(J,1));za.match(da);Ha="variable-2";break;case 1:r(ya,d,K(J,2));za.match(ba);break;case 2:r(ya,d,K(J,3));za.match(H);Ha="keyword";break;case 3:r(ya,d,K(J,4));za.match(ja);Ha="meta";break;default:r(ya,t)}else if(ya.ctx.phase==l||za.match(l,!1))switch(h(ya)){case 0:r(ya,d,K(l,1));za.match(O);Ha="keyword";za.current().match(/^(?:math|latex)/)?ya.tmp_stex=!0:za.current().match(/^python/)&&(ya.tmp_py=!0);break;case 1:r(ya,d,K(l,2));za.match(P);Ha="meta";if(za.match(/^latex\s*$/)||
|
|||
|
ya.tmp_stex)ya.tmp_stex=void 0,r(ya,a,{mode:f,local:q.startState(f)});break;case 2:r(ya,d,K(l,3));if(za.match(/^python\s*$/)||ya.tmp_py)ya.tmp_py=void 0,r(ya,a,{mode:k,local:q.startState(k)});break;default:r(ya,t)}else if(ya.ctx.phase==m||za.match(m,!1))switch(h(ya)){case 0:r(ya,d,K(m,1));za.match(N);za.match(ca);Ha="link";break;case 1:r(ya,d,K(m,2));za.match(ia);Ha="meta";break;default:r(ya,t)}else za.match(X)?(r(ya,t),Ha="quote"):za.match(F)?(r(ya,t),Ha="quote"):(za.eatSpace(),za.eol()?r(ya,t):
|
|||
|
(za.skipToEnd(),r(ya,w),Ha="comment"));return Ha}function w(za,ya){return C(za,ya,"comment")}function B(za,ya){return C(za,ya,"meta")}function C(za,ya,Ha){if(za.eol()||za.eatSpace())return za.skipToEnd(),Ha;r(ya,t);return null}function a(za,ya){if(ya.ctx.mode&&ya.ctx.local)return za.sol()?(za.eatSpace()||r(ya,t),null):ya.ctx.mode.token(za,ya.ctx.local);r(ya,t);return null}function K(za,ya,Ha,Ua){return{phase:za,stage:ya,mode:Ha,local:Ua}}function r(za,ya,Ha){za.tok=ya;za.ctx=Ha||{}}function h(za){return za.ctx.stage||
|
|||
|
0}var k=q.getMode(R,"python"),f=q.getMode(R,"stex"),v=new RegExp(A("^{0}","(?:\\s*|\\W|$)")),x=new RegExp(A("^{0}","(?:[^\\W\\d_](?:[\\w!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)"));R=A("(?:{0}|`{1}`)","(?:[^\\W\\d_](?:[\\w!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)","(?:[^\\W\\d_](?:[\\w\\s!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)");var L=new RegExp(A("^{0}","(?:[^\\`]+)")),z=RegExp("^([!'#$%\x26\"()*+,-./:;\x3c\x3d\x3e?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),
|
|||
|
u=new RegExp(A("^\\.\\.{0}","\\s+")),m=new RegExp(A("^_{0}:{1}|^__:{1}",R,"(?:\\s*|\\W|$)")),l=new RegExp(A("^{0}::{1}",R,"(?:\\s*|\\W|$)")),J=new RegExp(A("^\\|{0}\\|{1}{2}::{3}","(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)","\\s+",R,"(?:\\s*|\\W|$)")),X=new RegExp(A("^\\[(?:\\d+|#{0}?|\\*)]{1}",R,"(?:\\s*|\\W|$)")),F=new RegExp(A("^\\[{0}\\]{1}",R,"(?:\\s*|\\W|$)")),ha=new RegExp(A("^\\|{0}\\|","(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)")),T=new RegExp(A("^\\[(?:\\d+|#{0}?|\\*)]_",R)),Z=new RegExp(A("^\\[{0}\\]_",
|
|||
|
R)),E=new RegExp(A("^{0}__?",R)),aa=new RegExp(A("^`{0}`_","(?:[^\\`]+)")),M=new RegExp(A("^:{0}:`{1}`{2}","(?:[^\\W\\d_](?:[\\w!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)","(?:[^\\`]+)","(?:\\s*|\\W|$)")),S=new RegExp(A("^`{1}`:{0}:{2}","(?:[^\\W\\d_](?:[\\w!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)","(?:[^\\`]+)","(?:\\s*|\\W|$)")),D=new RegExp(A("^:{0}:{1}","(?:[^\\W\\d_](?:[\\w!\"#$%\x26'()\\*\\+,\\-\\./:;\x3c\x3d\x3e\\?]*[^\\W_])?)","(?:\\s*|\\W|$)")),O=new RegExp(A("^{0}",
|
|||
|
R)),P=new RegExp(A("^::{0}","(?:\\s*|\\W|$)")),da=new RegExp(A("^\\|{0}\\|","(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)")),ba=new RegExp(A("^{0}","\\s+")),H=new RegExp(A("^{0}",R)),ja=new RegExp(A("^::{0}","(?:\\s*|\\W|$)")),N=RegExp("^_"),ca=new RegExp(A("^{0}|_",R)),ia=new RegExp(A("^:{0}","(?:\\s*|\\W|$)")),ea=RegExp("^::\\s*$"),qa=RegExp("^\\s+(?:\x3e\x3e\x3e|In \\[\\d+\\]:)\\s");return{startState:function(){return{tok:t,ctx:K(void 0,0)}},copyState:function(za){var ya=za.ctx,Ha=za.tmp;ya.local&&(ya={mode:ya.mode,
|
|||
|
local:q.copyState(ya.mode,ya.local)});Ha&&={mode:Ha.mode,local:q.copyState(Ha.mode,Ha.local)};return{tok:za.tok,ctx:ya,tmp:Ha}},innerMode:function(za){return za.tmp?{state:za.tmp.local,mode:za.tmp.mode}:za.ctx.mode?{state:za.ctx.local,mode:za.ctx.mode}:null},token:function(za,ya){return ya.tok(za,ya)}}},"python","stex");q.defineMIME("text/x-rst","rst")})};
|
|||
|
shadow$provide[544]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],q):q(CodeMirror)})(function(q){q.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},
|
|||
|
{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,
|
|||
|
token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,
|
|||
|
indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",
|
|||
|
lineComment:"//",fold:"brace"}});q.defineMIME("text/x-rustsrc","rust");q.defineMIME("text/rust","rust")})};
|
|||
|
shadow$provide[545]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("sas",function(){function R(C,a,K){if(K){a=a.split(" ");for(var r=0;r<a.length;r++)t[a[r]]={style:C,state:K}}}function A(C,a){var K=C.next();if("/"===K&&C.eat("*"))return a.continueComment=!0,"comment";if(!0===a.continueComment)return"*"===K&&"/"===C.peek()?(C.next(),a.continueComment=
|
|||
|
!1):C.skipTo("*")?(C.skipTo("*"),C.next(),C.eat("/")&&(a.continueComment=!1)):C.skipToEnd(),"comment";if("*"==K&&C.column()==C.indentation())return C.skipToEnd(),"comment";var r=K+C.peek();if('"'!==K&&"'"!==K||a.continueString){if(a.continueString)return a.continueString==K?a.continueString=null:C.skipTo(a.continueString)?(C.next(),a.continueString=null):C.skipToEnd(),"string";if(null!==a.continueString&&C.eol())return C.skipTo(a.continueString)||C.skipToEnd(),"string";if(/[\d\.]/.test(K))return"."===
|
|||
|
K?C.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"===K?C.match(/^[xX][0-9a-fA-F]+/)||C.match(/^0[0-7]+/):C.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(w.test(K+C.peek()))return C.next(),"operator";if(d.hasOwnProperty(r)){if(C.next()," "===C.peek())return d[r.toLowerCase()]}else if(B.test(K))return"operator"}else return a.continueString=K,"string";if(null!=C.match(/[%&;\w]+/,!1)&&(K+=C.match(/[%&;\w]+/,!0),/&/.test(K)))return"variable";if(a.nextword)return C.match(/[\w]+/),"."===C.peek()&&C.skipTo(" "),
|
|||
|
a.nextword=!1,"variable-2";K=K.toLowerCase();if(a.inDataStep){if("run;"===K||C.match(/run\s;/))return a.inDataStep=!1,"builtin";if(K&&"."===C.next())return/\w/.test(C.peek())?"variable-2":"variable";if(K&&t.hasOwnProperty(K)&&(-1!==t[K].state.indexOf("inDataStep")||-1!==t[K].state.indexOf("ALL"))){C.start<C.pos&&C.backUp(C.pos-C.start);for(a=0;a<K.length;++a)C.next();return t[K].style}}if(a.inProc){if("run;"===K||"quit;"===K)return a.inProc=!1,"builtin";if(K&&t.hasOwnProperty(K)&&(-1!==t[K].state.indexOf("inProc")||
|
|||
|
-1!==t[K].state.indexOf("ALL")))return C.match(/[\w]+/),t[K].style}if(a.inMacro)return"%mend"===K?(";"===C.peek()&&C.next(),a.inMacro=!1,"builtin"):K&&t.hasOwnProperty(K)&&(-1!==t[K].state.indexOf("inMacro")||-1!==t[K].state.indexOf("ALL"))?(C.match(/[\w]+/),t[K].style):"atom";if(K&&t.hasOwnProperty(K)){C.backUp(1);C.match(/[\w]+/);if("data"===K&&!1===/=/.test(C.peek()))return a.inDataStep=!0,a.nextword=!0,"builtin";if("proc"===K)return a.inProc=!0,a.nextword=!0,"builtin";if("%macro"===K)return a.inMacro=
|
|||
|
!0,a.nextword=!0,"builtin";if(/title[1-9]/.test(K))return"def";if("footnote"===K)return C.eat(/[1-9]/),"def";if(!0===a.inDataStep&&-1!==t[K].state.indexOf("inDataStep")||!0===a.inProc&&-1!==t[K].state.indexOf("inProc")||!0===a.inMacro&&-1!==t[K].state.indexOf("inMacro")||-1!==t[K].state.indexOf("ALL"))return t[K].style}return null}var t={},d={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator","in":"operator",ne:"operator",or:"operator"},w=/(<=|>=|!=|<>)/,B=/[=\(:\),{}.*<>+\-\/^\[\]]/;
|
|||
|
R("def","stack pgm view source debug nesting nolist",["inDataStep"]);R("def","if while until for do do; end end; then else cancel",["inDataStep"]);R("def","label format _n_ _error_",["inDataStep"]);R("def","ALTER BUFNO BUFSIZE CNTLLEV COMPRESS DLDMGACTION ENCRYPT ENCRYPTKEY EXTENDOBSCOUNTER GENMAX GENNUM INDEX LABEL OBSBUF OUTREP PW PWREQ READ REPEMPTY REPLACE REUSE ROLE SORTEDBY SPILL TOBSNO TYPE WRITE FILECLOSE FIRSTOBS IN OBS POINTOBS WHERE WHEREUP IDXNAME IDXWHERE DROP KEEP RENAME",["inDataStep"]);
|
|||
|
R("def","filevar finfo finv fipname fipnamel fipstate first firstobs floor",["inDataStep"]);R("def","varfmt varinfmt varlabel varlen varname varnum varray varrayx vartype verify vformat vformatd vformatdx vformatn vformatnx vformatw vformatwx vformatx vinarray vinarrayx vinformat vinformatd vinformatdx vinformatn vinformatnx vinformatw vinformatwx vinformatx vlabel vlabelx vlength vlengthx vname vnamex vnferr vtype vtypex weekday",["inDataStep"]);R("def","zipfips zipname zipnamel zipstate",["inDataStep"]);
|
|||
|
R("def","put putc putn",["inDataStep"]);R("builtin","data run",["inDataStep"]);R("def","data",["inProc"]);R("def","%if %end %end; %else %else; %do %do; %then",["inMacro"]);R("builtin","proc run; quit; libname filename %macro %mend option options",["ALL"]);R("def","footnote title libname ods",["ALL"]);R("def","%let %put %global %sysfunc %eval ",["ALL"]);R("variable","\x26sysbuffr \x26syscc \x26syscharwidth \x26syscmd \x26sysdate \x26sysdate9 \x26sysday \x26sysdevic \x26sysdmg \x26sysdsn \x26sysencoding \x26sysenv \x26syserr \x26syserrortext \x26sysfilrc \x26syshostname \x26sysindex \x26sysinfo \x26sysjobid \x26syslast \x26syslckrc \x26syslibrc \x26syslogapplname \x26sysmacroname \x26sysmenv \x26sysmsg \x26sysncpu \x26sysodspath \x26sysparm \x26syspbuff \x26sysprocessid \x26sysprocessname \x26sysprocname \x26sysrc \x26sysscp \x26sysscpl \x26sysscpl \x26syssite \x26sysstartid \x26sysstartname \x26systcpiphostname \x26systime \x26sysuserid \x26sysver \x26sysvlong \x26sysvlong4 \x26syswarningtext",
|
|||
|
["ALL"]);R("def","source2 nosource2 page pageno pagesize",["ALL"]);R("def","_all_ _character_ _cmd_ _freq_ _i_ _infile_ _last_ _msg_ _null_ _numeric_ _temporary_ _type_ abort abs addr adjrsq airy alpha alter altlog altprint and arcos array arsin as atan attrc attrib attrn authserver autoexec awscontrol awsdef awsmenu awsmenumerge awstitle backward band base betainv between blocksize blshift bnot bor brshift bufno bufsize bxor by byerr byline byte calculated call cards cards4 catcache cbufno cdf ceil center cexist change chisq cinv class cleanup close cnonct cntllev coalesce codegen col collate collin column comamid comaux1 comaux2 comdef compbl compound compress config continue convert cos cosh cpuid create cross crosstab css curobs cv daccdb daccdbsl daccsl daccsyd dacctab dairy datalines datalines4 datejul datepart datetime day dbcslang dbcstype dclose ddfm ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design\x3d device dflang dhms dif digamma dim dinfo display distinct dkricond dkrocond dlm dnum do dopen doptname doptnum dread drop dropnote dsname dsnferr echo else emaildlg emailid emailpw emailserver emailsys encrypt end endsas engine eof eov erf erfc error errorcheck errors exist exp fappend fclose fcol fdelete feedback fetch fetchobs fexist fget file fileclose fileexist filefmt filename fileref fmterr fmtsearch fnonct fnote font fontalias fopen foptname foptnum force formatted formchar formdelim formdlim forward fpoint fpos fput fread frewind frlen from fsep fuzz fwrite gaminv gamma getoption getvarc getvarn go goto group gwindow hbar hbound helpenv helploc hms honorappearance hosthelp hostprint hour hpct html hvar ibessel ibr id if index indexc indexw initcmd initstmt inner input inputc inputn inr insert int intck intnx into intrr invaliddata irr is jbessel join juldate keep kentb kurtosis label lag last lbound leave left length levels lgamma lib library libref line linesize link list log log10 log2 logpdf logpmf logsdf lostcard lowcase lrecl ls macro macrogen maps mautosource max maxdec maxr mdy mean measures median memtype merge merror min minute missing missover mlogic mod mode model modify month mopen mort mprint mrecall msglevel msymtabmax mvarsize myy n nest netpv new news nmiss no nobatch nobs nocaps nocardimage nocenter nocharcode nocmdmac nocol nocum nodate nodbcs nodetails nodmr nodms nodmsbatch nodup nodupkey noduplicates noechoauto noequals noerrorabend noexitwindows nofullstimer noicon noimplmac noint nolist noloadlist nomiss nomlogic nomprint nomrecall nomsgcase nomstored nomultenvappl nonotes nonumber noobs noovp nopad nopercent noprint noprintinit normal norow norsasuser nosetinit nosplash nosymbolgen note notes notitle notitles notsorted noverbose noxsync noxwait npv null number numkeys nummousekeys nway obs on open order ordinal otherwise out outer outp\x3d output over ovp p(1 5 10 25 50 75 90 95 99) pad pad2 paired parm parmcards path pathdll pathname pdf peek peekc pfkey pmf point poisson poke position printer probbeta probbnml probchi probf probgam probhypr probit probnegb probnorm probsig probt procleave prt ps pw pwreq qtr quote r ranbin rancau random ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni rcorr read recfm register regr remote remove rename repeat repeated replace resolve retain return reuse reverse rewind right round rsquare rtf rtrace rtraceloc s s2 samploc sasautos sascontrol sasfrscr sasmsg sasmstore sasscript sasuser saving scan sdf second select selection separated seq serror set setcomm setot sign simple sin sinh siteinfo skewness skip sle sls sortedby sortpgm sortseq sortsize soundex spedis splashlocation split spool sqrt start std stderr stdin stfips stimer stname stnamel stop stopover sub subgroup subpopn substr sum sumwgt symbol symbolgen symget symput sysget sysin sysleave sysmsg sysparm sysprint sysprintfont sysprod sysrc system t table tables tan tanh tapeclose tbufsize terminal test then timepart tinv tnonct to today tol tooldef totper transformout translate trantab tranwrd trigamma trim trimn trunc trunc
|
|||
|
["inDataStep","inProc"]);R("operator","and not ",["inDataStep","inProc"]);return{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(C,a){return C.eatSpace()?null:A(C,a)},blockCommentStart:"/*",blockCommentEnd:"*/"}});q.defineMIME("text/x-sas","sas")})};
|
|||
|
shadow$provide[546]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(471)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../css/css"],q):q(CodeMirror)})(function(q){q.defineMode("sass",function(R){function A(u){return!u.peek()||u.match(/\s+$/,!1)}function t(u,m){var l=u.peek();if(")"===l)return u.next(),m.tokenizer=a,"operator";if("("===l)return u.next(),u.eatSpace(),"operator";m.tokenizer="'"===l||'"'===l?w(u.next()):w(")",!1);return"string"}
|
|||
|
function d(u,m){return function(l,J){if(l.sol()&&l.indentation()<=u)return J.tokenizer=a,a(l,J);m&&l.skipTo("*/")?(l.next(),l.next(),J.tokenizer=a):l.skipToEnd();return"comment"}}function w(u,m){function l(J,X){var F=J.next(),ha=J.peek(),T=J.string.charAt(J.pos-2);return"\\"!==F&&ha===u||F===u&&"\\"!==T?(F!==u&&m&&J.next(),A(J)&&(X.cursorHalf=0),X.tokenizer=a,"string"):"#"===F&&"{"===ha?(X.tokenizer=B(l),J.next(),"operator"):"string"}null==m&&(m=!0);return l}function B(u){return function(m,l){return"}"===
|
|||
|
m.peek()?(m.next(),l.tokenizer=u,"operator"):a(m,l)}}function C(u){0==u.indentCount&&(u.indentCount++,u.scopes.unshift({offset:u.scopes[0].offset+R.indentUnit}))}function a(u,m){var l=u.peek();if(u.match("/*"))return m.tokenizer=d(u.indentation(),!0),m.tokenizer(u,m);if(u.match("//"))return m.tokenizer=d(u.indentation(),!1),m.tokenizer(u,m);if(u.match("#{"))return m.tokenizer=B(a),"operator";if('"'===l||"'"===l)return u.next(),m.tokenizer=w(l),"string";if(m.cursorHalf){if("#"===l&&(u.next(),u.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||
|
|||
|
u.match(/^-?[0-9\.]+/))return A(u)&&(m.cursorHalf=0),"number";if(u.match(/^(px|em|in)\b/))return A(u)&&(m.cursorHalf=0),"unit";if(u.match(v))return A(u)&&(m.cursorHalf=0),"keyword";if(u.match(/^url/)&&"("===u.peek())return m.tokenizer=t,A(u)&&(m.cursorHalf=0),"atom";if("$"===l)return u.next(),u.eatWhile(/[\w-]/),A(u)&&(m.cursorHalf=0),"variable-2";if("!"===l)return u.next(),m.cursorHalf=0,u.match(/^[\w]+/)?"keyword":"operator";if(u.match(x))return A(u)&&(m.cursorHalf=0),"operator";if(u.eatWhile(/[\w-]/))return A(u)&&
|
|||
|
(m.cursorHalf=0),z=u.current().toLowerCase(),k.hasOwnProperty(z)?"atom":h.hasOwnProperty(z)?"keyword":r.hasOwnProperty(z)?(m.prevProp=u.current().toLowerCase(),"property"):"tag";if(A(u))return m.cursorHalf=0,null}else{if("-"===l&&u.match(/^-\w+-/))return"meta";if("."===l){u.next();if(u.match(/^[\w-]+/))return C(m),"qualifier";if("#"===u.peek())return C(m),"tag"}if("#"===l){u.next();if(u.match(/^[\w-]+/))return C(m),"builtin";if("#"===u.peek())return C(m),"tag"}if("$"===l)return u.next(),u.eatWhile(/[\w-]/),
|
|||
|
"variable-2";if(u.match(/^-?[0-9\.]+/))return"number";if(u.match(/^(px|em|in)\b/))return"unit";if(u.match(v))return"keyword";if(u.match(/^url/)&&"("===u.peek())return m.tokenizer=t,"atom";if("\x3d"===l&&u.match(/^=[\w-]+/))return C(m),"meta";if("+"===l&&u.match(/^\+[\w-]+/))return"variable-3";"@"===l&&u.match(/@extend/)&&!u.match(/\s*[\w]/)&&1!=m.scopes.length&&m.scopes.shift();if(u.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return C(m),"def";if("@"===l)return u.next(),u.eatWhile(/[\w-]/),
|
|||
|
"def";if(u.eatWhile(/[\w-]/)){if(u.match(/ *: *[\w-\+\$#!\("']/,!1))return z=u.current().toLowerCase(),r.hasOwnProperty(m.prevProp+"-"+z)?"property":r.hasOwnProperty(z)?(m.prevProp=z,"property"):f.hasOwnProperty(z)?"property":"tag";if(u.match(/ *:/,!1))return C(m),m.cursorHalf=1,m.prevProp=u.current().toLowerCase(),"property";u.match(/ *,/,!1)||C(m);return"tag"}if(":"===l){if(u.match(L))return"variable-3";u.next();m.cursorHalf=1;return"operator"}}if(u.match(x))return"operator";u.next();return null}
|
|||
|
var K=q.mimeModes["text/css"],r=K.propertyKeywords||{},h=K.colorKeywords||{},k=K.valueKeywords||{},f=K.fontProperties||{},v=RegExp("^true|false|null|auto"),x=RegExp("^\\(|\\)|\x3d|\x3e|\x3c|\x3d\x3d|\x3e\x3d|\x3c\x3d|\\+|-|\\!\x3d|/|\\*|%|and|or|not|;|\\{|\\}|:"),L=/^::?[a-zA-Z_][\w\-]*/,z;return{startState:function(){return{tokenizer:a,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(u,m){u.sol()&&(m.indentCount=0);var l=m.tokenizer(u,m),
|
|||
|
J=u.current();"@return"!==J&&"}"!==J||1==m.scopes.length||m.scopes.shift();if(null!==l){J=u.pos-J.length+R.indentUnit*m.indentCount;for(var X=[],F=0;F<m.scopes.length;F++){var ha=m.scopes[F];ha.offset<=J&&X.push(ha)}m.scopes=X}m.lastToken={style:l,content:u.current()};return l},indent:function(u){return u.scopes[0].offset}}},"css");q.defineMIME("text/x-sass","sass")})};
|
|||
|
shadow$provide[547]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("scheme",function(){function R(f){var v={};f=f.split(" ");for(var x=0;x<f.length;++x)v[f[x]]=!0;return v}function A(f,v,x){this.indent=f;this.type=v;this.prev=x}function t(f){return f.match(K)}function d(f){return f.match(r)}function w(f,v){!0===v&&f.backUp(1);return f.match(k)}function B(f){return f.match(h)}
|
|||
|
var C=R("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char-\x3einteger char-alphabetic? char-ci\x3c\x3d? char-ci\x3c? char-ci\x3d? char-ci\x3e\x3d? char-ci\x3e? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char\x3c\x3d? char\x3c? char\x3d? char\x3e\x3d? char\x3e? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact-\x3einexact exact? exp expt #f floor force gcd imag-part inexact-\x3eexact inexact? input-port? integer-\x3echar integer? interaction-environment lcm length list list-\x3estring list-\x3evector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number-\x3estring number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string-\x3elist string-\x3enumber string-\x3esymbol string-append string-ci\x3c\x3d? string-ci\x3c? string-ci\x3d? string-ci\x3e\x3d? string-ci\x3e? string-copy string-fill! string-length string-ref string-set! string\x3c\x3d? string\x3c? string\x3d? string\x3e\x3d? string\x3e? string? substring symbol-\x3estring symbol? #t tan transcript-off transcript-on truncate values vector vector-\x3elist vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),
|
|||
|
a=R("define let letrec let* lambda"),K=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),r=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),h=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),
|
|||
|
k=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);
|
|||
|
return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(f,v){null==v.indentStack&&f.sol()&&(v.indentation=f.indentation());if(f.eatSpace())return null;var x=null;switch(v.mode){case "string":var L;for(x=!1;null!=(L=f.next());){if('"'==L&&!x){v.mode=!1;break}x=!x&&"\\"==L}x="string";break;case "comment":for(x=!1;null!=(L=f.next());){if("#"==L&&x){v.mode=!1;break}x="|"==L}x="comment";break;case "s-expr-comment":if(v.mode=!1,"("==f.peek()||
|
|||
|
"["==f.peek())v.sExprComment=0;else{f.eatWhile(/[^\s\(\)\[\]]/);x="comment";break}default:if(L=f.next(),'"'==L)x=v.mode="string";else if("'"==L)"("==f.peek()||"["==f.peek()?"number"!=typeof v.sExprQuote&&(v.sExprQuote=0):f.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),x="atom";else if("#"==L)if(f.eat("|"))x=v.mode="comment";else if(f.eat(/[tf]/i))x="atom";else if(f.eat(";"))v.mode="s-expr-comment",x="comment";else{L=null;var z=!1,u=!0;f.eat(/[ei]/i)?z=!0:f.backUp(1);f.match(/^#b/i)?L=t:f.match(/^#o/i)?L=
|
|||
|
d:f.match(/^#x/i)?L=B:f.match(/^#d/i)?L=w:f.match(/^[-+0-9.]/,!1)?(u=!1,L=w):z||f.eat("#");null!=L&&(u&&!z&&f.match(/^#[ei]/i),L(f)&&(x="number"))}else if(/^[-+0-9.]/.test(L)&&w(f,!0))x="number";else if(";"==L)f.skipToEnd(),x="comment";else if("("==L||"["==L){x="";for(z=f.column();null!=(u=f.eat(/[^\s\(\[;\)\]]/));)x+=u;0<x.length&&a.propertyIsEnumerable(x)?v.indentStack=new A(z+2,L,v.indentStack):(f.eatSpace(),f.eol()||";"==f.peek()?v.indentStack=new A(z+1,L,v.indentStack):(x=z+f.current().length,
|
|||
|
v.indentStack=new A(x,L,v.indentStack)));f.backUp(f.current().length-1);"number"==typeof v.sExprComment&&v.sExprComment++;"number"==typeof v.sExprQuote&&v.sExprQuote++;x="bracket"}else")"==L||"]"==L?(x="bracket",null!=v.indentStack&&v.indentStack.type==(")"==L?"(":"[")&&(v.indentStack=v.indentStack.prev,"number"==typeof v.sExprComment&&0==--v.sExprComment&&(x="comment",v.sExprComment=!1),"number"==typeof v.sExprQuote&&0==--v.sExprQuote&&(x="atom",v.sExprQuote=!1))):(f.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),
|
|||
|
x=C&&C.propertyIsEnumerable(f.current())?"builtin":"variable")}return"number"==typeof v.sExprComment?"comment":"number"==typeof v.sExprQuote?"atom":x},indent:function(f){return null==f.indentStack?f.indentation:f.indentStack.indent},closeBrackets:{pairs:'()[]{}""'},lineComment:";;"}});q.defineMIME("text/x-scheme","scheme")})};
|
|||
|
shadow$provide[548]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("shell",function(){function R(h,k){for(var f=0;f<k.length;f++)B[k[f]]=h}function A(h,k){if(h.eatSpace())return null;var f=h.sol(),v=h.next();if("\\"===v)return h.next(),null;if("'"===v||'"'===v||"`"===v)return k.tokens.unshift(t(v,"`"===v?"quote":"string")),w(h,k);if("#"===v){if(f&&h.eat("!"))return h.skipToEnd(),
|
|||
|
"meta";h.skipToEnd();return"comment"}if("$"===v)return k.tokens.unshift(r),w(h,k);if("+"===v||"\x3d"===v)return"operator";if("-"===v)return h.eat("-"),h.eatWhile(/\w/),"attribute";if(/\d/.test(v)&&(h.eatWhile(/\d/),h.eol()||!/\w/.test(h.peek())))return"number";h.eatWhile(/[\w-]/);k=h.current();return"\x3d"===h.peek()&&/\w+/.test(k)?"def":B.hasOwnProperty(k)?B[k]:null}function t(h,k){var f="("==h?")":"{"==h?"}":h;return function(v,x){for(var L,z=!1;null!=(L=v.next());){if(L!==f||z)if("$"!==L||z||"'"===
|
|||
|
h||v.peek()==f){if(!z&&h!==f&&L===h)return x.tokens.unshift(t(h,k)),w(v,x);if(!z&&/['"]/.test(L)&&!/['"]/.test(h)){x.tokens.unshift(d(L,"string"));v.backUp(1);break}}else{v.backUp(1);x.tokens.unshift(r);break}else{x.tokens.shift();break}z=!z&&"\\"===L}return k}}function d(h,k){return function(f,v){v.tokens[0]=t(h,k);f.next();return w(f,v)}}function w(h,k){return(k.tokens[0]||A)(h,k)}var B={},C=["true","false"],a="if then do else elif while until for in esac fi fin fil done exit set unset export function".split(" "),
|
|||
|
K="ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep hg kill killall ln ls make mkdir openssl mv nc nl node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo svn tee telnet top touch vi vim wall wc wget who write yes zsh".split(" ");q.registerHelper("hintWords","shell",C.concat(a,K));R("atom",C);R("keyword",a);R("builtin",K);var r=function(h,k){1<k.tokens.length&&h.eat("$");var f=h.next();if(/['"({]/.test(f))return k.tokens[0]=
|
|||
|
t(f,"("==f?"quote":"{"==f?"def":"string"),w(h,k);/\d/.test(f)||h.eatWhile(/\w/);k.tokens.shift();return"def"};return{startState:function(){return{tokens:[]}},token:function(h,k){return w(h,k)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}});q.defineMIME("text/x-sh","shell");q.defineMIME("application/x-sh","shell")})};
|
|||
|
shadow$provide[549]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("sieve",function(R){function A(r){var h={};r=r.split(" ");for(var k=0;k<r.length;++k)h[r[k]]=!0;return h}function t(r,h){var k=r.next();if("/"==k&&r.eat("*"))return h.tokenize=w,w(r,h);if("#"===k)return r.skipToEnd(),"comment";if('"'==k)return h.tokenize=B(k),h.tokenize(r,h);if("("==
|
|||
|
k)return h._indent.push("("),h._indent.push("{"),null;if("{"===k)return h._indent.push("{"),null;")"==k&&(h._indent.pop(),h._indent.pop());if("}"===k)return h._indent.pop(),null;if(","==k||";"==k||/[{}\(\),;]/.test(k))return null;if(/\d/.test(k))return r.eatWhile(/[\d]/),r.eat(/[KkMmGg]/),"number";if(":"==k)return r.eatWhile(/[a-zA-Z_]/),r.eatWhile(/[a-zA-Z0-9_]/),"operator";r.eatWhile(/\w/);k=r.current();return"text"==k&&r.eat(":")?(h.tokenize=d,"string"):C.propertyIsEnumerable(k)?"keyword":a.propertyIsEnumerable(k)?
|
|||
|
"atom":null}function d(r,h){h._multiLineString=!0;if(!r.sol()){r.eatSpace();if("#"==r.peek())return r.skipToEnd(),"comment";r.skipToEnd();return"string"}"."==r.next()&&r.eol()&&(h._multiLineString=!1,h.tokenize=t);return"string"}function w(r,h){for(var k=!1,f;null!=(f=r.next());){if(k&&"/"==f){h.tokenize=t;break}k="*"==f}return"comment"}function B(r){return function(h,k){for(var f=!1,v;null!=(v=h.next())&&(v!=r||f);)f=!f&&"\\"==v;f||(k.tokenize=t);return"string"}}var C=A("if elsif else stop require"),
|
|||
|
a=A("true false not"),K=R.indentUnit;return{startState:function(r){return{tokenize:t,baseIndent:r||0,_indent:[]}},token:function(r,h){return r.eatSpace()?null:(h.tokenize||t)(r,h)},indent:function(r,h){r=r._indent.length;h&&"}"==h[0]&&r--;0>r&&(r=0);return r*K},electricChars:"}"}});q.defineMIME("application/sieve","sieve")})};
|
|||
|
shadow$provide[550]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(501)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],q):q(CodeMirror)})(function(q){q.defineMode("slim",function(R){function A(ya,Ha,Ua){var Ea=function(Oa,Xa){Xa.tokenize=Ha;return Oa.pos<ya?(Oa.pos=ya,Ua):Xa.tokenize(Oa,Xa)};return function(Oa,Xa){Xa.tokenize=Ea;return Ha(Oa,Xa)}}function t(ya,Ha){ya.stack={parent:ya.stack,
|
|||
|
style:"continuation",indented:Ha,tokenize:ya.line};ya.line=ya.tokenize}function d(ya){ya.line==ya.tokenize&&(ya.line=ya.stack.tokenize,ya.stack=ya.stack.parent)}function w(ya,Ha){return function(Ua,Ea){d(Ea);if(Ua.match(/^\\$/))return t(Ea,ya),"lineContinuation";Ea=Ha(Ua,Ea);Ua.eol()&&Ua.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&Ua.backUp(1);return Ea}}function B(ya,Ha){return function(Ua,Ea){d(Ea);var Oa=Ha(Ua,Ea);Ua.eol()&&Ua.current().match(/,$/)&&t(Ea,ya);return Oa}}function C(ya,Ha){return function(Ua,
|
|||
|
Ea){return Ua.peek()==ya&&1==Ea.rubyState.tokenize.length?(Ua.next(),Ea.tokenize=Ha,"closeAttributeTag"):K(Ua,Ea)}}function a(ya){var Ha,Ua=function(Ea,Oa){if(1==Oa.rubyState.tokenize.length&&!Oa.rubyState.context.prev){Ea.backUp(1);if(Ea.eatSpace())return Oa.rubyState=Ha,Oa.tokenize=ya,ya(Ea,Oa);Ea.next()}return K(Ea,Oa)};return function(Ea,Oa){Ha=Oa.rubyState;Oa.rubyState=q.startState(O);Oa.tokenize=Ua;return K(Ea,Oa)}}function K(ya,Ha){return O.token(ya,Ha.rubyState)}function r(ya,Ha){if(ya.match(/^#\{/))return Ha.tokenize=
|
|||
|
C("}",Ha.tokenize),null;var Ua=D.token(ya,Ha.htmlState),Ea=ya.current(),Oa=Ea.search(/[^\\]#\{/);-1<Oa&&(Ha.tokenize=A(ya.pos,Ha.tokenize,Ua),ya.backUp(Ea.length-Oa-1));return Ua}function h(ya){return function(Ha,Ua){var Ea=Ha.match(/^\\$/)?"lineContinuation":r(Ha,Ua);Ha.eol()&&(Ua.tokenize=ya);return Ea}}function k(ya,Ha,Ua){Ha.stack={parent:Ha.stack,style:"html",indented:ya.column()+Ua,tokenize:Ha.line};Ha.line=Ha.tokenize=r;return null}function f(ya,Ha){ya.skipToEnd();return Ha.stack.style}function v(ya,
|
|||
|
Ha){if(ya.eat(Ha.stack.endQuote))return Ha.line=Ha.stack.line,Ha.tokenize=Ha.stack.tokenize,Ha.stack=Ha.stack.parent,null;if(ya.match(ia))return Ha.tokenize=x,"slimAttribute";ya.next();return null}function x(ya,Ha){return ya.match(/^==?/)?(Ha.tokenize=L,null):v(ya,Ha)}function L(ya,Ha){var Ua=ya.peek();return'"'==Ua||"'"==Ua?(Ha.tokenize=M(Ua,"string",!0,!1,v),ya.next(),Ha.tokenize(ya,Ha)):"["==Ua?a(v)(ya,Ha):ya.match(/^(true|false|nil)\b/)?(Ha.tokenize=v,"keyword"):a(v)(ya,Ha)}function z(ya,Ha){if(ya.match(/^#\{/))return Ha.tokenize=
|
|||
|
C("}",Ha.tokenize),null;var Ua=new q.StringStream(ya.string.slice(Ha.stack.indented),ya.tabSize);Ua.pos=ya.pos-Ha.stack.indented;Ua.start=ya.start-Ha.stack.indented;Ua.lastColumnPos=ya.lastColumnPos-Ha.stack.indented;Ua.lastColumnValue=ya.lastColumnValue-Ha.stack.indented;var Ea=Ha.subMode.token(Ua,Ha.subState);ya.pos=Ua.pos+Ha.stack.indented;return Ea}function u(ya,Ha){Ha.stack.indented=ya.column();Ha.line=Ha.tokenize=z;return Ha.tokenize(ya,Ha)}function m(ya,Ha){ya.skipToEnd();return"slimDoctype"}
|
|||
|
function l(ya,Ha){if("\x3c"==ya.peek())return(Ha.tokenize=h(Ha.tokenize))(ya,Ha);if(ya.match(/^[|']/))return k(ya,Ha,1);if(ya.match(/^\/(!|\[\w+])?/))return Ha.stack={parent:Ha.stack,style:"comment",indented:Ha.indented+1,tokenize:Ha.line},Ha.line=f,f(ya,Ha);if(ya.match(/^(-|==?[<>]?)/))return Ha.tokenize=w(ya.column(),B(ya.column(),K)),"slimSwitch";if(ya.match(/^doctype\b/))return Ha.tokenize=m,"keyword";var Ua=ya.match(ba);if(Ua){ya=Ua[1];if(P.hasOwnProperty(ya))ya=P[ya];else{Ua=da[ya];var Ea=q.mimeModes[Ua];
|
|||
|
Ua=Ea?q.getMode(R,Ea):(Ea=q.modes[Ua])?Ea(R,{name:Ua}):q.getMode(R,"null");ya=P[ya]=Ua}Ua=q.startState(ya);Ha.subMode=ya;Ha.subState=Ua;Ha.stack={parent:Ha.stack,style:"sub",indented:Ha.indented+1,tokenize:Ha.line};Ha.line=Ha.tokenize=u;return"slimSubmode"}return X(ya,Ha)}function J(ya,Ha){return Ha.startOfLine?l(ya,Ha):X(ya,Ha)}function X(ya,Ha){return ya.eat("*")?(Ha.tokenize=a(F),null):ya.match(N)?(Ha.tokenize=F,"slimTag"):ha(ya,Ha)}function F(ya,Ha){return ya.match(/^(<>?|><?)/)?(Ha.tokenize=
|
|||
|
ha,null):ha(ya,Ha)}function ha(ya,Ha){return ya.match(qa)?(Ha.tokenize=ha,"slimId"):ya.match(ea)?(Ha.tokenize=ha,"slimClass"):T(ya,Ha)}function T(ya,Ha){return ya.match(/^([\[\{\(])/)?(Ha.stack={parent:Ha.stack,style:"wrapper",indented:Ha.indented+1,tokenize:T,line:Ha.line,endQuote:ja[RegExp.$1]},Ha.line=Ha.tokenize=v,null):ya.match(ca)?(Ha.tokenize=Z,"slimAttribute"):"*"==ya.peek()?(ya.next(),Ha.tokenize=a(S),null):S(ya,Ha)}function Z(ya,Ha){return ya.match(/^==?/)?(Ha.tokenize=E,null):T(ya,Ha)}
|
|||
|
function E(ya,Ha){var Ua=ya.peek();return'"'==Ua||"'"==Ua?(Ha.tokenize=M(Ua,"string",!0,!1,T),ya.next(),Ha.tokenize(ya,Ha)):"["==Ua?a(T)(ya,Ha):":"==Ua?a(aa)(ya,Ha):ya.match(/^(true|false|nil)\b/)?(Ha.tokenize=T,"keyword"):a(T)(ya,Ha)}function aa(ya,Ha){ya.backUp(1);if(ya.match(/^[^\s],(?=:)/))return Ha.tokenize=a(aa),null;ya.next();return T(ya,Ha)}function M(ya,Ha,Ua,Ea,Oa){return function(Xa,Ma){d(Ma);var eb=0==Xa.current().length;if(Xa.match(/^\\$/,eb)){if(!eb)return Ha;t(Ma,Ma.indented);return"lineContinuation"}if(Xa.match(/^#\{/,
|
|||
|
eb)){if(!eb)return Ha;Ma.tokenize=C("}",Ma.tokenize);return null}eb=!1;for(var db;null!=(db=Xa.next());){if(db==ya&&(Ea||!eb)){Ma.tokenize=Oa;break}if(Ua&&"#"==db&&!eb&&Xa.eat("{")){Xa.backUp(2);break}eb=!eb&&"\\"==db}Xa.eol()&&eb&&Xa.backUp(1);return Ha}}function S(ya,Ha){if(ya.match(/^==?/))return Ha.tokenize=K,"slimSwitch";if(ya.match(/^\/$/))return Ha.tokenize=J,null;if(ya.match(/^:/))return Ha.tokenize=X,"slimSwitch";k(ya,Ha,0);return Ha.tokenize(ya,Ha)}var D=q.getMode(R,{name:"htmlmixed"}),
|
|||
|
O=q.getMode(R,"ruby"),P={html:D,ruby:O},da={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},ba=function(ya){var Ha=[],Ua;for(Ua in ya)Ha.push(Ua);return new RegExp("^("+
|
|||
|
Ha.join("|")+"):")}(da),H={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},ja={"{":"}","[":"]","(":")"},N=RegExp("^[:_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>](?::[_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>\\-0-9·̀-ͯ‿-⁀]|[_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>\\-0-9·̀-ͯ‿-⁀]*)"),ca=RegExp("^[:_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>][:\\._a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>\\-0-9·̀-ͯ‿-⁀]*(?\x3d\\s*\x3d)"),
|
|||
|
ia=RegExp("^[:_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>][:\\._a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>\\-0-9·̀-ͯ‿-⁀]*"),ea=/^\.-?[_a-zA-Z]+[\w\-]*/,qa=/^#[_a-zA-Z]+[\w\-]*/,za={startState:function(){var ya=q.startState(D),Ha=q.startState(O);return{htmlState:ya,rubyState:Ha,stack:null,last:null,tokenize:J,line:J,indented:0}},copyState:function(ya){return{htmlState:q.copyState(D,ya.htmlState),rubyState:q.copyState(O,ya.rubyState),subMode:ya.subMode,subState:ya.subMode&&q.copyState(ya.subMode,ya.subState),
|
|||
|
stack:ya.stack,last:ya.last,tokenize:ya.tokenize,line:ya.line}},token:function(ya,Ha){if(ya.sol())for(Ha.indented=ya.indentation(),Ha.startOfLine=!0,Ha.tokenize=Ha.line;Ha.stack&&Ha.stack.indented>Ha.indented&&"slimSubmode"!=Ha.last;)Ha.line=Ha.tokenize=Ha.stack.tokenize,Ha.stack=Ha.stack.parent,Ha.subMode=null,Ha.subState=null;if(ya.eatSpace())return null;ya=Ha.tokenize(ya,Ha);Ha.startOfLine=!1;ya&&(Ha.last=ya);return H.hasOwnProperty(ya)?H[ya]:ya},blankLine:function(ya){if(ya.subMode&&ya.subMode.blankLine)return ya.subMode.blankLine(ya.subState)},
|
|||
|
innerMode:function(ya){return ya.subMode?{state:ya.subState,mode:ya.subMode}:{state:ya,mode:za}}};return za},"htmlmixed","ruby");q.defineMIME("text/x-slim","slim");q.defineMIME("application/x-slim","slim")})};
|
|||
|
shadow$provide[551]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("smalltalk",function(R){var A=/[+\-\/\\*~<>=@%|&?!.,:;^]/,t=/true|false|nil|self|super|thisContext/,d=function(k,f){this.next=k;this.parent=f},w=function(k,f,v){this.name=k;this.context=f;this.eos=v},B=function(){this.context=new d(C,null);this.expectVariable=!0;this.userIndentationDelta=
|
|||
|
this.indentation=0};B.prototype.userIndent=function(k){this.userIndentationDelta=0<k?k/R.indentUnit-this.indentation:0};var C=function(k,f,v){var x=new w(null,f,!1),L=k.next();'"'===L?x=a(k,new d(a,f)):"'"===L?x=K(k,new d(K,f)):"#"===L?"'"===k.peek()?(k.next(),x=r(k,new d(r,f))):k.eatWhile(/[^\s.{}\[\]()]/)?x.name="string-2":x.name="meta":"$"===L?("\x3c"===k.next()&&(k.eatWhile(/[^\s>]/),k.next()),x.name="string-2"):"|"===L&&v.expectVariable?x.context=new d(h,f):/[\[\]{}()]/.test(L)?(x.name="bracket",
|
|||
|
x.eos=/[\[{(]/.test(L),"["===L?v.indentation++:"]"===L&&(v.indentation=Math.max(0,v.indentation-1))):A.test(L)?(k.eatWhile(A),x.name="operator",x.eos=";"!==L):/\d/.test(L)?(k.eatWhile(/[\w\d]/),x.name="number"):/[\w_]/.test(L)?(k.eatWhile(/[\w\d_]/),x.name=v.expectVariable?t.test(k.current())?"keyword":"variable":null):x.eos=v.expectVariable;return x},a=function(k,f){k.eatWhile(/[^"]/);return new w("comment",k.eat('"')?f.parent:f,!0)},K=function(k,f){k.eatWhile(/[^']/);return new w("string",k.eat("'")?
|
|||
|
f.parent:f,!1)},r=function(k,f){k.eatWhile(/[^']/);return new w("string-2",k.eat("'")?f.parent:f,!1)},h=function(k,f){var v=new w(null,f,!1);"|"===k.next()?(v.context=f.parent,v.eos=!0):(k.eatWhile(/[^|]/),v.name="variable");return v};return{startState:function(){return new B},token:function(k,f){f.userIndent(k.indentation());if(k.eatSpace())return null;k=f.context.next(k,f.context,f);f.context=k.context;f.expectVariable=k.eos;return k.name},blankLine:function(k){k.userIndent(0)},indent:function(k,
|
|||
|
f){f=k.context.next===C&&f&&"]"===f.charAt(0)?-1:k.userIndentationDelta;return(k.indentation+f)*R.indentUnit},electricChars:"]"}});q.defineMIME("text/x-stsrc",{name:"smalltalk"})})};
|
|||
|
shadow$provide[552]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("smarty",function(R,A){function t(x,L){v=L;return x}function d(x,L){for(var z=x.string,u=x.pos;;){var m=z.indexOf(K,u);u=m+K.length;var l;(l=-1==m)||(l=m+K.length,null==l&&(l=x.pos),l=!(3===r&&"{"==K&&(l==x.string.length||/\s/.test(x.string.charAt(l)))));if(l)break}if(m==x.pos){x.match(K);
|
|||
|
if(x.eat("*"))return z=C("comment","*"+a),L.tokenize=z,z(x,L);L.depth++;L.tokenize=w;v="startTag";return"tag"}-1<m&&(x.string=z.slice(0,m));L=h.token(x,L.base);-1<m&&(x.string=z);return L}function w(x,L){if(x.match(a,!0))return 3===r?(L.depth--,0>=L.depth&&(L.tokenize=d)):L.tokenize=d,t("tag",null);if(x.match(K,!0))return L.depth++,t("tag","startTag");var z=x.next();if("$"==z)return x.eatWhile(f.validIdentifier),t("variable-2","variable");if("|"==z)return t("operator","pipe");if("."==z)return t("operator",
|
|||
|
"property");if(f.stringChar.test(z))return L.tokenize=B(z),t("string","string");if(f.operatorChars.test(z))return x.eatWhile(f.operatorChars),t("operator","operator");if("["==z||"]"==z)return t("bracket","bracket");if("("==z||")"==z)return t("bracket","operator");if(/\d/.test(z))return x.eatWhile(/\d/),t("number","number");if("variable"==L.last){if("@"==z)return x.eatWhile(f.validIdentifier),t("property","property");if("|"==z)return x.eatWhile(f.validIdentifier),t("qualifier","modifier")}else{if("pipe"==
|
|||
|
L.last)return x.eatWhile(f.validIdentifier),t("qualifier","modifier");if("whitespace"==L.last)return x.eatWhile(f.validIdentifier),t("attribute","modifier")}if("property"==L.last)return x.eatWhile(f.validIdentifier),t("property",null);if(/\s/.test(z))return v="whitespace",null;L="";"/"!=z&&(L+=z);for(var u;u=x.eat(f.validIdentifier);)L+=u;x=0;for(u=k.length;x<u;x++)if(k[x]==L)return t("keyword","keyword");return/\s/.test(z)?null:t("tag","tag")}function B(x){return function(L,z){for(var u=null,m;!L.eol();){m=
|
|||
|
L.peek();if(L.next()==x&&"\\"!==u){z.tokenize=w;break}u=m}return"string"}}function C(x,L){return function(z,u){for(;!z.eol();){if(z.match(L)){u.tokenize=d;break}z.next()}return x}}var a=A.rightDelimiter||"}",K=A.leftDelimiter||"{",r=A.version||2,h=q.getMode(R,A.baseMode||"null"),k=["debug","extends","function","include","literal"],f={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},v;return{startState:function(){return{base:q.startState(h),tokenize:d,last:null,depth:0}},
|
|||
|
copyState:function(x){return{base:q.copyState(h,x.base),tokenize:x.tokenize,last:x.last,depth:x.depth}},innerMode:function(x){if(x.tokenize==d)return{mode:h,state:x.base}},token:function(x,L){x=L.tokenize(x,L);L.last=v;return x},indent:function(x,L,z){return x.tokenize==d&&h.indent?h.indent(x.base,L,z):q.Pass},blockCommentStart:K+"*",blockCommentEnd:"*"+a}});q.defineMIME("text/x-smarty","smarty")})};
|
|||
|
shadow$provide[553]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("solr",function(){function R(a){return function(K,r){for(var h=!1,k;null!=(k=K.next())&&(k!=a||h);)h=!h&&"\\"==k;h||(r.tokenize=d);return"string"}}function A(a){return function(K,r){var h="operator";"+"==a?h+=" positive":"-"==a?h+=" negative":"|"==a?K.eat(/\|/):"\x26"==a?K.eat(/&/):"^"==
|
|||
|
a&&(h+=" boost");r.tokenize=d;return h}}function t(a){return function(K,r){for(var h=a;(a=K.peek())&&null!=a.match(w);)h+=K.next();r.tokenize=d;if(C.test(h))return"operator";r=h;return parseFloat(r).toString()===r?"number":":"==K.peek()?"field":"string"}}function d(a,K){var r=a.next();'"'==r?K.tokenize=R(r):B.test(r)?K.tokenize=A(r):w.test(r)&&(K.tokenize=t(r));return K.tokenize!=d?K.tokenize(a,K):null}var w=/[^\s\|!\+\-\*\?~\^&:\(\)\[\]\{\}"\\]/,B=/[\|!\+\-\*\?~\^&]/,C=/^(OR|AND|NOT|TO)$/i;return{startState:function(){return{tokenize:d}},
|
|||
|
token:function(a,K){return a.eatSpace()?null:K.tokenize(a,K)}}});q.defineMIME("text/x-solr","solr")})};
|
|||
|
shadow$provide[554]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed"],q):q(CodeMirror)})(function(q){var R={noEndTag:!0,soyState:"param-def"},A={alias:{noEndTag:!0},delpackage:{noEndTag:!0},namespace:{noEndTag:!0,soyState:"namespace-def"},"@param":R,"@param?":R,"@inject":R,"@inject?":R,"@state":R,template:{soyState:"templ-def",variableScope:!0},literal:{},msg:{},fallbackmsg:{noEndTag:!0,
|
|||
|
reduceIndent:!0},select:{},plural:{},let:{soyState:"var-def"},"if":{},elseif:{noEndTag:!0,reduceIndent:!0},"else":{noEndTag:!0,reduceIndent:!0},"switch":{},"case":{noEndTag:!0,reduceIndent:!0},"default":{noEndTag:!0,reduceIndent:!0},foreach:{variableScope:!0,soyState:"for-loop"},ifempty:{noEndTag:!0,reduceIndent:!0},"for":{variableScope:!0,soyState:"for-loop"},call:{soyState:"templ-ref"},param:{soyState:"param-ref"},print:{noEndTag:!0},deltemplate:{soyState:"templ-def",variableScope:!0},delcall:{soyState:"templ-ref"},
|
|||
|
log:{},element:{variableScope:!0}},t=Object.keys(A).filter(function(d){return!A[d].noEndTag||A[d].reduceIndent});q.defineMode("soy",function(d){function w(v){return v[v.length-1]}function B(v,x,L){if(v.sol()){for(var z=0;z<x.indent&&v.eat(/\s/);z++);if(z)return null}z=v.string;if(L=L.exec(z.substr(v.pos)))v.string=z.substr(0,v.pos+L.index);L=v.hideFirstChars(x.indent,function(){var u=w(x.localStates);return u.mode.token(v,u.state)});v.string=z;return L}function C(v,x){return{element:x,next:v}}function a(v){v.context&&
|
|||
|
(v.context.scope&&(v.variables=v.context.scope),v.context=v.context.previousContext)}function K(v,x,L){a:{for(;v;){if(v.element===x){x=!0;break a}v=v.next}x=!1}return x?"variable-2":L?"variable":"variable-2 error"}function r(v,x,L){this.previousContext=v;this.tag=x;this.kind=null;this.scope=L}function h(v,x){var L;if(v.match(/[[]/))return x.soyState.push("list-literal"),x.context=new r(x.context,"list-literal",x.variables),x.lookupVariables=!1,null;if(v.match(/map\b/))return x.soyState.push("map-literal"),
|
|||
|
"keyword";if(v.match(/record\b/))return x.soyState.push("record-literal"),"keyword";if(v.match(/([\w]+)(?=\()/))return"variable callee";if(L=v.match(/^["']/))return x.soyState.push("string"),x.quoteKind=L[0],"string";if(v.match(/^[(]/))return x.soyState.push("open-parentheses"),null;if(v.match(/(null|true|false)(?!\w)/)||v.match(/0x([0-9a-fA-F]{2,})/)||v.match(/-?([0-9]*[.])?[0-9]+(e[0-9]*)?/))return"atom";if(v.match(/(\||[+\-*\/%]|[=!]=|\?:|[<>]=?)/))return"operator";if(L=v.match(/^\$([\w]+)/))return K(x.variables,
|
|||
|
L[1],!x.lookupVariables);if(L=v.match(/^\w+/))return/^(?:as|and|or|not|in|if)$/.test(L[0])?"keyword":null;v.next();return null}var k=q.getMode(d,"text/plain"),f={html:q.getMode(d,{name:"text/html",multilineTagIndentFactor:2,multilineTagIndentPastTag:!1}),attributes:k,text:k,uri:k,trusted_resource_uri:k,css:q.getMode(d,"text/css"),js:q.getMode(d,{name:"text/javascript",statementIndent:2*d.indentUnit})};return{startState:function(){return{soyState:[],variables:C(null,"ij"),scopes:null,indent:0,quoteKind:null,
|
|||
|
context:null,lookupVariables:!0,localStates:[{mode:f.html,state:q.startState(f.html)}]}},copyState:function(v){return{tag:v.tag,soyState:v.soyState.concat([]),variables:v.variables,context:v.context,indent:v.indent,quoteKind:v.quoteKind,lookupVariables:v.lookupVariables,localStates:v.localStates.map(function(x){return{mode:x.mode,state:q.copyState(x.mode,x.state)}})}},token:function(v,x){var L;switch(w(x.soyState)){case "comment":v.match(/^.*?\*\//)?x.soyState.pop():v.skipToEnd();if(!x.context||!x.context.scope)for(var z=
|
|||
|
/@param\??\s+(\S+)/g,u=v.current();L=z.exec(u);)x.variables=C(x.variables,L[1]);return"comment";case "string":return L=v.match(/^.*?(["']|\\[\s\S])/),L?L[1]==x.quoteKind&&(x.quoteKind=null,x.soyState.pop()):v.skipToEnd(),"string"}if(!x.soyState.length||"literal"!=w(x.soyState)){if(v.match(/^\/\*/))return x.soyState.push("comment"),"comment";if(v.match(v.sol()?/^\s*\/\/.*/:/^\s+\/\/.*/))return"comment"}switch(w(x.soyState)){case "templ-def":if(v.match(/^\.?([\w]+(?!\.[\w]+)*)/))return x.soyState.pop(),
|
|||
|
"def";v.next();return null;case "templ-ref":if(L=v.match(/(\.?[a-zA-Z_][a-zA-Z_0-9]+)+/))return x.soyState.pop(),"."==L[0][0]?"variable-2":"variable";if(L=v.match(/^\$([\w]+)/))return x.soyState.pop(),K(x.variables,L[1],!x.lookupVariables);v.next();return null;case "namespace-def":if(v.match(/^\.?([\w\.]+)/))return x.soyState.pop(),"variable";v.next();return null;case "param-def":if(L=v.match(/^\w+/))return x.variables=C(x.variables,L[0]),x.soyState.pop(),x.soyState.push("param-type"),"def";v.next();
|
|||
|
return null;case "param-ref":if(v.match(/^\w+/))return x.soyState.pop(),"property";v.next();return null;case "open-parentheses":return v.match(/[)]/)?(x.soyState.pop(),null):h(v,x);case "param-type":z=v.peek();if(-1!="}]\x3d\x3e,".indexOf(z))return x.soyState.pop(),null;if("["==z)return x.soyState.push("param-type-record"),null;if("("==z)return x.soyState.push("param-type-template"),null;if("\x3c"==z)return x.soyState.push("param-type-parameter"),null;if(v.match(/^([\w]+|[?])/))return"type";v.next();
|
|||
|
return null;case "param-type-record":z=v.peek();if("]"==z)return x.soyState.pop(),null;if(v.match(/^\w+/))return x.soyState.push("param-type"),"property";v.next();return null;case "param-type-parameter":if(v.match(/^[>]/))return x.soyState.pop(),null;if(v.match(/^[<,]/))return x.soyState.push("param-type"),null;v.next();return null;case "param-type-template":if(v.match(/[>]/))return x.soyState.pop(),x.soyState.push("param-type"),null;if(v.match(/^\w+/))return x.soyState.push("param-type"),"def";v.next();
|
|||
|
return null;case "var-def":if(L=v.match(/^\$([\w]+)/))return x.variables=C(x.variables,L[1]),x.soyState.pop(),"def";v.next();return null;case "for-loop":if(v.match(/\bin\b/))return x.soyState.pop(),"keyword";if("$"==v.peek())return x.soyState.push("var-def"),null;v.next();return null;case "record-literal":if(v.match(/^[)]/))return x.soyState.pop(),null;if(v.match(/[(,]/))return x.soyState.push("map-value"),x.soyState.push("record-key"),null;v.next();return null;case "map-literal":if(v.match(/^[)]/))return x.soyState.pop(),
|
|||
|
null;if(v.match(/[(,]/))return x.soyState.push("map-value"),x.soyState.push("map-value"),null;v.next();return null;case "list-literal":return v.match(/\]/)?(x.soyState.pop(),x.lookupVariables=!0,a(x),null):v.match(/\bfor\b/)?(x.lookupVariables=!0,x.soyState.push("for-loop"),"keyword"):h(v,x);case "record-key":if(v.match(/[\w]+/))return"property";if(v.match(/^[:]/))return x.soyState.pop(),null;v.next();return null;case "map-value":return")"==v.peek()||","==v.peek()||v.match(/^[:)]/)?(x.soyState.pop(),
|
|||
|
null):h(v,x);case "import":if(v.eat(";"))return x.soyState.pop(),x.indent-=2*d.indentUnit,null;if(v.match(/\w+(?=\s+as)/))return"variable";if(L=v.match(/\w+/))return/(from|as)/.test(L[0])?"keyword":"def";if(L=v.match(/^["']/))return x.soyState.push("string"),x.quoteKind=L[0],"string";v.next();return null;case "tag":return u=(z="/"==x.tag[0])?x.tag.substring(1):x.tag,v.match(/^\/?}/)?((u="/}"==v.current())&&!z&&a(x),"/template"==x.tag||"/deltemplate"==x.tag?(x.variables=C(null,"ij"),x.indent=0):x.indent-=
|
|||
|
d.indentUnit*(u||-1==t.indexOf(x.tag)?2:1),x.soyState.pop(),"keyword"):v.match(/^([\w?]+)(?==)/)?(x.context&&x.context.tag==u&&"kind"==v.current()&&(L=v.match(/^="([^"]+)/,!1))&&(z=L[1],x.context.kind=z,u=f[z]||f.html,z=w(x.localStates),z.mode.indent&&(x.indent+=z.mode.indent(z.state,"","")),x.localStates.push({mode:u,state:q.startState(u)})),"attribute"):h(v,x);case "literal":return v.match(/^(?=\{\/literal})/)?(x.soyState.pop(),this.token(v,x)):B(v,x,/\{\/literal}/)}if(v.match(/^\{literal}/))return x.indent+=
|
|||
|
d.indentUnit,x.soyState.push("literal"),x.context=new r(x.context,"literal",x.variables),"keyword";if(L=v.match(/^\{([/@\\]?\w+\??)(?=$|[\s}]|\/[/*])/)){v=x.tag;x.tag=L[1];z="/"==x.tag[0];var m=!!A[x.tag];u=z?x.tag.substring(1):x.tag;L=A[u];"/switch"!=x.tag&&(x.indent+=((z||L&&L.reduceIndent)&&"switch"!=v?1:2)*d.indentUnit);x.soyState.push("tag");v=!1;L?(z||L.soyState&&x.soyState.push(L.soyState),L.noEndTag||!m&&z)?z&&(x.context&&x.context.tag==u?x.context&&(x.context.kind&&(x.localStates.pop(),z=
|
|||
|
w(x.localStates),z.mode.indent&&(x.indent-=z.mode.indent(z.state,"",""))),a(x)):v=!0):x.context=new r(x.context,x.tag,L.variableScope?x.variables:null):z&&(v=!0);return(v?"error ":"")+"keyword"}return v.eat("{")?(x.tag="print",x.indent+=2*d.indentUnit,x.soyState.push("tag"),"keyword"):!x.context&&v.match(/\bimport\b/)?(x.soyState.push("import"),x.indent+=2*d.indentUnit,"keyword"):B(v,x,/\{|\s+\/\/|\/\*/)},indent:function(v,x,L){var z=v.indent,u=w(v.soyState);if("comment"==u)return q.Pass;if("literal"==
|
|||
|
u)/^\{\/literal}/.test(x)&&(z-=d.indentUnit);else{if(/^\s*\{\/(template|deltemplate)\b/.test(x))return 0;/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(x)&&(z-=d.indentUnit);"switch"!=v.tag&&/^\{(case|default)\b/.test(x)&&(z-=d.indentUnit);/^\{\/switch\b/.test(x)&&(z-=d.indentUnit)}v=w(v.localStates);z&&v.mode.indent&&(z+=v.mode.indent(v.state,x,L));return z},innerMode:function(v){return v.soyState.length&&"literal"!=w(v.soyState)?null:w(v.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,
|
|||
|
lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",useInnerComments:!1,fold:"indent"}},"htmlmixed");q.registerHelper("wordChars","soy",/[\w$]/);q.registerHelper("hintWords","soy",Object.keys(A).concat(["css","debugger"]));q.defineMIME("text/x-soy","soy")})};
|
|||
|
shadow$provide[555]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("sparql",function(R){function A(h,k){var f=h.next();C=null;if("$"==f||"?"==f){if("?"==f&&h.match(/\s/,!1))return"operator";h.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/);
|
|||
|
return"variable-2"}if("\x3c"!=f||h.match(/^[\s\u00a0=]/,!1)){if('"'==f||"'"==f)return k.tokenize=t(f),k.tokenize(h,k);if(/[{}\(\),\.;\[\]]/.test(f))return C=f,"bracket";if("#"==f)return h.skipToEnd(),"comment";if(r.test(f))return h.eatWhile(r),"operator";if(":"==f)return h.eatWhile(/[\w\d\._\-]/),"atom";if("@"==f)return h.eatWhile(/[a-z\d\-]/i),"meta";h.eatWhile(/[_\w\d]/);if(h.eat(":"))return h.eatWhile(/[\w\d_\-]/),"atom";h=h.current();return a.test(h)?"builtin":K.test(h)?"keyword":"variable"}h.match(/^[^\s\u00a0>]*>?/);
|
|||
|
return"atom"}function t(h){return function(k,f){for(var v=!1,x;null!=(x=k.next());){if(x==h&&!v){f.tokenize=A;break}v=!v&&"\\"==x}return"string"}}function d(h,k,f){h.context={prev:h.context,indent:h.indent,col:f,type:k}}function w(h){h.indent=h.context.indent;h.context=h.context.prev}var B=R.indentUnit,C,a=RegExp("^(?:str|lang|langmatches|datatype|bound|sameterm|isiri|isuri|iri|uri|bnode|count|sum|min|max|avg|sample|group_concat|rand|abs|ceil|floor|round|concat|substr|strlen|replace|ucase|lcase|encode_for_uri|contains|strstarts|strends|strbefore|strafter|year|month|day|hours|minutes|seconds|timezone|tz|now|uuid|struuid|md5|sha1|sha256|sha384|sha512|coalesce|if|strlang|strdt|isnumeric|regex|exists|isblank|isliteral|a|bind)$",
|
|||
|
"i"),K=RegExp("^(?:base|prefix|select|distinct|reduced|construct|describe|ask|from|named|where|order|limit|offset|filter|optional|graph|by|asc|desc|as|having|undef|values|group|minus|in|not|service|silent|using|insert|delete|union|true|false|with|data|copy|to|move|add|create|drop|clear|load)$","i"),r=/[*+\-<>=&|\^\/!\?]/;return{startState:function(){return{tokenize:A,context:null,indent:0,col:0}},token:function(h,k){h.sol()&&(k.context&&null==k.context.align&&(k.context.align=!1),k.indent=h.indentation());
|
|||
|
if(h.eatSpace())return null;var f=k.tokenize(h,k);"comment"!=f&&k.context&&null==k.context.align&&"pattern"!=k.context.type&&(k.context.align=!0);if("("==C)d(k,")",h.column());else if("["==C)d(k,"]",h.column());else if("{"==C)d(k,"}",h.column());else if(/[\]\}\)]/.test(C)){for(;k.context&&"pattern"==k.context.type;)w(k);k.context&&C==k.context.type&&(w(k),"}"==C&&k.context&&"pattern"==k.context.type&&w(k))}else"."==C&&k.context&&"pattern"==k.context.type?w(k):/atom|string|variable/.test(f)&&k.context&&
|
|||
|
(/[\}\]]/.test(k.context.type)?d(k,"pattern",h.column()):"pattern"!=k.context.type||k.context.align||(k.context.align=!0,k.context.col=h.column()));return f},indent:function(h,k){k=k&&k.charAt(0);h=h.context;if(/[\]\}]/.test(k))for(;h&&"pattern"==h.type;)h=h.prev;k=h&&k==h.type;return h?"pattern"==h.type?h.col:h.align?h.col+(k?0:1):h.indent+(k?0:B):0},lineComment:"#"}});q.defineMIME("application/sparql-query","sparql")})};
|
|||
|
shadow$provide[556]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("spreadsheet",function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(R,A){if(R){0!==A.stack.length||'"'!=R.peek()&&"'"!=R.peek()||(A.stringType=R.peek(),R.next(),A.stack.unshift("string"));switch(A.stack[0]){case "string":for(;"string"===A.stack[0]&&
|
|||
|
!R.eol();)R.peek()===A.stringType?(R.next(),A.stack.shift()):"\\"===R.peek()?(R.next(),R.next()):R.match(/^.[^\\"']*/);return"string";case "characterClass":for(;"characterClass"===A.stack[0]&&!R.eol();)R.match(/^[^\]\\]+/)||R.match(/^\\./)||A.stack.shift();return"operator"}var t=R.peek();switch(t){case "[":return R.next(),A.stack.unshift("characterClass"),"bracket";case ":":return R.next(),"operator";case "\\":if(R.match(/\\[a-z]+/))return"string-2";R.next();return"atom";case ".":case ",":case ";":case "*":case "-":case "+":case "^":case "\x3c":case "/":case "\x3d":return R.next(),
|
|||
|
"atom";case "$":return R.next(),"builtin"}if(R.match(/\d+/))return R.match(/^\w+/)?"error":"number";if(R.match(/^[a-zA-Z_]\w*/))return R.match(/(?=[\(.])/,!1)?"keyword":"variable-2";if(-1!="[](){}".split("").indexOf(t))return R.next(),"bracket";R.eatSpace()||R.next();return null}}}});q.defineMIME("text/x-spreadsheet","spreadsheet")})};
|
|||
|
shadow$provide[557]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(C){for(var a;null!=(a=C.next());)if("`"==a&&!C.eat("`"))return"variable-2";C.backUp(C.current().length-1);return C.eatWhile(/\w/)?"variable-2":null}function A(C){C.eat("@")&&(C.match(/^session\./),C.match(/^local\./),C.match(/^global\./));return C.eat("'")?(C.match(/^.*'/),"variable-2"):
|
|||
|
C.eat('"')?(C.match(/^.*"/),"variable-2"):C.eat("`")?(C.match(/^.*`/),"variable-2"):C.match(/^[0-9a-zA-Z$\._]+/)?"variable-2":null}function t(C){return C.eat("N")?"atom":C.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function d(C){var a={};C=C.split(" ");for(var K=0;K<C.length;++K)a[C[K]]=!0;return a}q.defineMode("sql",function(C,a){function K(ha,T){var Z=ha.next();if(m[Z]){var E=m[Z](ha,T);if(!1!==E)return E}if(u.hexNumber&&("0"==Z&&ha.match(/^[xX][0-9a-fA-F]+/)||("x"==Z||"X"==Z)&&ha.match(/^'[0-9a-fA-F]+'/))||
|
|||
|
u.binaryNumber&&(("b"==Z||"B"==Z)&&ha.match(/^'[01]+'/)||"0"==Z&&ha.match(/^b[01]+/)))return"number";if(47<Z.charCodeAt(0)&&58>Z.charCodeAt(0))return ha.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),u.decimallessFloat&&ha.match(/^\.(?!\.)/),"number";if("?"==Z&&(ha.eatSpace()||ha.eol()||ha.eat(";")))return"variable-3";if("'"==Z||'"'==Z&&u.doubleQuote)return T.tokenize=r(Z),T.tokenize(ha,T);if(!(u.nCharCast&&("n"==Z||"N"==Z)||u.charsetCast&&"_"==Z&&ha.match(/[a-z][a-z0-9]*/i))||"'"!=ha.peek()&&'"'!=
|
|||
|
ha.peek()){if(u.escapeConstant&&("e"==Z||"E"==Z)&&("'"==ha.peek()||'"'==ha.peek()&&u.doubleQuote))return T.tokenize=function(aa,M){return(M.tokenize=r(aa.next(),!0))(aa,M)},"keyword";if(u.commentSlashSlash&&"/"==Z&&ha.eat("/")||u.commentHash&&"#"==Z||"-"==Z&&ha.eat("-")&&(!u.commentSpaceRequired||ha.eat(" ")))return ha.skipToEnd(),"comment";if("/"==Z&&ha.eat("*"))return T.tokenize=h(1),T.tokenize(ha,T);if("."==Z){if(u.zerolessFloat&&ha.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(ha.match(/^\.+/))return null;
|
|||
|
if(u.ODBCdotTable&&ha.match(/^[\w\d_$#]+/))return"variable-2"}else{if(z.test(Z))return ha.eatWhile(z),"operator";if(X.test(Z))return"bracket";if(F.test(Z))return ha.eatWhile(F),"punctuation";if("{"==Z&&(ha.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||ha.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";ha.eatWhile(/^[_\w\d]/);T=ha.current().toLowerCase();return l.hasOwnProperty(T)&&(ha.match(/^( )+'[^']*'/)||ha.match(/^( )+"[^"]*"/))?"number":v.hasOwnProperty(T)?"atom":x.hasOwnProperty(T)?
|
|||
|
"builtin":L.hasOwnProperty(T)?"keyword":f.hasOwnProperty(T)?"string-2":null}}else return"keyword"}function r(ha,T){return function(Z,E){for(var aa=!1,M;null!=(M=Z.next());){if(M==ha&&!aa){E.tokenize=K;break}aa=(J||T)&&!aa&&"\\"==M}return"string"}}function h(ha){return function(T,Z){var E=T.match(/^.*?(\/\*|\*\/)/);E?Z.tokenize="/*"==E[1]?h(ha+1):1<ha?h(ha-1):K:T.skipToEnd();return"comment"}}function k(ha,T,Z){T.context={prev:T.context,indent:ha.indentation(),col:ha.column(),type:Z}}var f=a.client||
|
|||
|
{},v=a.atoms||{"false":!0,"true":!0,"null":!0},x=a.builtin||d(B),L=a.keywords||d(w),z=a.operatorChars||/^[*+\-%<>!=&|~^\/]/,u=a.support||{},m=a.hooks||{},l=a.dateSQL||{date:!0,time:!0,timestamp:!0},J=!1!==a.backslashStringEscapes,X=a.brackets||/^[\{}\(\)\[\]]/,F=a.punctuation||/^[;.,:]/;return{startState:function(){return{tokenize:K,context:null}},token:function(ha,T){ha.sol()&&T.context&&null==T.context.align&&(T.context.align=!1);if(T.tokenize==K&&ha.eatSpace())return null;var Z=T.tokenize(ha,T);
|
|||
|
if("comment"==Z)return Z;T.context&&null==T.context.align&&(T.context.align=!0);var E=ha.current();"("==E?k(ha,T,")"):"["==E?k(ha,T,"]"):T.context&&T.context.type==E&&(T.indent=T.context.indent,T.context=T.context.prev);return Z},indent:function(ha,T){ha=ha.context;if(!ha)return q.Pass;T=T.charAt(0)==ha.type;return ha.align?ha.col+(T?0:1):ha.indent+(T?0:C.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:u.commentSlashSlash?"//":u.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});
|
|||
|
var w="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ",B="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";q.defineMIME("text/x-sql",
|
|||
|
{name:"sql",keywords:d(w+"begin"),builtin:d(B),atoms:d("false true null unknown"),dateSQL:d("date time timestamp"),support:d("ODBCdotTable doubleQuote binaryNumber hexNumber")});q.defineMIME("text/x-mssql",{name:"sql",client:d("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),
|
|||
|
keywords:d(w+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:d("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),
|
|||
|
atoms:d("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:d("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":A}});q.defineMIME("text/x-mysql",{name:"sql",client:d("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:d(w+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
|
|||
|
builtin:d("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:d("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:d("date time timestamp"),support:d("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
|
|||
|
hooks:{"@":A,"`":R,"\\":t}});q.defineMIME("text/x-mariadb",{name:"sql",client:d("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:d(w+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),
|
|||
|
builtin:d("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:d("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:d("date time timestamp"),support:d("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),
|
|||
|
hooks:{"@":A,"`":R,"\\":t}});q.defineMIME("text/x-sqlite",{name:"sql",client:d("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:d(w+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),
|
|||
|
builtin:d("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:d("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:d("date time timestamp datetime"),support:d("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":A,":":A,"?":A,$:A,'"':function(C){for(var a;null!=
|
|||
|
(a=C.next());)if('"'==a&&!C.eat('"'))return"variable-2";C.backUp(C.current().length-1);return C.eatWhile(/\w/)?"variable-2":null},"`":R}});q.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:d("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),
|
|||
|
builtin:d("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:d("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:d("commentSlashSlash decimallessFloat"),hooks:{}});q.defineMIME("text/x-plsql",{name:"sql",client:d("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),
|
|||
|
keywords:d("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),
|
|||
|
builtin:d("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),
|
|||
|
operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:d("date time timestamp"),support:d("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")});q.defineMIME("text/x-hive",{name:"sql",keywords:d("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),
|
|||
|
builtin:d("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:d("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:d("date timestamp"),support:d("ODBCdotTable doubleQuote binaryNumber hexNumber")});q.defineMIME("text/x-pgsql",{name:"sql",client:d("source"),keywords:d(w+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value
|
|||
|
builtin:d("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:d("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,
|
|||
|
dateSQL:d("date time timestamp"),support:d("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")});q.defineMIME("text/x-gql",{name:"sql",keywords:d("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:d("false true"),builtin:d("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/});q.defineMIME("text/x-gpsql",{name:"sql",client:d("source"),
|
|||
|
keywords:d("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),
|
|||
|
builtin:d("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:d("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,
|
|||
|
dateSQL:d("date time timestamp"),support:d("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")});q.defineMIME("text/x-sparksql",{name:"sql",keywords:d("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),
|
|||
|
builtin:d("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:d("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:d("date time timestamp"),support:d("ODBCdotTable doubleQuote zerolessFloat")});q.defineMIME("text/x-esper",{name:"sql",client:d("source"),keywords:d("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),
|
|||
|
builtin:{},atoms:d("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:d("time"),support:d("decimallessFloat zerolessFloat binaryNumber hexNumber")})})};
|
|||
|
shadow$provide[558]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(L){L=L.sort(function(z,u){return u>z});return new RegExp("^(("+L.join(")|(")+"))\\b")}function A(L){for(var z={},u=0;u<L.length;++u)z[L[u]]=!0;return z}q.defineMode("stylus",function(L){function z(Aa,Ja){eb=Aa.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|&|\[|\d|\+|::?|\{|>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);
|
|||
|
Ja.context.line.firstWord=eb?eb[0].replace(/^\s*/,""):"";Ja.context.line.indent=Aa.indentation();Na=Aa.peek();if(Aa.match("//"))return Aa.skipToEnd(),["comment","comment"];if(Aa.match("/*"))return Ja.tokenize=u,u(Aa,Ja);if('"'==Na||"'"==Na)return Aa.next(),Ja.tokenize=m(Na),Ja.tokenize(Aa,Ja);if("@"==Na)return Aa.next(),Aa.eatWhile(/[\w\\-]/),["def",Aa.current()];if("#"==Na){Aa.next();if(Aa.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(Aa.match(/^[a-z][\w-]*/i))return["builtin",
|
|||
|
"hash"]}if(Aa.match(Xa))return["meta","vendor-prefixes"];if(Aa.match(/^-?[0-9]?\.?[0-9]/))return Aa.eatWhile(/[a-z%]/i),["number","unit"];if("!"==Na)return Aa.next(),[Aa.match(/^(important|optional)/i)?"keyword":"operator","important"];if("."==Na&&Aa.match(/^\.[a-z][\w-]*/i))return["qualifier","qualifier"];if(Aa.match(qa))return"("==Aa.peek()&&(Ja.tokenize=l),["property","word"];if(Aa.match(/^[a-z][\w-]*\(/i))return Aa.backUp(1),["keyword","mixin"];if(Aa.match(/^(\+|-)[a-z][\w-]*\(/i))return Aa.backUp(1),
|
|||
|
["keyword","block-mixin"];if(Aa.string.match(/^\s*&/)&&Aa.match(/^[-_]+[a-z][\w-]*/))return["qualifier","qualifier"];if(Aa.match(/^(\/|&)(-|_|:|\.|#|[a-z])/))return Aa.backUp(1),["variable-3","reference"];if(Aa.match(/^&{1}\s*$/))return["variable-3","reference"];if(Aa.match(Ea))return["operator","operator"];if(Aa.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i))return Aa.match(/^(\.|\[)[\w-'"\]]+/i,!1)&&!T(Aa.current())?(Aa.match(/\./),["variable-2","variable-name"]):["variable-2","word"];if(Aa.match(Ua))return["operator",
|
|||
|
Aa.current()];if(/[:;,{}\[\]\(\)]/.test(Na))return Aa.next(),[null,Na];Aa.next();return[null,null]}function u(Aa,Ja){for(var Sa=!1,Ab;null!=(Ab=Aa.next());){if(Sa&&"/"==Ab){Ja.tokenize=null;break}Sa="*"==Ab}return["comment","comment"]}function m(Aa){return function(Ja,Sa){for(var Ab=!1,jb;null!=(jb=Ja.next());){if(jb==Aa&&!Ab){")"==Aa&&Ja.backUp(1);break}Ab=!Ab&&"\\"==jb}if(jb==Aa||!Ab&&")"!=Aa)Sa.tokenize=null;return["string","string"]}}function l(Aa,Ja){Aa.next();Aa.match(/\s*["')]/,!1)?Ja.tokenize=
|
|||
|
null:Ja.tokenize=m(")");return[null,"("]}function J(Aa,Ja,Sa,Ab){this.type=Aa;this.indent=Ja;this.prev=Sa;this.line=Ab||{firstWord:"",indent:0}}function X(Aa,Ja,Sa,Ab){Ab=0<=Ab?Ab:P;Aa.context=new J(Sa,Ja.indentation()+Ab,Aa.context);return Sa}function F(Aa,Ja){var Sa=Aa.context.indent-P;Aa.context=Aa.context.prev;Ja&&(Aa.context.indent=Sa);return Aa.context.type}function ha(Aa,Ja,Sa,Ab){for(Ab=Ab||1;0<Ab;Ab--)Sa.context=Sa.context.prev;return db[Sa.context.type](Aa,Ja,Sa)}function T(Aa){return Aa.toLowerCase()in
|
|||
|
ba}function Z(Aa){Aa=Aa.toLowerCase();return Aa in ja||Aa in Ha}function E(Aa){return Aa.toLowerCase()in Oa}function aa(Aa){var Ja=Aa.toLowerCase(),Sa="variable-2";T(Aa)?Sa="tag":E(Aa)?Sa="block-keyword":Z(Aa)?Sa="property":Ja in ca||Ja in Ma?Sa="atom":"return"==Ja||Ja in ia?Sa="keyword":Aa.match(/^[A-Z]/)&&(Sa="string");return Sa}function M(Aa,Ja){return D(Ja)&&("{"==Aa||"]"==Aa||"hash"==Aa||"qualifier"==Aa)||"block-mixin"==Aa}function S(Aa){return Aa.sol()||Aa.string.match(new RegExp("^\\s*"+Aa.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,
|
|||
|
"\\$\x26")))}function D(Aa){return Aa.eol()||Aa.match(/^\s*$/,!1)}function O(Aa){var Ja=/^\s*[-_]*[a-z0-9]+[\w-]*/i;return(Aa="string"==typeof Aa?Aa.match(Ja):Aa.string.match(Ja))?Aa[0].replace(/^\s*/,""):""}for(var P=L.indentUnit,da="",ba=A(t),H=/^(a|b|i|s|col|em)$/i,ja=A(C),N=A(a),ca=A(h),ia=A(r),ea=A(d),qa=R(d),za=A(B),ya=A(w),Ha=A(K),Ua=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|~)/,Ea=R(k),Oa=A(f),Xa=new RegExp(/^\-(moz|ms|o|webkit)-/i),Ma=A(v),eb="",db={},Na,oa,Ca,sa;da.length<P;)da+=
|
|||
|
" ";db.block=function(Aa,Ja,Sa){if("comment"==Aa&&S(Ja)||","==Aa&&D(Ja)||"mixin"==Aa)return X(Sa,Ja,"block",0);if("{"==Aa&&Ja.match(/^\s*\$?[\w-]+/i,!1))return X(Sa,Ja,"interpolation");if(D(Ja)&&"]"==Aa&&!/^\s*(\.|#|:|\[|\*|&)/.test(Ja.string)&&!T(O(Ja)))return X(Sa,Ja,"block",0);if(M(Aa,Ja))return X(Sa,Ja,"block");if("}"==Aa&&D(Ja))return X(Sa,Ja,"block",0);if("variable-name"==Aa)return Ja.string.match(/^\s?\$[\w-\.\[\]'"]+$/)||E(O(Ja))?X(Sa,Ja,"variableName"):X(Sa,Ja,"variableName",0);if("\x3d"==
|
|||
|
Aa)return D(Ja)||E(O(Ja))?X(Sa,Ja,"block"):X(Sa,Ja,"block",0);if("*"==Aa&&(D(Ja)||Ja.match(/\s*(,|\.|#|\[|:|{)/,!1)))return sa="tag",X(Sa,Ja,"block");if(":"==Aa&&Ja.match(/^[a-z-]+/,!1))return X(Sa,Ja,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(Aa))return X(Sa,Ja,D(Ja)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(Aa))return X(Sa,Ja,"keyframes");if(/@extends?/.test(Aa))return X(Sa,Ja,"extend",0);if(Aa&&"@"==Aa.charAt(0))return 0<Ja.indentation()&&Z(Ja.current().slice(1))?
|
|||
|
(sa="variable-2","block"):/(@import|@require|@charset)/.test(Aa)?X(Sa,Ja,"block",0):X(Sa,Ja,"block");if("reference"==Aa&&D(Ja))return X(Sa,Ja,"block");if("("==Aa)return X(Sa,Ja,"parens");if("vendor-prefixes"==Aa)return X(Sa,Ja,"vendorPrefixes");if("word"==Aa){Aa=Ja.current();sa=aa(Aa);if("property"==sa){if(S(Ja))return X(Sa,Ja,"block",0);sa="atom";return"block"}if("tag"==sa){if(/embed|menu|pre|progress|sub|table/.test(Aa)&&Z(O(Ja))||Ja.string.match(new RegExp("\\[\\s*"+Aa+"|"+Aa+"\\s*\\]")))return sa=
|
|||
|
"atom","block";if(H.test(Aa)&&(S(Ja)&&Ja.string.match(/=/)||!S(Ja)&&!Ja.string.match(/^(\s*\.|#|&|\[|\/|>|\*)/)&&!T(O(Ja))))return sa="variable-2",E(O(Ja))?"block":X(Sa,Ja,"block",0);if(D(Ja))return X(Sa,Ja,"block")}if("block-keyword"==sa)return sa="keyword",Ja.current(/(if|unless)/)&&!S(Ja)?"block":X(Sa,Ja,"block");if("return"==Aa)return X(Sa,Ja,"block",0);if("variable-2"==sa&&Ja.string.match(/^\s?\$[\w-\.\[\]'"]+$/))return X(Sa,Ja,"block")}return Sa.context.type};db.parens=function(Aa,Ja,Sa){if("("==
|
|||
|
Aa)return X(Sa,Ja,"parens");if(")"==Aa)return"parens"==Sa.context.prev.type?F(Sa):Ja.string.match(/^[a-z][\w-]*\(/i)&&D(Ja)||E(O(Ja))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(O(Ja))||!Ja.string.match(/^-?[a-z][\w-\.\[\]'"]*\s*=/)&&T(O(Ja))?X(Sa,Ja,"block"):Ja.string.match(/^[\$-]?[a-z][\w-\.\[\]'"]*\s*=/)||Ja.string.match(/^\s*(\(|\)|[0-9])/)||Ja.string.match(/^\s+[a-z][\w-]*\(/i)||Ja.string.match(/^\s+[\$-]?[a-z]/i)?X(Sa,Ja,"block",0):D(Ja)?X(Sa,Ja,"block"):X(Sa,Ja,"block",0);Aa&&"@"==Aa.charAt(0)&&Z(Ja.current().slice(1))&&
|
|||
|
(sa="variable-2");if("word"==Aa){var Ab=Ja.current();sa=aa(Ab);"tag"==sa&&H.test(Ab)&&(sa="variable-2");if("property"==sa||"to"==Ab)sa="atom"}return"variable-name"==Aa?X(Sa,Ja,"variableName"):":"==Aa&&Ja.match(/^[a-z-]+/,!1)?X(Sa,Ja,"pseudo"):Sa.context.type};db.vendorPrefixes=function(Aa,Ja,Sa){return"word"==Aa?(sa="property",X(Sa,Ja,"block",0)):F(Sa)};db.pseudo=function(Aa,Ja,Sa){return Z(O(Ja.string))?ha(Aa,Ja,Sa):(Ja.match(/^[a-z-]+/),sa="variable-3",D(Ja)?X(Sa,Ja,"block"):F(Sa))};db.atBlock=
|
|||
|
function(Aa,Ja,Sa){if("("==Aa)return X(Sa,Ja,"atBlock_parens");if(M(Aa,Ja))return X(Sa,Ja,"block");if("{"==Aa&&Ja.match(/^\s*\$?[\w-]+/i,!1))return X(Sa,Ja,"interpolation");if("word"==Aa){var Ab=Ja.current().toLowerCase();sa=/^(only|not|and|or)$/.test(Ab)?"keyword":ea.hasOwnProperty(Ab)?"tag":ya.hasOwnProperty(Ab)?"attribute":za.hasOwnProperty(Ab)?"property":N.hasOwnProperty(Ab)?"string-2":aa(Ja.current());if("tag"==sa&&D(Ja))return X(Sa,Ja,"block")}"operator"==Aa&&/^(not|and|or)$/.test(Ja.current())&&
|
|||
|
(sa="keyword");return Sa.context.type};db.atBlock_parens=function(Aa,Ja,Sa){return"{"==Aa||"}"==Aa?Sa.context.type:")"==Aa?D(Ja)?X(Sa,Ja,"block"):X(Sa,Ja,"atBlock"):"word"==Aa?(Aa=Ja.current().toLowerCase(),sa=aa(Aa),/^(max|min)/.test(Aa)&&(sa="property"),"tag"==sa&&(H.test(Aa)?sa="variable-2":sa="atom"),Sa.context.type):db.atBlock(Aa,Ja,Sa)};db.keyframes=function(Aa,Ja,Sa){return"0"==Ja.indentation()&&("}"==Aa&&S(Ja)||"]"==Aa||"hash"==Aa||"qualifier"==Aa||T(Ja.current()))?ha(Aa,Ja,Sa):"{"==Aa?X(Sa,
|
|||
|
Ja,"keyframes"):"}"==Aa?S(Ja)?F(Sa,!0):X(Sa,Ja,"keyframes"):"unit"==Aa&&/^[0-9]+%$/.test(Ja.current())?X(Sa,Ja,"keyframes"):"word"==Aa&&(sa=aa(Ja.current()),"block-keyword"==sa)?(sa="keyword",X(Sa,Ja,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(Aa)?X(Sa,Ja,D(Ja)?"block":"atBlock"):"mixin"==Aa?X(Sa,Ja,"block",0):Sa.context.type};db.interpolation=function(Aa,Ja,Sa){"{"==Aa&&F(Sa)&&X(Sa,Ja,"block");if("}"==Aa)return Ja.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||Ja.string.match(/^\s*[a-z]/i)&&
|
|||
|
T(O(Ja))?X(Sa,Ja,"block"):!Ja.string.match(/^(\{|\s*&)/)||Ja.match(/\s*[\w-]/,!1)?X(Sa,Ja,"block",0):X(Sa,Ja,"block");if("variable-name"==Aa)return X(Sa,Ja,"variableName",0);"word"==Aa&&(sa=aa(Ja.current()),"tag"==sa&&(sa="atom"));return Sa.context.type};db.extend=function(Aa,Ja,Sa){return"["==Aa||"\x3d"==Aa?"extend":"]"==Aa?F(Sa):"word"==Aa?(sa=aa(Ja.current()),"extend"):F(Sa)};db.variableName=function(Aa,Ja,Sa){return"string"==Aa||"["==Aa||"]"==Aa||Ja.current().match(/^(\.|\$)/)?(Ja.current().match(/^\.[\w-]+/i)&&
|
|||
|
(sa="variable-2"),"variableName"):ha(Aa,Ja,Sa)};return{startState:function(Aa){return{tokenize:null,state:"block",context:new J("block",Aa||0,null)}},token:function(Aa,Ja){if(!Ja.tokenize&&Aa.eatSpace())return null;(oa=(Ja.tokenize||z)(Aa,Ja))&&"object"==typeof oa&&(Ca=oa[1],oa=oa[0]);sa=oa;Ja.state=db[Ja.state](Ca,Aa,Ja);return sa},indent:function(Aa,Ja,Sa){var Ab=Aa.context,jb=Ja&&Ja.charAt(0),Ob=Ab.indent,Wb=O(Ja),hc=Sa.match(/^\s*/)[0].replace(/\t/g,da).length,Pa=Aa.context.prev?Aa.context.prev.line.firstWord:
|
|||
|
"";Aa=Aa.context.prev?Aa.context.prev.line.indent:hc;Ab.prev&&("}"==jb&&("block"==Ab.type||"atBlock"==Ab.type||"keyframes"==Ab.type)||")"==jb&&("parens"==Ab.type||"atBlock_parens"==Ab.type)||"{"==jb&&"at"==Ab.type)?Ob=Ab.indent-P:/(\})/.test(jb)||(/@|\$|\d/.test(jb)||/^\{/.test(Ja)||/^\s*\/(\/|\*)/.test(Ja)||/^\s*\/\*/.test(Pa)||/^\s*[\w-\.\[\]'"]+\s*(\?|:|\+)?=/i.test(Ja)||/^(\+|-)?[a-z][\w-]*\(/i.test(Ja)||/^return/.test(Ja)||E(Wb)?Ob=hc:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(jb)||T(Wb)?Ob=/,\s*$/.test(Pa)?
|
|||
|
Aa:/^\s+/.test(Sa)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(Pa)||T(Pa))?hc<=Aa?Aa:Aa+P:hc:/,\s*$/.test(Sa)||!Wb.toLowerCase().match(Xa)&&!Z(Wb)||(Ob=E(Pa)?hc<=Aa?Aa:Aa+P:/^\{/.test(Pa)?hc<=Aa?hc:Aa+P:Pa.toLowerCase().match(Xa)||Z(Pa)?hc>=Aa?Aa:hc:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(Pa)||/=\s*$/.test(Pa)||T(Pa)||/^\$[\w-\.\[\]'"]/.test(Pa)?Aa+P:hc));return Ob},electricChars:"}",lineComment:"//",fold:"indent"}});var t="a abbr address area article aside audio b base bdi bdo bgsound blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark marquee menu menuitem meta meter nav nobr noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time tr track u ul var video".split(" "),
|
|||
|
d=["domain","regexp","url","url-prefix"],w="all aural braille handheld print projection screen tty tv embossed".split(" "),B="width min-width max-width height min-height max-height device-width min-device-width max-device-width device-height min-device-height max-device-height aspect-ratio min-aspect-ratio max-aspect-ratio device-aspect-ratio min-device-aspect-ratio max-device-aspect-ratio color min-color max-color color-index min-color-index max-color-index monochrome min-monochrome max-monochrome resolution min-resolution max-resolution scan grid".split(" "),
|
|||
|
C="align-content align-items align-self alignment-adjust alignment-baseline anchor-point animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function appearance azimuth backface-visibility background background-attachment background-clip background-color background-image background-origin background-position background-repeat background-size baseline-shift binding bleed bookmark-label bookmark-level bookmark-state bookmark-target border border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side clear clip color color-profile column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset crop cue cue-after cue-before cursor direction display dominant-baseline drop-initial-after-adjust drop-initial-after-align drop-initial-before-adjust drop-initial-before-align drop-initial-size drop-initial-value elevation empty-cells fit fit-position flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float float-offset flow-from flow-into font font-feature-settings font-family font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-position grid-auto-rows grid-column grid-column-end grid-column-start grid-row grid-row-end grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens icon image-orientation image-rendering image-resolution inline-box-align justify-content left letter-spacing line-break line-height line-stacking line-stacking-ruby line-stacking-shift line-stacking-strategy list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top marker-offset marks marquee-direction marquee-loop marquee-play-count marquee-speed marquee-style max-height max-width min-height min-width move-to nav-down nav-index nav-left nav-right nav-up object-fit object-position opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-style overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page page-break-after page-break-before page-break-inside page-policy pause pause-after pause-before perspective perspective-origin pitch pitch-range play-during position presentation-level punctuation-trim quotes region-break-after region-break-before region-break-inside region-fragment rendering-intent resize rest rest-after rest-before richness right rotation rotation-point ruby-align ruby-overhang ruby-position ruby-span shape-image-threshold shape-inside shape-margin shape-outside size speak speak-as speak-header speak-numeral speak-punctuation speech-rate stress string-set tab-size table-layout target target-name target-new target-position text-align text-align-last text-decoration text-decoration-color text-decoration-line text-decoration-skip text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-height text-indent text-justify text-outline text-overflow text-shadow text-size-adjust text-space-collapse
|
|||
|
a="scrollbar-arrow-color scrollbar-base-color scrollbar-dark-shadow-color scrollbar-face-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-3d-light-color scrollbar-track-color shape-inside searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration zoom".split(" "),K="font-family src unicode-range font-variant font-feature-settings font-stretch font-weight font-style".split(" "),r="aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkturquoise darkviolet deeppink deepskyblue dimgray dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray grey green greenyellow honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightpink lightsalmon lightseagreen lightskyblue lightslategray lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen".split(" "),
|
|||
|
h="above absolute activeborder additive activecaption afar after-white-space ahead alias all all-scroll alphabetic alternate always amharic amharic-abegede antialiased appworkspace arabic-indic armenian asterisks attr auto avoid avoid-column avoid-page avoid-region background backwards baseline below bidi-override binary bengali blink block block-axis bold bolder border border-box both bottom break break-all break-word bullets button button-bevel buttonface buttonhighlight buttonshadow buttontext calc cambodian capitalize caps-lock-indicator caption captiontext caret cell center checkbox circle cjk-decimal cjk-earthly-branch cjk-heavenly-stem cjk-ideographic clear clip close-quote col-resize collapse column compact condensed contain content contents content-box context-menu continuous copy counter counters cover crop cross crosshair currentcolor cursive cyclic dashed decimal decimal-leading-zero default default-button destination-atop destination-in destination-out destination-over devanagari disc discard disclosure-closed disclosure-open document dot-dash dot-dot-dash dotted double down e-resize ease ease-in ease-in-out ease-out element ellipse ellipsis embed end ethiopic ethiopic-abegede ethiopic-abegede-am-et ethiopic-abegede-gez ethiopic-abegede-ti-er ethiopic-abegede-ti-et ethiopic-halehame-aa-er ethiopic-halehame-aa-et ethiopic-halehame-am-et ethiopic-halehame-gez ethiopic-halehame-om-et ethiopic-halehame-sid-et ethiopic-halehame-so-et ethiopic-halehame-ti-er ethiopic-halehame-ti-et ethiopic-halehame-tig ethiopic-numeric ew-resize expanded extends extra-condensed extra-expanded fantasy fast fill fixed flat flex footnotes forwards from geometricPrecision georgian graytext groove gujarati gurmukhi hand hangul hangul-consonant hebrew help hidden hide higher highlight highlighttext hiragana hiragana-iroha horizontal hsl hsla icon ignore inactiveborder inactivecaption inactivecaptiontext infinite infobackground infotext inherit initial inline inline-axis inline-block inline-flex inline-table inset inside intrinsic invert italic japanese-formal japanese-informal justify kannada katakana katakana-iroha keep-all khmer korean-hangul-formal korean-hanja-formal korean-hanja-informal landscape lao large larger left level lighter line-through linear linear-gradient lines list-item listbox listitem local logical loud lower lower-alpha lower-armenian lower-greek lower-hexadecimal lower-latin lower-norwegian lower-roman lowercase ltr malayalam match matrix matrix3d media-controls-background media-current-time-display media-fullscreen-button media-mute-button media-play-button media-return-to-realtime-button media-rewind-button media-seek-back-button media-seek-forward-button media-slider media-sliderthumb media-time-remaining-display media-volume-slider media-volume-slider-container media-volume-sliderthumb medium menu menulist menulist-button menulist-text menulist-textfield menutext message-box middle min-intrinsic mix mongolian monospace move multiple myanmar n-resize narrower ne-resize nesw-resize no-close-quote no-drop no-open-quote no-repeat none normal not-allowed nowrap ns-resize numbers numeric nw-resize nwse-resize oblique octal open-quote optimizeLegibility optimizeSpeed oriya oromo outset outside outside-shape overlay overline padding padding-box painted page paused persian perspective plus-darker plus-lighter pointer polygon portrait pre pre-line pre-wrap preserve-3d progress push-button radial-gradient radio read-only read-write read-write-plaintext-only rectangle region relative repeat repeating-linear-gradient repeating-radial-gradient repeat-x repeat-y reset reverse rgb rgba ridge right rotate rotate3d rotateX rotateY rotateZ round row-resize rtl run-in running s-resize sans-serif scale scale3d scaleX scaleY scaleZ scroll scrollbar scroll-position se-resize searchfield searchfield-cancel-button searchfield-decoration searchfield-results-button searchfield-results-decoration semi-condensed semi-expanded separate serif show sidama simp-chinese-formal simp-chinese-informal single skew skewX skewY skip-white-space sl
|
|||
|
k="in;and;or;not;is not;is a;is;isnt;defined;if unless".split(";"),f="for if else unless from to".split(" "),v="null true false href title type not-allowed readonly disabled".split(" "),x=t.concat(d,w,B,C,a,r,h,K,k,f,v,"@font-face @keyframes @media @viewport @page @host @supports @block @css".split(" "));q.registerHelper("hintWords","stylus",x);q.defineMIME("text/x-styl","stylus")})};
|
|||
|
shadow$provide[559]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(J){for(var X={},F=0;F<J.length;F++)X[J[F]]=!0;return X}function A(J,X,F){J.sol()&&(X.indented=J.indentation());if(J.eatSpace())return null;var ha=J.peek();if("/"==ha){if(J.match("//"))return J.skipToEnd(),"comment";if(J.match("/*"))return X.tokenize.push(w),w(J,X)}if(J.match(m))return"builtin";
|
|||
|
if(J.match(l))return"attribute";if(J.match(f)||J.match(v)||J.match(x)||J.match(L))return"number";if(J.match(u))return"property";if(-1<"+-/*%\x3d|\x26\x3c\x3e~^?!".indexOf(ha))return J.next(),"operator";if(-1<":;,.(){}[]".indexOf(ha))return J.next(),J.match(".."),"punctuation";if(ha=J.match(/("""|"|')/))return F=d.bind(null,ha[0]),X.tokenize.push(F),F(J,X);if(J.match(z))return J=J.current(),k.hasOwnProperty(J)?"variable-2":h.hasOwnProperty(J)?"atom":K.hasOwnProperty(J)?(r.hasOwnProperty(J)&&(X.prev=
|
|||
|
"define"),"keyword"):"define"==F?"def":"variable";J.next();return null}function t(){var J=0;return function(X,F,ha){ha=A(X,F,ha);if("punctuation"==ha)if("("==X.current())++J;else if(")"==X.current()){if(0==J)return X.backUp(1),F.tokenize.pop(),F.tokenize[F.tokenize.length-1](X,F);--J}return ha}}function d(J,X,F){for(var ha=1==J.length,T,Z=!1;T=X.peek();)if(Z){X.next();if("("==T)return F.tokenize.push(t()),"string";Z=!1}else{if(X.match(J))return F.tokenize.pop(),"string";X.next();Z="\\"==T}ha&&F.tokenize.pop();
|
|||
|
return"string"}function w(J,X){for(var F;;){J.match(/^[^/*]+/,!0);F=J.next();if(!F)break;"/"===F&&J.eat("*")?X.tokenize.push(w):"*"===F&&J.eat("/")&&X.tokenize.pop()}return"comment"}function B(J,X,F){this.prev=J;this.align=X;this.indented=F}function C(J,X){X=X.match(/^\s*($|\/[\/\*])/,!1)?null:X.column()+1;J.context=new B(J.context,X,J.indented)}function a(J){J.context&&(J.indented=J.context.indented,J.context=J.context.prev)}var K=R("_ var let class enum extension import protocol struct func typealias associatedtype open public internal fileprivate private deinit init new override self subscript super convenience dynamic final indirect lazy required static unowned unowned(safe) unowned(unsafe) weak as is break case continue default else fallthrough for guard if in repeat switch where while defer return inout mutating nonmutating catch do rethrows throw throws try didSet get set willSet assignment associativity infix left none operator postfix precedence precedencegroup prefix right Any AnyObject Type dynamicType Self Protocol __COLUMN__ __FILE__ __FUNCTION__ __LINE__".split(" ")),
|
|||
|
r=R("var let class enum extension import protocol struct func typealias associatedtype for".split(" ")),h=R("true false nil self super _".split(" ")),k=R("Array Bool Character Dictionary Double Float Int Int8 Int16 Int32 Int64 Never Optional Set String UInt8 UInt16 UInt32 UInt64 Void".split(" ")),f=/^\-?0b[01][01_]*/,v=/^\-?0o[0-7][0-7_]*/,x=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,L=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,z=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,
|
|||
|
u=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,m=/^#[A-Za-z]+/,l=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;q.defineMode("swift",function(J){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(X,F){var ha=F.prev;F.prev=null;var T=(F.tokenize[F.tokenize.length-1]||A)(X,F,ha);T&&"comment"!=T?F.prev||(F.prev=T):F.prev=ha;"punctuation"==T&&(ha=/[\(\[\{]|([\]\)\}])/.exec(X.current()))&&(ha[1]?a:C)(F,X);return T},indent:function(X,F){X=X.context;if(!X)return 0;
|
|||
|
F=/^[\]\}\)]/.test(F);return null!=X.align?X.align-(F?1:0):X.indented+(F?0:J.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}});q.defineMIME("text/x-swift","swift")})};
|
|||
|
shadow$provide[560]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("tcl",function(){function R(r){var h={};r=r.split(" ");for(var k=0;k<r.length;++k)h[r[k]]=!0;return h}function A(r,h,k){h.tokenize=k;return k(r,h)}function t(r,h){var k=h.beforeParams;h.beforeParams=!1;var f=r.next();if('"'!=f&&"'"!=f||!h.inParams){if(/[\[\]{}\(\),;\.]/.test(f))return"("==
|
|||
|
f&&k?h.inParams=!0:")"==f&&(h.inParams=!1),null;if(/\d/.test(f))return r.eatWhile(/[\w\.]/),"number";if("#"==f){if(r.eat("*"))return A(r,h,w);if("#"==f&&r.match(/ *\[ *\[/))return A(r,h,B);r.skipToEnd();return"comment"}if('"'==f)return r.skipTo(/"/),"comment";if("$"==f)return r.eatWhile(/[$_a-z0-9A-Z\.{:]/),r.eatWhile(/}/),h.beforeParams=!0,"builtin";if(K.test(f))return r.eatWhile(K),"comment";r.eatWhile(/[\w\$_{}\xa1-\uffff]/);r=r.current().toLowerCase();return C&&C.propertyIsEnumerable(r)?"keyword":
|
|||
|
a&&a.propertyIsEnumerable(r)?(h.beforeParams=!0,"keyword"):null}return A(r,h,d(f))}function d(r){return function(h,k){for(var f=!1,v,x=!1;null!=(v=h.next());){if(v==r&&!f){x=!0;break}f=!f&&"\\"==v}x&&(k.tokenize=t);return"string"}}function w(r,h){for(var k=!1,f;f=r.next();){if("#"==f&&k){h.tokenize=t;break}k="*"==f}return"comment"}function B(r,h){for(var k=0,f;f=r.next();){if("#"==f&&2==k){h.tokenize=t;break}"]"==f?k++:" "!=f&&(k=0)}return"meta"}var C=R("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),
|
|||
|
a=R("if elseif else and not or eq ne in ni for foreach while switch"),K=/[+\-*&%=<>!?^\/\|]/;return{startState:function(){return{tokenize:t,beforeParams:!1,inParams:!1}},token:function(r,h){return r.eatSpace()?null:h.tokenize(r,h)},lineComment:"#"}});q.defineMIME("text/x-tcl","tcl")})};
|
|||
|
shadow$provide[561]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(k,f,v){return"_"===v?k.eat("_")?A(k,f,"italic",/__/,2):A(k,f,"em",/_/,1):"*"===v?k.eat("*")?A(k,f,"bold",/\*\*/,2):A(k,f,"strong",/\*/,1):"["===v?(k.match(/\d+\]/)&&(f.footCite=!0),t(f)):"("===v&&k.match(/^(r|tm|c)\)/)?w(f,K.specialChar):"\x3c"===v&&k.match(/(\w+)[^>]+>[^<]+<\/\1>/)?w(f,
|
|||
|
K.html):"?"===v&&k.eat("?")?A(k,f,"cite",/\?\?/,2):"\x3d"===v&&k.eat("\x3d")?A(k,f,"notextile",/==/,2):"-"!==v||k.eat("-")?"+"===v?A(k,f,"addition",/\+/,1):"~"===v?A(k,f,"sub",/~/,1):"^"===v?A(k,f,"sup",/\^/,1):"%"===v?A(k,f,"span",/%/,1):"@"===v?A(k,f,"code",/@/,1):"!"===v?(f=A(k,f,"image",/(?:\([^\)]+\))?!/,1),k.match(/^:\S+/),f):t(f):A(k,f,"deletion",/-/,1)}function A(k,f,v,x,L){L=k.pos>L?k.string.charAt(k.pos-L-1):null;var z=k.peek();if(f[v]){if((!z||/\W/.test(z))&&L&&/\S/.test(L))return k=t(f),
|
|||
|
f[v]=!1,k}else(!L||/\W/.test(L))&&z&&/\S/.test(z)&&k.match(new RegExp("^.*\\S"+x.source+"(?:\\W|$)"),!1)&&(f[v]=!0,f.mode=h.attributes);return t(f)}function t(k){var f=d(k);if(f)return f;f=[];k.layoutType&&f.push(K[k.layoutType]);f=f.concat(B(k,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading"));"header"===k.layoutType&&f.push(K.header+"-"+k.header);return f.length?f.join(" "):null}function d(k){var f=k.layoutType;
|
|||
|
switch(f){case "notextile":case "code":case "pre":return K[f];default:return k.notextile?K.notextile+(f?" "+K[f]:""):null}}function w(k,f){var v=d(k);if(v)return v;k=t(k);return f?k?k+" "+f:f:k}function B(k){for(var f=[],v=1;v<arguments.length;++v)k[arguments[v]]&&f.push(K[arguments[v]]);return f}function C(k){var f=k.spanningLayout,v=k.layoutType,x;for(x in k)k.hasOwnProperty(x)&&delete k[x];k.mode=h.newLayout;f&&(k.layoutType=v,k.spanningLayout=!0)}function a(k){return r.cache[k]||(r.cache[k]=r.createRe(k))}
|
|||
|
var K={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",
|
|||
|
tableHeading:"operator"},r={cache:{},single:{bc:"bc",bq:"bq",definitionList:/- .*?:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,
|
|||
|
selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(k){switch(k){case "drawTable":return r.makeRe("^",r.single.drawTable,"$");case "html":return r.makeRe("^",r.single.html,"(?:",r.single.html,")*","$");case "linkDefinition":return r.makeRe("^",r.single.linkDefinition,"$");case "listLayout":return r.makeRe("^",r.single.list,a("allAttributes"),"*\\s+");case "tableCellAttributes":return r.makeRe("^",r.choiceRe(r.single.tableCellAttributes,a("allAttributes")),
|
|||
|
"+\\.");case "type":return r.makeRe("^",a("allTypes"));case "typeLayout":return r.makeRe("^",a("allTypes"),a("allAttributes"),"*\\.\\.?","(\\s+|$)");case "attributes":return r.makeRe("^",a("allAttributes"),"+");case "allTypes":return r.choiceRe(r.single.div,r.single.foot,r.single.header,r.single.bc,r.single.bq,r.single.notextile,r.single.pre,r.single.table,r.single.para);case "allAttributes":return r.choiceRe(r.attributes.selector,r.attributes.css,r.attributes.lang,r.attributes.align,r.attributes.pad);
|
|||
|
default:return r.makeRe("^",r.single[k])}},makeRe:function(){for(var k="",f=0;f<arguments.length;++f){var v=arguments[f];k+="string"===typeof v?v:v.source}return new RegExp(k)},choiceRe:function(){for(var k=[arguments[0]],f=1;f<arguments.length;++f)k[2*f-1]="|",k[2*f]=arguments[f];k.unshift("(?:");k.push(")");return r.makeRe.apply(null,k)}},h={newLayout:function(k,f){if(k.match(a("typeLayout"),!1))return f.spanningLayout=!1,(f.mode=h.blockType)(k,f);if(!d(f))if(k.match(a("listLayout"),!1))var v=h.list;
|
|||
|
else k.match(a("drawTable"),!1)?v=h.table:k.match(a("linkDefinition"),!1)?v=h.linkDefinition:k.match(a("definitionList"))?v=h.definitionList:k.match(a("html"),!1)&&(v=h.html);return(f.mode=v||h.text)(k,f)},blockType:function(k,f){var v;f.layoutType=null;if(v=k.match(a("type")))k=v[0];else return(f.mode=h.text)(k,f);(v=k.match(a("header")))?(f.layoutType="header",f.header=parseInt(v[0][1])):k.match(a("bq"))?f.layoutType="quote":k.match(a("bc"))?f.layoutType="code":k.match(a("foot"))?f.layoutType="footnote":
|
|||
|
k.match(a("notextile"))?f.layoutType="notextile":k.match(a("pre"))?f.layoutType="pre":k.match(a("div"))?f.layoutType="div":k.match(a("table"))&&(f.layoutType="table");f.mode=h.attributes;return t(f)},text:function(k,f){if(k.match(a("text")))return t(f);var v=k.next();return'"'===v?(f.mode=h.link)(k,f):R(k,f,v)},attributes:function(k,f){f.mode=h.layoutLength;return k.match(a("attributes"))?w(f,K.attributes):t(f)},layoutLength:function(k,f){k.eat(".")&&k.eat(".")&&(f.spanningLayout=!0);f.mode=h.text;
|
|||
|
return t(f)},list:function(k,f){k=k.match(a("list"));f.listDepth=k[0].length;k=(f.listDepth-1)%3;f.layoutType=k?1===k?"list2":"list3":"list1";f.mode=h.attributes;return t(f)},link:function(k,f){f.mode=h.text;return k.match(a("link"))?(k.match(/\S+/),w(f,K.link)):t(f)},linkDefinition:function(k,f){k.skipToEnd();return w(f,K.linkDefinition)},definitionList:function(k,f){k.match(a("definitionList"));f.layoutType="definitionList";k.match(/\s*$/)?f.spanningLayout=!0:f.mode=h.attributes;return t(f)},html:function(k,
|
|||
|
f){k.skipToEnd();return w(f,K.html)},table:function(k,f){f.layoutType="table";return(f.mode=h.tableCell)(k,f)},tableCell:function(k,f){k.match(a("tableHeading"))?f.tableHeading=!0:k.eat("|");f.mode=h.tableCellAttributes;return t(f)},tableCellAttributes:function(k,f){f.mode=h.tableText;return k.match(a("tableCellAttributes"))?w(f,K.attributes):t(f)},tableText:function(k,f){return k.match(a("tableText"))?t(f):"|"===k.peek()?(f.mode=h.tableCell,t(f)):R(k,f,k.next())}};q.defineMode("textile",function(){return{startState:function(){return{mode:h.newLayout}},
|
|||
|
token:function(k,f){k.sol()&&(f.mode=h.newLayout,f.tableHeading=!1,"definitionList"===f.layoutType&&f.spanningLayout&&k.match(a("definitionListEnd"),!1)&&(f.spanningLayout=!1));return f.mode(k,f)},blankLine:C}});q.defineMIME("text/x-textile","textile")})};
|
|||
|
shadow$provide[562]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("tiddlywiki",function(){function R(ha,T,Z){T.tokenize=Z;return Z(ha,T)}function A(ha,T){var Z=ha.sol(),E=ha.peek();T.block=!1;if(Z&&/[<\/\*{}\-]/.test(E)){if(ha.match(J))return T.block=!0,R(ha,T,w);if(ha.match(L))return"quote";if(ha.match(v)||ha.match(x)||ha.match(z)||ha.match(u)||ha.match(m)||
|
|||
|
ha.match(l))return"comment";if(ha.match(f))return"hr"}ha.next();if(Z&&/[\/\*!#;:>|]/.test(E)){if("!"==E)return ha.skipToEnd(),"header";if("*"==E)return ha.eatWhile("*"),"comment";if("#"==E)return ha.eatWhile("#"),"comment";if(";"==E)return ha.eatWhile(";"),"comment";if(":"==E)return ha.eatWhile(":"),"comment";if("\x3e"==E)return ha.eatWhile("\x3e"),"quote";if("|"==E)return"header"}if("{"==E&&ha.match(/\{\{/))return R(ha,T,w);if(/[hf]/i.test(E)&&/[ti]/i.test(ha.peek())&&ha.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";
|
|||
|
if('"'==E)return"string";if("~"==E||/[\[\]]/.test(E)&&ha.match(E))return"brace";if("@"==E)return ha.eatWhile(k),"link";if(/\d/.test(E))return ha.eatWhile(/\d/),"number";if("/"==E){if(ha.eat("%"))return R(ha,T,t);if(ha.eat("/"))return R(ha,T,B)}if("_"==E&&ha.eat("_"))return R(ha,T,C);if("-"==E&&ha.eat("-")){if(" "!=ha.peek())return R(ha,T,a);if(" "==ha.peek())return"brace"}if("'"==E&&ha.eat("'"))return R(ha,T,d);if("\x3c"==E&&ha.eat("\x3c"))return R(ha,T,K);ha.eatWhile(/[\w\$_]/);return r.propertyIsEnumerable(ha.current())?
|
|||
|
"keyword":null}function t(ha,T){for(var Z=!1,E;E=ha.next();){if("/"==E&&Z){T.tokenize=A;break}Z="%"==E}return"comment"}function d(ha,T){for(var Z=!1,E;E=ha.next();){if("'"==E&&Z){T.tokenize=A;break}Z="'"==E}return"strong"}function w(ha,T){var Z=T.block;if(Z&&ha.current())return"comment";if(!Z&&ha.match(F)||Z&&ha.sol()&&ha.match(X))return T.tokenize=A,"comment";ha.next();return"comment"}function B(ha,T){for(var Z=!1,E;E=ha.next();){if("/"==E&&Z){T.tokenize=A;break}Z="/"==E}return"em"}function C(ha,
|
|||
|
T){for(var Z=!1,E;E=ha.next();){if("_"==E&&Z){T.tokenize=A;break}Z="_"==E}return"underlined"}function a(ha,T){for(var Z=!1,E;E=ha.next();){if("-"==E&&Z){T.tokenize=A;break}Z="-"==E}return"strikethrough"}function K(ha,T){if("\x3c\x3c"==ha.current())return"macro";var Z=ha.next();if(!Z)return T.tokenize=A,null;if("\x3e"==Z&&"\x3e"==ha.peek())return ha.next(),T.tokenize=A,"macro";ha.eatWhile(/[\w\$_]/);return h.propertyIsEnumerable(ha.current())?"keyword":null}var r={},h={allTags:!0,closeAll:!0,list:!0,
|
|||
|
newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,"with":!0,filter:!0},k=/[\w_\-]/i,f=/^\-\-\-\-+$/,v=/^\/\*\*\*$/,x=/^\*\*\*\/$/,L=/^<<<$/,z=/^\/\/\{\{\{$/,u=/^\/\/\}\}\}$/,m=/^\x3c!--\{\{\{--\x3e$/,l=/^\x3c!--\}\}\}--\x3e$/,J=/^\{\{\{$/,X=/^\}\}\}$/,F=/.*?\}\}\}/;return{startState:function(){return{tokenize:A}},token:function(ha,T){return ha.eatSpace()?null:T.tokenize(ha,T)}}});q.defineMIME("text/x-tiddlywiki",
|
|||
|
"tiddlywiki")})};
|
|||
|
shadow$provide[563]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("tiki",function(R){function A(X,F,ha){return function(T,Z){for(;!T.eol();){if(T.match(F)){Z.tokenize=d;break}T.next()}ha&&(Z.tokenize=ha);return X}}function t(X){return function(F,ha){for(;!F.eol();)F.next();ha.tokenize=d;return X}}function d(X,F){function ha(E){F.tokenize=E;return E(X,
|
|||
|
F)}var T=X.sol(),Z=X.next();switch(Z){case "{":return X.eat("/"),X.eatSpace(),X.eatWhile(/[^\s\u00a0="'\/?(}]/),F.tokenize=w,"tag";case "_":if(X.eat("_"))return ha(A("strong","__",d));break;case "'":if(X.eat("'"))return ha(A("em","''",d));break;case "(":if(X.eat("("))return ha(A("variable-2","))",d));break;case "[":return ha(A("variable-3","]",d));case "|":if(X.eat("|"))return ha(A("comment","||"));break;case "-":if(X.eat("\x3d"))return ha(A("header string","\x3d-",d));if(X.eat("-"))return ha(A("error tw-deleted",
|
|||
|
"--",d));break;case "\x3d":if(X.match("\x3d\x3d"))return ha(A("tw-underline","\x3d\x3d\x3d",d));break;case ":":if(X.eat(":"))return ha(A("comment","::"));break;case "^":return ha(A("tw-box","^"));case "~":if(X.match("np~"))return ha(A("meta","~/np~"))}if(T)switch(Z){case "!":return X.match("!!!!!")||X.match("!!!!")||X.match("!!!")||X.match("!!"),ha(t("header string"));case "*":case "#":case "+":return ha(t("tw-listitem bracket"))}return null}function w(X,F){var ha=X.next(),T=X.peek();if("}"==ha)return F.tokenize=
|
|||
|
d,"tag";if("("==ha||")"==ha)return"bracket";if("\x3d"==ha)return m="equals","\x3e"==T&&(X.next(),T=X.peek()),/['"]/.test(T)||(F.tokenize=C()),"operator";if(/['"]/.test(ha))return F.tokenize=B(ha),F.tokenize(X,F);X.eatWhile(/[^\s\u00a0="'\/?]/);return"keyword"}function B(X){return function(F,ha){for(;!F.eol();)if(F.next()==X){ha.tokenize=w;break}return"string"}}function C(){return function(X,F){for(;!X.eol();){var ha=X.next(),T=X.peek();if(" "==ha||","==ha||/[ )}]/.test(T)){F.tokenize=w;break}}return"string"}}
|
|||
|
function a(){for(var X=arguments.length-1;0<=X;X--)l.cc.push(arguments[X])}function K(){a.apply(null,arguments);return!0}function r(X,F){l.context={prev:l.context,pluginName:X,indent:l.indented,startOfLine:F,noIndent:l.context&&l.context.noIndent}}function h(X){if("openPlugin"==X)return l.pluginName=u,K(v,k(l.startOfLine));if("closePlugin"==X)return l.context?(X=l.context.pluginName!=u,l.context&&(l.context=l.context.prev)):X=!0,X&&(J="error"),K(f(X));"string"==X&&(l.context&&"!cdata"==l.context.name||
|
|||
|
r("!cdata"),l.tokenize==d&&l.context&&(l.context=l.context.prev));return K()}function k(X){return function(F){if("selfclosePlugin"==F||"endPlugin"==F)return K();"endPlugin"==F&&r(l.pluginName,X);return K()}}function f(X){return function(F){X&&(J="error");return"endPlugin"==F?K():a()}}function v(X){return"keyword"==X?(J="attribute",K(v)):"equals"==X?K(x,v):a()}function x(X){return"keyword"==X?(J="string",K()):"string"==X?K(L):a()}function L(X){return"string"==X?K(L):a()}var z=R.indentUnit,u,m,l,J;
|
|||
|
return{startState:function(){return{tokenize:d,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(X,F){X.sol()&&(F.startOfLine=!0,F.indented=X.indentation());if(X.eatSpace())return null;J=m=u=null;if(((X=F.tokenize(X,F))||m)&&"comment"!=X)for(l=F;!(F.cc.pop()||h)(m||X););F.startOfLine=!1;return J||X},indent:function(X,F){if((X=X.context)&&X.noIndent)return 0;X&&/^{\//.test(F)&&(X=X.prev);for(;X&&!X.startOfLine;)X=X.prev;return X?X.indent+z:0},electricChars:"/"}});q.defineMIME("text/tiki",
|
|||
|
"tiki")})};
|
|||
|
shadow$provide[564]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(R,A){A.inString||'"'!=R.peek()&&"'"!=R.peek()||(A.stringType=R.peek(),R.next(),A.inString=!0);R.sol()&&0===A.inArray&&(A.lhs=!0);if(A.inString){for(;A.inString&&!R.eol();)R.peek()===
|
|||
|
A.stringType?(R.next(),A.inString=!1):"\\"===R.peek()?(R.next(),R.next()):R.match(/^.[^\\"']*/);return A.lhs?"property string":"string"}if(A.inArray&&"]"===R.peek())return R.next(),A.inArray--,"bracket";if(A.lhs&&"["===R.peek()&&R.skipTo("]"))return R.next(),"]"===R.peek()&&R.next(),"atom";if("#"===R.peek())return R.skipToEnd(),"comment";if(!R.eatSpace()){if(A.lhs&&R.eatWhile(function(t){return"\x3d"!=t&&" "!=t}))return"property";if(A.lhs&&"\x3d"===R.peek())R.next(),A.lhs=!1;else{if(!A.lhs&&R.match(/^\d\d\d\d[\d\-:\.T]*Z/)||
|
|||
|
!A.lhs&&(R.match("true")||R.match("false")))return"atom";if(A.lhs||"["!==R.peek()){if(!A.lhs&&R.match(/^\-?\d+(?:\.\d+)?/))return"number";R.eatSpace()||R.next()}else return A.inArray++,R.next(),"bracket"}}return null}}});q.defineMIME("text/x-toml","toml")})};
|
|||
|
shadow$provide[565]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(478),W(479)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/overlay"],q):q(CodeMirror)})(function(q){q.defineMode("tornado:inner",function(){function R(d,w){d.eatWhile(/[^\{]/);var B=d.next();if("{"==B&&(B=d.eat(/\{|%|#/)))return w.tokenize=A(B),"tag"}function A(d){"{"==d&&(d="}");return function(w,B){return w.next()==d&&w.eat("}")?
|
|||
|
(B.tokenize=R,"tag"):w.match(t)?"keyword":"#"==d?"comment":"string"}}var t="and as assert autoescape block break class comment context continue datetime def del elif else end escape except exec extends false finally for from global if import in include is json_encode lambda length linkify load module none not or pass print put raise raw return self set squeeze super true try url_escape while with without xhtml_escape yield".split(" ");t=new RegExp("^(("+t.join(")|(")+"))\\b");return{startState:function(){return{tokenize:R}},
|
|||
|
token:function(d,w){return w.tokenize(d,w)}}});q.defineMode("tornado",function(R){var A=q.getMode(R,"text/html");R=q.getMode(R,"tornado:inner");return q.overlayMode(A,R)});q.defineMIME("text/x-tornado","tornado")})};
|
|||
|
shadow$provide[566]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("troff",function(){function R(t){if(t.eatSpace())return null;var d=t.sol(),w=t.next();if("\\"===w){if(t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("\x26"))return"string";if(t.match("m["))return t.skipTo("]"),t.next(),"string";if(t.match("s+")||
|
|||
|
t.match("s-"))return t.eatWhile(/[\d-]/),"string";(t.match("(")||t.match("*("))&&t.eatWhile(/[\w-]/);return"string"}if(d&&("."===w||"'"===w)&&t.eat("\\")&&t.eat('"'))return t.skipToEnd(),"comment";if(d&&"."===w){if(t.match("B ")||t.match("I ")||t.match("R "))return"attribute";if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP "))return t.skipToEnd(),"quote";if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/))return"attribute"}t.eatWhile(/[\w-]/);t=t.current();return A.hasOwnProperty(t)?
|
|||
|
A[t]:null}var A={};return{startState:function(){return{tokens:[]}},token:function(t,d){return(d.tokens[0]||R)(t,d)}}});q.defineMIME("text/troff","troff");q.defineMIME("text/x-troff","troff");q.defineMIME("application/x-troff","troff")})};
|
|||
|
shadow$provide[567]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMode("ttcn-cfg",function(A,t){function d(z,u){var m=z.next();if('"'==m||"'"==m)return u.tokenize=w(m),u.tokenize(z,u);if(/[:=]/.test(m))return L=m,"punctuation";if("#"==m)return z.skipToEnd(),"comment";if(/\d/.test(m))return z.eatWhile(/[\w\.]/),
|
|||
|
"number";if(x.test(m))return z.eatWhile(x),"operator";if("["==m)return z.eatWhile(/[\w_\]]/),"number sectionTitle";z.eatWhile(/[\w\$_]/);z=z.current();return r.propertyIsEnumerable(z)?"keyword":h.propertyIsEnumerable(z)?"negative fileNCtrlMaskOptions":k.propertyIsEnumerable(z)?"negative externalCommands":"variable"}function w(z){return function(u,m){for(var l=!1,J,X=!1;null!=(J=u.next());){if(J==z&&!l){if(J=u.peek())J=J.toLowerCase(),"b"!=J&&"h"!=J&&"o"!=J||u.next();X=!0;break}l=!l&&"\\"==J}if(X||
|
|||
|
!l&&!f)m.tokenize=null;return"string"}}function B(z,u,m,l,J){this.indented=z;this.column=u;this.type=m;this.align=l;this.prev=J}function C(z,u,m){var l=z.indented;z.context&&"statement"==z.context.type&&(l=z.context.indented);return z.context=new B(l,u,m,null,z.context)}function a(z){var u=z.context.type;if(")"==u||"]"==u||"}"==u)z.indented=z.context.indented;return z.context=z.context.prev}var K=A.indentUnit,r=t.keywords||{},h=t.fileNCtrlMaskOptions||{},k=t.externalCommands||{},f=t.multiLineStrings,
|
|||
|
v=!1!==t.indentStatements,x=/[\|]/,L;return{startState:function(z){return{tokenize:null,context:new B((z||0)-K,0,"top",!1),indented:0,startOfLine:!0}},token:function(z,u){var m=u.context;z.sol()&&(null==m.align&&(m.align=!1),u.indented=z.indentation(),u.startOfLine=!0);if(z.eatSpace())return null;L=null;var l=(u.tokenize||d)(z,u);if("comment"==l)return l;null==m.align&&(m.align=!0);if(";"!=L&&":"!=L&&","!=L||"statement"!=m.type)if("{"==L)C(u,z.column(),"}");else if("["==L)C(u,z.column(),"]");else if("("==
|
|||
|
L)C(u,z.column(),")");else if("}"==L){for(;"statement"==m.type;)m=a(u);for("}"==m.type&&(m=a(u));"statement"==m.type;)m=a(u)}else L==m.type?a(u):v&&(("}"==m.type||"top"==m.type)&&";"!=L||"statement"==m.type&&"newstatement"==L)&&C(u,z.column(),"statement");else a(u);u.startOfLine=!1;return l},electricChars:"{}",lineComment:"#",fold:"brace"}});q.defineMIME("text/x-ttcn-cfg",{name:"ttcn-cfg",keywords:R("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),
|
|||
|
fileNCtrlMaskOptions:R("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
|
|||
|
externalCommands:R("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0})})};
|
|||
|
shadow$provide[568]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(A){var t={};A=A.split(" ");for(var d=0;d<A.length;++d)t[A[d]]=!0;return t}q.defineMode("ttcn",function(A,t){function d(M,S){var D=M.next();if('"'==D||"'"==D)return S.tokenize=w(D),S.tokenize(M,S);if(/[\[\]{}\(\),;\\:\?\.]/.test(D))return aa=D,"punctuation";if("#"==D)return M.skipToEnd(),
|
|||
|
"atom preprocessor";if("%"==D)return M.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(D))return M.eatWhile(/[\w\.]/),"number";if("/"==D){if(M.eat("*"))return S.tokenize=B,B(M,S);if(M.eat("/"))return M.skipToEnd(),"comment"}if(E.test(D)){if("@"==D&&(M.match("try")||M.match("catch")||M.match("lazy")))return"keyword";M.eatWhile(E);return"operator"}M.eatWhile(/[\w\$_\xa1-\uffff]/);M=M.current();return h.propertyIsEnumerable(M)?"keyword":k.propertyIsEnumerable(M)?"builtin":f.propertyIsEnumerable(M)?"def timerOps":
|
|||
|
x.propertyIsEnumerable(M)?"def configOps":L.propertyIsEnumerable(M)?"def verdictOps":v.propertyIsEnumerable(M)?"def portOps":z.propertyIsEnumerable(M)?"def sutOps":u.propertyIsEnumerable(M)?"def functionOps":m.propertyIsEnumerable(M)?"string verdictConsts":l.propertyIsEnumerable(M)?"string booleanConsts":J.propertyIsEnumerable(M)?"string otherConsts":X.propertyIsEnumerable(M)?"builtin types":F.propertyIsEnumerable(M)?"builtin visibilityModifiers":ha.propertyIsEnumerable(M)?"atom templateMatch":"variable"}
|
|||
|
function w(M){return function(S,D){for(var O=!1,P,da=!1;null!=(P=S.next());){if(P==M&&!O){if(P=S.peek())P=P.toLowerCase(),"b"!=P&&"h"!=P&&"o"!=P||S.next();da=!0;break}O=!O&&"\\"==P}if(da||!O&&!T)D.tokenize=null;return"string"}}function B(M,S){for(var D=!1,O;O=M.next();){if("/"==O&&D){S.tokenize=null;break}D="*"==O}return"comment"}function C(M,S,D,O,P){this.indented=M;this.column=S;this.type=D;this.align=O;this.prev=P}function a(M,S,D){var O=M.indented;M.context&&"statement"==M.context.type&&(O=M.context.indented);
|
|||
|
return M.context=new C(O,S,D,null,M.context)}function K(M){var S=M.context.type;if(")"==S||"]"==S||"}"==S)M.indented=M.context.indented;return M.context=M.context.prev}var r=A.indentUnit,h=t.keywords||{},k=t.builtin||{},f=t.timerOps||{},v=t.portOps||{},x=t.configOps||{},L=t.verdictOps||{},z=t.sutOps||{},u=t.functionOps||{},m=t.verdictConsts||{},l=t.booleanConsts||{},J=t.otherConsts||{},X=t.types||{},F=t.visibilityModifiers||{},ha=t.templateMatch||{},T=t.multiLineStrings,Z=!1!==t.indentStatements,
|
|||
|
E=/[+\-*&@=<>!\/]/,aa;return{startState:function(M){return{tokenize:null,context:new C((M||0)-r,0,"top",!1),indented:0,startOfLine:!0}},token:function(M,S){var D=S.context;M.sol()&&(null==D.align&&(D.align=!1),S.indented=M.indentation(),S.startOfLine=!0);if(M.eatSpace())return null;aa=null;var O=(S.tokenize||d)(M,S);if("comment"==O)return O;null==D.align&&(D.align=!0);if(";"!=aa&&":"!=aa&&","!=aa||"statement"!=D.type)if("{"==aa)a(S,M.column(),"}");else if("["==aa)a(S,M.column(),"]");else if("("==
|
|||
|
aa)a(S,M.column(),")");else if("}"==aa){for(;"statement"==D.type;)D=K(S);for("}"==D.type&&(D=K(S));"statement"==D.type;)D=K(S)}else aa==D.type?K(S):Z&&(("}"==D.type||"top"==D.type)&&";"!=aa||"statement"==D.type&&"newstatement"==aa)&&a(S,M.column(),"statement");else K(S);S.startOfLine=!1;return O},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});(function(A,t){function d(C){if(C)for(var a in C)C.hasOwnProperty(a)&&w.push(a)}"string"==typeof A&&(A=[A]);
|
|||
|
var w=[];d(t.keywords);d(t.builtin);d(t.timerOps);d(t.portOps);w.length&&(t.helperType=A[0],q.registerHelper("hintWords",A[0],w));for(var B=0;B<A.length;++B)q.defineMIME(A[B],t)})(["text/x-ttcn","text/x-ttcn3","text/x-ttcnpp"],{name:"ttcn",keywords:R("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),
|
|||
|
builtin:R("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:R("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),
|
|||
|
timerOps:R("read running start stop timeout"),portOps:R("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:R("create connect disconnect done kill killed map unmap"),verdictOps:R("getverdict setverdict"),sutOps:R("action"),functionOps:R("apply derefers refers"),verdictConsts:R("error fail inconc none pass"),booleanConsts:R("true false"),otherConsts:R("null NULL omit"),visibilityModifiers:R("private public friend"),templateMatch:R("complement ifpresent subset superset permutation"),
|
|||
|
multiLineStrings:!0})})};
|
|||
|
shadow$provide[569]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("turtle",function(R){function A(r,h){var k=r.next();C=null;if("\x3c"!=k||r.match(/^[\s\u00a0=]/,!1)){if('"'==k||"'"==k)return h.tokenize=t(k),h.tokenize(r,h);if(/[{}\(\),\.;\[\]]/.test(k))return C=k,null;if("#"==k)return r.skipToEnd(),"comment";if(K.test(k))return r.eatWhile(K),null;
|
|||
|
if(":"==k)return"operator";r.eatWhile(/[_\w\d]/);if(":"==r.peek())return"variable-3";r=r.current();return a.test(r)?"meta":"A"<=k&&"Z">=k?"comment":"keyword"}r.match(/^[^\s\u00a0>]*>?/);return"atom"}function t(r){return function(h,k){for(var f=!1,v;null!=(v=h.next());){if(v==r&&!f){k.tokenize=A;break}f=!f&&"\\"==v}return"string"}}function d(r,h,k){r.context={prev:r.context,indent:r.indent,col:k,type:h}}function w(r){r.indent=r.context.indent;r.context=r.context.prev}var B=R.indentUnit,C,a=RegExp("^(?:@prefix|@base|a)$",
|
|||
|
"i"),K=/[*+\-<>=&|]/;return{startState:function(){return{tokenize:A,context:null,indent:0,col:0}},token:function(r,h){r.sol()&&(h.context&&null==h.context.align&&(h.context.align=!1),h.indent=r.indentation());if(r.eatSpace())return null;var k=h.tokenize(r,h);"comment"!=k&&h.context&&null==h.context.align&&"pattern"!=h.context.type&&(h.context.align=!0);if("("==C)d(h,")",r.column());else if("["==C)d(h,"]",r.column());else if("{"==C)d(h,"}",r.column());else if(/[\]\}\)]/.test(C)){for(;h.context&&"pattern"==
|
|||
|
h.context.type;)w(h);h.context&&C==h.context.type&&w(h)}else"."==C&&h.context&&"pattern"==h.context.type?w(h):/atom|string|variable/.test(k)&&h.context&&(/[\}\]]/.test(h.context.type)?d(h,"pattern",r.column()):"pattern"!=h.context.type||h.context.align||(h.context.align=!0,h.context.col=r.column()));return k},indent:function(r,h){h=h&&h.charAt(0);r=r.context;if(/[\]\}]/.test(h))for(;r&&"pattern"==r.type;)r=r.prev;h=r&&h==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(h?0:1):r.indent+(h?0:
|
|||
|
B):0},lineComment:"#"}});q.defineMIME("text/turtle","turtle")})};
|
|||
|
shadow$provide[570]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(503)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/multiplex"],q):q(CodeMirror)})(function(q){q.defineMode("twig:inner",function(){function R(C,a){var K=C.peek();if(a.incomment)return C.skipTo("#}")?(C.eatWhile(/#|}/),a.incomment=!1):C.skipToEnd(),"comment";if(a.intag){if(a.operator){a.operator=!1;if(C.match(w))return"atom";if(C.match(B))return"number"}if(a.sign){a.sign=
|
|||
|
!1;if(C.match(w))return"atom";if(C.match(B))return"number"}if(a.instring)return K==a.instring&&(a.instring=!1),C.next(),"string";if("'"==K||'"'==K)return a.instring=K,C.next(),"string";if(C.match(a.intag+"}")||C.eat("-")&&C.match(a.intag+"}"))return a.intag=!1,"tag";if(C.match(t))return a.operator=!0,"operator";if(C.match(d))a.sign=!0;else if(C.eat(" ")||C.sol()){if(C.match(A))return"keyword";if(C.match(w))return"atom";if(C.match(B))return"number";C.sol()&&C.next()}else C.next();return"variable"}if(C.eat("{")){if(C.eat("#"))return a.incomment=
|
|||
|
!0,C.skipTo("#}")?(C.eatWhile(/#|}/),a.incomment=!1):C.skipToEnd(),"comment";if(K=C.eat(/\{|%/))return a.intag=K,"{"==K&&(a.intag="}"),C.eat("-"),"tag"}C.next()}var A="and as autoescape endautoescape block do endblock else elseif extends for endfor embed endembed filter endfilter flush from if endif in is include import not or set spaceless endspaceless with endwith trans endtrans blocktrans endblocktrans macro endmacro use verbatim endverbatim".split(" "),t=/^[+\-*&%=<>!?|~^]/,d=/^[:\[\(\{]/,w="true;false;null;empty;defined;divisibleby;divisible by;even;odd;iterable;sameas;same as".split(";"),
|
|||
|
B=/^(\d[+\-\*\/])?\d+(\.\d+)?/;A=new RegExp("(("+A.join(")|(")+"))\\b");w=new RegExp("(("+w.join(")|(")+"))\\b");return{startState:function(){return{}},token:function(C,a){return R(C,a)}}});q.defineMode("twig",function(R,A){var t=q.getMode(R,"twig:inner");return A&&A.base?q.multiplexingMode(q.getMode(R,A.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:t,parseDelimiters:!0}):t});q.defineMIME("text/x-twig","twig")})};
|
|||
|
shadow$provide[571]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("vb",function(R,A){function t(Z){return new RegExp("^(("+Z.join(")|(")+"))\\b","i")}function d(Z,E){if(Z.eatSpace())return null;if("'"===Z.peek())return Z.skipToEnd(),"comment";if(Z.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var aa=!1;Z.match(/^\d*\.\d+F?/i)?aa=!0:Z.match(/^\d+\.\d*F?/)?aa=
|
|||
|
!0:Z.match(/^\.\d+F?/)&&(aa=!0);if(aa)return Z.eat(/J/i),"number";aa=!1;Z.match(/^&H[0-9a-f]+/i)?aa=!0:Z.match(/^&O[0-7]+/i)?aa=!0:Z.match(/^[1-9]\d*F?/)?(Z.eat(/J/i),aa=!0):Z.match(/^0(?![\dx])/i)&&(aa=!0);if(aa)return Z.eat(/L/i),"number"}if(Z.match('"'))return E.tokenize=w(Z.current()),E.tokenize(Z,E);if(Z.match(r)||Z.match(K))return null;if(Z.match(a)||Z.match(B)||Z.match(L))return"operator";if(Z.match(C))return null;if(Z.match(T))return E.currentIndent++,E.doInCurrentLine=!0,"keyword";if(Z.match(J))return E.doInCurrentLine?
|
|||
|
E.doInCurrentLine=!1:E.currentIndent++,"keyword";if(Z.match(X))return"keyword";if(Z.match(ha))return E.currentIndent--,E.currentIndent--,"keyword";if(Z.match(F))return E.currentIndent--,"keyword";if(Z.match(l)||Z.match(m))return"keyword";if(Z.match(h))return"variable";Z.next();return"error"}function w(Z){var E=1==Z.length;return function(aa,M){for(;!aa.eol();){aa.eatWhile(/[^'"]/);if(aa.match(Z))return M.tokenize=d,"string";aa.eat(/['"]/)}if(E){if(A.singleLineStringErrors)return"error";M.tokenize=
|
|||
|
d}return"string"}}var B=RegExp("^[\\+\\-\\*/%\x26\\\\|\\^~\x3c\x3e!]"),C=RegExp("^[\\(\\)\\[\\]\\{\\}@,:`\x3d;\\.]"),a=RegExp("^((\x3d\x3d)|(\x3c\x3e)|(\x3c\x3d)|(\x3e\x3d)|(\x3c\x3e)|(\x3c\x3c)|(\x3e\x3e)|(//)|(\\*\\*))"),K=RegExp("^((\\+\x3d)|(\\-\x3d)|(\\*\x3d)|(%\x3d)|(/\x3d)|(\x26\x3d)|(\\|\x3d)|(\\^\x3d))"),r=RegExp("^((//\x3d)|(\x3e\x3e\x3d)|(\x3c\x3c\x3d)|(\\*\\*\x3d))"),h=RegExp("^[_A-Za-z][_A-Za-z0-9]*"),k="class module sub enum select while if function get set property try structure synclock using with".split(" "),
|
|||
|
f=["else","elseif","case","catch","finally"],v=["next","loop"],x="and andalso or orelse xor in not is isnot like".split(" "),L=t(x),z="#const #else #elseif #end #if #region addhandler addressof alias as byref byval cbool cbyte cchar cdate cdbl cdec cint clng cobj compare const continue csbyte cshort csng cstr cuint culng cushort declare default delegate dim directcast each erase error event exit explicit false for friend gettype goto handles implements imports infer inherits interface isfalse istrue lib me mod mustinherit mustoverride my mybase myclass namespace narrowing new nothing notinheritable notoverridable of off on operator option optional out overloads overridable overrides paramarray partial private protected public raiseevent readonly redim removehandler resume return shadows shared static step stop strict then throw to true trycast typeof until until when widening withevents writeonly".split(" "),
|
|||
|
u="object boolean char string byte sbyte short ushort int16 uint16 integer uinteger int32 uint32 long ulong int64 uint64 decimal single double float date datetime intptr uintptr".split(" "),m=t(z),l=t(u),J=t(k),X=t(f),F=t(v),ha=t(["end"]),T=t(["do"]);q.registerHelper("hintWords","vb",k.concat(f).concat(v).concat(x).concat(z).concat(u));return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:d,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(Z,E){Z.sol()&&
|
|||
|
(E.currentIndent+=E.nextLineIndent,E.nextLineIndent=0,E.doInCurrentLine=0);var aa=E.tokenize(Z,E);var M=Z.current();if("."===M)aa=E.tokenize(Z,E),aa="variable"===aa?"variable":"error";else{var S="[({".indexOf(M);-1!==S&&E.currentIndent++;S="])}".indexOf(M);-1!==S&&E.currentIndent--}E.lastToken={style:aa,content:Z.current()};return aa},indent:function(Z,E){E=E.replace(/^\s+|\s+$/g,"");return E.match(F)||E.match(ha)||E.match(X)?R.indentUnit*(Z.currentIndent-1):0>Z.currentIndent?0:Z.currentIndent*R.indentUnit},
|
|||
|
lineComment:"'"}});q.defineMIME("text/x-vb","vb")})};
|
|||
|
shadow$provide[572]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("vbscript",function(R,A){function t(M){return new RegExp("^(("+M.join(")|(")+"))\\b","i")}function d(M,S){if(M.eatSpace())return"space";if("'"===M.peek()||M.match(aa))return M.skipToEnd(),"comment";if(M.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!M.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var D=
|
|||
|
!1;M.match(/^\d*\.\d+/i)?D=!0:M.match(/^\d+\.\d*/)?D=!0:M.match(/^\.\d+/)&&(D=!0);if(D)return M.eat(/J/i),"number";D=!1;M.match(/^&H[0-9a-f]+/i)?D=!0:M.match(/^&O[0-7]+/i)?D=!0:M.match(/^[1-9]\d*F?/)?(M.eat(/J/i),D=!0):M.match(/^0(?![\dx])/i)&&(D=!0);if(D)return M.eat(/L/i),"number"}if(M.match('"'))return S.tokenize=w(M.current()),S.tokenize(M,S);if(M.match(C)||M.match(B)||M.match(h))return"operator";if(M.match(a))return null;if(M.match(K))return"bracket";if(M.match(E))return S.doInCurrentLine=!0,
|
|||
|
"keyword";if(M.match(Z))return S.currentIndent++,S.doInCurrentLine=!0,"keyword";if(M.match(X))return S.doInCurrentLine?S.doInCurrentLine=!1:S.currentIndent++,"keyword";if(M.match(F))return"keyword";if(M.match(T))return S.currentIndent--,S.currentIndent--,"keyword";if(M.match(ha))return S.doInCurrentLine?S.doInCurrentLine=!1:S.currentIndent--,"keyword";if(M.match(z))return"keyword";if(M.match(u))return"atom";if(M.match(J))return"variable-2";if(M.match(m))return"builtin";if(M.match(l))return"variable-2";
|
|||
|
if(M.match(r))return"variable";M.next();return"error"}function w(M){var S=1==M.length;return function(D,O){for(;!D.eol();){D.eatWhile(/[^'"]/);if(D.match(M))return O.tokenize=d,"string";D.eat(/['"]/)}if(S){if(A.singleLineStringErrors)return"error";O.tokenize=d}return"string"}}var B=RegExp("^[\\+\\-\\*/\x26\\\\\\^\x3c\x3e\x3d]"),C=RegExp("^((\x3c\x3e)|(\x3c\x3d)|(\x3e\x3d))"),a=RegExp("^[\\.,]"),K=RegExp("^[\\(\\)]"),r=RegExp("^[A-Za-z][_A-Za-z0-9]*"),h=t("and or not xor is mod eqv imp".split(" ")),
|
|||
|
k=["WScript","err","debug","RegExp"],f=["server","response","request","session","application"],v="buffer cachecontrol charset contenttype expires expiresabsolute isclientconnected pics status clientcertificate cookies form querystring servervariables totalbytes contents staticobjects codepage lcid sessionid timeout scripttimeout".split(" "),x="addheader appendtolog binarywrite end flush redirect binaryread remove removeall lock unlock abandon getlasterror htmlencode mappath transfer urlencode".split(" "),
|
|||
|
L="clear execute raise replace test write writeline close open state eof update addnew end createobject quit".split(" ").concat("description firstindex global helpcontext helpfile ignorecase length number pattern source value count".split(" "));k=k.concat("vbBlack vbRed vbGreen vbYellow vbBlue vbMagenta vbCyan vbWhite vbBinaryCompare vbTextCompare vbSunday vbMonday vbTuesday vbWednesday vbThursday vbFriday vbSaturday vbUseSystemDayOfWeek vbFirstJan1 vbFirstFourDays vbFirstFullWeek vbGeneralDate vbLongDate vbShortDate vbLongTime vbShortTime vbObjectError vbOKOnly vbOKCancel vbAbortRetryIgnore vbYesNoCancel vbYesNo vbRetryCancel vbCritical vbQuestion vbExclamation vbInformation vbDefaultButton1 vbDefaultButton2 vbDefaultButton3 vbDefaultButton4 vbApplicationModal vbSystemModal vbOK vbCancel vbAbort vbRetry vbIgnore vbYes vbNo vbCr VbCrLf vbFormFeed vbLf vbNewLine vbNullChar vbNullString vbTab vbVerticalTab vbUseDefault vbTrue vbFalse vbEmpty vbNull vbInteger vbLong vbSingle vbDouble vbCurrency vbDate vbString vbObject vbError vbBoolean vbVariant vbDataObject vbDecimal vbByte vbArray".split(" "));
|
|||
|
R.isASP&&(k=k.concat(f),L=L.concat(x,v));var z=t("dim;redim;then;until;randomize;byval;byref;new;property;exit;in;const;private;public;get;set;let;stop;on error resume next;on error goto 0;option explicit;call;me".split(";")),u=t(["true","false","nothing","empty","null"]),m=t("abs array asc atn cbool cbyte ccur cdate cdbl chr cint clng cos csng cstr date dateadd datediff datepart dateserial datevalue day escape eval execute exp filter formatcurrency formatdatetime formatnumber formatpercent getlocale getobject getref hex hour inputbox instr instrrev int fix isarray isdate isempty isnull isnumeric isobject join lbound lcase left len loadpicture log ltrim rtrim trim maths mid minute month monthname msgbox now oct replace rgb right rnd round scriptengine scriptenginebuildversion scriptenginemajorversion scriptengineminorversion second setlocale sgn sin space split sqr strcomp string strreverse tan time timer timeserial timevalue typename ubound ucase unescape vartype weekday weekdayname year".split(" ")),
|
|||
|
l=t(k),J=t(L),X=t("class sub select while if function property with for".split(" ")),F=t(["else","elseif","case"]),ha=t(["next","loop","wend"]),T=t(["end"]),Z=t(["do"]),E=t(["on error resume next","exit"]),aa=t(["rem"]);return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:d,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(M,S){M.sol()&&(S.currentIndent+=S.nextLineIndent,S.nextLineIndent=0,S.doInCurrentLine=0);var D=S.tokenize(M,
|
|||
|
S);var O=M.current();if("."===O)if(D=S.tokenize(M,S),O=M.current(),!D||"variable"!==D.substr(0,8)&&"builtin"!==D&&"keyword"!==D)D="error";else{if("builtin"===D||"keyword"===D)D="variable";-1<L.indexOf(O.substr(1))&&(D="variable-2")}S.lastToken={style:D,content:M.current()};"space"===D&&(D=null);return D},indent:function(M,S){S=S.replace(/^\s+|\s+$/g,"");return S.match(ha)||S.match(T)||S.match(F)?R.indentUnit*(M.currentIndent-1):0>M.currentIndent?0:M.currentIndent*R.indentUnit}}});q.defineMIME("text/vbscript",
|
|||
|
"vbscript")})};
|
|||
|
shadow$provide[573]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("velocity",function(){function R(h){var k={};h=h.split(" ");for(var f=0;f<h.length;++f)k[h[f]]=!0;return k}function A(h,k,f){k.tokenize=f;return f(h,k)}function t(h,k){var f=k.beforeParams;k.beforeParams=!1;var v=h.next();if("'"==v&&!k.inString&&k.inParams)return k.lastTokenWasBuiltin=
|
|||
|
!1,A(h,k,d(v));if('"'==v){k.lastTokenWasBuiltin=!1;if(k.inString)return k.inString=!1,"string";if(k.inParams)return A(h,k,d(v))}else{if(/[\[\]{}\(\),;\.]/.test(v))return"("==v&&f?k.inParams=!0:")"==v&&(k.inParams=!1,k.lastTokenWasBuiltin=!0),null;if(/\d/.test(v))return k.lastTokenWasBuiltin=!1,h.eatWhile(/[\w\.]/),"number";if("#"==v&&h.eat("*"))return k.lastTokenWasBuiltin=!1,A(h,k,w);if("#"==v&&h.match(/ *\[ *\[/))return k.lastTokenWasBuiltin=!1,A(h,k,B);if("#"==v&&h.eat("#"))return k.lastTokenWasBuiltin=
|
|||
|
!1,h.skipToEnd(),"comment";if("$"==v){h.eatWhile(/[\w\d\$_\.{}-]/);if(K&&K.propertyIsEnumerable(h.current()))return"keyword";k.lastTokenWasBuiltin=!0;k.beforeParams=!0;return"builtin"}if(r.test(v))return k.lastTokenWasBuiltin=!1,h.eatWhile(r),"operator";h.eatWhile(/[\w\$_{}@]/);f=h.current();if(C&&C.propertyIsEnumerable(f))return"keyword";if(a&&a.propertyIsEnumerable(f)||h.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==h.peek()&&(!a||!a.propertyIsEnumerable(f.toLowerCase())))return k.beforeParams=!0,
|
|||
|
k.lastTokenWasBuiltin=!1,"keyword";if(k.inString)return k.lastTokenWasBuiltin=!1,"string";if(h.pos>f.length&&"."==h.string.charAt(h.pos-f.length-1)&&k.lastTokenWasBuiltin)return"builtin";k.lastTokenWasBuiltin=!1;return null}}function d(h){return function(k,f){for(var v=!1,x,L=!1;null!=(x=k.next());){if(x==h&&!v){L=!0;break}if('"'==h&&"$"==k.peek()&&!v){L=f.inString=!0;break}v=!v&&"\\"==x}L&&(f.tokenize=t);return"string"}}function w(h,k){for(var f=!1,v;v=h.next();){if("#"==v&&f){k.tokenize=t;break}f=
|
|||
|
"*"==v}return"comment"}function B(h,k){for(var f=0,v;v=h.next();){if("#"==v&&2==f){k.tokenize=t;break}"]"==v?f++:" "!=v&&(f=0)}return"meta"}var C=R("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),a=R("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),K=R("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),
|
|||
|
r=/[+\-*&%=<>!?:\/|]/;return{startState:function(){return{tokenize:t,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(h,k){return h.eatSpace()?null:k.tokenize(h,k)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}});q.defineMIME("text/velocity","velocity")})};
|
|||
|
shadow$provide[574]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(a,K,r){return"tlv-"+a.tlvIndentationStyle[K/3]+"-"+r}q.defineMode("verilog",function(a,K){function r(ia){var ea={};ia=ia.split(" ");for(var qa=0;qa<ia.length;++qa)ea[ia[qa]]=!0;return ea}function h(ia,ea){var qa=ia.peek(),za;if(X[qa]&&0!=(za=X[qa](ia,ea))||X.tokenBase&&0!=(za=X.tokenBase(ia,
|
|||
|
ea)))return za;if(/[,;:\.]/.test(qa))return da=ia.next(),null;if(T.test(qa))return da=ia.next(),"bracket";if("`"==qa)return ia.next(),ia.eatWhile(/[\w\$_]/)?"def":null;if("$"==qa)return ia.next(),ia.eatWhile(/[\w\$_]/)?"meta":null;if("#"==qa)return ia.next(),ia.eatWhile(/[\d_.]/),"def";if('"'==qa)return ia.next(),ea.tokenize=k(qa),ea.tokenize(ia,ea);if("/"==qa){ia.next();if(ia.eat("*"))return ea.tokenize=f,f(ia,ea);if(ia.eat("/"))return ia.skipToEnd(),"comment";ia.backUp(1)}if(ia.match(D)||ia.match(E)||
|
|||
|
ia.match(aa)||ia.match(M)||ia.match(S)||ia.match(Z)||ia.match(D))return"number";if(ia.eatWhile(ha))return"meta";if(ia.eatWhile(/[\w\$_]/))return ia=ia.current(),F[ia]?(H[ia]&&(da="newblock"),ca[ia]&&(da="newstatement"),ba=ia,"keyword"):"variable";ia.next();return null}function k(ia){return function(ea,qa){for(var za=!1,ya,Ha=!1;null!=(ya=ea.next());){if(ya==ia&&!za){Ha=!0;break}za=!za&&"\\"==ya}if(Ha||!za&&!J)qa.tokenize=h;return"string"}}function f(ia,ea){for(var qa=!1,za;za=ia.next();){if("/"==
|
|||
|
za&&qa){ea.tokenize=h;break}qa="*"==za}return"comment"}function v(ia,ea,qa,za,ya){this.indented=ia;this.column=ea;this.type=qa;this.align=za;this.prev=ya}function x(ia,ea,qa){ea=new v(ia.indented,ea,qa,null,ia.context);return ia.context=ea}function L(ia){var ea=ia.context.type;if(")"==ea||"]"==ea||"}"==ea)ia.indented=ia.context.indented;return ia.context=ia.context.prev}function z(ia,ea){if(ia==ea)return!0;ea=ea.split(";");for(var qa in ea)if(ia==ea[qa])return!0;return!1}var u=a.indentUnit,m=K.statementIndentUnit||
|
|||
|
u,l=K.dontAlignCalls;a=K.noIndentKeywords||[];var J=K.multiLineStrings,X=K.hooks||{},F=r("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),
|
|||
|
ha=/[\+\-\*\/!~&|^%=?:]/,T=/[\[\]{}()]/,Z=/\d[0-9_]*/,E=/\d*\s*'s?d\s*\d[0-9_]*/i,aa=/\d*\s*'s?b\s*[xz01][xz01_]*/i,M=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,S=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,D=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,O=/^((\w+)|[)}\]])/,P=/[)}\]]/,da,ba;K=r("case checker class clocking config function generate interface module package primitive program property specify sequence table task");var H={};for(N in K)H[N]="end"+N;H.begin="end";H.casex="endcase";H.casez=
|
|||
|
"endcase";H["do"]="while";H.fork="join;join_any;join_none";H.covergroup="endgroup";for(var ja in a){var N=a[ja];H[N]&&(H[N]=void 0)}var ca=r("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");return{electricInput:function(){var ia=[],ea;for(ea in H)if(H[ea]){var qa=H[ea].split(";"),za;for(za in qa)ia.push(qa[za])}return new RegExp("[{}()\\[\\]]|("+ia.join("|")+")$")}(),startState:function(ia){ia={tokenize:null,context:new v((ia||
|
|||
|
0)-u,0,"top",!1),indented:0,startOfLine:!0};X.startState&&X.startState(ia);return ia},token:function(ia,ea){var qa=ea.context;ia.sol()&&(null==qa.align&&(qa.align=!1),ea.indented=ia.indentation(),ea.startOfLine=!0);if(X.token){var za=X.token(ia,ea);if(void 0!==za)return za}if(ia.eatSpace())return null;ba=da=null;za=(ea.tokenize||h)(ia,ea);if("comment"==za||"meta"==za||"variable"==za)return za;null==qa.align&&(qa.align=!0);if(da==qa.type)L(ea);else if(";"==da&&"statement"==qa.type||qa.type&&z(ba,qa.type))for(qa=
|
|||
|
L(ea);qa&&"statement"==qa.type;)qa=L(ea);else"{"==da?x(ea,ia.column(),"}"):"["==da?x(ea,ia.column(),"]"):"("==da?x(ea,ia.column(),")"):qa&&"endcase"==qa.type&&":"==da?x(ea,ia.column(),"statement"):"newstatement"==da?x(ea,ia.column(),"statement"):"newblock"!=da||"function"==ba&&qa&&("statement"==qa.type||"endgroup"==qa.type)||"task"==ba&&qa&&"statement"==qa.type||(qa=H[ba],x(ea,ia.column(),qa));ea.startOfLine=!1;return za},indent:function(ia,ea){if(ia.tokenize!=h&&null!=ia.tokenize)return q.Pass;if(X.indent){var qa=
|
|||
|
X.indent(ia);if(0<=qa)return qa}ia=ia.context;qa=ea&&ea.charAt(0);"statement"==ia.type&&"}"==qa&&(ia=ia.prev);var za=!1;(ea=ea.match(O))&&(za=z(ea[0],ia.type));return"statement"==ia.type?ia.indented+("{"==qa?0:m):P.test(ia.type)&&ia.align&&!l?ia.column+(za?0:1):")"!=ia.type||za?ia.indented+(za?0:u):ia.indented+m},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}});q.defineMIME("text/x-verilog",{name:"verilog"});q.defineMIME("text/x-systemverilog",{name:"verilog"});var A=
|
|||
|
{"|":"link","\x3e":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+\x3d":"variable-3","@+\x3d-":"variable-3","@--":"variable-3","@-\x3d":"variable-3","%+":"tag","%-":"tag","%":"tag","\x3e\x3e":"tag","\x3c\x3c":"tag","\x3c\x3e":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword",'"':"comment"},t={"/":"beh-hier","\x3e":"beh-hier",
|
|||
|
"-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},d=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,w=/^[! ] /,B=/^[! ] */,C=/^\/[\/\*]/;q.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(a,K){var r=void 0,h;if(a.sol()&&!K.tlvInBlockComment){"\\"==a.peek()&&(r="def",a.skipToEnd(),a.string.match(/\\SV/)?K.tlvCodeActive=!1:a.string.match(/\\TLV/)&&(K.tlvCodeActive=!0));K.tlvCodeActive&&0==a.pos&&0==K.indented&&(h=a.match(B,!1))&&(K.indented=h[0].length);
|
|||
|
var k=K.indented,f=k/3;if(f<=K.tlvIndentationStyle.length){var v=a.string.length==k,x=3*f;if(x<a.string.length){var L=a.string.slice(x),z=L[0];t[z]&&(h=L.match(d))&&A[h[1]]&&(k+=3,"\\"==z&&0<x||(K.tlvIndentationStyle[f]=t[z],f++))}if(!v)for(;K.tlvIndentationStyle.length>f;)K.tlvIndentationStyle.pop()}K.tlvNextIndent=k}if(K.tlvCodeActive)if(void 0!==r)r+=" "+R(K,0,"scope-ident");else if(a.pos/3<K.tlvIndentationStyle.length&&(h=a.match(a.sol()?w:/^ /))){r="tlv-indent-"+(0==a.pos%2?"even":"odd")+" "+
|
|||
|
R(K,a.pos-3,"indent");"!"==h[0].charAt(0)&&(r+=" tlv-alert-line-prefix");var u;(u=a.match(d,!1))&&0<u[2].length&&(r+=" "+R(K,a.pos,"before-scope-ident"))}else K.tlvInBlockComment?(a.match(/^.*?\*\//)?K.tlvInBlockComment=!1:a.skipToEnd(),r="comment"):(h=a.match(C))&&!K.tlvInBlockComment?("//"==h[0]?a.skipToEnd():K.tlvInBlockComment=!0,r="comment"):(h=a.match(d))?(r=h[1],h=h[2],A.hasOwnProperty(r)&&(0<h.length||a.eol())?(r=A[r],a.column()==K.indented&&(r+=" "+R(K,a.column(),"scope-ident"))):(a.backUp(a.current().length-
|
|||
|
1),r="tlv-default")):a.match(/^\t+/)?r="tlv-tab":a.match(/^[\[\]{}\(\);:]+/)?r="meta":(h=a.match(/^[mM]4([\+_])?[\w\d_]*/))?r="+"==h[1]?"tlv-m4-plus":"tlv-m4":a.match(/^ +/)?r=a.eol()?"error":"tlv-default":a.match(/^[\w\d_]+/)?r="number":(a.next(),r="tlv-default");else a.match(/^[mM]4([\w\d_]*)/)&&(r="tlv-m4");return r},indent:function(a){return 1==a.tlvCodeActive?a.tlvNextIndent:-1},startState:function(a){a.tlvIndentationStyle=[];a.tlvCodeActive=!0;a.tlvNextIndent=-1;a.tlvInBlockComment=!1}}})})};
|
|||
|
shadow$provide[575]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(t){var d={};t=t.split(",");for(var w=0;w<t.length;++w){var B=t[w].toUpperCase(),C=t[w].charAt(0).toUpperCase()+t[w].slice(1);d[t[w]]=!0;d[B]=!0;d[C]=!0}return d}function A(t){t.eatWhile(/[\w\$_]/);return"meta"}q.defineMode("vhdl",function(t,d){function w(m,l){var J=m.next();if(f[J]){var X=
|
|||
|
f[J](m,l);if(!1!==X)return X}if('"'==J)return l.tokenize=C(J),l.tokenize(m,l);if("'"==J)return l.tokenize=B(J),l.tokenize(m,l);if(/[\[\]{}\(\),;:\.]/.test(J))return u=J,null;if(/[\d']/.test(J))return m.eatWhile(/[\w\.']/),"number";if("-"==J&&m.eat("-"))return m.skipToEnd(),"comment";if(z.test(J))return m.eatWhile(z),"operator";m.eatWhile(/[\w\$_]/);m=m.current();return x.propertyIsEnumerable(m.toLowerCase())?(L.propertyIsEnumerable(m)&&(u="newstatement"),"keyword"):k.propertyIsEnumerable(m)?"atom":
|
|||
|
"variable"}function B(m){return function(l,J){for(var X=!1,F,ha=!1;null!=(F=l.next());){if(F==m&&!X){ha=!0;break}X=!X&&"--"==F}if(ha||!X&&!v)J.tokenize=w;return"string"}}function C(m){return function(l,J){for(var X=!1,F,ha=!1;null!=(F=l.next());){if(F==m&&!X){ha=!0;break}X=!X&&"--"==F}if(ha||!X&&!v)J.tokenize=w;return"string-2"}}function a(m,l,J,X,F){this.indented=m;this.column=l;this.type=J;this.align=X;this.prev=F}function K(m,l,J){return m.context=new a(m.indented,l,J,null,m.context)}function r(m){var l=
|
|||
|
m.context.type;if(")"==l||"]"==l||"}"==l)m.indented=m.context.indented;return m.context=m.context.prev}var h=t.indentUnit,k=d.atoms||R("null"),f=d.hooks||{"`":A,$:A},v=d.multiLineStrings,x=R("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),
|
|||
|
L=R("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),z=/[&|~><!\)\(*#%@+\/=?:;}{,\.\^\-\[\]]/,u;return{startState:function(m){return{tokenize:null,context:new a((m||0)-h,0,"top",!1),indented:0,startOfLine:!0}},token:function(m,l){var J=l.context;m.sol()&&(null==J.align&&(J.align=!1),l.indented=m.indentation(),l.startOfLine=!0);if(m.eatSpace())return null;u=null;var X=(l.tokenize||w)(m,l);if("comment"==X||"meta"==X)return X;null==J.align&&(J.align=!0);if(";"!=u&&":"!=u||"statement"!=
|
|||
|
J.type)if("{"==u)K(l,m.column(),"}");else if("["==u)K(l,m.column(),"]");else if("("==u)K(l,m.column(),")");else if("}"==u){for(;"statement"==J.type;)J=r(l);for("}"==J.type&&(J=r(l));"statement"==J.type;)J=r(l)}else u==J.type?r(l):("}"==J.type||"top"==J.type||"statement"==J.type&&"newstatement"==u)&&K(l,m.column(),"statement");else r(l);l.startOfLine=!1;return X},indent:function(m,l){if(m.tokenize!=w&&null!=m.tokenize)return 0;l=l&&l.charAt(0);m=m.context;var J=l==m.type;return"statement"==m.type?
|
|||
|
m.indented+("{"==l?0:h):m.align?m.column+(J?0:1):m.indented+(J?0:h)},electricChars:"{}"}});q.defineMIME("text/x-vhdl","vhdl")})};
|
|||
|
shadow$provide[576]=function(wa,W,Ta,I){(function(q){"object"===typeof I&&"object"===typeof Ta?q(W(454),W(479),W(476),W(477),W(468),W(471),W(546),W(558),W(536),W(504)):"function"===typeof define&&define.amd?define("../../lib/codemirror ../../addon/mode/overlay ../xml/xml ../javascript/javascript ../coffeescript/coffeescript ../css/css ../sass/sass ../stylus/stylus ../pug/pug ../handlebars/handlebars".split(" "),q):q(CodeMirror)})(function(q){var R={script:[["lang",/coffee(script)?/,"coffeescript"],
|
|||
|
["type",/^(?:text|application)\/(?:x-)?coffee(?:script)?$/,"coffeescript"],["lang",/^babel$/,"javascript"],["type",/^text\/babel$/,"javascript"],["type",/^text\/ecmascript-\d+$/,"javascript"]],style:[["lang",/^stylus$/i,"stylus"],["lang",/^sass$/i,"sass"],["lang",/^less$/i,"text/x-less"],["lang",/^scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?styl(us)?$/i,"stylus"],["type",/^text\/sass/i,"sass"],["type",/^(text\/)?(x-)?scss$/i,"text/x-scss"],["type",/^(text\/)?(x-)?less$/i,"text/x-less"]],template:[["lang",
|
|||
|
/^vue-template$/i,"vue"],["lang",/^pug$/i,"pug"],["lang",/^handlebars$/i,"handlebars"],["type",/^(text\/)?(x-)?pug$/i,"pug"],["type",/^text\/x-handlebars-template$/i,"handlebars"],[null,null,"vue-template"]]};q.defineMode("vue-template",function(A,t){return q.overlayMode(q.getMode(A,t.backdrop||"text/html"),{token:function(d){if(d.match(/^\{\{.*?\}\}/))return"meta mustache";for(;d.next()&&!d.match("{{",!1););return null}})});q.defineMode("vue",function(A){return q.getMode(A,{name:"htmlmixed",tags:R})},
|
|||
|
"htmlmixed","xml","javascript","coffeescript","css","sass","stylus","pug","handlebars");q.defineMIME("script/x-vue","vue");q.defineMIME("text/x-vue","vue")})};
|
|||
|
shadow$provide[577]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(481)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],q):q(CodeMirror)})(function(q){q.defineSimpleMode("wast",{start:[{regex:/[+\-]?(?:nan(?::0x[0-9a-fA-F]+)?|infinity|inf|0x[0-9a-fA-F]+\.?[0-9a-fA-F]*p[+\/-]?\d+|\d+(?:\.\d*)?[eE][+\-]?\d*|\d+\.\d*|0x[0-9a-fA-F]+|\d+)/,token:"number"},{regex:/mut|nop|block|if|then|else|loop|br_if|br_table|br|call(_indirect)?|drop|end|return(_call(_indirect)?)?|local\.(get|set|tee)|global\.(get|set)|i(32|64)\.(store(8|16)|(load(8|16)_[su]))|i64\.(load32_[su]|store32)|[fi](32|64)\.(const|load|store)|f(32|64)\.(abs|add|ceil|copysign|div|eq|floor|[gl][et]|max|min|mul|nearest|neg?|sqrt|sub|trunc)|i(32|64)\.(a[dn]d|c[lt]z|(div|rem)_[su]|eqz?|[gl][te]_[su]|mul|ne|popcnt|rot[lr]|sh(l|r_[su])|sub|x?or)|i64\.extend_[su]_i32|i32\.wrap_i64|i(32|64)\.trunc_f(32|64)_[su]|f(32|64)\.convert_i(32|64)_[su]|f64\.promote_f32|f32\.demote_f64|f32\.reinterpret_i32|i32\.reinterpret_f32|f64\.reinterpret_i64|i64\.reinterpret_f64|select|unreachable|current_memory|memory(\.((atomic\.(notify|wait(32|64)))|grow|size))?|type|func|param|result|local|global|module|table|start|elem|data|align|offset|import|export|i64\.atomic\.(load32_u|store32|rmw32\.(a[dn]d|sub|x?or|(cmp)?xchg)_u)|i(32|64)\.atomic\.(load((8|16)_u)?|store(8|16)?|rmw(\.(a[dn]d|sub|x?or|(cmp)?xchg)|(8|16)\.(a[dn]d|sub|x?or|(cmp)?xchg)_u))|v128\.(load|store|const|not|andnot|and|or|xor|bitselect)|i(8x16|16x8|32x4|64x2)\.(shl|shr_[su])|i(8x16|16x8)\.(extract_lane_[su]|((add|sub)_saturate_[su])|avgr_u)|(i(8x16|16x8|32x4|64x2)|f(32x4|64x2))\.(splat|replace_lane|neg|add|sub)|i(8x16|16x8|32x4)\.(eq|ne|([lg][te]_[su])|abs|any_true|all_true|bitmask|((min|max)_[su]))|f(32x4|64x2)\.(eq|ne|[lg][te]|abs|sqrt|mul|div|min|max)|[fi](32x4|64x2)\.extract_lane|v8x16\.(shuffle|swizzle)|i16x8\.(load8x8_[su]|narrow_i32x4_[su]|widen_(low|high)_i8x16_[su]|mul)|i32x4\.(load16x4_[su]|widen_(low|high)_i16x8_[su]|mul|trunc_sat_f32x4_[su])|i64x2\.(load32x2_[su]|mul)|(v(8x16|16x8|32x4|64x2)\.load_splat)|i8x16\.narrow_i16x8_[su]|f32x4\.convert_i32x4_[su]/,
|
|||
|
token:"keyword"},{regex:/\b(anyfunc|[fi](32|64))\b/,token:"atom"},{regex:/\$([a-zA-Z0-9_`\+\-\*\/\\\^~=<>!\?@#$%&|:\.]+)/,token:"variable-2"},{regex:/"(?:[^"\\\x00-\x1f\x7f]|\\[nt\\'"]|\\[0-9a-fA-F][0-9a-fA-F])*"/,token:"string"},{regex:/\(;.*?/,token:"comment",next:"comment"},{regex:/;;.*$/,token:"comment"},{regex:/\(/,indent:!0},{regex:/\)/,dedent:!0}],comment:[{regex:/.*?;\)/,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"]}});q.defineMIME("text/webassembly",
|
|||
|
"wast")})};
|
|||
|
shadow$provide[578]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){function R(X){return new RegExp("^(("+X.join(")|(")+"))\\b")}function A(X,F){if(X.eatSpace())return null;if(F.inComment){if(X.match(J))return F.inComment=!1,"comment";X.skipToEnd();return"comment"}if(X.match("//"))return X.skipToEnd(),"comment";if(X.match(m))return"comment";if(X.match(l))return F.inComment=
|
|||
|
!0,"comment";if(X.match(/^-?[0-9\.]/,!1)&&(X.match(v)||X.match(x)))return"number";if(X.match(u))return"string";if(F.startDef&&X.match(L))return"def";if(F.endDef&&X.match(z))return F.endDef=!1,"def";if(X.match(a))return"keyword";if(X.match(B))return F=F.lastToken,X=(X.match(/^\s*(.+?)\b/,!1)||[])[1],":"===F||"implements"===F||"implements"===X||"\x3d"===X?"builtin":"variable-3";if(X.match(d))return"builtin";if(X.match(r))return"atom";if(X.match(L))return"variable";if(X.match(f))return"operator";X.next();
|
|||
|
return null}var t="Clamp Constructor EnforceRange Exposed ImplicitThis Global PrimaryGlobal LegacyArrayClass LegacyUnenumerableNamedProperties LenientThis NamedConstructor NewObject NoInterfaceObject OverrideBuiltins PutForwards Replaceable SameObject TreatNonObjectAsNull TreatNullAs EmptyString Unforgeable Unscopeable".split(" "),d=R(t),w="unsigned short long unrestricted float double boolean byte octet Promise ArrayBuffer DataView Int8Array Int16Array Int32Array Uint8Array Uint16Array Uint32Array Uint8ClampedArray Float32Array Float64Array ByteString DOMString USVString sequence object RegExp Error DOMException FrozenArray any void".split(" "),
|
|||
|
B=R(w),C="attribute callback const deleter dictionary enum getter implements inherit interface iterable legacycaller maplike partial required serializer setlike setter static stringifier typedef optional readonly or".split(" "),a=R(C),K=["true","false","Infinity","NaN","null"],r=R(K);q.registerHelper("hintWords","webidl",t.concat(w).concat(C).concat(K));var h=R(["callback","dictionary","enum","interface"]),k=R(["typedef"]),f=/^[:<=>?]/,v=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,x=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,
|
|||
|
L=/^_?[A-Za-z][0-9A-Z_a-z-]*/,z=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,u=/^"[^"]*"/,m=/^\/\*.*?\*\//,l=/^\/\*.*/,J=/^.*?\*\//;q.defineMode("webidl",function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(X,F){var ha=A(X,F);ha&&(X=X.current(),F.lastToken=X,"keyword"===ha?(F.startDef=h.test(X),F.endDef=F.endDef||k.test(X)):F.startDef=!1);return ha}}});q.defineMIME("text/x-webidl","webidl")})};
|
|||
|
shadow$provide[579]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("xquery",function(){function R(x,L,z){L.tokenize=z;return z(x,L)}function A(x,L){var z=x.next(),u=!1;var m='"'===x.current()?x.match(/^[^"]+":/,!1):"'"===x.current()?x.match(/^[^"]+':/,!1):!1;if("\x3c"==z){if(x.match("!--",!0))return R(x,L,a);if(x.match("![CDATA",!1))return L.tokenize=
|
|||
|
K,"tag";if(x.match("?",!1))return R(x,L,r);u=x.eat("/");x.eatSpace();for(var l="";z=x.eat(/[^\s\u00a0=<>"'\/?]/);)l+=z;return R(x,L,B(l,u))}if("{"==z)return L.stack.push({type:"codeblock"}),null;if("}"==z)return f(L),null;if(k(L,"tag"))return"\x3e"==z?"tag":"/"==z&&x.eat("\x3e")?(f(L),"tag"):"variable";if(/\d/.test(z))return x.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===z&&x.eat(":"))return L.stack.push({type:"comment"}),R(x,L,t);if(m||'"'!==z&&"'"!==z){if("$"===z)return R(x,L,w);if(":"===
|
|||
|
z&&x.eat("\x3d"))return"keyword";if("("===z)return L.stack.push({type:"paren"}),null;if(")"===z)return f(L),null;if("["===z)return L.stack.push({type:"bracket"}),null;if("]"===z)return f(L),null;l=v.propertyIsEnumerable(z)&&v[z];if(m&&'"'===z)for(;'"'!==x.next(););if(m&&"'"===z)for(;"'"!==x.next(););l||x.eatWhile(/[\w\$_-]/);l=x.eat(":");!x.eat(":")&&l&&x.eatWhile(/[\w\$_-]/);x.match(/^[ \t]*\(/,!1)&&(u=!0);x=x.current();l=v.propertyIsEnumerable(x)&&v[x];u&&!l&&(l={type:"function_call",style:"variable def"});
|
|||
|
if(k(L,"xmlconstructor"))return f(L),"variable";"element"!=x&&"attribute"!=x&&"axis_specifier"!=l.type||L.stack.push({type:"xmlconstructor"});return l?l.style:"variable"}return R(x,L,d(z))}function t(x,L){for(var z=!1,u=!1,m=0,l;l=x.next();){if(")"==l&&z)if(0<m)m--;else{f(L);break}else":"==l&&u&&m++;z=":"==l;u="("==l}return"comment"}function d(x,L){return function(z,u){if(k(u,"string")&&z.current()==x)return f(u),L&&(u.tokenize=L),"string";var m={type:"string",name:x,tokenize:d(x,L)};u.stack.push(m);
|
|||
|
if(z.match("{",!1)&&h(u))return u.tokenize=A,"string";for(;m=z.next();)if(m==x){f(u);L&&(u.tokenize=L);break}else if(z.match("{",!1)&&h(u)){u.tokenize=A;break}return"string"}}function w(x,L){var z=/[\w\$_-]/;if(x.eat('"')){for(;'"'!==x.next(););x.eat(":")}else x.eatWhile(z),x.match(":\x3d",!1)||x.eat(":");x.eatWhile(z);L.tokenize=A;return"variable"}function B(x,L){return function(z,u){z.eatSpace();if(L&&z.eat("\x3e"))return f(u),u.tokenize=A,"tag";z.eat("/")||u.stack.push({type:"tag",name:x,tokenize:A});
|
|||
|
z.eat("\x3e")?u.tokenize=A:u.tokenize=C;return"tag"}}function C(x,L){var z=x.next();if("/"==z&&x.eat("\x3e"))return h(L)&&f(L),k(L,"tag")&&f(L),"tag";if("\x3e"==z)return h(L)&&f(L),"tag";if("\x3d"==z)return null;if('"'==z||"'"==z)return R(x,L,d(z,C));h(L)||L.stack.push({type:"attribute",tokenize:C});x.eat(/[a-zA-Z_:]/);x.eatWhile(/[-a-zA-Z0-9_:.]/);x.eatSpace();if(x.match("\x3e",!1)||x.match("/",!1))f(L),L.tokenize=A;return"attribute"}function a(x,L){for(var z;z=x.next();)if("-"==z&&x.match("-\x3e",
|
|||
|
!0))return L.tokenize=A,"comment"}function K(x,L){for(var z;z=x.next();)if("]"==z&&x.match("]",!0))return L.tokenize=A,"comment"}function r(x,L){for(var z;z=x.next();)if("?"==z&&x.match("\x3e",!0))return L.tokenize=A,"comment meta"}function h(x){return k(x,"attribute")}function k(x,L){return x.stack.length&&x.stack[x.stack.length-1].type==L}function f(x){x.stack.pop();x.tokenize=x.stack.length&&x.stack[x.stack.length-1].tokenize||A}var v=function(){for(var x={type:"operator",style:"keyword"},L={type:"atom",
|
|||
|
style:"atom"},z={type:"axis_specifier",style:"qualifier"},u={",":{type:"punctuation",style:null}},m="after all allowing ancestor ancestor-or-self any array as ascending at attribute base-uri before boundary-space by case cast castable catch child collation comment construction contains content context copy copy-namespaces count decimal-format declare default delete descendant descendant-or-self descending diacritics different distance document document-node element else empty empty-sequence encoding end entire every exactly except external first following following-sibling for from ftand ftnot ft-option ftor function fuzzy greatest group if import in inherit insensitive insert instance intersect into invoke is item language last lax least let levels lowercase map modify module most namespace next no node nodes no-inherit no-preserve not occurs of only option order ordered ordering paragraph paragraphs parent phrase preceding preceding-sibling preserve previous processing-instruction relationship rename replace return revalidation same satisfies schema schema-attribute schema-element score self sensitive sentence sentences sequence skip sliding some stable start stemming stop strict strip switch text then thesaurus times to transform treat try tumbling type typeswitch union unordered update updating uppercase using validate value variable version weight when where wildcards window with without word words xquery".split(" "),
|
|||
|
l=0,J=m.length;l<J;l++)u[m[l]]={type:m[l],style:"keyword"};m="xs:anyAtomicType xs:anySimpleType xs:anyType xs:anyURI xs:base64Binary xs:boolean xs:byte xs:date xs:dateTime xs:dateTimeStamp xs:dayTimeDuration xs:decimal xs:double xs:duration xs:ENTITIES xs:ENTITY xs:float xs:gDay xs:gMonth xs:gMonthDay xs:gYear xs:gYearMonth xs:hexBinary xs:ID xs:IDREF xs:IDREFS xs:int xs:integer xs:item xs:java xs:language xs:long xs:Name xs:NCName xs:negativeInteger xs:NMTOKEN xs:NMTOKENS xs:nonNegativeInteger xs:nonPositiveInteger xs:normalizedString xs:NOTATION xs:numeric xs:positiveInteger xs:precisionDecimal xs:QName xs:short xs:string xs:time xs:token xs:unsignedByte xs:unsignedInt xs:unsignedLong xs:unsignedShort xs:untyped xs:untypedAtomic xs:yearMonthDuration".split(" ");
|
|||
|
l=0;for(J=m.length;l<J;l++)u[m[l]]=L;L="eq ne lt le gt ge :\x3d \x3d \x3e \x3e\x3d \x3c \x3c\x3d . | ? and or div idiv mod * / + -".split(" ");l=0;for(J=L.length;l<J;l++)u[L[l]]=x;x="self:: attribute:: child:: descendant:: descendant-or-self:: parent:: ancestor:: ancestor-or-self:: following:: preceding:: following-sibling:: preceding-sibling::".split(" ");l=0;for(J=x.length;l<J;l++)u[x[l]]=z;return u}();return{startState:function(){return{tokenize:A,cc:[],stack:[]}},token:function(x,L){return x.eatSpace()?
|
|||
|
null:L.tokenize(x,L)},blockCommentStart:"(:",blockCommentEnd:":)"}});q.defineMIME("application/xquery","xquery")})};
|
|||
|
shadow$provide[580]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("yacas",function(R,A){function t(k,f){var v=k.next();if('"'===v)return f.tokenize=d,f.tokenize(k,f);if("/"===v){if(k.eat("*"))return f.tokenize=w,f.tokenize(k,f);if(k.eat("/"))return k.skipToEnd(),"comment"}k.backUp(1);var x=k.match(/^(\w+)\s*\(/,!1);null!==x&&C.hasOwnProperty(x[1])&&
|
|||
|
f.scopes.push("bodied");x=B(f);"bodied"===x&&"["===v&&f.scopes.pop();"["!==v&&"{"!==v&&"("!==v||f.scopes.push(v);x=B(f);("["===x&&"]"===v||"{"===x&&"}"===v||"("===x&&")"===v)&&f.scopes.pop();if(";"===v)for(;"bodied"===x;)f.scopes.pop(),x=B(f);return k.match(/\d+ *#/,!0,!1)?"qualifier":k.match(a,!0,!1)?"number":k.match(r,!0,!1)?"variable-3":k.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":k.match(h,!0,!1)?(k.backUp(1),"variable"):k.match(K,!0,!1)?"variable-2":k.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,
|
|||
|
!0,!1)?"operator":"error"}function d(k,f){for(var v,x=!1,L=!1;null!=(v=k.next());){if('"'===v&&!L){x=!0;break}L=!L&&"\\"===v}x&&!L&&(f.tokenize=t);return"string"}function w(k,f){for(var v,x;null!=(x=k.next());){if("*"===v&&"/"===x){f.tokenize=t;break}v=x}return"comment"}function B(k){var f=null;0<k.scopes.length&&(f=k.scopes[k.scopes.length-1]);return f}var C=function(k){var f={};k=k.split(" ");for(var v=0;v<k.length;++v)f[k[v]]=!0;return f}("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),
|
|||
|
a=RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),K=RegExp("(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)"),r=RegExp("(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)?_(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)"),h=RegExp("(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)\\s*\\(");return{startState:function(){return{tokenize:t,scopes:[]}},token:function(k,f){return k.eatSpace()?null:f.tokenize(k,f)},indent:function(k,f){if(k.tokenize!==t&&null!==k.tokenize)return q.Pass;var v=0;if("]"===f||"];"===f||"}"===f||"};"===f||");"===f)v=-1;return(k.scopes.length+
|
|||
|
v)*R.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});q.defineMIME("text/x-yacas",{name:"yacas"})})};
|
|||
|
shadow$provide[581]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("yaml",function(){var R=RegExp("\\b((true)|(false)|(on)|(off)|(yes)|(no))$","i");return{token:function(A,t){var d=A.peek(),w=t.escaped;t.escaped=!1;if("#"==d&&(0==A.pos||/\s/.test(A.string.charAt(A.pos-1))))return A.skipToEnd(),"comment";if(A.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";
|
|||
|
if(t.literal&&A.indentation()>t.keyCol)return A.skipToEnd(),"string";t.literal&&(t.literal=!1);if(A.sol()){t.keyCol=0;t.pair=!1;t.pairStart=!1;if(A.match(/---/)||A.match(/\.\.\./))return"def";if(A.match(/\s*-\s+/))return"meta"}if(A.match(/^(\{|\}|\[|\])/))return"{"==d?t.inlinePairs++:"}"==d?t.inlinePairs--:"["==d?t.inlineList++:t.inlineList--,"meta";if(0<t.inlineList&&!w&&","==d)return A.next(),"meta";if(0<t.inlinePairs&&!w&&","==d)return t.keyCol=0,t.pair=!1,t.pairStart=!1,A.next(),"meta";if(t.pairStart){if(A.match(/^\s*(\||>)\s*/))return t.literal=
|
|||
|
!0,"meta";if(A.match(/^\s*(&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==t.inlinePairs&&A.match(/^\s*-?[0-9\.,]+\s?$/)||0<t.inlinePairs&&A.match(/^\s*-?[0-9\.,]+\s?(?=(,|}))/))return"number";if(A.match(R))return"keyword"}if(!t.pair&&A.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/))return t.pair=!0,t.keyCol=A.indentation(),"atom";if(t.pair&&A.match(/^:\s*/))return t.pairStart=!0,"meta";t.pairStart=!1;t.escaped="\\"==d;A.next();return null},startState:function(){return{pair:!1,
|
|||
|
pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}});q.defineMIME("text/x-yaml","yaml");q.defineMIME("text/yaml","yaml")})};
|
|||
|
shadow$provide[582]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454),W(581)):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../yaml/yaml"],q):q(CodeMirror)})(function(q){q.defineMode("yaml-frontmatter",function(R,A){var t=q.getMode(R,"yaml"),d=q.getMode(R,A&&A.base||"gfm");return{startState:function(){return{state:0,inner:q.startState(t)}},copyState:function(w){return{state:w.state,inner:q.copyState(2==w.state?d:t,w.inner)}},token:function(w,
|
|||
|
B){if(0==B.state){if(w.match(/---/,!1))return B.state=1,t.token(w,B.inner);B.state=2;B.inner=q.startState(d);return d.token(w,B.inner)}if(1==B.state){var C=w.sol()&&w.match(/(---|\.\.\.)/,!1);w=t.token(w,B.inner);C&&(B.state=2,B.inner=q.startState(d));return w}return d.token(w,B.inner)},innerMode:function(w){return{mode:2==w.state?d:t,state:w.inner}},blankLine:function(w){var B=2==w.state?d:t;if(B.blankLine)return B.blankLine(w.inner)}}})})};
|
|||
|
shadow$provide[583]=function(wa,W,Ta,I){(function(q){"object"==typeof I&&"object"==typeof Ta?q(W(454)):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],q):q(CodeMirror)})(function(q){q.defineMode("z80",function(R,A){var t=A.ez80;if(t){var d=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i;
|
|||
|
var w=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i}else d=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,w=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i;var B=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,C=/^(n?[zc]|p[oe]?|m)\b/i,a=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,K=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{startState:function(){return{context:0}},
|
|||
|
token:function(r,h){r.column()||(h.context=0);if(r.eatSpace())return null;if(r.eatWhile(/\w/)){t&&r.eat(".")&&r.eatWhile(/\w/);var k=r.current();if(r.indentation()){if((1==h.context||4==h.context)&&B.test(k))return h.context=4,"var2";if(2==h.context&&C.test(k))return h.context=4,"var3";if(d.test(k))return h.context=1,"keyword";if(w.test(k))return h.context=2,"keyword";if(4==h.context&&K.test(k))return"number";if(a.test(k))return"error"}else if(r.match(K))return"number"}else{if(r.eat(";"))return r.skipToEnd(),
|
|||
|
"comment";if(r.eat('"')){for(;(k=r.next())&&'"'!=k;)"\\"==k&&r.next();return"string"}if(r.eat("'")){if(r.match(/\\?.'/))return"number"}else if(r.eat(".")||r.sol()&&r.eat("#")){if(h.context=5,r.eatWhile(/\w/))return"def"}else if(r.eat("$")){if(r.eatWhile(/[\da-f]/i))return"number"}else if(r.eat("%")){if(r.eatWhile(/[01]/))return"number"}else r.next()}return null}}});q.defineMIME("text/x-z80","z80");q.defineMIME("text/x-ez80",{name:"z80",ez80:!0})})};
|
|||
|
shadow$provide[584]=function(wa,W,Ta,I){(function(q){function R(v){function x(N,ca){var ia,ea,qa,za,ya=this;if(!(ya instanceof x))return new x(N,ca);if(null==ca){if(N&&!0===N._isBigNumber){ya.s=N.s;!N.c||N.e>aa?ya.c=ya.e=null:N.e<E?ya.c=[ya.e=0]:(ya.e=N.e,ya.c=N.c.slice());return}if((qa="number"==typeof N)&&0==0*N){ya.s=0>1/N?(N=-N,-1):1;if(N===~~N){var Ha=0;for(ea=N;10<=ea;ea/=10,Ha++);Ha>aa?ya.c=ya.e=null:(ya.e=Ha,ya.c=[N]);return}var Ua=String(N)}else{if(!K.test(Ua=String(N)))return ja(ya,Ua,qa);
|
|||
|
ya.s=45==Ua.charCodeAt(0)?(Ua=Ua.slice(1),-1):1}-1<(Ha=Ua.indexOf("."))&&(Ua=Ua.replace(".",""));0<(ea=Ua.search(/e/i))?(0>Ha&&(Ha=ea),Ha+=+Ua.slice(ea+1),Ua=Ua.substring(0,ea)):0>Ha&&(Ha=Ua.length)}else{w(ca,2,P.length,"Base");if(10==ca&&da)return ya=new x(N),m(ya,F+ya.e+1,ha);Ua=String(N);if(qa="number"==typeof N){if(0!=0*N)return ja(ya,Ua,qa,ca);ya.s=0>1/N?(Ua=Ua.slice(1),-1):1;if(x.DEBUG&&15<Ua.replace(/^0\.0*|\./,"").length)throw Error("[BigNumber Error] Number primitive has more than 15 significant digits: "+
|
|||
|
N);}else ya.s=45===Ua.charCodeAt(0)?(Ua=Ua.slice(1),-1):1;var Ea=P.slice(0,ca);Ha=ea=0;for(za=Ua.length;ea<za;ea++)if(0>Ea.indexOf(ia=Ua.charAt(ea))){if("."==ia){if(ea>Ha){Ha=za;continue}}else if(!Oa&&(Ua==Ua.toUpperCase()&&(Ua=Ua.toLowerCase())||Ua==Ua.toLowerCase()&&(Ua=Ua.toUpperCase()))){var Oa=!0;ea=-1;Ha=0;continue}return ja(ya,String(N),qa,ca)}qa=!1;Ua=ba(Ua,ca,10,ya.s);-1<(Ha=Ua.indexOf("."))?Ua=Ua.replace(".",""):Ha=Ua.length}for(ea=0;48===Ua.charCodeAt(ea);ea++);for(za=Ua.length;48===Ua.charCodeAt(--za););
|
|||
|
if(Ua=Ua.slice(ea,++za)){za-=ea;if(qa&&x.DEBUG&&15<za&&(9007199254740991<N||N!==h(N)))throw Error("[BigNumber Error] Number primitive has more than 15 significant digits: "+ya.s*N);if((Ha=Ha-ea-1)>aa)ya.c=ya.e=null;else if(Ha<E)ya.c=[ya.e=0];else{ya.e=Ha;ya.c=[];ea=(Ha+1)%14;0>Ha&&(ea+=14);if(ea<za){ea&&ya.c.push(+Ua.slice(0,ea));for(za-=14;ea<za;)ya.c.push(+Ua.slice(ea,ea+=14));ea=14-(Ua=Ua.slice(ea)).length}else ea-=za;for(;ea--;Ua+="0");ya.c.push(+Ua)}}else ya.c=[ya.e=0]}function L(N,ca,ia,ea){null==
|
|||
|
ia?ia=ha:w(ia,0,8);if(!N.c)return N.toString();var qa=N.c[0];var za=N.e;if(null==ca){var ya=t(N.c);ya=1==ea||2==ea&&(za<=T||za>=Z)?C(ya,za):a(ya,za,"0")}else{N=m(new x(N),ca,ia);ia=N.e;ya=t(N.c);var Ha=ya.length;if(1==ea||2==ea&&(ca<=ia||ia<=T)){for(;Ha<ca;ya+="0",Ha++);ya=C(ya,ia)}else if(ca-=za,ya=a(ya,ia,"0"),ia+1>Ha){if(0<--ca)for(ya+=".";ca--;ya+="0");}else if(ca+=ia-Ha,0<ca)for(ia+1==Ha&&(ya+=".");ca--;ya+="0");}return 0>N.s&&qa?"-"+ya:ya}function z(N,ca){for(var ia,ea=1,qa=new x(N[0]);ea<N.length;ea++)if(ia=
|
|||
|
new x(N[ea]),ia.s)ca.call(qa,ia)&&(qa=ia);else{qa=ia;break}return qa}function u(N,ca,ia){for(var ea=1,qa=ca.length;!ca[--qa];ca.pop());for(qa=ca[0];10<=qa;qa/=10,ea++);(ia=ea+14*ia-1)>aa?N.c=N.e=null:ia<E?N.c=[N.e=0]:(N.e=ia,N.c=ca);return N}function m(N,ca,ia,ea){var qa,za,ya=N.c,Ha=k;if(ya){a:{var Ua=1;for(qa=ya[0];10<=qa;qa/=10,Ua++);var Ea=ca-Ua;if(0>Ea){Ea+=14;var Oa=ca;var Xa=ya[za=0];qa=Xa/Ha[Ua-Oa-1]%10|0}else if(za=r((Ea+1)/14),za>=ya.length)if(ea){for(;ya.length<=za;ya.push(0));Xa=qa=0;
|
|||
|
Ua=1;Ea%=14;Oa=Ea-14+1}else break a;else{Xa=qa=ya[za];for(Ua=1;10<=qa;qa/=10,Ua++);Ea%=14;Oa=Ea-14+Ua;qa=0>Oa?0:Xa/Ha[Ua-Oa-1]%10|0}ea=ea||0>ca||null!=ya[za+1]||(0>Oa?Xa:Xa%Ha[Ua-Oa-1]);ea=4>ia?(qa||ea)&&(0==ia||ia==(0>N.s?3:2)):5<qa||5==qa&&(4==ia||ea||6==ia&&(0<Ea?0<Oa?Xa/Ha[Ua-Oa]:0:ya[za-1])%10&1||ia==(0>N.s?8:7));if(1>ca||!ya[0])return ya.length=0,ea?(ca-=N.e+1,ya[0]=Ha[(14-ca%14)%14],N.e=-ca||0):ya[0]=N.e=0,N;0==Ea?(ya.length=za,qa=1,za--):(ya.length=za+1,qa=Ha[14-Ea],ya[za]=0<Oa?h(Xa/Ha[Ua-
|
|||
|
Oa]%Ha[Oa])*qa:0);if(ea)for(;;)if(0==za){Ea=1;for(Oa=ya[0];10<=Oa;Oa/=10,Ea++);Oa=ya[0]+=qa;for(qa=1;10<=Oa;Oa/=10,qa++);Ea!=qa&&(N.e++,1E14==ya[0]&&(ya[0]=1));break}else{ya[za]+=qa;if(1E14!=ya[za])break;ya[za--]=0;qa=1}for(Ea=ya.length;0===ya[--Ea];ya.pop());}N.e>aa?N.c=N.e=null:N.e<E&&(N.c=[N.e=0])}return N}function l(N){var ca=N.e;if(null===ca)return N.toString();var ia=t(N.c);ia=ca<=T||ca>=Z?C(ia,ca):a(ia,ca,"0");return 0>N.s?"-"+ia:ia}var J=x.prototype={constructor:x,toString:null,valueOf:null},
|
|||
|
X=new x(1),F=20,ha=4,T=-7,Z=21,E=-1E7,aa=1E7,M=!1,S=1,D=0,O={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz",da=!0;x.clone=R;x.ROUND_UP=0;x.ROUND_DOWN=1;x.ROUND_CEIL=2;x.ROUND_FLOOR=3;x.ROUND_HALF_UP=4;x.ROUND_HALF_DOWN=5;x.ROUND_HALF_EVEN=6;x.ROUND_HALF_CEIL=7;x.ROUND_HALF_FLOOR=8;x.EUCLID=9;x.config=x.set=function(N){var ca;if(null!=N)if("object"==typeof N){if(N.hasOwnProperty(ca=
|
|||
|
"DECIMAL_PLACES")){var ia=N[ca];w(ia,0,1E9,ca);F=ia}N.hasOwnProperty(ca="ROUNDING_MODE")&&(ia=N[ca],w(ia,0,8,ca),ha=ia);N.hasOwnProperty(ca="EXPONENTIAL_AT")&&((ia=N[ca])&&ia.pop?(w(ia[0],-1E9,0,ca),w(ia[1],0,1E9,ca),T=ia[0],Z=ia[1]):(w(ia,-1E9,1E9,ca),T=-(Z=0>ia?-ia:ia)));if(N.hasOwnProperty(ca="RANGE"))if((ia=N[ca])&&ia.pop)w(ia[0],-1E9,-1,ca),w(ia[1],1,1E9,ca),E=ia[0],aa=ia[1];else if(w(ia,-1E9,1E9,ca),ia)E=-(aa=0>ia?-ia:ia);else throw Error("[BigNumber Error] "+ca+" cannot be zero: "+ia);if(N.hasOwnProperty(ca=
|
|||
|
"CRYPTO"))if(ia=N[ca],ia===!!ia)if(ia)if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))M=ia;else throw M=!ia,Error("[BigNumber Error] crypto unavailable");else M=ia;else throw Error("[BigNumber Error] "+ca+" not true or false: "+ia);N.hasOwnProperty(ca="MODULO_MODE")&&(ia=N[ca],w(ia,0,9,ca),S=ia);N.hasOwnProperty(ca="POW_PRECISION")&&(ia=N[ca],w(ia,0,1E9,ca),D=ia);if(N.hasOwnProperty(ca="FORMAT"))if(ia=N[ca],"object"==typeof ia)O=ia;else throw Error("[BigNumber Error] "+
|
|||
|
ca+" not an object: "+ia);if(N.hasOwnProperty(ca="ALPHABET")){ia=N[ca];if("string"!=typeof ia||/^.?$|[+\-.\s]|(.).*\1/.test(ia))throw Error("[BigNumber Error] "+ca+" invalid: "+ia);da="0123456789"==ia.slice(0,10);P=ia}}else throw Error("[BigNumber Error] Object expected: "+N);return{DECIMAL_PLACES:F,ROUNDING_MODE:ha,EXPONENTIAL_AT:[T,Z],RANGE:[E,aa],CRYPTO:M,MODULO_MODE:S,POW_PRECISION:D,FORMAT:O,ALPHABET:P}};x.isBigNumber=function(N){if(!N||!0!==N._isBigNumber)return!1;if(!x.DEBUG)return!0;var ca=
|
|||
|
N.c;var ia=N.e;var ea=N.s;a:if("[object Array]"=={}.toString.call(ca)){if((1===ea||-1===ea)&&-1E9<=ia&&1E9>=ia&&ia===h(ia))if(0===ca[0]){if(0===ia&&1===ca.length)return!0}else if(ia=(ia+1)%14,1>ia&&(ia+=14),String(ca[0]).length==ia){for(ia=0;ia<ca.length;ia++){var qa=ca[ia];if(0>qa||1E14<=qa||qa!==h(qa))break a}if(0!==qa)return!0}}else if(null===ca&&null===ia&&(null===ea||1===ea||-1===ea))return!0;throw Error("[BigNumber Error] Invalid BigNumber: "+N);};x.maximum=x.max=function(){return z(arguments,
|
|||
|
J.lt)};x.minimum=x.min=function(){return z(arguments,J.gt)};x.random=function(){var N=9007199254740992*Math.random()&2097151?function(){return h(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(ca){var ia,ea=0,qa=[],za=new x(X);null==ca?ca=F:w(ca,0,1E9);var ya=r(ca/14);if(M)if(crypto.getRandomValues){for(ia=crypto.getRandomValues(new Uint32Array(ya*=2));ea<ya;){var Ha=131072*ia[ea]+(ia[ea+1]>>>11);9E15<=Ha?(Ha=crypto.getRandomValues(new Uint32Array(2)),
|
|||
|
ia[ea]=Ha[0],ia[ea+1]=Ha[1]):(qa.push(Ha%1E14),ea+=2)}ea=ya/2}else if(crypto.randomBytes){for(ia=crypto.randomBytes(ya*=7);ea<ya;)Ha=281474976710656*(ia[ea]&31)+1099511627776*ia[ea+1]+4294967296*ia[ea+2]+16777216*ia[ea+3]+(ia[ea+4]<<16)+(ia[ea+5]<<8)+ia[ea+6],9E15<=Ha?crypto.randomBytes(7).copy(ia,ea):(qa.push(Ha%1E14),ea+=7);ea=ya/7}else throw M=!1,Error("[BigNumber Error] crypto unavailable");if(!M)for(;ea<ya;)Ha=N(),9E15>Ha&&(qa[ea++]=Ha%1E14);ya=qa[--ea];ca%=14;ya&&ca&&(Ha=k[14-ca],qa[ea]=h(ya/
|
|||
|
Ha)*Ha);for(;0===qa[ea];qa.pop(),ea--);if(0>ea)qa=[ca=0];else{for(ca=-1;0===qa[0];qa.splice(0,1),ca-=14);ea=1;for(Ha=qa[0];10<=Ha;Ha/=10,ea++);14>ea&&(ca-=14-ea)}za.e=ca;za.c=qa;return za}}();x.sum=function(){for(var N=1,ca=arguments,ia=new x(ca[0]);N<ca.length;)ia=ia.plus(ca[N++]);return ia};var ba=function(){function N(ca,ia,ea,qa){for(var za,ya=[0],Ha=0,Ua=ca.length;Ha<Ua;){for(za=ya.length;za--;ya[za]*=ia);ya[0]+=qa.indexOf(ca.charAt(Ha++));for(za=0;za<ya.length;za++)ya[za]>ea-1&&(null==ya[za+
|
|||
|
1]&&(ya[za+1]=0),ya[za+1]+=ya[za]/ea|0,ya[za]%=ea)}return ya.reverse()}return function(ca,ia,ea,qa,za){var ya,Ha=ca.indexOf("."),Ua=F,Ea=ha;if(0<=Ha){var Oa=D;D=0;ca=ca.replace(".","");var Xa=new x(ia);var Ma=Xa.pow(ca.length-Ha);D=Oa;Xa.c=N(a(t(Ma.c),Ma.e,"0"),10,ea,"0123456789");Xa.e=Xa.c.length}za=N(ca,ia,ea,za?(ya=P,"0123456789"):(ya="0123456789",P));for(ia=Oa=za.length;0==za[--Oa];za.pop());if(!za[0])return ya.charAt(0);if(0>Ha)--ia;else{Ma.c=za;Ma.e=ia;Ma.s=qa;Ma=H(Ma,Xa,Ua,Ea,ea);za=Ma.c;var eb=
|
|||
|
Ma.r;ia=Ma.e}ca=ia+Ua+1;Ha=za[ca];Oa=ea/2;eb=eb||0>ca||null!=za[ca+1];eb=4>Ea?(null!=Ha||eb)&&(0==Ea||Ea==(0>Ma.s?3:2)):Ha>Oa||Ha==Oa&&(4==Ea||eb||6==Ea&&za[ca-1]&1||Ea==(0>Ma.s?8:7));if(1>ca||!za[0])ca=eb?a(ya.charAt(1),-Ua,ya.charAt(0)):ya.charAt(0);else{za.length=ca;if(eb)for(--ea;++za[--ca]>ea;)za[ca]=0,ca||(++ia,za=[1].concat(za));for(Oa=za.length;!za[--Oa];);Ha=0;for(ca="";Ha<=Oa;ca+=ya.charAt(za[Ha++]));ca=a(ca,ia,ya.charAt(0))}return ca}}();var H=function(){function N(ea,qa,za){var ya=0,Ha=
|
|||
|
ea.length,Ua=qa%1E7,Ea=qa/1E7|0;for(ea=ea.slice();Ha--;){var Oa=ea[Ha]%1E7;var Xa=ea[Ha]/1E7|0;qa=Ea*Oa+Xa*Ua;Oa=Ua*Oa+qa%1E7*1E7+ya;ya=(Oa/za|0)+(qa/1E7|0)+Ea*Xa;ea[Ha]=Oa%za}ya&&(ea=[ya].concat(ea));return ea}function ca(ea,qa,za,ya){if(za!=ya)var Ha=za>ya?1:-1;else for(ya=Ha=0;ya<za;ya++)if(ea[ya]!=qa[ya]){Ha=ea[ya]>qa[ya]?1:-1;break}return Ha}function ia(ea,qa,za,ya){for(var Ha=0;za--;)ea[za]-=Ha,Ha=ea[za]<qa[za]?1:0,ea[za]=Ha*ya+ea[za]-qa[za];for(;!ea[0]&&1<ea.length;ea.splice(0,1));}return function(ea,
|
|||
|
qa,za,ya,Ha){var Ua,Ea=ea.s==qa.s?1:-1;var Oa=ea.c;var Xa=qa.c;if(!(Oa&&Oa[0]&&Xa&&Xa[0]))return new x(ea.s&&qa.s&&(Oa?!Xa||Oa[0]!=Xa[0]:Xa)?Oa&&0==Oa[0]||!Xa?0*Ea:Ea/0:NaN);var Ma=new x(Ea);var eb=Ma.c=[];var db=ea.e-qa.e;Ea=za+db+1;Ha||(Ha=1E14,db=A(ea.e/14)-A(qa.e/14),Ea=Ea/14|0);for(ea=0;Xa[ea]==(Oa[ea]||0);ea++);Xa[ea]>(Oa[ea]||0)&&db--;if(0>Ea)eb.push(1),Oa=!0;else{var Na=Oa.length;var oa=Xa.length;ea=0;Ea+=2;var Ca=h(Ha/(Xa[0]+1));1<Ca&&(Xa=N(Xa,Ca,Ha),Oa=N(Oa,Ca,Ha),oa=Xa.length,Na=Oa.length);
|
|||
|
var sa=oa;var Aa=Oa.slice(0,oa);for(Ua=Aa.length;Ua<oa;Aa[Ua++]=0);var Ja=Xa.slice();Ja=[0].concat(Ja);var Sa=Xa[0];Xa[1]>=Ha/2&&Sa++;do{Ca=0;qa=ca(Xa,Aa,oa,Ua);if(0>qa){Ca=Aa[0];oa!=Ua&&(Ca=Ca*Ha+(Aa[1]||0));Ca=h(Ca/Sa);if(1<Ca){Ca>=Ha&&(Ca=Ha-1);var Ab=N(Xa,Ca,Ha);var jb=Ab.length;for(Ua=Aa.length;1==ca(Ab,Aa,jb,Ua);)Ca--,ia(Ab,oa<jb?Ja:Xa,jb,Ha),jb=Ab.length,qa=1}else 0==Ca&&(qa=Ca=1),Ab=Xa.slice(),jb=Ab.length;jb<Ua&&(Ab=[0].concat(Ab));ia(Aa,Ab,Ua,Ha);Ua=Aa.length;if(-1==qa)for(;1>ca(Xa,Aa,oa,
|
|||
|
Ua);)Ca++,ia(Aa,oa<Ua?Ja:Xa,Ua,Ha),Ua=Aa.length}else 0===qa&&(Ca++,Aa=[0]);eb[ea++]=Ca;Aa[0]?Aa[Ua++]=Oa[sa]||0:(Aa=[Oa[sa]],Ua=1)}while((sa++<Na||null!=Aa[0])&&Ea--);Oa=null!=Aa[0];eb[0]||eb.splice(0,1)}if(1E14==Ha){ea=1;for(Ea=eb[0];10<=Ea;Ea/=10,ea++);m(Ma,za+(Ma.e=ea+14*db-1)+1,ya,Oa)}else Ma.e=db,Ma.r=+Oa;return Ma}}();var ja=function(){var N=/^(-?)0([xbo])(?=\w[\w.]*$)/i,ca=/^([^.]+)\.$/,ia=/^\.([^.]+)$/,ea=/^-?(Infinity|NaN)$/,qa=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(za,ya,Ha,Ua){var Ea=
|
|||
|
Ha?ya:ya.replace(qa,"");if(ea.test(Ea))za.s=isNaN(Ea)?null:0>Ea?-1:1;else{if(!Ha){Ea=Ea.replace(N,function(Xa,Ma,eb){Oa="x"==(eb=eb.toLowerCase())?16:"b"==eb?2:8;return Ua&&Ua!=Oa?Xa:Ma});if(Ua){var Oa=Ua;Ea=Ea.replace(ca,"$1").replace(ia,"0.$1")}if(ya!=Ea)return new x(Ea,Oa)}if(x.DEBUG)throw Error("[BigNumber Error] Not a"+(Ua?" base "+Ua:"")+" number: "+ya);za.s=null}za.c=za.e=null}}();J.absoluteValue=J.abs=function(){var N=new x(this);0>N.s&&(N.s=1);return N};J.comparedTo=function(N,ca){return d(this,
|
|||
|
new x(N,ca))};J.decimalPlaces=J.dp=function(N,ca){var ia;if(null!=N)return w(N,0,1E9),null==ca?ca=ha:w(ca,0,8),m(new x(this),N+this.e+1,ca);if(!(N=this.c))return null;ca=14*((ia=N.length-1)-A(this.e/14));if(ia=N[ia])for(;0==ia%10;ia/=10,ca--);0>ca&&(ca=0);return ca};J.dividedBy=J.div=function(N,ca){return H(this,new x(N,ca),F,ha)};J.dividedToIntegerBy=J.idiv=function(N,ca){return H(this,new x(N,ca),0,1)};J.exponentiatedBy=J.pow=function(N,ca){var ia,ea=this;N=new x(N);if(N.c&&!N.isInteger())throw Error("[BigNumber Error] Exponent not an integer: "+
|
|||
|
l(N));null!=ca&&(ca=new x(ca));var qa=14<N.e;if(!ea.c||!ea.c[0]||1==ea.c[0]&&!ea.e&&1==ea.c.length||!N.c||!N.c[0]){var za=new x(Math.pow(+l(ea),qa?2-B(N):+l(N)));return ca?za.mod(ca):za}var ya=0>N.s;if(ca){if(ca.c?!ca.c[0]:!ca.s)return new x(NaN);(ia=!ya&&ea.isInteger()&&ca.isInteger())&&(ea=ea.mod(ca))}else{if(9<N.e&&(0<ea.e||-1>ea.e||(0==ea.e?1<ea.c[0]||qa&&24E7<=ea.c[1]:8E13>ea.c[0]||qa&&9999975E7>=ea.c[0]))){var Ha=0>ea.s&&B(N)?-0:0;-1<ea.e&&(Ha=1/Ha);return new x(ya?1/Ha:Ha)}D&&(Ha=r(D/14+2))}if(qa){var Ua=
|
|||
|
new x(.5);ya&&(N.s=1);qa=B(N)}else{var Ea=Math.abs(+l(N));qa=Ea%2}for(za=new x(X);;){if(qa){za=za.times(ea);if(!za.c)break;Ha?za.c.length>Ha&&(za.c.length=Ha):ia&&(za=za.mod(ca))}if(Ea){Ea=h(Ea/2);if(0===Ea)break;qa=Ea%2}else if(N=N.times(Ua),m(N,N.e+1,1),14<N.e)qa=B(N);else{Ea=+l(N);if(0===Ea)break;qa=Ea%2}ea=ea.times(ea);Ha?ea.c&&ea.c.length>Ha&&(ea.c.length=Ha):ia&&(ea=ea.mod(ca))}if(ia)return za;ya&&(za=X.div(za));return ca?za.mod(ca):Ha?m(za,D,ha,void 0):za};J.integerValue=function(N){var ca=
|
|||
|
new x(this);null==N?N=ha:w(N,0,8);return m(ca,ca.e+1,N)};J.isEqualTo=J.eq=function(N,ca){return 0===d(this,new x(N,ca))};J.isFinite=function(){return!!this.c};J.isGreaterThan=J.gt=function(N,ca){return 0<d(this,new x(N,ca))};J.isGreaterThanOrEqualTo=J.gte=function(N,ca){return 1===(ca=d(this,new x(N,ca)))||0===ca};J.isInteger=function(){return!!this.c&&A(this.e/14)>this.c.length-2};J.isLessThan=J.lt=function(N,ca){return 0>d(this,new x(N,ca))};J.isLessThanOrEqualTo=J.lte=function(N,ca){return-1===
|
|||
|
(ca=d(this,new x(N,ca)))||0===ca};J.isNaN=function(){return!this.s};J.isNegative=function(){return 0>this.s};J.isPositive=function(){return 0<this.s};J.isZero=function(){return!!this.c&&0==this.c[0]};J.minus=function(N,ca){var ia,ea=this.s;N=new x(N,ca);ca=N.s;if(!ea||!ca)return new x(NaN);if(ea!=ca)return N.s=-ca,this.plus(N);var qa=this.e/14;var za=N.e/14,ya=this.c,Ha=N.c;if(!qa||!za){if(!ya||!Ha)return ya?(N.s=-ca,N):new x(Ha?this:NaN);if(!ya[0]||!Ha[0])return Ha[0]?(N.s=-ca,N):new x(ya[0]?this:
|
|||
|
3==ha?-0:0)}qa=A(qa);za=A(za);ya=ya.slice();if(ea=qa-za){(ia=0>ea)?(ea=-ea,qa=ya):(za=qa,qa=Ha);qa.reverse();for(ca=ea;ca--;qa.push(0));qa.reverse()}else for(qa=(ia=(ea=ya.length)<(ca=Ha.length))?ea:ca,ea=ca=0;ca<qa;ca++)if(ya[ca]!=Ha[ca]){ia=ya[ca]<Ha[ca];break}ia&&(qa=ya,ya=Ha,Ha=qa,N.s=-N.s);ca=(qa=Ha.length)-(ia=ya.length);if(0<ca)for(;ca--;ya[ia++]=0);for(ca=1E14-1;qa>ea;){if(ya[--qa]<Ha[qa]){for(ia=qa;ia&&!ya[--ia];ya[ia]=ca);--ya[ia];ya[qa]+=1E14}ya[qa]-=Ha[qa]}for(;0==ya[0];ya.splice(0,1),
|
|||
|
--za);return ya[0]?u(N,ya,za):(N.s=3==ha?-1:1,N.c=[N.e=0],N)};J.modulo=J.mod=function(N,ca){N=new x(N,ca);if(!this.c||!N.s||N.c&&!N.c[0])return new x(NaN);if(!N.c||this.c&&!this.c[0])return new x(this);if(9==S){var ia=N.s;N.s=1;ca=H(this,N,0,3);N.s=ia;ca.s*=ia}else ca=H(this,N,0,S);N=this.minus(ca.times(N));N.c[0]||1!=S||(N.s=this.s);return N};J.multipliedBy=J.times=function(N,ca){var ia=this.c,ea=(N=new x(N,ca)).c;if(!(ia&&ea&&ia[0]&&ea[0]))return!this.s||!N.s||ia&&!ia[0]&&!ea||ea&&!ea[0]&&!ia?N.c=
|
|||
|
N.e=N.s=null:(N.s*=this.s,ia&&ea?(N.c=[0],N.e=0):N.c=N.e=null),N;ca=A(this.e/14)+A(N.e/14);N.s*=this.s;var qa=ia.length;var za=ea.length;if(qa<za){var ya=ia;ia=ea;ea=ya;var Ha=qa;qa=za;za=Ha}Ha=qa+za;for(ya=[];Ha--;ya.push(0));for(Ha=za;0<=--Ha;){var Ua=0;var Ea=ea[Ha]%1E7;var Oa=ea[Ha]/1E7|0;var Xa=qa;for(za=Ha+Xa;za>Ha;){var Ma=ia[--Xa]%1E7;var eb=ia[Xa]/1E7|0;var db=Oa*Ma+eb*Ea;Ma=Ea*Ma+db%1E7*1E7+ya[za]+Ua;Ua=(Ma/1E14|0)+(db/1E7|0)+Oa*eb;ya[za--]=Ma%1E14}ya[za]=Ua}Ua?++ca:ya.splice(0,1);return u(N,
|
|||
|
ya,ca)};J.negated=function(){var N=new x(this);N.s=-N.s||null;return N};J.plus=function(N,ca){var ia=this.s;N=new x(N,ca);ca=N.s;if(!ia||!ca)return new x(NaN);if(ia!=ca)return N.s=-ca,this.minus(N);ca=this.e/14;var ea=N.e/14,qa=this.c,za=N.c;if(!ca||!ea){if(!qa||!za)return new x(ia/0);if(!qa[0]||!za[0])return za[0]?N:new x(qa[0]?this:0*ia)}ca=A(ca);ea=A(ea);qa=qa.slice();if(ia=ca-ea){0<ia?(ea=ca,ca=za):(ia=-ia,ca=qa);for(ca.reverse();ia--;ca.push(0));ca.reverse()}ia=qa.length;ca=za.length;0>ia-ca&&
|
|||
|
(ca=za,za=qa,qa=ca,ca=ia);for(ia=0;ca;)ia=(qa[--ca]=qa[ca]+za[ca]+ia)/1E14|0,qa[ca]=1E14===qa[ca]?0:qa[ca]%1E14;ia&&(qa=[ia].concat(qa),++ea);return u(N,qa,ea)};J.precision=J.sd=function(N,ca){if(null!=N&&N!==!!N)return w(N,1,1E9),null==ca?ca=ha:w(ca,0,8),m(new x(this),N,ca);if(!(ca=this.c))return null;var ia=ca.length-1;var ea=14*ia+1;if(ia=ca[ia]){for(;0==ia%10;ia/=10,ea--);for(ia=ca[0];10<=ia;ia/=10,ea++);}N&&this.e+1>ea&&(ea=this.e+1);return ea};J.shiftedBy=function(N){w(N,-9007199254740991,9007199254740991);
|
|||
|
return this.times("1e"+N)};J.squareRoot=J.sqrt=function(){var N=this.c;var ca=this.s,ia=this.e,ea=F+4,qa=new x("0.5");if(1!==ca||!N||!N[0])return new x(!ca||0>ca&&(!N||N[0])?NaN:N?this:1/0);ca=Math.sqrt(+l(this));if(0==ca||ca==1/0){N=t(N);0==(N.length+ia)%2&&(N+="0");ca=Math.sqrt(+N);ia=A((ia+1)/2)-(0>ia||ia%2);ca==1/0?N="5e"+ia:(N=ca.toExponential(),N=N.slice(0,N.indexOf("e")+1)+ia);var za=new x(N)}else za=new x(ca+"");if(za.c[0])for(ia=za.e,ca=ia+ea,3>ca&&(ca=0);;){var ya=za;za=qa.times(ya.plus(H(this,
|
|||
|
ya,ea,1)));if(t(ya.c).slice(0,ca)===(N=t(za.c)).slice(0,ca))if(za.e<ia&&--ca,N=N.slice(ca-3,ca+1),"9999"==N||!Ha&&"4999"==N){if(!Ha&&(m(ya,ya.e+F+2,0),ya.times(ya).eq(this))){za=ya;break}ea+=4;ca+=4;var Ha=1}else{if(!+N||!+N.slice(1)&&"5"==N.charAt(0)){m(za,za.e+F+2,1);var Ua=!za.times(za).eq(this)}break}}return m(za,za.e+F+1,ha,Ua)};J.toExponential=function(N,ca){null!=N&&(w(N,0,1E9),N++);return L(this,N,ca,1)};J.toFixed=function(N,ca){null!=N&&(w(N,0,1E9),N=N+this.e+1);return L(this,N,ca)};J.toFormat=
|
|||
|
function(N,ca,ia){if(null==ia)null!=N&&ca&&"object"==typeof ca?(ia=ca,ca=null):N&&"object"==typeof N?(ia=N,N=ca=null):ia=O;else if("object"!=typeof ia)throw Error("[BigNumber Error] Argument not an object: "+ia);var ea=this.toFixed(N,ca);if(this.c){var qa=ea.split(".");ea=+ia.groupSize;N=+ia.secondaryGroupSize;var za=ia.groupSeparator||"";ca=qa[0];qa=qa[1];var ya=0>this.s,Ha=ya?ca.slice(1):ca,Ua=Ha.length;if(N){var Ea=ea;ea=N;N=Ea;Ua-=Ea}if(0<ea&&0<Ua){Ea=Ua%ea||ea;for(ca=Ha.substr(0,Ea);Ea<Ua;Ea+=
|
|||
|
ea)ca+=za+Ha.substr(Ea,ea);0<N&&(ca+=za+Ha.slice(Ea));ya&&(ca="-"+ca)}ea=qa?ca+(ia.decimalSeparator||"")+((N=+ia.fractionGroupSize)?qa.replace(new RegExp("\\d{"+N+"}\\B","g"),"$\x26"+(ia.fractionGroupSeparator||"")):qa):ca}return(ia.prefix||"")+ea+(ia.suffix||"")};J.toFraction=function(N){var ca,ia,ea;var qa=this.c;if(null!=N){var za=new x(N);if(!za.isInteger()&&(za.c||1!==za.s)||za.lt(X))throw Error("[BigNumber Error] Argument "+(za.isInteger()?"out of range: ":"not an integer: ")+l(za));}if(!qa)return new x(this);
|
|||
|
var ya=new x(X);var Ha=ca=new x(X);var Ua=ea=new x(X);var Ea=t(qa);qa=ya.e=Ea.length-this.e-1;ya.c[0]=k[0>(ia=qa%14)?14+ia:ia];N=!N||0<za.comparedTo(ya)?0<qa?ya:Ha:za;ia=aa;aa=1/0;za=new x(Ea);for(ea.c[0]=0;;){var Oa=H(za,ya,0,1);Ea=ca.plus(Oa.times(Ua));if(1==Ea.comparedTo(N))break;ca=Ua;Ua=Ea;Ha=ea.plus(Oa.times(Ea=Ha));ea=Ea;ya=za.minus(Oa.times(Ea=ya));za=Ea}Ea=H(N.minus(ca),Ua,0,1);ea=ea.plus(Ea.times(Ha));ca=ca.plus(Ea.times(Ua));ea.s=Ha.s=this.s;qa*=2;N=1>H(Ha,Ua,qa,ha).minus(this).abs().comparedTo(H(ea,
|
|||
|
ca,qa,ha).minus(this).abs())?[Ha,Ua]:[ea,ca];aa=ia;return N};J.toNumber=function(){return+l(this)};J.toPrecision=function(N,ca){null!=N&&w(N,1,1E9);return L(this,N,ca,2)};J.toString=function(N){var ca=this,ia=ca.s,ea=ca.e;null===ea?ia?(N="Infinity",0>ia&&(N="-"+N)):N="NaN":(null==N?N=ea<=T||ea>=Z?C(t(ca.c),ea):a(t(ca.c),ea,"0"):10===N&&da?(ca=m(new x(ca),F+ea+1,ha),N=a(t(ca.c),ca.e,"0")):(w(N,2,P.length,"Base"),N=ba(a(t(ca.c),ea,"0"),10,N,ia,!0)),0>ia&&ca.c[0]&&(N="-"+N));return N};J.valueOf=J.toJSON=
|
|||
|
function(){return l(this)};J._isBigNumber=!0;null!=v&&x.set(v);return x}function A(v){var x=v|0;return 0<v||v===x?x:x-1}function t(v){for(var x,L,z=1,u=v.length,m=v[0]+"";z<u;){x=v[z++]+"";for(L=14-x.length;L--;x="0"+x);m+=x}for(u=m.length;48===m.charCodeAt(--u););return m.slice(0,u+1||1)}function d(v,x){var L=v.c,z=x.c,u=v.s,m=x.s;v=v.e;var l=x.e;if(!u||!m)return null;x=L&&!L[0];var J=z&&!z[0];if(x||J)return x?J?0:-m:u;if(u!=m)return u;x=0>u;J=v==l;if(!L||!z)return J?0:!L^x?1:-1;if(!J)return v>l^
|
|||
|
x?1:-1;m=(v=L.length)<(l=z.length)?v:l;for(u=0;u<m;u++)if(L[u]!=z[u])return L[u]>z[u]^x?1:-1;return v==l?0:v>l^x?1:-1}function w(v,x,L,z){if(v<x||v>L||v!==h(v))throw Error("[BigNumber Error] "+(z||"Argument")+("number"==typeof v?v<x||v>L?" out of range: ":" not an integer: ":" not a primitive number: ")+String(v));}function B(v){var x=v.c.length-1;return A(v.e/14)==x&&0!=v.c[x]%2}function C(v,x){return(1<v.length?v.charAt(0)+"."+v.slice(1):v)+(0>x?"e":"e+")+x}function a(v,x,L){var z;if(0>x){for(z=
|
|||
|
L+".";++x;z+=L);v=z+v}else{var u=v.length;if(++x>u){z=L;for(x-=u;--x;z+=L);v+=z}else x<u&&(v=v.slice(0,x)+"."+v.slice(x))}return v}var K=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,h=Math.floor,k=[1,10,100,1E3,1E4,1E5,1E6,1E7,1E8,1E9,1E10,1E11,1E12,1E13];var f=R();f["default"]=f.BigNumber=f;"function"==typeof define&&define.amd?define(function(){return f}):"undefined"!=typeof Ta&&Ta.exports?Ta.exports=f:(q||="undefined"!=typeof self&&self?self:window,q.BigNumber=f)})(this)};
|
|||
|
'use strict';var cgd=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},dgd=function(a,b,c,d){return Array.prototype.splice.apply(a,cgd(arguments,1))},egd=function(a){switch(a){case '"':case ";":case "@":case "^":case "`":case "~":case "(":case ")":case "[":case "]":case "{":case "}":case "\\":return!0;default:return!1}},fgd=function(a){return $APP.Wq(a)?new $APP.O(null,2,5,$APP.R,[a.Af(null),a.zf(null)],null):null},G9=function(a){return $APP.Wq(a)?
|
|||
|
new $APP.O(null,2,5,$APP.R,[a.Af(null),a.zf(null)-1|0],null):null},ggd=function(a){a=$APP.x(a);for(var b=$APP.lc($APP.Tf);;)if(a){var c=$APP.A(a);a=$APP.Gc(a);b=$APP.Sf.j($APP.Sf.j(b,$APP.ac(c)),$APP.bc(c))}else return $APP.x($APP.nc(b))},hgd=function(a,b){this.obj=a;this.name=b;this.X=6291456;this.ca=0},igd=function(a){var b=ReactDOM,c=b.findDOMNode,d=$APP.ah("textarea");a=$APP.Zr.C(a).refs[$APP.ah(d)];return c.call(b,a)},jgd=function(a){return $APP.Hd(a)&&$APP.B.j($APP.A(a),$APP.U4a)},kgd=function(a){return $APP.Hd(a)&&
|
|||
|
$APP.B.j($APP.A(a),$APP.S4a)},lgd=function(a){throw $APP.Hm.j("resolve-symbol is not implemented",new $APP.m(null,1,[$APP.WO,a],null));},mgd=function(a,b,c){a===H9&&(a=0>c,$APP.xwa(b,a?c:a))},ngd=function(a,b,c){if(null==c)return $APP.cwa(a,b);$APP.z0c.clear();for(b=c;;){if($APP.Kq(b)||egd(b)||null==b)return null!=b&&a.ye(null,b),$APP.z0c.toString();$APP.z0c.append(b);b=a.La(null)}},ogd=function(a,b,c){b=1+b;$APP.Vc(a)!==b&&$APP.awa(a);for(var d=1,e=0;;){if(d===b)return String.fromCharCode(e);var f=
|
|||
|
$APP.Lva($APP.C.j(a,d),c);if(-1===f)return $APP.gwa($APP.C.j(a,d),a);e=f+e*c;d+=1}},pgd=function(a){var b=a.La(null);if(null!=b){b=egd(b)||$APP.Kq(b)?$APP.u.C(b):ngd(a,$APP.Owa,b);var c=b.length;if(1===c)return b.charAt(0);if($APP.B.j(b,"newline"))return"\n";if($APP.B.j(b,"space"))return" ";if($APP.B.j(b,"tab"))return"\t";if($APP.B.j(b,"backspace"))return"\b";if($APP.B.j(b,"formfeed"))return"\f";if($APP.B.j(b,"return"))return"\r";if($APP.n($APP.ya(b,"u")))return b=ogd(b,4,16),c=b.charCodeAt(0),55295<
|
|||
|
c&&57344>c?$APP.jwa(a,c.toString(16)):b;if($APP.n($APP.ya(b,"o"))){--c;if(3<c)return $APP.kwa(a,b);c=ogd(b,c,8);b=$APP.ph.j(b,1);return 255>=parseInt(b,8)?c:$APP.lwa(a)}return $APP.cr(a,$APP.F(["Unsupported character: ",b,"."]))}return $APP.mwa(a)},qgd=function(a,b){return $APP.cr(a,$APP.F(["Unmatched delimiter ",b,"."]))},rgd=function(a){var b=a.La(null);if($APP.Kq(b))return $APP.owa(a);b=ngd(a,$APP.nr,b);var c=$APP.gr(b);if(null!=c){var d=c.oa(null,0);c=c.oa(null,1);if(":"===b.charAt(0)){if(null!=
|
|||
|
d)return d=$APP.G.j(null,$APP.yh.C($APP.ph.j(d,1))),$APP.n(d)?$APP.wh.j($APP.u.C(d),c):$APP.fr(a,$APP.nr,[":",$APP.u.C(b)].join(""));d=null;return $APP.n(d)?$APP.wh.j($APP.u.C(d),$APP.ph.j(c,1)):$APP.cr(a,$APP.F(["Invalid token: :",b]))}return $APP.wh.j(d,c)}return $APP.fr(a,$APP.nr,[":",$APP.u.C(b)].join(""))},sgd=function(a,b){var c=G9(a),d=$APP.C.F(c,0,null);c=$APP.C.F(c,1,null);b=ngd(a,$APP.wq,b);if(null==b)return null;switch(b){case "nil":return null;case "true":return!0;case "false":return!1;
|
|||
|
case "/":return $APP.mr;default:var e=$APP.gr(b);if(null!=e){b=$APP.yh.j(e.oa(null,0),e.oa(null,1));e=b.ia;if(null==d)d=null;else{var f=$APP.Vq(a);f=null==f?null:new $APP.m(null,1,[$APP.mq,f],null);var g=fgd(a);a=$APP.C.F(g,0,null);g=$APP.C.F(g,1,null);d=$APP.Nl.G($APP.F([f,new $APP.m(null,4,[$APP.fo,d,$APP.oq,c,$APP.pq,a,$APP.nq,g],null)]))}d=e.call(b,null,d)}else d=$APP.fr(a,$APP.wq,b);return d}},ugd=function(a){if($APP.Hb(tgd))throw $APP.Hm.j("Gensym literal not in syntax-quote",new $APP.m(null,
|
|||
|
1,[$APP.Jm,$APP.oic],null));var b=$APP.G.j(tgd,a);if($APP.n(b))return b;b=$APP.yh.C([$APP.ph.F($APP.ah(a),0,$APP.ah(a).length-1),"__",$APP.u.C($APP.Ih.j($APP.t0c,$APP.Oc)),"__auto__"].join(""));tgd=$APP.T.F(tgd,a,b);return b},vgd=function(a){return $APP.yh.C([-1===a?"rest":["p",$APP.u.C(a)].join(""),"__",$APP.u.C($APP.Ih.j($APP.t0c,$APP.Oc)),"#"].join(""))},wgd=function(a){if($APP.n(I9)){var b=I9.call(null,a);if($APP.n(b))return b;b=vgd(a);I9=$APP.T.F(I9,a,b);return b}throw $APP.Hm.j("Arg literal not in #()",
|
|||
|
new $APP.m(null,1,[$APP.Jm,$APP.oic],null));},xgd=function(a){for(var b=new $APP.rb,c=a.La(null);;){if('"'===c)return $APP.qh($APP.u.C(b));if(null==c)return $APP.fwa(a,$APP.eK,$APP.F([b]));b.append(c);"\\"===c&&(c=a.La(null),null==c&&$APP.fwa(a,$APP.eK,$APP.F([b])),b.append(c));c=a.La(null)}},zgd=function(a,b){return function(){var c=null!=a?a.X&262144||$APP.xc===a.vg?!0:!1:!1;return c?$APP.x($APP.jj.G($APP.ld(a),$APP.fo,$APP.F([$APP.oq,$APP.pq,$APP.nq,$APP.mq,$APP.Zq]))):c}()?new $APP.J(null,$APP.k5a,
|
|||
|
new $APP.J(null,b,new $APP.J(null,function(){var c=$APP.ld(a);return ygd.C?ygd.C(c):ygd.call(null,c)}(),null,1,null),2,null),3,null):b},Agd=function(a,b){a:{b=$APP.x(b);for(var c=$APP.lc($APP.Tf);;)if(b){var d=$APP.A(b);c=$APP.Sf.j(c,kgd(d)?new $APP.J(null,$APP.W4a,new $APP.J(null,$APP.$c(d),null,1,null),2,null):jgd(d)?$APP.$c(d):new $APP.J(null,$APP.W4a,new $APP.J(null,ygd.C?ygd.C(d):ygd.call(null,d),null,1,null),2,null));b=$APP.Gc(b)}else{b=$APP.x($APP.nc(c));break a}}b=new $APP.J(null,$APP.Rfc,
|
|||
|
new $APP.J(null,$APP.Ie($APP.WDc,b),null,1,null),2,null);return $APP.n(a)?new $APP.J(null,$APP.B6a,new $APP.J(null,a,new $APP.J(null,b,null,1,null),2,null),3,null):b},ygd=function(a){if($APP.pi(a))var b=new $APP.J(null,$APP.mi,new $APP.J(null,a,null,1,null),2,null);else if(a instanceof $APP.w)b=new $APP.J(null,$APP.mi,new $APP.J(null,$APP.n(function(){var c=$APP.Hb($APP.Me(a));return c?$APP.za($APP.ah(a),"#"):c}())?ugd(a):function(){var c=$APP.u.C(a);return $APP.n($APP.za(c,"."))?(c=$APP.yh.C($APP.ph.F(c,
|
|||
|
0,c.length-1)),$APP.yh.C([$APP.u.C(lgd.call(null,c)),"."].join(""))):lgd.call(null,a)}(),null,1,null),2,null);else if(kgd(a))b=$APP.$c(a);else{if(jgd(a))throw $APP.Hm.j("unquote-splice not in list",new $APP.m(null,1,[$APP.Jm,$APP.oic],null));if($APP.pd(a))if(null!=a&&(a.X&67108864||$APP.xc===a.rw))b=a;else if($APP.vd(a))b=Agd(16<=$APP.Vc(a)?$APP.fuc:$APP.jxc,ggd(a));else if($APP.xd(a))b=new $APP.J(null,$APP.VDc,new $APP.J(null,Agd(null,a),null,1,null),2,null);else if($APP.qd(a))b=Agd($APP.mZc,a);
|
|||
|
else if($APP.Hd(a)||$APP.Ae(a))b=function(){var c=$APP.x(a);return c?Agd(null,c):$APP.tj($APP.Gic)}();else throw $APP.Hm.j("Unknown Collection type",new $APP.m(null,1,[$APP.Jm,$APP.tqa],null));else b=a instanceof $APP.N||"number"===typeof a||"string"===typeof a||null==a||a instanceof Boolean||!0===a||!1===a||a instanceof RegExp?a:new $APP.J(null,$APP.mi,new $APP.J(null,a,null,1,null),2,null)}return zgd(a,b)},Dgd=function(a,b,c,d){b=a.La(null);if($APP.n(b)){var e=Bgd.C?Bgd.C(b):Bgd.call(null,b);if($APP.n(e))return e.R?
|
|||
|
e.R(a,b,c,d):e.call(null,a,b,c,d);a.ye(null,b);return Cgd.R?Cgd.R(a,b,c,d):Cgd.call(null,a,b,c,d)}return $APP.ewa(a)},Egd=function(a,b,c,d,e){for(var f=1,g=$APP.Lva(b,c);;){if(-1===g)return $APP.hwa(a,b);if(f!==d){var h=a.Pd(null);var l=$APP.Kq(h);l||(l=J9.C?J9.C(h):J9.call(null,h),l=$APP.n(l)?l:null==h);if($APP.n(l))return $APP.n(e)?$APP.iwa(a,f,d):String.fromCharCode(g);l=$APP.Lva(h,c);a.La(null);if(-1===l)return $APP.hwa(a,h);g=l+g*c;f+=1}else return String.fromCharCode(g)}},Ggd=function(a,b,c,
|
|||
|
d,e){var f=Fgd;Fgd=!0;try{a:for(var g=G9(c),h=$APP.C.F(g,0,null),l=$APP.C.F(g,1,null),p=$APP.Dva(b),q=$APP.lc($APP.Tf);;){var r=K9?K9(c,!1,H9,p,d,e):L9.call(null,c,!1,H9,p,d,e);if(r===M9){var t=$APP.nc(q);break a}if(r===H9){t=$APP.Zva(c,a,h,l,$APP.Vc(q));break a}q=$APP.Sf.j(q,r)}return t}finally{Fgd=f}},Hgd=function(a,b,c,d){var e=G9(a);b=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);var f=Ggd($APP.xq,")",a,c,d);d=fgd(a);c=$APP.C.F(d,0,null);d=$APP.C.F(d,1,null);f=$APP.od(f)?$APP.Ec:$APP.zf.j($APP.tj,f);
|
|||
|
if($APP.n(b)){var g=$APP.Nl.G;a=$APP.Vq(a);a=g.call($APP.Nl,$APP.F([$APP.n(a)?new $APP.m(null,1,[$APP.mq,a],null):null,new $APP.m(null,4,[$APP.fo,b,$APP.oq,e,$APP.pq,c,$APP.nq,d],null)]))}else a=null;return $APP.kd(f,a)},Igd=function(a,b,c,d){var e=G9(a);b=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);c=Ggd($APP.zq,"]",a,c,d);var f=fgd(a);d=$APP.C.F(f,0,null);f=$APP.C.F(f,1,null);if($APP.n(b)){var g=$APP.Nl.G;a=$APP.Vq(a);a=g.call($APP.Nl,$APP.F([$APP.n(a)?new $APP.m(null,1,[$APP.mq,a],null):null,new $APP.m(null,
|
|||
|
4,[$APP.fo,b,$APP.oq,e,$APP.pq,d,$APP.nq,f],null)]))}else a=null;return $APP.kd(c,a)},Jgd=function(a,b,c,d){var e=G9(a);b=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);var f=Ggd($APP.yq,"}",a,c,d),g=$APP.Vc(f),h=$APP.lr.j(2,f),l=$APP.Zg(h);d=fgd(a);c=$APP.C.F(d,0,null);d=$APP.C.F(d,1,null);!$APP.yf(g)&&$APP.$va(a,b,e,f);$APP.B.j($APP.Vc(l),$APP.Vc(h))||$APP.wwa(a,$APP.yq,h);f=g<=2*$APP.Uwa?$APP.Lia($APP.fe(f),!0,!0):$APP.gja($APP.fe(f));$APP.n(b)?(g=$APP.Nl.G,a=$APP.Vq(a),a=g.call($APP.Nl,$APP.F([$APP.n(a)?
|
|||
|
new $APP.m(null,1,[$APP.mq,a],null):null,new $APP.m(null,4,[$APP.fo,b,$APP.oq,e,$APP.pq,c,$APP.nq,d],null)]))):a=null;return $APP.kd(f,a)},Kgd=function(a,b){for(var c=function(){var g=new $APP.rb;g.append(b);return g}(),d=a.La(null);;){if($APP.n(function(){var g=$APP.Kq(d);if(g)return g;g=J9.C?J9.C(d):J9.call(null,d);return $APP.n(g)?g:null==d}())){var e=$APP.u.C(c);a.ye(null,d);var f=$APP.Ewa(e);return $APP.n(f)?f:$APP.cr(a,$APP.F(["Invalid number: ",e,"."]))}e=function(){var g=c;g.append(d);return g}();
|
|||
|
f=a.La(null);c=e;d=f}},Lgd=function(a){var b=a.La(null);switch(b){case "t":return"\t";case "r":return"\r";case "n":return"\n";case "\\":return"\\";case '"':return'"';case "b":return"\b";case "f":return"\f";case "u":return b=a.La(null),-1===parseInt(b|0,16)?$APP.bwa(a,b):Egd(a,b,16,4,!0);default:return $APP.Gva(b)?(b=Egd(a,b,8,3,!1),255<(b|0)?$APP.lwa(a):b):$APP.nwa(a,b)}},Mgd=function(a){for(var b=new $APP.rb,c=a.La(null);;){if(null==c)return $APP.fwa(a,$APP.Rp,$APP.F(['"',b]));switch(c){case "\\":var d=
|
|||
|
function(){var f=b;f.append(Lgd(a));return f}(),e=a.La(null);b=d;c=e;continue;case '"':return $APP.u.C(b);default:d=function(){var f=b;f.append(c);return f}(),e=a.La(null),b=d,c=e}}},Ngd=function(a){return function(b,c,d,e){return new $APP.J(null,a,new $APP.J(null,N9?N9(b,!0,null,d,e):L9.call(null,b,!0,null,d,e),null,1,null),2,null)}},Ogd=function(a,b,c,d){if(a instanceof $APP.Rva&&!$APP.Kq($APP.Mva(a)))return $APP.Sva(a,function(){var h=G9(a),l=$APP.C.F(h,0,null),p=$APP.C.F(h,1,null),q=$APP.Iva(N9?
|
|||
|
N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d));$APP.vd(q)||$APP.pwa(a,q);h=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);return null!=h&&(h.X&131072||$APP.xc===h.Sg)?(l=$APP.n($APP.n(l)?$APP.Hd(h):l)?$APP.T.G(q,$APP.fo,l,$APP.F([$APP.oq,p])):q,null!=h&&(h.X&262144||$APP.xc===h.vg)?$APP.kd(h,$APP.Nl.G($APP.F([$APP.ld(h),l]))):h.meta=l):$APP.qwa(a,h)});var e=G9(a);b=$APP.C.F(e,0,null);var f=$APP.C.F(e,1,null),g=$APP.Iva(N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d));$APP.vd(g)||$APP.pwa(a,g);
|
|||
|
e=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);return null!=e&&(e.X&131072||$APP.xc===e.Sg)?(b=$APP.n($APP.n(b)?$APP.Hd(e):b)?$APP.T.G(g,$APP.fo,b,$APP.F([$APP.oq,f])):g,null!=e&&(e.X&262144||$APP.xc===e.vg)?$APP.kd(e,$APP.Nl.G($APP.F([$APP.ld(e),b]))):e.meta=b):$APP.qwa(a,e)},Pgd=function(a,b,c,d){var e=G9(a);b=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);e=$APP.n(e)?e-1|0:null;var f=Ggd($APP.Aq,"}",a,c,d);c=$APP.Zg(f);var g=fgd(a);d=$APP.C.F(g,0,null);g=$APP.C.F(g,1,null);$APP.B.j($APP.Vc(f),$APP.Vc(c))||
|
|||
|
$APP.cr(a,$APP.F([$APP.wwa(a,$APP.Aq,f)]));$APP.n(b)?(f=$APP.Nl.G,a=$APP.Vq(a),a=f.call($APP.Nl,$APP.F([$APP.n(a)?new $APP.m(null,1,[$APP.mq,a],null):null,new $APP.m(null,4,[$APP.fo,b,$APP.oq,e,$APP.pq,d,$APP.nq,g],null)]))):a=null;return $APP.kd(c,a)},Qgd=function(a,b,c,d){N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);return a},Rgd=function(a,b,c,d){b=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);return $APP.B.j($APP.exa,b)?Number.NaN:$APP.B.j($APP.fxa,b)?Number.NEGATIVE_INFINITY:$APP.B.j($APP.gxa,
|
|||
|
b)?Number.POSITIVE_INFINITY:$APP.cr(a,$APP.F([["Invalid token: ##",$APP.u.C(b)].join("")]))},Sgd=function(a,b,c,d){var e=O9;O9=!0;try{var f=K9?K9(b,!1,H9,")",c,d):L9.call(null,b,!1,H9,")",c,d);mgd(f,b,a);return f===M9?M9:null}finally{O9=e}},Ugd=function(a,b,c,d){var e=$APP.Wq(a)?$APP.Oq(a):-1;a:for(var f=Tgd,g=null;;)if(f===Tgd){f=e;g=a;var h=c,l=d,p=K9?K9(g,!1,H9,")",h,l):L9.call(null,g,!1,H9,")",h,l);mgd(p,g,f);if($APP.B.j(p,M9))f=M9;else{var q=g,r=p;$APP.n($APP.G.j($APP.A0c,r))&&$APP.cr(q,$APP.F(["Feature name ",
|
|||
|
r," is reserved"]));q=g;r=h;(p instanceof $APP.N?$APP.B.j($APP.ej,p)||$APP.Wd($APP.G.j(r,$APP.cK),p):$APP.cr(q,$APP.F(["Feature should be a keyword: ",p])))?(h=K9?K9(g,!1,H9,")",h,l):L9.call(null,g,!1,H9,")",h,l),mgd(h,g,f),h===M9&&(0>f?$APP.cr(g,$APP.F(["read-cond requires an even number of forms"])):$APP.cr(g,$APP.F(["read-cond starting on line ",f," requires an even number of forms"]))),f=h):(f=Sgd(f,g,h,l),f=$APP.n(f)?f:Tgd)}if(f===M9){c=M9;break a}g=null}else if(g!==M9)g=Sgd(e,a,c,d);else{c=
|
|||
|
f;break a}return c===M9?a:$APP.n(b)?null!=c&&(c.X&16777216||$APP.xc===c.$o)?(b=$APP.fe(c),$APP.eaa(dgd,d,0,0).apply(null,b),a):$APP.cr(a,$APP.F(["Spliced form list in read-cond-splicing must implement ISequential"])):c},Vgd=function(a,b,c,d){if($APP.Hb(function(){if($APP.n(c)){var g=$APP.J5a.C(c),h=new $APP.Vg(null,new $APP.m(null,2,[$APP.K5a,null,$APP.WI,null],null),null);return h.C?h.C(g):h.call(null,g)}return c}()))throw $APP.Hm.j("Conditional read not allowed",new $APP.m(null,1,[$APP.Jm,$APP.igc],
|
|||
|
null));var e=a.La(null);if($APP.n(e))if(e=(b=$APP.B.j(e,"@"))?a.La(null):e,b&&($APP.n(Fgd)||$APP.cr(a,$APP.F(["cond-splice not in list"]))),e=$APP.Kq(e)?$APP.zwa(a):e,$APP.n(e)){if($APP.Rg.j(e,"("))throw $APP.Hm.j("read-cond body must be a list",new $APP.m(null,1,[$APP.Jm,$APP.igc],null));var f=O9;O9=function(){var g=O9;return $APP.n(g)?g:$APP.B.j($APP.K5a,$APP.J5a.C(c))}();try{return $APP.n(O9)?$APP.Eva(Hgd(a,e,c,d),b):Ugd(a,b,c,d)}finally{O9=f}}else return $APP.mwa(a);else return $APP.mwa(a)},Wgd=
|
|||
|
function(a,b,c,d){if($APP.n(I9))throw $APP.Hm.j("Nested #()s are not allowed",new $APP.m(null,1,[$APP.Jm,$APP.oic],null));b=I9;I9=$APP.Rx();try{$APP.Nq(a,"(");var e=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);var f=$APP.gc(I9);if(f){var g=$APP.ac($APP.A(f));a:{a=1;for(var h=$APP.lc($APP.Tf);;){if(a>g){var l=$APP.nc(h);break a}c=a+1;d=$APP.Sf;var p=d.j;f=h;var q=$APP.G.j(I9,a);var r=$APP.n(q)?q:vgd(a);var t=p.call(d,f,r);a=c;h=t}}var y=$APP.n(I9.call(null,-1))?$APP.Fe.G(l,$APP.ci,$APP.F([I9.call(null,
|
|||
|
-1)])):l}else y=$APP.Tf;return new $APP.J(null,$APP.ji,new $APP.J(null,y,new $APP.J(null,e,null,1,null),2,null),3,null)}finally{I9=b}},Xgd=function(a,b,c,d){if(null==I9)return sgd(a,b);b=a.Pd(null);if($APP.Kq(b)||egd(b)||null==b)return wgd(1);if($APP.B.j(b,"\x26"))return a.La(null),wgd(-1);a=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);if($APP.Md(a))return wgd(a);throw $APP.Hm.j("Arg literal must be %, %\x26 or %integer",new $APP.m(null,1,[$APP.Jm,$APP.oic],null));},Ygd=function(a,b,c,d){b=a.Pd(null);
|
|||
|
$APP.n(b)?$APP.B.j("@",b)?(b=Ngd($APP.U4a),a.La(null),a=b(a,"@",c,d)):a=Ngd($APP.S4a)(a,"~",c,d):a=null;return a},Zgd=function(a,b,c,d){b=tgd;tgd=$APP.jf;try{return ygd(N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d))}finally{tgd=b}},ahd=function(a,b,c,d){var e=G9(a);b=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);var f=ngd(a,$APP.or,$APP.Mq(a)),g=$APP.B.j(f,":")?null.name:$APP.B.j(":",$APP.A(f))?function(){var l=null==f?null:$APP.ph.j(f,1);l=null==l?null:$APP.gr(l);l=null==l?null:$APP.Kva(l);l=null==
|
|||
|
l?null:$APP.yh.C(l);if(null==l)l=null;else{var p=$APP.G.j(null,l);$APP.n(p)?l=p:(null==$gd&&($gd=$APP.Hh.C($APP.jf)),p=$APP.G.j($APP.v($gd),l),null!=p?l=p:(p=$APP.Wka(l),null==p?l=null:(p=new hgd(p,l),$APP.Ih.R($gd,$APP.T,l,p),l=p)),l=$APP.n(l)?$APP.yh.C(l.name):null)}return l}():function(){var l=null==f?null:$APP.gr(f);return null==l?null:$APP.Kva(l)}();if($APP.n(g)){if("{"===$APP.zwa(a)){d=Ggd($APP.or,"}",a,c,d);var h=fgd(a);c=$APP.C.F(h,0,null);h=$APP.C.F(h,1,null);!$APP.yf($APP.Vc(d))&&$APP.$va(a,
|
|||
|
null,null,d);g=$APP.Jva($APP.u.C(g),$APP.lr.j(2,d));d=$APP.lr.j(2,$APP.Fc(d));$APP.B.j($APP.Vc($APP.Zg(g)),$APP.Vc(g))||$APP.wwa(a,$APP.or,g);return $APP.kd($APP.bh(g,d),$APP.n(b)?$APP.Nl.G($APP.F([function(){var l=$APP.Vq(a);return $APP.n(l)?new $APP.m(null,1,[$APP.mq,l],null):null}(),new $APP.m(null,4,[$APP.fo,b,$APP.oq,e,$APP.pq,c,$APP.nq,h],null)])):null)}return $APP.rwa(a,f)}return $APP.swa(a,f)},J9=function(a){switch(a){case '"':return Mgd;case ":":return rgd;case ";":return $APP.pr;case "'":return Ngd($APP.mi);
|
|||
|
case "@":return Ngd($APP.b6a);case "^":return Ogd;case "`":return Zgd;case "~":return Ygd;case "(":return Hgd;case ")":return qgd;case "[":return Igd;case "]":return qgd;case "{":return Jgd;case "}":return qgd;case "\\":return pgd;case "%":return Xgd;case "#":return Dgd;default:return null}},Bgd=function(a){switch(a){case "^":return Ogd;case "'":return Ngd($APP.li);case "(":return Wgd;case "{":return Pgd;case "\x3c":return $APP.Fwa("Unreadable form");case "\x3d":return $APP.Fwa("read-eval not supported");
|
|||
|
case '"':return xgd;case "!":return $APP.pr;case "_":return Qgd;case "?":return Vgd;case ":":return ahd;case "#":return Rgd;default:return null}},Cgd=function(a,b,c,d){b=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d);b instanceof $APP.w||$APP.twa(a,b);if($APP.n(O9))return $APP.ri(b,N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d));var e=$APP.B0c.call(null,b);e=$APP.n(e)?e:$APP.ixa.C?$APP.ixa.C(b):$APP.ixa.call(null,b);return $APP.n(e)?(a=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d),e.C?e.C(a):
|
|||
|
e.call(null,a)):$APP.n(null)?(e=null,a=N9?N9(a,!0,null,c,d):L9.call(null,a,!0,null,c,d),e.j?e.j(b,a):e.call(null,b,a)):$APP.uwa(a,b)},bhd=function(a,b,c,d,e,f){for(;;){if(a instanceof $APP.Rva&&!$APP.Kq(a.Pd(null)))return $APP.Sva(a,function(){for(;;)if(0==f.length){var l=a.La(null);if(!$APP.Kq(l)){if(null==l)return b?$APP.xwa(a,null):c;if(l===d)return M9;if($APP.ywa(a,l))return Kgd(a,l);var p=J9(l);if(null!=p){if(l=p.R?p.R(a,l,e,f):p.call(null,a,l,e,f),l!==a)return l}else return sgd(a,l)}}else return l=
|
|||
|
f[0],$APP.jaa(f,0),l});if(0==f.length){var g=a.La(null);if(!$APP.Kq(g)){if(null==g)return b?$APP.xwa(a,null):c;if(g===d)return M9;if($APP.ywa(a,g))return Kgd(a,g);var h=J9(g);if(null!=h){if(g=h.R?h.R(a,g,e,f):h.call(null,a,g,e,f),g!==a)return g}else return sgd(a,g)}}else return g=f[0],$APP.jaa(f,0),g}},L9=function(a){switch(arguments.length){case 5:return N9(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return K9(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],
|
|||
|
arguments[5]);default:throw Error(["Invalid arity: ",$APP.u.C(arguments.length)].join(""));}},N9=function(a,b,c,d,e){return K9(a,b,c,null,d,e)},K9=function(a,b,c,d,e,f){try{return bhd(a,b,c,d,e,f)}catch(g){if(g instanceof Error){b=g;if(b instanceof $APP.Zh){c=$APP.$h(b);if($APP.B.j($APP.ar,$APP.Jm.C(c)))throw b;throw $APP.Hm.F(b.message,$APP.Nl.G($APP.F([new $APP.m(null,1,[$APP.Jm,$APP.ar],null),c,$APP.Wq(a)?new $APP.m(null,3,[$APP.fo,a.Af(null),$APP.oq,a.zf(null),$APP.mq,a.pj],null):null])),b);}throw $APP.Hm.F(b.message,
|
|||
|
$APP.Nl.G($APP.F([new $APP.m(null,1,[$APP.Jm,$APP.ar],null),$APP.Wq(a)?new $APP.m(null,3,[$APP.fo,a.Af(null),$APP.oq,a.zf(null),$APP.mq,a.pj],null):null])),b);}throw g;}},chd=function(a,b,c){b=$APP.Wu.C(a);var d=$APP.Ws($APP.ut(a,null)),e=$APP.n(b)?b.C?b.C($APP.tt):b.call(null,$APP.tt):null;b=$APP.n(e)?$APP.T.F(b,$APP.tt,$APP.AAa(e,d,$APP.Zs)):b;a=new $APP.m(null,1,[$APP.Jm,$APP.ot.C(a)],null);a=$APP.x(b)?$APP.T.F(a,$APP.jt,b):a;return $APP.x(c)?$APP.T.F(a,$APP.kt,c):a},P9=function(a,b){if(null!=
|
|||
|
a&&null!=a.ci)a=a.ci(a,b);else{var c=P9[$APP.ea(null==a?null:a)];if(null!=c)a=c.j?c.j(a,b):c.call(null,a,b);else if(c=P9._,null!=c)a=c.j?c.j(a,b):c.call(null,a,b);else throw $APP.Qb("ConjFlat.conj-flat",a);}return a},dhd=function(a,b){for(a=$APP.Xy.j(a,b);;)if($APP.n(Q9.C?Q9.C(a):Q9.call(null,a)))a=$APP.G.j(a,0),b=$APP.Fe.j(b,0);else return b},fhd=function(a,b){return new $APP.We(null,function(){var c=$APP.Xy.j(a,b);a:{var d=a;for(var e=b;;){if($APP.B.j($APP.Vc(e),1)){d=$APP.md(e)<(ehd.C?ehd.C(d):
|
|||
|
ehd.call(null,d))-1?dhd(d,new $APP.O(null,1,5,$APP.R,[$APP.md(e)+1],null)):null;break a}var f=$APP.md(e);var g=$APP.Xy.j(d,$APP.nd(e));g=ehd.C?ehd.C(g):ehd.call(null,g);if(f<g-1){d=dhd(d,$APP.Fe.j($APP.nd(e),$APP.md(e)+1));break a}e=$APP.nd(e)}}return $APP.Ie(c,$APP.n(d)?fhd(a,d):null)},null,null)},ghd=function(a,b,c,d,e){this.v=a;this.Zn=b;this.zh=c;this.ga=d;this.dirty=e;this.Ql=null;this.X=31850958;this.ca=0},hhd=function(a,b){var c=$APP.Vc(b);a:if(0===c)c=1;else{c|=0;for(var d=1,e=31;;){var f=
|
|||
|
$APP.yf(c);c=$APP.se(c,2);if(f)e=(0,$APP.wc)(e,e);else{if(0===c){c=(0,$APP.wc)(e,d);break a}d=(0,$APP.wc)(e,d);e=(0,$APP.wc)(e,e)}}}c|=0;return(0,$APP.wc)(c,a.Zn)+(b.Zn-c)},ihd=function(a){a=$APP.he(a);a:for(var b=1,c=$APP.x(a);;)if(null!=c)b=(0,$APP.wc)(31,b)+$APP.yc($APP.A(c))|0,c=$APP.Gc(c);else break a;return new ghd(a,b,$APP.yc(a),$APP.Vc(a),!1)},Q9=function(a){return a instanceof ghd},ehd=function(a){return Q9(a)?$APP.Vc(a.v):$APP.Vc(a)},jhd=function(a,b,c,d){this.v=a;this.zh=b;this.ga=c;this.flat=
|
|||
|
d;this.X=167142175;this.ca=2048},R9=function(a){$APP.Hb($APP.v(a.flat))&&($APP.Ih.j(a.flat,function(){var b=$APP.v(a.v);b=$APP.nc(khd($APP.lc($APP.Tf),b));return $APP.kd(b,$APP.ld($APP.v(a.v)))}),$APP.Ih.j(a.v,function(){return null}));return $APP.v(a.flat)},lhd=function(a){return $APP.n(a.dirty)?$APP.n(a.Ql)?$APP.he($APP.x(a)):new jhd($APP.Hh.C(a.v),a.zh,a.ga,$APP.Hh.C(null)):a.v},nhd=function(a,b,c){(b=$APP.Hb(b))?(b=c.C?c.C($APP.Lq):c.call(null,$APP.Lq),a=a.C?a.C(b):a.call(null,b)):a=b;return $APP.n(a)?
|
|||
|
["(",$APP.u.C(S9?S9(c,!1):mhd.call(null,c,!1)),")"].join(""):S9?S9(c,!1):mhd.call(null,c,!1)},ohd=function(a){switch(a){case "\n":return"\\n";case "\b":return"\\b";case "\f":return"\\f";case "\r":return"\\r";case "\t":return"\\t";default:return a}},phd=function(a){return $APP.Hj(['#"',$APP.ph.j(a.source,1),'"'].join(""),/[\s]/,ohd)},qhd=function(a){return 4095>=a?["0000",$APP.u.C(a.toString(16))].join("").substr(-4):a.toString(16)},rhd=function(a){var b=$APP.kf(a);a=$APP.G.j(b,T9);b=$APP.G.j(b,U9);
|
|||
|
return $APP.B.j(a,b)?["%x",$APP.u.C(qhd(a))].join(""):["%x",$APP.u.C(qhd(a)),"-",$APP.u.C(qhd(b))].join("")},mhd=function(a){switch(arguments.length){case 1:return S9(arguments[0],!1);case 2:return S9(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.u.C(arguments.length)].join(""));}},S9=function(a,b){var c=$APP.kf(a);a=$APP.G.j(c,$APP.N1);var d=$APP.G.j(c,V9),e=$APP.G.j(c,Z9),f=$APP.G.j(c,$9),g=$APP.G.j(c,$APP.Lq);if($APP.n(function(){var l=$APP.Hb(b);return l?$APP.c6.C(c):
|
|||
|
l}()))return["\x3c",$APP.u.C(S9(c,!0)),"\x3e"].join("");g=g instanceof $APP.N?g.ba:null;switch(g){case "epsilon":return"ε";case "opt":return[$APP.u.C(shd(b,a)),"?"].join("");case "plus":return[$APP.u.C(shd(b,a)),"+"].join("");case "star":return[$APP.u.C(shd(b,a)),"*"].join("");case "rep":return $APP.Rg.j($APP.lt.C(c),$APP.ho.C(c))?[$APP.u.C(shd(b,a)),"{",$APP.u.C($APP.lt.C(c)),",",$APP.u.C($APP.ho.C(c)),"}"].join(""):[$APP.u.C(shd(b,a)),"{",$APP.u.C($APP.lt.C(c)),"}"].join("");case "alt":return $APP.ik.j(" | ",
|
|||
|
$APP.vh.j($APP.il.F(nhd,new $APP.Vg(null,new $APP.m(null,1,[thd,null],null),null),b),f));case "ord":return[$APP.u.C(nhd(new $APP.Vg(null,new $APP.m(null,1,[$APP.Ev,null],null),null),b,d))," / ",$APP.u.C(nhd(new $APP.Vg(null,new $APP.m(null,1,[$APP.Ev,null],null),null),b,e))].join("");case "cat":return $APP.ik.j(" ",$APP.vh.j($APP.il.F(nhd,new $APP.Vg(null,new $APP.m(null,2,[thd,null,$APP.Ev,null],null),null),b),f));case "string":var h=new $APP.rb;a=$APP.Bb;d=$APP.Cb;$APP.Bb=!0;$APP.Cb=function(l){return h.append(l)};
|
|||
|
try{$APP.Dk.G($APP.F([$APP.Rp.C(c)]))}finally{$APP.Cb=d,$APP.Bb=a}return $APP.u.C(h);case "string-ci":h=new $APP.rb;a=$APP.Bb;d=$APP.Cb;$APP.Bb=!0;$APP.Cb=function(l){return h.append(l)};try{$APP.Dk.G($APP.F([$APP.Rp.C(c)]))}finally{$APP.Cb=d,$APP.Bb=a}return $APP.u.C(h);case "char":return rhd(c);case "regexp":return phd(a$.C(c));case "nt":return $APP.ph.j($APP.u.C($APP.nr.C(c)),1);case "look":return["\x26",$APP.u.C(shd(b,a))].join("");case "neg":return["!",$APP.u.C(shd(b,a))].join("");default:throw Error(["No matching clause: ",
|
|||
|
$APP.u.C(g)].join(""));}},uhd=function(a,b){return $APP.B.j(b$.C($APP.d4.C(b)),$APP.wu)?["\x3c",$APP.ah(a),"\x3e \x3d ",$APP.u.C(S9(b,!1))].join(""):[$APP.ah(a)," \x3d ",$APP.u.C(S9(b,!1))].join("")},vhd=function(a){a=$APP.kf(a);var b=$APP.G.j(a,c$),c=$APP.G.j(a,d$);return $APP.ik.j("\n",$APP.Ie(uhd(c,b.C?b.C(c):b.call(null,c)),function(){return function f(e){return new $APP.We(null,function(){for(var g=e;;)if(g=$APP.x(g)){if($APP.yd(g)){var h=$APP.qc(g),l=$APP.Vc(h),p=$APP.Xe(l);a:for(var q=0;;)if(q<
|
|||
|
l){var r=$APP.hd(h,q),t=$APP.C.F(r,0,null);r=$APP.C.F(r,1,null);$APP.Rg.j(t,c)&&$APP.bf(p,uhd(t,r));q+=1}else{h=!0;break a}return h?$APP.af($APP.cf(p),f($APP.rc(g))):$APP.af($APP.cf(p),null)}h=$APP.A(g);p=$APP.C.F(h,0,null);h=$APP.C.F(h,1,null);if($APP.Rg.j(p,c))return $APP.Ie(uhd(p,h),f($APP.Fc(g)));g=$APP.Fc(g)}else return null},null,null)}(b)}()))},yhd=function(a){$APP.n(whd.C(a))?($APP.yk.G($APP.F(["NOT "])),$APP.yk.G($APP.F([whd.C(a)]))):$APP.n(xhd.C(a))?$APP.yk.G($APP.F([rhd(a)])):a instanceof
|
|||
|
RegExp?$APP.yk.G($APP.F([phd(a)])):$APP.Dk.G($APP.F([a]))},zhd=function(a){var b=$APP.kf(a);a=$APP.G.j(b,$APP.fo);var c=$APP.G.j(b,$APP.oq),d=$APP.G.j(b,$APP.Zv);b=$APP.G.j(b,$APP.Bk);$APP.Ek.G($APP.F([["Parse error at line ",$APP.u.C(a),", column ",$APP.u.C(c),":"].join("")]));$APP.Ek.G($APP.F([d]));$APP.Ek.G($APP.F([$APP.Md(c)?1>=c?"^":$APP.zf.j($APP.u,$APP.Vk.j($APP.xl.j(c-1," "),new $APP.O(null,1,5,$APP.R,["^"],null))):null]));c=$APP.Cx.C($APP.vh.j(e$,$APP.Pf.j($APP.gn,b)));a=$APP.Cx.C($APP.vh.j(e$,
|
|||
|
$APP.Pf.j($APP.Af($APP.gn),b)));d=$APP.Vc(c)+$APP.Vc(a);0!==d&&($APP.B.j(1,d)?$APP.Ek.G($APP.F(["Expected:"])):$APP.Ek.G($APP.F(["Expected one of:"])));c=$APP.x(c);d=null;for(var e=b=0;;)if(e<b){var f=d.oa(null,e);yhd(f);$APP.Ek.G($APP.F([" (followed by end-of-string)"]));e+=1}else if(c=$APP.x(c))d=c,$APP.yd(d)?(c=$APP.qc(d),e=$APP.rc(d),d=c,b=$APP.Vc(c),c=e):(c=$APP.A(d),yhd(c),$APP.Ek.G($APP.F([" (followed by end-of-string)"])),c=$APP.Gc(d),d=null,b=0),e=0;else break;a=$APP.x(a);c=null;for(e=b=
|
|||
|
0;;)if(e<b)d=c.oa(null,e),yhd(d),$APP.Ek(),e+=1;else if(a=$APP.x(a))c=a,$APP.yd(c)?(a=$APP.qc(c),b=$APP.rc(c),c=a,d=$APP.Vc(a),a=b,b=d):(d=$APP.A(c),yhd(d),$APP.Ek(),a=$APP.Gc(c),c=null,b=0),e=0;else break},Ahd=function(a){throw $APP.zf.j($APP.u,a);},Bhd=function(a){throw $APP.zf.j($APP.u,a);},Chd=function(a){var b=$APP.n(a.ignoreCase)?"i":"";b=$APP.n(a.multiline)?[b,"m"].join(""):b;return $APP.n(a.unicode)?[b,"u"].join(""):b},Dhd=function(a){return $APP.x(a)&&$APP.Hb($APP.Gc(a))},f$=function(a){return $APP.T.F(a,
|
|||
|
$APP.d4,Ehd)},Fhd=function(a,b){var c=b$.C(a);switch(c instanceof $APP.N?c.ba:null){case "raw":return g$.ci(null,b);case "hiccup":return lhd(ihd(new $APP.O(null,1,5,$APP.R,[$APP.bu.C(a)],null)).ci(null,b));case "enlive":return b=g$.ci(null,b),new $APP.m(null,2,[$APP.Lq,$APP.bu.C(a),$APP.Sr,0===$APP.Vc(b)?null:b],null);default:return a.C?a.C(b):a.call(null,b)}},Ghd=function(a,b){var c=h$.C?h$.C(a):h$.call(null,a);return $APP.n(c)?$APP.sg.j($APP.jf,function(){return function f(e){return new $APP.We(null,
|
|||
|
function(){for(;;){var g=$APP.x(e);if(g){if($APP.yd(g)){var h=$APP.qc(g),l=$APP.Vc(h),p=$APP.Xe(l);a:for(var q=0;;)if(q<l){var r=$APP.hd(h,q),t=$APP.C.F(r,0,null);r=$APP.C.F(r,1,null);$APP.bf(p,$APP.n($APP.d4.C(r))?new $APP.O(null,2,5,$APP.R,[t,r],null):new $APP.O(null,2,5,$APP.R,[t,$APP.T.F(r,$APP.d4,c.C?c.C(t):c.call(null,t))],null));q+=1}else{h=!0;break a}return h?$APP.af($APP.cf(p),f($APP.rc(g))):$APP.af($APP.cf(p),null)}h=$APP.A(g);p=$APP.C.F(h,0,null);h=$APP.C.F(h,1,null);return $APP.Ie($APP.n($APP.d4.C(h))?
|
|||
|
new $APP.O(null,2,5,$APP.R,[p,h],null):new $APP.O(null,2,5,$APP.R,[p,$APP.T.F(h,$APP.d4,c.C?c.C(p):c.call(null,p))],null),f($APP.Fc(g)))}return null}},null,null)}(b)}()):Bhd($APP.F(["Invalid output format ",a,". Use :enlive or :hiccup."]))},Hhd=function(a){return $APP.B.j(a,i$)?i$:new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,a],null)},Ihd=function(a){return $APP.B.j(a,i$)?i$:new $APP.m(null,2,[$APP.Lq,j$,$APP.N1,a],null)},Jhd=function(a){return $APP.B.j(a,i$)?i$:new $APP.m(null,2,[$APP.Lq,k$,$APP.N1,
|
|||
|
a],null)},Lhd=function(a,b,c){return $APP.B.j(c,i$)?i$:new $APP.m(null,4,[$APP.Lq,Khd,$APP.N1,c,$APP.lt,a,$APP.ho,b],null)},l$=function(a){return $APP.B.j(a,"")?i$:new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,a],null)},Nhd=function(a){return $APP.B.j(a,"")?i$:new $APP.m(null,2,[$APP.Lq,Mhd,$APP.Rp,a],null)},Ohd=function(a,b){return new $APP.m(null,3,[$APP.Lq,$APP.YJ,T9,a,U9,b],null)},m$=function(a){$APP.B.j(a,"")?a=i$:(a=$APP.qh(a),a=$APP.kh(a)?new RegExp(["^",$APP.u.C(a.source)].join(""),Chd(a)):a,
|
|||
|
a=new $APP.m(null,2,[$APP.Lq,a$,a$,a],null));return a},o$=function(a){return new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,a],null)},Qhd=function(a){return new $APP.m(null,2,[$APP.Lq,Phd,$APP.N1,a],null)},Shd=function(a){return new $APP.m(null,2,[$APP.Lq,Rhd,$APP.N1,a],null)},p$=function(a){return $APP.T.F(a,$APP.c6,!0)},Thd=function(a){return $APP.sg.j($APP.jf,function(){return function d(c){return new $APP.We(null,function(){for(;;){var e=$APP.x(c);if(e){if($APP.yd(e)){var f=$APP.qc(e),g=$APP.Vc(f),h=$APP.Xe(g);
|
|||
|
a:for(var l=0;;)if(l<g){var p=$APP.hd(f,l),q=$APP.C.F(p,0,null);p=$APP.C.F(p,1,null);$APP.bf(h,new $APP.O(null,2,5,$APP.R,[q,q$(p)],null));l+=1}else{f=!0;break a}return f?$APP.af($APP.cf(h),d($APP.rc(e))):$APP.af($APP.cf(h),null)}f=$APP.A(e);h=$APP.C.F(f,0,null);f=$APP.C.F(f,1,null);return $APP.Ie(new $APP.O(null,2,5,$APP.R,[h,q$(f)],null),d($APP.Fc(e)))}return null}},null,null)}(a)}())},Uhd=function(a,b){var c=h$.C?h$.C(a):h$.call(null,a);return $APP.n(c)?$APP.sg.j($APP.jf,function(){return function f(e){return new $APP.We(null,
|
|||
|
function(){for(;;){var g=$APP.x(e);if(g){if($APP.yd(g)){var h=$APP.qc(g),l=$APP.Vc(h),p=$APP.Xe(l);a:for(var q=0;;)if(q<l){var r=$APP.hd(h,q),t=$APP.C.F(r,0,null);r=$APP.C.F(r,1,null);$APP.bf(p,new $APP.O(null,2,5,$APP.R,[t,$APP.T.F(r,$APP.d4,c.C?c.C(t):c.call(null,t))],null));q+=1}else{h=!0;break a}return h?$APP.af($APP.cf(p),f($APP.rc(g))):$APP.af($APP.cf(p),null)}h=$APP.A(g);p=$APP.C.F(h,0,null);h=$APP.C.F(h,1,null);return $APP.Ie(new $APP.O(null,2,5,$APP.R,[p,$APP.T.F(h,$APP.d4,c.C?c.C(p):c.call(null,
|
|||
|
p))],null),f($APP.Fc(g)))}return null}},null,null)}(b)}()):Bhd($APP.F(["Invalid output format ",a,". Use :enlive or :hiccup."]))},Vhd=function(a,b){var c=h$.C?h$.C(a):h$.call(null,a);return $APP.n(c)?$APP.sg.j($APP.jf,function(){return function f(e){return new $APP.We(null,function(){for(;;){var g=$APP.x(e);if(g){if($APP.yd(g)){var h=$APP.qc(g),l=$APP.Vc(h),p=$APP.Xe(l);a:for(var q=0;;)if(q<l){var r=$APP.hd(h,q),t=$APP.C.F(r,0,null);r=$APP.C.F(r,1,null);$APP.bf(p,new $APP.O(null,2,5,$APP.R,[t,$APP.T.F(q$(r),
|
|||
|
$APP.d4,c.C?c.C(t):c.call(null,t))],null));q+=1}else{h=!0;break a}return h?$APP.af($APP.cf(p),f($APP.rc(g))):$APP.af($APP.cf(p),null)}h=$APP.A(g);p=$APP.C.F(h,0,null);h=$APP.C.F(h,1,null);return $APP.Ie(new $APP.O(null,2,5,$APP.R,[p,$APP.T.F(q$(h),$APP.d4,c.C?c.C(p):c.call(null,p))],null),f($APP.Fc(g)))}return null}},null,null)}(b)}()):Bhd($APP.F(["Invalid output format ",a,". Use :enlive or :hiccup."]))},Whd=function(a,b,c,d){var e=p$(Hhd(o$(d)));c=$APP.T.F(c,d,f$(c.C?c.C(d):c.call(null,d)));d=$APP.sg.j($APP.jf,
|
|||
|
function(){return function h(g){return new $APP.We(null,function(){for(;;){var l=$APP.x(g);if(l){if($APP.yd(l)){var p=$APP.qc(l),q=$APP.Vc(p),r=$APP.Xe(q);a:for(var t=0;;)if(t<q){var y=$APP.hd(p,t),z=$APP.C.F(y,0,null);y=$APP.C.F(y,1,null);$APP.bf(r,new $APP.O(null,2,5,$APP.R,[z,r$(y,e)],null));t+=1}else{p=!0;break a}return p?$APP.af($APP.cf(r),h($APP.rc(l))):$APP.af($APP.cf(r),null)}p=$APP.A(l);r=$APP.C.F(p,0,null);p=$APP.C.F(p,1,null);return $APP.Ie(new $APP.O(null,2,5,$APP.R,[r,r$(p,e)],null),
|
|||
|
h($APP.Fc(l)))}return null}},null,null)}(a)}());b=$APP.T.F(d,b,$APP.T.F(s$.G($APP.F([$APP.jj.j(d.C?d.C(b):d.call(null,b),$APP.d4),e])),$APP.d4,$APP.d4.C(d.C?d.C(b):d.call(null,b))));return $APP.Nl.G($APP.F([b,c]))},Xhd=function(a){if(null==a||!(0<=a&&1114111>=a))return null;if(65536<=a&&1114111>=a){const b=(a&1023)+56320;return String.fromCharCode((a>>10)+55232)+String.fromCharCode(b)}return String.fromCharCode(a)},Yhd=function(a,b){const c=a.charCodeAt(b);if(55296<=c&&56319>=c&&b+1<a.length){if(a=
|
|||
|
a.charCodeAt(b+1),56320<=a&&57343>=a)return 55296<=c&&56319>=c&&56320<=a&&57343>=a?(c<<10)-56623104+(a-56320+65536):null}else if(56320<=c&&57343>=c&&0<b&&(a=a.charCodeAt(b-1),55296<=a&&56319>=a))return-(55296<=a&&56319>=a&&56320<=c&&57343>=c?(a<<10)-56623104+(c-56320+65536):0);return c},nid=function(a,b,c){var d=$APP.Lq.C(a);d=d instanceof $APP.N?d.ba:null;switch(d){case "nt":return Zhd.F?Zhd.F(a,b,c):Zhd.call(null,a,b,c);case "alt":return $hd.F?$hd.F(a,b,c):$hd.call(null,a,b,c);case "cat":return aid.F?
|
|||
|
aid.F(a,b,c):aid.call(null,a,b,c);case "string":return bid.F?bid.F(a,b,c):bid.call(null,a,b,c);case "string-ci":return cid.F?cid.F(a,b,c):cid.call(null,a,b,c);case "char":return did.F?did.F(a,b,c):did.call(null,a,b,c);case "epsilon":return eid.F?eid.F(a,b,c):eid.call(null,a,b,c);case "opt":return fid.F?fid.F(a,b,c):fid.call(null,a,b,c);case "plus":return gid.F?gid.F(a,b,c):gid.call(null,a,b,c);case "rep":return hid.F?hid.F(a,b,c):hid.call(null,a,b,c);case "star":return iid.F?iid.F(a,b,c):iid.call(null,
|
|||
|
a,b,c);case "regexp":return jid.F?jid.F(a,b,c):jid.call(null,a,b,c);case "look":return kid.F?kid.F(a,b,c):kid.call(null,a,b,c);case "neg":return lid.F?lid.F(a,b,c):lid.call(null,a,b,c);case "ord":return mid.F?mid.F(a,b,c):mid.call(null,a,b,c);default:throw Error(["No matching clause: ",$APP.u.C(d)].join(""));}},Cid=function(a,b,c){var d=$APP.Lq.C(a);d=d instanceof $APP.N?d.ba:null;switch(d){case "nt":return oid.F?oid.F(a,b,c):oid.call(null,a,b,c);case "alt":return pid.F?pid.F(a,b,c):pid.call(null,
|
|||
|
a,b,c);case "cat":return qid.F?qid.F(a,b,c):qid.call(null,a,b,c);case "string":return rid.F?rid.F(a,b,c):rid.call(null,a,b,c);case "string-ci":return sid.F?sid.F(a,b,c):sid.call(null,a,b,c);case "char":return tid.F?tid.F(a,b,c):tid.call(null,a,b,c);case "epsilon":return uid.F?uid.F(a,b,c):uid.call(null,a,b,c);case "opt":return vid.F?vid.F(a,b,c):vid.call(null,a,b,c);case "plus":return wid.F?wid.F(a,b,c):wid.call(null,a,b,c);case "rep":return xid.F?xid.F(a,b,c):xid.call(null,a,b,c);case "star":return yid.F?
|
|||
|
yid.F(a,b,c):yid.call(null,a,b,c);case "regexp":return zid.F?zid.F(a,b,c):zid.call(null,a,b,c);case "look":return Aid.F?Aid.F(a,b,c):Aid.call(null,a,b,c);case "neg":return lid.F?lid.F(a,b,c):lid.call(null,a,b,c);case "ord":return Bid.F?Bid.F(a,b,c):Bid.call(null,a,b,c);default:throw Error(["No matching clause: ",$APP.u.C(d)].join(""));}},t$=function(a,b,c,d,e){this.index=a;this.reason=b;this.J=c;this.I=d;this.O=e;this.X=2230716170;this.ca=139264},u$=function(a,b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H){this.Lb=
|
|||
|
a;this.text=b;this.Fd=c;this.gd=d;this.zd=e;this.stack=f;this.yd=g;this.generation=h;this.xd=l;this.vd=p;this.nodes=q;this.oc=r;this.hd=t;this.Gd=y;this.J=z;this.I=E;this.O=H;this.X=2230716170;this.ca=139264},Did=function(a,b,c,d,e){return new u$(a,b,c,d,e,$APP.Hh.C($APP.Tf),$APP.Hh.C($APP.Tf),$APP.Hh.C(0),$APP.Hh.C($APP.vZ($APP.tv)),$APP.Hh.C($APP.jf),$APP.Hh.C($APP.jf),$APP.Hh.C(null),$APP.Hh.C(new t$(0,$APP.Tf,null,null,null)),!1,null,null,null)},v$=function(a,b){return new $APP.m(null,2,[$APP.YD,
|
|||
|
a,$APP.my,b],null)},Eid=function(a,b){return $APP.B.j($APP.Vc($APP.Zv.C(a)),$APP.my.C(b))},w$=function(a,b,c,d,e,f,g){this.listeners=a;this.Uf=b;this.results=c;this.Vf=d;this.J=e;this.I=f;this.O=g;this.X=2230716170;this.ca=139264},Fid=function(a,b){return $APP.Ih.F($APP.$4.C(a),$APP.Fe,b)},z$=function(a,b,c){function d(){return b.C?b.C(c):b.call(null,c)}var e=Gid.C(a),f=$APP.my.C(c);f=new $APP.O(null,2,5,$APP.R,[b,f],null);var g=$APP.G.F($APP.v(e),f,0);g>$APP.v(x$.C(a))?$APP.Ih.F(y$.C(a),$APP.Fe,
|
|||
|
d):$APP.Ih.F($APP.$4.C(a),$APP.Fe,d);$APP.Ih.R(e,$APP.T,f,g+1)},Hid=function(a,b){a=$APP.cw.C(a);a=$APP.v(a);b=a.C?a.C(b):a.call(null,b);return $APP.n(b)?0<$APP.Vc($APP.v($APP.wB.C(b))):null},Iid=function(a,b){a=$APP.cw.C(a);a=$APP.v(a);b=a.C?a.C(b):a.call(null,b);return $APP.n(b)?0<$APP.Vc($APP.v(A$.C(b)))||0<$APP.Vc($APP.v($APP.wB.C(b))):null},Jid=function(a,b){a=$APP.cw.C(a);a=$APP.v(a);b=a.C?a.C(b):a.call(null,b);return $APP.n(b)?0<$APP.Vc($APP.v(B$.C(b)))||0<$APP.Vc($APP.v(C$.C(b))):null},Kid=
|
|||
|
function(a,b){a=$APP.cw.C(a);var c=$APP.v(a);c=c.C?c.C(b):c.call(null,b);$APP.n(c)||(c=new w$($APP.Hh.C($APP.Tf),$APP.Hh.C($APP.Tf),$APP.Hh.C($APP.Wg),$APP.Hh.C($APP.Wg),null,null,null),$APP.Ih.R(a,$APP.T,b,c));return c},Lid=function(a,b){return(null!=a?a.X&262144||$APP.xc===a.vg||(a.X?0:$APP.Ob($APP.ec,a)):$APP.Ob($APP.ec,a))?$APP.kd(a,b):a},D$=function(a,b,c){var d=Kid(a,b),e=b.C?b.C(1):b.call(null,1),f=$APP.n($APP.c6.C(e))?$APP.T.F(c,$APP.YD,null):c,g=function(){var y=$APP.d4.C(e);return $APP.n(y)?
|
|||
|
v$(Lid(Fhd(y,$APP.YD.C(f)),new $APP.m(null,2,[Mid,b.C?b.C(0):b.call(null,0),Nid,$APP.my.C(f)],null)),$APP.my.C(f)):f}(),h=(c=Eid(a,g))?B$.C(d):C$.C(d);if($APP.Hb(function(){var y=$APP.v(h);return y.C?y.C(g):y.call(null,g)}())){$APP.Ih.F(h,$APP.Fe,g);for(var l=$APP.x($APP.v($APP.wB.C(d))),p=null,q=0,r=0;;)if(r<q){var t=p.oa(null,r);z$(a,t,g);r+=1}else if(l=$APP.x(l))p=l,$APP.yd(p)?(l=$APP.qc(p),r=$APP.rc(p),p=l,q=$APP.Vc(l),l=r):(l=$APP.A(p),z$(a,l,g),l=$APP.Gc(p),p=null,q=0),r=0;else break;if(c)for(d=
|
|||
|
$APP.x($APP.v(A$.C(d))),c=null,q=p=0;;)if(q<p)l=c.oa(null,q),z$(a,l,g),q+=1;else if(d=$APP.x(d))c=d,$APP.yd(c)?(d=$APP.qc(c),p=$APP.rc(c),c=d,l=$APP.Vc(d),d=p,p=l):(l=$APP.A(c),z$(a,l,g),d=$APP.Gc(c),c=null,p=0),q=0;else return null;else return null}else return null},E$=function(a,b,c){var d=Hid(a,b),e=Kid(a,b),f=$APP.wB.C(e);$APP.Ih.F(f,$APP.Fe,c);f=$APP.x($APP.v(C$.C(e)));for(var g=null,h=0,l=0;;)if(l<h){var p=g.oa(null,l);z$(a,c,p);l+=1}else if(f=$APP.x(f))g=f,$APP.yd(g)?(f=$APP.qc(g),l=$APP.rc(g),
|
|||
|
g=f,h=$APP.Vc(f),f=l):(f=$APP.A(g),z$(a,c,f),f=$APP.Gc(g),g=null,h=0),l=0;else break;e=$APP.x($APP.v(B$.C(e)));f=null;for(h=g=0;;)if(h<g)l=f.oa(null,h),z$(a,c,l),h+=1;else if(e=$APP.x(e))f=e,$APP.yd(f)?(e=$APP.qc(f),h=$APP.rc(f),f=e,g=$APP.Vc(e),e=h):(e=$APP.A(f),z$(a,c,e),e=$APP.Gc(f),f=null,g=0),h=0;else break;return $APP.Hb(d)?Fid(a,function(){return nid(b.C?b.C(1):b.call(null,1),b.C?b.C(0):b.call(null,0),a)}):null},F$=function(a,b,c){var d=Iid(a,b),e=Kid(a,b),f=A$.C(e);$APP.Ih.F(f,$APP.Fe,c);
|
|||
|
e=$APP.x($APP.v(B$.C(e)));f=null;for(var g=0,h=0;;)if(h<g){var l=f.oa(null,h);z$(a,c,l);h+=1}else if(e=$APP.x(e))f=e,$APP.yd(f)?(e=$APP.qc(f),h=$APP.rc(f),f=e,g=$APP.Vc(e),e=h):(e=$APP.A(f),z$(a,c,e),e=$APP.Gc(f),f=null,g=0),h=0;else break;return $APP.Hb(d)?Fid(a,function(){return Cid(b.C?b.C(1):b.call(null,1),b.C?b.C(0):b.call(null,0),a)}):null},Pid=function(a,b,c){return $APP.Ih.F(G$.C(a),Oid,$APP.hf([b.C?b.C(0):b.call(null,0),new $APP.O(null,1,5,$APP.R,[c],null)]))},H$=function(a,b,c,d){$APP.Ih.j($APP.XO.C(a),
|
|||
|
function(e){var f=$APP.my.C(e);f=$APP.ae(c,f);switch(f){case 1:return new t$(c,new $APP.O(null,1,5,$APP.R,[d],null),null,null,null);case 0:return new t$(c,$APP.Fe.j($APP.Bk.C(e),d),null,null,null);case -1:return e;default:throw Error(["No matching clause: ",$APP.u.C(f)].join(""));}});return $APP.B.j(c,Qid.C(a))?D$(a,b,v$(function(){var e=Rid.C(a);var f=$APP.Zv.C(a);f=$APP.ph.j?$APP.ph.j(f,c):$APP.ph.call(null,f,c);var g=$APP.Vc($APP.Zv.C(a));return Sid.ea?Sid.ea(e,Tid,f,c,g):Sid.call(null,e,Tid,f,
|
|||
|
c,g)}(),$APP.Vc($APP.Zv.C(a)))):null},Uid=function(a){var b=$APP.md($APP.v(a));$APP.Ih.j(a,$APP.nd);b.K?b.K():b.call(null)},Vid=function(a,b){for(;;){var c=$APP.$4.C(a);if($APP.n($APP.v($APP.jm.C(a))))return $APP.Ie($APP.YD.C($APP.v($APP.jm.C(a))),new $APP.We(null,function(f){return function(){$APP.Ef($APP.jm.C(f),null);return Vid(f,!0)}}(a,b,c),null,null));if(0<$APP.Vc($APP.v(c)))Uid(c);else if(0<$APP.Vc($APP.v(G$.C(a)))){var d=$APP.A($APP.v(G$.C(a)));c=$APP.C.F(d,0,null);d=$APP.C.F(d,1,null);var e=
|
|||
|
$APP.md(d);e.K?e.K():e.call(null);$APP.B.j($APP.Vc(d),1)?$APP.Ih.F(G$.C(a),$APP.jj,c):$APP.Ih.R(G$.C(a),$APP.en,new $APP.O(null,1,5,$APP.R,[c],null),$APP.nd)}else if($APP.n(b))b=y$.C(a),$APP.Ef(c,$APP.v(b)),$APP.Ef(b,$APP.Tf),$APP.Ih.j(x$.C(a),$APP.Oc),b=null;else return null}},I$=function(a,b){return function(c){return D$(b,a,c)}},Wid=function(a,b){return function(){return D$(b,a,v$(null,a.C?a.C(0):a.call(null,0)))}},Xid=function(a){return function(b){return $APP.Ef($APP.jm.C(a),b)}},bid=function(a,
|
|||
|
b,c){var d=$APP.Rp.C(a),e=$APP.Zv.C(c);var f=$APP.Vc(e);var g=b+$APP.Vc(d);f=f<g?f:g;e=$APP.ph.F?$APP.ph.F(e,b,f):$APP.ph.call(null,e,b,f);return $APP.B.j(d,e)?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(d,f)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.Rp,e$,d],null))},rid=function(a,b,c){var d=$APP.Rp.C(a),e=$APP.Zv.C(c);var f=$APP.Vc(e);var g=b+$APP.Vc(d);f=f<g?f:g;g=$APP.ph.F?$APP.ph.F(e,b,f):$APP.ph.call(null,e,b,f);return $APP.B.j(f,$APP.Vc(e))&&$APP.B.j(d,
|
|||
|
g)?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(d,f)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,3,[$APP.Lq,$APP.Rp,e$,d,$APP.gn,!0],null))},cid=function(a,b,c){var d=$APP.Rp.C(a),e=$APP.Zv.C(c);var f=$APP.Vc(e);var g=b+$APP.Vc(d);f=f<g?f:g;e=$APP.ph.F?$APP.ph.F(e,b,f):$APP.ph.call(null,e,b,f);return $APP.B.j(d.toUpperCase(),e.toUpperCase())?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(d,f)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.Rp,e$,
|
|||
|
d],null))},sid=function(a,b,c){var d=$APP.Rp.C(a),e=$APP.Zv.C(c);var f=$APP.Vc(e);var g=b+$APP.Vc(d);f=f<g?f:g;g=$APP.ph.F?$APP.ph.F(e,b,f):$APP.ph.call(null,e,b,f);return $APP.B.j(f,$APP.Vc(e))&&$APP.B.j(d.toUpperCase(),g.toUpperCase())?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(d,f)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,3,[$APP.Lq,$APP.Rp,e$,d,$APP.gn,!0],null))},did=function(a,b,c){var d=T9.C(a),e=U9.C(a),f=$APP.Zv.C(c);if(b>=$APP.Vc(f))return H$(c,new $APP.O(null,
|
|||
|
2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null)],null));if(65535>=e)return f=f.charCodeAt(b),d<=f&&f<=e?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$($APP.u.C($APP.oe(f)),b+1)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null)],null));f=Yhd(f,b|0);var g=Xhd(f);return d<=f&&f<=e?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(g,b+$APP.Vc(g))):H$(c,new $APP.O(null,2,
|
|||
|
5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null)],null))},tid=function(a,b,c){var d=T9.C(a),e=U9.C(a),f=$APP.Zv.C(c),g=$APP.Vc(f);if(b>=$APP.Vc(f))return H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null)],null));if(65535>=e)return f=f.charCodeAt(b),$APP.B.j(b+1,g)&&d<=f&&f<=e?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$($APP.u.C($APP.oe(f)),g)):H$(c,new $APP.O(null,
|
|||
|
2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null)],null));f=Yhd(f,b|0);var h=Xhd(f);return $APP.B.j(b+$APP.Vc(h),g)&&d<=f&&f<=e?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(h,g)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,3,[$APP.Lq,$APP.YJ,e$,new $APP.m(null,3,[xhd,!0,T9,d,U9,e],null),$APP.gn,!0],null))},Yid=function(a,b){a=(new RegExp(a.source,["g",Chd(a)].join(""))).exec(b);return $APP.n($APP.n(a)?0===a.index:a)?$APP.A(a):
|
|||
|
null},jid=function(a,b,c){var d=a$.C(a),e=J$.C(c);e=$APP.ph.j?$APP.ph.j(e,b):$APP.ph.call(null,e,b);e=Yid(d,e);return $APP.n(e)?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(e,b+$APP.Vc(e))):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,a$,e$,d],null))},zid=function(a,b,c){var d=a$.C(a),e=J$.C(c),f=$APP.ph.j?$APP.ph.j(e,b):$APP.ph.call(null,e,b);f=Yid(d,f);var g=$APP.Vc(e)-b;return $APP.n($APP.n(f)?$APP.B.j($APP.Vc(f),g):f)?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(f,
|
|||
|
$APP.Vc(e))):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,3,[$APP.Lq,a$,e$,d,$APP.gn,!0],null))},aid=function(a,b,c){var d=$9.C(a);return E$(c,new $APP.O(null,2,5,$APP.R,[b,$APP.A(d)],null),Zid(g$,$APP.Gc(d),new $APP.O(null,2,5,$APP.R,[b,a],null),c))},qid=function(a,b,c){var d=$9.C(a);return E$(c,new $APP.O(null,2,5,$APP.R,[b,$APP.A(d)],null),K$(g$,$APP.Gc(d),new $APP.O(null,2,5,$APP.R,[b,a],null),c))},gid=function(a,b,c){var d=$APP.N1.C(a);return E$(c,new $APP.O(null,2,5,$APP.R,
|
|||
|
[b,d],null),$id(g$,d,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c))},wid=function(a,b,c){var d=$APP.N1.C(a);return E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),ajd(g$,d,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c))},hid=function(a,b,c){var d=$APP.N1.C(a),e=$APP.lt.C(a),f=$APP.ho.C(a);return 0===e?(D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b)),1<=f?E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),bjd(g$,0,d,1,f,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c)):null):E$(c,new $APP.O(null,2,5,$APP.R,[b,
|
|||
|
d],null),bjd(g$,0,d,e,f,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c))},xid=function(a,b,c){var d=$APP.N1.C(a),e=$APP.lt.C(a),f=$APP.ho.C(a);return 0===e?(D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b)),1<=f?E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),cjd(g$,0,d,1,f,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c)):null):E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),cjd(g$,0,d,e,f,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c))},iid=function(a,b,c){var d=$APP.N1.C(a);E$(c,new $APP.O(null,2,5,$APP.R,[b,
|
|||
|
d],null),$id(g$,d,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c));return D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b))},yid=function(a,b,c){var d=$APP.N1.C(a);return $APP.B.j(b,$APP.Vc($APP.Zv.C(c)))?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b)):E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),ajd(g$,d,b,new $APP.O(null,2,5,$APP.R,[b,a],null),c))},$hd=function(a,b,c){var d=$9.C(a);d=$APP.x(d);for(var e=null,f=0,g=0;;)if(g<f){var h=e.oa(null,g);E$(c,new $APP.O(null,2,5,$APP.R,[b,h],null),
|
|||
|
I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c));g+=1}else if(d=$APP.x(d))e=d,$APP.yd(e)?(d=$APP.qc(e),f=$APP.rc(e),e=d,h=$APP.Vc(d),d=f,f=h):(h=$APP.A(e),E$(c,new $APP.O(null,2,5,$APP.R,[b,h],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c)),d=$APP.Gc(e),e=null,f=0),g=0;else return null},pid=function(a,b,c){var d=$9.C(a);d=$APP.x(d);for(var e=null,f=0,g=0;;)if(g<f){var h=e.oa(null,g);F$(c,new $APP.O(null,2,5,$APP.R,[b,h],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c));g+=1}else if(d=$APP.x(d))e=
|
|||
|
d,$APP.yd(e)?(d=$APP.qc(e),f=$APP.rc(e),e=d,h=$APP.Vc(d),d=f,f=h):(h=$APP.A(e),F$(c,new $APP.O(null,2,5,$APP.R,[b,h],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c)),d=$APP.Gc(e),e=null,f=0),g=0;else return null},mid=function(a,b,c){var d=V9.C(a),e=Z9.C(a);d=new $APP.O(null,2,5,$APP.R,[b,d],null);var f=new $APP.O(null,2,5,$APP.R,[b,e],null),g=I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c);E$(c,d,g);return Pid(c,d,function(){return E$(c,f,g)})},Bid=function(a,b,c){var d=V9.C(a),e=Z9.C(a);d=new $APP.O(null,
|
|||
|
2,5,$APP.R,[b,d],null);var f=new $APP.O(null,2,5,$APP.R,[b,e],null),g=I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c);F$(c,d,g);return Pid(c,d,function(){return F$(c,f,g)})},fid=function(a,b,c){var d=$APP.N1.C(a);E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c));return D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b))},vid=function(a,b,c){var d=$APP.N1.C(a);F$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c));return $APP.B.j(b,
|
|||
|
$APP.Vc($APP.Zv.C(c)))?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,$APP.Yt,e$,djd],null))},Zhd=function(a,b,c){var d=c$.C(c);var e=$APP.nr.C(a);d=$APP.G.F(d,e,e);return E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],null),c))},oid=function(a,b,c){var d=c$.C(c);var e=$APP.nr.C(a);d=$APP.G.F(d,e,e);return F$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),I$(new $APP.O(null,2,5,$APP.R,[b,a],
|
|||
|
null),c))},kid=function(a,b,c){var d=$APP.N1.C(a);return E$(c,new $APP.O(null,2,5,$APP.R,[b,d],null),Wid(new $APP.O(null,2,5,$APP.R,[b,a],null),c))},Aid=function(a,b,c){return $APP.B.j(b,$APP.Vc($APP.Zv.C(c)))?kid(a,b,c):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,ejd,e$,djd],null))},lid=function(a,b,c){var d=$APP.N1.C(a),e=new $APP.O(null,2,5,$APP.R,[b,d],null);if($APP.n(Jid(c,e)))return H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,1,[$APP.Lq,fjd],null));
|
|||
|
E$(c,e,function(){var f=new $APP.Ch(function(){return H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,fjd,e$,new $APP.m(null,1,[whd,S9(d,!1)],null)],null))},null);return function(){return $APP.Pja(f)}}());return Pid(c,e,function(){return $APP.Hb(Jid(c,e))?D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b)):null})},eid=function(a,b,c){return D$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),v$(null,b))},uid=function(a,b,c){return $APP.B.j(b,$APP.Vc($APP.Zv.C(c)))?D$(c,new $APP.O(null,
|
|||
|
2,5,$APP.R,[b,a],null),v$(null,b)):H$(c,new $APP.O(null,2,5,$APP.R,[b,a],null),b,new $APP.m(null,2,[$APP.Lq,gjd,e$,djd],null))},hjd=function(a,b,c){$APP.n(c)?E$(a,new $APP.O(null,2,5,$APP.R,[0,b],null),Xid(a)):F$(a,new $APP.O(null,2,5,$APP.R,[0,b],null),Xid(a))},ijd=function(a,b,c,d){a=Did(a,c,c,-1,null);hjd(a,o$(b),d);b=Vid(a,null);if($APP.n(b))b=$APP.A(b);else{b=$APP.v($APP.XO.C(a));a:{d=$APP.my.C(b);for(var e=a=1,f=0;;){if($APP.B.j(d,f)){d=new $APP.m(null,2,[$APP.fo,a,$APP.oq,e],null);break a}$APP.B.j("\n",
|
|||
|
$APP.G.j(c,f))?(f+=1,a+=1,e=1):(f+=1,e+=1)}}a=$APP.Nl.G;a:for(e=$APP.fo.C(d),c=$APP.x($APP.Hj(c,"\r\n","\n"));;){if($APP.od(c)){c="";break a}if($APP.B.j(e,1)){c=$APP.zf.j($APP.u,$APP.eh.j($APP.Af(new $APP.Vg(null,new $APP.m(null,1,["\n",null],null),null)),c));break a}$APP.B.j("\n",$APP.A(c))?(c=$APP.Gc(c),--e):c=$APP.Gc(c)}b=a.call($APP.Nl,$APP.F([b,d,new $APP.m(null,1,[$APP.Zv,c],null)]))}return b},Sid=function(a,b,c,d,e){return $APP.kd(a.j?a.j(b,c):a.call(null,b,c),new $APP.m(null,2,[Mid,d,Nid,
|
|||
|
e],null))},kjd=function(a,b){var c=jjd;if($APP.B.j(!0,c))return Nhd(a);if($APP.B.j(!1,c))return l$(a);if($APP.B.j($APP.ej,c))return $APP.n(b)?Nhd(a):l$(a);throw Error(["No matching clause: ",$APP.u.C(c)].join(""));},ljd=function(a){for(var b=$APP.x(a),c=$APP.Tf;;){var d=$APP.A(b);if($APP.n(d))switch(d){case "\\":var e=$APP.$c(b);if($APP.n(e)){$APP.B.j(e,"'")?(b=$APP.Hf.j(2,b),c=$APP.Fe.j(c,e)):(b=$APP.Hf.j(2,b),c=$APP.Fe.G(c,d,$APP.F([e])));continue}else return Ahd($APP.F(["Encountered backslash character at end of string: ",
|
|||
|
a]));case '"':b=$APP.Gc(b);c=$APP.Fe.G(c,"\\",$APP.F(['"']));continue;default:b=$APP.Gc(b),c=$APP.Fe.j(c,d)}else return $APP.zf.j($APP.u,c)}},njd=function(a){a=$APP.ph.F(a,1,$APP.Vc(a)-1);a=ljd(a);a=[$APP.u.C(a),'"'].join("");a=$APP.Xq(a);return mjd.R?mjd.R(a,null,null,null):mjd.call(null,a,null,null,null)},ojd=function(a){a=$APP.ph.F(a,2,$APP.Vc(a)-1);a=ljd(a);return $APP.qh(a)},qjd=function(a){for(var b=$APP.Zg($APP.Og(a)),c=$APP.x($APP.Cx.C($APP.Nf.G(pjd,$APP.F([$APP.Qg(a)])))),d=null,e=0,f=0;;)if(f<
|
|||
|
e){var g=d.oa(null,f);$APP.n(b.C?b.C(g):b.call(null,g))||Ahd($APP.F([$APP.ph.j($APP.u.C(g),1)," occurs on the right-hand side of your grammar, but not on the left"]));f+=1}else if(c=$APP.x(c))d=c,$APP.yd(d)?(c=$APP.qc(d),f=$APP.rc(d),d=c,e=$APP.Vc(c),c=f):(c=$APP.A(d),$APP.n(b.C?b.C(c):b.call(null,c))||Ahd($APP.F([$APP.ph.j($APP.u.C(c),1)," occurs on the right-hand side of your grammar, but not on the left"])),c=$APP.Gc(d),d=null,e=0),f=0;else break;return a},sjd=function(a,b){var c=ijd(rjd,$APP.hB,
|
|||
|
a,!1);if(c instanceof t$)return Ahd($APP.F(["Error parsing grammar specification:\n",function(){var e=new $APP.rb,f=$APP.Bb,g=$APP.Cb;$APP.Bb=!0;$APP.Cb=function(h){return e.append(h)};try{$APP.Ek.G($APP.F([c]))}finally{$APP.Cb=g,$APP.Bb=f}return $APP.u.C(e)}()]));a=$APP.vh.j(L$,c);var d=$APP.A($APP.A(a));return new $APP.m(null,3,[c$,qjd(Ghd(b,$APP.sg.j($APP.jf,a))),d$,d,M$,b],null)},tjd=function(a,b,c){return null==c?Bhd($APP.F(["When you build a parser from a map of parser combinators, you must provide a start production using the :start keyword argument."])):
|
|||
|
new $APP.m(null,3,[c$,qjd(Ghd(b,a)),d$,c,M$,b],null)},ujd=function(a,b){return(null!=a?a.X&262144||$APP.xc===a.vg||(a.X?0:$APP.Ob($APP.ec,a)):$APP.Ob($APP.ec,a))?$APP.kd(a,$APP.Nl.G($APP.F([b,$APP.ld(a)]))):a},vjd=function(a,b){return $APP.sg.j($APP.jf,function(){return function e(d){return new $APP.We(null,function(){for(var f=d;;)if(f=$APP.x(f)){if($APP.yd(f)){var g=$APP.qc(f),h=$APP.Vc(g),l=$APP.Xe(h);a:for(var p=0;;)if(p<h){var q=$APP.hd(g,p);$APP.Wd(a,q)&&$APP.bf(l,new $APP.O(null,2,5,$APP.R,
|
|||
|
[q,a.C?a.C(q):a.call(null,q)],null));p+=1}else{g=!0;break a}return g?$APP.af($APP.cf(l),e($APP.rc(f))):$APP.af($APP.cf(l),null)}l=$APP.A(f);if($APP.Wd(a,l))return $APP.Ie(new $APP.O(null,2,5,$APP.R,[l,a.C?a.C(l):a.call(null,l)],null),e($APP.Fc(f)));f=$APP.Fc(f)}else return null},null,null)}(b)}())},xjd=function(a){return $APP.Nl.G($APP.F([vjd(wjd,$APP.Cx.C($APP.Nf.G(pjd,$APP.F([$APP.Qg(a)])))),a]))},yjd=function(a,b){var c=$APP.B.j($APP.d4.C(a),Ehd),d=$APP.B.j($APP.d4.C(b),Ehd);return c&&d?f$(N$.G($APP.F([$APP.jj.j(a,
|
|||
|
$APP.d4),$APP.jj.j(b,$APP.d4)]))):c?f$(N$.G($APP.F([$APP.jj.j(a,$APP.d4),b]))):d?f$(N$.G($APP.F([a,$APP.jj.j(b,$APP.d4)]))):N$.G($APP.F([a,b]))},Djd=function(a,b){var c=ijd(zjd,Ajd,a,!1);if(c instanceof t$)return Ahd($APP.F(["Error parsing grammar specification:\n",function(){var e=new $APP.rb,f=$APP.Bb,g=$APP.Cb;$APP.Bb=!0;$APP.Cb=function(h){return e.append(h)};try{$APP.Ek.G($APP.F([c]))}finally{$APP.Cb=g,$APP.Bb=f}return $APP.u.C(e)}()]));var d=Bjd(Cjd,c);a=xjd($APP.zf.F($APP.jq,yjd,d));d=$APP.A($APP.A($APP.A(d)));
|
|||
|
return new $APP.m(null,3,[c$,qjd(Ghd(b,a)),d$,d,M$,b],null)},Ejd=function(a){var b=$APP.ld(a);a=Mid.C(b);b=Nid.C(b);return $APP.n($APP.n(a)?b:a)?new $APP.O(null,2,5,$APP.R,[a,b],null):null},Fjd=function(a){return $APP.xd(a)&&$APP.B.j($APP.Vc(a),1)||$APP.vd(a)&&$APP.Wd(a,$APP.Lq)&&$APP.od($APP.G.j(a,$APP.Sr))||$APP.od(a)},Gjd=function(a,b,c,d,e){a=Did(a,c,d,-1,null);E$(a,new $APP.O(null,2,5,$APP.R,[e,b],null),Xid(a));return Vid(a,null)},Hjd=function(a,b,c,d,e,f){var g=$APP.Vc(c);for(f=$APP.x(f);;)if(f){var h=
|
|||
|
$APP.A(f),l=Ejd(h);$APP.C.F(l,0,null);l=$APP.C.F(l,1,null);l=$APP.n(l)?l:e+$APP.Vc(h);if($APP.B.j(l,g))return new $APP.O(null,3,5,$APP.R,[h,l,null],null);var p=$APP.x(Gjd(a,b,c,d,l));if(p)return new $APP.O(null,3,5,$APP.R,[h,l,p],null);f=$APP.Gc(f)}else return null},Kjd=function(a,b,c,d,e){var f=$APP.Vc(c),g=Gjd(a,b,c,d,e);e=$APP.qe(e);var h=Hjd(a,b,c,d,e,g);$APP.C.F(h,0,null);$APP.C.F(h,1,null);$APP.C.F(h,2,null);g=e;for(e=g$;;){var l=h,p=$APP.C.F(l,0,null);h=$APP.C.F(l,1,null);var q=$APP.C.F(l,
|
|||
|
2,null);if(null==l||$APP.B.j(g,h))return O$;if(null==q)return Lid(P9(e,p),new $APP.m(null,3,[Ijd,Jjd,Mid,0,Nid,f],null));g=$APP.qe(h);e=P9(e,p);h=Hjd(a,b,c,d,h,q)}},Mjd=function(a,b,c,d,e){if($APP.B.j(c,$APP.a5))a:{c=$APP.Vc(e);var f=Gjd(a,b,e,e,0),g=$APP.qe(0),h=ihd(new $APP.O(null,1,5,$APP.R,[d],null));f=Hjd(a,b,e,e,g,f);$APP.C.F(f,0,null);$APP.C.F(f,1,null);$APP.C.F(f,2,null);d=g;g=h;for(h=f;;){var l=h,p=$APP.C.F(l,0,null);h=$APP.C.F(l,1,null);f=$APP.C.F(l,2,null);if(null==l||$APP.B.j(d,h)){a=
|
|||
|
O$;break a}if(null==f){a=Lid(lhd(P9(g,p)),new $APP.m(null,3,[Ijd,Jjd,Mid,0,Nid,c],null));break a}d=$APP.qe(h);g=P9(g,p);h=Hjd(a,b,e,e,h,f)}}else if($APP.B.j(c,Ljd))a:for(c=$APP.Vc(e),h=Gjd(a,b,e,e,0),g=$APP.qe(0),f=Hjd(a,b,e,e,g,h),$APP.C.F(f,0,null),$APP.C.F(f,1,null),$APP.C.F(f,2,null),h=g$;;){var q=f;l=$APP.C.F(q,0,null);f=$APP.C.F(q,1,null);p=$APP.C.F(q,2,null);if(null==q||$APP.B.j(g,f)){a=O$;break a}if(null==p){a=Lid(new $APP.m(null,2,[$APP.Lq,d,$APP.Sr,$APP.x(P9(h,l))],null),new $APP.m(null,
|
|||
|
3,[Ijd,Jjd,Mid,0,Nid,c],null));break a}g=$APP.qe(f);h=P9(h,l);f=Hjd(a,b,e,e,f,p)}else a=null;return a},Njd=function(a,b,c,d,e,f){var g=$APP.Vc(f),h=Gjd(a,b,f,f,0),l=$APP.od(h);b=l?l:$APP.c6.C(b);if($APP.n(b))return O$;h=$APP.zf.F($APP.Cn,P$,h);b=P$.C(h);a=Kjd(a,$APP.N1.C(c),f,f,b);g=new $APP.m(null,3,[Ijd,Jjd,Mid,0,Nid,g],null);if(a instanceof t$||$APP.B.j($APP.Lq.C(c),k$)&&Fjd(a))return O$;switch(d instanceof $APP.N?d.ba:null){case "enlive":return Lid(new $APP.m(null,2,[$APP.Lq,e,$APP.Sr,P9(g$.ci(null,
|
|||
|
h),a)],null),g);case "hiccup":return Lid(lhd(P9(ihd(new $APP.O(null,1,5,$APP.R,[e],null)).ci(null,h),a)),g);default:return Lid(P9(g$.ci(null,h),a),g)}},Ojd=function(a,b,c,d,e){var f=$9.C(d),g=$APP.fd(f),h;if(h=$APP.B.j($APP.Lq.C(d),$APP.Au)){h=$APP.Lq.C(g);var l=new $APP.Vg(null,new $APP.m(null,2,[k$,null,j$,null],null),null);h=l.C?l.C(h):l.call(null,h);h=$APP.n(h)?$APP.Hb($APP.c6.C(g))&&$APP.Hb($APP.c6.C($APP.N1.C(g))):h}if($APP.Hb(h))return O$;f=$APP.zf.j(s$,$APP.$g(f));return $APP.B.j($APP.d4.C(d),
|
|||
|
Ehd)?Njd(a,f,g,null,c,b):Njd(a,f,g,e,c,b)},Pjd=function(a,b,c){var d=c$.C(a);a=M$.C(a);var e=$APP.G.j(d,c);return $APP.B.j($APP.c6.C(e),!0)?O$:$APP.B.j($APP.d4.C(e),Ehd)?$APP.B.j($APP.Lq.C(e),k$)?(c=$APP.N1.C(e),Kjd(d,c,b,b,0)):$APP.B.j($APP.Lq.C(e),j$)?(c=$APP.N1.C(e),b=Kjd(d,c,b,b,0),Fjd(b)?O$:b):Ojd(d,b,c,e,a):$APP.B.j($APP.Lq.C(e),k$)?Mjd(d,$APP.N1.C(e),a,c,b):$APP.B.j($APP.Lq.C(e),j$)?(b=Mjd(d,$APP.N1.C(e),a,c,b),Fjd(b)?O$:b):Ojd(d,b,c,e,a)},Qjd=function(a,b){if($APP.B.j(null,b))return a;if($APP.B.j($APP.Sr,
|
|||
|
b))return $APP.T.F(a,c$,Thd(c$.C(a)));if($APP.B.j($APP.UN,b))return $APP.T.F(a,c$,Uhd(M$.C(a),c$.C(a)));if($APP.B.j($APP.dJ,b))return $APP.T.F(a,c$,Vhd(M$.C(a),c$.C(a)));throw Error(["No matching clause: ",$APP.u.C(b)].join(""));},Q$=function(a,b,c,d,e,f){this.Lb=a;this.jg=b;this.Fg=c;this.J=d;this.I=e;this.O=f;this.X=2230716171;this.ca=139264},Rjd=function(a){var b=$APP.jj.G(a,c$,$APP.F([d$,M$]));b=$APP.wd(a)?$APP.sg.j($APP.jf,b):b;return new Q$(c$.C(a),d$.C(a),M$.C(a),null,$APP.lf(b),null)},Tjd=
|
|||
|
function(a){for(var b=[],c=arguments.length,d=0;;)if(d<c)b.push(arguments[d]),d+=1;else break;b=1<b.length?new $APP.Cc(b.slice(1),0,null):null;return Sjd(arguments[0],b)},Sjd=function(a,b){var c=$APP.kf(b),d=$APP.G.F(c,Ujd,Vjd),e=$APP.G.F(c,M$,$APP.a5),f=$APP.G.F(c,$APP.Qo,null);b="string"===typeof a?function(){a:{var l=jjd;jjd=Mhd.j(c,$APP.ej);try{var p=d instanceof $APP.N?d.ba:null;switch(p){case "abnf":var q=Djd(a,e);break a;case "ebnf":q=sjd(a,e);break a;default:throw Error(["No matching clause: ",
|
|||
|
$APP.u.C(p)].join(""));}}finally{jjd=l}q=void 0}return $APP.n(f)?Rjd($APP.T.F(q,d$,f)):Rjd(q)}():$APP.vd(a)?function(){var l=tjd(a,e,f);return Rjd(l)}():$APP.xd(a)?function(){var l=$APP.n(f)?f:a.C?a.C(0):a.call(null,0);l=tjd($APP.zf.j($APP.LI,a),e,l);return Rjd(l)}():Bhd($APP.F(["Expected string, map, or vector as grammar specification, got ",$APP.Gh.G($APP.F([a]))]));var g=$APP.G.j(c,Wjd);g=g instanceof $APP.N?$APP.G.j(Xjd,g):g;if($APP.n(g)){var h=$APP.kf(g);g=$APP.G.j(h,c$);h=$APP.G.j(h,d$);return $APP.T.F(b,
|
|||
|
c$,Whd(b.Lb,b.jg,g,h))}return b},Zjd=function(a){return a instanceof Yjd||$APP.ld(a)instanceof Yjd},$jd=function(a){return Zjd(a)||a instanceof Error},akd=function(a){return $APP.ee.F(function(b,c){return b.multipliedBy(c)},R$.BigNumber(1),$APP.qj.j(2,a+1))},Gkd=function(a,b){var c=$APP.Ig([bkd,ckd,dkd,$APP.fB,ekd,$APP.fL,$APP.fxb,fkd,gkd,hkd,ikd,jkd,$APP.$T,kkd,lkd,mkd,$APP.PK,nkd,okd,$APP.N5a,pkd,$APP.jQ,qkd,rkd,skd,$APP.Dyc,tkd,ukd,vkd,$APP.go,$APP.aFc,wkd,xkd,ykd,zkd],[function(d){return R$.BigNumber(Math.atan(d))},
|
|||
|
function(d){$APP.Ih.R(a,$APP.jj,$APP.Lo,Akd);$APP.Ih.G(a,$APP.T,$APP.Lo,"frac",$APP.F([Bkd,d]));return $APP.G.j($APP.v(a),"last")},function(d){return R$.BigNumber(Math.cos(d))},function(d){d=(0,$APP.Da)(d);var e=$APP.G.j(Ckd,d);if($APP.n(e))return e;e=$APP.G.j($APP.v(a),d);if($APP.n(e))return e;throw $APP.Hm.j($APP.Lw("Can't find variable %s",$APP.F([d])),new $APP.m(null,1,[$APP.oB,d],null));},function(d){return R$.BigNumber(Math.tan(d))},$APP.cm.j(R$.BigNumber,function(d){return $APP.Hj(d,",","")}),
|
|||
|
function(d,e){return d.minus(e)},function(d){return d.sqrt()},function(d){var e=d.isInteger();$APP.n(e)&&(e=d.isPositive(),e=$APP.n(e)?d.isLessThan(254):e);return $APP.n(e)?akd(d.toNumber()):R$.BigNumber(Dkd)},function(d){return R$.BigNumber(Math.log(d))},function(d,e){return d.modulo(e)},function(d,e){return $APP.n(e.isInteger())?d.exponentiatedBy(e):R$.BigNumber(Math.pow(d,e))},function(d){return R$.BigNumber(Math.exp(d))},$APP.re,R$.BigNumber,function(d){return R$.BigNumber(Math.asin(d))},function(d,
|
|||
|
e){return d.dividedBy(e)},function(d){$APP.Ih.G(a,$APP.T,$APP.Lo,"sci",$APP.F([Ekd,d]));return $APP.G.j($APP.v(a),"last")},function(d,e){return d.multipliedBy(e)},$APP.le,function(d){return d.abs()},$APP.Bf(null),function(d){return R$.BigNumber(Math.sin(d))},function(d,e){if($APP.Wd(Ckd,d))throw $APP.Hm.j($APP.Lw("Can't redefine constant %s",$APP.F([d])),new $APP.m(null,1,[$APP.oB,d],null));$APP.Ih.R(a,$APP.T,d,e);return e},function(d,e,f){return R$.BigNumber(e).dividedBy(f).plus(d)},function(d){return d.dividedBy(100)},
|
|||
|
function(d){$APP.Ih.G(a,$APP.T,$APP.Lo,"frac",$APP.F([Bkd,d,Akd,!0]));return $APP.G.j($APP.v(a),"last")},$APP.Tj,function(d){$APP.Ih.R(a,$APP.jj,$APP.Lo,Ekd);$APP.Ih.R(a,$APP.T,Fkd,d);return $APP.G.j($APP.v(a),"last")},function(d){$APP.Ih.R(a,$APP.T,$APP.go,$APP.Kj(d));return $APP.G.j($APP.v(a),"last")},function(d,e){return d.plus(e)},function(d){$APP.Ih.G(a,$APP.T,$APP.Lo,"fix",$APP.F([Ekd,d]));return $APP.G.j($APP.v(a),"last")},function(d){return d.negated()},function(d){return R$.BigNumber(Math.acos(d))},
|
|||
|
function(d){return R$.BigNumber(Math.log10(d))}]);return Bjd.j?Bjd.j(c,b):Bjd.call(null,c,b)},Hkd=function(a,b){var c=a.isZero();if($APP.n(c))return c;a=a.abs();c=R$.BigNumber(.5).shiftedBy(-b);b=R$.BigNumber(1E21);c=a.isGreaterThanOrEqualTo(c);return $APP.n(c)?a.isLessThan(b):c},Ikd=function(a,b){var c=a.s;a=$APP.Qd(c)?a.abs():a;return[$APP.Qd(c)?"-":null,$APP.u.C(function(){switch(b){case 2:return"0b";case 8:return"0o";case 16:return"0x";default:throw Error(["No matching clause: ",$APP.u.C(b)].join(""));
|
|||
|
}}()),$APP.u.C(a.toString(b))].join("")},Jkd=function(a,b,c){var d=a.dividedToIntegerBy(b);return $APP.n($APP.n(c)?c:d.isZero())?[$APP.u.C(a),"/",$APP.u.C(b)].join(""):[$APP.u.C(d)," ",$APP.u.C(a.modulo(b).abs()),"/",$APP.u.C(b)].join("")},Kkd=function(a,b){a=$APP.G.j($APP.v(a),Fkd);a=$APP.n(a)?a:21;b=b.precision(a);var c=b.e<a;a=c?b.shiftedBy(1+a).isInteger():c;return $APP.n(a)?b.toFixed():b.toExponential()},Lkd=function(a,b){if(b instanceof R$.BigNumber){var c=$APP.G.j($APP.v(a),$APP.Lo),d=$APP.G.j($APP.v(a),
|
|||
|
$APP.go),e=$APP.G.j($APP.v(a),Ekd);if($APP.B.j(d,"hex"))return Ikd(b,16);if($APP.B.j(d,"oct"))return Ikd(b,8);if($APP.B.j(d,"bin"))return Ikd(b,2);if($APP.B.j(c,"fix"))return $APP.n(Hkd(b,e))?b.toFixed(e):b.toExponential(e);if($APP.B.j(c,"sci"))return b.toExponential(e);if($APP.B.j(c,"frac")){d=function(){var g=$APP.G.j($APP.v(a),Bkd);return $APP.n(g)?g:4095}();c=$APP.G.j($APP.v(a),Akd);e=b.toFraction(d);d=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);var f=d.dividedBy(e).minus(b);return $APP.n(function(){var g=
|
|||
|
f.isZero();return $APP.n(g)?g:-16>f.e}())?1<e?Jkd(d,e,c):Kkd(a,d):Kkd(a,b)}return Kkd(a,b)}return b},Nkd=function(a){var b=$APP.Hh.C($APP.jf);return $APP.pj.j(function(c){if($APP.Uj(c))var d=null;else{c=Mkd.C?Mkd.C(c):Mkd.call(null,c);try{d=$jd(c)?c:$APP.A(Gkd(b,c))}catch(e){if(e instanceof Error)d=e;else throw e;}null!=d&&$APP.Ih.R(b,$APP.T,"last",d);d=Lkd(b,d)}return d},$APP.Pj(a))},Pkd=function(){var a=$APP.G.j($APP.v($APP.tC),$APP.TJc);a=$APP.kf(a);var b=$APP.G.j(a,$APP.uC),c=$APP.G.j(a,$APP.CT);
|
|||
|
a=$APP.G.j(a,$APP.Jsc);$APP.vC($APP.tAb,!0);$APP.vC($APP.j3,!1);if($APP.n(a)){a.save();a=a.getTextArea();var d=$APP.wa(a,"value");if($APP.Rg.j(d,$APP.wa(a,"defaultValue")))if($APP.n($APP.wD.C(b))){a=function(){var p=new $APP.O(null,2,5,$APP.R,[$APP.wD,$APP.wD.C(b)],null);return $APP.EG.C?$APP.EG.C(p):$APP.EG.call(null,p)}();var e=$APP.tD.C(a);c=$APP.mmc.C($APP.v(Okd.C(c)));var f=$APP.kf(c);c=$APP.G.j(f,$APP.rF);f=$APP.G.j(f,$APP.sF);var g=$APP.n($APP.lI.C(a))?0:2;e=$APP.qF.encode(e);c=$APP.mF.decode(e.slice(0,
|
|||
|
c-g));e=$APP.mF.decode(e.slice(f-g));e=$APP.Uj(d)?[$APP.u.C(c),$APP.u.C(e)].join(""):[$APP.u.C(c),$APP.u.C(d),"\n",$APP.u.C(e)].join("");$APP.WC($APP.ZC(),e);$APP.vS(a,e,null)}else if($APP.n($APP.lf($APP.PV.C(b))))if(a=$APP.PV.C(b),e=$APP.sC(),e=$APP.SE(e),e=$APP.ya(a,e)?$APP.LUa(e,a):null,$APP.n(e)){a=$APP.eH?$APP.eH(e):$APP.gH.call(null,e);var h=null==a;a=$APP.n(a)?a:"";var l=$APP.B.j((0,$APP.Da)(d),(0,$APP.Da)(a));$APP.n(function(){var p=h?$APP.lf(d):h;return $APP.n(p)?p:!l}())&&$APP.rP($APP.sC(),
|
|||
|
e,[(0,$APP.Da)(d),"\n"].join(""),new $APP.m(null,1,[$APP.qP,!0],null))}else $APP.Lmb(a,[(0,$APP.Da)(d),"\n"].join(""),$APP.jf)}},Qkd=function(a){var b=a.getCursor(),c=b.line,d=b.ch;return $APP.Vk.j($APP.Nf.G(function(e){return a.getLineTokens(e)},$APP.F([$APP.qj.C(c)])),$APP.Pf.j(function(e){return e.end<=d},a.getLineTokens(c)))},Skd=function(a){for(var b=new $APP.m(null,2,[S$,$APP.Tf,T$,new $APP.J(null,$APP.Ika,null,1,null)],null),c=b,d=a;;){if($APP.od(d))return c;var e=$APP.A(d),f=e.type,g=e.string,
|
|||
|
h=$APP.A(T$.C(c));a=null==f||$APP.B.j(f,"comment")||$APP.B.j(f,"meta")||$APP.B.j(h,$APP.pw)?c:$APP.B.j(f,"bracket")?$APP.n(function(){var p=$APP.B.j("{",g);return p?$APP.xf(function(){return function(q){return $APP.Wd(new $APP.Vg(null,new $APP.m(null,2,[$APP.zq,null,$APP.xq,null],null),null),q)}}(c,d,p,e,f,g,h,b),T$.C(c)):p}())?$APP.T.F(c,T$,$APP.Fe.j(T$.C(c),Rkd)):$APP.B.j("{",g)?$APP.T.F(c,T$,$APP.Fe.j(T$.C(c),$APP.yq)):$APP.B.j("(",g)?$APP.T.F(c,T$,$APP.Fe.j(T$.C(c),$APP.xq)):$APP.B.j("[",g)?$APP.T.F(c,
|
|||
|
T$,$APP.Fe.j(T$.C(c),$APP.zq)):$APP.B.j(Rkd,h)&&$APP.Wd(new $APP.Vg(null,new $APP.m(null,3,["]",null,")",null,"}",null],null),null),g)?$APP.T.F(c,T$,$APP.nd(T$.C(c))):$APP.B.j("}",g)&&$APP.B.j($APP.yq,h)||$APP.B.j(")",g)&&$APP.B.j($APP.xq,h)||$APP.B.j("]",g)&&$APP.B.j($APP.zq,h)?function(){var p=$APP.nd(T$.C(c));return $APP.B.j($APP.A(p),$APP.bu)?$APP.T.G(c,T$,$APP.nd(p),$APP.F([S$,$APP.nd(S$.C(c))])):$APP.T.F(c,T$,$APP.nd(T$.C(c)))}():$APP.T.F(c,T$,$APP.Fe.j(T$.C(c),$APP.pw)):$APP.B.j(h,$APP.yq)&&
|
|||
|
$APP.B.j(f,"atom")?$APP.T.G(c,T$,$APP.Fe.j(T$.C(c),$APP.bu),$APP.F([S$,$APP.Fe.j(S$.C(c),g)])):$APP.B.j(h,$APP.bu)?$APP.T.G(c,T$,$APP.nd(T$.C(c)),$APP.F([S$,$APP.nd(S$.C(c))])):$APP.B.j(h,$APP.xq)||$APP.B.j(h,$APP.zq)||$APP.B.j(h,Rkd)?c:$APP.T.F(c,T$,$APP.Fe.j(T$.C(c),$APP.pw));var l=$APP.Fc(d);c=a;d=l}},Tkd=function(a){a=Qkd(a);a=Skd(a);var b=$APP.kf(a);a=$APP.G.j(b,S$);b=$APP.G.j(b,T$);b=$APP.A(b);return new $APP.O(null,2,5,$APP.R,[a,b],null)},Ukd=function(a){switch(a instanceof $APP.N?a.ba:null){case "string":return'""';
|
|||
|
case "map-of":return"{}";case "map":return"{}";case "set":return"#{}";case "vector":return"[]";default:return null}},Wkd=function(a,b){$APP.n(function(){var c=$APP.Hb(b);return c?c:b.K?b.K():b.call(null)}())&&setTimeout(function(){return $APP.Hb(a.state.completionActive)?a.showHint({completeSingle:!1}):null},100);return Vkd.Pass},Xkd=function(a,b){if($APP.n(a)){a=$APP.Kj(a);var c=$APP.wa(Vkd,function(){switch(b instanceof $APP.N?b.ba:null){case "name":return"findModeByName";case "ext":return"findModeByExtension";
|
|||
|
case "file-name":return"findModeByFileName";default:return"findModeByName"}}());c=c.C?c.C(a):c.call(null,a);return $APP.n(c)?c.mime:a}return null},fld=function(a){var b=$APP.is.C(a),c=$APP.C.F(b,0,null),d=$APP.C.F(b,1,null),e=$APP.C.F(b,2,null);$APP.C.F(b,3,null);var f=$APP.C.F(b,4,null),g=$APP.C.F(b,5,null);b=function(){var t=$APP.OBb.C($APP.v($APP.tC));return $APP.n(t)?$APP.B.j($APP.wD.C($APP.sD()),$APP.Xy.j(c,new $APP.O(null,2,5,$APP.R,[$APP.fp,$APP.wD],null))):t}();$APP.vC($APP.OBb,!1);e=$APP.G.j(e,
|
|||
|
$APP.aS);e=$APP.n($APP.pbc.C(c))?Xkd(e,$APP.$5b):Xkd(e,$APP.W);var h=$APP.Wd(new $APP.Vg(null,new $APP.m(null,4,["clojure",null,"lisp",null,"edn",null,"scheme",null],null),null),e),l=function(){var t=$APP.pbc.C(c);return $APP.n(t)?$APP.Yj($APP.PV.C(c),"config.edn"):t}(),p=$APP.Ma(d);f=new $APP.m(null,5,[$APP.pE,["solarized ",$APP.u.C(f)].join(""),Ykd,!0,$APP.Hoc,!0,Zkd,h,$kd,!0],null);var q=$APP.Nl.G($APP.F([f,$APP.G.F($APP.rx(),$APP.vlc,$APP.jf),new $APP.m(null,3,[$APP.Lo,e,$APP.hrc,-1,ald,$APP.Nl.G($APP.F([new $APP.m(null,
|
|||
|
1,["Esc",function(t){t.escPressed=!0;Pkd();t=$APP.wD.C(c);if($APP.n(t)){var y=new $APP.O(null,2,5,$APP.R,[$APP.wD,t],null);y=$APP.EG.C?$APP.EG.C(y):$APP.EG.call(null,y);return $APP.tR?$APP.tR(y,$APP.ho,t):$APP.uR.call(null,y,$APP.ho,t)}return null}],null),$APP.n(l)?new $APP.m(null,2,["':'",Wkd,"Ctrl-Space","autocomplete"],null):null]))],null),new $APP.m(null,2,[$APP.UJc,!0,bld,-1],null),$APP.n(l)?new $APP.m(null,1,[cld,$APP.jf],null):null,g])),r=$APP.n(p)?function(){var t=$APP.Gi(q);return dld.j?
|
|||
|
dld.j(p,t):dld.call(null,p,t)}():null;if($APP.n(r)){f=igd(a);g=r.getWrapperElement();f["codemirror-instance"]=r;if($APP.B.j(e,"calc"))r.on("change",function(){var t=r.getValue();return $APP.Ef(eld.C(a),Nkd(t))});r.on("blur",function(t,y){$APP.n(y)&&$APP.dx(y);($APP.B.j($APP.mq,$APP.LC())||$APP.Hb($APP.wa(t,"escPressed")))&&Pkd();$APP.vC($APP.j3,!1);return $APP.vC($APP.TJc,null)});r.on("focus",function(){$APP.vC($APP.j3,!0);return $APP.vC($APP.TJc,new $APP.m(null,3,[$APP.Jsc,r,$APP.uC,c,$APP.CT,a],
|
|||
|
null))});g.addEventListener("keydown",function(t){var y=t.code,z=t.ctrlKey;if($APP.n($APP.n(z)?z:t.metaKey))switch(y){case "BracketLeft":return $APP.dx(t);case "BracketRight":return $APP.dx(t);default:return null}else return null});g.addEventListener("mousedown",function(t){$APP.dx(t);$APP.kSa();t=$APP.wD.C(c);if($APP.n(t)){t=$APP.sg.j;var y=$APP.jf;var z=$APP.wD.C(c);z=$APP.iH.C?$APP.iH.C(z):$APP.iH.call(null,z);t=t.call($APP.sg,y,z)}return $APP.n(t)?$APP.NTa(d,r.getValue(),t,null,!1):null});g.addEventListener("touchstart",
|
|||
|
function(t){return t.stopPropagation()});r.save();r.refresh();$APP.n(b)&&r.focus()}return r},$gd=null,H9={},M9={},Fgd=!1,O9=!1,Tgd={},I9=null,tgd=null;hgd.prototype.Gj=function(){return this.name};hgd.prototype.toString=function(){return $APP.u.C(this.name)};hgd.prototype.na=function(a,b){return b instanceof hgd?$APP.B.j(this.name,b.name):!1};hgd.prototype.qa=function(){return $APP.yc(this.name)};
|
|||
|
var gld=new $APP.N(null,"factor","factor",-2103172748),bld=new $APP.N(null,"cursorBlinkRate","cursorBlinkRate",1916335188),j$=new $APP.N(null,"plus","plus",211540661),Rid=new $APP.N(null,"node-builder","node-builder",-1956562605),Ekd=new $APP.N(null,"places","places",1043491706),hld=new $APP.N(null,"dec-val","dec-val",-1263870894),gjd=new $APP.N(null,"Epsilon","Epsilon",133418452),ild=new $APP.N(null,"hide-nt","hide-nt",-228813845),vkd=new $APP.N(null,"format-norm","format-norm",1732180794),jld=new $APP.N(null,
|
|||
|
"concatenation","concatenation",-951369614),kld=new $APP.N(null,"CHAR","CHAR",-1280338086),ejd=new $APP.N(null,"lookahead","lookahead",-400102393),J$=new $APP.N(null,"segment","segment",-964921196),lld=new $APP.N(null,"hide-tag-rule","hide-tag-rule",150267589),y$=new $APP.N(null,"next-stack","next-stack",-481930728),mld=new $APP.N(null,"VCHAR","VCHAR",1962437706),skd=new $APP.N(null,"mixed-number","mixed-number",1075063896),nld=new $APP.N(null,"hex-char","hex-char",764443568),A$=new $APP.N(null,"full-listeners",
|
|||
|
"full-listeners",50621827),Jjd=new $APP.N(null,"memory","memory",-1449401430),ukd=new $APP.N(null,"toassign","toassign",508353274),Phd=new $APP.N(null,"look","look",-539441433),Ljd=new $APP.N(null,"enlive","enlive",1679023921),old=new $APP.N(null,"bin-char","bin-char",-1662780697),pld=new $APP.N(null,"hex-val","hex-val",1267737401),k$=new $APP.N(null,"star","star",279424429),kkd=new $APP.N(null,"digits","digits",-1134635061),nkd=new $APP.N(null,"format-sci","format-sci",-2145290447),qld=new $APP.w(null,
|
|||
|
"pending-forms","pending-forms",-1225172071,null),M$=new $APP.N(null,"output-format","output-format",-1826382676),rld=new $APP.N(null,"ALPHA","ALPHA",-1463859144),zkd=new $APP.N(null,"log","log",-1595516004),sld=new $APP.N(null,"low","low",-1601362409),tld=new $APP.N(null,"trace?","trace?",1730690679),c$=new $APP.N(null,"grammar","grammar",1881328267),uld=new $APP.N(null,"displayText","displayText",45566701),vld=new $APP.N(null,"div.extensions__code-calc-output-line.CodeMirror-line","div.extensions__code-calc-output-line.CodeMirror-line",
|
|||
|
-293396137),Tid=new $APP.N("instaparse","failure","instaparse/failure",1422918607),Bkd=new $APP.N(null,"max-denominator","max-denominator",1539997685),wld=new $APP.N(null,"HTAB","HTAB",11392612),Dkd=new $APP.w(null,"NaN'","NaN'",-1496513810,null),cld=new $APP.N(null,"hintOptions","hintOptions",-1460249832),fkd=new $APP.N(null,"sqrt","sqrt",-1270051929),B$=new $APP.N(null,"full-results","full-results",-1500225407),ald=new $APP.N(null,"extraKeys","extraKeys",1380834830),okd=new $APP.N(null,"mul","mul",
|
|||
|
-354626062),xld=new $APP.N(null,"rulename","rulename",948914160),eld=new $APP.N(null,"calc-atom","calc-atom",202304533),yld=new $APP.N(null,"alt-or-ord","alt-or-ord",310249425),zld=new $APP.N(null,"rulename-left","rulename-left",-1824251564),Mid=new $APP.N("instaparse.gll","start-index","instaparse.gll/start-index",404653620),lkd=new $APP.N(null,"scientific","scientific",316285837),$kd=new $APP.N(null,"styleActiveLine","styleActiveLine",-677594147),b$=new $APP.N(null,"reduction-type","reduction-type",
|
|||
|
-488293450),ikd=new $APP.N(null,"mod","mod",-130487320),Ald=new $APP.N(null,"DIGIT","DIGIT",341251338),fjd=new $APP.N(null,"negative-lookahead","negative-lookahead",874382387),Bld=new $APP.N(null,"epsilon","epsilon",-730158570),Cld=new $APP.w(null,"cljs.tools.reader","cljs.tools.reader",-831293977,null),Rhd=new $APP.N(null,"neg","neg",1800032960),Rkd=new $APP.N(null,"ignore-map","ignore-map",-1199019590),Zkd=new $APP.N(null,"matchBrackets","matchBrackets",1256448936),Dld=new $APP.N(null,"NUM","NUM",
|
|||
|
-218662260),Akd=new $APP.N(null,"improper","improper",-499495828),Eld=new $APP.N(null,"rulename-right","rulename-right",1125609193),gkd=new $APP.N(null,"factorial","factorial",-1512755480),Fld=new $APP.N(null,"CRLF","CRLF",11418756),Gld=new $APP.N(null,"standard","standard",-1769206695),Hld=new $APP.N(null,"DQUOTE","DQUOTE",-571169808),Ild=new $APP.N(null,"rules-or-parser","rules-or-parser",-314380386),whd=new $APP.N(null,"NOT","NOT",-1689245341),Jld=new $APP.N(null,"div.extensions__code-lang","div.extensions__code-lang",
|
|||
|
1159233563),C$=new $APP.N(null,"results","results",-1134170113),Kld=new $APP.N(null,"HEXDIG","HEXDIG",-200221072),thd=new $APP.N(null,"ord","ord",1142548323),Lld=new $APP.N(null,"OCTET","OCTET",-743420682),Nid=new $APP.N("instaparse.gll","end-index","instaparse.gll/end-index",-1851404441),Ykd=new $APP.N(null,"autoCloseBrackets","autoCloseBrackets",1157493311),jkd=new $APP.N(null,"pow","pow",-1444004567),Mld=new $APP.N(null,"CR","CR",-1654295403),Nld=new $APP.w(null,"read-string*","read-string*",1046768315,
|
|||
|
null),Old=new $APP.N(null,"editor-atom","editor-atom",1409591060),rkd=new $APP.N(null,"assignment","assignment",1330426519),Pld=new $APP.N(null,"unhide","unhide",-413983695),pkd=new $APP.N(null,"abs","abs",-246026477),xhd=new $APP.N(null,"char-range","char-range",1443391389),Khd=new $APP.N(null,"rep","rep",-1226820564),Qld=new $APP.N(null,"char-val","char-val",1408617933),Okd=new $APP.N(null,"code-options","code-options",1113362965),T$=new $APP.N(null,"state-stack","state-stack",489104326),Rld=new $APP.N(null,
|
|||
|
"inside-comment","inside-comment",1258069708),S$=new $APP.N(null,"current-config-path","current-config-path",387759454),Sld=new $APP.N(null,"defined-as","defined-as",-474679152),e$=new $APP.N(null,"expecting","expecting",-57706705),Tld=new $APP.N(null,"rule-separator","rule-separator",1539322213),qkd=new $APP.N(null,"sin","sin",80907862),Vjd=new $APP.N(null,"ebnf","ebnf",31967825),Ajd=new $APP.N(null,"rulelist","rulelist",-1871218473),Fkd=new $APP.N(null,"precision","precision",-1175707478),Mhd=new $APP.N(null,
|
|||
|
"string-ci","string-ci",374631805),Uld=new $APP.N(null,"bin-val","bin-val",1705209105),Vld=new $APP.N(null,"dec-char","dec-char",-646625154),ekd=new $APP.N(null,"tan","tan",1273609893),G$=new $APP.N(null,"negative-listeners","negative-listeners",55241092),Wld=new $APP.N(null,"BIT","BIT",-1854474115),Ujd=new $APP.N(null,"input-format","input-format",-422703481),$9=new $APP.N(null,"parsers","parsers",-804353827),Z9=new $APP.N(null,"parser2","parser2",1013754688),V9=new $APP.N(null,"parser1","parser1",
|
|||
|
-439601422),djd=new $APP.N(null,"end-of-string","end-of-string",1567354241),xkd=new $APP.N(null,"negterm","negterm",46693211),Wjd=new $APP.N(null,"auto-whitespace","auto-whitespace",741152317),tkd=new $APP.N(null,"format-impf","format-impf",2004346266),Xld=new $APP.N(null,"high","high",2027297808),dkd=new $APP.N(null,"cos","cos",1201758276),Yld=new $APP.N(null,"partial","partial",241141745),Zld=new $APP.N(null,"LWSP","LWSP",782998598),Gid=new $APP.N(null,"msg-cache","msg-cache",-733775070),a$=new $APP.N(null,
|
|||
|
"regexp","regexp",-541372782),$ld=new $APP.w("cljs.tools.reader","read-string*","cljs.tools.reader/read-string*",1492661621,null),amd=new $APP.N(null,"hide-tag","hide-tag",1347642501),bmd=new $APP.N(null,"CTL","CTL",-9995632),ykd=new $APP.N(null,"acos","acos",-1286789764),n$=new $APP.N(null,"nt","nt",-835425781),T9=new $APP.N(null,"lo","lo",-931799889),bkd=new $APP.N(null,"atan","atan",1627885634),hkd=new $APP.N(null,"ln","ln",1974894440),d$=new $APP.N(null,"start-production","start-production",687546537),
|
|||
|
cmd=new $APP.N(null,"num-val","num-val",1497434478),U$=new $APP.N(null,"alternation","alternation",-1162147630),dmd=new $APP.N(null,"div.extensions__code-calc.pr-2","div.extensions__code-calc.pr-2",680901470),V$=new $APP.N(null,"opt-whitespace","opt-whitespace",1115207927),Qid=new $APP.N(null,"fail-index","fail-index",248726923),mkd=new $APP.N(null,"asin","asin",1750305199),x$=new $APP.N(null,"generation","generation",-2132542044),emd=new $APP.N(null,"LF","LF",1177033158),wkd=new $APP.N(null,"format-fix",
|
|||
|
"format-fix",561277115),ckd=new $APP.N(null,"format-frac","format-frac",-765976701),fmd=new $APP.N(null,"SP","SP",124290284),Ijd=new $APP.N(null,"optimize","optimize",-1912349448),gmd=new $APP.N(null,"WSP","WSP",-1046948716),hmd=new $APP.N(null,"paren","paren",-294107600),U9=new $APP.N(null,"hi","hi",-1821422114);$APP.bda("code-editor");var Vkd=$APP.om(454);$APP.om(455);$APP.om(456);$APP.om(457);$APP.om(458);$APP.om(459);$APP.om(460);$APP.om(461);$APP.om(462);$APP.om(463);$APP.om(464);$APP.om(465);$APP.om(466);$APP.om(467);$APP.om(468);$APP.om(469);$APP.om(470);$APP.om(471);$APP.om(472);$APP.om(473);$APP.om(474);$APP.om(475);$APP.om(476);$APP.om(477);$APP.om(478);$APP.om(480);$APP.om(482);$APP.om(483);$APP.om(484);$APP.om(485);$APP.om(486);$APP.om(487);$APP.om(488);$APP.om(489);$APP.om(490);$APP.om(491);$APP.om(492);$APP.om(493);$APP.om(494);$APP.om(495);$APP.om(496);$APP.om(497);$APP.om(498);$APP.om(499);$APP.om(500);$APP.om(501);$APP.om(502);$APP.om(504);$APP.om(505);$APP.om(506);$APP.om(507);$APP.om(508);$APP.om(509);$APP.om(510);$APP.om(511);$APP.om(512);$APP.om(513);$APP.om(514);$APP.om(515);$APP.om(516);$APP.om(517);$APP.om(518);$APP.om(519);$APP.om(520);$APP.om(521);$APP.om(522);$APP.om(523);$APP.om(524);$APP.om(525);$APP.om(526);$APP.om(527);$APP.om(528);$APP.om(529);$APP.om(530);$APP.om(531);$APP.om(532);$APP.om(533);$APP.om(534);$APP.om(535);$APP.om(536);$APP.om(537);$APP.om(538);$APP.om(539);$APP.om(540);$APP.om(541);$APP.om(542);$APP.om(543);$APP.om(544);$APP.om(545);$APP.om(546);$APP.om(547);$APP.om(548);$APP.om(549);$APP.om(550);$APP.om(551);$APP.om(552);$APP.om(553);$APP.om(554);$APP.om(555);$APP.om(556);$APP.om(557);$APP.om(558);$APP.om(559);$APP.om(560);$APP.om(561);$APP.om(562);$APP.om(563);$APP.om(564);$APP.om(565);$APP.om(566);$APP.om(567);$APP.om(568);$APP.om(569);$APP.om(570);$APP.om(571);$APP.om(572);$APP.om(573);$APP.om(574);$APP.om(575);$APP.om(576);$APP.om(577);$APP.om(578);$APP.om(579);$APP.om(580);$APP.om(581);$APP.om(582);$APP.om(583);var R$=$APP.om(584);$APP.k=ghd.prototype;$APP.k.toString=function(){return $APP.vc($APP.x(this))};$APP.k.ua=function(a,b){return this.v.ua(null,b)};$APP.k.da=function(a,b,c){return this.v.da(null,b,c)};$APP.k.ha=function(){return $APP.ld(this.v)};$APP.k.Ab=function(){return $APP.Gc($APP.x(this))};$APP.k.ra=function(){return this.ga};$APP.k.qa=function(){return this.zh};$APP.k.na=function(a,b){return $APP.B.j(this.zh,$APP.yc(b))&&$APP.B.j(this.ga,$APP.Vc(b))&&($APP.B.j(this.ga,0)||$APP.B.j($APP.x(this),b))};
|
|||
|
$APP.k.mb=function(){return $APP.kd(g$,$APP.ld(this))};$APP.k.Jb=function(){return $APP.A($APP.x(this))};$APP.k.Mb=function(){return $APP.Fc($APP.x(this))};$APP.k.sa=function(){if(!$APP.n(this.Ql)){if(this.dirty){var a=this.v;a=0<$APP.Vc(a)?fhd(a,dhd(a,new $APP.O(null,1,5,$APP.R,[0],null))):null}else a=$APP.x(this.v);this.Ql=a}return this.Ql};$APP.k.ia=function(a,b){return new ghd($APP.kd(this.v,b),this.Zn,this.zh,this.ga,this.dirty)};$APP.k.ta=function(a,b){return $APP.Ie(b,this)};
|
|||
|
$APP.k.ci=function(a,b){if(null==b)return this;if($APP.n(Q9.C?Q9.C(b):Q9.call(null,b))){if(0===this.ga)return b;if(32>=$APP.Vc(b)){a=hhd.j?hhd.j(this,b):hhd.call(null,this,b);var c=this.ga+$APP.Vc(b),d=$APP.sg.j(this.v,b),e=this.dirty;return new ghd(d,a,$APP.Jc(a,c),c,e?e:b.dirty)}a=hhd.j?hhd.j(this,b):hhd.call(null,this,b);c=this.ga+$APP.Vc(b);return new ghd($APP.Fe.j(this.v,b),a,$APP.Jc(a,c),c,!0)}a=(0,$APP.wc)(31,this.Zn)+$APP.yc(b);c=this.ga+1;return new ghd($APP.Fe.j(this.v,b),a,$APP.Jc(a,c),
|
|||
|
c,this.dirty)};$APP.k.kb=$APP.xc;$APP.k.pa=function(a,b,c){return $APP.kc($APP.x(this),b,c)};var g$=ihd($APP.Tf),khd=function khd(a,b){for(;;)if($APP.x(b)){var d=$APP.A(b);Q9(d)?(a=khd.j?khd.j(a,d):khd.call(null,a,d),b=$APP.Gc(b)):(a=$APP.Sf.j(a,d),b=$APP.Gc(b))}else return a};$APP.k=jhd.prototype;$APP.k.toString=function(){return $APP.vc(R9(this))};$APP.k.ua=function(a,b){return R9(this).ua(null,b)};$APP.k.da=function(a,b,c){return R9(this).da(null,b,c)};
|
|||
|
$APP.k.Aa=function(a,b,c){return R9(this).Aa(null,b,c)};$APP.k.oa=function(a,b){return R9(this).oa(null,b)};$APP.k.tb=function(a,b,c){return R9(this).tb(null,b,c)};$APP.k.me=function(a,b,c){return R9(this).me(null,b,c)};$APP.k.ha=function(){return $APP.n($APP.v(this.flat))?$APP.ld($APP.v(this.flat)):$APP.ld($APP.v(this.v))};$APP.k.ra=function(){return this.ga};$APP.k.uf=function(){return R9(this).uf(null)};$APP.k.vf=function(){return R9(this).vf(null)};
|
|||
|
$APP.k.xe=function(){return 0<this.ga?$APP.gc(R9(this)):null};$APP.k.qa=function(){return this.zh};$APP.k.na=function(a,b){return $APP.B.j(this.zh,$APP.yc(b))&&$APP.B.j(this.ga,$APP.Vc(b))&&$APP.B.j(R9(this),b)};$APP.k.mb=function(){return $APP.kd($APP.Tf,$APP.ld(this))};$APP.k.ka=function(a,b,c){return $APP.T.F(R9(this),b,c)};$APP.k.za=function(a,b){return R9(this).za(null,b)};$APP.k.sa=function(){return $APP.x(R9(this))};
|
|||
|
$APP.k.ia=function(a,b){return $APP.n($APP.v(this.flat))?new jhd($APP.Hh.C($APP.v(this.v)),this.zh,this.ga,$APP.Hh.C($APP.kd($APP.v(this.flat),b))):new jhd($APP.Hh.C($APP.kd($APP.v(this.v),b)),this.zh,this.ga,$APP.Hh.C($APP.v(this.flat)))};$APP.k.ta=function(a,b){return $APP.Fe.j(R9(this),b)};
|
|||
|
$APP.k.call=function(a){switch(arguments.length-1){case 1:return this.C(arguments[1]);case 2:return this.j(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.u.C(arguments.length-1)].join(""));}};$APP.k.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Rb(b)))};$APP.k.C=function(a){return R9(this).j(null,a)};$APP.k.j=function(a,b){return R9(this).F(null,a,b)};$APP.k.we=function(a,b){return $APP.cga(R9(this),b)};$APP.k.kb=$APP.xc;
|
|||
|
$APP.k.pa=function(a,b,c){return $APP.kc(R9(this),b,c)};var shd=$APP.il.j(nhd,new $APP.Vg(null,new $APP.m(null,3,[$APP.Au,null,thd,null,$APP.Ev,null],null),null));var Ehd=new $APP.m(null,1,[b$,$APP.wu],null),h$=new $APP.m(null,2,[$APP.a5,function(a){return new $APP.m(null,2,[b$,$APP.a5,$APP.bu,a],null)},Ljd,function(a){return new $APP.m(null,2,[b$,Ljd,$APP.bu,a],null)}],null),imd=new $APP.m(null,2,[Ljd,function(a,b){return new $APP.m(null,2,[$APP.Lq,a,$APP.Sr,new $APP.J(null,b,null,1,null)],null)},$APP.a5,function(a,b){return new $APP.O(null,2,5,$APP.R,[a,b],null)}],null);var i$=new $APP.m(null,1,[$APP.Lq,Bld],null),N$=function N$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;c=0<c.length?new $APP.Cc(c.slice(0),0,null):null;return N$.G(c)};N$.G=function(a){return $APP.wf($APP.il.j($APP.B,i$),a)?i$:Dhd(a)?$APP.A(a):new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,a],null)};N$.T=0;N$.aa=function(a){return this.G($APP.x(a))};
|
|||
|
var W$=function W$(a){switch(arguments.length){case 0:return W$.K();default:for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;c=new $APP.Cc(c.slice(1),0,null);return W$.G(arguments[0],c)}};W$.K=function(){return i$};W$.G=function(a,b){b=$APP.B.j(a,i$)?$APP.Gm.j($APP.Xg([i$]),b):b;$APP.x(b)&&(b=$APP.zf.j(W$,b),a=new $APP.m(null,3,[$APP.Lq,thd,V9,a,Z9,b],null));return a};W$.aa=function(a){var b=$APP.A(a);a=$APP.Gc(a);return this.G(b,a)};W$.T=1;
|
|||
|
var s$=function s$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;c=0<c.length?new $APP.Cc(c.slice(0),0,null):null;return s$.G(c)};s$.G=function(a){if($APP.wf($APP.il.j($APP.B,i$),a))return i$;a=$APP.Gm.j($APP.Xg([i$]),a);return Dhd(a)?$APP.A(a):new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,a],null)};s$.T=0;s$.aa=function(a){return this.G($APP.x(a))};
|
|||
|
var q$=function q$(a){var c=$APP.n($APP.c6.C(a))?$APP.jj.j(a,$APP.c6):a;return $APP.n($APP.N1.C(c))?$APP.T.F(c,$APP.N1,function(){var d=$APP.N1.C(c);return q$.C?q$.C(d):q$.call(null,d)}()):$APP.n($9.C(c))?$APP.T.F(c,$9,$APP.vh.j(q$,$9.C(c))):$APP.B.j($APP.Lq.C(c),thd)?$APP.T.G(c,V9,function(){var d=V9.C(c);return q$.C?q$.C(d):q$.call(null,d)}(),$APP.F([Z9,function(){var d=Z9.C(c);return q$.C?q$.C(d):q$.call(null,d)}()])):c},r$=function r$(a,b){var d=$APP.Lq.C(a);d=d instanceof $APP.N?d.ba:null;switch(d){case "nt":case "epsilon":return a;
|
|||
|
case "opt":case "plus":case "star":case "rep":case "look":case "neg":return $APP.en.R(a,new $APP.O(null,1,5,$APP.R,[$APP.N1],null),r$,b);case "alt":case "cat":return $APP.T.F(a,$9,$APP.vh.j(function(e){return r$.j?r$.j(e,b):r$.call(null,e,b)},$9.C(a)));case "ord":return $APP.T.G(a,V9,function(){var e=V9.C(a);return r$.j?r$.j(e,b):r$.call(null,e,b)}(),$APP.F([Z9,function(){var e=Z9.C(a);return r$.j?r$.j(e,b):r$.call(null,e,b)}()]));case "string":case "string-ci":case "regexp":return $APP.n($APP.d4.C(a))?
|
|||
|
$APP.T.F(s$.G($APP.F([b,$APP.jj.j(a,$APP.d4)])),$APP.d4,$APP.d4.C(a)):s$.G($APP.F([b,a]));default:throw Error(["No matching clause: ",$APP.u.C(d)].join(""));}};/*
|
|||
|
|
|||
|
Copyright The Closure Library Authors.
|
|||
|
SPDX-License-Identifier: Apache-2.0
|
|||
|
*/
|
|||
|
$APP.k=t$.prototype;$APP.k.ua=function(a,b){return this.da(null,b,null)};$APP.k.da=function(a,b,c){switch(b instanceof $APP.N?b.ba:null){case "index":return this.index;case "reason":return this.reason;default:return $APP.G.F(this.I,b,c)}};$APP.k.Aa=function(a,b,c){return $APP.ee.F(function(d,e){var f=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);return b.F?b.F(d,f,e):b.call(null,d,f,e)},c,this)};
|
|||
|
$APP.k.pa=function(a,b,c){return $APP.sh(b,function(d){return $APP.sh(b,$APP.uh,""," ","",c,d)},"#instaparse.gll.Failure{",", ","}",c,$APP.Vk.j(new $APP.O(null,2,5,$APP.R,[new $APP.O(null,2,5,$APP.R,[$APP.my,this.index],null),new $APP.O(null,2,5,$APP.R,[$APP.Bk,this.reason],null)],null),this.I))};$APP.k.ya=function(){return new $APP.ng(this,2,new $APP.O(null,2,5,$APP.R,[$APP.my,$APP.Bk],null),$APP.n(this.I)?$APP.tc(this.I):$APP.sf())};$APP.k.ha=function(){return this.J};
|
|||
|
$APP.k.wa=function(){return new t$(this.index,this.reason,this.J,this.I,this.O)};$APP.k.ra=function(){return 2+$APP.Vc(this.I)};$APP.k.qa=function(){var a=this.O;return null!=a?a:this.O=a=-1140991288^$APP.Lc(this)};$APP.k.na=function(a,b){return null!=b&&this.constructor===b.constructor&&$APP.B.j(this.index,b.index)&&$APP.B.j(this.reason,b.reason)&&$APP.B.j(this.I,b.I)};
|
|||
|
$APP.k.Ba=function(a,b){return $APP.Wd(new $APP.Vg(null,new $APP.m(null,2,[$APP.my,null,$APP.Bk,null],null),null),b)?$APP.jj.j($APP.fc($APP.sg.j($APP.jf,this),this.J),b):new t$(this.index,this.reason,this.J,$APP.lf($APP.jj.j(this.I,b)),null)};$APP.k.za=function(a,b){switch(b instanceof $APP.N?b.ba:null){case "index":case "reason":return!0;default:return $APP.Wd(this.I,b)}};
|
|||
|
$APP.k.ka=function(a,b,c){return $APP.n($APP.Ke.j?$APP.Ke.j($APP.my,b):$APP.Ke.call(null,$APP.my,b))?new t$(c,this.reason,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.Bk,b):$APP.Ke.call(null,$APP.Bk,b))?new t$(this.index,c,this.J,this.I,null):new t$(this.index,this.reason,this.J,$APP.T.F(this.I,b,c),null)};$APP.k.sa=function(){return $APP.x($APP.Vk.j(new $APP.O(null,2,5,$APP.R,[new $APP.Xd($APP.my,this.index,null),new $APP.Xd($APP.Bk,this.reason,null)],null),this.I))};
|
|||
|
$APP.k.ia=function(a,b){return new t$(this.index,this.reason,b,this.I,this.O)};$APP.k.ta=function(a,b){return $APP.xd(b)?this.ka(null,$APP.hd(b,0),$APP.hd(b,1)):$APP.ee.F($APP.Tb,this,b)};$APP.k.kb=$APP.xc;$APP.k.pa=function(a,b){var c=this;return $APP.ic(b,function(){var d=new $APP.rb,e=$APP.Bb,f=$APP.Cb;$APP.Bb=!0;$APP.Cb=function(g){return d.append(g)};try{zhd(c)}finally{$APP.Cb=f,$APP.Bb=e}return $APP.u.C(d)}())};var Yjd=$APP.Pb(new t$(null,null,null,null,null));$APP.k=u$.prototype;
|
|||
|
$APP.k.ua=function(a,b){return this.da(null,b,null)};
|
|||
|
$APP.k.da=function(a,b,c){switch(b instanceof $APP.N?b.ba:null){case "grammar":return this.Lb;case "text":return this.text;case "segment":return this.Fd;case "fail-index":return this.gd;case "node-builder":return this.zd;case "stack":return this.stack;case "next-stack":return this.yd;case "generation":return this.generation;case "negative-listeners":return this.xd;case "msg-cache":return this.vd;case "nodes":return this.nodes;case "success":return this.oc;case "failure":return this.hd;case "trace?":return this.Gd;
|
|||
|
default:return $APP.G.F(this.I,b,c)}};$APP.k.Aa=function(a,b,c){return $APP.ee.F(function(d,e){var f=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);return b.F?b.F(d,f,e):b.call(null,d,f,e)},c,this)};
|
|||
|
$APP.k.pa=function(a,b,c){return $APP.sh(b,function(d){return $APP.sh(b,$APP.uh,""," ","",c,d)},"#instaparse.gll.Tramp{",", ","}",c,$APP.Vk.j(new $APP.O(null,14,5,$APP.R,[new $APP.O(null,2,5,$APP.R,[c$,this.Lb],null),new $APP.O(null,2,5,$APP.R,[$APP.Zv,this.text],null),new $APP.O(null,2,5,$APP.R,[J$,this.Fd],null),new $APP.O(null,2,5,$APP.R,[Qid,this.gd],null),new $APP.O(null,2,5,$APP.R,[Rid,this.zd],null),new $APP.O(null,2,5,$APP.R,[$APP.$4,this.stack],null),new $APP.O(null,2,5,$APP.R,[y$,this.yd],
|
|||
|
null),new $APP.O(null,2,5,$APP.R,[x$,this.generation],null),new $APP.O(null,2,5,$APP.R,[G$,this.xd],null),new $APP.O(null,2,5,$APP.R,[Gid,this.vd],null),new $APP.O(null,2,5,$APP.R,[$APP.cw,this.nodes],null),new $APP.O(null,2,5,$APP.R,[$APP.jm,this.oc],null),new $APP.O(null,2,5,$APP.R,[$APP.XO,this.hd],null),new $APP.O(null,2,5,$APP.R,[tld,this.Gd],null)],null),this.I))};
|
|||
|
$APP.k.ya=function(){return new $APP.ng(this,14,new $APP.O(null,14,5,$APP.R,[c$,$APP.Zv,J$,Qid,Rid,$APP.$4,y$,x$,G$,Gid,$APP.cw,$APP.jm,$APP.XO,tld],null),$APP.n(this.I)?$APP.tc(this.I):$APP.sf())};$APP.k.ha=function(){return this.J};$APP.k.wa=function(){return new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,this.O)};$APP.k.ra=function(){return 14+$APP.Vc(this.I)};
|
|||
|
$APP.k.qa=function(){var a=this.O;return null!=a?a:this.O=a=166878148^$APP.Lc(this)};
|
|||
|
$APP.k.na=function(a,b){return null!=b&&this.constructor===b.constructor&&$APP.B.j(this.Lb,b.Lb)&&$APP.B.j(this.text,b.text)&&$APP.B.j(this.Fd,b.Fd)&&$APP.B.j(this.gd,b.gd)&&$APP.B.j(this.zd,b.zd)&&$APP.B.j(this.stack,b.stack)&&$APP.B.j(this.yd,b.yd)&&$APP.B.j(this.generation,b.generation)&&$APP.B.j(this.xd,b.xd)&&$APP.B.j(this.vd,b.vd)&&$APP.B.j(this.nodes,b.nodes)&&$APP.B.j(this.oc,b.oc)&&$APP.B.j(this.hd,b.hd)&&$APP.B.j(this.Gd,b.Gd)&&$APP.B.j(this.I,b.I)};
|
|||
|
$APP.k.Ba=function(a,b){return $APP.Wd(new $APP.Vg(null,new $APP.m(null,14,[Gid,null,G$,null,x$,null,$APP.XO,null,Qid,null,c$,null,$APP.jm,null,$APP.cw,null,Rid,null,J$,null,$APP.$4,null,tld,null,y$,null,$APP.Zv,null],null),null),b)?$APP.jj.j($APP.fc($APP.sg.j($APP.jf,this),this.J),b):new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,$APP.lf($APP.jj.j(this.I,b)),null)};
|
|||
|
$APP.k.za=function(a,b){switch(b instanceof $APP.N?b.ba:null){case "grammar":case "text":case "segment":case "fail-index":case "node-builder":case "stack":case "next-stack":case "generation":case "negative-listeners":case "msg-cache":case "nodes":case "success":case "failure":case "trace?":return!0;default:return $APP.Wd(this.I,b)}};
|
|||
|
$APP.k.ka=function(a,b,c){return $APP.n($APP.Ke.j?$APP.Ke.j(c$,b):$APP.Ke.call(null,c$,b))?new u$(c,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.Zv,b):$APP.Ke.call(null,$APP.Zv,b))?new u$(this.Lb,c,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(J$,b):$APP.Ke.call(null,
|
|||
|
J$,b))?new u$(this.Lb,this.text,c,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(Qid,b):$APP.Ke.call(null,Qid,b))?new u$(this.Lb,this.text,this.Fd,c,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(Rid,b):$APP.Ke.call(null,Rid,b))?new u$(this.Lb,this.text,this.Fd,this.gd,c,this.stack,this.yd,this.generation,
|
|||
|
this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.$4,b):$APP.Ke.call(null,$APP.$4,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,c,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(y$,b):$APP.Ke.call(null,y$,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,c,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?
|
|||
|
$APP.Ke.j(x$,b):$APP.Ke.call(null,x$,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,c,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(G$,b):$APP.Ke.call(null,G$,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,c,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(Gid,b):$APP.Ke.call(null,Gid,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,
|
|||
|
this.yd,this.generation,this.xd,c,this.nodes,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.cw,b):$APP.Ke.call(null,$APP.cw,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,c,this.oc,this.hd,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.jm,b):$APP.Ke.call(null,$APP.jm,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,c,this.hd,this.Gd,this.J,
|
|||
|
this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j($APP.XO,b):$APP.Ke.call(null,$APP.XO,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,c,this.Gd,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(tld,b):$APP.Ke.call(null,tld,b))?new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,c,this.J,this.I,null):new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,
|
|||
|
this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,this.J,$APP.T.F(this.I,b,c),null)};
|
|||
|
$APP.k.sa=function(){return $APP.x($APP.Vk.j(new $APP.O(null,14,5,$APP.R,[new $APP.Xd(c$,this.Lb,null),new $APP.Xd($APP.Zv,this.text,null),new $APP.Xd(J$,this.Fd,null),new $APP.Xd(Qid,this.gd,null),new $APP.Xd(Rid,this.zd,null),new $APP.Xd($APP.$4,this.stack,null),new $APP.Xd(y$,this.yd,null),new $APP.Xd(x$,this.generation,null),new $APP.Xd(G$,this.xd,null),new $APP.Xd(Gid,this.vd,null),new $APP.Xd($APP.cw,this.nodes,null),new $APP.Xd($APP.jm,this.oc,null),new $APP.Xd($APP.XO,this.hd,null),new $APP.Xd(tld,
|
|||
|
this.Gd,null)],null),this.I))};$APP.k.ia=function(a,b){return new u$(this.Lb,this.text,this.Fd,this.gd,this.zd,this.stack,this.yd,this.generation,this.xd,this.vd,this.nodes,this.oc,this.hd,this.Gd,b,this.I,this.O)};$APP.k.ta=function(a,b){return $APP.xd(b)?this.ka(null,$APP.hd(b,0),$APP.hd(b,1)):$APP.ee.F($APP.Tb,this,b)};$APP.k=w$.prototype;$APP.k.ua=function(a,b){return this.da(null,b,null)};
|
|||
|
$APP.k.da=function(a,b,c){switch(b instanceof $APP.N?b.ba:null){case "listeners":return this.listeners;case "full-listeners":return this.Uf;case "results":return this.results;case "full-results":return this.Vf;default:return $APP.G.F(this.I,b,c)}};$APP.k.Aa=function(a,b,c){return $APP.ee.F(function(d,e){var f=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);return b.F?b.F(d,f,e):b.call(null,d,f,e)},c,this)};
|
|||
|
$APP.k.pa=function(a,b,c){return $APP.sh(b,function(d){return $APP.sh(b,$APP.uh,""," ","",c,d)},"#instaparse.gll.Node{",", ","}",c,$APP.Vk.j(new $APP.O(null,4,5,$APP.R,[new $APP.O(null,2,5,$APP.R,[$APP.wB,this.listeners],null),new $APP.O(null,2,5,$APP.R,[A$,this.Uf],null),new $APP.O(null,2,5,$APP.R,[C$,this.results],null),new $APP.O(null,2,5,$APP.R,[B$,this.Vf],null)],null),this.I))};
|
|||
|
$APP.k.ya=function(){return new $APP.ng(this,4,new $APP.O(null,4,5,$APP.R,[$APP.wB,A$,C$,B$],null),$APP.n(this.I)?$APP.tc(this.I):$APP.sf())};$APP.k.ha=function(){return this.J};$APP.k.wa=function(){return new w$(this.listeners,this.Uf,this.results,this.Vf,this.J,this.I,this.O)};$APP.k.ra=function(){return 4+$APP.Vc(this.I)};$APP.k.qa=function(){var a=this.O;return null!=a?a:this.O=a=-1610074144^$APP.Lc(this)};
|
|||
|
$APP.k.na=function(a,b){return null!=b&&this.constructor===b.constructor&&$APP.B.j(this.listeners,b.listeners)&&$APP.B.j(this.Uf,b.Uf)&&$APP.B.j(this.results,b.results)&&$APP.B.j(this.Vf,b.Vf)&&$APP.B.j(this.I,b.I)};$APP.k.Ba=function(a,b){return $APP.Wd(new $APP.Vg(null,new $APP.m(null,4,[B$,null,A$,null,$APP.wB,null,C$,null],null),null),b)?$APP.jj.j($APP.fc($APP.sg.j($APP.jf,this),this.J),b):new w$(this.listeners,this.Uf,this.results,this.Vf,this.J,$APP.lf($APP.jj.j(this.I,b)),null)};
|
|||
|
$APP.k.za=function(a,b){switch(b instanceof $APP.N?b.ba:null){case "listeners":case "full-listeners":case "results":case "full-results":return!0;default:return $APP.Wd(this.I,b)}};
|
|||
|
$APP.k.ka=function(a,b,c){return $APP.n($APP.Ke.j?$APP.Ke.j($APP.wB,b):$APP.Ke.call(null,$APP.wB,b))?new w$(c,this.Uf,this.results,this.Vf,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(A$,b):$APP.Ke.call(null,A$,b))?new w$(this.listeners,c,this.results,this.Vf,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(C$,b):$APP.Ke.call(null,C$,b))?new w$(this.listeners,this.Uf,c,this.Vf,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(B$,b):$APP.Ke.call(null,B$,b))?new w$(this.listeners,this.Uf,this.results,
|
|||
|
c,this.J,this.I,null):new w$(this.listeners,this.Uf,this.results,this.Vf,this.J,$APP.T.F(this.I,b,c),null)};$APP.k.sa=function(){return $APP.x($APP.Vk.j(new $APP.O(null,4,5,$APP.R,[new $APP.Xd($APP.wB,this.listeners,null),new $APP.Xd(A$,this.Uf,null),new $APP.Xd(C$,this.results,null),new $APP.Xd(B$,this.Vf,null)],null),this.I))};$APP.k.ia=function(a,b){return new w$(this.listeners,this.Uf,this.results,this.Vf,b,this.I,this.O)};
|
|||
|
$APP.k.ta=function(a,b){return $APP.xd(b)?this.ka(null,$APP.hd(b,0),$APP.hd(b,1)):$APP.ee.F($APP.Tb,this,b)};
|
|||
|
var Oid=$APP.il.j($APP.jq,$APP.sg),Zid=function Zid(a,b,c,d){return function(f){var g=$APP.kf(f);f=$APP.G.j(g,$APP.YD);g=$APP.G.j(g,$APP.my);f=P9(a,f);if($APP.x(b)){g=new $APP.O(null,2,5,$APP.R,[g,$APP.A(b)],null);var h=$APP.Gc(b);f=Zid.R?Zid.R(f,h,c,d):Zid.call(null,f,h,c,d);f=E$(d,g,f)}else f=D$(d,c,v$(f,g));return f}},K$=function K$(a,b,c,d){return function(f){var g=$APP.kf(f);f=$APP.G.j(g,$APP.YD);g=$APP.G.j(g,$APP.my);var h=P9(a,f);return Dhd(b)?F$(d,new $APP.O(null,2,5,$APP.R,[g,$APP.A(b)],
|
|||
|
null),function(){var l=$APP.Gc(b);return K$.R?K$.R(h,l,c,d):K$.call(null,h,l,c,d)}()):$APP.x(b)?E$(d,new $APP.O(null,2,5,$APP.R,[g,$APP.A(b)],null),function(){var l=$APP.Gc(b);return K$.R?K$.R(h,l,c,d):K$.call(null,h,l,c,d)}()):D$(d,c,v$(h,g))}},$id=function $id(a,b,c,d,e){return function(g){var h=$APP.kf(g);g=$APP.G.j(h,$APP.YD);h=$APP.G.j(h,$APP.my);if($APP.B.j(h,c))return 0===$APP.Vc(a)?D$(e,d,v$(null,h)):null;g=P9(a,g);E$(e,new $APP.O(null,2,5,$APP.R,[h,b],null),$id.ea?$id.ea(g,b,h,d,e):$id.call(null,
|
|||
|
g,b,h,d,e));return D$(e,d,v$(g,h))}},ajd=function ajd(a,b,c,d,e){return function(g){var h=$APP.kf(g);g=$APP.G.j(h,$APP.YD);h=$APP.G.j(h,$APP.my);if($APP.B.j(h,c))return 0===$APP.Vc(a)?D$(e,d,v$(null,h)):null;g=P9(a,g);return $APP.B.j(h,$APP.Vc($APP.Zv.C(e)))?D$(e,d,v$(g,h)):E$(e,new $APP.O(null,2,5,$APP.R,[h,b],null),ajd.ea?ajd.ea(g,b,h,d,e):ajd.call(null,g,b,h,d,e))}},bjd=function bjd(a,b,c,d,e,f,g,h){return function(p){p=$APP.kf(p);var q=$APP.G.j(p,$APP.YD);p=$APP.G.j(p,$APP.my);q=P9(a,q);var r=
|
|||
|
b+1;d<=r&&r<=e&&D$(h,g,v$(q,p));return r<e?E$(h,new $APP.O(null,2,5,$APP.R,[p,c],null),bjd.sb?bjd.sb(q,r,c,d,e,p,g,h):bjd.call(null,q,r,c,d,e,p,g,h)):null}},cjd=function cjd(a,b,c,d,e,f,g,h){return function(p){p=$APP.kf(p);var q=$APP.G.j(p,$APP.YD);p=$APP.G.j(p,$APP.my);q=P9(a,q);var r=b+1;return $APP.B.j(p,$APP.Vc($APP.Zv.C(h)))?d<=r&&r<=e?D$(h,g,v$(q,p)):null:r<e?E$(h,new $APP.O(null,2,5,$APP.R,[p,c],null),cjd.sb?cjd.sb(q,r,c,d,e,p,g,h):cjd.call(null,q,r,c,d,e,p,g,h)):null}};var jjd=$APP.ej,jmd=$APP.qh(/'[^'\\]*(?:\\.[^'\\]*)*'/),kmd=$APP.qh(/#'[^'\\]*(?:\\.[^'\\]*)*'/),lmd=$APP.qh(/"[^"\\]*(?:\\.[^"\\]*)*"/),mmd=$APP.qh(/#"[^"\\]*(?:\\.[^"\\]*)*"/),nmd=/(?:(?!(?:\(\*|\*\)))[\s\S])*/,omd=$APP.qh("[,\\s]*"),X$=p$(o$(V$)),rjd=Ghd($APP.a5,$APP.Ig([Rhd,$APP.Au,thd,Tld,$APP.Ev,Phd,$APP.NA,n$,ild,Rld,k$,$APP.Rp,$APP.hB,$APP.c6,hmd,yld,a$,gld,$APP.jQ,j$,Bld,V$,Ild,$APP.mP],[s$.G($APP.F([p$(l$("!")),X$,o$(gld)])),Ihd(s$.G($APP.F([X$,N$.G($APP.F([o$(gld),o$(Phd),o$(Rhd)])),X$]))),
|
|||
|
s$.G($APP.F([o$($APP.Au),Ihd(s$.G($APP.F([X$,p$(l$("/")),X$,o$($APP.Au)])))])),N$.G($APP.F([l$(":"),l$(":\x3d"),l$("::\x3d"),l$("\x3d")])),s$.G($APP.F([o$($APP.Au),Jhd(s$.G($APP.F([X$,p$(l$("|")),X$,o$($APP.Au)])))])),s$.G($APP.F([p$(l$("\x26")),X$,o$(gld)])),s$.G($APP.F([N$.G($APP.F([o$(n$),o$(ild)])),X$,p$(o$(Tld)),X$,o$(yld),p$(N$.G($APP.F([o$(V$),s$.G($APP.F([o$(V$),N$.G($APP.F([l$(";"),l$(".")])),o$(V$)]))])))])),s$.G($APP.F([Shd(o$(Bld)),m$($APP.qh("[^, \\r\\t\\n\x3c\x3e(){}\\[\\]+*?:\x3d|'\"#\x26!;./]+"))])),
|
|||
|
s$.G($APP.F([p$(l$("\x3c")),X$,o$(n$),X$,p$(l$("\x3e"))])),s$.G($APP.F([m$(nmd),Jhd(s$.G($APP.F([o$($APP.jQ),m$(nmd)])))])),N$.G($APP.F([s$.G($APP.F([p$(l$("{")),X$,o$(yld),X$,p$(l$("}"))])),s$.G($APP.F([o$(gld),X$,p$(l$("*"))]))])),N$.G($APP.F([m$(jmd),m$(lmd)])),f$(s$.G($APP.F([X$,Ihd(o$($APP.NA))]))),s$.G($APP.F([p$(l$("\x3c")),X$,o$(yld),X$,p$(l$("\x3e"))])),s$.G($APP.F([p$(l$("(")),X$,o$(yld),X$,p$(l$(")"))])),f$(N$.G($APP.F([o$($APP.Ev),o$(thd)]))),N$.G($APP.F([m$(kmd),m$(mmd)])),f$(N$.G($APP.F([o$(n$),
|
|||
|
o$($APP.Rp),o$(a$),o$($APP.mP),o$(k$),o$(j$),o$(hmd),o$($APP.c6),o$(Bld)]))),s$.G($APP.F([l$("(*"),o$(Rld),l$("*)")])),s$.G($APP.F([o$(gld),X$,p$(l$("+"))])),N$.G($APP.F([l$("Epsilon"),l$("epsilon"),l$("EPSILON"),l$("eps"),l$("ε")])),s$.G($APP.F([m$(omd),Jhd(s$.G($APP.F([o$($APP.jQ),m$(omd)])))])),f$(N$.G($APP.F([o$($APP.hB),o$(yld)]))),N$.G($APP.F([s$.G($APP.F([p$(l$("[")),X$,o$(yld),X$,p$(l$("]"))])),s$.G($APP.F([o$(gld),X$,p$(l$("?"))]))]))])),mjd=$APP.v(new $APP.Bc(function(){return Mgd},$ld,
|
|||
|
$APP.Ig([$APP.kq,$APP.lq,$APP.W,$APP.mq,$APP.nq,$APP.oq,$APP.fo,$APP.pq,$APP.qq,$APP.rq,$APP.sq],[!0,Cld,Nld,"cljs/tools/reader.cljs",20,1,305,305,$APP.tj(new $APP.O(null,4,5,$APP.R,[$APP.kd($APP.u6,new $APP.m(null,1,[$APP.Lq,$APP.L$b],null)),$APP.fA,$APP.jR,qld],null)),null,$APP.n(Mgd)?Mgd.U:null]))),L$=function L$(a){for(;;){var c=$APP.A.C?$APP.A.C(a):$APP.A.call(null,a);c=c instanceof $APP.N?c.ba:null;switch(c){case "rule":c=$APP.Gc.C?$APP.Gc.C(a):$APP.Gc.call(null,a);var d=$APP.C.F(c,0,null);
|
|||
|
c=$APP.C.F(c,1,null);return $APP.B.j($APP.A.C?$APP.A.C(d):$APP.A.call(null,d),ild)?new $APP.O(null,2,5,$APP.R,[$APP.wh.C(function(){var e=$APP.dd.C?$APP.dd.C(d):$APP.dd.call(null,d);return $APP.dd.C?$APP.dd.C(e):$APP.dd.call(null,e)}()),f$(L$.C?L$.C(c):L$.call(null,c))],null):new $APP.O(null,2,5,$APP.R,[$APP.wh.C($APP.dd.C?$APP.dd.C(d):$APP.dd.call(null,d)),L$.C?L$.C(c):L$.call(null,c)],null);case "nt":return o$($APP.wh.C($APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a)));case "alt":return $APP.zf.j(N$,
|
|||
|
$APP.vh.j(L$,$APP.Gc.C?$APP.Gc.C(a):$APP.Gc.call(null,a)));case "ord":return $APP.zf.j(W$,$APP.vh.j(L$,$APP.Gc.C?$APP.Gc.C(a):$APP.Gc.call(null,a)));case "paren":a=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);continue;case "hide":return p$(function(){var e=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "cat":return $APP.zf.j(s$,$APP.vh.j(L$,$APP.Gc.C?$APP.Gc.C(a):$APP.Gc.call(null,a)));case "string":return kjd(njd($APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a)),
|
|||
|
!1);case "regexp":return m$(ojd($APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a)));case "opt":return Hhd(function(){var e=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "star":return Jhd(function(){var e=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "plus":return Ihd(function(){var e=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "look":return Qhd(function(){var e=$APP.dd.C?$APP.dd.C(a):
|
|||
|
$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "neg":return Shd(function(){var e=$APP.dd.C?$APP.dd.C(a):$APP.dd.call(null,a);return L$.C?L$.C(e):L$.call(null,e)}());case "epsilon":return i$;default:throw Error(["No matching clause: ",$APP.u.C(c)].join(""));}}},pjd=function pjd(a){for(;;){var c=$APP.Lq.C(a);c=c instanceof $APP.N?c.ba:null;switch(c){case "nt":return new $APP.O(null,1,5,$APP.R,[$APP.nr.C(a)],null);case "string":case "string-ci":case "char":case "regexp":case "epsilon":return $APP.Tf;
|
|||
|
case "opt":case "plus":case "star":case "look":case "neg":case "rep":a=$APP.N1.C(a);continue;case "alt":case "cat":return $APP.Nf.G(pjd,$APP.F([$9.C(a)]));case "ord":return $APP.Nf.G(pjd,$APP.F([new $APP.O(null,2,5,$APP.R,[V9.C(a),Z9.C(a)],null)]));default:throw Error(["No matching clause: ",$APP.u.C(c)].join(""));}}};var pmd=function pmd(a,b){var d=$APP.Lq.C(b);d=a.C?a.C(d):a.call(null,d);return $APP.n(d)?ujd($APP.zf.j(d,$APP.vh.j($APP.il.j(pmd,a),$APP.Sr.C(b))),$APP.ld(b)):$APP.n($APP.Lq.C(b))?$APP.T.F(b,$APP.Sr,$APP.vh.j($APP.il.j(pmd,a),$APP.Sr.C(b))):b},qmd=function qmd(a,b){if($APP.ud(b)&&$APP.x(b)){var d=$APP.A(b);d=a.C?a.C(d):a.call(null,d);return $APP.n(d)?ujd($APP.zf.j(d,$APP.vh.j($APP.il.j(qmd,a),$APP.Gc(b))),$APP.ld(b)):$APP.kd($APP.sg.j(new $APP.O(null,1,5,$APP.R,[$APP.A(b)],null),$APP.vh.j($APP.il.j(qmd,
|
|||
|
a),$APP.Gc(b))),$APP.ld(b))}return b},Bjd=function Bjd(a,b){if("string"!==typeof b){var d=(d=$APP.vd(b))?$APP.Lq.C(b):d;$APP.n(d)?b=pmd(a,b):$APP.xd(b)&&$APP.A(b)instanceof $APP.N?b=qmd(a,b):$APP.ud(b)?(a=$APP.il.j(Bjd,a),b=$APP.kd($APP.vh.j(a,b),$APP.ld(b))):b=b instanceof t$?b:Bhd($APP.F(["Invalid parse-tree, not recognized as either enlive or hiccup format."]))}return b};var wjd=$APP.Ig([Fld,wld,Zld,emd,mld,Ald,fmd,Kld,bmd,Hld,gmd,Mld,Lld,rld,kld,Wld],[l$("\r\n"),l$("\t"),N$.G($APP.F([N$.G($APP.F([l$(" "),l$("\t")])),Jhd(s$.G($APP.F([l$("\r\n"),N$.G($APP.F([l$(" "),l$("\t")]))])))])),l$("\n"),m$("[\\u0021-\\u007E]"),m$("[0-9]"),l$(" "),m$("[0-9a-fA-F]"),m$("[\\u0000-\\u001F|\\u007F]"),l$('"'),N$.G($APP.F([l$(" "),l$("\t")])),l$("\r"),m$("[\\u0000-\\u00FF]"),m$("[a-zA-Z]"),m$("[\\u0001-\\u007F]"),m$("[01]")]),zjd=$APP.Ig([Rhd,$APP.jw,amd,$APP.gL,$APP.JV,lld,Phd,old,
|
|||
|
$APP.NA,Eld,Ald,Dld,Qld,cmd,$APP.c6,Sld,Kld,$APP.mY,nld,xld,Uld,hld,jld,U$,a$,$APP.TN,zld,Ajd,V$,$APP.$Da,pld,Vld,Ild],[new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"!"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.JV],null),null,1,null),2,null),$APP.d4,new $APP.m(null,2,
|
|||
|
[b$,$APP.a5,$APP.bu,Rhd],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"("],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),new $APP.J(null,
|
|||
|
new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,")"],null),null,1,null),2,null),$APP.c6,!0],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3c"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,zld],
|
|||
|
null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3e"],null),null,1,null),2,null),$APP.c6,!0],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null),$APP.Nl.G($APP.F([m$("\\s+(?:;.*?\\u000D?\\u000A\\s*)*"),new $APP.m(null,1,[$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.gL],null)],null)])),new $APP.m(null,3,[$APP.Lq,$APP.Ev,$9,
|
|||
|
new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Eld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.jw],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.c6],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.mY],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Qld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,cmd],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Phd],null),new $APP.J(null,new $APP.m(null,2,
|
|||
|
[$APP.Lq,n$,$APP.nr,Rhd],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,a$],null),null,1,null),2,null),3,null),4,null),5,null),6,null),7,null),8,null),9,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,amd],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,Sld,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),new $APP.J(null,new $APP.m(null,3,
|
|||
|
[$APP.Lq,n$,$APP.nr,V$,$APP.c6,!0],null),null,1,null),2,null),3,null),4,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,lld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x26"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.JV],null),null,1,null),2,null),$APP.d4,
|
|||
|
new $APP.m(null,2,[b$,$APP.a5,$APP.bu,Phd],null)],null),new $APP.m(null,3,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"0"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"1"],null),null,1,null),2,null)],null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,old],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,zld],null),new $APP.J(null,new $APP.m(null,3,
|
|||
|
[$APP.Lq,n$,$APP.nr,Sld,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,V$,$APP.c6,!0],null),null,1,null),2,null),3,null),4,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.NA],null)],null),new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,xld,$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,Eld],null)],null),$APP.Nl.G($APP.F([m$("[0-9]"),new $APP.m(null,1,[$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null)])),new $APP.m(null,
|
|||
|
3,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Ald],null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,Dld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,'"',$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,k$,$APP.N1,$APP.Nl.G($APP.F([m$("[\\u0020-\\u0021\\u0023-\\u007E]"),$APP.jf]))],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,'"',$APP.c6,
|
|||
|
!0],null),null,1,null),2,null),3,null)],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"'",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,k$,$APP.N1,$APP.Nl.G($APP.F([m$("[\\u0020-\\u0026(-~]"),$APP.jf]))],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"'",$APP.c6,!0],null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,Qld],null)],null),new $APP.m(null,
|
|||
|
3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"%",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Uld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,hld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,pld],null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,
|
|||
|
new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3c"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3e"],null),null,1,null),2,null),$APP.c6,!0],
|
|||
|
null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.c6],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,V$,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3d"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"\x3d/"],null),null,1,null),2,null)],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,V$,
|
|||
|
$APP.c6,!0],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,Sld],null)],null),$APP.Nl.G($APP.F([m$("[0-9a-fA-F]"),new $APP.m(null,1,[$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null)])),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"["],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),$APP.c6,!0],null),new $APP.J(null,
|
|||
|
new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"]"],null),null,1,null),2,null),$APP.c6,!0],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.mY],null)],null),new $APP.m(null,3,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Kld],null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,
|
|||
|
nld],null)],null),$APP.Nl.G($APP.F([m$("[a-zA-Z][-a-zA-Z0-9]*"),new $APP.m(null,1,[$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null)])),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"b",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,old],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Au,
|
|||
|
$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,".",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,old],null),null,1,null),2,null)],null)],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"-"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,old],null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,
|
|||
|
$APP.bu,Uld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"d",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Vld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,".",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,
|
|||
|
2,[$APP.Lq,n$,$APP.nr,Vld],null),null,1,null),2,null)],null)],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"-"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Vld],null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,hld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,
|
|||
|
$APP.TN],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,k$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,$APP.gL,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.TN],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,jld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,jld],null),new $APP.J(null,new $APP.m(null,
|
|||
|
2,[$APP.Lq,k$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"/"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,V$],null),null,1,null),2,null),3,null),$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,jld],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,
|
|||
|
2,[b$,$APP.a5,$APP.bu,U$],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,$APP.Nl.G($APP.F([m$("#'[^'\\\\]*(?:\\\\.[^'\\\\]*)*'"),$APP.jf])),new $APP.J(null,$APP.Nl.G($APP.F([m$('#\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"'),$APP.jf])),null,1,null),2,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,a$],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.$Da],null)],null),new $APP.J(null,
|
|||
|
new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,V$,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.JV],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.TN],null)],null),new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,xld,$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,zld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,n$,$APP.nr,V$,$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,j$,$APP.N1,new $APP.m(null,
|
|||
|
2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,$APP.NA],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,lld],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null),$APP.Nl.G($APP.F([m$("\\s*(?:;.*?(?:\\u000D?\\u000A\\s*|$))*"),new $APP.m(null,1,[$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,V$],null)],null)])),new $APP.m(null,3,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,
|
|||
|
Dld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Dld],null)],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"*"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Dld],null)],null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,$APP.$Da],null)],null),new $APP.m(null,
|
|||
|
3,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,"x",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,nld],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.mP,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,3,[$APP.Lq,$APP.Rp,$APP.Rp,".",$APP.c6,!0],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,nld],null),
|
|||
|
null,1,null),2,null)],null)],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Au,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,$APP.Rp,$APP.Rp,"-"],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,nld],null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,$APP.bu,pld],null)],null),new $APP.m(null,3,[$APP.Lq,j$,$APP.N1,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Ald],null),$APP.d4,new $APP.m(null,2,[b$,$APP.a5,
|
|||
|
$APP.bu,Vld],null)],null),new $APP.m(null,3,[$APP.Lq,$APP.Ev,$9,new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,Ajd],null),new $APP.J(null,new $APP.m(null,2,[$APP.Lq,n$,$APP.nr,U$],null),null,1,null),2,null),$APP.d4,new $APP.m(null,1,[b$,$APP.wu],null)],null)]),Y$=function Y$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;c=0<c.length?new $APP.Cc(c.slice(0),0,null):null;return Y$.G(c)};
|
|||
|
Y$.G=function(a){if($APP.B.j("-",$APP.$c(a))){var b=$APP.C.F(a,0,null);$APP.C.F(a,1,null);var c=$APP.C.F(a,2,null);return Ohd(b,c)}return $APP.zf.j(s$,function(){return function f(e){return new $APP.We(null,function(){for(;;){var g=$APP.x(e);if(g){if($APP.yd(g)){var h=$APP.qc(g),l=$APP.Vc(h),p=$APP.Xe(l);a:for(var q=0;;)if(q<l){var r=$APP.hd(h,q);p.add(Ohd(r,r));q+=1}else{h=!0;break a}return h?$APP.af($APP.cf(p),f($APP.rc(g))):$APP.af($APP.cf(p),null)}p=$APP.A(g);return $APP.Ie(Ohd(p,p),f($APP.Fc(g)))}return null}},
|
|||
|
null,null)}(a)}())};Y$.T=0;Y$.aa=function(a){return this.G($APP.x(a))};
|
|||
|
var Z$=parseInt,Cjd=$APP.Ig([Rhd,lld,Phd,old,$APP.NA,Eld,Dld,Qld,$APP.c6,$APP.mY,nld,Uld,hld,jld,U$,a$,$APP.TN,zld,$APP.$Da,pld,Vld],[Shd,function(a,b){return $APP.hf([a,f$(b)])},Qhd,function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){c=$APP.zf.j($APP.u,c);return Z$.j?Z$.j(c,2):Z$.call(null,c,2)}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),
|
|||
|
$APP.LI,function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){return $APP.n(!1)?o$($APP.wh.C($APP.Jj($APP.zf.j($APP.u,c)))):o$($APP.wh.C($APP.zf.j($APP.u,c)))}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;
|
|||
|
d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){c=$APP.zf.j($APP.u,c);return Z$.C?Z$.C(c):Z$.call(null,c)}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){return kjd($APP.zf.j($APP.u,c),!0)}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),p$,Hhd,function(){function a(c){var d=
|
|||
|
null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){c=$APP.zf.j($APP.u,c);return Z$.j?Z$.j(c,16):Z$.call(null,c,16)}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),Y$,Y$,s$,N$,$APP.cm.j(m$,ojd),function(){function a(c,d){return $APP.od(c)?Jhd(d):$APP.B.j($APP.Vc(c),2)?Lhd(sld.C(c),Xld.C(c),d):$APP.B.j(sld.C(c),1)?Ihd(d):$APP.B.j(Xld.C(c),1)?Hhd(d):Lhd(function(){var e=
|
|||
|
sld.C(c);return $APP.n(e)?e:0}(),function(){var e=Xld.C(c);return $APP.n(e)?e:Infinity}(),d)}var b=null;b=function(c,d){switch(arguments.length){case 1:return c;case 2:return a.call(this,c,d)}throw Error("Invalid arity: "+arguments.length);};b.C=function(c){return c};b.j=a;return b}(),function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){return $APP.n(!1)?$APP.wh.C($APP.Jj($APP.zf.j($APP.u,
|
|||
|
c))):$APP.wh.C($APP.zf.j($APP.u,c))}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){var d=$APP.Vc(c);switch(d){case 1:return $APP.B.j($APP.A(c),"*")?$APP.jf:new $APP.m(null,2,[sld,$APP.A(c),Xld,$APP.A(c)],null);case 2:return $APP.B.j($APP.A(c),"*")?new $APP.m(null,1,[Xld,$APP.$c(c)],null):
|
|||
|
new $APP.m(null,1,[sld,$APP.A(c)],null);case 3:return new $APP.m(null,2,[sld,$APP.A(c),Xld,$APP.C.j(c,2)],null);default:throw Error(["No matching clause: ",$APP.u.C(d)].join(""));}}a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}(),Y$,function(){function a(c){var d=null;if(0<arguments.length){d=0;for(var e=Array(arguments.length-0);d<e.length;)e[d]=arguments[d+0],++d;d=new $APP.Cc(e,0,null)}return b.call(this,d)}function b(c){c=$APP.zf.j($APP.u,c);return Z$.C?Z$.C(c):Z$.call(null,c)}
|
|||
|
a.T=0;a.aa=function(c){c=$APP.x(c);return b(c)};a.G=b;return a}()]);var O$=new t$(null,null,null,null,null),P$=function P$(a){switch(arguments.length){case 1:return P$.C(arguments[0]);case 2:return P$.j(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.u.C(arguments.length)].join(""));}};P$.C=function(a){var b=Ejd(a);$APP.C.F(b,0,null);b=$APP.C.F(b,1,null);return $APP.n(b)?$APP.qe(b):$APP.Vc(a)};P$.j=function(a,b){var c=Ejd(a);$APP.C.F(c,0,null);c=$APP.C.F(c,1,null);return $APP.n(c)?$APP.qe(c):b+$APP.Vc(a)};P$.T=2;var $$=function $$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;c=2<c.length?new $APP.Cc(c.slice(2),0,null):null;return $$.G(arguments[0],arguments[1],c)};
|
|||
|
$$.G=function(a,b,c){var d=$APP.kf(c);c=$APP.G.F(d,$APP.Qo,d$.C(a));var e=$APP.G.F(d,Yld,!1),f=$APP.G.F(d,Ijd,!1),g=$APP.G.j(d,Pld);$APP.G.F(d,$APP.mec,!1);a=Qjd(a,g);return $APP.n($APP.ZS.C(d))?(f=c$.C(a),a=M$.C(a),d=imd.C?imd.C(a):imd.call(null,a),a=ijd(f,c,b,e),a instanceof t$?(g=$APP.my.C(a),f=Did(f,b,b,g,d),hjd(f,o$(c),e),e=Vid(f,null),$APP.n(e)?b=$APP.A(e):(e=Sid(d,Tid,b,0,$APP.Vc(b)),b=Sid(d,c,e,0,$APP.Vc(b))),b=$APP.kd(b,$APP.Nl.G($APP.F([a,$APP.ld(b)])))):b=a,b):$APP.n($APP.n(f)?$APP.Hb(e):
|
|||
|
f)?(d=Pjd(a,b,c),$APP.n(Zjd.C?Zjd.C(d):Zjd.call(null,d))?ijd(c$.C(a),c,b,e):d):ijd(c$.C(a),c,b,e)};$$.T=2;$$.aa=function(a){var b=$APP.A(a),c=$APP.Gc(a);a=$APP.A(c);c=$APP.Gc(c);return this.G(b,a,c)};$APP.k=Q$.prototype;$APP.k.ua=function(a,b){return this.da(null,b,null)};$APP.k.da=function(a,b,c){switch(b instanceof $APP.N?b.ba:null){case "grammar":return this.Lb;case "start-production":return this.jg;case "output-format":return this.Fg;default:return $APP.G.F(this.I,b,c)}};
|
|||
|
$APP.k.Aa=function(a,b,c){return $APP.ee.F(function(d,e){var f=$APP.C.F(e,0,null);e=$APP.C.F(e,1,null);return b.F?b.F(d,f,e):b.call(null,d,f,e)},c,this)};$APP.k.pa=function(a,b,c){return $APP.sh(b,function(d){return $APP.sh(b,$APP.uh,""," ","",c,d)},"#instaparse.core.Parser{",", ","}",c,$APP.Vk.j(new $APP.O(null,3,5,$APP.R,[new $APP.O(null,2,5,$APP.R,[c$,this.Lb],null),new $APP.O(null,2,5,$APP.R,[d$,this.jg],null),new $APP.O(null,2,5,$APP.R,[M$,this.Fg],null)],null),this.I))};
|
|||
|
$APP.k.ya=function(){return new $APP.ng(this,3,new $APP.O(null,3,5,$APP.R,[c$,d$,M$],null),$APP.n(this.I)?$APP.tc(this.I):$APP.sf())};$APP.k.ha=function(){return this.J};$APP.k.wa=function(){return new Q$(this.Lb,this.jg,this.Fg,this.J,this.I,this.O)};$APP.k.ra=function(){return 3+$APP.Vc(this.I)};$APP.k.qa=function(){var a=this.O;return null!=a?a:this.O=a=-360509877^$APP.Lc(this)};
|
|||
|
$APP.k.na=function(a,b){return null!=b&&this.constructor===b.constructor&&$APP.B.j(this.Lb,b.Lb)&&$APP.B.j(this.jg,b.jg)&&$APP.B.j(this.Fg,b.Fg)&&$APP.B.j(this.I,b.I)};$APP.k.Ba=function(a,b){return $APP.Wd(new $APP.Vg(null,new $APP.m(null,3,[d$,null,c$,null,M$,null],null),null),b)?$APP.jj.j($APP.fc($APP.sg.j($APP.jf,this),this.J),b):new Q$(this.Lb,this.jg,this.Fg,this.J,$APP.lf($APP.jj.j(this.I,b)),null)};
|
|||
|
$APP.k.za=function(a,b){switch(b instanceof $APP.N?b.ba:null){case "grammar":case "start-production":case "output-format":return!0;default:return $APP.Wd(this.I,b)}};
|
|||
|
$APP.k.ka=function(a,b,c){return $APP.n($APP.Ke.j?$APP.Ke.j(c$,b):$APP.Ke.call(null,c$,b))?new Q$(c,this.jg,this.Fg,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(d$,b):$APP.Ke.call(null,d$,b))?new Q$(this.Lb,c,this.Fg,this.J,this.I,null):$APP.n($APP.Ke.j?$APP.Ke.j(M$,b):$APP.Ke.call(null,M$,b))?new Q$(this.Lb,this.jg,c,this.J,this.I,null):new Q$(this.Lb,this.jg,this.Fg,this.J,$APP.T.F(this.I,b,c),null)};
|
|||
|
$APP.k.sa=function(){return $APP.x($APP.Vk.j(new $APP.O(null,3,5,$APP.R,[new $APP.Xd(c$,this.Lb,null),new $APP.Xd(d$,this.jg,null),new $APP.Xd(M$,this.Fg,null)],null),this.I))};$APP.k.ia=function(a,b){return new Q$(this.Lb,this.jg,this.Fg,b,this.I,this.O)};$APP.k.ta=function(a,b){return $APP.xd(b)?this.ka(null,$APP.hd(b,0),$APP.hd(b,1)):$APP.ee.F($APP.Tb,this,b)};
|
|||
|
$APP.k.call=function(a){switch(arguments.length-1){case 1:return this.C(arguments[1]);case 3:return this.F(arguments[1],arguments[2],arguments[3]);case 5:return this.ea(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);case 7:return this.hb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7]);case 9:return this.zb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);case 11:return this.ub(arguments[1],
|
|||
|
arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);case 13:return this.vb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13]);case 15:return this.wb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],
|
|||
|
arguments[13],arguments[14],arguments[15]);case 17:return this.xb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17]);case 19:return this.yb(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],
|
|||
|
arguments[15],arguments[16],arguments[17],arguments[18],arguments[19]);case 21:return this.tf(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18],arguments[19],arguments[20],arguments[21]);default:throw Error(["Invalid arity: ",$APP.u.C(arguments.length-1)].join(""));}};
|
|||
|
$APP.k.apply=function(a,b){return this.call.apply(this,[this].concat($APP.Rb(b)))};$APP.k.C=function(a){return $$(this,a)};$APP.k.F=function(a,b,c){return $$.G(this,a,$APP.F([b,c]))};$APP.k.ea=function(a,b,c,d,e){return $$.G(this,a,$APP.F([b,c,d,e]))};$APP.k.hb=function(a,b,c,d,e,f,g){return $$.G(this,a,$APP.F([b,c,d,e,f,g]))};$APP.k.zb=function(a,b,c,d,e,f,g,h,l){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l]))};
|
|||
|
$APP.k.ub=function(a,b,c,d,e,f,g,h,l,p,q){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l,p,q]))};$APP.k.vb=function(a,b,c,d,e,f,g,h,l,p,q,r,t){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l,p,q,r,t]))};$APP.k.wb=function(a,b,c,d,e,f,g,h,l,p,q,r,t,y,z){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l,p,q,r,t,y,z]))};$APP.k.xb=function(a,b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H]))};
|
|||
|
$APP.k.yb=function(a,b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H){return $$.G(this,a,$APP.F([b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H]))};$APP.k.tf=function(a,b,c,d,e,f,g,h,l,p,q,r,t,y,z,E,H,K,M,P,S){return $APP.zf.G($$,this,a,b,c,$APP.F([d,e,f,g,h,l,p,q,r,t,y,z,E,H,K,M,P,S]))};$APP.k.kb=$APP.xc;$APP.k.pa=function(a,b){return $APP.ic(b,vhd(this))};var Xjd=new $APP.m(null,2,[Gld,Tjd("whitespace \x3d #'\\s+'"),$APP.Cnb,Tjd("whitespace \x3d #'[,\\s]+'")],null);var Mkd=Tjd("\x3cstart\x3e \x3d assignment | expr | comment | directive\nexpr \x3d add-sub [comment]\ncomment \x3d \x3c#'\\s*(#.*$)?'\x3e\n\x3cadd-sub\x3e \x3d pow-term | mul-div | add | sub | variable\nadd \x3d add-sub \x3c'+'\x3e mul-div\nsub \x3d add-sub \x3c'-'\x3e mul-div\n\x3cmul-div\x3e \x3d pow-term | mul | div | mod\nmul \x3d mul-div \x3c'*'\x3e pow-term\ndiv \x3d mul-div \x3c'/'\x3e pow-term\nmod \x3d mul-div \x3c'mod'\x3e pow-term\n\x3cpow-term\x3e \x3d pow | factorial | term\npow \x3d posterm \x3c'^'\x3e pow-term\nfactorial \x3d posterm \x3c'!'\x3e \x3c#'\\s*'\x3e\n\x3cfunction\x3e \x3d log | ln | exp | sqrt | abs | sin | cos | tan | acos | asin | atan\nlog \x3d \x3c#'\\s*'\x3e \x3c'log('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nln \x3d \x3c#'\\s*'\x3e \x3c'ln('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nexp \x3d \x3c#'\\s*'\x3e \x3c'exp('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nsqrt \x3d \x3c#'\\s*'\x3e \x3c'sqrt('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nabs \x3d \x3c#'\\s*'\x3e \x3c'abs('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nsin \x3d \x3c#'\\s*'\x3e \x3c'sin('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\ncos \x3d \x3c#'\\s*'\x3e \x3c'cos('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\ntan \x3d \x3c#'\\s*'\x3e \x3c'tan('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\natan \x3d \x3c#'\\s*'\x3e \x3c'atan('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nacos \x3d \x3c#'\\s*'\x3e \x3c'acos('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nasin \x3d \x3c#'\\s*'\x3e \x3c'asin('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\n\x3cposterm\x3e \x3d function | percent | scientific | number | mixed-number | variable | \x3c#'\\s*'\x3e \x3c'('\x3e expr \x3c')'\x3e \x3c#'\\s*'\x3e\nnegterm \x3d \x3c#'\\s*'\x3e \x3c'-'\x3e ( posterm | pow | factorial )\n\x3cterm\x3e \x3d negterm | posterm\nscientific \x3d #'\\s*[0-9]*\\.?[0-9]+(e|E)[\\-\\+]?[0-9]+()\\s*'\nnumber \x3d decimal-number | hexadecimal-number | octal-number | binary-number\n\x3cdecimal-number\x3e \x3d #'\\s*(\\d+(,\\d+)*(\\.\\d*)?|\\d*\\.\\d+)\\s*'\n\x3chexadecimal-number\x3e \x3d #'\\s*0x([0-9a-fA-F]+(,[0-9a-fA-F]+)*(\\.[0-9a-fA-F]*)?|[0-9a-fA-F]*\\.[0-9a-fA-F]+)\\s*'\n\x3coctal-number\x3e \x3d #'\\s*0o([0-7]+(,[0-7]+)*(\\.[0-7]*)?|[0-7]*\\.[0-7]+)\\s*'\n\x3cbinary-number\x3e \x3d #'\\s*0b([01]+(,[01]+)*(\\.[01]*)?|[01]*\\.[01]+)\\s*'\nmixed-number \x3d \x3c#'\\s*'\x3e digits \x3c#'\\s+'\x3e digits \x3c'/'\x3e digits \x3c#'\\s*'\x3e\npercent \x3d number \x3c'%'\x3e \x3c#'\\s*'\x3e\nvariable \x3d #'\\s*_*[a-zA-Z]+[_a-zA-Z0-9]*\\s*'\ntoassign \x3d #'\\s*_*[a-zA-Z]+[_a-zA-Z0-9]*\\s*'\nassignment \x3d toassign \x3c#'\\s*'\x3e \x3c'\x3d'\x3e \x3c#'\\s*'\x3e expr\n\x3cdirective\x3e \x3d \x3c#'\\s*\\:'\x3e (format | base) \x3c#'\\s*'\x3e [comment]\n\x3cformat\x3e \x3d \x3c#'(format|fmt)\\s+'\x3e ( format-fix | format-sci | format-norm | format-frac | format-impf )\nformat-fix \x3d \x3c#'(?i)fix(ed)?\\s*'\x3e digits\nformat-sci \x3d \x3c#'(?i)sci(entific)?\\s*'\x3e [digits]\nformat-norm \x3d \x3c#'(?i)norm(al)?\\s*'\x3e [digits]\nformat-frac \x3d \x3c#'(?i)frac(tions?)?\\s*'\x3e [digits]\nformat-impf \x3d \x3c#'(?i)imp(roper)?\\s*'\x3e [digits]\nbase \x3d base-hex | base-dec | base-oct | base-bin\n\x3cbase-hex\x3e \x3d #'(?i)hex' \x3c#'(?i)(adecimal)?'\x3e\n\x3cbase-dec\x3e \x3d #'(?i)dec' \x3c#'(?i)(imal)?'\x3e\n\x3cbase-oct\x3e \x3d #'(?i)oct' \x3c#'(?i)(al)?'\x3e\n\x3cbase-bin\x3e \x3d #'(?i)bin' \x3c#'(?i)(ary)?'\x3e\ndigits \x3d #'\\d+'"),
|
|||
|
Ckd=new $APP.m(null,2,["PI",R$.BigNumber("3.14159265358979323846"),"E",R$.BigNumber("2.71828182845904523536")],null),rmd=$APP.gs($APP.ks,function(a){return $APP.Qr(function(){var b=$APP.qs(a);return $APP.n(b)?new $APP.O(null,3,5,$APP.R,[dmd,new $APP.m(null,1,[$APP.bW,function(c){return c.stopPropagation()}],null),function(){return function e(d){return new $APP.We(null,function(){for(;;){var f=$APP.x(d);if(f){if($APP.yd(f)){var g=$APP.qc(f),h=$APP.Vc(g),l=$APP.Xe(h);a:for(var p=0;;)if(p<h){var q=$APP.hd(g,
|
|||
|
p),r=$APP.C.F(q,0,null);q=$APP.C.F(q,1,null);$APP.bf(l,new $APP.O(null,3,5,$APP.R,[vld,new $APP.m(null,1,[$APP.bu,r],null),new $APP.O(null,2,5,$APP.R,[$APP.iw,null==q?"":$jd(q)?"?":$APP.u.C(q)],null)],null));p+=1}else{g=!0;break a}return g?$APP.af($APP.cf(l),e($APP.rc(f))):$APP.af($APP.cf(l),null)}g=$APP.A(f);l=$APP.C.F(g,0,null);g=$APP.C.F(g,1,null);return $APP.Ie(new $APP.O(null,3,5,$APP.R,[vld,new $APP.m(null,1,[$APP.bu,l],null),new $APP.O(null,2,5,$APP.R,[$APP.iw,null==g?"":$jd(g)?"?":$APP.u.C(g)],
|
|||
|
null)],null),e($APP.Fc(f)))}return null}},null,null)}($APP.Sn.j($APP.vl,b))}()],null):null}())},new $APP.O(null,1,5,$APP.R,[$APP.h8],null),"frontend.extensions.calc/results");var dld=$APP.wa(Vkd,"fromTextArea"),smd=$APP.wa(Vkd,"Pos");window.CodeMirror=Vkd;
|
|||
|
Vkd.registerHelper("hint","clojure",function(a){var b=a.getCursor(),c=a.getTokenAt(b),d=c.type,e=c.string,f=$APP.Hh.C($APP.jf),g=Tkd(a),h=$APP.C.F(g,0,null),l=$APP.C.F(g,1,null);if($APP.B.j(d,"atom")&&$APP.ya(e,":")&&$APP.B.j(l,$APP.bu)){if($APP.eCa($APP.Vjb,function(t,y){y=$APP.pj.j($APP.u,y);$APP.od(y)||($APP.od(h)?$APP.Ih.R(f,$APP.T,$APP.A(y),$APP.ot.C(t)):$APP.B.j($APP.Vc(h),1)?$APP.Xj($APP.A(y),$APP.A(h))&&$APP.Ih.R(f,$APP.T,$APP.A(y),$APP.ot.C(t)):$APP.B.j($APP.Vc(h),2)&&$APP.B.j($APP.Vc(y),
|
|||
|
2)&&$APP.B.j($APP.A(y),$APP.A(h))&&$APP.Xj($APP.$c(y),$APP.$c(h))&&$APP.Ih.R(f,$APP.T,$APP.$c(y),$APP.ot.C(t)));return null}),$APP.n($APP.lf($APP.v(f)))){g=new smd(b.line,c.start);var p=new smd(b.line,c.end),q=c.end<=b.ch,r=a.getValue();a=$APP.vh.j(function(t){var y=$APP.G.j($APP.v(f),t);return new $APP.m(null,2,[$APP.Zv,[$APP.u.C(t),q?[" ",$APP.u.C(Ukd(y))].join(""):null].join(""),uld,[$APP.u.C(t)," ",$APP.u.C(y)].join("")],null)},$APP.ti.C($APP.Gm.j(function(t){return $APP.nh($APP.qh(["[^;]*",
|
|||
|
$APP.u.C(t),"\\s"].join("")),r)},$APP.Og($APP.v(f)))));return a=$APP.Gi(new $APP.m(null,3,[$APP.xq,a,$APP.UK,g,$APP.VK,p],null))}}else if($APP.n(function(){var t=null==d;return t?(t=$APP.Uj((0,$APP.Da)(e)))?(t=$APP.lf(h),$APP.n(t)?$APP.B.j(l,$APP.bu):t):t:t}())&&($APP.eCa($APP.Vjb,function(t,y){y=$APP.pj.j($APP.u,y);if($APP.B.j(h,y))switch(y=$APP.ot.C(t),y instanceof $APP.N?y.ba:null){case "boolean":$APP.Ih.G(f,$APP.T,"true",null,$APP.F(["false",null]));break;case "enum":t=$APP.eCa(t,chd);t=$APP.kf(t);
|
|||
|
t=$APP.G.j(t,$APP.kt);t=$APP.x(t);y=null;for(var z=0,E=0;;)if(E<z){var H=y.oa(null,E);$APP.Ih.R(f,$APP.T,$APP.u.C(H),null);E+=1}else if(t=$APP.x(t))y=t,$APP.yd(y)?(t=$APP.qc(y),E=$APP.rc(y),y=t,z=$APP.Vc(t),t=E):(t=$APP.A(y),$APP.Ih.R(f,$APP.T,$APP.u.C(t),null),t=$APP.Gc(y),y=null,z=0),E=0;else break}return null}),$APP.n($APP.lf($APP.v(f)))))return g=new smd(b.line,b.ch),p=new smd(b.line,b.ch),a=$APP.vh.j(function(t){return new $APP.m(null,2,[$APP.Zv,t,uld,t],null)},$APP.ti.C($APP.Og($APP.v(f)))),
|
|||
|
a=$APP.Gi(new $APP.m(null,3,[$APP.xq,a,$APP.UK,g,$APP.VK,p],null));return null});
|
|||
|
$APP.ead=$APP.gs($APP.ls,function(a,b,c,d,e){b=function(){var f=$APP.aS.C(d);return $APP.n(f)?$APP.B.j(f,"calc")?null:new $APP.O(null,2,5,$APP.R,[Jld,$APP.Kj(f)],null):null}();return $APP.X("div",$APP.vd(b)?$APP.Pr($APP.Lr($APP.F([new $APP.m(null,1,[$APP.Jr,new $APP.O(null,1,5,$APP.R,["extensions__code"],null)],null),b]))):{className:"extensions__code"},$APP.vd(b)?[$APP.X("div",{className:"code-editor flex flex-1 flex-row w-full"},[function(){var f=$APP.Nl.G($APP.F([new $APP.m(null,3,[$APP.tl,c,$APP.Xr,
|
|||
|
"textarea",$APP.hKb,e],null),d]));return $APP.X("textarea",$APP.vd(f)?$APP.Pr(f):null,$APP.vd(f)?null:[$APP.Qr(f)])}(),$APP.B.j($APP.aS.C(d),"calc")?rmd(eld.C(a)):null])]:[$APP.Qr(b),$APP.X("div",{className:"code-editor flex flex-1 flex-row w-full"},[function(){var f=$APP.Nl.G($APP.F([new $APP.m(null,3,[$APP.tl,c,$APP.Xr,"textarea",$APP.hKb,e],null),d]));return $APP.X("textarea",$APP.vd(f)?$APP.Pr(f):null,$APP.vd(f)?null:[$APP.Qr(f)])}(),$APP.B.j($APP.aS.C(d),"calc")?rmd(eld.C(a)):null])])},new $APP.O(null,
|
|||
|
2,5,$APP.R,[$APP.h8,new $APP.m(null,3,[$APP.$r,function(a){var b=$APP.is.C(a);$APP.C.F(b,0,null);$APP.C.F(b,1,null);$APP.C.F(b,2,null);var c=$APP.C.F(b,3,null);$APP.C.F(b,4,null);b=$APP.C.F(b,5,null);return $APP.T.G(a,Old,$APP.Hh.C(null),$APP.F([eld,$APP.Hh.C(Nkd(c)),Okd,$APP.Hh.C(b)]))},$APP.bs,function(a){var b=Old.C(a);if(!$APP.n($APP.v(b))){var c=fld(a);$APP.Ef(b,c)}return a},$APP.cs,function(a){$APP.Ef(Okd.C(a),$APP.fd($APP.is.C(a)));if(!$APP.n($APP.pbc.C($APP.A($APP.is.C(a))))){var b=$APP.C.j($APP.is.C(a),
|
|||
|
3),c=$APP.v(Old.C(a));$APP.Rg.j(c.getValue(),b)&&c.setValue(b)}return a}],null)],null),"frontend.extensions.code/editor");$APP.PQ.la(null,$APP.Sqb,function(a){$APP.C.F(a,0,null);a=$APP.sD();var b=$APP.wD.C(a);$APP.vD();return setTimeout(function(){var c=$APP.CHa(b).querySelector("textarea");c=$APP.wa(c,"codemirror-instance");return $APP.n(c)?c.focus():null},100)});$APP.Ya.Yi();
|
|||
|
}).call(this);
|