commit cbc288f8892478ae1bd44472057cb140dc6c5b98
parent b161af3c6594673b17dbf4596e539a1c272d91cd
Author: Jan Dankert <devnull@localhost>
Date: Mon, 3 Sep 2018 23:45:46 +0200
Neue, kleinere Version von JQuery-UI
Diffstat:
4 files changed, 5735 insertions(+), 39391 deletions(-)
diff --git a/modules/cms-ui/action/IndexAction.class.php b/modules/cms-ui/action/IndexAction.class.php
@@ -388,7 +388,7 @@ class IndexAction extends Action
$js = array();
$js[] = OR_THEMES_DIR . 'default/script/jquery';
$js[] = OR_THEMES_DIR . 'default/script/jquery-ui';
- $js[] = OR_THEMES_DIR . 'default/script/jquery.scrollTo';
+ //$js[] = OR_THEMES_DIR . 'default/script/jquery.scrollTo';
// $js[] = OR_THEMES_EXT_DIR default/script/jquery.mjs.nestedSortable.js"></script>
// Jquery-Plugins
@@ -578,11 +578,15 @@ class IndexAction extends Action
{
if ( filemtime($jsFileNormal) > filemtime($jsFileMin) )
{
- if ( is_writable( $jsFileMin))
- $jz = new JSqueeze();
- file_put_contents( $jsFileMin, $jz->squeeze(file_get_contents($jsFileNormal)));
- $modTime = time();
- }
+ if ( is_writable( $jsFileMin) )
+ {
+ $jz = new JSqueeze();
+ file_put_contents($jsFileMin, $jz->squeeze(file_get_contents($jsFileNormal)));
+ $modTime = time();
+ }
+ else
+ Logger::warn("Not writable: " . $jsFileMin);
+ }
else
{
$modTime = filemtime($jsFileMin);
@@ -601,9 +605,9 @@ class IndexAction extends Action
}
else
{
- file_put_contents($productionJSFile, '');
+ file_put_contents($productionJSFile, ''); // Truncate file
foreach ($outProJsFiles as $srcFile)
- file_put_contents($productionJSFile, file_get_contents($srcFile), FILE_APPEND);
+ file_put_contents($productionJSFile, "\n/* $srcFile */". file_get_contents($srcFile), FILE_APPEND);
}
}
}
diff --git a/modules/cms-ui/themes/default/production/combined.min.js b/modules/cms-ui/themes/default/production/combined.min.js
@@ -1,4 +1,5 @@
-/*!
+
+/* ./modules/cms-ui/themes/default/script/jquery.min.js *//*!
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
*
@@ -159,30092 +160,1457 @@ else{d.css(o)}}};e.fn.extend({offset:function(t){if(arguments.length){return t==
else{n=this.offsetParent();i=this.offset();if(!c(n[0],"html")){t=n.offset()};t={top:t.top+e.css(n[0],"borderTopWidth",!0),left:t.left+e.css(n[0],"borderLeftWidth",!0)}};return{top:i.top-t.top-e.css(r,"marginTop",!0),left:i.left-t.left-e.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var t=this.offsetParent;while(t&&e.css(t,"position")==="static"){t=t.offsetParent};return t||O})}});e.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i="pageYOffset"===n;e.fn[t]=function(r){return p(this,function(t,r,o){var s;if(e.isWindow(t)){s=t}
else if(t.nodeType===9){s=t.defaultView};if(o===undefined){return s?s[n]:t[r]};if(s){s.scrollTo(!i?o:s.pageXOffset,i?o:s.pageYOffset)}
else{t[r]=o}},t,r,arguments.length)}});e.each(["top","left"],function(t,n){e.cssHooks[n]=ze(o.pixelPosition,function(t,i){if(i){i=L(t,n);return Q.test(i)?e(t).position()[n]+"px":i}})});e.each({Height:"height",Width:"width"},function(t,n){e.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,r){e.fn[r]=function(o,s){var a=arguments.length&&(i||typeof o!=="boolean"),u=i||(o===!0||s===!0?"margin":"border");return p(this,function(n,i,o){var s;if(e.isWindow(n)){return r.indexOf("outer")===0?n["inner"+t]:n.document.documentElement["client"+t]};if(n.nodeType===9){s=n.documentElement;return Math.max(n.body["scroll"+t],s["scroll"+t],n.body["offset"+t],s["offset"+t],s["client"+t])};return o===undefined?e.css(n,i,u):e.style(n,i,o,u)},n,a?o:undefined,a)}})});e.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});e.holdReady=function(t){if(t){e.readyWait++}
-else{e.ready(!0)}};e.isArray=Array.isArray;e.parseJSON=JSON.parse;e.nodeName=c;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return e})};var et=t.jQuery,tt=t.$;e.noConflict=function(n){if(t.$===e){t.$=tt};if(n&&t.jQuery===e){t.jQuery=et};return e};if(!n){t.jQuery=t.$=e};return e});/*!
- * jQuery.ScrollTo
- * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
- * Dual licensed under MIT and GPL.
- * Date: 06/05/2009
- *
- * @projectDescription Easy element scrolling using jQuery.
- * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
- * Works with jQuery +1.2.6. Tested on FF 2/3, IE 6/7/8, Opera 9.5/6, Safari 3, Chrome 1 on WinXP.
- *
- * @author Ariel Flesler
- * @version 1.4.2
- *
- * @id jQuery.scrollTo
- * @id jQuery.fn.scrollTo
- * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
- * The different options for target are:
- * - A number position (will be applied to all axes).
- * - A string position ('44', '100px', '+=90', etc ) will be applied to all axes
- * - A jQuery/DOM element ( logically, child of the element to scroll )
- * - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
- * - A hash { top:x, left:y }, x and y can be any kind of number/string like above.
- * - A percentage of the container's dimension/s, for example: 50% to go to the middle.
- * - The string 'max' for go-to-end.
- * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead.
- * @param {Object,Function} settings Optional set of settings or the onAfter callback.
- * @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
- * @option {Number, Function} duration The OVERALL length of the animation.
- * @option {String} easing The easing method for the animation.
- * @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
- * @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }.
- * @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes.
- * @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
- * @option {Function} onAfter Function to be called after the scrolling ends.
- * @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
- * @return {jQuery} Returns the same jQuery object, for chaining.
+else{e.ready(!0)}};e.isArray=Array.isArray;e.parseJSON=JSON.parse;e.nodeName=c;if(typeof define==="function"&&define.amd){define("jquery",[],function(){return e})};var et=t.jQuery,tt=t.$;e.noConflict=function(n){if(t.$===e){t.$=tt};if(n&&t.jQuery===e){t.jQuery=et};return e};if(!n){t.jQuery=t.$=e};return e});
+/* ./modules/cms-ui/themes/default/script/jquery-ui.min.js *//*! jQuery UI - v1.12.1 - 2018-09-03
+* http://jqueryui.com
+* Includes: widget.js, data.js, scroll-parent.js, widgets/sortable.js, widgets/mouse.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+(function(t){if(typeof define==="function"&&define.amd){define(["jquery"],t)}
+else{t(jQuery)}}(function(t){t.ui=t.ui||{};var c=t.ui.version="1.12.1";
+/*!
+ * jQuery UI Widget 1.12.1
+ * http://jqueryui.com
*
- * @desc Scroll to a fixed position
- * @example $('div').scrollTo( 340 );
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ */
+;var s=0,i=Array.prototype.slice;t.cleanData=(function(e){return function(i){var s,n,o;for(o=0;(n=i[o])!=null;o++){try{s=t._data(n,"events");if(s&&s.remove){t(n).triggerHandler("remove")}}catch(r){}};e(i)}})(t.cleanData);t.widget=function(e,i,s){var r,n,h,l={};var o=e.split(".")[0];e=e.split(".")[1];var a=o+"-"+e;if(!s){s=i;i=t.Widget};if(t.isArray(s)){s=t.extend.apply(null,[{}].concat(s))};t.expr[":"][a.toLowerCase()]=function(e){return!!t.data(e,a)};t[o]=t[o]||{};r=t[o][e];n=t[o][e]=function(t,e){if(!this._createWidget){return new n(t,e)};if(arguments.length){this._createWidget(t,e)}};t.extend(n,r,{version:s.version,_proto:t.extend({},s),_childConstructors:[]});h=new i();h.options=t.widget.extend({},h.options);t.each(s,function(e,s){if(!t.isFunction(s)){l[e]=s;return};l[e]=(function(){function t(){return i.prototype[e].apply(this,arguments)};function n(t){return i.prototype[e].apply(this,t)};return function(){var i=this._super,o=this._superApply,e;this._super=t;this._superApply=n;e=s.apply(this,arguments);this._super=i;this._superApply=o;return e}})()});n.prototype=t.widget.extend(h,{widgetEventPrefix:r?(h.widgetEventPrefix||e):e},l,{constructor:n,namespace:o,widgetName:e,widgetFullName:a});if(r){t.each(r._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,n,i._proto)});delete r._childConstructors}
+else{i._childConstructors.push(n)};t.widget.bridge(e,n);return n};t.widget.extend=function(e){var r=i.call(arguments,1),o=0,h=r.length,s,n;for(;o<h;o++){for(s in r[o]){n=r[o][s];if(r[o].hasOwnProperty(s)&&n!==undefined){if(t.isPlainObject(n)){e[s]=t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n)}
+else{e[s]=n}}}};return e};t.widget.bridge=function(e,s){var n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a=typeof o==="string",h=i.call(arguments,1),r=this;if(a){if(!this.length&&o==="instance"){r=undefined}
+else{this.each(function(){var i,s=t.data(this,n);if(o==="instance"){r=s;return!1};if(!s){return t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")};if(!t.isFunction(s[o])||o.charAt(0)==="_"){return t.error("no such method '"+o+"' for "+e+" widget instance")};i=s[o].apply(s,h);if(i!==s&&i!==undefined){r=i&&i.jquery?r.pushStack(i.get()):i;return!1}})}}
+else{if(h.length){o=t.widget.extend.apply(null,[o].concat(h))};this.each(function(){var e=t.data(this,n);if(e){e.option(o||{});if(e._init){e._init()}}
+else{t.data(this,n,new s(o,this))}})};return r}};t.Widget=function(){};t.Widget._childConstructors=[];t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0];this.element=t(i);this.uuid=s++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=t();this.hoverable=t();this.focusable=t();this.classesElementLookup={};if(i!==this){t.data(i,this.widgetFullName,this);this._on(!0,this.element,{remove:function(t){if(t.target===i){this.destroy()}}});this.document=t(i.style?i.ownerDocument:i.document||i);this.window=t(this.document[0].defaultView||this.document[0].parentWindow)};this.options=t.widget.extend({},this.options,this._getCreateOptions(),e);this._create();if(this.options.disabled){this._setOptionDisabled(this.options.disabled)};this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy();t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)});this.element.off(this.eventNamespace).removeData(this.widgetFullName);this.widget().off(this.eventNamespace).removeAttr("aria-disabled");this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var r=e,s,n,o;if(arguments.length===0){return t.widget.extend({},this.options)};if(typeof e==="string"){r={};s=e.split(".");e=s.shift();if(s.length){n=r[e]=t.widget.extend({},this.options[e]);for(o=0;o<s.length-1;o++){n[s[o]]=n[s[o]]||{};n=n[s[o]]};e=s.pop();if(arguments.length===1){return n[e]===undefined?null:n[e]};n[e]=i}
+else{if(arguments.length===1){return this.options[e]===undefined?null:this.options[e]};r[e]=i}};this._setOptions(r);return this},_setOptions:function(t){var e;for(e in t){this._setOption(e,t[e])};return this},_setOption:function(t,e){if(t==="classes"){this._setOptionClasses(e)};this.options[t]=e;if(t==="disabled"){this._setOptionDisabled(e)};return this},_setOptionClasses:function(e){var i,n,s;for(i in e){s=this.classesElementLookup[i];if(e[i]===this.options.classes[i]||!s||!s.length){continue};n=t(s.get());this._removeClass(s,i);n.addClass(this._classes({element:n,keys:i,classes:e,add:!0}))}},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t);if(t){this._removeClass(this.hoverable,null,"ui-state-hover");this._removeClass(this.focusable,null,"ui-state-focus")}},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;e=t.extend({element:this.element,classes:this.options.classes||{}},e);function n(n,o){var h,r;for(r=0;r<n.length;r++){h=s.classesElementLookup[n[r]]||t();if(e.add){h=t(t.unique(h.get().concat(e.element.get())))}
+else{h=t(h.not(e.element).get())};s.classesElementLookup[n[r]]=h;i.push(n[r]);if(o&&e.classes[n[r]]){i.push(e.classes[n[r]])}}};this._on(e.element,{"remove":"_untrackClassesElement"});if(e.keys){n(e.keys.match(/\S+/g)||[],!0)};if(e.extra){n(e.extra.match(/\S+/g)||[])};return i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){if(t.inArray(e.target,n)!==-1){i.classesElementLookup[s]=t(n.not(e.target).get())}})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s=(typeof s==="boolean")?s:i;var n=(typeof t==="string"||t===null),o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};o.element.toggleClass(this._classes(o),s);return this},_on:function(e,i,s){var o,n=this;if(typeof e!=="boolean"){s=i;i=e;e=!1};if(!s){s=i;i=this.element;o=this.widget()}
+else{i=o=t(i);this.bindings=this.bindings.add(i)};t.each(s,function(s,r){function h(){if(!e&&(n.options.disabled===!0||t(this).hasClass("ui-state-disabled"))){return};return(typeof r==="string"?n[r]:r).apply(n,arguments)};if(typeof r!=="string"){h.guid=r.guid=r.guid||h.guid||t.guid++};var a=s.match(/^([\w:-]*)\s*(.*)$/),l=a[1]+n.eventNamespace,c=a[2];if(c){o.on(l,c,h)}
+else{i.on(l,h)}})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;e.off(i).off(i);this.bindings=t(this.bindings.not(e).get());this.focusable=t(this.focusable.not(e).get());this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function s(){return(typeof t==="string"?i[t]:t).apply(i,arguments)};var i=this;return setTimeout(s,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e);this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e);this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,r=this.options[e];s=s||{};i=t.Event(i);i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();i.target=this.element[0];o=i.originalEvent;if(o){for(n in o){if(!(n in i)){i[n]=o[n]}}};this.element.trigger(i,s);return!(t.isFunction(r)&&r.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}};t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){if(typeof n==="string"){n={effect:n}};var h,r=!n?e:n===!0||typeof n==="number"?i:n.effect||i;n=n||{};if(typeof n==="number"){n={duration:n}};h=!t.isEmptyObject(n);n.complete=o;if(n.delay){s.delay(n.delay)};if(h&&t.effects&&t.effects.effect[r]){s[e](n)}
+else if(r!==e&&s[r]){s[r](n.duration,n.easing,o)}
+else{s.queue(function(i){t(this)[e]();if(o){o.call(s[0])};i()})}}});var l=t.widget;
+/*!
+ * jQuery UI :data 1.12.1
+ * http://jqueryui.com
*
- * @desc Scroll relatively to the actual position
- * @example $('div').scrollTo( '+=340px', { axis:'y' } );
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ */
+;var a=t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}});
+/*!
+ * jQuery UI Scroll Parent 1.12.1
+ * http://jqueryui.com
*
- * @desc Scroll using a selector (relative to the scrolled element)
- * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ */
+;var r=t.fn.scrollParent=function(e){var i=this.css("position"),n=i==="absolute",o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=t(this);if(n&&e.css("position")==="static"){return!1};return o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return i==="fixed"||!s.length?t(this[0].ownerDocument||document):s},h=t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
+/*!
+ * jQuery UI Mouse 1.12.1
+ * http://jqueryui.com
*
- * @desc Scroll to a DOM element (same for jQuery object)
- * @example var second_child = document.getElementById('container').firstChild.nextSibling;
- * $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
- * alert('scrolled!!');
- * }});
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
+ */
+;var e=!1;t(document).on("mouseup",function(){e=!1});var o=t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent")){t.removeData(i.target,e.widgetName+".preventClickEvent");i.stopImmediatePropagation();return!1}});this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName);if(this._mouseMoveDelegate){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(i){if(e){return};this._mouseMoved=!1;(this._mouseStarted&&this._mouseUp(i));this._mouseDownEvent=i;var s=this,n=(i.which===1),o=(typeof this.options.cancel==="string"&&i.target.nodeName?t(i.target).closest(this.options.cancel).length:!1);if(!n||o||!this._mouseCapture(i)){return!0};this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){s.mouseDelayMet=!0},this.options.delay)};if(this._mouseDistanceMet(i)&&this._mouseDelayMet(i)){this._mouseStarted=(this._mouseStart(i)!==!1);if(!this._mouseStarted){i.preventDefault();return!0}};if(!0===t.data(i.target,this.widgetName+".preventClickEvent")){t.removeData(i.target,this.widgetName+".preventClickEvent")};this._mouseMoveDelegate=function(t){return s._mouseMove(t)};this._mouseUpDelegate=function(t){return s._mouseUp(t)};this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate);i.preventDefault();e=!0;return!0},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button){return this._mouseUp(e)}
+else if(!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey){this.ignoreMissingWhich=!0}
+else if(!this.ignoreMissingWhich){return this._mouseUp(e)}}};if(e.which||e.button){this._mouseMoved=!0};if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()};if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,e)!==!1);(this._mouseStarted?this._mouseDrag(e):this._mouseUp(e))};return!this._mouseStarted},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=!1;if(i.target===this._mouseDownEvent.target){t.data(i.target,this.widgetName+".preventClickEvent",!0)};this._mouseStop(i)};if(this._mouseDelayTimer){clearTimeout(this._mouseDelayTimer);delete this._mouseDelayTimer};this.ignoreMissingWhich=!1;e=!1;i.preventDefault()},_mouseDistanceMet:function(t){return(Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance)},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}});
+/*!
+ * jQuery UI Sortable 1.12.1
+ * http://jqueryui.com
*
- * @desc Scroll on both axes, to different values
- * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } );
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license.
+ * http://jquery.org/license
*/
-
-;(function( $ ){
-
- var $scrollTo = $.scrollTo = function( target, duration, settings ){
- $(window).scrollTo( target, duration, settings );
- };
-
- $scrollTo.defaults = {
- axis:'xy',
- duration: parseFloat($.fn.jquery) >= 1.3 ? 0 : 1,
- limit:true
- };
-
- // Returns the element that needs to be animated to scroll the window.
- // Kept for backwards compatibility (specially for localScroll & serialScroll)
- $scrollTo.window = function( scope ){
- return $(window)._scrollable();
- };
-
- // Hack, hack, hack :)
- // Returns the real elements to scroll (supports window/iframes, documents and regular nodes)
- $.fn._scrollable = function(){
- return this.map(function(){
- var elem = this,
- isWin = !elem.nodeName || $.inArray( elem.nodeName.toLowerCase(), ['iframe','#document','html','body'] ) != -1;
-
- if( !isWin )
- return elem;
-
- var doc = (elem.contentWindow || elem).document || elem.ownerDocument || elem;
-
- return $.browser.safari || doc.compatMode == 'BackCompat' ?
- doc.body :
- doc.documentElement;
- });
- };
-
- $.fn.scrollTo = function( target, duration, settings ){
- if( typeof duration == 'object' ){
- settings = duration;
- duration = 0;
- }
- if( typeof settings == 'function' )
- settings = { onAfter:settings };
-
- if( target == 'max' )
- target = 9e9;
-
- settings = $.extend( {}, $scrollTo.defaults, settings );
- // Speed is still recognized for backwards compatibility
- duration = duration || settings.duration;
- // Make sure the settings are given right
- settings.queue = settings.queue && settings.axis.length > 1;
-
- if( settings.queue )
- // Let's keep the overall duration
- duration /= 2;
- settings.offset = both( settings.offset );
- settings.over = both( settings.over );
-
- return this._scrollable().each(function(){
- var elem = this,
- $elem = $(elem),
- targ = target, toff, attr = {},
- win = $elem.is('html,body');
-
- switch( typeof targ ){
- // A number will pass the regex
- case 'number':
- case 'string':
- if( /^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(targ) ){
- targ = both( targ );
- // We are done
- break;
- }
- // Relative selector, no break!
- targ = $(targ,this);
- case 'object':
- // DOMElement / jQuery
- if( targ.is || targ.style )
- // Get the real position of the target
- toff = (targ = $(targ)).offset();
- }
- $.each( settings.axis.split(''), function( i, axis ){
- var Pos = axis == 'x' ? 'Left' : 'Top',
- pos = Pos.toLowerCase(),
- key = 'scroll' + Pos,
- old = elem[key],
- max = $scrollTo.max(elem, axis);
-
- if( toff ){// jQuery / DOMElement
- attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );
-
- // If it's a dom element, reduce the margin
- if( settings.margin ){
- attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
- attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
- }
-
- attr[key] += settings.offset[pos] || 0;
-
- if( settings.over[pos] )
- // Scroll to a fraction of its width/height
- attr[key] += targ[axis=='x'?'width':'height']() * settings.over[pos];
- }else{
- var val = targ[pos];
- // Handle percentage values
- attr[key] = val.slice && val.slice(-1) == '%' ?
- parseFloat(val) / 100 * max
- : val;
- }
-
- // Number or 'number'
- if( settings.limit && /^\d+$/.test(attr[key]) )
- // Check the limits
- attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max );
-
- // Queueing axes
- if( !i && settings.queue ){
- // Don't waste time animating, if there's no need.
- if( old != attr[key] )
- // Intermediate animation
- animate( settings.onAfterFirst );
- // Don't animate this axis again in the next iteration.
- delete attr[key];
- }
- });
-
- animate( settings.onAfter );
-
- function animate( callback ){
- $elem.animate( attr, duration, settings.easing, callback && function(){
- callback.call(this, target, settings);
- });
- };
-
- }).end();
- };
-
- // Max scrolling position, works on quirks mode
- // It only fails (not too badly) on IE, quirks mode.
- $scrollTo.max = function( elem, axis ){
- var Dim = axis == 'x' ? 'Width' : 'Height',
- scroll = 'scroll'+Dim;
-
- if( !$(elem).is('html,body') )
- return elem[scroll] - $(elem)[Dim.toLowerCase()]();
-
- var size = 'client' + Dim,
- html = elem.ownerDocument.documentElement,
- body = elem.ownerDocument.body;
-
- return Math.max( html[scroll], body[scroll] )
- - Math.min( html[size] , body[size] );
- };
-
- function both( val ){
- return typeof val == 'object' ? val : { top:val, left:val };
- };
-
-})( jQuery );;jQuery.fn.orSearch=function(n){var a=$.extend({'dropdown':'unknown'},n);return $(this).keyup(function(){var n=$(this).val();if(n.length>3){$(a.dropdown).html('');$.ajax({'type':'GET',url:'./?action=search&subaction=quicksearch&output=json&search='+n,data:null,success:function(t,e,d){for(id in t.output.result){var n=t.output.result[id];$(a.dropdown).append('<div class="entry clickable" title="'+n.desc+'"><a href="javascript:void(0);" data-type="open" data-name="'+n.name+'" data-action="'+n.type+'" data-id="'+id+'"><img src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+n.type+'.png" />'+n.name+'</a></div>')};$(a.dropdown).orLinkify()}});$(a.dropdown).fadeIn()}
-else{$(a.dropdown).fadeOut()}})};;jQuery.fn.orLinkify=function(){return $(this).click(function(){$(this).find('a').first().each(function(){var t=$(this).attr('data-type');if($(this).parent().hasClass('inactive'))return;if(t=='post'){submitLink(this,$(this).attr('data-data'))}
-else if(t=='view'){}
-else if(t=='modal'){startDialog($(this).attr('data-name'),null,$(this).attr('data-method'))}
-else if(t=='dialog'){startDialog($(this).attr('data-name'),$(this).attr('data-action'),$(this).attr('data-method'))}
+;var n=t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return(t>=e)&&(t<(e+i))},_isFloating:function(t){return(/left|right/).test(t.css("float"))||(/inline|table-cell/).test(t.css("display"))},_create:function(){this.containerCache={};this._addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(t,e){this._super(t,e);if(t==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle");t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--){this.items[t].item.removeData(this.widgetName+"-item")};return this},_mouseCapture:function(e,i){var s=null,o=!1,n=this;if(this.reverting){return!1};if(this.options.disabled||this.options.type==="static"){return!1};this._refreshItems(e);t(e.target).parents().each(function(){if(t.data(this,n.widgetName+"-item")===n){s=t(this);return!1}});if(t.data(e.target,n.widgetName+"-item")===n){s=t(e.target)};if(!s){return!1};if(this.options.handle&&!i){t(this.options.handle,s).find("*").addBack().each(function(){if(this===e.target){o=!0}});if(!o){return!1}};this.currentItem=s;this._removeCurrentsFromItems();return!0},_mouseStart:function(e,i,s){var o,r,n=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;(n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()};this._createPlaceholder();if(n.containment){this._setContainment()};if(n.cursor&&n.cursor!=="auto"){r=this.document.find("body");this.storedCursor=r.css("cursor");r.css("cursor",n.cursor);this.storedStylesheet=t("<style>*{ cursor: "+n.cursor+" !important; }</style>").appendTo(r)};if(n.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")};this.helper.css("opacity",n.opacity)};if(n.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")};this.helper.css("zIndex",n.zIndex)};if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()};this._trigger("start",e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()};if(!s){for(o=this.containers.length-1;o>=0;o--){this.containers[o]._trigger("activate",e,this._uiHash(this))}};if(t.ui.ddmanager){t.ui.ddmanager.current=this};if(t.ui.ddmanager&&!n.dropBehaviour){t.ui.ddmanager.prepareOffsets(this,e)};this.dragging=!0;this._addClass(this.helper,"ui-sortable-helper");this._mouseDrag(e);return!0},_mouseDrag:function(e){var r,n,o,h,i=this.options,s=!1;this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs};if(this.options.scroll){if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-e.pageY<i.scrollSensitivity){this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+i.scrollSpeed}
+else if(e.pageY-this.overflowOffset.top<i.scrollSensitivity){this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-i.scrollSpeed};if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-e.pageX<i.scrollSensitivity){this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+i.scrollSpeed}
+else if(e.pageX-this.overflowOffset.left<i.scrollSensitivity){this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-i.scrollSpeed}}
+else{if(e.pageY-this.document.scrollTop()<i.scrollSensitivity){s=this.document.scrollTop(this.document.scrollTop()-i.scrollSpeed)}
+else if(this.window.height()-(e.pageY-this.document.scrollTop())<i.scrollSensitivity){s=this.document.scrollTop(this.document.scrollTop()+i.scrollSpeed)};if(e.pageX-this.document.scrollLeft()<i.scrollSensitivity){s=this.document.scrollLeft(this.document.scrollLeft()-i.scrollSpeed)}
+else if(this.window.width()-(e.pageX-this.document.scrollLeft())<i.scrollSensitivity){s=this.document.scrollLeft(this.document.scrollLeft()+i.scrollSpeed)}};if(s!==!1&&t.ui.ddmanager&&!i.dropBehaviour){t.ui.ddmanager.prepareOffsets(this,e)}};this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"};if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"};for(r=this.items.length-1;r>=0;r--){n=this.items[r];o=n.item[0];h=this._intersectsWithPointer(n);if(!h){continue};if(n.instance!==this.currentContainer){continue};if(o!==this.currentItem[0]&&this.placeholder[h===1?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&(this.options.type==="semi-dynamic"?!t.contains(this.element[0],o):!0)){this.direction=h===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(n)){this._rearrange(e,n)}
+else{break};this._trigger("change",e,this._uiHash());break}};this._contactContainers(e);if(t.ui.ddmanager){t.ui.ddmanager.drag(this,e)};this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return!1},_mouseStop:function(e,i){if(!e){return};if(t.ui.ddmanager&&!this.options.dropBehaviour){t.ui.ddmanager.drop(this,e)};if(this.options.revert){var r=this,o=this.placeholder.offset(),s=this.options.axis,n={};if(!s||s==="x"){n.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)};if(!s||s==="y"){n.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)};this.reverting=!0;t(this.helper).animate(n,parseInt(this.options.revert,10)||500,function(){r._clear(e)})}
+else{this._clear(e,i)};return!1},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null}));if(this.options.helper==="original"){this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}
+else{this.currentItem.show()};for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("deactivate",null,this._uiHash(this));if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",null,this._uiHash(this));this.containers[e].containerCache.over=0}}};if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])};if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()};t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null});if(this.domPosition.prev){t(this.domPosition.prev).after(this.currentItem)}
+else{t(this.domPosition.parent).prepend(this.currentItem)}};return this},serialize:function(e){var s=this._getItemsAsjQuery(e&&e.connected),i=[];e=e||{};t(s).each(function(){var s=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[\-=_](.+)/));if(s){i.push((e.key||s[1]+"[]")+"="+(e.key&&e.expression?s[1]:s[2]))}});if(!i.length&&e.key){i.push(e.key+"=")};return i.join("&")},toArray:function(e){var s=this._getItemsAsjQuery(e&&e.connected),i=[];e=e||{};s.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")});return i},_intersectsWith:function(t){var e=this.positionAbs.left,l=e+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,s=t.left,o=s+t.width,n=t.top,r=n+t.height,h=this.offset.click.top,a=this.offset.click.left,f=(this.options.axis==="x")||((i+h)>n&&(i+h)<r),u=(this.options.axis==="y")||((e+a)>s&&(e+a)<o),p=f&&u;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"])){return p}
+else{return(s<e+(this.helperProportions.width/2)&&l-(this.helperProportions.width/2)<o&&n<i+(this.helperProportions.height/2)&&c-(this.helperProportions.height/2)<r)}},_intersectsWithPointer:function(t){var e,i,s=(this.options.axis==="x")||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n=(this.options.axis==="y")||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;if(!o){return!1};e=this._getDragVerticalDirection();i=this._getDragHorizontalDirection();return this.floating?((i==="right"||e==="down")?2:1):(e&&(e==="down"?2:1))},_intersectsWithSides:function(t){var s=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+(t.height/2),t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+(t.width/2),t.width),e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();if(this.floating&&i){return((i==="right"&&n)||(i==="left"&&!n))}
+else{return e&&((e==="down"&&s)||(e==="up"&&!s))}},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return t!==0&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return t!==0&&(t>0?"right":"left")},refresh:function(t){this._refreshItems(t);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var s,n,r,i,a=[],o=[],h=this._connectWith();if(h&&e){for(s=h.length-1;s>=0;s--){r=t(h[s],this.document[0]);for(n=r.length-1;n>=0;n--){i=t.data(r[n],this.widgetFullName);if(i&&i!==this&&!i.options.disabled){o.push([t.isFunction(i.options.items)?i.options.items.call(i.element):t(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}}}};o.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function l(){a.push(this)};for(s=o.length-1;s>=0;s--){o[s][0].each(l)};return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++){if(e[i]===t.item[0]){return!1}};return!0})},_refreshItems:function(e){this.items=[];this.containers=[this];var s,n,r,i,h,a,l,f,u=this.items,o=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready){for(s=c.length-1;s>=0;s--){r=t(c[s],this.document[0]);for(n=r.length-1;n>=0;n--){i=t.data(r[n],this.widgetFullName);if(i&&i!==this&&!i.options.disabled){o.push([t.isFunction(i.options.items)?i.options.items.call(i.element[0],e,{item:this.currentItem}):t(i.options.items,i.element),i]);this.containers.push(i)}}}};for(s=o.length-1;s>=0;s--){h=o[s][1];a=o[s][0];for(n=0,f=a.length;n<f;n++){l=t(a[n]);l.data(this.widgetName+"-item",h);u.push({item:l,instance:h,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1;if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()};var i,s,o,n;for(i=this.items.length-1;i>=0;i--){s=this.items[i];if(s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]){continue};o=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item;if(!e){s.width=o.outerWidth();s.height=o.outerHeight()};n=o.offset();s.left=n.left;s.top=n.top};if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}
+else{for(i=this.containers.length-1;i>=0;i--){n=this.containers[i].element.offset();this.containers[i].containerCache.left=n.left;this.containers[i].containerCache.top=n.top;this.containers[i].containerCache.width=this.containers[i].element.outerWidth();this.containers[i].containerCache.height=this.containers[i].element.outerHeight()}};return this},_createPlaceholder:function(e){e=e||this;var s,i=e.options;if(!i.placeholder||i.placeholder.constructor===String){s=i.placeholder;i.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),i=t("<"+n+">",e.document[0]);e._addClass(i,"ui-sortable-placeholder",s||e.currentItem[0].className)._removeClass(i,"ui-sortable-helper");if(n==="tbody"){e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(i))}
+else if(n==="tr"){e._createTrPlaceholder(e.currentItem,i)}
+else if(n==="img"){i.attr("src",e.currentItem.attr("src"))};if(!s){i.css("visibility","hidden")};return i},update:function(t,n){if(s&&!i.forcePlaceholderSize){return};if(!n.height()){n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10))};if(!n.width()){n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10))}}}};e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem));e.currentItem.after(e.placeholder);i.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t("<td> </td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var s,n,c,o,u,p,h,f,a,l,r=null,i=null;for(s=this.containers.length-1;s>=0;s--){if(t.contains(this.currentItem[0],this.containers[s].element[0])){continue};if(this._intersectsWith(this.containers[s].containerCache)){if(r&&t.contains(this.containers[s].element[0],r.element[0])){continue};r=this.containers[s];i=s}
+else{if(this.containers[s].containerCache.over){this.containers[s]._trigger("out",e,this._uiHash(this));this.containers[s].containerCache.over=0}}};if(!r){return};if(this.containers.length===1){if(!this.containers[i].containerCache.over){this.containers[i]._trigger("over",e,this._uiHash(this));this.containers[i].containerCache.over=1}}
+else{c=10000;o=null;a=r.floating||this._isFloating(this.currentItem);u=a?"left":"top";p=a?"width":"height";l=a?"pageX":"pageY";for(n=this.items.length-1;n>=0;n--){if(!t.contains(this.containers[i].element[0],this.items[n].item[0])){continue};if(this.items[n].item[0]===this.currentItem[0]){continue};h=this.items[n].item.offset()[u];f=!1;if(e[l]-h>this.items[n][p]/2){f=!0};if(Math.abs(e[l]-h)<c){c=Math.abs(e[l]-h);o=this.items[n];this.direction=f?"up":"down"}};if(!o&&!this.options.dropOnEmpty){return};if(this.currentContainer===this.containers[i]){if(!this.currentContainer.containerCache.over){this.containers[i]._trigger("over",e,this._uiHash());this.currentContainer.containerCache.over=1};return};o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[i].element,!0);this._trigger("change",e,this._uiHash());this.containers[i]._trigger("change",e,this._uiHash(this));this.currentContainer=this.containers[i];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[i]._trigger("over",e,this._uiHash(this));this.containers[i].containerCache.over=1}},_createHelper:function(e){var s=this.options,i=t.isFunction(s.helper)?t(s.helper.apply(this.element[0],[e,this.currentItem])):(s.helper==="clone"?this.currentItem.clone():this.currentItem);if(!i.parents("body").length){t(s.appendTo!=="parent"?s.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0])};if(i[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}};if(!i[0].style.width||s.forceHelperSize){i.width(this.currentItem.width())};if(!i[0].style.height||s.forceHelperSize){i.height(this.currentItem.height())};return i},_adjustOffsetFromHelper:function(e){if(typeof e==="string"){e=e.split(" ")};if(t.isArray(e)){e={left:+e[0],top:+e[1]||0}};if("left" in e){this.offset.click.left=e.left+this.margins.left};if("right" in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left};if("top" in e){this.offset.click.top=e.top+this.margins.top};if("bottom" in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()};if(this.offsetParent[0]===this.document[0].body||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&t.ui.ie)){e={top:0,left:0}};return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}
+else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,n,i=this.options;if(i.containment==="parent"){i.containment=this.helper[0].parentNode};if(i.containment==="document"||i.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?(this.document.height()||document.body.parentNode.scrollHeight):this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]};if(!(/^(document|window|parent)$/).test(i.containment)){e=t(i.containment)[0];s=t(i.containment).offset();n=(t(e).css("overflow")!=="hidden");this.containment=[s.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,s.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,i){if(!i){i=this.position};var s=e==="absolute"?1:-1,n=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,o=(/(html|body)/i).test(n[0].tagName);return{top:(i.top+this.offset.relative.top*s+this.offset.parent.top*s-((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(o?0:n.scrollTop()))*s)),left:(i.left+this.offset.relative.left*s+this.offset.parent.left*s-((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s))}},_generatePosition:function(e){var s,n,i=this.options,o=e.pageX,r=e.pageY,h=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,a=(/(html|body)/i).test(h[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()};if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){o=this.containment[0]+this.offset.click.left};if(e.pageY-this.offset.click.top<this.containment[1]){r=this.containment[1]+this.offset.click.top};if(e.pageX-this.offset.click.left>this.containment[2]){o=this.containment[2]+this.offset.click.left};if(e.pageY-this.offset.click.top>this.containment[3]){r=this.containment[3]+this.offset.click.top}};if(i.grid){s=this.originalPageY+Math.round((r-this.originalPageY)/i.grid[1])*i.grid[1];r=this.containment?((s-this.offset.click.top>=this.containment[1]&&s-this.offset.click.top<=this.containment[3])?s:((s-this.offset.click.top>=this.containment[1])?s-i.grid[1]:s+i.grid[1])):s;n=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0];o=this.containment?((n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2])?n:((n-this.offset.click.left>=this.containment[0])?n-i.grid[0]:n+i.grid[0])):n}};return{top:(r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+((this.cssPosition==="fixed"?-this.scrollParent.scrollTop():(a?0:h.scrollTop())))),left:(o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+((this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():a?0:h.scrollLeft())))}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction==="down"?e.item[0]:e.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){if(n===this.counter){this.refreshPositions(!s)}})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)};this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(i in this._storedCSS){if(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static"){this._storedCSS[i]=""}};this.currentItem.css(this._storedCSS);this._removeClass(this.currentItem,"ui-sortable-helper")}
+else{this.currentItem.show()};if(this.fromOutside&&!e){s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})};if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!e){s.push(function(t){this._trigger("update",t,this._uiHash())})};if(this!==this.currentContainer){if(!e){s.push(function(t){this._trigger("remove",t,this._uiHash())});s.push((function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}).call(this,this.currentContainer));s.push((function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}).call(this,this.currentContainer))}};function n(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}};for(i=this.containers.length-1;i>=0;i--){if(!e){s.push(n("deactivate",this,this.containers[i]))};if(this.containers[i].containerCache.over){s.push(n("out",this,this.containers[i]));this.containers[i].containerCache.over=0}};if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()};if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)};if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)};this.dragging=!1;if(!e){this._trigger("beforeStop",t,this._uiHash())};this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove()};this.helper=null};if(!e){for(i=0;i<s.length;i++){s[i].call(this,t)};this._trigger("stop",t,this._uiHash())};this.fromOutside=!1;return!this.cancelHelperRemoval},_trigger:function(){if(t.Widget.prototype._trigger.apply(this,arguments)===!1){this.cancel()}},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}));
+/* ./modules/cms-ui/themes/default/script/plugin/jquery-plugin-orSearch.min.js */;jQuery.fn.orSearch=function(n){var a=$.extend({'dropdown':'unknown'},n);return $(this).keyup(function(){var n=$(this).val();if(n.length>3){$(a.dropdown).html('');$.ajax({'type':'GET',url:'./api/?action=search&subaction=quicksearch&output=json&search='+n,data:null,success:function(t,e,d){for(id in t.output.result){var n=t.output.result[id];$(a.dropdown).append('<div class="entry clickable" title="'+n.desc+'"><a href="javascript:void(0);" data-type="open" data-name="'+n.name+'" data-action="'+n.type+'" data-id="'+n.id+'"><img src="'+OR_THEMES_EXT_DIR+'default/images/icon_'+n.type+'.png" />'+n.name+'</a></div>')};$(a.dropdown).orLinkify()}});$(a.dropdown).fadeIn()}
+else{$(a.dropdown).fadeOut()}})};
+/* ./modules/cms-ui/themes/default/script/plugin/jquery-plugin-orLinkify.min.js */;jQuery.fn.orLinkify=function(){return $(this).click(function(){$(this).find('a').first().each(function(){var t=$(this).attr('data-type');if($(this).parent().hasClass('inactive'))return;if(t=='post'){submitLink(this,$(this).attr('data-data'))}
+else if(t=='view'){alert('Error: Link type = view not supported.')}
+else if(t=='modal'){alert('Error: Link type = modal not supported.');startDialog($(this).attr('data-name'),null,$(this).attr('data-method'))}
+else if(t=='dialog'){startDialog($(this).attr('data-name'),$(this).attr('data-action'),$(this).attr('data-method'),$(this).attr('data-id'),$(this).attr('data-extra'))}
else if(t=='url'){submitUrl(this,$(this).attr('data-url'))}
else if(t=='external'){window.open($(this).attr('data-url'),' _blank')}
else if(t=='popup'){window.open($(this).attr('data-url'),'Popup','location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=yes')}
else if(t=='help'){help(this,$(this).attr('data-url'),$(this).attr('data-suffix'))}
else if(t=='fullscreen'){fullscreen(this)}
-else if(t=='open'){openNewAction($(this).attr('data-name'),$(this).attr('data-action'),$(this).attr('data-id'),0)}
-else{alert('Fatal: Cannot open link: '+$(this).html())}})})};;jQuery.fn.orTree=function(t){var e=$.extend({'onSelect':function(){},'type':'root','id':0,'extraId':Array(),'selectable':Array()},t);$(this).each(function(r,t){$(t).closest('div.content').addClass('loader');var i='./api/?action=tree&subaction=loadBranch&id='+e.id+'&type='+e.type+'&output=json';if(typeof e.extraId==='string'){jQuery.each(jQuery.parseJSON(e.extraId),function(e,t){i=i+'&'+e+'='+t})}
+else if(t=='open'){openNewAction($(this).attr('data-name'),$(this).attr('data-action'),$(this).attr('data-id'),$(this).attr('data-extra'))}
+else{alert('Fatal: Cannot open link: '+$(this).html())}})})};
+/* ./modules/cms-ui/themes/default/script/plugin/jquery-plugin-orTree.min.js */;jQuery.fn.orTree=function(t){var e=$.extend({'onSelect':function(){},'type':'root','id':0,'extraId':Array(),'selectable':Array()},t);$(this).each(function(r,t){$(t).closest('div.content').addClass('loader');var i='./api/?action=tree&subaction=loadBranch&id='+e.id+'&type='+e.type+'&output=json';if(typeof e.extraId==='string'){jQuery.each(jQuery.parseJSON(e.extraId),function(e,t){i=i+'&'+e+'='+t})}
else if(typeof e.extraId==='object'){jQuery.each(e.extraId,function(e,t){i=i+'&'+e+'='+t})}
-else{};$.getJSON(i,function(a){$(t).append('<ul class="tree"/>');var r=$(t).children('ul').first(),i=a['output'];$.each(i['branch'],function(a,t){if(!t.action||t.action=='folder'||e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1){var i=$('<li class="object" data-id="'+t.internalId+'" data-type="'+t.type+'"><div class="tree"><div class="arrow"></div></div><a href="./?action='+t.type+'&id='+t.internalId+'" class="entry" data-extra="'+JSON.stringify(t.extraId).replace(/"/g,'\'')+'" data-id="'+t.internalId+'" data-type="'+t.type+'" title="'+t.description+'"><img src="modules/cms-ui/themes/default/images/icon_'+t['icon']+'.png" />'+t.text+'</a></li>');$(r).append(i);if(t.type){$(i).children('div.tree').addClass('closed').find('.arrow').addClass('arrow-right');$(i).children('div.tree').click(function(){$(this).parent().orTree({type:t.type,id:t.internalId,extraId:t.extraId,onSelect:e.onSelect,selectable:e.selectable})})};if(t.action&&(e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1)){$(i).children('.entry').click(function(a){a.preventDefault();$(this).closest('div.content').find('.entry').removeClass('selected');$(this).addClass('selected');e.onSelect($(this).text(),t.action,t.id,t.extraId)})};if($(i).parents('ul.tree').length<=1){$(i).children('div.tree').click()}}});$(r).slideDown('fast')}).fail(function(){}).always(function(){$(t).closest('div.content').removeClass('loader')});$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('closed').addClass('open').find('.arrow').removeClass('arrow-right').addClass('arrow-down');$(t).children('div.tree').click(function(t){a($(t.delegateTarget).parent(),e.type,e.id,e.extraId)})});function a(t,a,r,i){$(t).children('ul').slideUp('fast',function(){$(t).children('ul').remove();$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('open').addClass('closed').find('.arrow').removeClass('arrow-down').addClass('arrow arrow-right');$(t).children('div.tree').click(function(){$(this).parent().orTree({type:a,id:r,extraId:i,onSelect:e.onSelect,selectable:e.selectable})})})}};;jQuery.fn.orLoadView=function(){$(this).each(function(d,s){var t=$(this).data('method'),a=$(this).data('action'),e=$(this).data('id'),i=$(this).closest('div.panel');i.find('ul.views li.active').removeClass('active');$(this).addClass('active');loadView(i.find('div.content'),a,t,e)})};;jQuery.fn.orAutoheight=function(){var t=function(t){var n=$(t).val().split('\n').length;$(t).attr('rows',n+3)};$(this).each(function(n){t(this)});return $(this).keypress(function(){t(this)})};/*! jquery-qrcode v0.14.0 - https://larsjung.de/jquery-qrcode/ */
-!function(r){"use strict";function t(t,e,n,o){function a(r,t){return r-=o,t-=o,0>r||r>=c||0>t||t>=c?!1:f.isDark(r,t)}function i(r,t,e,n){var o=u.isDark,a=1/l;u.isDark=function(i,u){var f=u*a,c=i*a,l=f+a,g=c+a;return o(i,u)&&(r>l||f>e||t>g||c>n)}}var u={},f=r(n,e);f.addData(t),f.make(),o=o||0;var c=f.getModuleCount(),l=f.getModuleCount()+2*o;return u.text=t,u.level=e,u.version=n,u.moduleCount=l,u.isDark=a,u.addBlank=i,u}function e(r,e,n,o,a){n=Math.max(1,n||1),o=Math.min(40,o||40);for(var i=n;o>=i;i+=1)try{return t(r,e,i,a)}catch(u){}}function n(r,t,e){var n=e.size,o="bold "+e.mSize*n+"px "+e.fontname,a=w("<canvas/>")[0].getContext("2d");a.font=o;var i=a.measureText(e.label).width,u=e.mSize,f=i/n,c=(1-f)*e.mPosX,l=(1-u)*e.mPosY,g=c+f,s=l+u,v=.01;1===e.mode?r.addBlank(0,l-v,n,s+v):r.addBlank(c-v,l-v,g+v,s+v),t.fillStyle=e.fontcolor,t.font=o,t.fillText(e.label,c*n,l*n+.75*e.mSize*n)}function o(r,t,e){var n=e.size,o=e.image.naturalWidth||1,a=e.image.naturalHeight||1,i=e.mSize,u=i*o/a,f=(1-u)*e.mPosX,c=(1-i)*e.mPosY,l=f+u,g=c+i,s=.01;3===e.mode?r.addBlank(0,c-s,n,g+s):r.addBlank(f-s,c-s,l+s,g+s),t.drawImage(e.image,f*n,c*n,u*n,i*n)}function a(r,t,e){w(e.background).is("img")?t.drawImage(e.background,0,0,e.size,e.size):e.background&&(t.fillStyle=e.background,t.fillRect(e.left,e.top,e.size,e.size));var a=e.mode;1===a||2===a?n(r,t,e):(3===a||4===a)&&o(r,t,e)}function i(r,t,e,n,o,a,i,u){r.isDark(i,u)&&t.rect(n,o,a,a)}function u(r,t,e,n,o,a,i,u,f,c){i?r.moveTo(t+a,e):r.moveTo(t,e),u?(r.lineTo(n-a,e),r.arcTo(n,e,n,o,a)):r.lineTo(n,e),f?(r.lineTo(n,o-a),r.arcTo(n,o,t,o,a)):r.lineTo(n,o),c?(r.lineTo(t+a,o),r.arcTo(t,o,t,e,a)):r.lineTo(t,o),i?(r.lineTo(t,e+a),r.arcTo(t,e,n,e,a)):r.lineTo(t,e)}function f(r,t,e,n,o,a,i,u,f,c){i&&(r.moveTo(t+a,e),r.lineTo(t,e),r.lineTo(t,e+a),r.arcTo(t,e,t+a,e,a)),u&&(r.moveTo(n-a,e),r.lineTo(n,e),r.lineTo(n,e+a),r.arcTo(n,e,n-a,e,a)),f&&(r.moveTo(n-a,o),r.lineTo(n,o),r.lineTo(n,o-a),r.arcTo(n,o,n-a,o,a)),c&&(r.moveTo(t+a,o),r.lineTo(t,o),r.lineTo(t,o-a),r.arcTo(t,o,t+a,o,a))}function c(r,t,e,n,o,a,i,c){var l=r.isDark,g=n+a,s=o+a,v=e.radius*a,h=i-1,d=i+1,w=c-1,m=c+1,y=l(i,c),T=l(h,w),p=l(h,c),B=l(h,m),A=l(i,m),E=l(d,m),k=l(d,c),M=l(d,w),C=l(i,w);y?u(t,n,o,g,s,v,!p&&!C,!p&&!A,!k&&!A,!k&&!C):f(t,n,o,g,s,v,p&&C&&T,p&&A&&B,k&&A&&E,k&&C&&M)}function l(r,t,e){var n,o,a=r.moduleCount,u=e.size/a,f=i;for(e.radius>0&&e.radius<=.5&&(f=c),t.beginPath(),n=0;a>n;n+=1)for(o=0;a>o;o+=1){var l=e.left+o*u,g=e.top+n*u,s=u;f(r,t,e,l,g,s,n,o)}if(w(e.fill).is("img")){t.strokeStyle="rgba(0,0,0,0.5)",t.lineWidth=2,t.stroke();var v=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",t.fill(),t.globalCompositeOperation=v,t.clip(),t.drawImage(e.fill,0,0,e.size,e.size),t.restore()}else t.fillStyle=e.fill,t.fill()}function g(r,t){var n=e(t.text,t.ecLevel,t.minVersion,t.maxVersion,t.quiet);if(!n)return null;var o=w(r).data("qrcode",n),i=o[0].getContext("2d");return a(n,i,t),l(n,i,t),o}function s(r){var t=w("<canvas/>").attr("width",r.size).attr("height",r.size);return g(t,r)}function v(r){return w("<img/>").attr("src",s(r)[0].toDataURL("image/png"))}function h(r){var t=e(r.text,r.ecLevel,r.minVersion,r.maxVersion,r.quiet);if(!t)return null;var n,o,a=r.size,i=r.background,u=Math.floor,f=t.moduleCount,c=u(a/f),l=u(.5*(a-c*f)),g={position:"relative",left:0,top:0,padding:0,margin:0,width:a,height:a},s={position:"absolute",padding:0,margin:0,width:c,height:c,"background-color":r.fill},v=w("<div/>").data("qrcode",t).css(g);for(i&&v.css("background-color",i),n=0;f>n;n+=1)for(o=0;f>o;o+=1)t.isDark(n,o)&&w("<div/>").css(s).css({left:l+o*c,top:l+n*c}).appendTo(v);return v}function d(r){return m&&"canvas"===r.render?s(r):m&&"image"===r.render?v(r):h(r)}var w=window.jQuery,m=function(){var r=document.createElement("canvas");return!(!r.getContext||!r.getContext("2d"))}(),y={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};w.fn.qrcode=function(r){var t=w.extend({},y,r);return this.each(function(r,e){"canvas"===e.nodeName.toLowerCase()?g(e,t):w(e).append(d(t))})}}(function(){var r=function(){function r(t,e){if("undefined"==typeof t.length)throw new Error(t.length+"/"+e);var n=function(){for(var r=0;r<t.length&&0==t[r];)r+=1;for(var n=new Array(t.length-r+e),o=0;o<t.length-r;o+=1)n[o]=t[o+r];return n}(),o={};return o.getAt=function(r){return n[r]},o.getLength=function(){return n.length},o.multiply=function(t){for(var e=new Array(o.getLength()+t.getLength()-1),n=0;n<o.getLength();n+=1)for(var a=0;a<t.getLength();a+=1)e[n+a]^=i.gexp(i.glog(o.getAt(n))+i.glog(t.getAt(a)));return r(e,0)},o.mod=function(t){if(o.getLength()-t.getLength()<0)return o;for(var e=i.glog(o.getAt(0))-i.glog(t.getAt(0)),n=new Array(o.getLength()),a=0;a<o.getLength();a+=1)n[a]=o.getAt(a);for(var a=0;a<t.getLength();a+=1)n[a]^=i.gexp(i.glog(t.getAt(a))+e);return r(n,0).mod(t)},o}var t=function(t,e){var o=236,i=17,l=t,g=n[e],s=null,v=0,d=null,w=new Array,m={},y=function(r,t){v=4*l+17,s=function(r){for(var t=new Array(r),e=0;r>e;e+=1){t[e]=new Array(r);for(var n=0;r>n;n+=1)t[e][n]=null}return t}(v),T(0,0),T(v-7,0),T(0,v-7),A(),B(),k(r,t),l>=7&&E(r),null==d&&(d=D(l,g,w)),M(d,t)},T=function(r,t){for(var e=-1;7>=e;e+=1)if(!(-1>=r+e||r+e>=v))for(var n=-1;7>=n;n+=1)-1>=t+n||t+n>=v||(e>=0&&6>=e&&(0==n||6==n)||n>=0&&6>=n&&(0==e||6==e)||e>=2&&4>=e&&n>=2&&4>=n?s[r+e][t+n]=!0:s[r+e][t+n]=!1)},p=function(){for(var r=0,t=0,e=0;8>e;e+=1){y(!0,e);var n=a.getLostPoint(m);(0==e||r>n)&&(r=n,t=e)}return t},B=function(){for(var r=8;v-8>r;r+=1)null==s[r][6]&&(s[r][6]=r%2==0);for(var t=8;v-8>t;t+=1)null==s[6][t]&&(s[6][t]=t%2==0)},A=function(){for(var r=a.getPatternPosition(l),t=0;t<r.length;t+=1)for(var e=0;e<r.length;e+=1){var n=r[t],o=r[e];if(null==s[n][o])for(var i=-2;2>=i;i+=1)for(var u=-2;2>=u;u+=1)-2==i||2==i||-2==u||2==u||0==i&&0==u?s[n+i][o+u]=!0:s[n+i][o+u]=!1}},E=function(r){for(var t=a.getBCHTypeNumber(l),e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);s[Math.floor(e/3)][e%3+v-8-3]=n}for(var e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);s[e%3+v-8-3][Math.floor(e/3)]=n}},k=function(r,t){for(var e=g<<3|t,n=a.getBCHTypeInfo(e),o=0;15>o;o+=1){var i=!r&&1==(n>>o&1);6>o?s[o][8]=i:8>o?s[o+1][8]=i:s[v-15+o][8]=i}for(var o=0;15>o;o+=1){var i=!r&&1==(n>>o&1);8>o?s[8][v-o-1]=i:9>o?s[8][15-o-1+1]=i:s[8][15-o-1]=i}s[v-8][8]=!r},M=function(r,t){for(var e=-1,n=v-1,o=7,i=0,u=a.getMaskFunction(t),f=v-1;f>0;f-=2)for(6==f&&(f-=1);;){for(var c=0;2>c;c+=1)if(null==s[n][f-c]){var l=!1;i<r.length&&(l=1==(r[i]>>>o&1));var g=u(n,f-c);g&&(l=!l),s[n][f-c]=l,o-=1,-1==o&&(i+=1,o=7)}if(n+=e,0>n||n>=v){n-=e,e=-e;break}}},C=function(t,e){for(var n=0,o=0,i=0,u=new Array(e.length),f=new Array(e.length),c=0;c<e.length;c+=1){var l=e[c].dataCount,g=e[c].totalCount-l;o=Math.max(o,l),i=Math.max(i,g),u[c]=new Array(l);for(var s=0;s<u[c].length;s+=1)u[c][s]=255&t.getBuffer()[s+n];n+=l;var v=a.getErrorCorrectPolynomial(g),h=r(u[c],v.getLength()-1),d=h.mod(v);f[c]=new Array(v.getLength()-1);for(var s=0;s<f[c].length;s+=1){var w=s+d.getLength()-f[c].length;f[c][s]=w>=0?d.getAt(w):0}}for(var m=0,s=0;s<e.length;s+=1)m+=e[s].totalCount;for(var y=new Array(m),T=0,s=0;o>s;s+=1)for(var c=0;c<e.length;c+=1)s<u[c].length&&(y[T]=u[c][s],T+=1);for(var s=0;i>s;s+=1)for(var c=0;c<e.length;c+=1)s<f[c].length&&(y[T]=f[c][s],T+=1);return y},D=function(r,t,e){for(var n=u.getRSBlocks(r,t),c=f(),l=0;l<e.length;l+=1){var g=e[l];c.put(g.getMode(),4),c.put(g.getLength(),a.getLengthInBits(g.getMode(),r)),g.write(c)}for(var s=0,l=0;l<n.length;l+=1)s+=n[l].dataCount;if(c.getLengthInBits()>8*s)throw new Error("code length overflow. ("+c.getLengthInBits()+">"+8*s+")");for(c.getLengthInBits()+4<=8*s&&c.put(0,4);c.getLengthInBits()%8!=0;)c.putBit(!1);for(;;){if(c.getLengthInBits()>=8*s)break;if(c.put(o,8),c.getLengthInBits()>=8*s)break;c.put(i,8)}return C(c,n)};return m.addData=function(r){var t=c(r);w.push(t),d=null},m.isDark=function(r,t){if(0>r||r>=v||0>t||t>=v)throw new Error(r+","+t);return s[r][t]},m.getModuleCount=function(){return v},m.make=function(){y(!1,p())},m.createTableTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e="";e+='<table style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: "+t+"px;",e+='">',e+="<tbody>";for(var n=0;n<m.getModuleCount();n+=1){e+="<tr>";for(var o=0;o<m.getModuleCount();o+=1)e+='<td style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: 0px;",e+=" width: "+r+"px;",e+=" height: "+r+"px;",e+=" background-color: ",e+=m.isDark(n,o)?"#000000":"#ffffff",e+=";",e+='"/>';e+="</tr>"}return e+="</tbody>",e+="</table>"},m.createImgTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e=m.getModuleCount()*r+2*t,n=t,o=e-t;return h(e,e,function(t,e){if(t>=n&&o>t&&e>=n&&o>e){var a=Math.floor((t-n)/r),i=Math.floor((e-n)/r);return m.isDark(i,a)?0:1}return 1})},m};t.stringToBytes=function(r){for(var t=new Array,e=0;e<r.length;e+=1){var n=r.charCodeAt(e);t.push(255&n)}return t},t.createStringToBytes=function(r,t){var e=function(){for(var e=s(r),n=function(){var r=e.read();if(-1==r)throw new Error;return r},o=0,a={};;){var i=e.read();if(-1==i)break;var u=n(),f=n(),c=n(),l=String.fromCharCode(i<<8|u),g=f<<8|c;a[l]=g,o+=1}if(o!=t)throw new Error(o+" != "+t);return a}(),n="?".charCodeAt(0);return function(r){for(var t=new Array,o=0;o<r.length;o+=1){var a=r.charCodeAt(o);if(128>a)t.push(a);else{var i=e[r.charAt(o)];"number"==typeof i?(255&i)==i?t.push(i):(t.push(i>>>8),t.push(255&i)):t.push(n)}}return t}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,a=7973,u=21522,f={},c=function(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t};return f.getBCHTypeInfo=function(r){for(var t=r<<10;c(t)-c(n)>=0;)t^=n<<c(t)-c(n);return(r<<10|t)^u},f.getBCHTypeNumber=function(r){for(var t=r<<12;c(t)-c(a)>=0;)t^=a<<c(t)-c(a);return r<<12|t},f.getPatternPosition=function(r){return t[r-1]},f.getMaskFunction=function(r){switch(r){case o.PATTERN000:return function(r,t){return(r+t)%2==0};case o.PATTERN001:return function(r,t){return r%2==0};case o.PATTERN010:return function(r,t){return t%3==0};case o.PATTERN011:return function(r,t){return(r+t)%3==0};case o.PATTERN100:return function(r,t){return(Math.floor(r/2)+Math.floor(t/3))%2==0};case o.PATTERN101:return function(r,t){return r*t%2+r*t%3==0};case o.PATTERN110:return function(r,t){return(r*t%2+r*t%3)%2==0};case o.PATTERN111:return function(r,t){return(r*t%3+(r+t)%2)%2==0};default:throw new Error("bad maskPattern:"+r)}},f.getErrorCorrectPolynomial=function(t){for(var e=r([1],0),n=0;t>n;n+=1)e=e.multiply(r([1,i.gexp(n)],0));return e},f.getLengthInBits=function(r,t){if(t>=1&&10>t)switch(r){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(27>t)switch(r){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else{if(!(41>t))throw new Error("type:"+t);switch(r){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}}},f.getLostPoint=function(r){for(var t=r.getModuleCount(),e=0,n=0;t>n;n+=1)for(var o=0;t>o;o+=1){for(var a=0,i=r.isDark(n,o),u=-1;1>=u;u+=1)if(!(0>n+u||n+u>=t))for(var f=-1;1>=f;f+=1)0>o+f||o+f>=t||(0!=u||0!=f)&&i==r.isDark(n+u,o+f)&&(a+=1);a>5&&(e+=3+a-5)}for(var n=0;t-1>n;n+=1)for(var o=0;t-1>o;o+=1){var c=0;r.isDark(n,o)&&(c+=1),r.isDark(n+1,o)&&(c+=1),r.isDark(n,o+1)&&(c+=1),r.isDark(n+1,o+1)&&(c+=1),(0==c||4==c)&&(e+=3)}for(var n=0;t>n;n+=1)for(var o=0;t-6>o;o+=1)r.isDark(n,o)&&!r.isDark(n,o+1)&&r.isDark(n,o+2)&&r.isDark(n,o+3)&&r.isDark(n,o+4)&&!r.isDark(n,o+5)&&r.isDark(n,o+6)&&(e+=40);for(var o=0;t>o;o+=1)for(var n=0;t-6>n;n+=1)r.isDark(n,o)&&!r.isDark(n+1,o)&&r.isDark(n+2,o)&&r.isDark(n+3,o)&&r.isDark(n+4,o)&&!r.isDark(n+5,o)&&r.isDark(n+6,o)&&(e+=40);for(var l=0,o=0;t>o;o+=1)for(var n=0;t>n;n+=1)r.isDark(n,o)&&(l+=1);var g=Math.abs(100*l/t/t-50)/5;return e+=10*g},f}(),i=function(){for(var r=new Array(256),t=new Array(256),e=0;8>e;e+=1)r[e]=1<<e;for(var e=8;256>e;e+=1)r[e]=r[e-4]^r[e-5]^r[e-6]^r[e-8];for(var e=0;255>e;e+=1)t[r[e]]=e;var n={};return n.glog=function(r){if(1>r)throw new Error("glog("+r+")");return t[r]},n.gexp=function(t){for(;0>t;)t+=255;for(;t>=256;)t-=255;return r[t]},n}(),u=function(){var r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(r,t){var e={};return e.totalCount=r,e.dataCount=t,e},e={},o=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}};return e.getRSBlocks=function(r,e){var n=o(r,e);if("undefined"==typeof n)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+e);for(var a=n.length/3,i=new Array,u=0;a>u;u+=1)for(var f=n[3*u+0],c=n[3*u+1],l=n[3*u+2],g=0;f>g;g+=1)i.push(t(c,l));return i},e}(),f=function(){var r=new Array,t=0,e={};return e.getBuffer=function(){return r},e.getAt=function(t){var e=Math.floor(t/8);return 1==(r[e]>>>7-t%8&1)},e.put=function(r,t){for(var n=0;t>n;n+=1)e.putBit(1==(r>>>t-n-1&1))},e.getLengthInBits=function(){return t},e.putBit=function(e){var n=Math.floor(t/8);r.length<=n&&r.push(0),e&&(r[n]|=128>>>t%8),t+=1},e},c=function(r){var n=e.MODE_8BIT_BYTE,o=t.stringToBytes(r),a={};return a.getMode=function(){return n},a.getLength=function(r){return o.length},a.write=function(r){for(var t=0;t<o.length;t+=1)r.put(o[t],8)},a},l=function(){var r=new Array,t={};return t.writeByte=function(t){r.push(255&t)},t.writeShort=function(r){t.writeByte(r),t.writeByte(r>>>8)},t.writeBytes=function(r,e,n){e=e||0,n=n||r.length;for(var o=0;n>o;o+=1)t.writeByte(r[o+e])},t.writeString=function(r){for(var e=0;e<r.length;e+=1)t.writeByte(r.charCodeAt(e))},t.toByteArray=function(){return r},t.toString=function(){var t="";t+="[";for(var e=0;e<r.length;e+=1)e>0&&(t+=","),t+=r[e];return t+="]"},t},g=function(){var r=0,t=0,e=0,n="",o={},a=function(r){n+=String.fromCharCode(i(63&r))},i=function(r){if(0>r);else{if(26>r)return 65+r;if(52>r)return 97+(r-26);if(62>r)return 48+(r-52);if(62==r)return 43;if(63==r)return 47}throw new Error("n:"+r)};return o.writeByte=function(n){for(r=r<<8|255&n,t+=8,e+=1;t>=6;)a(r>>>t-6),t-=6},o.flush=function(){if(t>0&&(a(r<<6-t),r=0,t=0),e%3!=0)for(var o=3-e%3,i=0;o>i;i+=1)n+="="},o.toString=function(){return n},o},s=function(r){var t=r,e=0,n=0,o=0,a={};a.read=function(){for(;8>o;){if(e>=t.length){if(0==o)return-1;throw new Error("unexpected end of file./"+o)}var r=t.charAt(e);if(e+=1,"="==r)return o=0,-1;r.match(/^\s$/)||(n=n<<6|i(r.charCodeAt(0)),o+=6)}var a=n>>>o-8&255;return o-=8,a};var i=function(r){if(r>=65&&90>=r)return r-65;if(r>=97&&122>=r)return r-97+26;if(r>=48&&57>=r)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new Error("c:"+r)};return a},v=function(r,t){var e=r,n=t,o=new Array(r*t),a={};a.setPixel=function(r,t,n){o[t*e+r]=n},a.write=function(r){r.writeString("GIF87a"),r.writeShort(e),r.writeShort(n),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(e),r.writeShort(n),r.writeByte(0);var t=2,o=u(t);r.writeByte(t);for(var a=0;o.length-a>255;)r.writeByte(255),r.writeBytes(o,a,255),a+=255;r.writeByte(o.length-a),r.writeBytes(o,a,o.length-a),r.writeByte(0),r.writeString(";")};var i=function(r){var t=r,e=0,n=0,o={};return o.write=function(r,o){if(r>>>o!=0)throw new Error("length over");for(;e+o>=8;)t.writeByte(255&(r<<e|n)),o-=8-e,r>>>=8-e,n=0,e=0;n=r<<e|n,e+=o},o.flush=function(){e>0&&t.writeByte(n)},o},u=function(r){for(var t=1<<r,e=(1<<r)+1,n=r+1,a=f(),u=0;t>u;u+=1)a.add(String.fromCharCode(u));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(e));var c=l(),g=i(c);g.write(t,n);var s=0,v=String.fromCharCode(o[s]);for(s+=1;s<o.length;){var h=String.fromCharCode(o[s]);s+=1,a.contains(v+h)?v+=h:(g.write(a.indexOf(v),n),a.size()<4095&&(a.size()==1<<n&&(n+=1),a.add(v+h)),v=h)}return g.write(a.indexOf(v),n),g.write(e,n),g.flush(),c.toByteArray()},f=function(){var r={},t=0,e={};return e.add=function(n){if(e.contains(n))throw new Error("dup key:"+n);r[n]=t,t+=1},e.size=function(){return t},e.indexOf=function(t){return r[t]},e.contains=function(t){return"undefined"!=typeof r[t]},e};return a},h=function(r,t,e,n){for(var o=v(r,t),a=0;t>a;a+=1)for(var i=0;r>i;i+=1)o.setPixel(i,a,e(i,a));var u=l();o.write(u);for(var f=g(),c=u.toByteArray(),s=0;s<c.length;s+=1)f.writeByte(c[s]);f.flush();var h="";return h+="<img",h+=' src="',h+="data:image/gif;base64,",h+=f,h+='"',h+=' width="',h+=r,h+='"',h+=' height="',h+=t,h+='"',n&&(h+=' alt="',h+=n,h+='"'),h+="/>"};return t}();return function(r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports&&(module.exports=r())}(function(){return r}),!function(r){r.stringToBytes=function(r){function t(r){for(var t=[],e=0;e<r.length;e++){var n=r.charCodeAt(e);128>n?t.push(n):2048>n?t.push(192|n>>6,128|63&n):55296>n||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&r.charCodeAt(e)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}return t(r)}}(r),r}());// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
-"use strict";
-
-CodeMirror.defineMode('smalltalk', function(config) {
-
- var specialChars = /[+\-\/\\*~<>=@%|&?!.,:;^]/;
- var keywords = /true|false|nil|self|super|thisContext/;
-
- var Context = function(tokenizer, parent) {
- this.next = tokenizer;
- this.parent = parent;
- };
-
- var Token = function(name, context, eos) {
- this.name = name;
- this.context = context;
- this.eos = eos;
- };
-
- var State = function() {
- this.context = new Context(next, null);
- this.expectVariable = true;
- this.indentation = 0;
- this.userIndentationDelta = 0;
- };
-
- State.prototype.userIndent = function(indentation) {
- this.userIndentationDelta = indentation > 0 ? (indentation / config.indentUnit - this.indentation) : 0;
- };
-
- var next = function(stream, context, state) {
- var token = new Token(null, context, false);
- var aChar = stream.next();
-
- if (aChar === '"') {
- token = nextComment(stream, new Context(nextComment, context));
-
- } else if (aChar === '\'') {
- token = nextString(stream, new Context(nextString, context));
-
- } else if (aChar === '#') {
- if (stream.peek() === '\'') {
- stream.next();
- token = nextSymbol(stream, new Context(nextSymbol, context));
- } else {
- if (stream.eatWhile(/[^\s.{}\[\]()]/))
- token.name = 'string-2';
- else
- token.name = 'meta';
- }
-
- } else if (aChar === '$') {
- if (stream.next() === '<') {
- stream.eatWhile(/[^\s>]/);
- stream.next();
- }
- token.name = 'string-2';
-
- } else if (aChar === '|' && state.expectVariable) {
- token.context = new Context(nextTemporaries, context);
-
- } else if (/[\[\]{}()]/.test(aChar)) {
- token.name = 'bracket';
- token.eos = /[\[{(]/.test(aChar);
-
- if (aChar === '[') {
- state.indentation++;
- } else if (aChar === ']') {
- state.indentation = Math.max(0, state.indentation - 1);
- }
-
- } else if (specialChars.test(aChar)) {
- stream.eatWhile(specialChars);
- token.name = 'operator';
- token.eos = aChar !== ';'; // ; cascaded message expression
-
- } else if (/\d/.test(aChar)) {
- stream.eatWhile(/[\w\d]/);
- token.name = 'number';
-
- } else if (/[\w_]/.test(aChar)) {
- stream.eatWhile(/[\w\d_]/);
- token.name = state.expectVariable ? (keywords.test(stream.current()) ? 'keyword' : 'variable') : null;
-
- } else {
- token.eos = state.expectVariable;
- }
-
- return token;
- };
-
- var nextComment = function(stream, context) {
- stream.eatWhile(/[^"]/);
- return new Token('comment', stream.eat('"') ? context.parent : context, true);
- };
-
- var nextString = function(stream, context) {
- stream.eatWhile(/[^']/);
- return new Token('string', stream.eat('\'') ? context.parent : context, false);
- };
-
- var nextSymbol = function(stream, context) {
- stream.eatWhile(/[^']/);
- return new Token('string-2', stream.eat('\'') ? context.parent : context, false);
- };
-
- var nextTemporaries = function(stream, context) {
- var token = new Token(null, context, false);
- var aChar = stream.next();
-
- if (aChar === '|') {
- token.context = context.parent;
- token.eos = true;
-
- } else {
- stream.eatWhile(/[^|]/);
- token.name = 'variable';
- }
-
- return token;
- };
-
- return {
- startState: function() {
- return new State;
- },
-
- token: function(stream, state) {
- state.userIndent(stream.indentation());
-
- if (stream.eatSpace()) {
- return null;
- }
-
- var token = state.context.next(stream, state.context, state);
- state.context = token.context;
- state.expectVariable = token.eos;
-
- return token.name;
- },
-
- blankLine: function(state) {
- state.userIndent(0);
- },
-
- indent: function(state, textAfter) {
- var i = state.context.next === next && textAfter && textAfter.charAt(0) === ']' ? -1 : state.userIndentationDelta;
- return (state.indentation + i) * config.indentUnit;
- },
-
- electricChars: ']'
- };
-
-});
-
-CodeMirror.defineMIME('text/x-stsrc', {name: 'smalltalk'});
-
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror", "../htmlmixed/htmlmixed", "../clike/clike"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
- "use strict";
-
- function keywords(str) {
- var obj = {}, words = str.split(" ");
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
- return obj;
- }
-
- // Helper for phpString
- function matchSequence(list, end, escapes) {
- if (list.length == 0) return phpString(end);
- return function (stream, state) {
- var patterns = list[0];
- for (var i = 0; i < patterns.length; i++) if (stream.match(patterns[i][0])) {
- state.tokenize = matchSequence(list.slice(1), end);
- return patterns[i][1];
- }
- state.tokenize = phpString(end, escapes);
- return "string";
- };
- }
- function phpString(closing, escapes) {
- return function(stream, state) { return phpString_(stream, state, closing, escapes); };
- }
- function phpString_(stream, state, closing, escapes) {
- // "Complex" syntax
- if (escapes !== false && stream.match("${", false) || stream.match("{$", false)) {
- state.tokenize = null;
- return "string";
- }
-
- // Simple syntax
- if (escapes !== false && stream.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)) {
- // After the variable name there may appear array or object operator.
- if (stream.match("[", false)) {
- // Match array operator
- state.tokenize = matchSequence([
- [["[", null]],
- [[/\d[\w\.]*/, "number"],
- [/\$[a-zA-Z_][a-zA-Z0-9_]*/, "variable-2"],
- [/[\w\$]+/, "variable"]],
- [["]", null]]
- ], closing, escapes);
- }
- if (stream.match(/\-\>\w/, false)) {
- // Match object operator
- state.tokenize = matchSequence([
- [["->", null]],
- [[/[\w]+/, "variable"]]
- ], closing, escapes);
- }
- return "variable-2";
- }
-
- var escaped = false;
- // Normal string
- while (!stream.eol() &&
- (escaped || escapes === false ||
- (!stream.match("{$", false) &&
- !stream.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/, false)))) {
- if (!escaped && stream.match(closing)) {
- state.tokenize = null;
- state.tokStack.pop(); state.tokStack.pop();
- break;
- }
- escaped = stream.next() == "\\" && !escaped;
- }
- return "string";
- }
-
- var phpKeywords = "abstract and array as break case catch class clone const continue declare default " +
- "do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final " +
- "for foreach function global goto if implements interface instanceof namespace " +
- "new or private protected public static switch throw trait try use var while xor " +
- "die echo empty exit eval include include_once isset list require require_once return " +
- "print unset __halt_compiler self static parent yield insteadof finally";
- var phpAtoms = "true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__";
- var phpBuiltin = "func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";
- CodeMirror.registerHelper("hintWords", "php", [phpKeywords, phpAtoms, phpBuiltin].join(" ").split(" "));
- CodeMirror.registerHelper("wordChars", "php", /[\w$]/);
-
- var phpConfig = {
- name: "clike",
- helperType: "php",
- keywords: keywords(phpKeywords),
- blockKeywords: keywords("catch do else elseif for foreach if switch try while finally"),
- defKeywords: keywords("class function interface namespace trait"),
- atoms: keywords(phpAtoms),
- builtin: keywords(phpBuiltin),
- multiLineStrings: true,
- hooks: {
- "$": function(stream) {
- stream.eatWhile(/[\w\$_]/);
- return "variable-2";
- },
- "<": function(stream, state) {
- var before;
- if (before = stream.match(/<<\s*/)) {
- var quoted = stream.eat(/['"]/);
- stream.eatWhile(/[\w\.]/);
- var delim = stream.current().slice(before[0].length + (quoted ? 2 : 1));
- if (quoted) stream.eat(quoted);
- if (delim) {
- (state.tokStack || (state.tokStack = [])).push(delim, 0);
- state.tokenize = phpString(delim, quoted != "'");
- return "string";
- }
- }
- return false;
- },
- "#": function(stream) {
- while (!stream.eol() && !stream.match("?>", false)) stream.next();
- return "comment";
- },
- "/": function(stream) {
- if (stream.eat("/")) {
- while (!stream.eol() && !stream.match("?>", false)) stream.next();
- return "comment";
- }
- return false;
- },
- '"': function(_stream, state) {
- (state.tokStack || (state.tokStack = [])).push('"', 0);
- state.tokenize = phpString('"');
- return "string";
- },
- "{": function(_stream, state) {
- if (state.tokStack && state.tokStack.length)
- state.tokStack[state.tokStack.length - 1]++;
- return false;
- },
- "}": function(_stream, state) {
- if (state.tokStack && state.tokStack.length > 0 &&
- !--state.tokStack[state.tokStack.length - 1]) {
- state.tokenize = phpString(state.tokStack[state.tokStack.length - 2]);
- }
- return false;
- }
- }
- };
-
- CodeMirror.defineMode("php", function(config, parserConfig) {
- var htmlMode = CodeMirror.getMode(config, (parserConfig && parserConfig.htmlMode) || "text/html");
- var phpMode = CodeMirror.getMode(config, phpConfig);
-
- function dispatch(stream, state) {
- var isPHP = state.curMode == phpMode;
- if (stream.sol() && state.pending && state.pending != '"' && state.pending != "'") state.pending = null;
- if (!isPHP) {
- if (stream.match(/^<\?\w*/)) {
- state.curMode = phpMode;
- if (!state.php) state.php = CodeMirror.startState(phpMode, htmlMode.indent(state.html, ""))
- state.curState = state.php;
- return "meta";
- }
- if (state.pending == '"' || state.pending == "'") {
- while (!stream.eol() && stream.next() != state.pending) {}
- var style = "string";
- } else if (state.pending && stream.pos < state.pending.end) {
- stream.pos = state.pending.end;
- var style = state.pending.style;
- } else {
- var style = htmlMode.token(stream, state.curState);
- }
- if (state.pending) state.pending = null;
- var cur = stream.current(), openPHP = cur.search(/<\?/), m;
- if (openPHP != -1) {
- if (style == "string" && (m = cur.match(/[\'\"]$/)) && !/\?>/.test(cur)) state.pending = m[0];
- else state.pending = {end: stream.pos, style: style};
- stream.backUp(cur.length - openPHP);
- }
- return style;
- } else if (isPHP && state.php.tokenize == null && stream.match("?>")) {
- state.curMode = htmlMode;
- state.curState = state.html;
- if (!state.php.context.prev) state.php = null;
- return "meta";
- } else {
- return phpMode.token(stream, state.curState);
- }
- }
-
- return {
- startState: function() {
- var html = CodeMirror.startState(htmlMode)
- var php = parserConfig.startOpen ? CodeMirror.startState(phpMode) : null
- return {html: html,
- php: php,
- curMode: parserConfig.startOpen ? phpMode : htmlMode,
- curState: parserConfig.startOpen ? php : html,
- pending: null};
- },
-
- copyState: function(state) {
- var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html),
- php = state.php, phpNew = php && CodeMirror.copyState(phpMode, php), cur;
- if (state.curMode == htmlMode) cur = htmlNew;
- else cur = phpNew;
- return {html: htmlNew, php: phpNew, curMode: state.curMode, curState: cur,
- pending: state.pending};
- },
-
- token: dispatch,
-
- indent: function(state, textAfter) {
- if ((state.curMode != phpMode && /^\s*<\//.test(textAfter)) ||
- (state.curMode == phpMode && /^\?>/.test(textAfter)))
- return htmlMode.indent(state.html, textAfter);
- return state.curMode.indent(state.curState, textAfter);
- },
-
- blockCommentStart: "/*",
- blockCommentEnd: "*/",
- lineComment: "//",
-
- innerMode: function(state) { return {state: state.curState, mode: state.curMode}; }
- };
- }, "htmlmixed", "clike");
-
- CodeMirror.defineMIME("application/x-httpd-php", "php");
- CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true});
- CodeMirror.defineMIME("text/x-php", phpConfig);
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-/**
- * Author: Gautam Mehta
- * Branched from CodeMirror's Scheme mode
- */
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
-"use strict";
-
-CodeMirror.defineMode("cobol", function () {
- var BUILTIN = "builtin", COMMENT = "comment", STRING = "string",
- ATOM = "atom", NUMBER = "number", KEYWORD = "keyword", MODTAG = "header",
- COBOLLINENUM = "def", PERIOD = "link";
- function makeKeywords(str) {
- var obj = {}, words = str.split(" ");
- for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
- return obj;
- }
- var atoms = makeKeywords("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES ");
- var keywords = makeKeywords(
- "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-JUSTIFY ROLLBACK ROLLING ROUNDED " +
- "RUN SAME SCREEN SD SEARCH " +
- "SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT " +
- "SELECT SEND SENTENCE SEPARATE SEQUENCE " +
- "SEQUENTIAL SET SHARED SIGN SIZE " +
- "SKIP1 SKIP2 SKIP3 SORT SORT-MERGE " +
- "SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL " +
- "SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 " +
- "START STARTING STATUS STOP STORE " +
- "STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA " +
- "SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS " +
- "SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT " +
- "TABLE TALLYING TAPE TENANT TERMINAL " +
- "TERMINATE TEST TEXT THAN THEN " +
- "THROUGH THRU TIME TIMES TITLE " +
- "TO TOP TRAILING TRAILING-SIGN TRANSACTION " +
- "TYPE TYPEDEF UNDERLINE UNEQUAL UNIT " +
- "UNSTRING UNTIL UP UPDATE UPON " +
- "USAGE USAGE-MODE USE USING VALID " +
- "VALIDATE VALUE VALUES VARYING VLR " +
- "WAIT WHEN WHEN-COMPILED WITH WITHIN " +
- "WORDS WORKING-STORAGE WRITE XML XML-CODE " +
- "XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL " );
-
- var builtins = makeKeywords("- * ** / + < <= = > >= ");
- var tests = {
- digit: /\d/,
- digit_or_colon: /[\d:]/,
- hex: /[0-9a-f]/i,
- sign: /[+-]/,
- exponent: /e/i,
- keyword_char: /[^\s\(\[\;\)\]]/,
- symbol: /[\w*+\-]/
- };
- function isNumber(ch, stream){
- // hex
- if ( ch === '0' && stream.eat(/x/i) ) {
- stream.eatWhile(tests.hex);
- return true;
- }
- // leading sign
- if ( ( ch == '+' || ch == '-' ) && ( tests.digit.test(stream.peek()) ) ) {
- stream.eat(tests.sign);
- ch = stream.next();
- }
- if ( tests.digit.test(ch) ) {
- stream.eat(ch);
- stream.eatWhile(tests.digit);
- if ( '.' == stream.peek()) {
- stream.eat('.');
- stream.eatWhile(tests.digit);
- }
- if ( stream.eat(tests.exponent) ) {
- stream.eat(tests.sign);
- stream.eatWhile(tests.digit);
- }
- return true;
- }
- return false;
- }
- return {
- startState: function () {
- return {
- indentStack: null,
- indentation: 0,
- mode: false
- };
- },
- token: function (stream, state) {
- if (state.indentStack == null && stream.sol()) {
- // update indentation, but only if indentStack is empty
- state.indentation = 6 ; //stream.indentation();
- }
- // skip spaces
- if (stream.eatSpace()) {
- return null;
- }
- var returnType = null;
- switch(state.mode){
- case "string": // multi-line string parsing mode
- var next = false;
- while ((next = stream.next()) != null) {
- if (next == "\"" || next == "\'") {
- state.mode = false;
- break;
- }
- }
- returnType = STRING; // continue on in string mode
- break;
- default: // default parsing mode
- var ch = stream.next();
- var col = stream.column();
- if (col >= 0 && col <= 5) {
- returnType = COBOLLINENUM;
- } else if (col >= 72 && col <= 79) {
- stream.skipToEnd();
- returnType = MODTAG;
- } else if (ch == "*" && col == 6) { // comment
- stream.skipToEnd(); // rest of the line is a comment
- returnType = COMMENT;
- } else if (ch == "\"" || ch == "\'") {
- state.mode = "string";
- returnType = STRING;
- } else if (ch == "'" && !( tests.digit_or_colon.test(stream.peek()) )) {
- returnType = ATOM;
- } else if (ch == ".") {
- returnType = PERIOD;
- } else if (isNumber(ch,stream)){
- returnType = NUMBER;
- } else {
- if (stream.current().match(tests.symbol)) {
- while (col < 71) {
- if (stream.eat(tests.symbol) === undefined) {
- break;
- } else {
- col++;
- }
- }
- }
- if (keywords && keywords.propertyIsEnumerable(stream.current().toUpperCase())) {
- returnType = KEYWORD;
- } else if (builtins && builtins.propertyIsEnumerable(stream.current().toUpperCase())) {
- returnType = BUILTIN;
- } else if (atoms && atoms.propertyIsEnumerable(stream.current().toUpperCase())) {
- returnType = ATOM;
- } else returnType = null;
- }
- }
- return returnType;
- },
- indent: function (state) {
- if (state.indentStack == null) return state.indentation;
- return state.indentStack.indent;
- }
- };
-});
-
-CodeMirror.defineMIME("text/x-cobol", "cobol");
-
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
-"use strict";
-
-CodeMirror.defineMode("haskell", function(_config, modeConfig) {
-
- function switchState(source, setState, f) {
- setState(f);
- return f(source, setState);
- }
-
- // These should all be Unicode extended, as per the Haskell 2010 report
- var smallRE = /[a-z_]/;
- var largeRE = /[A-Z]/;
- var digitRE = /\d/;
- var hexitRE = /[0-9A-Fa-f]/;
- var octitRE = /[0-7]/;
- var idRE = /[a-z_A-Z0-9'\xa1-\uffff]/;
- var symbolRE = /[-!#$%&*+.\/<=>?@\\^|~:]/;
- var specialRE = /[(),;[\]`{}]/;
- var whiteCharRE = /[ \t\v\f]/; // newlines are handled in tokenizer
-
- function normal(source, setState) {
- if (source.eatWhile(whiteCharRE)) {
- return null;
- }
-
- var ch = source.next();
- if (specialRE.test(ch)) {
- if (ch == '{' && source.eat('-')) {
- var t = "comment";
- if (source.eat('#')) {
- t = "meta";
- }
- return switchState(source, setState, ncomment(t, 1));
- }
- return null;
- }
-
- if (ch == '\'') {
- if (source.eat('\\')) {
- source.next(); // should handle other escapes here
- }
- else {
- source.next();
- }
- if (source.eat('\'')) {
- return "string";
- }
- return "string error";
- }
-
- if (ch == '"') {
- return switchState(source, setState, stringLiteral);
- }
-
- if (largeRE.test(ch)) {
- source.eatWhile(idRE);
- if (source.eat('.')) {
- return "qualifier";
- }
- return "variable-2";
- }
-
- if (smallRE.test(ch)) {
- source.eatWhile(idRE);
- return "variable";
- }
-
- if (digitRE.test(ch)) {
- if (ch == '0') {
- if (source.eat(/[xX]/)) {
- source.eatWhile(hexitRE); // should require at least 1
- return "integer";
- }
- if (source.eat(/[oO]/)) {
- source.eatWhile(octitRE); // should require at least 1
- return "number";
- }
- }
- source.eatWhile(digitRE);
- var t = "number";
- if (source.match(/^\.\d+/)) {
- t = "number";
- }
- if (source.eat(/[eE]/)) {
- t = "number";
- source.eat(/[-+]/);
- source.eatWhile(digitRE); // should require at least 1
- }
- return t;
- }
-
- if (ch == "." && source.eat("."))
- return "keyword";
-
- if (symbolRE.test(ch)) {
- if (ch == '-' && source.eat(/-/)) {
- source.eatWhile(/-/);
- if (!source.eat(symbolRE)) {
- source.skipToEnd();
- return "comment";
- }
- }
- var t = "variable";
- if (ch == ':') {
- t = "variable-2";
- }
- source.eatWhile(symbolRE);
- return t;
- }
-
- return "error";
- }
-
- function ncomment(type, nest) {
- if (nest == 0) {
- return normal;
- }
- return function(source, setState) {
- var currNest = nest;
- while (!source.eol()) {
- var ch = source.next();
- if (ch == '{' && source.eat('-')) {
- ++currNest;
- }
- else if (ch == '-' && source.eat('}')) {
- --currNest;
- if (currNest == 0) {
- setState(normal);
- return type;
- }
- }
- }
- setState(ncomment(type, currNest));
- return type;
- };
- }
-
- function stringLiteral(source, setState) {
- while (!source.eol()) {
- var ch = source.next();
- if (ch == '"') {
- setState(normal);
- return "string";
- }
- if (ch == '\\') {
- if (source.eol() || source.eat(whiteCharRE)) {
- setState(stringGap);
- return "string";
- }
- if (source.eat('&')) {
- }
- else {
- source.next(); // should handle other escapes here
- }
- }
- }
- setState(normal);
- return "string error";
- }
-
- function stringGap(source, setState) {
- if (source.eat('\\')) {
- return switchState(source, setState, stringLiteral);
- }
- source.next();
- setState(normal);
- return "error";
- }
-
-
- var wellKnownWords = (function() {
- var wkw = {};
- function setType(t) {
- return function () {
- for (var i = 0; i < arguments.length; i++)
- wkw[arguments[i]] = t;
- };
- }
-
- setType("keyword")(
- "case", "class", "data", "default", "deriving", "do", "else", "foreign",
- "if", "import", "in", "infix", "infixl", "infixr", "instance", "let",
- "module", "newtype", "of", "then", "type", "where", "_");
-
- setType("keyword")(
- "\.\.", ":", "::", "=", "\\", "<-", "->", "@", "~", "=>");
-
- setType("builtin")(
- "!!", "$!", "$", "&&", "+", "++", "-", ".", "/", "/=", "<", "<=", "=<<",
- "==", ">", ">=", ">>", ">>=", "^", "^^", "||", "*", "**");
-
- setType("builtin")(
- "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");
-
- setType("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",
- "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 override = modeConfig.overrideKeywords;
- if (override) for (var word in override) if (override.hasOwnProperty(word))
- wkw[word] = override[word];
-
- return wkw;
- })();
-
-
-
- return {
- startState: function () { return { f: normal }; },
- copyState: function (s) { return { f: s.f }; },
-
- token: function(stream, state) {
- var t = state.f(stream, function(s) { state.f = s; });
- var w = stream.current();
- return wellKnownWords.hasOwnProperty(w) ? wellKnownWords[w] : t;
- },
-
- blockCommentStart: "{-",
- blockCommentEnd: "-}",
- lineComment: "--"
- };
-
-});
-
-CodeMirror.defineMIME("text/x-haskell", "haskell");
-
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-// Mathematica mode copyright (c) 2015 by Calin Barbat
-// Based on code by Patrick Scheibe (halirutan)
-// See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js
-
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
-"use strict";
-
-CodeMirror.defineMode('mathematica', function(_config, _parserConfig) {
-
- // used pattern building blocks
- var Identifier = '[a-zA-Z\\$][a-zA-Z0-9\\$]*';
- var pBase = "(?:\\d+)";
- var pFloat = "(?:\\.\\d+|\\d+\\.\\d*|\\d+)";
- var pFloatBase = "(?:\\.\\w+|\\w+\\.\\w*|\\w+)";
- var pPrecision = "(?:`(?:`?"+pFloat+")?)";
-
- // regular expressions
- var reBaseForm = new RegExp('(?:'+pBase+'(?:\\^\\^'+pFloatBase+pPrecision+'?(?:\\*\\^[+-]?\\d+)?))');
- var reFloatForm = new RegExp('(?:' + pFloat + pPrecision + '?(?:\\*\\^[+-]?\\d+)?)');
- var reIdInContext = new RegExp('(?:`?)(?:' + Identifier + ')(?:`(?:' + Identifier + '))*(?:`?)');
-
- function tokenBase(stream, state) {
- var ch;
-
- // get next character
- ch = stream.next();
-
- // string
- if (ch === '"') {
- state.tokenize = tokenString;
- return state.tokenize(stream, state);
- }
-
- // comment
- if (ch === '(') {
- if (stream.eat('*')) {
- state.commentLevel++;
- state.tokenize = tokenComment;
- return state.tokenize(stream, state);
- }
- }
-
- // go back one character
- stream.backUp(1);
-
- // look for numbers
- // Numbers in a baseform
- if (stream.match(reBaseForm, true, false)) {
- return 'number';
- }
-
- // Mathematica numbers. Floats (1.2, .2, 1.) can have optionally a precision (`float) or an accuracy definition
- // (``float). Note: while 1.2` is possible 1.2`` is not. At the end an exponent (float*^+12) can follow.
- if (stream.match(reFloatForm, true, false)) {
- return 'number';
- }
-
- /* In[23] and Out[34] */
- if (stream.match(/(?:In|Out)\[[0-9]*\]/, true, false)) {
- return 'atom';
- }
-
- // usage
- if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::usage)/, true, false)) {
- return 'meta';
- }
-
- // message
- if (stream.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/, true, false)) {
- return 'string-2';
- }
-
- // this makes a look-ahead match for something like variable:{_Integer}
- // the match is then forwarded to the mma-patterns tokenizer.
- if (stream.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/, true, false)) {
- return 'variable-2';
- }
-
- // catch variables which are used together with Blank (_), BlankSequence (__) or BlankNullSequence (___)
- // Cannot start with a number, but can have numbers at any other position. Examples
- // blub__Integer, a1_, b34_Integer32
- if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) {
- return 'variable-2';
- }
- if (stream.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/, true, false)) {
- return 'variable-2';
- }
- if (stream.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/, true, false)) {
- return 'variable-2';
- }
-
- // Named characters in Mathematica, like \[Gamma].
- if (stream.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/, true, false)) {
- return 'variable-3';
- }
-
- // Match all braces separately
- if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) {
- return 'bracket';
- }
-
- // Catch Slots (#, ##, #3, ##9 and the V10 named slots #name). I have never seen someone using more than one digit after #, so we match
- // only one.
- if (stream.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/, true, false)) {
- return 'variable-2';
- }
-
- // Literals like variables, keywords, functions
- if (stream.match(reIdInContext, true, false)) {
- return 'keyword';
- }
-
- // operators. Note that operators like @@ or /; are matched separately for each symbol.
- if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/, true, false)) {
- return 'operator';
- }
-
- // everything else is an error
- stream.next(); // advance the stream.
- return 'error';
- }
-
- function tokenString(stream, state) {
- var next, end = false, escaped = false;
- while ((next = stream.next()) != null) {
- if (next === '"' && !escaped) {
- end = true;
- break;
- }
- escaped = !escaped && next === '\\';
- }
- if (end && !escaped) {
- state.tokenize = tokenBase;
- }
- return 'string';
- };
-
- function tokenComment(stream, state) {
- var prev, next;
- while(state.commentLevel > 0 && (next = stream.next()) != null) {
- if (prev === '(' && next === '*') state.commentLevel++;
- if (prev === '*' && next === ')') state.commentLevel--;
- prev = next;
- }
- if (state.commentLevel <= 0) {
- state.tokenize = tokenBase;
- }
- return 'comment';
- }
-
- return {
- startState: function() {return {tokenize: tokenBase, commentLevel: 0};},
- token: function(stream, state) {
- if (stream.eatSpace()) return null;
- return state.tokenize(stream, state);
- },
- blockCommentStart: "(*",
- blockCommentEnd: "*)"
- };
-});
-
-CodeMirror.defineMIME('text/x-mathematica', {
- name: 'mathematica'
-});
-
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-(function(mod) {
- if (typeof exports == "object" && typeof module == "object") // CommonJS
- mod(require("../../lib/codemirror"), require("../javascript/javascript"), require("../css/css"), require("../htmlmixed/htmlmixed"));
- else if (typeof define == "function" && define.amd) // AMD
- define(["../../lib/codemirror", "../javascript/javascript", "../css/css", "../htmlmixed/htmlmixed"], mod);
- else // Plain browser env
- mod(CodeMirror);
-})(function(CodeMirror) {
-"use strict";
-
-CodeMirror.defineMode("pug", function (config) {
- // token types
- var KEYWORD = 'keyword';
- var DOCTYPE = 'meta';
- var ID = 'builtin';
- var CLASS = 'qualifier';
-
- var ATTRS_NEST = {
- '{': '}',
- '(': ')',
- '[': ']'
- };
-
- var jsMode = CodeMirror.getMode(config, 'javascript');
-
- function State() {
- this.javaScriptLine = false;
- this.javaScriptLineExcludesColon = false;
-
- this.javaScriptArguments = false;
- this.javaScriptArgumentsDepth = 0;
-
- this.isInterpolating = false;
- this.interpolationNesting = 0;
-
- this.jsState = CodeMirror.startState(jsMode);
-
- this.restOfLine = '';
-
- this.isIncludeFiltered = false;
- this.isEach = false;
-
- this.lastTag = '';
- this.scriptType = '';
-
- // Attributes Mode
- this.isAttrs = false;
- this.attrsNest = [];
- this.inAttributeName = true;
- this.attributeIsType = false;
- this.attrValue = '';
-
- // Indented Mode
- this.indentOf = Infinity;
- this.indentToken = '';
-
- this.innerMode = null;
- this.innerState = null;
-
- this.innerModeForLine = false;
- }
- /**
- * Safely copy a state
- *
- * @return {State}
- */
- State.prototype.copy = function () {
- var res = new State();
- res.javaScriptLine = this.javaScriptLine;
- res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon;
- res.javaScriptArguments = this.javaScriptArguments;
- res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth;
- res.isInterpolating = this.isInterpolating;
- res.interpolationNesting = this.interpolationNesting;
-
- res.jsState = CodeMirror.copyState(jsMode, this.jsState);
-
- res.innerMode = this.innerMode;
- if (this.innerMode && this.innerState) {
- res.innerState = CodeMirror.copyState(this.innerMode, this.innerState);
- }
-
- res.restOfLine = this.restOfLine;
-
- res.isIncludeFiltered = this.isIncludeFiltered;
- res.isEach = this.isEach;
- res.lastTag = this.lastTag;
- res.scriptType = this.scriptType;
- res.isAttrs = this.isAttrs;
- res.attrsNest = this.attrsNest.slice();
- res.inAttributeName = this.inAttributeName;
- res.attributeIsType = this.attributeIsType;
- res.attrValue = this.attrValue;
- res.indentOf = this.indentOf;
- res.indentToken = this.indentToken;
-
- res.innerModeForLine = this.innerModeForLine;
-
- return res;
- };
-
- function javaScript(stream, state) {
- if (stream.sol()) {
- // if javaScriptLine was set at end of line, ignore it
- state.javaScriptLine = false;
- state.javaScriptLineExcludesColon = false;
- }
- if (state.javaScriptLine) {
- if (state.javaScriptLineExcludesColon && stream.peek() === ':') {
- state.javaScriptLine = false;
- state.javaScriptLineExcludesColon = false;
- return;
- }
- var tok = jsMode.token(stream, state.jsState);
- if (stream.eol()) state.javaScriptLine = false;
- return tok || true;
- }
- }
- function javaScriptArguments(stream, state) {
- if (state.javaScriptArguments) {
- if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') {
- state.javaScriptArguments = false;
- return;
- }
- if (stream.peek() === '(') {
- state.javaScriptArgumentsDepth++;
- } else if (stream.peek() === ')') {
- state.javaScriptArgumentsDepth--;
- }
- if (state.javaScriptArgumentsDepth === 0) {
- state.javaScriptArguments = false;
- return;
- }
-
- var tok = jsMode.token(stream, state.jsState);
- return tok || true;
- }
- }
-
- function yieldStatement(stream) {
- if (stream.match(/^yield\b/)) {
- return 'keyword';
- }
- }
-
- function doctype(stream) {
- if (stream.match(/^(?:doctype) *([^\n]+)?/)) {
- return DOCTYPE;
- }
- }
-
- function interpolation(stream, state) {
- if (stream.match('#{')) {
- state.isInterpolating = true;
- state.interpolationNesting = 0;
- return 'punctuation';
- }
- }
-
- function interpolationContinued(stream, state) {
- if (state.isInterpolating) {
- if (stream.peek() === '}') {
- state.interpolationNesting--;
- if (state.interpolationNesting < 0) {
- stream.next();
- state.isInterpolating = false;
- return 'punctuation';
- }
- } else if (stream.peek() === '{') {
- state.interpolationNesting++;
- }
- return jsMode.token(stream, state.jsState) || true;
- }
- }
-
- function caseStatement(stream, state) {
- if (stream.match(/^case\b/)) {
- state.javaScriptLine = true;
- return KEYWORD;
- }
- }
-
- function when(stream, state) {
- if (stream.match(/^when\b/)) {
- state.javaScriptLine = true;
- state.javaScriptLineExcludesColon = true;
- return KEYWORD;
- }
- }
-
- function defaultStatement(stream) {
- if (stream.match(/^default\b/)) {
- return KEYWORD;
- }
- }
-
- function extendsStatement(stream, state) {
- if (stream.match(/^extends?\b/)) {
- state.restOfLine = 'string';
- return KEYWORD;
- }
- }
-
- function append(stream, state) {
- if (stream.match(/^append\b/)) {
- state.restOfLine = 'variable';
- return KEYWORD;
- }
- }
- function prepend(stream, state) {
- if (stream.match(/^prepend\b/)) {
- state.restOfLine = 'variable';
- return KEYWORD;
- }
- }
- function block(stream, state) {
- if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) {
- state.restOfLine = 'variable';
- return KEYWORD;
- }
- }
-
- function include(stream, state) {
- if (stream.match(/^include\b/)) {
- state.restOfLine = 'string';
- return KEYWORD;
- }
- }
-
- function includeFiltered(stream, state) {
- if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) {
- state.isIncludeFiltered = true;
- return KEYWORD;
- }
- }
-
- function includeFilteredContinued(stream, state) {
- if (state.isIncludeFiltered) {
- var tok = filter(stream, state);
- state.isIncludeFiltered = false;
- state.restOfLine = 'string';
- return tok;
- }
- }
-
- function mixin(stream, state) {
- if (stream.match(/^mixin\b/)) {
- state.javaScriptLine = true;
- return KEYWORD;
- }
- }
-
- function call(stream, state) {
- if (stream.match(/^\+([-\w]+)/)) {
- if (!stream.match(/^\( *[-\w]+ *=/, false)) {
- state.javaScriptArguments = true;
- state.javaScriptArgumentsDepth = 0;
- }
- return 'variable';
- }
- if (stream.match(/^\+#{/, false)) {
- stream.next();
- state.mixinCallAfter = true;
- return interpolation(stream, state);
- }
- }
- function callArguments(stream, state) {
- if (state.mixinCallAfter) {
- state.mixinCallAfter = false;
- if (!stream.match(/^\( *[-\w]+ *=/, false)) {
- state.javaScriptArguments = true;
- state.javaScriptArgumentsDepth = 0;
- }
- return true;
- }
- }
-
- function conditional(stream, state) {
- if (stream.match(/^(if|unless|else if|else)\b/)) {
- state.javaScriptLine = true;
- return KEYWORD;
- }
- }
-
- function each(stream, state) {
- if (stream.match(/^(- *)?(each|for)\b/)) {
- state.isEach = true;
- return KEYWORD;
- }
- }
- function eachContinued(stream, state) {
- if (state.isEach) {
- if (stream.match(/^ in\b/)) {
- state.javaScriptLine = true;
- state.isEach = false;
- return KEYWORD;
- } else if (stream.sol() || stream.eol()) {
- state.isEach = false;
- } else if (stream.next()) {
- while (!stream.match(/^ in\b/, false) && stream.next());
- return 'variable';
- }
- }
- }
-
- function whileStatement(stream, state) {
- if (stream.match(/^while\b/)) {
- state.javaScriptLine = true;
- return KEYWORD;
- }
- }
-
- function tag(stream, state) {
- var captures;
- if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) {
- state.lastTag = captures[1].toLowerCase();
- if (state.lastTag === 'script') {
- state.scriptType = 'application/javascript';
- }
- return 'tag';
- }
- }
-
- function filter(stream, state) {
- if (stream.match(/^:([\w\-]+)/)) {
- var innerMode;
- if (config && config.innerModes) {
- innerMode = config.innerModes(stream.current().substring(1));
- }
- if (!innerMode) {
- innerMode = stream.current().substring(1);
- }
- if (typeof innerMode === 'string') {
- innerMode = CodeMirror.getMode(config, innerMode);
- }
- setInnerMode(stream, state, innerMode);
- return 'atom';
- }
- }
-
- function code(stream, state) {
- if (stream.match(/^(!?=|-)/)) {
- state.javaScriptLine = true;
- return 'punctuation';
- }
- }
-
- function id(stream) {
- if (stream.match(/^#([\w-]+)/)) {
- return ID;
- }
- }
-
- function className(stream) {
- if (stream.match(/^\.([\w-]+)/)) {
- return CLASS;
- }
- }
-
- function attrs(stream, state) {
- if (stream.peek() == '(') {
- stream.next();
- state.isAttrs = true;
- state.attrsNest = [];
- state.inAttributeName = true;
- state.attrValue = '';
- state.attributeIsType = false;
- return 'punctuation';
- }
- }
-
- function attrsContinued(stream, state) {
- if (state.isAttrs) {
- if (ATTRS_NEST[stream.peek()]) {
- state.attrsNest.push(ATTRS_NEST[stream.peek()]);
- }
- if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) {
- state.attrsNest.pop();
- } else if (stream.eat(')')) {
- state.isAttrs = false;
- return 'punctuation';
- }
- if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) {
- if (stream.peek() === '=' || stream.peek() === '!') {
- state.inAttributeName = false;
- state.jsState = CodeMirror.startState(jsMode);
- if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') {
- state.attributeIsType = true;
- } else {
- state.attributeIsType = false;
- }
- }
- return 'attribute';
- }
-
- var tok = jsMode.token(stream, state.jsState);
- if (state.attributeIsType && tok === 'string') {
- state.scriptType = stream.current().toString();
- }
- if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) {
- try {
- Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, ''));
- state.inAttributeName = true;
- state.attrValue = '';
- stream.backUp(stream.current().length);
- return attrsContinued(stream, state);
- } catch (ex) {
- //not the end of an attribute
- }
- }
- state.attrValue += stream.current();
- return tok || true;
- }
- }
-
- function attributesBlock(stream, state) {
- if (stream.match(/^&attributes\b/)) {
- state.javaScriptArguments = true;
- state.javaScriptArgumentsDepth = 0;
- return 'keyword';
- }
- }
-
- function indent(stream) {
- if (stream.sol() && stream.eatSpace()) {
- return 'indent';
- }
- }
-
- function comment(stream, state) {
- if (stream.match(/^ *\/\/(-)?([^\n]*)/)) {
- state.indentOf = stream.indentation();
- state.indentToken = 'comment';
- return 'comment';
- }
- }
-
- function colon(stream) {
- if (stream.match(/^: */)) {
- return 'colon';
- }
- }
-
- function text(stream, state) {
- if (stream.match(/^(?:\| ?| )([^\n]+)/)) {
- return 'string';
- }
- if (stream.match(/^(<[^\n]*)/, false)) {
- // html string
- setInnerMode(stream, state, 'htmlmixed');
- state.innerModeForLine = true;
- return innerMode(stream, state, true);
- }
- }
-
- function dot(stream, state) {
- if (stream.eat('.')) {
- var innerMode = null;
- if (state.lastTag === 'script' && state.scriptType.toLowerCase().indexOf('javascript') != -1) {
- innerMode = state.scriptType.toLowerCase().replace(/"|'/g, '');
- } else if (state.lastTag === 'style') {
- innerMode = 'css';
- }
- setInnerMode(stream, state, innerMode);
- return 'dot';
- }
- }
-
- function fail(stream) {
- stream.next();
- return null;
- }
-
-
- function setInnerMode(stream, state, mode) {
- mode = CodeMirror.mimeModes[mode] || mode;
- mode = config.innerModes ? config.innerModes(mode) || mode : mode;
- mode = CodeMirror.mimeModes[mode] || mode;
- mode = CodeMirror.getMode(config, mode);
- state.indentOf = stream.indentation();
-
- if (mode && mode.name !== 'null') {
- state.innerMode = mode;
- } else {
- state.indentToken = 'string';
- }
- }
- function innerMode(stream, state, force) {
- if (stream.indentation() > state.indentOf || (state.innerModeForLine && !stream.sol()) || force) {
- if (state.innerMode) {
- if (!state.innerState) {
- state.innerState = state.innerMode.startState ? CodeMirror.startState(state.innerMode, stream.indentation()) : {};
- }
- return stream.hideFirstChars(state.indentOf + 2, function () {
- return state.innerMode.token(stream, state.innerState) || true;
- });
- } else {
- stream.skipToEnd();
- return state.indentToken;
- }
- } else if (stream.sol()) {
- state.indentOf = Infinity;
- state.indentToken = null;
- state.innerMode = null;
- state.innerState = null;
- }
- }
- function restOfLine(stream, state) {
- if (stream.sol()) {
- // if restOfLine was set at end of line, ignore it
- state.restOfLine = '';
- }
- if (state.restOfLine) {
- stream.skipToEnd();
- var tok = state.restOfLine;
- state.restOfLine = '';
- return tok;
- }
- }
-
-
- function startState() {
- return new State();
- }
- function copyState(state) {
- return state.copy();
- }
- /**
- * Get the next token in the stream
- *
- * @param {Stream} stream
- * @param {State} state
- */
- function nextToken(stream, state) {
- var tok = innerMode(stream, state)
- || restOfLine(stream, state)
- || interpolationContinued(stream, state)
- || includeFilteredContinued(stream, state)
- || eachContinued(stream, state)
- || attrsContinued(stream, state)
- || javaScript(stream, state)
- || javaScriptArguments(stream, state)
- || callArguments(stream, state)
-
- || yieldStatement(stream, state)
- || doctype(stream, state)
- || interpolation(stream, state)
- || caseStatement(stream, state)
- || when(stream, state)
- || defaultStatement(stream, state)
- || extendsStatement(stream, state)
- || append(stream, state)
- || prepend(stream, state)
- || block(stream, state)
- || include(stream, state)
- || includeFiltered(stream, state)
- || mixin(stream, state)
- || call(stream, state)
- || conditional(stream, state)
- || each(stream, state)
- || whileStatement(stream, state)
- || tag(stream, state)
- || filter(stream, state)
- || code(stream, state)
- || id(stream, state)
- || className(stream, state)
- || attrs(stream, state)
- || attributesBlock(stream, state)
- || indent(stream, state)
- || text(stream, state)
- || comment(stream, state)
- || colon(stream, state)
- || dot(stream, state)
- || fail(stream, state);
-
- return tok === true ? null : tok;
- }
- return {
- startState: startState,
- copyState: copyState,
- token: nextToken
- };
-}, 'javascript', 'css', 'htmlmixed');
-
-CodeMirror.defineMIME('text/x-pug', 'pug');
-CodeMirror.defineMIME('text/x-jade', 'pug');
-
-});
-// CodeMirror, copyright (c) by Marijn Haverbeke and others
-// Distributed under an MIT license: http://codemirror.net/LICENSE
-
-/**
- * Link to the project's GitHub page:
- * https://github.com/duralog/CodeMirror
+else{};$.getJSON(i,function(a){$(t).append('<ul class="tree"/>');var r=$(t).children('ul').first(),i=a['output'];$.each(i['branch'],function(a,t){if(!t.action||t.action=='folder'||e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1){var i=$('<li class="object" data-id="'+t.internalId+'" data-type="'+t.type+'"><div class="tree"><div class="arrow"></div></div><a href="./?action='+t.action+'&id='+t.internalId+'" class="entry" data-extra="'+JSON.stringify(t.extraId).replace(/"/g,'\'')+'" data-id="'+t.internalId+'" data-type="'+t.type+'" title="'+t.description+'"><img src="modules/cms-ui/themes/default/images/icon_'+t['icon']+'.png" />'+t.text+'</a></li>');$(r).append(i);if(t.type){$(i).children('div.tree').addClass('closed').find('.arrow').addClass('arrow-right');$(i).children('div.tree').click(function(){$(this).parent().orTree({type:t.type,id:t.internalId,extraId:t.extraId,onSelect:e.onSelect,selectable:e.selectable})})};if(t.action&&(e.selectable.length==0||e.selectable[0]==''||jQuery.inArray(t.action,e.selectable)!=-1)){$(i).children('.entry').click(function(a){a.preventDefault();$(this).closest('div.content').find('.entry').removeClass('selected');$(this).addClass('selected');e.onSelect($(this).text(),t.action,t.id,t.extraId)})};if($(i).parents('ul.tree').length<=1){$(i).children('div.tree').click()}}});$(r).slideDown('fast')}).fail(function(){}).always(function(){$(t).closest('div.content').removeClass('loader')});$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('closed').addClass('open').find('.arrow').removeClass('arrow-right').addClass('arrow-down');$(t).children('div.tree').click(function(t){a($(t.delegateTarget).parent(),e.type,e.id,e.extraId)})});function a(t,a,r,i){$(t).children('ul').slideUp('fast',function(){$(t).children('ul').remove();$(t).children('div.tree').unbind('click');$(t).children('div.tree').removeClass('open').addClass('closed').find('.arrow').removeClass('arrow-down').addClass('arrow arrow-right');$(t).children('div.tree').click(function(){$(this).parent().orTree({type:a,id:r,extraId:i,onSelect:e.onSelect,selectable:e.selectable})})})}};
+/* ./modules/cms-ui/themes/default/script/plugin/jquery-plugin-orLoadView.min.js */;jQuery.fn.orLoadView=function(){$(this).each(function(d,s){var t=$(this).data('method'),a=$(this).data('action'),e=$(this).data('id'),i=$(this).closest('div.panel');i.find('ul.views li.active').removeClass('active');$(this).addClass('active');loadView(i.find('div.content'),a,t,e)})};
+/* ./modules/cms-ui/themes/default/script/plugin/jquery-plugin-orAutoheight.min.js */;jQuery.fn.orAutoheight=function(){var t=function(t){var n=$(t).val().split('\n').length;$(t).attr('rows',n+3)};$(this).each(function(n){t(this)});return $(this).keypress(function(){t(this)})};
+/* ./modules/cms-ui/themes/default/script/jquery-qrcode.min.js *//*! jquery-qrcode v0.14.0 - https://larsjung.de/jquery-qrcode/ */
+!function(r){"use strict";function t(t,e,n,o){function a(r,t){return r-=o,t-=o,0>r||r>=c||0>t||t>=c?!1:f.isDark(r,t)}function i(r,t,e,n){var o=u.isDark,a=1/l;u.isDark=function(i,u){var f=u*a,c=i*a,l=f+a,g=c+a;return o(i,u)&&(r>l||f>e||t>g||c>n)}}var u={},f=r(n,e);f.addData(t),f.make(),o=o||0;var c=f.getModuleCount(),l=f.getModuleCount()+2*o;return u.text=t,u.level=e,u.version=n,u.moduleCount=l,u.isDark=a,u.addBlank=i,u}function e(r,e,n,o,a){n=Math.max(1,n||1),o=Math.min(40,o||40);for(var i=n;o>=i;i+=1)try{return t(r,e,i,a)}catch(u){}}function n(r,t,e){var n=e.size,o="bold "+e.mSize*n+"px "+e.fontname,a=w("<canvas/>")[0].getContext("2d");a.font=o;var i=a.measureText(e.label).width,u=e.mSize,f=i/n,c=(1-f)*e.mPosX,l=(1-u)*e.mPosY,g=c+f,s=l+u,v=.01;1===e.mode?r.addBlank(0,l-v,n,s+v):r.addBlank(c-v,l-v,g+v,s+v),t.fillStyle=e.fontcolor,t.font=o,t.fillText(e.label,c*n,l*n+.75*e.mSize*n)}function o(r,t,e){var n=e.size,o=e.image.naturalWidth||1,a=e.image.naturalHeight||1,i=e.mSize,u=i*o/a,f=(1-u)*e.mPosX,c=(1-i)*e.mPosY,l=f+u,g=c+i,s=.01;3===e.mode?r.addBlank(0,c-s,n,g+s):r.addBlank(f-s,c-s,l+s,g+s),t.drawImage(e.image,f*n,c*n,u*n,i*n)}function a(r,t,e){w(e.background).is("img")?t.drawImage(e.background,0,0,e.size,e.size):e.background&&(t.fillStyle=e.background,t.fillRect(e.left,e.top,e.size,e.size));var a=e.mode;1===a||2===a?n(r,t,e):(3===a||4===a)&&o(r,t,e)}function i(r,t,e,n,o,a,i,u){r.isDark(i,u)&&t.rect(n,o,a,a)}function u(r,t,e,n,o,a,i,u,f,c){i?r.moveTo(t+a,e):r.moveTo(t,e),u?(r.lineTo(n-a,e),r.arcTo(n,e,n,o,a)):r.lineTo(n,e),f?(r.lineTo(n,o-a),r.arcTo(n,o,t,o,a)):r.lineTo(n,o),c?(r.lineTo(t+a,o),r.arcTo(t,o,t,e,a)):r.lineTo(t,o),i?(r.lineTo(t,e+a),r.arcTo(t,e,n,e,a)):r.lineTo(t,e)}function f(r,t,e,n,o,a,i,u,f,c){i&&(r.moveTo(t+a,e),r.lineTo(t,e),r.lineTo(t,e+a),r.arcTo(t,e,t+a,e,a)),u&&(r.moveTo(n-a,e),r.lineTo(n,e),r.lineTo(n,e+a),r.arcTo(n,e,n-a,e,a)),f&&(r.moveTo(n-a,o),r.lineTo(n,o),r.lineTo(n,o-a),r.arcTo(n,o,n-a,o,a)),c&&(r.moveTo(t+a,o),r.lineTo(t,o),r.lineTo(t,o-a),r.arcTo(t,o,t+a,o,a))}function c(r,t,e,n,o,a,i,c){var l=r.isDark,g=n+a,s=o+a,v=e.radius*a,h=i-1,d=i+1,w=c-1,m=c+1,y=l(i,c),T=l(h,w),p=l(h,c),B=l(h,m),A=l(i,m),E=l(d,m),k=l(d,c),M=l(d,w),C=l(i,w);y?u(t,n,o,g,s,v,!p&&!C,!p&&!A,!k&&!A,!k&&!C):f(t,n,o,g,s,v,p&&C&&T,p&&A&&B,k&&A&&E,k&&C&&M)}function l(r,t,e){var n,o,a=r.moduleCount,u=e.size/a,f=i;for(e.radius>0&&e.radius<=.5&&(f=c),t.beginPath(),n=0;a>n;n+=1)for(o=0;a>o;o+=1){var l=e.left+o*u,g=e.top+n*u,s=u;f(r,t,e,l,g,s,n,o)}if(w(e.fill).is("img")){t.strokeStyle="rgba(0,0,0,0.5)",t.lineWidth=2,t.stroke();var v=t.globalCompositeOperation;t.globalCompositeOperation="destination-out",t.fill(),t.globalCompositeOperation=v,t.clip(),t.drawImage(e.fill,0,0,e.size,e.size),t.restore()}else t.fillStyle=e.fill,t.fill()}function g(r,t){var n=e(t.text,t.ecLevel,t.minVersion,t.maxVersion,t.quiet);if(!n)return null;var o=w(r).data("qrcode",n),i=o[0].getContext("2d");return a(n,i,t),l(n,i,t),o}function s(r){var t=w("<canvas/>").attr("width",r.size).attr("height",r.size);return g(t,r)}function v(r){return w("<img/>").attr("src",s(r)[0].toDataURL("image/png"))}function h(r){var t=e(r.text,r.ecLevel,r.minVersion,r.maxVersion,r.quiet);if(!t)return null;var n,o,a=r.size,i=r.background,u=Math.floor,f=t.moduleCount,c=u(a/f),l=u(.5*(a-c*f)),g={position:"relative",left:0,top:0,padding:0,margin:0,width:a,height:a},s={position:"absolute",padding:0,margin:0,width:c,height:c,"background-color":r.fill},v=w("<div/>").data("qrcode",t).css(g);for(i&&v.css("background-color",i),n=0;f>n;n+=1)for(o=0;f>o;o+=1)t.isDark(n,o)&&w("<div/>").css(s).css({left:l+o*c,top:l+n*c}).appendTo(v);return v}function d(r){return m&&"canvas"===r.render?s(r):m&&"image"===r.render?v(r):h(r)}var w=window.jQuery,m=function(){var r=document.createElement("canvas");return!(!r.getContext||!r.getContext("2d"))}(),y={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};w.fn.qrcode=function(r){var t=w.extend({},y,r);return this.each(function(r,e){"canvas"===e.nodeName.toLowerCase()?g(e,t):w(e).append(d(t))})}}(function(){var r=function(){function r(t,e){if("undefined"==typeof t.length)throw new Error(t.length+"/"+e);var n=function(){for(var r=0;r<t.length&&0==t[r];)r+=1;for(var n=new Array(t.length-r+e),o=0;o<t.length-r;o+=1)n[o]=t[o+r];return n}(),o={};return o.getAt=function(r){return n[r]},o.getLength=function(){return n.length},o.multiply=function(t){for(var e=new Array(o.getLength()+t.getLength()-1),n=0;n<o.getLength();n+=1)for(var a=0;a<t.getLength();a+=1)e[n+a]^=i.gexp(i.glog(o.getAt(n))+i.glog(t.getAt(a)));return r(e,0)},o.mod=function(t){if(o.getLength()-t.getLength()<0)return o;for(var e=i.glog(o.getAt(0))-i.glog(t.getAt(0)),n=new Array(o.getLength()),a=0;a<o.getLength();a+=1)n[a]=o.getAt(a);for(var a=0;a<t.getLength();a+=1)n[a]^=i.gexp(i.glog(t.getAt(a))+e);return r(n,0).mod(t)},o}var t=function(t,e){var o=236,i=17,l=t,g=n[e],s=null,v=0,d=null,w=new Array,m={},y=function(r,t){v=4*l+17,s=function(r){for(var t=new Array(r),e=0;r>e;e+=1){t[e]=new Array(r);for(var n=0;r>n;n+=1)t[e][n]=null}return t}(v),T(0,0),T(v-7,0),T(0,v-7),A(),B(),k(r,t),l>=7&&E(r),null==d&&(d=D(l,g,w)),M(d,t)},T=function(r,t){for(var e=-1;7>=e;e+=1)if(!(-1>=r+e||r+e>=v))for(var n=-1;7>=n;n+=1)-1>=t+n||t+n>=v||(e>=0&&6>=e&&(0==n||6==n)||n>=0&&6>=n&&(0==e||6==e)||e>=2&&4>=e&&n>=2&&4>=n?s[r+e][t+n]=!0:s[r+e][t+n]=!1)},p=function(){for(var r=0,t=0,e=0;8>e;e+=1){y(!0,e);var n=a.getLostPoint(m);(0==e||r>n)&&(r=n,t=e)}return t},B=function(){for(var r=8;v-8>r;r+=1)null==s[r][6]&&(s[r][6]=r%2==0);for(var t=8;v-8>t;t+=1)null==s[6][t]&&(s[6][t]=t%2==0)},A=function(){for(var r=a.getPatternPosition(l),t=0;t<r.length;t+=1)for(var e=0;e<r.length;e+=1){var n=r[t],o=r[e];if(null==s[n][o])for(var i=-2;2>=i;i+=1)for(var u=-2;2>=u;u+=1)-2==i||2==i||-2==u||2==u||0==i&&0==u?s[n+i][o+u]=!0:s[n+i][o+u]=!1}},E=function(r){for(var t=a.getBCHTypeNumber(l),e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);s[Math.floor(e/3)][e%3+v-8-3]=n}for(var e=0;18>e;e+=1){var n=!r&&1==(t>>e&1);s[e%3+v-8-3][Math.floor(e/3)]=n}},k=function(r,t){for(var e=g<<3|t,n=a.getBCHTypeInfo(e),o=0;15>o;o+=1){var i=!r&&1==(n>>o&1);6>o?s[o][8]=i:8>o?s[o+1][8]=i:s[v-15+o][8]=i}for(var o=0;15>o;o+=1){var i=!r&&1==(n>>o&1);8>o?s[8][v-o-1]=i:9>o?s[8][15-o-1+1]=i:s[8][15-o-1]=i}s[v-8][8]=!r},M=function(r,t){for(var e=-1,n=v-1,o=7,i=0,u=a.getMaskFunction(t),f=v-1;f>0;f-=2)for(6==f&&(f-=1);;){for(var c=0;2>c;c+=1)if(null==s[n][f-c]){var l=!1;i<r.length&&(l=1==(r[i]>>>o&1));var g=u(n,f-c);g&&(l=!l),s[n][f-c]=l,o-=1,-1==o&&(i+=1,o=7)}if(n+=e,0>n||n>=v){n-=e,e=-e;break}}},C=function(t,e){for(var n=0,o=0,i=0,u=new Array(e.length),f=new Array(e.length),c=0;c<e.length;c+=1){var l=e[c].dataCount,g=e[c].totalCount-l;o=Math.max(o,l),i=Math.max(i,g),u[c]=new Array(l);for(var s=0;s<u[c].length;s+=1)u[c][s]=255&t.getBuffer()[s+n];n+=l;var v=a.getErrorCorrectPolynomial(g),h=r(u[c],v.getLength()-1),d=h.mod(v);f[c]=new Array(v.getLength()-1);for(var s=0;s<f[c].length;s+=1){var w=s+d.getLength()-f[c].length;f[c][s]=w>=0?d.getAt(w):0}}for(var m=0,s=0;s<e.length;s+=1)m+=e[s].totalCount;for(var y=new Array(m),T=0,s=0;o>s;s+=1)for(var c=0;c<e.length;c+=1)s<u[c].length&&(y[T]=u[c][s],T+=1);for(var s=0;i>s;s+=1)for(var c=0;c<e.length;c+=1)s<f[c].length&&(y[T]=f[c][s],T+=1);return y},D=function(r,t,e){for(var n=u.getRSBlocks(r,t),c=f(),l=0;l<e.length;l+=1){var g=e[l];c.put(g.getMode(),4),c.put(g.getLength(),a.getLengthInBits(g.getMode(),r)),g.write(c)}for(var s=0,l=0;l<n.length;l+=1)s+=n[l].dataCount;if(c.getLengthInBits()>8*s)throw new Error("code length overflow. ("+c.getLengthInBits()+">"+8*s+")");for(c.getLengthInBits()+4<=8*s&&c.put(0,4);c.getLengthInBits()%8!=0;)c.putBit(!1);for(;;){if(c.getLengthInBits()>=8*s)break;if(c.put(o,8),c.getLengthInBits()>=8*s)break;c.put(i,8)}return C(c,n)};return m.addData=function(r){var t=c(r);w.push(t),d=null},m.isDark=function(r,t){if(0>r||r>=v||0>t||t>=v)throw new Error(r+","+t);return s[r][t]},m.getModuleCount=function(){return v},m.make=function(){y(!1,p())},m.createTableTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e="";e+='<table style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: "+t+"px;",e+='">',e+="<tbody>";for(var n=0;n<m.getModuleCount();n+=1){e+="<tr>";for(var o=0;o<m.getModuleCount();o+=1)e+='<td style="',e+=" border-width: 0px; border-style: none;",e+=" border-collapse: collapse;",e+=" padding: 0px; margin: 0px;",e+=" width: "+r+"px;",e+=" height: "+r+"px;",e+=" background-color: ",e+=m.isDark(n,o)?"#000000":"#ffffff",e+=";",e+='"/>';e+="</tr>"}return e+="</tbody>",e+="</table>"},m.createImgTag=function(r,t){r=r||2,t="undefined"==typeof t?4*r:t;var e=m.getModuleCount()*r+2*t,n=t,o=e-t;return h(e,e,function(t,e){if(t>=n&&o>t&&e>=n&&o>e){var a=Math.floor((t-n)/r),i=Math.floor((e-n)/r);return m.isDark(i,a)?0:1}return 1})},m};t.stringToBytes=function(r){for(var t=new Array,e=0;e<r.length;e+=1){var n=r.charCodeAt(e);t.push(255&n)}return t},t.createStringToBytes=function(r,t){var e=function(){for(var e=s(r),n=function(){var r=e.read();if(-1==r)throw new Error;return r},o=0,a={};;){var i=e.read();if(-1==i)break;var u=n(),f=n(),c=n(),l=String.fromCharCode(i<<8|u),g=f<<8|c;a[l]=g,o+=1}if(o!=t)throw new Error(o+" != "+t);return a}(),n="?".charCodeAt(0);return function(r){for(var t=new Array,o=0;o<r.length;o+=1){var a=r.charCodeAt(o);if(128>a)t.push(a);else{var i=e[r.charAt(o)];"number"==typeof i?(255&i)==i?t.push(i):(t.push(i>>>8),t.push(255&i)):t.push(n)}}return t}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},a=function(){var t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,a=7973,u=21522,f={},c=function(r){for(var t=0;0!=r;)t+=1,r>>>=1;return t};return f.getBCHTypeInfo=function(r){for(var t=r<<10;c(t)-c(n)>=0;)t^=n<<c(t)-c(n);return(r<<10|t)^u},f.getBCHTypeNumber=function(r){for(var t=r<<12;c(t)-c(a)>=0;)t^=a<<c(t)-c(a);return r<<12|t},f.getPatternPosition=function(r){return t[r-1]},f.getMaskFunction=function(r){switch(r){case o.PATTERN000:return function(r,t){return(r+t)%2==0};case o.PATTERN001:return function(r,t){return r%2==0};case o.PATTERN010:return function(r,t){return t%3==0};case o.PATTERN011:return function(r,t){return(r+t)%3==0};case o.PATTERN100:return function(r,t){return(Math.floor(r/2)+Math.floor(t/3))%2==0};case o.PATTERN101:return function(r,t){return r*t%2+r*t%3==0};case o.PATTERN110:return function(r,t){return(r*t%2+r*t%3)%2==0};case o.PATTERN111:return function(r,t){return(r*t%3+(r+t)%2)%2==0};default:throw new Error("bad maskPattern:"+r)}},f.getErrorCorrectPolynomial=function(t){for(var e=r([1],0),n=0;t>n;n+=1)e=e.multiply(r([1,i.gexp(n)],0));return e},f.getLengthInBits=function(r,t){if(t>=1&&10>t)switch(r){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(27>t)switch(r){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else{if(!(41>t))throw new Error("type:"+t);switch(r){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}}},f.getLostPoint=function(r){for(var t=r.getModuleCount(),e=0,n=0;t>n;n+=1)for(var o=0;t>o;o+=1){for(var a=0,i=r.isDark(n,o),u=-1;1>=u;u+=1)if(!(0>n+u||n+u>=t))for(var f=-1;1>=f;f+=1)0>o+f||o+f>=t||(0!=u||0!=f)&&i==r.isDark(n+u,o+f)&&(a+=1);a>5&&(e+=3+a-5)}for(var n=0;t-1>n;n+=1)for(var o=0;t-1>o;o+=1){var c=0;r.isDark(n,o)&&(c+=1),r.isDark(n+1,o)&&(c+=1),r.isDark(n,o+1)&&(c+=1),r.isDark(n+1,o+1)&&(c+=1),(0==c||4==c)&&(e+=3)}for(var n=0;t>n;n+=1)for(var o=0;t-6>o;o+=1)r.isDark(n,o)&&!r.isDark(n,o+1)&&r.isDark(n,o+2)&&r.isDark(n,o+3)&&r.isDark(n,o+4)&&!r.isDark(n,o+5)&&r.isDark(n,o+6)&&(e+=40);for(var o=0;t>o;o+=1)for(var n=0;t-6>n;n+=1)r.isDark(n,o)&&!r.isDark(n+1,o)&&r.isDark(n+2,o)&&r.isDark(n+3,o)&&r.isDark(n+4,o)&&!r.isDark(n+5,o)&&r.isDark(n+6,o)&&(e+=40);for(var l=0,o=0;t>o;o+=1)for(var n=0;t>n;n+=1)r.isDark(n,o)&&(l+=1);var g=Math.abs(100*l/t/t-50)/5;return e+=10*g},f}(),i=function(){for(var r=new Array(256),t=new Array(256),e=0;8>e;e+=1)r[e]=1<<e;for(var e=8;256>e;e+=1)r[e]=r[e-4]^r[e-5]^r[e-6]^r[e-8];for(var e=0;255>e;e+=1)t[r[e]]=e;var n={};return n.glog=function(r){if(1>r)throw new Error("glog("+r+")");return t[r]},n.gexp=function(t){for(;0>t;)t+=255;for(;t>=256;)t-=255;return r[t]},n}(),u=function(){var r=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(r,t){var e={};return e.totalCount=r,e.dataCount=t,e},e={},o=function(t,e){switch(e){case n.L:return r[4*(t-1)+0];case n.M:return r[4*(t-1)+1];case n.Q:return r[4*(t-1)+2];case n.H:return r[4*(t-1)+3];default:return}};return e.getRSBlocks=function(r,e){var n=o(r,e);if("undefined"==typeof n)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+e);for(var a=n.length/3,i=new Array,u=0;a>u;u+=1)for(var f=n[3*u+0],c=n[3*u+1],l=n[3*u+2],g=0;f>g;g+=1)i.push(t(c,l));return i},e}(),f=function(){var r=new Array,t=0,e={};return e.getBuffer=function(){return r},e.getAt=function(t){var e=Math.floor(t/8);return 1==(r[e]>>>7-t%8&1)},e.put=function(r,t){for(var n=0;t>n;n+=1)e.putBit(1==(r>>>t-n-1&1))},e.getLengthInBits=function(){return t},e.putBit=function(e){var n=Math.floor(t/8);r.length<=n&&r.push(0),e&&(r[n]|=128>>>t%8),t+=1},e},c=function(r){var n=e.MODE_8BIT_BYTE,o=t.stringToBytes(r),a={};return a.getMode=function(){return n},a.getLength=function(r){return o.length},a.write=function(r){for(var t=0;t<o.length;t+=1)r.put(o[t],8)},a},l=function(){var r=new Array,t={};return t.writeByte=function(t){r.push(255&t)},t.writeShort=function(r){t.writeByte(r),t.writeByte(r>>>8)},t.writeBytes=function(r,e,n){e=e||0,n=n||r.length;for(var o=0;n>o;o+=1)t.writeByte(r[o+e])},t.writeString=function(r){for(var e=0;e<r.length;e+=1)t.writeByte(r.charCodeAt(e))},t.toByteArray=function(){return r},t.toString=function(){var t="";t+="[";for(var e=0;e<r.length;e+=1)e>0&&(t+=","),t+=r[e];return t+="]"},t},g=function(){var r=0,t=0,e=0,n="",o={},a=function(r){n+=String.fromCharCode(i(63&r))},i=function(r){if(0>r);else{if(26>r)return 65+r;if(52>r)return 97+(r-26);if(62>r)return 48+(r-52);if(62==r)return 43;if(63==r)return 47}throw new Error("n:"+r)};return o.writeByte=function(n){for(r=r<<8|255&n,t+=8,e+=1;t>=6;)a(r>>>t-6),t-=6},o.flush=function(){if(t>0&&(a(r<<6-t),r=0,t=0),e%3!=0)for(var o=3-e%3,i=0;o>i;i+=1)n+="="},o.toString=function(){return n},o},s=function(r){var t=r,e=0,n=0,o=0,a={};a.read=function(){for(;8>o;){if(e>=t.length){if(0==o)return-1;throw new Error("unexpected end of file./"+o)}var r=t.charAt(e);if(e+=1,"="==r)return o=0,-1;r.match(/^\s$/)||(n=n<<6|i(r.charCodeAt(0)),o+=6)}var a=n>>>o-8&255;return o-=8,a};var i=function(r){if(r>=65&&90>=r)return r-65;if(r>=97&&122>=r)return r-97+26;if(r>=48&&57>=r)return r-48+52;if(43==r)return 62;if(47==r)return 63;throw new Error("c:"+r)};return a},v=function(r,t){var e=r,n=t,o=new Array(r*t),a={};a.setPixel=function(r,t,n){o[t*e+r]=n},a.write=function(r){r.writeString("GIF87a"),r.writeShort(e),r.writeShort(n),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(e),r.writeShort(n),r.writeByte(0);var t=2,o=u(t);r.writeByte(t);for(var a=0;o.length-a>255;)r.writeByte(255),r.writeBytes(o,a,255),a+=255;r.writeByte(o.length-a),r.writeBytes(o,a,o.length-a),r.writeByte(0),r.writeString(";")};var i=function(r){var t=r,e=0,n=0,o={};return o.write=function(r,o){if(r>>>o!=0)throw new Error("length over");for(;e+o>=8;)t.writeByte(255&(r<<e|n)),o-=8-e,r>>>=8-e,n=0,e=0;n=r<<e|n,e+=o},o.flush=function(){e>0&&t.writeByte(n)},o},u=function(r){for(var t=1<<r,e=(1<<r)+1,n=r+1,a=f(),u=0;t>u;u+=1)a.add(String.fromCharCode(u));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(e));var c=l(),g=i(c);g.write(t,n);var s=0,v=String.fromCharCode(o[s]);for(s+=1;s<o.length;){var h=String.fromCharCode(o[s]);s+=1,a.contains(v+h)?v+=h:(g.write(a.indexOf(v),n),a.size()<4095&&(a.size()==1<<n&&(n+=1),a.add(v+h)),v=h)}return g.write(a.indexOf(v),n),g.write(e,n),g.flush(),c.toByteArray()},f=function(){var r={},t=0,e={};return e.add=function(n){if(e.contains(n))throw new Error("dup key:"+n);r[n]=t,t+=1},e.size=function(){return t},e.indexOf=function(t){return r[t]},e.contains=function(t){return"undefined"!=typeof r[t]},e};return a},h=function(r,t,e,n){for(var o=v(r,t),a=0;t>a;a+=1)for(var i=0;r>i;i+=1)o.setPixel(i,a,e(i,a));var u=l();o.write(u);for(var f=g(),c=u.toByteArray(),s=0;s<c.length;s+=1)f.writeByte(c[s]);f.flush();var h="";return h+="<img",h+=' src="',h+="data:image/gif;base64,",h+=f,h+='"',h+=' width="',h+=r,h+='"',h+=' height="',h+=t,h+='"',n&&(h+=' alt="',h+=n,h+='"'),h+="/>"};return t}();return function(r){"function"==typeof define&&define.amd?define([],r):"object"==typeof exports&&(module.exports=r())}(function(){return r}),!function(r){r.stringToBytes=function(r){function t(r){for(var t=[],e=0;e<r.length;e++){var n=r.charCodeAt(e);128>n?t.push(n):2048>n?t.push(192|n>>6,128|63&n):55296>n||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(e++,n=65536+((1023&n)<<10|1023&r.charCodeAt(e)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}return t(r)}}(r),r}());
+/* ./modules/cms-ui/themes/default/script/svg-injector.min.js */
+/* ./modules/editor/codemirror/lib/codemirror.min.js */(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof define==="function"&&define.amd?define(t):(e.CodeMirror=t())}(this,(function(){"use strict";var S=navigator.userAgent,Kr=navigator.platform,ie=/gecko\/\d/i.test(S),Xr=/MSIE \d/.test(S),jr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(S),st=/Edge\/(\d+)/.exec(S),l=Xr||jr||st,c=l&&(Xr?document.documentMode||6:+(st||jr)[1]),x=!st&&/WebKit\//.test(S),yl=x&&/Qt\/\d+\.\d+/.test(S),Kt=!st&&/Chrome\//.test(S),E=/Opera\//.test(S),Yr=/Apple Computer/.test(navigator.vendor),bl=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(S),wl=/PhantomJS/.test(S),at=!st&&/AppleWebKit/.test(S)&&/Mobile\/\w+/.test(S),Xt=/Android/.test(S),ut=at||Xt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(S),I=at||/Mac/.test(Kr),xl=/\bCrOS\b/.test(S),Cl=/win/i.test(Kr),pe=E&&S.match(/Version\/(\d*\.\d*)/);if(pe){pe=Number(pe[1])};if(pe&&pe>=15){E=!1;x=!0};var Vr=I&&(yl||E&&(pe==null||pe<12.11)),Ni=ie||(l&&c>=9);function ft(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")};var de=function(e,t){var r=e.className,i=ft(t).exec(r);if(i){var n=r.slice(i.index+i[0].length);e.className=r.slice(0,i.index)+(n?i[1]+n:"")}};function re(e){for(var t=e.childNodes.length;t>0;--t){e.removeChild(e.firstChild)};return e};function W(e,t){return re(e).appendChild(t)};function i(e,t,i,r){var n=document.createElement(e);if(i){n.className=i};if(r){n.style.cssText=r};if(typeof t=="string"){n.appendChild(document.createTextNode(t))}
+else if(t){for(var o=0;o<t.length;++o){n.appendChild(t[o])}};return n};function Fe(e,t,r,n){var o=i(e,t,r,n);o.setAttribute("role","presentation");return o};var he;if(document.createRange){he=function(e,t,i,r){var n=document.createRange();n.setEnd(r||e,i);n.setStart(e,t);return n}}
+else{he=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(r){return n};n.collapse(!0);n.moveEnd("character",i);n.moveStart("character",t);return n}};function ne(e,t){if(t.nodeType==3){t=t.parentNode};if(e.contains){return e.contains(t)};do{if(t.nodeType==11){t=t.host};if(t==e){return!0}}
+while(t=t.parentNode)};function Y(){var t;try{t=document.activeElement}catch(e){t=document.body||null}
+while(t&&t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement};return t};function ge(e,t){var i=e.className;if(!ft(t).test(i)){e.className+=(i?" ":"")+t}};function Oi(e,t){var r=e.split(" ");for(var i=0;i<r.length;i++){if(r[i]&&!ft(r[i]).test(t)){t+=" "+r[i]}};return t};var lt=function(e){e.select()};if(at){lt=function(e){e.selectionStart=0;e.selectionEnd=e.value.length}}
+else if(l){lt=function(e){try{e.select()}catch(t){}}};function Ai(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}};function ve(e,t,i){if(!t){t={}};for(var r in e){if(e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))){t[r]=e[r]}};return t};function H(e,t,i,r,n){if(t==null){t=e.search(/[^\s\u00a0]/);if(t==-1){t=e.length}};for(var l=r||0,s=n||0;;){var o=e.indexOf("\t",l);if(o<0||o>=t){return s+(t-l)};s+=o-l;s+=i-(s%i);l=o+1}};var ce=function(){this.id=null};ce.prototype.set=function(e,t){clearTimeout(this.id);this.id=setTimeout(t,e)};function b(e,t){for(var i=0;i<e.length;++i){if(e[i]==t){return i}};return-1};var Ur=30,Vt={toString:function(){return"CodeMirror.Pass"}};var G={scroll:!1};var Mi={origin:"*mouse"};var ot={origin:"+move"};function Wi(e,t,i){for(var n=0,o=0;;){var r=e.indexOf("\t",n);if(r==-1){r=e.length};var l=r-n;if(r==e.length||o+l>=t){return n+Math.min(l,t-o)};o+=r-n;o+=i-(o%i);n=r+1;if(o>=t){return n}}};var Ut=[""];function Di(e){while(Ut.length<=e){Ut.push(a(Ut)+" ")};return Ut[e]};function a(e){return e[e.length-1]};function jt(e,t){var r=[];for(var i=0;i<e.length;i++){r[i]=t(e[i],i)};return r};function Sl(e,t,i){var r=0,n=i(t);while(r<e.length&&i(e[r])<=n){r++};e.splice(r,0,t)};function qr(){};function Zr(e,t){var i;if(Object.create){i=Object.create(e)}
+else{qr.prototype=e;i=new qr()};if(t){ve(t,i)};return i};var ml=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Hi(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ml.test(e))};function Yt(e,t){if(!t){return Hi(e)};if(t.source.indexOf("\\w")>-1&&Hi(e)){return!0};return t.test(e)};function Qr(e){for(var t in e){if(e.hasOwnProperty(t)&&e[t]){return!1}};return!0};var vl=/[\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]/;function Fi(e){return e.charCodeAt(0)>=768&&vl.test(e)};function Jr(e,t,i){while((i<0?t>0:t<e.length)&&Fi(e.charAt(t))){t+=i};return t};function ct(e,t,i){var o=t>i?-1:1;for(;;){if(t==i){return t};var n=(t+i)/2,r=o<0?Math.ceil(n):Math.floor(n);if(r==t){return e(r)?t:i};if(e(r)){i=r}
+else{t=r+o}}};function Ll(e,t,r){var n=this;this.input=r;n.scrollbarFiller=i("div",null,"CodeMirror-scrollbar-filler");n.scrollbarFiller.setAttribute("cm-not-content","true");n.gutterFiller=i("div",null,"CodeMirror-gutter-filler");n.gutterFiller.setAttribute("cm-not-content","true");n.lineDiv=Fe("div",null,"CodeMirror-code");n.selectionDiv=i("div",null,null,"position: relative; z-index: 1");n.cursorDiv=i("div",null,"CodeMirror-cursors");n.measure=i("div",null,"CodeMirror-measure");n.lineMeasure=i("div",null,"CodeMirror-measure");n.lineSpace=Fe("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none");var o=Fe("div",[n.lineSpace],"CodeMirror-lines");n.mover=i("div",[o],null,"position: relative");n.sizer=i("div",[n.mover],"CodeMirror-sizer");n.sizerWidth=null;n.heightForcer=i("div",null,null,"position: absolute; height: "+Ur+"px; width: 1px;");n.gutters=i("div",null,"CodeMirror-gutters");n.lineGutter=null;n.scroller=i("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll");n.scroller.setAttribute("tabIndex","-1");n.wrapper=i("div",[n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror");if(l&&c<8){n.gutters.style.zIndex=-1;n.scroller.style.paddingRight=0};if(!x&&!(ie&&ut)){n.scroller.draggable=!0};if(e){if(e.appendChild){e.appendChild(n.wrapper)}
+else{e(n.wrapper)}};n.viewFrom=n.viewTo=t.first;n.reportedViewFrom=n.reportedViewTo=t.first;n.view=[];n.renderedView=null;n.externalMeasured=null;n.viewOffset=0;n.lastWrapHeight=n.lastWrapWidth=0;n.updateLineNumbers=null;n.nativeBarWidth=n.barHeight=n.barWidth=0;n.scrollbarsClipped=!1;n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null;n.alignWidgets=!1;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null;n.maxLine=null;n.maxLineLength=0;n.maxLineChanged=!1;n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null;n.shift=!1;n.selForContextMenu=null;n.activeTouch=null;r.init(n)};function t(e,t){t-=e.first;if(t<0||t>=e.size){throw new Error("There is no line "+(t+e.first)+" in the document.")};var i=e;while(!i.lines){for(var o=0;;++o){var r=i.children[o],n=r.chunkSize();if(t<n){i=r;break};t-=n}};return i.lines[t]};function me(e,t,i){var n=[],r=t.line;e.iter(t.line,i.line+1,function(e){var o=e.text;if(r==i.line){o=o.slice(0,i.ch)};if(r==t.line){o=o.slice(t.ch)};n.push(o);++r});return n};function Pi(e,t,i){var r=[];e.iter(t,i,function(e){r.push(e.text)});return r};function U(e,t){var r=t-e.height;if(r){for(var i=e;i;i=i.parent){i.height+=r}}};function u(e){if(e.parent==null){return null};var i=e.parent,n=b(i.lines,e);for(var t=i.parent;t;i=t,t=t.parent){for(var r=0;;++r){if(t.children[r]==i){break};n+=t.children[r].chunkSize()}};return n+i.first};function ye(e,t){var o=e.first;outer:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],s=r.height;if(t<s){e=r;continue;outer};t-=s;o+=r.chunkSize()};return o}
+while(!e.lines)var i=0;for(;i<e.lines.length;++i){var a=e.lines[i],l=a.height;if(t<l){break};t-=l};return o+i};function ht(e,t){return t>=e.first&&t<e.first+e.size};function Ei(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))};function e(t,i,r){if(r===void 0)r=null;if(!(this instanceof e)){return new e(t,i,r)};this.line=t;this.ch=i;this.sticky=r};function n(e,t){return e.line-t.line||e.ch-t.ch};function Ii(e,t){return e.sticky==t.sticky&&n(e,t)==0};function zi(t){return e(t.line,t.ch)};function qt(e,t){return n(e,t)<0?t:e};function Zt(e,t){return n(e,t)<0?e:t};function en(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))};function o(i,r){if(r.line<i.first){return e(i.first,0)};var n=i.first+i.size-1;if(r.line>n){return e(n,t(i,n).text.length)};return kl(r,t(i,r.line).text.length)};function kl(t,i){var r=t.ch;if(r==null||r>i){return e(t.line,i)}
+else if(r<0){return e(t.line,0)}
+else{return t}};function tn(e,t){var r=[];for(var i=0;i<t.length;i++){r[i]=o(e,t[i])};return r};var Gr=!1,te=!1;function Tl(){Gr=!0};function Ml(){te=!0};function Qt(e,t,i){this.marker=e;this.from=t;this.to=i};function dt(e,t){if(e){for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t){return r}}}};function Nl(e,t){var r;for(var i=0;i<e.length;++i){if(e[i]!=t){(r||(r=[])).push(e[i])}};return r};function Ol(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t];t.marker.attachLine(e)};function Al(e,t,i){var l;if(e){for(var o=0;o<e.length;++o){var r=e[o],n=r.marker,a=r.from==null||(n.inclusiveLeft?r.from<=t:r.from<t);if(a||r.from==t&&n.type=="bookmark"&&(!i||!r.marker.insertLeft)){var s=r.to==null||(n.inclusiveRight?r.to>=t:r.to>t);(l||(l=[])).push(new Qt(n,r.from,s?null:r.to))}}};return l};function Wl(e,t,i){var l;if(e){for(var o=0;o<e.length;++o){var r=e[o],n=r.marker,a=r.to==null||(n.inclusiveRight?r.to>=t:r.to>t);if(a||r.from==t&&n.type=="bookmark"&&(!i||r.marker.insertLeft)){var s=r.from==null||(n.inclusiveLeft?r.from<=t:r.from<t);(l||(l=[])).push(new Qt(n,s?null:r.from-t,r.to==null?null:r.to-t))}}};return l};function Ri(e,i){if(i.full){return null};var x=ht(e,i.from.line)&&t(e,i.from.line).markedSpans,C=ht(e,i.to.line)&&t(e,i.to.line).markedSpans;if(!x&&!C){return null};var m=i.from.ch,L=i.to.ch,w=n(i.from,i.to)==0,r=Al(x,m,w),o=Wl(C,L,w),s=i.text.length==1,c=a(i.text).length+(s?m:0);if(r){for(var v=0;v<r.length;++v){var f=r[v];if(f.to==null){var g=dt(o,f.marker);if(!g){f.to=m}
+else if(s){f.to=g.to==null?null:g.to+c}}}};if(o){for(var p=0;p<o.length;++p){var l=o[p];if(l.to!=null){l.to+=c};if(l.from==null){var S=dt(r,l.marker);if(!S){l.from=c;if(s){(r||(r=[])).push(l)}}}
+else{l.from+=c;if(s){(r||(r=[])).push(l)}}}};if(r){r=rn(r)};if(o&&o!=r){o=rn(o)};var d=[r];if(!s){var b=i.text.length-2,h;if(b>0&&r){for(var u=0;u<r.length;++u){if(r[u].to==null){(h||(h=[])).push(new Qt(r[u].marker,null,null))}}};for(var y=0;y<b;++y){d.push(h)};d.push(o)};return d};function rn(e){for(var i=0;i<e.length;++i){var t=e[i];if(t.from!=null&&t.from==t.to&&t.marker.clearWhenEmpty!==!1){e.splice(i--,1)}};if(!e.length){return null};return e};function Dl(e,t,i){var r=null;e.iter(t.line,i.line+1,function(e){if(e.markedSpans){for(var i=0;i<e.markedSpans.length;++i){var t=e.markedSpans[i].marker;if(t.readOnly&&(!r||b(r,t)==-1)){(r||(r=[])).push(t)}}}});if(!r){return null};var a=[{from:t,to:i}];for(var c=0;c<r.length;++c){var f=r[c],l=f.find(0);for(var s=0;s<a.length;++s){var o=a[s];if(n(o.to,l.from)<0||n(o.from,l.to)>0){continue};var u=[s,1],h=n(o.from,l.from),d=n(o.to,l.to);if(h<0||!f.inclusiveLeft&&!h){u.push({from:o.from,to:l.from})};if(d>0||!f.inclusiveRight&&!d){u.push({from:l.to,to:o.to})};a.splice.apply(a,u);s+=u.length-3}};return a};function nn(e){var i=e.markedSpans;if(!i){return};for(var t=0;t<i.length;++t){i[t].marker.detachLine(e)};e.markedSpans=null};function on(e,t){if(!t){return};for(var i=0;i<t.length;++i){t[i].marker.attachLine(e)};e.markedSpans=t};function Jt(e){return e.inclusiveLeft?-1:0};function ei(e){return e.inclusiveRight?1:0};function ln(e,t){var s=e.lines.length-t.lines.length;if(s!=0){return s};var r=e.find(),o=t.find(),l=n(r.from,o.from)||Jt(e)-Jt(t);if(l){return-l};var i=n(r.to,o.to)||ei(e)-ei(t);if(i){return i};return t.id-e.id};function sn(e,t){var o=te&&e.markedSpans,r;if(o){for(var i=(void 0),n=0;n<o.length;++n){i=o[n];if(i.marker.collapsed&&(t?i.from:i.to)==null&&(!r||ln(r,i.marker)<0)){r=i.marker}}};return r};function an(e){return sn(e,!0)};function pt(e){return sn(e,!1)};function un(e,i,r,o,l){var d=t(e,i),c=te&&d.markedSpans;if(c){for(var f=0;f<c.length;++f){var a=c[f];if(!a.marker.collapsed){continue};var s=a.marker.find(0),u=n(s.from,r)||Jt(a.marker)-Jt(l),h=n(s.to,o)||ei(a.marker)-ei(l);if(u>=0&&h<=0||u<=0&&h>=0){continue};if(u<=0&&(a.marker.inclusiveRight&&l.inclusiveLeft?n(s.to,r)>=0:n(s.to,r)>0)||u>=0&&(a.marker.inclusiveRight&&l.inclusiveLeft?n(s.from,o)<=0:n(s.from,o)<0)){return!0}}}};function V(e){var t;while(t=an(e)){e=t.find(-1,!0).line};return e};function Hl(e){var t;while(t=pt(e)){e=t.find(1,!0).line};return e};function Fl(e){var i,t;while(i=pt(e)){e=i.find(1,!0).line;(t||(t=[])).push(e)};return t};function Bi(e,i){var r=t(e,i),n=V(r);if(r==n){return i};return u(n)};function fn(e,i){if(i>e.lastLine()){return i};var r=t(e,i),n;if(!be(e,r)){return i}
+while(n=pt(r)){r=n.find(1,!0).line};return u(r)+1};function be(e,t){var n=te&&t.markedSpans;if(n){for(var i=(void 0),r=0;r<n.length;++r){i=n[r];if(!i.marker.collapsed){continue};if(i.from==null){return!0};if(i.marker.widgetNode){continue};if(i.from==0&&i.marker.inclusiveLeft&&Gi(e,t,i)){return!0}}}};function Gi(e,t,i){if(i.to==null){var o=i.marker.find(1,!0);return Gi(e,o.line,dt(o.line.markedSpans,i.marker))};if(i.marker.inclusiveRight&&i.to==t.text.length){return!0};for(var r=(void 0),n=0;n<t.markedSpans.length;++n){r=t.markedSpans[n];if(r.marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(r.to==null||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&Gi(e,t,r)){return!0}}};function q(e){e=V(e);var o=0,t=e.parent;for(var n=0;n<t.lines.length;++n){var s=t.lines[n];if(s==e){break}
+else{o+=s.height}};for(var i=t.parent;i;t=i,i=t.parent){for(var r=0;r<i.children.length;++r){var l=i.children[r];if(l==t){break}
+else{o+=l.height}}};return o};function ti(e){if(e.height==0){return 0};var i=e.text.length,r,t=e;while(r=an(t)){var o=r.find(0,!0);t=o.from.line;i+=o.from.ch-o.to.ch};t=e;while(r=pt(t)){var n=r.find(0,!0);i-=t.text.length-n.from.ch;t=n.to.line;i+=t.text.length-n.to.ch};return i};function Ui(e){var i=e.display,r=e.doc;i.maxLine=t(r,r.first);i.maxLineLength=ti(i.maxLine);i.maxLineChanged=!0;r.iter(function(e){var t=ti(e);if(t>i.maxLineLength){i.maxLineLength=t;i.maxLine=e}})};function Pl(e,t,i,r){if(!e){return r(t,i,"ltr",0)};var l=!1;for(var o=0;o<e.length;++o){var n=e[o];if(n.from<i&&n.to>t||t==i&&n.to==t){r(Math.max(n.from,t),Math.min(n.to,i),n.level==1?"rtl":"ltr",o);l=!0}};if(!l){r(t,i,"ltr")}};var nt=null;function gt(e,t,i){var o;nt=null;for(var n=0;n<e.length;++n){var r=e[n];if(r.from<t&&r.to>t){return n};if(r.to==t){if(r.from!=r.to&&i=="before"){o=n}
+else{nt=n}};if(r.from==t){if(r.from!=r.to&&i!="before"){o=n}
+else{nt=n}}};return o!=null?o:nt};var gl=(function(){var l="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(e){if(e<=0xf7){return l.charAt(e)}
+else if(0x590<=e&&e<=0x5f4){return"R"}
+else if(0x600<=e&&e<=0x6f9){return s.charAt(e-0x600)}
+else if(0x6ee<=e&&e<=0x8ac){return"r"}
+else if(0x2000<=e&&e<=0x200b){return"w"}
+else if(e==0x200c){return"b"}
+else{return"L"}};var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,i=/[LRr]/,r=/[Lb1n]/,n=/[1n]/;function e(e,t,i){this.level=e;this.from=t;this.to=i};return function(l,s){var S=s=="ltr"?"L":"R";if(l.length==0||s=="ltr"&&!o.test(l)){return!1};var h=l.length,f=[];for(var H=0;H<h;++H){f.push(u(l.charCodeAt(H)))};for(var M=0,R=S;M<h;++M){var z=f[M];if(z=="m"){f[M]=R}
+else{R=z}};for(var L=0,I=S;L<h;++L){var T=f[L];if(T=="1"&&I=="r"){f[L]="n"}
+else if(i.test(T)){I=T;if(T=="r"){f[L]="R"}}};for(var b=1,C=f[0];b<h-1;++b){var D=f[b];if(D=="+"&&C=="1"&&f[b+1]=="1"){f[b]="1"}
+else if(D==","&&C==f[b+1]&&(C=="1"||C=="n")){f[b]=C};C=D};for(var g=0;g<h;++g){var E=f[g];if(E==","){f[g]="N"}
+else if(E=="%"){var y=(void 0);for(y=g+1;y<h&&f[y]=="%";++y){};var K=(g&&f[g-1]=="!")||(y<h&&f[y]=="1")?"1":"N";for(var W=g;W<y;++W){f[W]=K};g=y-1}};for(var k=0,P=S;k<h;++k){var A=f[k];if(P=="L"&&A=="1"){f[k]="L"}
+else if(i.test(A)){P=A}};for(var m=0;m<h;++m){if(t.test(f[m])){var v=(void 0);for(v=m+1;v<h&&t.test(f[v]);++v){};var F=(m?f[m-1]:S)=="L",U=(v<h?f[v]:S)=="L",V=F==U?(F?"L":"R"):S;for(var O=m;O<v;++O){f[O]=V};m=v-1}};var d=[],x;for(var c=0;c<h;){if(r.test(f[c])){var G=c;for(++c;c<h&&r.test(f[c]);++c){};d.push(new e(0,G,c))}
+else{var w=c,N=d.length;for(++c;c<h&&f[c]!="L";++c){};for(var p=w;p<c;){if(n.test(f[p])){if(w<p){d.splice(N,0,new e(1,w,p))};var B=p;for(++p;p<c&&n.test(f[p]);++p){};d.splice(N,0,new e(2,B,p));w=p}
+else{++p}};if(w<c){d.splice(N,0,new e(1,w,c))}}};if(s=="ltr"){if(d[0].level==1&&(x=l.match(/^\s+/))){d[0].from=x[0].length;d.unshift(new e(0,0,x[0].length))};if(a(d).level==1&&(x=l.match(/\s+$/))){a(d).to-=x[0].length;d.push(new e(0,h-x[0].length,h))}};return s=="rtl"?d.reverse():d}})();function Z(e,t){var i=e.order;if(i==null){i=e.order=gl(e.text,t)};return i};var Br=[],r=function(e,t,i){if(e.addEventListener){e.addEventListener(t,i,!1)}
+else if(e.attachEvent){e.attachEvent("on"+t,i)}
+else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Br).concat(i)}};function Vi(e,t){return e._handlers&&e._handlers[t]||Br};function D(e,t,i){if(e.removeEventListener){e.removeEventListener(t,i,!1)}
+else if(e.detachEvent){e.detachEvent("on"+t,i)}
+else{var o=e._handlers,r=o&&o[t];if(r){var n=b(r,i);if(n>-1){o[t]=r.slice(0,n).concat(r.slice(n+1))}}}};function p(e,t){var r=Vi(e,t);if(!r.length){return};var n=Array.prototype.slice.call(arguments,2);for(var i=0;i<r.length;++i){r[i].apply(null,n)}};function v(e,t,i){if(typeof t=="string"){t={type:t,preventDefault:function(){this.defaultPrevented=!0}}};p(e,i||t.type,e,t);return Ki(t)||t.codemirrorIgnore};function cn(e){var i=e._handlers&&e._handlers.cursorActivity;if(!i){return};var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]);for(var t=0;t<i.length;++t){if(b(r,i[t])==-1){r.push(i[t])}}};function F(e,t){return Vi(e,t).length>0};function Pe(e){e.prototype.on=function(e,t){r(this,e,t)};e.prototype.off=function(e,t){D(this,e,t)}};function T(e){if(e.preventDefault){e.preventDefault()}
+else{e.returnValue=!1}};function hn(e){if(e.stopPropagation){e.stopPropagation()}
+else{e.cancelBubble=!0}};function Ki(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1};function vt(e){T(e);hn(e)};function Xi(e){return e.target||e.srcElement};function dn(e){var t=e.which;if(t==null){if(e.button&1){t=1}
+else if(e.button&2){t=3}
+else if(e.button&4){t=2}};if(I&&e.ctrlKey&&t==1){t=3};return t};var pl=function(){if(l&&c<9){return!1};var e=i("div");return"draggable" in e||"dragDrop" in e}(),Ti;function El(e){if(Ti==null){var t=i("span","\u200b");W(e,i("span",[t,document.createTextNode("x")]));if(e.firstChild.offsetHeight!=0){Ti=t.offsetWidth<=1&&t.offsetHeight>2&&!(l&&c<8)}};var r=Ti?i("span","\u200b"):i("span","\u00a0",null,"display: inline-block; width: 1px; margin-right: -1px");r.setAttribute("cm-text","");return r};var ki;function Il(e){if(ki!=null){return ki};var i=W(e,document.createTextNode("A\u062eA")),t=he(i,0,1).getBoundingClientRect(),r=he(i,1,2).getBoundingClientRect();re(e);if(!t||t.left==t.right){return!1};return ki=(r.right-t.right<3)};var Si="\n\nb".split(/\n/).length!=3?function(e){var i=0,o=[],l=e.length;while(i<=l){var t=e.indexOf("\n",i);if(t==-1){t=e.length};var r=e.slice(i,e.charAt(t-1)=="\r"?t-1:t),n=r.indexOf("\r");if(n!=-1){o.push(r.slice(0,n));i+=n+1}
+else{o.push(r);i=t+1}};return o}:function(e){return e.split(/\r\n?|\n/)},hl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch(t){};if(!i||i.parentElement()!=e){return!1};return i.compareEndPoints("StartToEnd",i)!=0},dl=(function(){var e=i("div");if("oncopy" in e){return!0};e.setAttribute("oncopy","return;");return typeof e.oncopy=="function"})(),Li=null;function zl(e){if(Li!=null){return Li};var t=W(e,i("span","x")),r=t.getBoundingClientRect(),n=he(t,0,1).getBoundingClientRect();return Li=Math.abs(r.left-n.left)>1};var Ci={};var He={};function Rl(e,t){if(arguments.length>2){t.dependencies=Array.prototype.slice.call(arguments,2)};Ci[e]=t};function Bl(e,t){He[e]=t};function ii(e){if(typeof e=="string"&&He.hasOwnProperty(e)){e=He[e]}
+else if(e&&typeof e.name=="string"&&He.hasOwnProperty(e.name)){var t=He[e.name];if(typeof t=="string"){t={name:t}};e=Zr(t,e);e.name=t.name}
+else if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e)){return ii("application/xml")}
+else if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e)){return ii("application/json")};if(typeof e=="string"){return{name:e}}
+else{return e||{name:"null"}}};function ji(e,t){t=ii(t);var l=Ci[t.name];if(!l){return ji(e,"text/plain")};var i=l(e,t);if(De.hasOwnProperty(t.name)){var n=De[t.name];for(var r in n){if(!n.hasOwnProperty(r)){continue};if(i.hasOwnProperty(r)){i["_"+r]=i[r]};i[r]=n[r]}};i.name=t.name;if(t.helperType){i.helperType=t.helperType};if(t.modeProps){for(var o in t.modeProps){i[o]=t.modeProps[o]}};return i};var De={};function Gl(e,t){var i=De.hasOwnProperty(e)?De[e]:(De[e]={});ve(t,i)};function we(e,t){if(t===!0){return t};if(e.copyState){return e.copyState(t)};var n={};for(var r in t){var i=t[r];if(i instanceof Array){i=i.concat([])};n[r]=i};return n};function Yi(e,t){var i;while(e.innerMode){i=e.innerMode(t);if(!i||i.mode==e){break};t=i.state;e=i.mode};return i||{mode:e,state:t}};function pn(e,t,i){return e.startState?e.startState(t,i):!0};var d=function(e,t,i){this.pos=this.start=0;this.string=e;this.tabSize=t||8;this.lastColumnPos=this.lastColumnValue=0;this.lineStart=0;this.lineOracle=i};d.prototype.eol=function(){return this.pos>=this.string.length};d.prototype.sol=function(){return this.pos==this.lineStart};d.prototype.peek=function(){return this.string.charAt(this.pos)||undefined};d.prototype.next=function(){if(this.pos<this.string.length){return this.string.charAt(this.pos++)}};d.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"){i=t==e}
+else{i=t&&(e.test?e.test(t):e(t))};if(i){++this.pos;return t}};d.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e)){};return this.pos>t};d.prototype.eatSpace=function(){var e=this,t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos))){++e.pos};return this.pos>t};d.prototype.skipToEnd=function(){this.pos=this.string.length};d.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1){this.pos=t;return!0}};d.prototype.backUp=function(e){this.pos-=e};d.prototype.column=function(){if(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)};d.prototype.indentation=function(){return H(this.string,null,this.tabSize)-(this.lineStart?H(this.string,this.lineStart,this.tabSize):0)};d.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(e){return i?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(n(o)==n(e)){if(t!==!1){this.pos+=e.length};return!0}}
+else{var r=this.string.slice(this.pos).match(e);if(r&&r.index>0){return null};if(r&&t!==!1){this.pos+=r[0].length};return r}};d.prototype.current=function(){return this.string.slice(this.start,this.pos)};d.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};d.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};d.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Gt=function(e,t){this.state=e;this.lookAhead=t},B=function(e,t,i,r){this.state=t;this.doc=e;this.line=i;this.maxLookAhead=r||0;this.baseTokens=null;this.baseTokenPos=1};B.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);if(t!=null&&e>this.maxLookAhead){this.maxLookAhead=e};return t};B.prototype.baseToken=function(e){var i=this;if(!this.baseTokens){return null}
+while(this.baseTokens[this.baseTokenPos]<=e){i.baseTokenPos+=2};var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}};B.prototype.nextLine=function(){this.line++;if(this.maxLookAhead>0){this.maxLookAhead--}};B.fromSaved=function(e,t,i){if(t instanceof Gt){return new B(e,we(e.mode,t.state),i,t.lookAhead)}
+else{return new B(e,we(e.mode,t),i)}};B.prototype.save=function(e){var t=e!==!1?we(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Gt(t,this.maxLookAhead):t};function gn(e,t,i,r){var n=[e.state.modeGen],o={};wn(e,t.text,e.doc.mode,i,function(e,t){return n.push(e,t)},o,r);var s=i.state,a=function(r){i.baseTokens=n;var a=e.state.overlays[r],l=1,u=0;i.state=!0;wn(e,t.text,a.mode,i,function(e,t){var i=l;while(u<e){var r=n[l];if(r>e){n.splice(l,1,e,n[l+1],r)};l+=2;u=Math.min(e,r)};if(!t){return};if(a.opaque){n.splice(i,l-i,e,"overlay "+t);l=i+2}
+else{for(;i<l;i+=2){var o=n[i+1];n[i+1]=(o?o+" ":"")+"overlay "+t}}},o);i.state=s;i.baseTokens=null;i.baseTokenPos=1};for(var l=0;l<e.state.overlays.length;++l)a(l);return{styles:n,classes:o.bgClass||o.textClass?o:null}};function vn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mt(e,u(t)),n=t.text.length>e.options.maxHighlightLength&&we(e.doc.mode,r.state),o=gn(e,t,r);if(n){r.state=n};t.stateAfter=r.save(!n);t.styles=o.styles;if(o.classes){t.styleClasses=o.classes}
+else if(t.styleClasses){t.styleClasses=null};if(i===e.doc.highlightFrontier){e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier)}};return t.styles};function mt(e,i,r){var n=e.doc,a=e.display;if(!n.mode.startState){return new B(n,!0,i)};var l=Ul(e,i,r),s=l>n.first&&t(n,l-1).stateAfter,o=s?B.fromSaved(n,s,l):new B(n,pn(n.mode),l);n.iter(l,i,function(t){qi(e,t.text,o);var r=o.line;t.stateAfter=r==i-1||r%5==0||r>=a.viewFrom&&r<a.viewTo?o.save():null;o.nextLine()});if(r){n.modeFrontier=o.line};return o};function qi(e,t,i,r){var o=e.doc.mode,n=new d(t,e.options.tabSize,i);n.start=n.pos=r||0;if(t==""){mn(o,i.state)}
+while(!n.eol()){Zi(o,n,i.state);n.start=n.pos}};function mn(e,t){if(e.blankLine){return e.blankLine(t)};if(!e.innerMode){return};var i=Yi(e,t);if(i.mode.blankLine){return i.mode.blankLine(i.state)}};function Zi(e,t,i,r){for(var n=0;n<10;n++){if(r){r[0]=Yi(e,i).mode};var o=e.token(t,i);if(t.pos>t.start){return o}};throw new Error("Mode "+e.name+" failed to advance stream.")};var Rr=function(e,t,i){this.start=e.start;this.end=e.pos;this.string=e.current();this.type=t||null;this.state=i};function yn(e,i,r,n){var a=e.doc,h=a.mode,f;i=o(a,i);var c=t(a,i.line),s=mt(e,i.line,r),l=new d(c.text,e.options.tabSize,s),u;if(n){u=[]}
+while((n||l.pos<i.ch)&&!l.eol()){l.start=l.pos;f=Zi(h,l,s.state);if(n){u.push(new Rr(l,f,we(a.mode,s.state)))}};return n?u:new Rr(l,f,s.state)};function bn(e,t){if(e){for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i){break};e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";if(t[r]==null){t[r]=i[2]}
+else if(!(new RegExp("(?:^|\s)"+i[2]+"(?:$|\s)")).test(t[r])){t[r]+=" "+i[2]}}};return e};function wn(e,t,i,r,n,l,u){var c=i.flattenSpans;if(c==null){c=e.options.flattenSpans};var s=0,f=null,o=new d(t,e.options.tabSize,r),a,p=e.options.addModeClass&&[null];if(t==""){bn(mn(i,r.state),l)}
+while(!o.eol()){if(o.pos>e.options.maxHighlightLength){c=!1;if(u){qi(e,t,r,o.pos)};o.pos=t.length;a=null}
+else{a=bn(Zi(i,o,r.state,p),l)};if(p){var h=p[0].name;if(h){a="m-"+(a?h+" "+a:h)}};if(!c||f!=a){while(s<o.start){s=Math.min(o.start,s+5000);n(s,f)};f=a};o.start=o.pos}
+while(s<o.pos){var g=Math.min(o.pos,s+5000);n(g,f);s=g}};function Ul(e,i,r){var f,s,o=e.doc,c=r?-1:i-(e.doc.mode.innerMode?1000:100);for(var n=i;n>c;--n){if(n<=o.first){return o.first};var u=t(o,n-1),l=u.stateAfter;if(l&&(!r||n+(l instanceof Gt?l.lookAhead:0)<=o.modeFrontier)){return n};var a=H(u.text,null,e.options.tabSize);if(s==null||f>a){s=n-1;f=a}};return s};function Vl(e,i){e.modeFrontier=Math.min(e.modeFrontier,i);if(e.highlightFrontier<i-10){return};var o=e.first;for(var r=i-1;r>o;r--){var n=t(e,r).stateAfter;if(n&&(!(n instanceof Gt)||r+n.lookAhead<i)){o=r+1;break}};e.highlightFrontier=Math.min(e.highlightFrontier,o)};var We=function(e,t,i){this.text=e;on(this,t);this.height=i?i(this):1};We.prototype.lineNo=function(){return u(this)};Pe(We);function Kl(e,t,i,r){e.text=t;if(e.stateAfter){e.stateAfter=null};if(e.styles){e.styles=null};if(e.order!=null){e.order=null};nn(e);on(e,i);var n=r?r(e):1;if(n!=e.height){U(e,n)}};function Xl(e){e.parent=null;nn(e)};var cl={};var fl={};function xn(e,t){if(!e||/^\s*$/.test(e)){return null};var i=t.addModeClass?fl:cl;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))};function Cn(e,t){var a=Fe("span",null,null,x?"padding-right: .1px":null),i={pre:Fe("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(l||x)&&e.getOption("lineWrapping")};t.measure={};for(var n=0;n<=(t.rest?t.rest.length:0);n++){var r=n?t.rest[n-1]:t.line,s=(void 0);i.pos=0;i.addToken=Yl;if(Il(e.display.measure)&&(s=Z(r,e.doc.direction))){i.addToken=Zl(i.addToken,s)};i.map=[];var f=t!=e.display.externalMeasured&&u(r);Ql(r,i,vn(e,r,f));if(r.styleClasses){if(r.styleClasses.bgClass){i.bgClass=Oi(r.styleClasses.bgClass,i.bgClass||"")};if(r.styleClasses.textClass){i.textClass=Oi(r.styleClasses.textClass,i.textClass||"")}};if(i.map.length==0){i.map.push(0,0,i.content.appendChild(El(e.display.measure)))};if(n==0){t.measure.map=i.map;t.measure.cache={}}
+else{;(t.measure.maps||(t.measure.maps=[])).push(i.map);(t.measure.caches||(t.measure.caches=[])).push({})}};if(x){var o=i.content.lastChild;if(/\bcm-tab\b/.test(o.className)||(o.querySelector&&o.querySelector(".cm-tab"))){i.content.className="cm-tab-wrap-hack"}};p(e,"renderLine",e,t.line,i.pre);if(i.pre.className){i.textClass=Oi(i.pre.className,i.textClass||"")};return i};function jl(e){var t=i("span","\u2022","cm-invalidchar");t.title="\\u"+e.charCodeAt(0).toString(16);t.setAttribute("aria-label",t.title);return t};function Yl(e,t,r,n,o,f,h){if(!t){return};var m=e.splitSpaces?ql(t,e.trailingSpace):t,y=e.cm.state.specialChars,C=!1,s;if(!y.test(t)){e.col+=t.length;s=document.createTextNode(m);e.map.push(e.pos,e.pos+t.length,s);if(l&&c<9){C=!0};e.pos+=t.length}
+else{s=document.createDocumentFragment();var p=0;while(!0){y.lastIndex=p;var u=y.exec(t),d=u?u.index-p:t.length-p;if(d){var v=document.createTextNode(m.slice(p,p+d));if(l&&c<9){s.appendChild(i("span",[v]))}
+else{s.appendChild(v)};e.map.push(e.pos,e.pos+d,v);e.col+=d;e.pos+=d};if(!u){break};p+=d+1;var a=(void 0);if(u[0]=="\t"){var w=e.cm.options.tabSize,x=w-e.col%w;a=s.appendChild(i("span",Di(x),"cm-tab"));a.setAttribute("role","presentation");a.setAttribute("cm-text","\t");e.col+=x}
+else if(u[0]=="\r"||u[0]=="\n"){a=s.appendChild(i("span",u[0]=="\r"?"\u240d":"\u2424","cm-invalidchar"));a.setAttribute("cm-text",u[0]);e.col+=1}
+else{a=e.cm.options.specialCharPlaceholder(u[0]);a.setAttribute("cm-text",u[0]);if(l&&c<9){s.appendChild(i("span",[a]))}
+else{s.appendChild(a)};e.col+=1};e.map.push(e.pos,e.pos+1,a);e.pos++}};e.trailingSpace=m.charCodeAt(t.length-1)==32;if(r||n||o||C||h){var g=r||"";if(n){g+=n};if(o){g+=o};var b=i("span",[s],g,h);if(f){b.title=f};return e.content.appendChild(b)};e.content.appendChild(s)};function ql(e,t){if(e.length>1&&!/ /.test(e)){return e};var n=t,o="";for(var i=0;i<e.length;i++){var r=e.charAt(i);if(r==" "&&n&&(i==e.length-1||e.charCodeAt(i+1)==32)){r="\u00a0"};o+=r;n=r==" "};return o};function Zl(e,t){return function(i,r,n,o,l,s,u){n=n?n+" cm-force-border":"cm-force-border";var f=i.pos,h=f+r.length;for(;;){var a=(void 0);for(var c=0;c<t.length;c++){a=t[c];if(a.to>f&&a.from<=f){break}};if(a.to>=h){return e(i,r,n,o,l,s,u)};e(i,r.slice(0,a.to-f),n,o,null,s,u);o=null;r=r.slice(a.to-f);f=a.to}}};function Sn(e,t,i,r){var n=!r&&i.widgetNode;if(n){e.map.push(e.pos,e.pos+t,n)};if(!r&&e.cm.display.input.needsContentAttribute){if(!n){n=e.content.appendChild(document.createElement("span"))};n.setAttribute("cm-marker",i.id)};if(n){e.cm.display.input.setUneditable(n);e.content.appendChild(n)};e.pos+=t;e.trailingSpace=!1};function Ql(e,t,i){var k=e.markedSpans,T=e.text,y=0;if(!k){for(var m=1;m<i.length;m+=2){t.addToken(t,T.slice(y,y=i[m]),xn(i[m+1],t.cm.options))};return};var S=T.length,r=0,N=1,a="",L,c,s=0,d,p,g,v,l;for(;;){if(s==r){d=p=g=v=c="";l=null;s=Infinity;var C=[],u=(void 0);for(var x=0;x<k.length;++x){var n=k[x],o=n.marker;if(o.type=="bookmark"&&n.from==r&&o.widgetNode){C.push(o)}
+else if(n.from<=r&&(n.to==null||n.to>r||o.collapsed&&n.to==r&&n.from==r)){if(n.to!=null&&n.to!=r&&s>n.to){s=n.to;p=""};if(o.className){d+=" "+o.className};if(o.css){c=(c?c+";":"")+o.css};if(o.startStyle&&n.from==r){g+=" "+o.startStyle};if(o.endStyle&&n.to==s){(u||(u=[])).push(o.endStyle,n.to)};if(o.title&&!v){v=o.title};if(o.collapsed&&(!l||ln(l.marker,o)<0)){l=n}}
+else if(n.from>r&&s>n.from){s=n.from}};if(u){for(var h=0;h<u.length;h+=2){if(u[h+1]==s){p+=" "+u[h]}}};if(!l||l.from==r){for(var w=0;w<C.length;++w){Sn(t,0,C[w])}};if(l&&(l.from||0)==r){Sn(t,(l.to==null?S+1:l.to)-r,l.marker,l.from==null);if(l.to==null){return};if(l.to==r){l=!1}}};if(r>=S){break};var f=Math.min(S,s);while(!0){if(a){var b=r+a.length;if(!l){var M=b>f?a.slice(0,f-r):a;t.addToken(t,M,L?L+d:d,g,r+M.length==s?p:"",v,c)};if(b>=f){a=a.slice(f-r);r=f;break};r=b;g=""};a=T.slice(y,y=i[N++]);L=xn(i[N++],t.cm.options)}}};function Ln(e,t,i){this.line=t;this.rest=Fl(t);this.size=this.rest?u(a(this.rest))-i+1:1;this.node=this.text=null;this.hidden=be(e,t)};function ri(e,i,r){var l=[],s;for(var n=i;n<r;n=s){var o=new Ln(e.doc,t(e.doc,n),n);s=n+o.size;l.push(o)};return l};var Ae=null;function Jl(e){if(Ae){Ae.ops.push(e)}
+else{e.ownsGroup=Ae={ops:[e],delayedCallbacks:[]}}};function es(e){var n=e.delayedCallbacks,i=0;do{for(;i<n.length;i++){n[i].call(null)};for(var r=0;r<e.ops.length;r++){var t=e.ops[r];if(t.cursorActivityHandlers){while(t.cursorActivityCalled<t.cursorActivityHandlers.length){t.cursorActivityHandlers[t.cursorActivityCalled++].call(null,t.cm)}}}}
+while(i<n.length)};function ts(e,t){var i=e.ownsGroup;if(!i){return};try{es(i)}finally{Ae=null;t(i)}};var rt=null;function w(e,t){var n=Vi(e,t);if(!n.length){return};var l=Array.prototype.slice.call(arguments,2),i;if(Ae){i=Ae.delayedCallbacks}
+else if(rt){i=rt}
+else{i=rt=[];setTimeout(is,0)};var o=function(e){i.push(function(){return n[e].apply(null,l)})};for(var r=0;r<n.length;++r)o(r)};function is(){var t=rt;rt=null;for(var e=0;e<t.length;++e){t[e]()}};function kn(e,t,i,r){for(var o=0;o<t.changes.length;o++){var n=t.changes[o];if(n=="text"){ns(e,t)}
+else if(n=="gutter"){Mn(e,t,i,r)}
+else if(n=="class"){Qi(e,t)}
+else if(n=="widget"){os(e,t,r)}};t.changes=null};function yt(e){if(e.node==e.text){e.node=i("div",null,null,"position: relative");if(e.text.parentNode){e.text.parentNode.replaceChild(e.node,e.text)};e.node.appendChild(e.text);if(l&&c<8){e.node.style.zIndex=2}};return e.node};function rs(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r){r+=" CodeMirror-linebackground"};if(t.background){if(r){t.background.className=r}
+else{t.background.parentNode.removeChild(t.background);t.background=null}}
+else if(r){var n=yt(t);t.background=n.insertBefore(i("div",null,r),n.firstChild);e.display.input.setUneditable(t.background)}};function Tn(e,t){var i=e.display.externalMeasured;if(i&&i.line==t.line){e.display.externalMeasured=null;t.measure=i.measure;return i.built};return Cn(e,t)};function ns(e,t){var r=t.text.className,i=Tn(e,t);if(t.text==t.node){t.node=i.pre};t.text.parentNode.replaceChild(i.pre,t.text);t.text=i.pre;if(i.bgClass!=t.bgClass||i.textClass!=t.textClass){t.bgClass=i.bgClass;t.textClass=i.textClass;Qi(e,t)}
+else if(r){t.text.className=r}};function Qi(e,t){rs(e,t);if(t.line.wrapClass){yt(t).className=t.line.wrapClass}
+else if(t.node!=t.text){t.node.className=""};var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""};function Mn(e,t,r,n){if(t.gutter){t.node.removeChild(t.gutter);t.gutter=null};if(t.gutterBackground){t.node.removeChild(t.gutterBackground);t.gutterBackground=null};if(t.line.gutterClass){var c=yt(t);t.gutterBackground=i("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,("left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+(n.gutterTotalWidth)+"px"));e.display.input.setUneditable(t.gutterBackground);c.insertBefore(t.gutterBackground,t.text)};var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var f=yt(t),l=t.gutter=i("div",null,"CodeMirror-gutter-wrapper",("left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px"));e.display.input.setUneditable(l);f.insertBefore(l,t.text);if(t.line.gutterClass){l.className+=" "+t.line.gutterClass};if(e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])){t.lineNumber=l.appendChild(i("div",Ei(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt",("left: "+(n.gutterLeft["CodeMirror-linenumbers"])+"px; width: "+(e.display.lineNumInnerWidth)+"px")))};if(o){for(var a=0;a<e.options.gutters.length;++a){var s=e.options.gutters[a],u=o.hasOwnProperty(s)&&o[s];if(u){l.appendChild(i("div",[u],"CodeMirror-gutter-elt",("left: "+(n.gutterLeft[s])+"px; width: "+(n.gutterWidth[s])+"px")))}}}}};function os(e,t,i){if(t.alignable){t.alignable=null};for(var r=t.node.firstChild,n=(void 0);r;r=n){n=r.nextSibling;if(r.className=="CodeMirror-linewidget"){t.node.removeChild(r)}};Nn(e,t,i)};function ls(e,t,i,r){var n=Tn(e,t);t.text=t.node=n.pre;if(n.bgClass){t.bgClass=n.bgClass};if(n.textClass){t.textClass=n.textClass};Qi(e,t);Mn(e,t,i,r);Nn(e,t,r);return t.node};function Nn(e,t,i){On(e,t.line,t,i,!0);if(t.rest){for(var r=0;r<t.rest.length;r++){On(e,t.rest[r],t,i,!1)}}};function On(e,t,r,n,o){if(!t.widgets){return};var f=yt(r);for(var a=0,u=t.widgets;a<u.length;++a){var l=u[a],s=i("div",[l.node],"CodeMirror-linewidget");if(!l.handleMouseEvents){s.setAttribute("cm-ignore-events","true")};ss(l,s,r,n);e.display.input.setUneditable(s);if(o&&l.above){f.insertBefore(s,r.gutter||r.text)}
+else{f.appendChild(s)};w(l,"redraw")}};function ss(e,t,i,r){if(e.noHScroll){;(i.alignable||(i.alignable=[])).push(t);var n=r.wrapperWidth;t.style.left=r.fixedPos+"px";if(!e.coverGutter){n-=r.gutterTotalWidth;t.style.paddingLeft=r.gutterTotalWidth+"px"};t.style.width=n+"px"};if(e.coverGutter){t.style.zIndex=5;t.style.position="relative";if(!e.noHScroll){t.style.marginLeft=-r.gutterTotalWidth+"px"}}};function bt(e){if(e.height!=null){return e.height};var t=e.doc.cm;if(!t){return 0};if(!ne(document.body,e.node)){var r="position: relative;";if(e.coverGutter){r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"};if(e.noHScroll){r+="width: "+t.display.wrapper.clientWidth+"px;"};W(t.display.measure,i("div",[e.node],null,r))};return e.height=e.node.parentNode.offsetHeight};function Q(e,t){for(var i=Xi(t);i!=e.wrapper;i=i.parentNode){if(!i||(i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true")||(i.parentNode==e.sizer&&i!=e.mover)){return!0}}};function ni(e){return e.lineSpace.offsetTop};function Ji(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight};function An(e){if(e.cachedPaddingH){return e.cachedPaddingH};var r=W(e.measure,i("pre","x")),n=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,t={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};if(!isNaN(t.left)&&!isNaN(t.right)){e.cachedPaddingH=t};return t};function K(e){return Ur-e.display.nativeBarWidth};function xe(e){return e.display.scroller.clientWidth-K(e)-e.display.barWidth};function er(e){return e.display.scroller.clientHeight-K(e)-e.display.barHeight};function as(e,t,i){var o=e.options.lineWrapping,u=o&&xe(e);if(!t.measure.heights||o&&t.measure.width!=u){var a=t.measure.heights=[];if(o){t.measure.width=u;var n=t.text.firstChild.getClientRects();for(var r=0;r<n.length-1;r++){var l=n[r],s=n[r+1];if(Math.abs(l.bottom-s.bottom)>2){a.push((l.bottom+s.top)/2-i.top)}}};a.push(i.bottom-i.top)}};function Wn(e,t,i){if(e.line==t){return{map:e.measure.map,cache:e.measure.cache}};for(var n=0;n<e.rest.length;n++){if(e.rest[n]==t){return{map:e.measure.maps[n],cache:e.measure.caches[n]}}};for(var r=0;r<e.rest.length;r++){if(u(e.rest[r])>i){return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}}};function us(e,t){t=V(t);var n=u(t),i=e.display.externalMeasured=new Ln(e.doc,t,n);i.lineN=n;var r=i.built=Cn(e,i);i.text=r.pre;W(e.display.lineMeasure,r.pre);return i};function Dn(e,t,i,r){return X(e,Ee(e,t),i,r)};function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo){return e.display.view[Le(e,t)]};var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size){return i}};function Ee(e,t){var n=u(t),i=tr(e,n);if(i&&!i.text){i=null}
+else if(i&&i.changes){kn(e,i,n,sr(e));e.curOp.forceUpdate=!0};if(!i){i=us(e,t)};var r=Wn(i,t,n);return{line:t,view:i,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}};function X(e,t,i,r,n){if(t.before){i=-1};var l=i+(r||""),o;if(t.cache.hasOwnProperty(l)){o=t.cache[l]}
+else{if(!t.rect){t.rect=t.view.text.getBoundingClientRect()};if(!t.hasHeights){as(e,t.view,t.rect);t.hasHeights=!0};o=cs(e,t,i,r);if(!o.bogus){t.cache[l]=o}};return{left:o.left,right:o.right,top:n?o.rtop:o.top,bottom:n?o.rbottom:o.bottom}};var zr={left:0,right:0,top:0,bottom:0};function Hn(e,t,i){var a,n,u,s,l,o;for(var r=0;r<e.length;r+=3){l=e[r];o=e[r+1];if(t<l){n=0;u=1;s="left"}
+else if(t<o){n=t-l;u=n+1}
+else if(r==e.length-3||t==o&&e[r+3]>t){u=o-l;n=u-1;if(t>=o){s="right"}};if(n!=null){a=e[r+2];if(l==o&&i==(a.insertLeft?"left":"right")){s=i};if(i=="left"&&n==0){while(r&&e[r-2]==e[r-3]&&e[r-1].insertLeft){a=e[(r-=3)+2];s="left"}};if(i=="right"&&n==o-l){while(r<e.length-3&&e[r+3]==e[r+4]&&!e[r+5].insertLeft){a=e[(r+=3)+2];s="right"}};break}};return{node:a,start:n,end:u,collapse:s,coverStart:l,coverEnd:o}};function fs(e,t){var i=zr;if(t=="left"){for(var n=0;n<e.length;n++){if((i=e[n]).left!=i.right){break}}}
+else{for(var r=e.length-1;r>=0;r--){if((i=e[r]).left!=i.right){break}}};return i};function cs(e,t,i,r){var s=Hn(t.map,i,r),u=s.node,o=s.start,f=s.end,g=s.collapse,n;if(u.nodeType==3){for(var b=0;b<4;b++){while(o&&Fi(t.line.text.charAt(s.coverStart+o))){--o}
+while(s.coverStart+f<s.coverEnd&&Fi(t.line.text.charAt(s.coverStart+f))){++f};if(l&&c<9&&o==0&&f==s.coverEnd-s.coverStart){n=u.parentNode.getBoundingClientRect()}
+else{n=fs(he(u,o,f).getClientRects(),r)};if(n.left||n.right||o==0){break};f=o;o=o-1;g="right"};if(l&&c<11){n=hs(e.display.measure,n)}}
+else{if(o>0){g=r="right"};var v;if(e.options.lineWrapping&&(v=u.getClientRects()).length>1){n=v[r=="right"?v.length-1:0]}
+else{n=u.getBoundingClientRect()}};if(l&&c<9&&!o&&(!n||!n.left&&!n.right)){var h=u.parentNode.getClientRects()[0];if(h){n={left:h.left,right:h.left+xt(e.display),top:h.top,bottom:h.bottom}}
+else{n=zr}};var m=n.top-t.rect.top,y=n.bottom-t.rect.top,C=(m+y)/2,p=t.view.measure.heights,a=0;for(;a<p.length-1;a++){if(C<p[a]){break}};var w=a?p[a-1]:0,x=p[a],d={left:(g=="right"?n.right:n.left)-t.rect.left,right:(g=="left"?n.left:n.right)-t.rect.left,top:w,bottom:x};if(!n.left&&!n.right){d.bogus=!0};if(!e.options.singleCursorHeightPerLine){d.rtop=m;d.rbottom=y};return d};function hs(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!zl(e)){return t};var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}};function Fn(e){if(e.measure){e.measure.cache={};e.measure.heights=null;if(e.rest){for(var t=0;t<e.rest.length;t++){e.measure.caches[t]={}}}}};function Pn(e){e.display.externalMeasure=null;re(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++){Fn(e.display.view[t])}};function wt(e){Pn(e);e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null;if(!e.options.lineWrapping){e.display.maxLineChanged=!0};e.display.lineNumChars=null};function En(){if(Kt&&Xt){return-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft))};return window.pageXOffset||(document.documentElement||document.body).scrollLeft};function In(){if(Kt&&Xt){return-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop))};return window.pageYOffset||(document.documentElement||document.body).scrollTop};function ir(e){var i=0;if(e.widgets){for(var t=0;t<e.widgets.length;++t){if(e.widgets[t].above){i+=bt(e.widgets[t])}}};return i};function oi(e,t,i,r,n){if(!n){var a=ir(t);i.top+=a;i.bottom+=a};if(r=="line"){return i};if(!r){r="local"};var o=q(t);if(r=="local"){o+=ni(e.display)}
+else{o-=e.display.viewOffset};if(r=="page"||r=="window"){var s=e.display.lineSpace.getBoundingClientRect();o+=s.top+(r=="window"?0:In());var l=s.left+(r=="window"?0:En());i.left+=l;i.right+=l};i.top+=o;i.bottom+=o;return i};function zn(e,t,i){if(i=="div"){return t};var r=t.left,n=t.top;if(i=="page"){r-=En();n-=In()}
+else if(i=="local"||!i){var l=e.display.sizer.getBoundingClientRect();r+=l.left;n+=l.top};var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:n-o.top}};function rr(e,i,r,n,o){if(!n){n=t(e.doc,i.line)};return oi(e,n,Dn(e,n,i.ch,o),r)};function z(e,i,r,n,o,a){n=n||t(e.doc,i.line);if(!o){o=Ee(e,n)};function h(t,i){var l=X(e,o,t,i?"right":"left",a);if(i){l.left=l.right}
+else{l.right=l.left};return oi(e,n,l,r)};var u=Z(n,e.doc.direction),l=i.ch,s=i.sticky;if(l>=n.text.length){l=n.text.length;s="before"}
+else if(l<=0){l=0;s="after"};if(!u){return h(s=="before"?l-1:l,s=="before")};function d(e,t,i){var r=u[t],n=r.level==1;return h(i?e-1:e,n!=i)};var p=gt(u,l,s),f=nt,c=d(l,p,s=="before");if(f!=null){c.other=d(l,f,s!="before")};return c};function Rn(e,i){var r=0;i=o(e.doc,i);if(!e.options.lineWrapping){r=xt(e.display)*i.ch};var n=t(e.doc,i.line),l=q(n)+ni(e.display);return{left:r,right:r,top:l,bottom:l+n.height}};function nr(t,i,r,n,o){var l=e(t,i,r);l.xRel=o;if(n){l.outside=!0};return l};function or(e,i,r){var n=e.doc;r+=e.display.viewOffset;if(r<0){return nr(n.first,0,null,!0,-1)};var l=ye(n,r),c=n.first+n.size-1;if(l>c){return nr(n.first+n.size-1,t(n,c).text.length,null,!0,1)};if(i<0){i=0};var f=t(n,l);for(;;){var o=ds(e,f,l,i,r),s=pt(f),a=s&&s.find(0,!0);if(s&&(o.ch>a.from.ch||o.ch==a.from.ch&&o.xRel>0)){l=u(f=a.to.line)}
+else{return o}}};function Bn(e,t,i,r){r-=ir(t);var n=t.text.length,o=ct(function(t){return X(e,i,t-1).bottom<=r},n,0);n=ct(function(t){return X(e,i,t).top>r},o,n);return{begin:o,end:n}};function Gn(e,t,i,r){if(!i){i=Ee(e,t)};var n=oi(e,t,X(e,i,r),"line").top;return Bn(e,t,i,n)};function lr(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t};function ds(t,i,r,n,o){o-=q(i);var c=Ee(t,i),p=ir(i),g=0,v=i.text.length,s=!0,x=Z(i,t.doc.direction);if(x){var u=(t.options.lineWrapping?gs:ps)(t,i,r,c,x,n,o);s=u.level!=1;g=s?u.from:u.to-1;v=s?u.to:u.from-1};var b=null,a=null,l=ct(function(e){var i=X(t,c,e);i.top+=p;i.bottom+=p;if(!lr(i,n,o,!1)){return!1};if(i.top<=o&&i.left<=n){b=e;a=i};return!0},g,v),d,f,w=!1;if(a){var m=n-a.left<a.right-n,y=m==s;l=b+(y?0:1);f=y?"after":"before";d=m?a.left:a.right}
+else{if(!s&&(l==v||l==g)){l++};f=l==0?"after":l==i.text.length?"before":(X(t,c,l-(s?1:0)).bottom+p<=o)==s?"after":"before";var h=z(t,e(r,l,f),"line",i,c);d=h.left;w=o<h.top||o>=h.bottom};l=Jr(i.text,l,1);return nr(r,l,f,w,n-d)};function ps(t,i,r,n,o,l,s){var u=ct(function(a){var u=o[a],f=u.level!=1;return lr(z(t,e(r,f?u.to:u.from,f?"before":"after"),"line",i,n),l,s,!0)},0,o.length-1),a=o[u];if(u>0){var f=a.level!=1,c=z(t,e(r,f?a.from:a.to,f?"after":"before"),"line",i,n);if(lr(c,l,s,!0)&&c.top>s){a=o[u-1]}};return a};function gs(e,t,i,r,n,l,u){var g=Bn(e,t,r,u),f=g.begin,a=g.end;if(/\s/.test(t.text.charAt(a-1))){a--};var o=null,p=null;for(var h=0;h<n.length;h++){var s=n[h];if(s.from>=a||s.to<=f){continue};var v=s.level!=1,c=X(e,r,v?Math.min(a,s.to)-1:Math.max(f,s.from)).right,d=c<l?l-c+1e9:c-l;if(!o||p>d){o=s;p=d}};if(!o){o=n[n.length-1]};if(o.from<f){o={from:f,to:o.to,level:o.level}};if(o.to>a){o={from:o.from,to:a,level:o.level}};return o};var fe;function Ce(e){if(e.cachedTextHeight!=null){return e.cachedTextHeight};if(fe==null){fe=i("pre");for(var r=0;r<49;++r){fe.appendChild(document.createTextNode("x"));fe.appendChild(i("br"))};fe.appendChild(document.createTextNode("x"))};W(e.measure,fe);var t=fe.offsetHeight/50;if(t>3){e.cachedTextHeight=t};re(e.measure);return t||1};function xt(e){if(e.cachedCharWidth!=null){return e.cachedCharWidth};var n=i("span","xxxxxxxxxx"),o=i("pre",[n]);W(e.measure,o);var r=n.getBoundingClientRect(),t=(r.right-r.left)/10;if(t>2){e.cachedCharWidth=t};return t||10};function sr(e){var i=e.display,n={},o={};var l=i.gutters.clientLeft;for(var t=i.gutters.firstChild,r=0;t;t=t.nextSibling,++r){n[e.options.gutters[r]]=t.offsetLeft+t.clientLeft+l;o[e.options.gutters[r]]=t.clientWidth};return{fixedPos:ar(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:n,gutterWidth:o,wrapperWidth:i.wrapper.clientWidth}};function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left};function Un(e){var t=Ce(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/xt(e.display)-3);return function(n){if(be(e.doc,n)){return 0};var l=0;if(n.widgets){for(var o=0;o<n.widgets.length;o++){if(n.widgets[o].height){l+=n.widgets[o].height}}};if(i){return l+(Math.ceil(n.text.length/r)||1)*t}
+else{return l+t}}};function ur(e){var t=e.doc,i=Un(e);t.iter(function(e){var t=i(e);if(t!=e.height){U(e,t)}})};function Se(i,r,n,o){var d=i.display;if(!n&&Xi(r).getAttribute("cm-not-content")=="true"){return null};var u,f,c=d.lineSpace.getBoundingClientRect();try{u=r.clientX-c.left;f=r.clientY-c.top}catch(l){return null};var s=or(i,u,f),a;if(o&&s.xRel==1&&(a=t(i.doc,s.line).text).length==s.ch){var h=H(a,a.length,i.options.tabSize)-a.length;s=e(s.line,Math.max(0,Math.round((u-An(i.display).left)/xt(i.display))-h))};return s};function Le(e,t){if(t>=e.display.viewTo){return null};t-=e.display.viewFrom;if(t<0){return null};var r=e.display.view;for(var i=0;i<r.length;i++){t-=r[i].size;if(t<0){return i}}};function Ct(e){e.display.input.showSelection(e.display.input.prepareSelection())};function Vn(e,t){if(t===void 0)t=!0;var n=e.doc,o={};var s=o.cursors=document.createDocumentFragment(),a=o.selection=document.createDocumentFragment();for(var r=0;r<n.sel.ranges.length;r++){if(!t&&r==n.sel.primIndex){continue};var i=n.sel.ranges[r];if(i.from().line>=e.display.viewTo||i.to().line<e.display.viewFrom){continue};var l=i.empty();if(l||e.options.showCursorWhenSelecting){Kn(e,i.head,s)};if(!l){vs(e,i,a)}};return o};function Kn(e,t,r){var n=z(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),l=r.appendChild(i("div","\u00a0","CodeMirror-cursor"));l.style.left=n.left+"px";l.style.top=n.top+"px";l.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px";if(n.other){var o=r.appendChild(i("div","\u00a0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="";o.style.left=n.other.left+"px";o.style.top=n.other.top+"px";o.style.height=(n.other.bottom-n.other.top)*.85+"px"}};function li(e,t){return e.top-t.top||e.left-t.left};function vs(r,n,o){var y=r.display,p=r.doc,b=document.createDocumentFragment(),w=An(r.display),a=w.left,h=Math.max(y.sizerWidth,xe(r)-y.sizer.offsetLeft)-w.right,s=p.direction=="ltr";function u(e,t,r,n){if(t<0){t=0};t=Math.round(t);n=Math.round(n);b.appendChild(i("div",null,"CodeMirror-selected",("position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(r==null?h-e:r)+"px;\n height: "+(n-t)+"px")))};function v(i,n,o){var c=t(p,i),m=c.text.length,l,f;function v(t,n){return rr(r,e(i,t),"div",c,n)};function d(e,t,i){var n=Gn(r,c,null,e),o=(t=="ltr")==(i=="after")?"left":"right",l=i=="after"?n.begin:n.end-(/\s/.test(c.text.charAt(n.end-1))?2:1);return v(l,o)[o]};var g=Z(c,p.direction);Pl(g,n||0,o==null?m:o,function(e,t,i,r){var y=i=="ltr",c=v(e,y?"left":"right"),p=v(t-1,y?"right":"left"),x=n==null&&e==0,C=o==null&&t==m,k=r==0,T=!g||r==g.length-1;if(p.top-c.top<=3){var N=(s?x:C)&&k,O=(s?C:x)&&T,M=N?a:(y?c:p).left,A=O?h:(y?p:c).right;u(M,c.top,A-M,c.bottom)}
+else{var b,S,w,L;if(y){b=s&&x&&k?a:c.left;S=s?h:d(e,i,"before");w=s?a:d(t,i,"after");L=s&&C&&T?h:p.right}
+else{b=!s?a:d(e,i,"before");S=!s&&x&&k?h:c.right;w=!s&&C&&T?a:p.left;L=!s?h:d(t,i,"after")};u(b,c.top,S-b,c.bottom);if(c.bottom<p.top){u(a,c.bottom,null,p.top)};u(w,p.top,L-w,p.bottom)};if(!l||li(c,l)<0){l=c};if(li(p,l)<0){l=p};if(!f||li(c,f)<0){f=c};if(li(p,f)<0){f=p}});return{start:l,end:f}};var c=n.from(),d=n.to();if(c.line==d.line){v(c.line,c.ch,d.ch)}
+else{var m=t(p,c.line),x=t(p,d.line),g=V(m)==V(x),l=v(c.line,c.ch,g?m.text.length+1:null).end,f=v(d.line,g?0:null,d.ch).start;if(g){if(l.top<f.top-2){u(l.right,l.top,null,l.bottom);u(a,f.top,f.left,f.bottom)}
+else{u(l.right,l.top,f.left-l.right,l.bottom)}};if(l.bottom<f.top){u(a,l.bottom,null,f.top)}};o.appendChild(b)};function fr(e){if(!e.state.focused){return};var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="";if(e.options.cursorBlinkRate>0){t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate)}
+else if(e.options.cursorBlinkRate<0){t.cursorDiv.style.visibility="hidden"}};function Xn(e){if(!e.state.focused){e.display.input.focus();cr(e)}};function jn(e){e.state.delayingBlurEvent=!0;setTimeout(function(){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=!1;St(e)}},100)};function cr(e,t){if(e.state.delayingBlurEvent){e.state.delayingBlurEvent=!1};if(e.options.readOnly=="nocursor"){return};if(!e.state.focused){p(e,"focus",e,t);e.state.focused=!0;ge(e.display.wrapper,"CodeMirror-focused");if(!e.curOp&&e.display.selForContextMenu!=e.doc.sel){e.display.input.reset();if(x){setTimeout(function(){return e.display.input.reset(!0)},20)}};e.display.input.receivedFocus()};fr(e)};function St(e,t){if(e.state.delayingBlurEvent){return};if(e.state.focused){p(e,"blur",e,t);e.state.focused=!1;de(e.display.wrapper,"CodeMirror-focused")};clearInterval(e.display.blinker);setTimeout(function(){if(!e.state.focused){e.display.shift=!1}},150)};function si(e){var r=e.display,f=r.lineDiv.offsetTop;for(var o=0;o<r.view.length;o++){var t=r.view[o],i=(void 0);if(t.hidden){continue};if(l&&c<8){var u=t.node.offsetTop+t.node.offsetHeight;i=u-f;f=u}
+else{var a=t.node.getBoundingClientRect();i=a.bottom-a.top};var s=t.line.height-i;if(i<2){i=Ce(r)};if(s>.005||s<-.005){U(t.line,i);Yn(t.line);if(t.rest){for(var n=0;n<t.rest.length;n++){Yn(t.rest[n])}}}}};function Yn(e){if(e.widgets){for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],r=i.node.parentNode;if(r){i.height=r.offsetHeight}}}};function hr(e,i,r){var l=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;l=Math.floor(l-ni(e));var u=r&&r.bottom!=null?r.bottom:l+e.wrapper.clientHeight,n=ye(i,l),o=ye(i,u);if(r&&r.ensure){var s=r.ensure.from.line,a=r.ensure.to.line;if(s<n){n=s;o=ye(i,q(t(i,s))+e.wrapper.clientHeight)}
+else if(Math.min(a,i.lastLine())>=o){n=ye(i,q(t(i,a))-e.wrapper.clientHeight);o=a}};return{from:n,to:Math.max(o,n+1)}};function qn(e){var i=e.display,r=i.view;if(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter)){return};var s=ar(i)-i.scroller.scrollLeft+e.doc.scrollLeft,a=i.gutters.offsetWidth,l=s+"px";for(var t=0;t<r.length;t++){if(!r[t].hidden){if(e.options.fixedGutter){if(r[t].gutter){r[t].gutter.style.left=l};if(r[t].gutterBackground){r[t].gutterBackground.style.left=l}};var o=r[t].alignable;if(o){for(var n=0;n<o.length;n++){o[n].style.left=l}}}};if(e.options.fixedGutter){i.gutters.style.left=(s+a)+"px"}};function Zn(e){if(!e.options.lineNumbers){return!1};var s=e.doc,r=Ei(e.options,s.first+s.size-1),t=e.display;if(r.length!=t.lineNumChars){var n=t.measure.appendChild(i("div",[i("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=n.firstChild.offsetWidth,l=n.offsetWidth-o;t.lineGutter.style.width="";t.lineNumInnerWidth=Math.max(o,t.lineGutter.offsetWidth-l)+1;t.lineNumWidth=t.lineNumInnerWidth+l;t.lineNumChars=t.lineNumInnerWidth?r.length:-1;t.lineGutter.style.width=t.lineNumWidth+"px";mr(e);return!0};return!1};function ms(e,t){if(v(e,"scrollCursorIntoView")){return};var o=e.display,l=o.sizer.getBoundingClientRect(),r=null;if(t.top+l.top<0){r=!0}
+else if(t.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)){r=!1};if(r!=null&&!wl){var n=i("div","\u200b",null,("position: absolute;\n top: "+(t.top-o.viewOffset-ni(e.display))+"px;\n height: "+(t.bottom-t.top+K(e)+o.barHeight)+"px;\n left: "+(t.left)+"px; width: "+(Math.max(2,t.right-t.left))+"px;"));e.display.lineSpace.appendChild(n);n.scrollIntoView(r);e.display.lineSpace.removeChild(n)}};function ys(t,i,r,n){if(n==null){n=0};var u;if(!t.options.lineWrapping&&i==r){i=i.ch?e(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i;r=i.sticky=="before"?e(i.line,i.ch+1,"before"):i};for(var f=0;f<5;f++){var a=!1,o=z(t,i),s=!r||r==i?o:z(t,r);u={left:Math.min(o.left,s.left),top:Math.min(o.top,s.top)-n,right:Math.max(o.left,s.left),bottom:Math.max(o.bottom,s.bottom)+n};var l=dr(t,u),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(l.scrollTop!=null){kt(t,l.scrollTop);if(Math.abs(t.doc.scrollTop-c)>1){a=!0}};if(l.scrollLeft!=null){ke(t,l.scrollLeft);if(Math.abs(t.doc.scrollLeft-h)>1){a=!0}};if(!a){break}};return u};function bs(e,t){var i=dr(e,t);if(i.scrollTop!=null){kt(e,i.scrollTop)};if(i.scrollLeft!=null){ke(e,i.scrollLeft)}};function dr(e,t){var o=e.display,c=Ce(e.display);if(t.top<0){t.top=0};var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:o.scroller.scrollTop,n=er(e),i={};if(t.bottom-t.top>n){t.bottom=t.top+n};var f=e.doc.height+Ji(o),h=t.top<c,d=t.bottom>f-c;if(t.top<s){i.scrollTop=h?0:t.top}
+else if(t.bottom>s+n){var u=Math.min(t.top,(d?f:t.bottom)-n);if(u!=s){i.scrollTop=u}};var a=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:o.scroller.scrollLeft,r=xe(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),l=t.right-t.left>r;if(l){t.right=t.left+r};if(t.left<10){i.scrollLeft=0}
+else if(t.left<a){i.scrollLeft=Math.max(0,t.left-(l?0:10))}
+else if(t.right>r+a-3){i.scrollLeft=t.right+(l?0:10)-r};return i};function pr(e,t){if(t==null){return};ai(e);e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t};function Ie(e){ai(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}};function Lt(e,t,i){if(t!=null||i!=null){ai(e)};if(t!=null){e.curOp.scrollLeft=t};if(i!=null){e.curOp.scrollTop=i}};function ws(e,t){ai(e);e.curOp.scrollToPos=t};function ai(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Rn(e,t.from),r=Rn(e,t.to);Qn(e,i,r,t.margin)}};function Qn(e,t,i,r){var n=dr(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});Lt(e,n.scrollLeft,n.scrollTop)};function kt(e,t){if(Math.abs(e.doc.scrollTop-t)<2){return};if(!ie){vr(e,{top:t})};Jn(e,t,!0);if(ie){vr(e)};Mt(e,100)};function Jn(e,t,i){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t);if(e.display.scroller.scrollTop==t&&!i){return};e.doc.scrollTop=t;e.display.scrollbars.setScrollTop(t);if(e.display.scroller.scrollTop!=t){e.display.scroller.scrollTop=t}};function ke(e,t,i,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth);if((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r){return};e.doc.scrollLeft=t;qn(e);if(e.display.scroller.scrollLeft!=t){e.display.scroller.scrollLeft=t};e.display.scrollbars.setScrollLeft(t)};function Tt(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ji(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+K(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}};var ue=function(e,t,n){this.cm=n;var o=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(o);e(s);r(o,"scroll",function(){if(o.clientHeight){t(o.scrollTop,"vertical")}});r(s,"scroll",function(){if(s.clientWidth){t(s.scrollLeft,"horizontal")}});this.checkedZeroWidth=!1;if(l&&c<8){this.horiz.style.minHeight=this.vert.style.minWidth="18px"}};ue.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,t=e.nativeBarWidth;if(r){this.vert.style.display="block";this.vert.style.bottom=i?t+"px":"0";var o=e.viewHeight-(i?t:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}
+else{this.vert.style.display="";this.vert.firstChild.style.height="0"};if(i){this.horiz.style.display="block";this.horiz.style.right=r?t+"px":"0";this.horiz.style.left=e.barLeft+"px";var n=e.viewWidth-e.barLeft-(r?t:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+n)+"px"}
+else{this.horiz.style.display="";this.horiz.firstChild.style.width="0"};if(!this.checkedZeroWidth&&e.clientHeight>0){if(t==0){this.zeroWidthHack()};this.checkedZeroWidth=!0};return{right:r?t:0,bottom:i?t:0}};ue.prototype.setScrollLeft=function(e){if(this.horiz.scrollLeft!=e){this.horiz.scrollLeft=e};if(this.disableHoriz){this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")}};ue.prototype.setScrollTop=function(e){if(this.vert.scrollTop!=e){this.vert.scrollTop=e};if(this.disableVert){this.enableZeroWidthBar(this.vert,this.disableVert,"vert")}};ue.prototype.zeroWidthHack=function(){var e=I&&!bl?"12px":"18px";this.horiz.style.height=this.vert.style.width=e;this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none";this.disableHoriz=new ce;this.disableVert=new ce};ue.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function r(){var n=e.getBoundingClientRect(),o=i=="vert"?document.elementFromPoint(n.right-1,(n.top+n.bottom)/2):document.elementFromPoint((n.right+n.left)/2,n.bottom-1);if(o!=e){e.style.pointerEvents="none"}
+else{t.set(1000,r)}};t.set(1000,r)};ue.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz);e.removeChild(this.vert)};var it=function(){};it.prototype.update=function(){return{bottom:0,right:0}};it.prototype.setScrollLeft=function(){};it.prototype.setScrollTop=function(){};it.prototype.clear=function(){};function ze(e,t){if(!t){t=Tt(e)};var i=e.display.barWidth,n=e.display.barHeight;eo(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++){if(i!=e.display.barWidth&&e.options.lineWrapping){si(e)};eo(e,Tt(e));i=e.display.barWidth;n=e.display.barHeight}};function eo(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px";i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px";i.heightForcer.style.borderBottom=r.bottom+"px solid transparent";if(r.right&&r.bottom){i.scrollbarFiller.style.display="block";i.scrollbarFiller.style.height=r.bottom+"px";i.scrollbarFiller.style.width=r.right+"px"}
+else{i.scrollbarFiller.style.display=""};if(r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter){i.gutterFiller.style.display="block";i.gutterFiller.style.height=r.bottom+"px";i.gutterFiller.style.width=t.gutterWidth+"px"}
+else{i.gutterFiller.style.display=""}};var Ir={"native":ue,"null":it};function to(e){if(e.display.scrollbars){e.display.scrollbars.clear();if(e.display.scrollbars.addClass){de(e.display.wrapper,e.display.scrollbars.addClass)}};e.display.scrollbars=new Ir[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller);r(t,"mousedown",function(){if(e.state.focused){setTimeout(function(){return e.display.input.focus()},0)}});t.setAttribute("cm-not-content","true")},function(t,i){if(i=="horizontal"){ke(e,t)}
+else{kt(e,t)}},e);if(e.display.scrollbars.addClass){ge(e.display.wrapper,e.display.scrollbars.addClass)}};var ul=0;function Te(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ul};Jl(e.curOp)};function Me(e){var t=e.curOp;ts(t,function(e){for(var t=0;t<e.ops.length;t++){e.ops[t].cm.curOp=null};xs(e)})};function xs(e){var t=e.ops;for(var l=0;l<t.length;l++){Cs(t[l])};for(var o=0;o<t.length;o++){Ss(t[o])};for(var n=0;n<t.length;n++){Ls(t[n])};for(var r=0;r<t.length;r++){ks(t[r])};for(var i=0;i<t.length;i++){Ts(t[i])}};function Cs(e){var t=e.cm,i=t.display;Os(t);if(e.updateMaxLine){Ui(t)};e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping;e.update=e.mustUpdate&&new Bt(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)};function Ss(e){e.updatedDisplay=e.mustUpdate&&gr(e.cm,e.update)};function Ls(e){var t=e.cm,i=t.display;if(e.updatedDisplay){si(t)};e.barMeasure=Tt(t);if(i.maxLineChanged&&!t.options.lineWrapping){e.adjustWidthTo=Dn(t,i.maxLine,i.maxLine.text.length).left+3;t.display.sizerWidth=e.adjustWidthTo;e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+K(t)+t.display.barWidth);e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-xe(t))};if(e.updatedDisplay||e.selectionChanged){e.preparedSelection=i.input.prepareSelection()}};function ks(e){var t=e.cm;if(e.adjustWidthTo!=null){t.display.sizer.style.minWidth=e.adjustWidthTo+"px";if(e.maxScrollLeft<t.doc.scrollLeft){ke(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0)};t.display.maxLineChanged=!1};var i=e.focus&&e.focus==Y();if(e.preparedSelection){t.display.input.showSelection(e.preparedSelection,i)};if(e.updatedDisplay||e.startHeight!=t.doc.height){ze(t,e.barMeasure)};if(e.updatedDisplay){yr(t,e.barMeasure)};if(e.selectionChanged){fr(t)};if(t.state.focused&&e.updateInput){t.display.input.reset(e.typing)};if(i){Xn(e.cm)}};function Ts(e){var t=e.cm,s=t.display,a=t.doc;if(e.updatedDisplay){ro(t,e.update)};if(s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)){s.wheelStartX=s.wheelStartY=null};if(e.scrollTop!=null){Jn(t,e.scrollTop,e.forceScroll)};if(e.scrollLeft!=null){ke(t,e.scrollLeft,!0,!0)};if(e.scrollToPos){var u=ys(t,o(a,e.scrollToPos.from),o(a,e.scrollToPos.to),e.scrollToPos.margin);ms(t,u)};var n=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(n){for(var r=0;r<n.length;++r){if(!n[r].lines.length){p(n[r],"hide")}}};if(l){for(var i=0;i<l.length;++i){if(l[i].lines.length){p(l[i],"unhide")}}};if(s.wrapper.offsetHeight){a.scrollTop=t.display.scroller.scrollTop};if(e.changeObjs){p(t,"changes",t,e.changeObjs)};if(e.update){e.update.finish()}};function N(e,t){if(e.curOp){return t()};Te(e);try{return t()}finally{Me(e)}};function m(e,t){return function(){if(e.curOp){return t.apply(e,arguments)};Te(e);try{return t.apply(e,arguments)}finally{Me(e)}}};function L(e){return function(){if(this.curOp){return e.apply(this,arguments)};Te(this);try{return e.apply(this,arguments)}finally{Me(this)}}};function y(e){return function(){var t=this.cm;if(!t||t.curOp){return e.apply(this,arguments)};Te(t);try{return e.apply(this,arguments)}finally{Me(t)}}};function M(e,t,i,r){if(t==null){t=e.doc.first};if(i==null){i=e.doc.first+e.doc.size};if(!r){r=0};var n=e.display;if(r&&i<n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>t)){n.updateLineNumbers=t};e.curOp.viewChanged=!0;if(t>=n.viewTo){if(te&&Bi(e.doc,t)<n.viewTo){le(e)}}
+else if(i<=n.viewFrom){if(te&&fn(e.doc,i+r)>n.viewFrom){le(e)}
+else{n.viewFrom+=r;n.viewTo+=r}}
+else if(t<=n.viewFrom&&i>=n.viewTo){le(e)}
+else if(t<=n.viewFrom){var u=ui(e,i,i+r,1);if(u){n.view=n.view.slice(u.index);n.viewFrom=u.lineN;n.viewTo+=r}
+else{le(e)}}
+else if(i>=n.viewTo){var a=ui(e,t,t,-1);if(a){n.view=n.view.slice(0,a.index);n.viewTo=a.lineN}
+else{le(e)}}
+else{var l=ui(e,t,t,-1),s=ui(e,i,i+r,1);if(l&&s){n.view=n.view.slice(0,l.index).concat(ri(e,l.lineN,s.lineN)).concat(n.view.slice(s.index));n.viewTo+=r}
+else{le(e)}};var o=n.externalMeasured;if(o){if(i<o.lineN){o.lineN+=r}
+else if(t<o.lineN+o.size){n.externalMeasured=null}}};function oe(e,t,i){e.curOp.viewChanged=!0;var r=e.display,n=e.display.externalMeasured;if(n&&t>=n.lineN&&t<n.lineN+n.size){r.externalMeasured=null};if(t<r.viewFrom||t>=r.viewTo){return};var o=r.view[Le(e,t)];if(o.node==null){return};var l=o.changes||(o.changes=[]);if(b(l,i)==-1){l.push(i)}};function le(e){e.display.viewFrom=e.display.viewTo=e.doc.first;e.display.view=[];e.display.viewOffset=0};function ui(e,t,i,r){var n=Le(e,t),s,o=e.display.view;if(!te||i==e.doc.first+e.doc.size){return{index:n,lineN:i}};var l=e.display.viewFrom;for(var a=0;a<n;a++){l+=o[a].size};if(l!=t){if(r>0){if(n==o.length-1){return null};s=(l+o[n].size)-t;n++}
+else{s=l-t};t+=s;i+=s}
+while(Bi(e.doc,i)!=i){if(n==(r<0?0:o.length-1)){return null};i+=r*o[n-(r<0?1:0)].size;n+=r};return{index:n,lineN:i}};function Ms(e,t,i){var r=e.display,n=r.view;if(n.length==0||t>=r.viewTo||i<=r.viewFrom){r.view=ri(e,t,i);r.viewFrom=t}
+else{if(r.viewFrom>t){r.view=ri(e,t,r.viewFrom).concat(r.view)}
+else if(r.viewFrom<t){r.view=r.view.slice(Le(e,t))};r.viewFrom=t;if(r.viewTo<i){r.view=r.view.concat(ri(e,r.viewTo,i))}
+else if(r.viewTo>i){r.view=r.view.slice(0,Le(e,i))}};r.viewTo=i};function io(e){var r=e.display.view,n=0;for(var i=0;i<r.length;i++){var t=r[i];if(!t.hidden&&(!t.node||t.changes)){++n}};return n};function Mt(e,t){if(e.doc.highlightFrontier<e.display.viewTo){e.state.highlight.set(t,Ai(Ns,e))}};function Ns(e){var i=e.doc;if(i.highlightFrontier>=e.display.viewTo){return};var n=+new Date+e.options.workTime,t=mt(e,i.highlightFrontier),r=[];i.iter(t.line,Math.min(i.first+i.size,e.display.viewTo+500),function(o){if(t.line>=e.display.viewFrom){var u=o.styles,c=o.text.length>e.options.maxHighlightLength?we(i.mode,t.state):null,h=gn(e,o,t,!0);if(c){t.state=c};o.styles=h.styles;var s=o.styleClasses,l=h.classes;if(l){o.styleClasses=l}
+else if(s){o.styleClasses=null};var f=!u||u.length!=o.styles.length||s!=l&&(!s||!l||s.bgClass!=l.bgClass||s.textClass!=l.textClass);for(var a=0;!f&&a<u.length;++a){f=u[a]!=o.styles[a]};if(f){r.push(t.line)};o.stateAfter=t.save();t.nextLine()}
+else{if(o.text.length<=e.options.maxHighlightLength){qi(e,o.text,t)};o.stateAfter=t.line%5==0?t.save():null;t.nextLine()};if(+new Date>n){Mt(e,e.options.workDelay);return!0}});i.highlightFrontier=t.line;i.modeFrontier=Math.max(i.modeFrontier,t.line);if(r.length){N(e,function(){for(var t=0;t<r.length;t++){oe(e,r[t],"text")}})}};var Bt=function(e,t,i){var r=e.display;this.viewport=t;this.visible=hr(r,e.doc,t);this.editorIsHidden=!r.wrapper.offsetWidth;this.wrapperHeight=r.wrapper.clientHeight;this.wrapperWidth=r.wrapper.clientWidth;this.oldDisplayWidth=xe(e);this.force=i;this.dims=sr(e);this.events=[]};Bt.prototype.signal=function(e,t){if(F(e,t)){this.events.push(arguments)}};Bt.prototype.finish=function(){var t=this;for(var e=0;e<this.events.length;e++){p.apply(null,t.events[e])}};function Os(e){var t=e.display;if(!t.scrollbarsClipped&&t.scroller.offsetWidth){t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth;t.heightForcer.style.height=K(e)+"px";t.sizer.style.marginBottom=-t.nativeBarWidth+"px";t.sizer.style.borderRightWidth=K(e)+"px";t.scrollbarsClipped=!0}};function As(e){if(e.hasFocus()){return null};var r=Y();if(!r||!ne(e.display.lineDiv,r)){return null};var i={activeElt:r};if(window.getSelection){var t=window.getSelection();if(t.anchorNode&&t.extend&&ne(e.display.lineDiv,t.anchorNode)){i.anchorNode=t.anchorNode;i.anchorOffset=t.anchorOffset;i.focusNode=t.focusNode;i.focusOffset=t.focusOffset}};return i};function Ws(e){if(!e||!e.activeElt||e.activeElt==Y()){return};e.activeElt.focus();if(e.anchorNode&&ne(document.body,e.anchorNode)&&ne(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset);i.collapse(!1);t.removeAllRanges();t.addRange(i);t.extend(e.focusNode,e.focusOffset)}};function gr(e,i){var r=e.display,l=e.doc;if(i.editorIsHidden){le(e);return!1};if(!i.force&&i.visible.from>=r.viewFrom&&i.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&io(e)==0){return!1};if(Zn(e)){le(e);i.dims=sr(e)};var u=l.first+l.size,n=Math.max(i.visible.from-e.options.viewportMargin,l.first),o=Math.min(u,i.visible.to+e.options.viewportMargin);if(r.viewFrom<n&&n-r.viewFrom<20){n=Math.max(l.first,r.viewFrom)};if(r.viewTo>o&&r.viewTo-o<20){o=Math.min(u,r.viewTo)};if(te){n=Bi(e.doc,n);o=fn(e.doc,o)};var a=n!=r.viewFrom||o!=r.viewTo||r.lastWrapHeight!=i.wrapperHeight||r.lastWrapWidth!=i.wrapperWidth;Ms(e,n,o);r.viewOffset=q(t(e.doc,r.viewFrom));e.display.mover.style.top=r.viewOffset+"px";var s=io(e);if(!a&&s==0&&!i.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)){return!1};var f=As(e);if(s>4){r.lineDiv.style.display="none"};Ds(e,r.updateLineNumbers,i.dims);if(s>4){r.lineDiv.style.display=""};r.renderedView=r.view;Ws(f);re(r.cursorDiv);re(r.selectionDiv);r.gutters.style.height=r.sizer.style.minHeight=0;if(a){r.lastWrapHeight=i.wrapperHeight;r.lastWrapWidth=i.wrapperWidth;Mt(e,400)};r.updateLineNumbers=null;return!0};function ro(e,t){var i=t.viewport;for(var n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==xe(e)){if(i&&i.top!=null){i={top:Math.min(e.doc.height+Ji(e.display)-er(e),i.top)}};t.visible=hr(e.display,e.doc,i);if(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo){break}};if(!gr(e,t)){break};si(e);var r=Tt(e);Ct(e);ze(e,r);yr(e,r);t.force=!1};t.signal(e,"update",e);if(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo){t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo);e.display.reportedViewFrom=e.display.viewFrom;e.display.reportedViewTo=e.display.viewTo}};function vr(e,t){var i=new Bt(e,t);if(gr(e,i)){si(e);ro(e,i);var r=Tt(e);Ct(e);ze(e,r);yr(e,r);i.finish()}};function Ds(e,t,i){var s=e.display,d=e.options.lineNumbers,a=s.lineDiv,n=a.firstChild;function c(t){var i=t.nextSibling;if(x&&I&&e.display.currentWheelTarget==t){t.style.display="none"}
+else{t.parentNode.removeChild(t)};return i};var f=s.view,o=s.viewFrom;for(var l=0;l<f.length;l++){var r=f[l];if(r.hidden){}
+else if(!r.node||r.node.parentNode!=a){var h=ls(e,r,o,i);a.insertBefore(h,n)}
+else{while(n!=r.node){n=c(n)};var u=d&&t!=null&&t<=o&&r.lineNumber;if(r.changes){if(b(r.changes,"gutter")>-1){u=!1};kn(e,r,o,i)};if(u){re(r.lineNumber);r.lineNumber.appendChild(document.createTextNode(Ei(e.options,o)))};n=r.node.nextSibling};o+=r.size}
+while(n){n=c(n)}};function mr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"};function yr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";e.display.heightForcer.style.top=t.docHeight+"px";e.display.gutters.style.height=(t.docHeight+e.display.barHeight+K(e))+"px"};function no(e){var r=e.display.gutters,l=e.options.gutters;re(r);var t=0;for(;t<l.length;++t){var n=l[t],o=r.appendChild(i("div",null,"CodeMirror-gutter "+n));if(n=="CodeMirror-linenumbers"){e.display.lineGutter=o;o.style.width=(e.display.lineNumWidth||1)+"px"}};r.style.display=t?"":"none";mr(e)};function br(e){var t=b(e.gutters,"CodeMirror-linenumbers");if(t==-1&&e.lineNumbers){e.gutters=e.gutters.concat(["CodeMirror-linenumbers"])}
+else if(t>-1&&!e.lineNumbers){e.gutters=e.gutters.slice(0);e.gutters.splice(t,1)}};var Rt=0,A=null;if(l){A=-.53}
+else if(ie){A=15}
+else if(Kt){A=-.7}
+else if(Yr){A=-1/3};function oo(e){var i=e.wheelDeltaX,t=e.wheelDeltaY;if(i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS){i=e.detail};if(t==null&&e.detail&&e.axis==e.VERTICAL_AXIS){t=e.detail}
+else if(t==null){t=e.wheelDelta};return{x:i,y:t}};function Hs(e){var t=oo(e);t.x*=A;t.y*=A;return t};function lo(e,t){var d=oo(t),l=d.x,n=d.y,i=e.display,r=i.scroller,p=r.scrollWidth>r.clientWidth,c=r.scrollHeight>r.clientHeight;if(!(l&&p||n&&c)){return};if(n&&I&&x){outer:for(var o=t.target,h=i.view;o!=r;o=o.parentNode){for(var f=0;f<h.length;f++){if(h[f].node==o){e.display.currentWheelTarget=o;break outer}}}};if(l&&!ie&&!E&&A!=null){if(n&&c){kt(e,Math.max(0,r.scrollTop+n*A))};ke(e,Math.max(0,r.scrollLeft+l*A));if(!n||(n&&c)){T(t)};i.wheelStartX=null;return};if(n&&A!=null){var a=n*A,s=e.doc.scrollTop,u=s+i.wrapper.clientHeight;if(a<0){s=Math.max(0,s+a-50)}
+else{u=Math.min(e.doc.height,u+a+50)};vr(e,{top:s,bottom:u})};if(Rt<20){if(i.wheelStartX==null){i.wheelStartX=r.scrollLeft;i.wheelStartY=r.scrollTop;i.wheelDX=l;i.wheelDY=n;setTimeout(function(){if(i.wheelStartX==null){return};var e=r.scrollLeft-i.wheelStartX,t=r.scrollTop-i.wheelStartY,n=(t&&i.wheelDY&&t/i.wheelDY)||(e&&i.wheelDX&&e/i.wheelDX);i.wheelStartX=i.wheelStartY=null;if(!n){return};A=(A*Rt+n)/(Rt+1);++Rt},200)}
+else{i.wheelDX+=l;i.wheelDY+=n}}};var O=function(e,t){this.ranges=e;this.primIndex=t};O.prototype.primary=function(){return this.ranges[this.primIndex]};O.prototype.equals=function(e){var n=this;if(e==this){return!0};if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length){return!1};for(var t=0;t<this.ranges.length;t++){var i=n.ranges[t],r=e.ranges[t];if(!Ii(i.anchor,r.anchor)||!Ii(i.head,r.head)){return!1}};return!0};O.prototype.deepCopy=function(){var t=this,i=[];for(var e=0;e<this.ranges.length;e++){i[e]=new s(zi(t.ranges[e].anchor),zi(t.ranges[e].head))};return new O(i,this.primIndex)};O.prototype.somethingSelected=function(){var t=this;for(var e=0;e<this.ranges.length;e++){if(!t.ranges[e].empty()){return!0}};return!1};O.prototype.contains=function(e,t){var o=this;if(!t){t=e};for(var i=0;i<this.ranges.length;i++){var r=o.ranges[i];if(n(t,r.from())>=0&&n(e,r.to())<=0){return i}};return-1};var s=function(e,t){this.anchor=e;this.head=t};s.prototype.from=function(){return Zt(this.anchor,this.head)};s.prototype.to=function(){return qt(this.anchor,this.head)};s.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function R(e,t){var f=e[t];e.sort(function(e,t){return n(e.from(),t.from())});t=b(e,f);for(var r=1;r<e.length;r++){var o=e[r],i=e[r-1];if(n(i.to(),o.from())>=0){var l=Zt(i.from(),o.from()),a=qt(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;if(r<=t){--t};e.splice(--r,2,new s(u?a:l,u?l:a))}};return new O(e,t)};function se(e,t){return new O([new s(e,t||e)],0)};function ae(t){if(!t.text){return t.to};return e(t.from.line+t.text.length-1,a(t.text).length+(t.text.length==1?t.from.ch:0))};function so(t,i){if(n(t,i.from)<0){return t};if(n(t,i.to)<=0){return ae(i)};var o=t.line+i.text.length-(i.to.line-i.from.line)-1,r=t.ch;if(t.line==i.to.line){r+=ae(i).ch-i.to.ch};return e(o,r)};function wr(e,t){var n=[];for(var i=0;i<e.sel.ranges.length;i++){var r=e.sel.ranges[i];n.push(new s(so(r.anchor,t),so(r.head,t)))};return R(n,e.sel.primIndex)};function ao(t,i,r){if(t.line==i.line){return e(r.line,t.ch-i.ch+r.ch)}
+else{return e(r.line+(t.line-i.line),t.ch)}};function Fs(t,i,r){var c=[],a=e(t.first,0),h=a;for(var o=0;o<i.length;o++){var u=i[o],l=ao(u.from,a,h),f=ao(ae(u),a,h);a=u.to;h=f;if(r=="around"){var d=t.sel.ranges[o],p=n(d.head,d.anchor)<0;c[o]=new s(p?f:l,p?l:f)}
+else{c[o]=new s(l,l)}};return new O(c,t.sel.primIndex)};function xr(e){e.doc.mode=ji(e.options,e.doc.modeOption);Nt(e)};function Nt(e){e.doc.iter(function(e){if(e.stateAfter){e.stateAfter=null};if(e.styles){e.styles=null}});e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first;Mt(e,100);e.state.modeGen++;if(e.curOp){M(e)}};function uo(e,t){return t.from.ch==0&&t.to.ch==0&&a(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)};function Cr(e,i,r,n){function d(e){return r?r[e]:null};function c(e,t,r){Kl(e,t,r,n);w(e,"change",e,i)};function g(e,t){var r=[];for(var i=e;i<t;++i){r.push(new We(o[i],d(i),n))};return r};var l=i.from,u=i.to,o=i.text,s=t(e,l.line),f=t(e,u.line),v=a(o),p=d(o.length-1),h=u.line-l.line;if(i.full){e.insert(0,g(0,o.length));e.remove(o.length,e.size-o.length)}
+else if(uo(e,i)){var y=g(0,o.length-1);c(f,f.text,p);if(h){e.remove(l.line,h)};if(y.length){e.insert(l.line,y)}}
+else if(s==f){if(o.length==1){c(s,s.text.slice(0,l.ch)+v+s.text.slice(u.ch),p)}
+else{var m=g(1,o.length-1);m.push(new We(v+s.text.slice(u.ch),p,n));c(s,s.text.slice(0,l.ch)+o[0],d(0));e.insert(l.line+1,m)}}
+else if(o.length==1){c(s,s.text.slice(0,l.ch)+o[0]+f.text.slice(u.ch),d(0));e.remove(l.line+1,h)}
+else{c(s,s.text.slice(0,l.ch)+o[0],d(0));c(f,v+f.text.slice(u.ch),p);var b=g(1,o.length-1);if(h>1){e.remove(l.line+1,h-1)};e.insert(l.line+1,b)};w(e,"change",e,i)};function Ne(e,t,i){function r(e,n,o){if(e.linked){for(var a=0;a<e.linked.length;++a){var l=e.linked[a];if(l.doc==n){continue};var s=o&&l.sharedHist;if(i&&!s){continue};t(l.doc,s);r(l.doc,e,s)}}};r(e,null,!0)};function fo(e,t){if(t.cm){throw new Error("This document is already in use.")};e.doc=t;t.cm=e;ur(e);xr(e);co(e);if(!e.options.lineWrapping){Ui(e)};e.options.mode=t.modeOption;M(e)};function co(e){;(e.doc.direction=="rtl"?ge:de)(e.display.lineDiv,"CodeMirror-rtl")};function Ps(e){N(e,function(){co(e);M(e)})};function fi(e){this.done=[];this.undone=[];this.undoDepth=Infinity;this.lastModTime=this.lastSelTime=0;this.lastOp=this.lastSelOp=null;this.lastOrigin=this.lastSelOrigin=null;this.generation=this.maxGeneration=e||1};function Sr(e,t){var i={from:zi(t.from),to:ae(t),text:me(e,t.from,t.to)};go(e,i,t.from.line,t.to.line+1);Ne(e,function(e){return go(e,i,t.from.line,t.to.line+1)},!0);return i};function ho(e){while(e.length){var t=a(e);if(t.ranges){e.pop()}
+else{break}}};function Es(e,t){if(t){ho(e.done);return a(e.done)}
+else if(e.done.length&&!a(e.done).ranges){return a(e.done)}
+else if(e.done.length>1&&!e.done[e.done.length-2].ranges){e.done.pop();return a(e.done)}};function po(e,t,i,r){var o=e.history;o.undone.length=0;var f=+new Date,l,s;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&((t.origin.charAt(0)=="+"&&e.cm&&o.lastModTime>f-e.cm.options.historyEventDelay)||t.origin.charAt(0)=="*"))&&(l=Es(o,o.lastOp==r))){s=a(l.changes);if(n(t.from,t.to)==0&&n(t.from,s.to)==0){s.to=ae(t)}
+else{l.changes.push(Sr(e,t))}}
+else{var u=a(o.done);if(!u||!u.ranges){ci(e.sel,o.done)};l={changes:[Sr(e,t)],generation:o.generation};o.done.push(l);while(o.done.length>o.undoDepth){o.done.shift();if(!o.done[0].ranges){o.done.shift()}}};o.done.push(i);o.generation=++o.maxGeneration;o.lastModTime=o.lastSelTime=f;o.lastOp=o.lastSelOp=r;o.lastOrigin=o.lastSelOrigin=t.origin;if(!s){p(e,"historyAdded")}};function Is(e,t,i,r){var n=t.charAt(0);return n=="*"||n=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)};function zs(e,t,i,r){var n=e.history,o=r&&r.origin;if(i==n.lastSelOp||(o&&n.lastSelOrigin==o&&(n.lastModTime==n.lastSelTime&&n.lastOrigin==o||Is(e,o,a(n.done),t)))){n.done[n.done.length-1]=t}
+else{ci(t,n.done)};n.lastSelTime=+new Date;n.lastSelOrigin=o;n.lastSelOp=i;if(r&&r.clearRedo!==!1){ho(n.undone)}};function ci(e,t){var i=a(t);if(!(i&&i.ranges&&i.equals(e))){t.push(e)}};function go(e,t,i,r){var n=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(i){if(i.markedSpans){(n||(n=t["spans_"+e.id]={}))[o]=i.markedSpans};++o})};function Rs(e){if(!e){return null};var t;for(var i=0;i<e.length;++i){if(e[i].marker.explicitlyCleared){if(!t){t=e.slice(0,i)}}
+else if(t){t.push(e[i])}};return!t?e:t.length?t:null};function Bs(e,t){var n=t["spans_"+e.id];if(!n){return null};var r=[];for(var i=0;i<t.text.length;++i){r.push(Rs(n[i]))};return r};function vo(e,t){var i=Bs(e,t),a=Ri(e,t);if(!i){return a};if(!a){return i};for(var n=0;n<i.length;++n){var o=i[n],r=a[n];if(o&&r){spans:for(var s=0;s<r.length;++s){var u=r[s];for(var l=0;l<o.length;++l){if(o[l].marker==u.marker){continue;spans}};o.push(u)}}
+else if(r){i[n]=r}};return i};function Re(e,t,i){var f=[];for(var u=0;u<e.length;++u){var o=e[u];if(o.ranges){f.push(i?O.prototype.deepCopy.call(o):o);continue};var h=o.changes,s=[];f.push({changes:s});for(var l=0;l<h.length;++l){var r=h[l],c=(void 0);s.push({from:r.from,to:r.to,text:r.text});if(t){for(var n in r){if(c=n.match(/^spans_(\d+)$/)){if(b(t,Number(c[1]))>-1){a(s)[n]=r[n];delete r[n]}}}}}};return f};function Lr(e,t,i,r){if(r){var o=e.anchor;if(i){var l=n(t,o)<0;if(l!=(n(i,o)<0)){o=t;t=i}
+else if(l!=(n(t,i)<0)){t=i}};return new s(o,t)}
+else{return new s(i||t,t)}};function hi(e,t,i,r,n){if(n==null){n=e.cm&&(e.cm.display.shift||e.extend)};C(e,new O([Lr(e.sel.primary(),t,i,n)],0),r)};function mo(e,t,i){var n=[],l=e.cm&&(e.cm.display.shift||e.extend);for(var r=0;r<e.sel.ranges.length;r++){n[r]=Lr(e.sel.ranges[r],t[r],null,l)};var o=R(n,e.sel.primIndex);C(e,o,i)};function kr(e,t,i,r){var n=e.sel.ranges.slice(0);n[t]=i;C(e,R(n,e.sel.primIndex),r)};function yo(e,t,i,r){C(e,se(t,i),r)};function Gs(e,t,i){var r={ranges:t.ranges,update:function(t){var r=this;this.ranges=[];for(var i=0;i<t.length;i++){r.ranges[i]=new s(o(e,t[i].anchor),o(e,t[i].head))}},origin:i&&i.origin};p(e,"beforeSelectionChange",e,r);if(e.cm){p(e.cm,"beforeSelectionChange",e.cm,r)};if(r.ranges!=t.ranges){return R(r.ranges,r.ranges.length-1)}
+else{return t}};function bo(e,t,i){var r=e.history.done,n=a(r);if(n&&n.ranges){r[r.length-1]=t;di(e,t,i)}
+else{C(e,t,i)}};function C(e,t,i){di(e,t,i);zs(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)};function di(e,t,i){if(F(e,"beforeSelectionChange")||e.cm&&F(e.cm,"beforeSelectionChange")){t=Gs(e,t,i)};var r=i&&i.bias||(n(t.primary().head,e.sel.primary().head)<0?-1:1);wo(e,Co(e,t,r,!0));if(!(i&&i.scroll===!1)&&e.cm){Ie(e.cm)}};function wo(e,t){if(t.equals(e.sel)){return};e.sel=t;if(e.cm){e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0;cn(e.cm)};w(e,"cursorActivity",e)};function xo(e){wo(e,Co(e,e.sel,null,!1))};function Co(e,t,i,r){var o;for(var n=0;n<t.ranges.length;n++){var l=t.ranges[n],a=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[n],u=Tr(e,l.anchor,a&&a.anchor,i,r),f=Tr(e,l.head,a&&a.head,i,r);if(o||u!=l.anchor||f!=l.head){if(!o){o=t.ranges.slice(0,n)};o[n]=new s(u,f)}};return o?R(o,t.primIndex):t};function Be(e,i,r,o,l){var f=t(e,i.line);if(f.markedSpans){for(var h=0;h<f.markedSpans.length;++h){var u=f.markedSpans[h],s=u.marker;if((u.from==null||(s.inclusiveLeft?u.from<=i.ch:u.from<i.ch))&&(u.to==null||(s.inclusiveRight?u.to>=i.ch:u.to>i.ch))){if(l){p(s,"beforeCursorEnter");if(s.explicitlyCleared){if(!f.markedSpans){break}
+else{--h;continue}}};if(!s.atomic){continue};if(r){var a=s.find(o<0?1:-1),d=(void 0);if(o<0?s.inclusiveRight:s.inclusiveLeft){a=So(e,a,-o,a&&a.line==i.line?f:null)};if(a&&a.line==i.line&&(d=n(a,r))&&(o<0?d<0:d>0)){return Be(e,a,i,o,l)}};var c=s.find(o<0?-1:1);if(o<0?s.inclusiveLeft:s.inclusiveRight){c=So(e,c,o,c.line==i.line?f:null)};return c?Be(e,c,i,o,l):null}}};return i};function Tr(t,i,r,n,o){var l=n||1,s=Be(t,i,r,l,o)||(!o&&Be(t,i,r,l,!0))||Be(t,i,r,-l,o)||(!o&&Be(t,i,r,-l,!0));if(!s){t.cantEdit=!0;return e(t.first,0)};return s};function So(i,r,n,l){if(n<0&&r.ch==0){if(r.line>i.first){return o(i,e(r.line-1))}
+else{return null}}
+else if(n>0&&r.ch==(l||t(i,r.line)).text.length){if(r.line<i.first+i.size-1){return e(r.line+1,0)}
+else{return null}}
+else{return new e(r.line,r.ch+n)}};function Lo(t){t.setSelection(e(t.firstLine(),0),e(t.lastLine()),G)};function ko(e,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};if(i){r.update=function(t,i,n,l){if(t){r.from=o(e,t)};if(i){r.to=o(e,i)};if(n){r.text=n};if(l!==undefined){r.origin=l}}};p(e,"beforeChange",e,r);if(e.cm){p(e.cm,"beforeChange",e.cm,r)};if(r.canceled){return null};return{from:r.from,to:r.to,text:r.text,origin:r.origin}};function Ge(e,t,i){if(e.cm){if(!e.cm.curOp){return m(e.cm,Ge)(e,t,i)};if(e.cm.state.suppressEdits){return}};if(F(e,"beforeChange")||e.cm&&F(e.cm,"beforeChange")){t=ko(e,t,!0);if(!t){return}};var n=Gr&&!i&&Dl(e,t.from,t.to);if(n){for(var r=n.length-1;r>=0;--r){To(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin})}}
+else{To(e,t)}};function To(e,t){if(t.text.length==1&&t.text[0]==""&&n(t.from,t.to)==0){return};var r=wr(e,t);po(e,t,r,e.cm?e.cm.curOp.id:NaN);Ot(e,t,r,Ri(e,t));var i=[];Ne(e,function(e,r){if(!r&&b(i,e.history)==-1){Ao(e.history,t);i.push(e.history)};Ot(e,t,null,Ri(e,t))})};function pi(e,t,i){if(e.cm&&e.cm.state.suppressEdits&&!i){return};var n=e.history,r,h=e.sel,o=t=="undo"?n.done:n.undone,u=t=="undo"?n.undone:n.done,l=0;for(;l<o.length;l++){r=o[l];if(i?r.ranges&&!r.equals(e.sel):!r.ranges){break}};if(l==o.length){return};n.lastOrigin=n.lastSelOrigin=null;for(;;){r=o.pop();if(r.ranges){ci(r,u);if(i&&!r.equals(e.sel)){C(e,r,{clearRedo:!1});return};h=r}
+else{break}};var c=[];ci(h,u);u.push({changes:c,generation:n.generation});n.generation=r.generation||++n.maxGeneration;var d=F(e,"beforeChange")||e.cm&&F(e.cm,"beforeChange"),p=function(i){var n=r.changes[i];n.origin=t;if(d&&!ko(e,n,!1)){o.length=0;return{}};c.push(Sr(e,n));var s=i?wr(e,n):a(o);Ot(e,n,s,vo(e,n));if(!i&&e.cm){e.cm.scrollIntoView({from:n.from,to:ae(n)})};var l=[];Ne(e,function(e,t){if(!t&&b(l,e.history)==-1){Ao(e.history,n);l.push(e.history)};Ot(e,n,null,vo(e,n))})};for(var s=r.changes.length-1;s>=0;--s){var f=p(s);if(f)return f.v}};function Mo(t,i){if(i==0){return};t.first+=i;t.sel=new O(jt(t.sel.ranges,function(t){return new s(e(t.anchor.line+i,t.anchor.ch),e(t.head.line+i,t.head.ch))}),t.sel.primIndex);if(t.cm){M(t.cm,t.first,t.first-i,i);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++){oe(t.cm,r,"gutter")}}};function Ot(i,r,n,o){if(i.cm&&!i.cm.curOp){return m(i.cm,Ot)(i,r,n,o)};if(r.to.line<i.first){Mo(i,r.text.length-1-(r.to.line-r.from.line));return};if(r.from.line>i.lastLine()){return};if(r.from.line<i.first){var s=r.text.length-1-(i.first-r.from.line);Mo(i,s);r={from:e(i.first,0),to:e(r.to.line+s,r.to.ch),text:[a(r.text)],origin:r.origin}};var l=i.lastLine();if(r.to.line>l){r={from:r.from,to:e(l,t(i,l).text.length),text:[r.text[0]],origin:r.origin}};r.removed=me(i,r.from,r.to);if(!n){n=wr(i,r)};if(i.cm){Us(i.cm,r,o)}
+else{Cr(i,r,o)};di(i,n,G)};function Us(e,i,r){var o=e.doc,l=e.display,n=i.from,s=i.to,a=!1,f=n.line;if(!e.options.lineWrapping){f=u(V(t(o,n.line)));o.iter(f,s.line+1,function(e){if(e==l.maxLine){a=!0;return!0}})};if(o.sel.contains(i.from,i.to)>-1){cn(e)};Cr(o,i,r,Un(e));if(!e.options.lineWrapping){o.iter(f,n.line+i.text.length,function(e){var t=ti(e);if(t>l.maxLineLength){l.maxLine=e;l.maxLineLength=t;l.maxLineChanged=!0;a=!1}});if(a){e.curOp.updateMaxLine=!0}};Vl(o,n.line);Mt(e,400);var p=i.text.length-(s.line-n.line)-1;if(i.full){M(e)}
+else if(n.line==s.line&&i.text.length==1&&!uo(e.doc,i)){oe(e,n.line,"text")}
+else{M(e,n.line,s.line+1,p)};var h=F(e,"changes"),d=F(e,"change");if(d||h){var c={from:n,to:s,text:i.text,removed:i.removed,origin:i.origin};if(d){w(e,"change",e,c)};if(h){(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(c)}};e.display.selForContextMenu=null};function Ue(e,t,i,r,o){if(!r){r=i};if(n(r,i)<0){var l;(l=[r,i],i=l[0],r=l[1],l)};if(typeof t=="string"){t=e.splitLines(t)};Ge(e,{from:i,to:r,text:t,origin:o})};function No(e,t,i,r){if(i<e.line){e.line+=r}
+else if(t<e.line){e.line=t;e.ch=0}};function Oo(t,i,r,n){for(var s=0;s<t.length;++s){var o=t[s],f=!0;if(o.ranges){if(!o.copied){o=t[s]=o.deepCopy();o.copied=!0};for(var a=0;a<o.ranges.length;a++){No(o.ranges[a].anchor,i,r,n);No(o.ranges[a].head,i,r,n)};continue};for(var u=0;u<o.changes.length;++u){var l=o.changes[u];if(r<l.from.line){l.from=e(l.from.line+n,l.from.ch);l.to=e(l.to.line+n,l.to.ch)}
+else if(i<=l.to.line){f=!1;break}};if(!f){t.splice(0,s+1);s=0}}};function Ao(e,t){var i=t.from.line,r=t.to.line,n=t.text.length-(r-i)-1;Oo(e.done,i,r,n);Oo(e.undone,i,r,n)};function At(e,i,r,n){var o=i,l=i;if(typeof i=="number"){l=t(e,en(e,i))}
+else{o=u(i)};if(o==null){return null};if(n(l,o)&&e.cm){oe(e.cm,o,r)};return l};function Wt(e){var r=this;this.lines=e;this.parent=null;var i=0;for(var t=0;t<e.length;++t){e[t].parent=r;i+=e[t].height};this.height=i};Wt.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){var n=this;for(var r=e,o=e+t;r<o;++r){var i=n.lines[r];n.height-=i.height;Xl(i);w(i,"delete")};this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){var n=this;this.height+=i;this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r){t[r].parent=n}},iterN:function(e,t,i){var n=this;for(var r=e+t;e<r;++e){if(i(n.lines[e])){return!0}}}};function Dt(e){var o=this;this.children=e;var r=0,n=0;for(var i=0;i<e.length;++i){var t=e[i];r+=t.chunkSize();n+=t.height;t.parent=o};this.size=r;this.height=n;this.parent=null};Dt.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var l=this;this.size-=t;for(var n=0;n<this.children.length;++n){var i=l.children[n],r=i.chunkSize();if(e<r){var o=Math.min(t,r-e),a=i.height;i.removeInner(e,o);l.height-=a-i.height;if(r==o){l.children.splice(n--,1);i.parent=null};if((t-=o)==0){break};e=0}
+else{e-=r}};if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Wt))){var s=[];this.collapse(s);this.children=[new Wt(s)];this.children[0].parent=this}},collapse:function(e){var i=this;for(var t=0;t<this.children.length;++t){i.children[t].collapse(e)}},insertInner:function(e,t,i){var o=this;this.size+=t.length;this.height+=i;for(var n=0;n<this.children.length;++n){var r=o.children[n],u=r.chunkSize();if(e<=u){r.insertInner(e,t,i);if(r.lines&&r.lines.length>50){var a=r.lines.length%25+25;for(var s=a;s<r.lines.length;){var l=new Wt(r.lines.slice(s,s+=25));r.height-=l.height;o.children.splice(++n,0,l);l.parent=o};r.lines=r.lines.slice(0,a);o.maybeSpill()};break};e-=u}},maybeSpill:function(){if(this.children.length<=10){return};var e=this;do{var n=e.children.splice(e.children.length-5,5),t=new Dt(n);if(!e.parent){var i=new Dt(e.children);i.parent=e;e.children=[i,t];e=i}
+else{e.size-=t.size;e.height-=t.height;var r=b(e.parent.children,e);e.parent.children.splice(r+1,0,t)};t.parent=e.parent}
+while(e.children.length>10)e.parent.maybeSpill()},iterN:function(e,t,i){var s=this;for(var n=0;n<this.children.length;++n){var l=s.children[n],r=l.chunkSize();if(e<r){var o=Math.min(t,r-e);if(l.iterN(e,o,i)){return!0};if((t-=o)==0){break};e=0}
+else{e-=r}}}};var tt=function(e,t,i){var n=this;if(i){for(var r in i){if(i.hasOwnProperty(r)){n[r]=i[r]}}};this.doc=e;this.node=t};tt.prototype.clear=function(){var l=this,e=this.doc.cm,t=this.line.widgets,i=this.line,n=u(i);if(n==null||!t){return};for(var r=0;r<t.length;++r){if(t[r]==l){t.splice(r--,1)}};if(!t.length){i.widgets=null};var o=bt(this);U(i,Math.max(0,i.height-o));if(e){N(e,function(){Wo(e,i,-o);oe(e,n,"widget")});w(e,"lineWidgetCleared",e,this,n)}};tt.prototype.changed=function(){var r=this,n=this.height,e=this.doc.cm,t=this.line;this.height=null;var i=bt(this)-n;if(!i){return};U(t,t.height+i);if(e){N(e,function(){e.curOp.forceUpdate=!0;Wo(e,t,i);w(e,"lineWidgetChanged",e,r,u(t))})}};Pe(tt);function Wo(e,t,i){if(q(t)<((e.curOp&&e.curOp.scrollTop)||e.doc.scrollTop)){pr(e,i)}};function Vs(e,t,i,r){var n=new tt(e,i,r),o=e.cm;if(o&&n.noHScroll){o.display.alignWidgets=!0};At(e,t,"widget",function(t){var i=t.widgets||(t.widgets=[]);if(n.insertAt==null){i.push(n)}
+else{i.splice(Math.min(i.length-1,Math.max(0,n.insertAt)),0,n)};n.line=t;if(o&&!be(e,t)){var r=q(t)<e.scrollTop;U(t,t.height+bt(n));if(r){pr(o,n.height)};o.curOp.forceUpdate=!0};return!0});w(o,"lineWidgetAdded",o,n,typeof t=="number"?t:u(t));return n};var Er=0,ee=function(e,t){this.lines=[];this.type=t;this.doc=e;this.id=++Er};ee.prototype.clear=function(){var i=this;if(this.explicitlyCleared){return};var e=this.doc.cm,h=e&&!e.curOp;if(h){Te(e)};if(F(this,"clear")){var a=this.find();if(a){w(this,"clear",a.from,a.to)}};var n=null,s=null;for(var l=0;l<this.lines.length;++l){var t=i.lines[l],r=dt(t.markedSpans,i);if(e&&!i.collapsed){oe(e,u(t),"text")}
+else if(e){if(r.to!=null){s=u(t)};if(r.from!=null){n=u(t)}};t.markedSpans=Nl(t.markedSpans,r);if(r.from==null&&i.collapsed&&!be(i.doc,t)&&e){U(t,Ce(e.display))}};if(e&&this.collapsed&&!e.options.lineWrapping){for(var o=0;o<this.lines.length;++o){var f=V(i.lines[o]),c=ti(f);if(c>e.display.maxLineLength){e.display.maxLine=f;e.display.maxLineLength=c;e.display.maxLineChanged=!0}}};if(n!=null&&e&&this.collapsed){M(e,n,s+1)};this.lines.length=0;this.explicitlyCleared=!0;if(this.atomic&&this.doc.cantEdit){this.doc.cantEdit=!1;if(e){xo(e.doc)}};if(e){w(e,"markerCleared",e,this,n,s)};if(h){Me(e)};if(this.parent){this.parent.clear()}};ee.prototype.find=function(t,i){var a=this;if(t==null&&this.type=="bookmark"){t=1};var o,s;for(var l=0;l<this.lines.length;++l){var r=a.lines[l],n=dt(r.markedSpans,a);if(n.from!=null){o=e(i?r:u(r),n.from);if(t==-1){return o}};if(n.to!=null){s=e(i?r:u(r),n.to);if(t==1){return s}}};return o&&{from:o,to:s}};ee.prototype.changed=function(){var r=this,i=this.find(-1,!0),t=this,e=this.doc.cm;if(!i||!e){return};N(e,function(){var n=i.line,a=u(i.line),l=tr(e,a);if(l){Fn(l);e.curOp.selectionChanged=e.curOp.forceUpdate=!0};e.curOp.updateMaxLine=!0;if(!be(t.doc,n)&&t.height!=null){var s=t.height;t.height=null;var o=bt(t)-s;if(o){U(n,n.height+o)}};w(e,"markerChanged",e,r)})};ee.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;if(!t.maybeHiddenMarkers||b(t.maybeHiddenMarkers,this)==-1){(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}};this.lines.push(e)};ee.prototype.detachLine=function(e){this.lines.splice(b(this.lines,e),1);if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};Pe(ee);function Ve(e,t,i,o,s){if(o&&o.shared){return Ks(e,t,i,o,s)};if(e.cm&&!e.cm.curOp){return m(e.cm,Ve)(e,t,i,o,s)};var l=new ee(e,s),h=n(t,i);if(o){ve(o,l,!1)};if(h>0||h==0&&l.clearWhenEmpty!==!1){return l};if(l.replacedWith){l.collapsed=!0;l.widgetNode=Fe("span",[l.replacedWith],"CodeMirror-widget");if(!o.handleMouseEvents){l.widgetNode.setAttribute("cm-ignore-events","true")};if(o.insertLeft){l.widgetNode.insertLeft=!0}};if(l.collapsed){if(un(e,t.line,t,i,l)||t.line!=i.line&&un(e,i.line,t,i,l)){throw new Error("Inserting collapsed marker partially overlapping an existing one")};Ml()};if(l.addToHistory){po(e,{from:t,to:i,origin:"markText"},e.sel,NaN)};var u=t.line,a=e.cm,c;e.iter(u,i.line+1,function(e){if(a&&l.collapsed&&!a.options.lineWrapping&&V(e)==a.display.maxLine){c=!0};if(l.collapsed&&u!=t.line){U(e,0)};Ol(e,new Qt(l,u==t.line?t.ch:null,u==i.line?i.ch:null))++u});if(l.collapsed){e.iter(t.line,i.line+1,function(t){if(be(e,t)){U(t,0)}})};if(l.clearOnEnter){r(l,"beforeCursorEnter",function(){return l.clear()})};if(l.readOnly){Tl();if(e.history.done.length||e.history.undone.length){e.clearHistory()}};if(l.collapsed){l.id=++Er;l.atomic=!0};if(a){if(c){a.curOp.updateMaxLine=!0};if(l.collapsed){M(a,t.line,i.line+1)}
+else if(l.className||l.title||l.startStyle||l.endStyle||l.css){for(var f=t.line;f<=i.line;f++){oe(a,f,"text")}};if(l.atomic){xo(a.doc)};w(a,"markerAdded",a,l)};return l};var et=function(e,t){var r=this;this.markers=e;this.primary=t;for(var i=0;i<e.length;++i){e[i].parent=r}};et.prototype.clear=function(){var t=this;if(this.explicitlyCleared){return};this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e){t.markers[e].clear()};w(this,"clear")};et.prototype.find=function(e,t){return this.primary.find(e,t)};Pe(et);function Ks(e,t,i,r,n){r=ve(r);r.shared=!1;var l=[Ve(e,t,i,r,n)],s=l[0],u=r.widgetNode;Ne(e,function(e){if(u){r.widgetNode=u.cloneNode(!0)};l.push(Ve(e,o(e,t),o(e,i),r,n));for(var f=0;f<e.linked.length;++f){if(e.linked[f].isParent){return}};s=a(l)});return new et(l,s)};function Do(t){return t.findMarks(e(t.first,0),t.clipPos(e(t.lastLine())),function(e){return e.parent})};function Xs(e,t){for(var r=0;r<t.length;r++){var i=t[r],l=i.find(),s=e.clipPos(l.from),a=e.clipPos(l.to);if(n(s,a)){var o=Ve(e,s,a,i.primary,i.primary.type);i.markers.push(o);o.parent=i}}};function js(e){var i=function(t){var i=e[t],o=[i.primary.doc];Ne(i.primary.doc,function(e){return o.push(e)});for(var r=0;r<i.markers.length;r++){var n=i.markers[r];if(b(o,n.doc)==-1){n.parent=null;i.markers.splice(r--,1)}}};for(var t=0;t<e.length;t++)i(t)};var al=0,k=function(t,i,r,n,o){if(!(this instanceof k)){return new k(t,i,r,n,o)};if(r==null){r=0};Dt.call(this,[new Wt([new We("",null)])]);this.first=r;this.scrollTop=this.scrollLeft=0;this.cantEdit=!1;this.cleanGeneration=1;this.modeFrontier=this.highlightFrontier=r;var l=e(r,0);this.sel=se(l);this.history=new fi(null);this.id=++al;this.modeOption=i;this.lineSep=n;this.direction=(o=="rtl")?"rtl":"ltr";this.extend=!1;if(typeof t=="string"){t=this.splitLines(t)};Cr(this,{from:l,to:l,text:t});C(this,se(l),G)};k.prototype=Zr(Dt.prototype,{constructor:k,iter:function(e,t,i){if(i){this.iterN(e-this.first,t-e,i)}
+else{this.iterN(this.first,this.first+this.size,e)}},insert:function(e,t){var r=0;for(var i=0;i<t.length;++i){r+=t[i].height};this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Pi(this,this.first,this.first+this.size);if(e===!1){return t};return t.join(e||this.lineSeparator())},setValue:y(function(i){var r=e(this.first,0),n=this.first+this.size-1;Ge(this,{from:r,to:e(n,t(this,n).text.length),text:this.splitLines(i),origin:"setValue",full:!0},!0);if(this.cm){Lt(this.cm,0,0)};C(this,se(r),G)}),replaceRange:function(e,t,i,r){t=o(this,t);i=i?o(this,i):t;Ue(this,e,t,i,r)},getRange:function(e,t,i){var r=me(this,o(this,e),o(this,t));if(i===!1){return r};return r.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(ht(this,e)){return t(this,e)}},getLineNumber:function(e){return u(e)},getLineHandleVisualStart:function(e){if(typeof e=="number"){e=t(this,e)};return V(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return o(this,e)},getCursor:function(e){var i=this.sel.primary(),t;if(e==null||e=="head"){t=i.head}
+else if(e=="anchor"){t=i.anchor}
+else if(e=="end"||e=="to"||e===!1){t=i.to()}
+else{t=i.from()};return t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:y(function(t,i,r){yo(this,o(this,typeof t=="number"?e(t,i||0):t),null,r)}),setSelection:y(function(e,t,i){yo(this,o(this,e),o(this,t||e),i)}),extendSelection:y(function(e,t,i){hi(this,o(this,e),t&&o(this,t),i)}),extendSelections:y(function(e,t){mo(this,tn(this,e),t)}),extendSelectionsBy:y(function(e,t){var i=jt(this.sel.ranges,e);mo(this,tn(this,i),t)}),setSelections:y(function(e,t,i){var l=this;if(!e.length){return};var n=[];for(var r=0;r<e.length;r++){n[r]=new s(o(l,e[r].anchor),o(l,e[r].head))};if(t==null){t=Math.min(e.length-1,this.sel.primIndex)};C(this,R(n,t),i)}),addSelection:y(function(e,t,i){var r=this.sel.ranges.slice(0);r.push(new s(o(this,e),o(this,t||e)));C(this,R(r,r.length-1),i)}),getSelection:function(e){var o=this,r=this.sel.ranges,t;for(var i=0;i<r.length;i++){var n=me(o,r[i].from(),r[i].to());t=t?t.concat(n):n};if(e===!1){return t}
+else{return t.join(e||this.lineSeparator())}},getSelections:function(e){var n=this,o=[],r=this.sel.ranges;for(var t=0;t<r.length;t++){var i=me(n,r[t].from(),r[t].to());if(e!==!1){i=i.join(e||n.lineSeparator())};o[t]=i};return o},replaceSelection:function(e,t,i){var n=[];for(var r=0;r<this.sel.ranges.length;r++){n[r]=e};this.replaceSelections(n,t,i||"+input")},replaceSelections:y(function(e,t,i){var a=this,n=[],u=this.sel;for(var r=0;r<u.ranges.length;r++){var s=u.ranges[r];n[r]={from:s.from(),to:s.to(),text:a.splitLines(e[r]),origin:i}};var l=t&&t!="end"&&Fs(this,n,t);for(var o=n.length-1;o>=0;o--){Ge(a,n[o])};if(l){bo(this,l)}
+else if(this.cm){Ie(this.cm)}}),undo:y(function(){pi(this,"undo")}),redo:y(function(){pi(this,"redo")}),undoSelection:y(function(){pi(this,"undo",!0)}),redoSelection:y(function(){pi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){var e=this.history,r=0,n=0;for(var i=0;i<e.done.length;i++){if(!e.done[i].ranges){++r}};for(var t=0;t<e.undone.length;t++){if(!e.undone[t].ranges){++n}};return{undo:r,redo:n}},clearHistory:function(){this.history=new fi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){if(e){this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null};return this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Re(this.history.done),undone:Re(this.history.undone)}},setHistory:function(e){var t=this.history=new fi(this.history.maxGeneration);t.done=Re(e.done.slice(0),null,!0);t.undone=Re(e.undone.slice(0),null,!0)},setGutterMarker:y(function(e,t,i){return At(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});r[t]=i;if(!i&&Qr(r)){e.gutterMarkers=null};return!0})}),clearGutter:y(function(e){var t=this;this.iter(function(i){if(i.gutterMarkers&&i.gutterMarkers[e]){At(t,i,"gutter",function(){i.gutterMarkers[e]=null;if(Qr(i.gutterMarkers)){i.gutterMarkers=null};return!0})}})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!ht(this,e)){return null};i=e;e=t(this,e);if(!e){return null}}
+else{i=u(e);if(i==null){return null}};return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:y(function(e,t,i){return At(this,e,t=="gutter"?"gutter":"class",function(e){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!e[r]){e[r]=i}
+else if(ft(i).test(e[r])){return!1}
+else{e[r]+=" "+i};return!0})}),removeLineClass:y(function(e,t,i){return At(this,e,t=="gutter"?"gutter":"class",function(e){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",n=e[o];if(!n){return!1}
+else if(i==null){e[o]=null}
+else{var r=n.match(ft(i));if(!r){return!1};var l=r.index+r[0].length;e[o]=n.slice(0,r.index)+(!r.index||l==n.length?"":" ")+n.slice(l)||null};return!0})}),addLineWidget:y(function(e,t,i){return Vs(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Ve(this,o(this,e),o(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};e=o(this,e);return Ve(this,e,e,i,"bookmark")},findMarksAt:function(e){e=o(this,e);var l=[],n=t(this,e.line).markedSpans;if(n){for(var r=0;r<n.length;++r){var i=n[r];if((i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)){l.push(i.marker.parent||i.marker)}}};return l},findMarks:function(e,t,i){e=o(this,e);t=o(this,t);var n=[],r=e.line;this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a){for(var s=0;s<a.length;s++){var l=a[s];if(!(l.to!=null&&r==e.line&&e.ch>=l.to||l.from==null&&r!=e.line||l.from!=null&&r==t.line&&l.from>=t.ch)&&(!i||i(l.marker))){n.push(l.marker.parent||l.marker)}}};++r});return n},getAllMarks:function(){var e=[];this.iter(function(t){var r=t.markedSpans;if(r){for(var i=0;i<r.length;++i){if(r[i].from!=null){e.push(r[i].marker)}}}});return e},posFromIndex:function(t){var i,r=this.first,n=this.lineSeparator().length;this.iter(function(e){var o=e.text.length+n;if(o>t){i=t;return!0};t-=o++r});return o(this,e(r,i))},indexFromPos:function(e){e=o(this,e);var t=e.ch;if(e.line<this.first||e.ch<0){return 0};var i=this.lineSeparator().length;this.iter(this.first,e.line,function(e){t+=e.text.length+i});return t},copy:function(e){var t=new k(Pi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);t.scrollTop=this.scrollTop;t.scrollLeft=this.scrollLeft;t.sel=this.sel;t.extend=!1;if(e){t.history.undoDepth=this.history.undoDepth;t.setHistory(this.getHistory())};return t},linkedDoc:function(e){if(!e){e={}};var i=this.first,r=this.first+this.size;if(e.from!=null&&e.from>i){i=e.from};if(e.to!=null&&e.to<r){r=e.to};var t=new k(Pi(this,i,r),e.mode||this.modeOption,i,this.lineSep,this.direction);if(e.sharedHist){t.history=this.history}(this.linked||(this.linked=[])).push({doc:t,sharedHist:e.sharedHist});t.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}];Xs(t,Do(this));return t},unlinkDoc:function(e){var i=this;if(e instanceof h){e=e.doc};if(this.linked){for(var t=0;t<this.linked.length;++t){var n=i.linked[t];if(n.doc!=e){continue};i.linked.splice(t,1);e.unlinkDoc(i);js(Do(i));break}};if(e.history==this.history){var r=[e.id];Ne(e,function(e){return r.push(e.id)},!0);e.history=new fi(null);e.history.done=Re(this.history.done,r);e.history.undone=Re(this.history.undone,r)}},iterLinkedDocs:function(e){Ne(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){if(this.lineSep){return e.split(this.lineSep)};return Si(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:y(function(e){if(e!="rtl"){e="ltr"};if(e==this.direction){return};this.direction=e;this.iter(function(e){return e.order=null});if(this.cm){Ps(this.cm)}})});k.prototype.eachLine=k.prototype.iter;var Pr=0;function Ys(e){var t=this;Ho(t);if(v(t,e)||Q(t.display,e)){return};T(e);if(l){Pr=+new Date};var r=Se(t,e,!0),u=e.dataTransfer.files;if(!r||t.isReadOnly()){return};if(u&&u.length&&window.FileReader&&window.File){var f=u.length,h=Array(f),d=0,p=function(e,i){if(t.options.allowDropFileTypes&&b(t.options.allowDropFileTypes,e.type)==-1){return};var n=new FileReader;n.onload=m(t,function(){var e=n.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)){e=""};h[i]=e;if(++d==f){r=o(t.doc,r);var l={from:r,to:r,text:t.doc.splitLines(h.join(t.doc.lineSeparator())),origin:"paste"};Ge(t.doc,l);bo(t.doc,se(r,ae(l)))}});n.readAsText(e)};for(var a=0;a<f;++a){p(u[a],a)}}
+else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e);setTimeout(function(){return t.display.input.focus()},20);return};try{var c=e.dataTransfer.getData("Text");if(c){var n;if(t.state.draggingText&&!t.state.draggingText.copy){n=t.listSelections()};di(t.doc,se(r,r));if(n){for(var s=0;s<n.length;++s){Ue(t.doc,"",n[s].anchor,n[s].head,"drag")}};t.replaceSelection(c,"around","paste");t.display.input.focus()}}catch(i){}}};function qs(e,t){if(l&&(!e.state.draggingText||+new Date-Pr<100)){vt(t);return};if(v(e,t)||Q(e.display,t)){return};t.dataTransfer.setData("Text",e.getSelection());t.dataTransfer.effectAllowed="copyMove";if(t.dataTransfer.setDragImage&&!Yr){var r=i("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";if(E){r.width=r.height=1;e.display.wrapper.appendChild(r);r._top=r.offsetTop};t.dataTransfer.setDragImage(r,0,0);if(E){r.parentNode.removeChild(r)}}};function Zs(e,t){var n=Se(e,t);if(!n){return};var r=document.createDocumentFragment();Kn(e,n,r);if(!e.display.dragCursor){e.display.dragCursor=i("div",null,"CodeMirror-cursors CodeMirror-dragcursors");e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)};W(e.display.dragCursor,r)};function Ho(e){if(e.display.dragCursor){e.display.lineSpace.removeChild(e.display.dragCursor);e.display.dragCursor=null}};function Fo(e){if(!document.getElementsByClassName){return};var r=document.getElementsByClassName("CodeMirror");for(var t=0;t<r.length;t++){var i=r[t].CodeMirror;if(i){e(i)}}};var Fr=!1;function Qs(){if(Fr){return};Js();Fr=!0};function Js(){var e;r(window,"resize",function(){if(e==null){e=setTimeout(function(){e=null;Fo(ea)},100)}});r(window,"blur",function(){return Fo(St)})};function ea(e){var t=e.display;if(t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth){return};t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null;t.scrollbarsClipped=!1;e.setSize()};var J={3:"Enter",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:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};for(var Je=0;Je<10;Je++){J[Je+48]=J[Je+96]=String(Je)};for(var zt=65;zt<=90;zt++){J[zt]=String.fromCharCode(zt)};for(var Qe=1;Qe<=12;Qe++){J[Qe+111]=J[Qe+63235]="F"+Qe};var j={};j.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"};j.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"};j.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"};j.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"]};j["default"]=I?j.macDefault:j.pcDefault;function ta(e){var i=e.split(/-(?!$)/);e=i[i.length-1];var n,o,l,s;for(var r=0;r<i.length-1;r++){var t=i[r];if(/^(cmd|meta|m)$/i.test(t)){s=!0}
+else if(/^a(lt)?$/i.test(t)){n=!0}
+else if(/^(c|ctrl|control)$/i.test(t)){o=!0}
+else if(/^s(hift)?$/i.test(t)){l=!0}
+else{throw new Error("Unrecognized modifier name: "+t)}};if(n){e="Alt-"+e};if(o){e="Ctrl-"+e};if(s){e="Cmd-"+e};if(l){e="Shift-"+e};return e};function ia(e){var l={};for(var t in e){if(e.hasOwnProperty(t)){var u=e[t];if(/^(name|fallthrough|(de|at)tach)$/.test(t)){continue};if(u=="..."){delete e[t];continue};var o=jt(t.split(" "),ta);for(var n=0;n<o.length;n++){var r=(void 0),i=(void 0);if(n==o.length-1){i=o.join(" ");r=u}
+else{i=o.slice(0,n+1).join(" ");r="..."};var a=l[i];if(!a){l[i]=r}
+else if(a!=r){throw new Error("Inconsistent bindings for "+i)}};delete e[t]}};for(var s in l){e[s]=l[s]};return e};function Ke(e,t,i,r){t=gi(t);var n=t.call?t.call(e,r):t[e];if(n===!1){return"nothing"};if(n==="..."){return"multi"};if(n!=null&&i(n)){return"handled"};if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]"){return Ke(e,t.fallthrough,i,r)};for(var o=0;o<t.fallthrough.length;o++){var l=Ke(e,t.fallthrough[o],i,r);if(l){return l}}}};function Po(e){var t=typeof e=="string"?e:J[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"};function Eo(e,t,i){var r=e;if(t.altKey&&r!="Alt"){e="Alt-"+e};if((Vr?t.metaKey:t.ctrlKey)&&r!="Ctrl"){e="Ctrl-"+e};if((Vr?t.ctrlKey:t.metaKey)&&r!="Cmd"){e="Cmd-"+e};if(!i&&t.shiftKey&&r!="Shift"){e="Shift-"+e};return e};function Io(e,t){if(E&&e.keyCode==34&&e["char"]){return!1};var i=J[e.keyCode];if(i==null||e.altGraphKey){return!1};return Eo(i,e,t)};function gi(e){return typeof e=="string"?j[e]:e};function Xe(e,t){var s=e.doc.sel.ranges,i=[];for(var o=0;o<s.length;o++){var r=t(s[o]);while(i.length&&n(r.from,a(i).to)<=0){var l=i.pop();if(n(l.from,r.from)<0){r.from=l.from;break}};i.push(r)};N(e,function(){for(var t=i.length-1;t>=0;t--){Ue(e.doc,"",i[t].from,i[t].to,"+delete")};Ie(e)})};function Mr(e,t,i){var r=Jr(e.text,t+i,i);return r<0||r>e.text.length?null:r};function Nr(t,i,r){var n=Mr(t,i.ch,r);return n==null?null:new e(i.line,n,r<0?"after":"before")};function Or(t,i,r,n,o){if(t){var u=Z(r,i.doc.direction);if(u){var s=o<0?a(u):u[0],d=(o<0)==(s.level==1),c=d?"after":"before",l;if(s.level>0||i.doc.direction=="rtl"){var f=Ee(i,r);l=o<0?r.text.length-1:0;var h=X(i,f,l).top;l=ct(function(e){return X(i,f,e).top==h},(o<0)==(s.level==1)?s.from:s.to-1,l);if(c=="before"){l=Mr(r,l,1)}}
+else{l=o<0?s.to:s.from};return new e(n,l,c)}};return new e(n,o<0?r.text.length:0,o<0?"before":"after")};function ra(t,i,r,n){var a=Z(i,t.doc.direction);if(!a){return Nr(i,r,n)};if(r.ch>=i.text.length){r.ch=i.text.length;r.sticky="before"}
+else if(r.ch<=0){r.ch=0;r.sticky="after"};var v=gt(a,r.ch,r.sticky),o=a[v];if(t.doc.direction=="ltr"&&o.level%2==0&&(n>0?o.to>r.ch:o.from<r.ch)){return Nr(i,r,n)};var s=function(t,r){return Mr(i,t instanceof e?t.ch:t,r)},d,g=function(e){if(!t.options.lineWrapping){return{begin:0,end:i.text.length}};d=d||Ee(t,i);return Gn(t,i,d,e)},f=g(r.sticky=="before"?s(r,-1):r.ch);if(t.doc.direction=="rtl"||o.level==1){var h=(o.level==1)==(n<0),l=s(r,h?1:-1);if(l!=null&&(!h?l>=o.from&&l>=f.begin:l<=o.to&&l<=f.end)){var m=h?"before":"after";return new e(r.line,l,m)}};var p=function(t,i,n){var f=function(t,i){return i?new e(r.line,s(t,1),"before"):new e(r.line,t,"after")};for(;t>=0&&t<a.length;t+=i){var l=a[t],u=(i>0)==(l.level!=1),o=u?n.begin:s(n.end,-1);if(l.from<=o&&o<l.to){return f(o,u)};o=u?l.from:s(l.to,-1);if(n.begin<=o&&o<n.end){return f(o,u)}}},u=p(v+n,n,f);if(u){return u};var c=n>0?f.end:s(f.begin,-1);if(c!=null&&!(n>0&&c==i.text.length)){u=p(n>0?0:a.length-1,n,g(c));if(u){return u}};return null};var Ze={selectAll:Lo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(i){return Xe(i,function(r){if(r.empty()){var n=t(i.doc,r.head.line).text.length;if(r.head.ch==n&&r.head.line<i.lastLine()){return{from:r.head,to:e(r.head.line+1,0)}}
+else{return{from:r.head,to:e(r.head.line,n)}}}
+else{return{from:r.from(),to:r.to()}}})},deleteLine:function(t){return Xe(t,function(i){return({from:e(i.from().line,0),to:o(t.doc,e(i.to().line+1,0))})})},delLineLeft:function(t){return Xe(t,function(t){return({from:e(t.from().line,0),to:t.from()})})},delWrappedLineLeft:function(e){return Xe(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Xe(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(t){return t.extendSelection(e(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(e(t.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return zo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Ro(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return na(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},ot)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},ot)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,i=e.coordsChar({left:0,top:r},"div");if(i.ch<e.getLine(i.line).search(/\S/)){return Ro(e,t.head)};return i},ot)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){var n=[],o=e.listSelections(),i=e.options.tabSize;for(var t=0;t<o.length;t++){var r=o[t].from(),l=H(e.getLine(r.line),r.ch,i);n.push(Di(i-l%i))};e.replaceSelections(n)},defaultTab:function(e){if(e.somethingSelected()){e.indentSelection("add")}
+else{e.execCommand("insertTab")}},transposeChars:function(i){return N(i,function(){var a=i.listSelections(),u=[];for(var l=0;l<a.length;l++){if(!a[l].empty()){continue};var r=a[l].head,n=t(i.doc,r.line).text;if(n){if(r.ch==n.length){r=new e(r.line,r.ch-1)};if(r.ch>0){r=new e(r.line,r.ch+1);i.replaceRange(n.charAt(r.ch-1)+n.charAt(r.ch-2),e(r.line,r.ch-2),r,"+transpose")}
+else if(r.line>i.doc.first){var o=t(i.doc,r.line-1).text;if(o){r=new e(r.line,1);i.replaceRange(n.charAt(0)+i.doc.lineSeparator()+o.charAt(o.length-1),e(r.line-1,o.length-1),r,"+transpose")}}};u.push(new s(r,r))};i.setSelections(u)})},newlineAndIndent:function(e){return N(e,function(){var t=e.listSelections();for(var i=t.length-1;i>=0;i--){e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input")};t=e.listSelections();for(var r=0;r<t.length;r++){e.indentLine(t[r].from().line,null,!0)};Ie(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function zo(e,i){var n=t(e.doc,i),r=V(n);if(r!=n){i=u(r)};return Or(!0,e,r,i,1)};function na(e,i){var r=t(e.doc,i),n=Hl(r);if(n!=r){i=u(n)};return Or(!0,e,r,i,-1)};function Ro(i,r){var n=zo(i,r.line),l=t(i.doc,n.line),s=Z(l,i.doc.direction);if(!s||s[0].level==0){var o=Math.max(0,l.text.search(/\S/)),a=r.line==n.line&&r.ch<=o&&r.ch;return e(n.line,a?0:o,n.sticky)};return n};function vi(e,t,i){if(typeof t=="string"){t=Ze[t];if(!t){return!1}};e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{if(e.isReadOnly()){e.state.suppressEdits=!0};if(i){e.display.shift=!1};r=t(e)!=Vt}finally{e.display.shift=n;e.state.suppressEdits=!1};return r};function oa(e,t,i){for(var r=0;r<e.state.keyMaps.length;r++){var n=Ke(t,e.state.keyMaps[r],i,e);if(n){return n}};return(e.options.extraKeys&&Ke(t,e.options.extraKeys,i,e))||Ke(t,e.options.keyMap,i,e)};var sl=new ce;function Ht(e,t,i,r){var n=e.state.keySeq;if(n){if(Po(t)){return"handled"};if(/'$/.test(t)){e.state.keySeq=null}
+else{sl.set(50,function(){if(e.state.keySeq==n){e.state.keySeq=null;e.display.input.reset()}})};if(Bo(e,n+" "+t,i,r)){return!0}};return Bo(e,t,i,r)};function Bo(e,t,i,r){var n=oa(e,t,r);if(n=="multi"){e.state.keySeq=t};if(n=="handled"){w(e,"keyHandled",e,t,i)};if(n=="handled"||n=="multi"){T(i);fr(e)};return!!n};function Go(e,t){var i=Io(t,!0);if(!i){return!1};if(t.shiftKey&&!e.state.keySeq){return Ht(e,"Shift-"+i,t,function(t){return vi(e,t,!0)})||Ht(e,i,t,function(t){if(typeof t=="string"?/^go[A-Z]/.test(t):t.motion){return vi(e,t)}})}
+else{return Ht(e,i,t,function(t){return vi(e,t)})}};function la(e,t,i){return Ht(e,"'"+i+"'",t,function(t){return vi(e,t,!0)})};var xi=null;function Uo(e){var t=this;t.curOp.focus=Y();if(v(t,e)){return};if(l&&c<11&&e.keyCode==27){e.returnValue=!1};var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var r=Go(t,e);if(E){xi=r?i:null;if(!r&&i==88&&!dl&&(I?e.metaKey:e.ctrlKey)){t.replaceSelection("",null,"cut")}};if(i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)){sa(t)}};function sa(e){var i=e.display.lineDiv;ge(i,"CodeMirror-crosshair");function t(e){if(e.keyCode==18||!e.altKey){de(i,"CodeMirror-crosshair");D(document,"keyup",t);D(document,"mouseover",t)}};r(document,"keyup",t);r(document,"mouseover",t)};function Vo(e){if(e.keyCode==16){this.doc.sel.shift=!1};v(this,e)};function Ko(e){var t=this;if(Q(t.display,e)||v(t,e)||e.ctrlKey&&!e.altKey||I&&e.metaKey){return};var r=e.keyCode,n=e.charCode;if(E&&r==xi){xi=null;T(e);return};if((E&&(!e.which||e.which<10))&&Go(t,e)){return};var i=String.fromCharCode(n==null?r:n);if(i=="\x08"){return};if(la(t,e,i)){return};t.display.input.onKeyPress(e)};var ll=400,wi=function(e,t,i){this.time=e;this.pos=t;this.button=i};wi.prototype.compare=function(e,t,i){return this.time+ll>e&&n(t,this.pos)==0&&i==this.button};var Ye,qe;function aa(e,t){var i=+new Date;if(qe&&qe.compare(i,e,t)){Ye=qe=null;return"triple"}
+else if(Ye&&Ye.compare(i,e,t)){qe=new wi(i,e,t);Ye=null;return"double"}
+else{Ye=new wi(i,e,t);qe=null;return"single"}};function Xo(e){var t=this,i=t.display;if(v(t,e)||i.activeTouch&&i.input.supportsTouch()){return};i.input.ensurePolled();i.shift=e.shiftKey;if(Q(i,e)){if(!x){i.scroller.draggable=!1;setTimeout(function(){return i.scroller.draggable=!0},100)};return};if(Ar(t,e)){return};var r=Se(t,e),n=dn(e),o=r?aa(r,n):"single";window.focus();if(n==1&&t.state.selectingText){t.state.selectingText(e)};if(r&&ua(t,n,r,o,e)){return};if(n==1){if(r){ca(t,r,o,e)}
+else if(Xi(e)==i.scroller){T(e)}}
+else if(n==2){if(r){hi(t.doc,r)};setTimeout(function(){return i.input.focus()},20)}
+else if(n==3){if(Ni){qo(t,e)}
+else{jn(t)}}};function ua(e,t,i,r,n){var o="Click";if(r=="double"){o="Double"+o}
+else if(r=="triple"){o="Triple"+o};o=(t==1?"Left":t==2?"Middle":"Right")+o;return Ht(e,Eo(o,n),n,function(t){if(typeof t=="string"){t=Ze[t]};if(!t){return!1};var r=!1;try{if(e.isReadOnly()){e.state.suppressEdits=!0};r=t(e,i)!=Vt}finally{e.state.suppressEdits=!1};return r})};function fa(e,t,i){var n=e.getOption("configureMouse"),r=n?n(e,t,i):{};if(r.unit==null){var o=xl?i.shiftKey&&i.metaKey:i.altKey;r.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"};if(r.extend==null||e.doc.extend){r.extend=e.doc.extend||i.shiftKey};if(r.addNew==null){r.addNew=I?i.metaKey:i.ctrlKey};if(r.moveOnDrag==null){r.moveOnDrag=!(I?i.altKey:i.ctrlKey)};return r};function ca(e,t,i,r){if(l){setTimeout(Ai(Xn,e),0)}
+else{e.curOp.focus=Y()};var s=fa(e,i,r),a=e.doc.sel,o;if(e.options.dragDrop&&pl&&!e.isReadOnly()&&i=="single"&&(o=a.contains(t))>-1&&(n((o=a.ranges[o]).from(),t)<0||t.xRel>0)&&(n(o.to(),t)>0||t.xRel<0)){ha(e,r,t,s)}
+else{da(e,r,t,s)}};function ha(e,t,i,n){var o=e.display,a=!1,s=m(e,function(t){if(x){o.scroller.draggable=!1};e.state.draggingText=!1;D(document,"mouseup",s);D(document,"mousemove",u);D(o.scroller,"dragstart",f);D(o.scroller,"drop",s);if(!a){T(t);if(!n.addNew){hi(e.doc,i,null,null,n.extend)};if(x||l&&c==9){setTimeout(function(){document.body.focus();o.input.focus()},20)}
+else{o.input.focus()}}}),u=function(e){a=a||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return a=!0};if(x){o.scroller.draggable=!0};e.state.draggingText=s;s.copy=!n.moveOnDrag;if(o.scroller.dragDrop){o.scroller.dragDrop()};r(document,"mouseup",s);r(document,"mousemove",u);r(o.scroller,"dragstart",f);r(o.scroller,"drop",s);jn(e);setTimeout(function(){return o.input.focus()},20)};function jo(t,i,r){if(r=="char"){return new s(i,i)};if(r=="word"){return t.findWordAt(i)};if(r=="line"){return new s(e(i.line,0),o(t.doc,e(i.line+1,0)))};var n=r(t,i);return new s(n.from,n.to)};function da(i,l,a,u){var v=i.display,f=i.doc;T(l);var h,c,p=f.sel,d=p.ranges;if(u.addNew&&!u.extend){c=f.sel.contains(a);if(c>-1){h=d[c]}
+else{h=new s(a,a)}}
+else{h=f.sel.primary();c=f.sel.primIndex};if(u.unit=="rectangle"){if(!u.addNew){h=new s(a,a)};a=Se(i,l,!0,!0);c=-1}
+else{var w=jo(i,a,u.unit);if(u.extend){h=Lr(h,w.anchor,w.head,u.extend)}
+else{h=w}};if(!u.addNew){c=0;C(f,new O([h],0),Mi);p=f.sel}
+else if(c==-1){c=d.length;C(f,R(d.concat([h]),c),{scroll:!1,origin:"*mouse"})}
+else if(d.length>1&&d[c].empty()&&u.unit=="char"&&!u.extend){C(f,R(d.slice(0,c).concat(d.slice(c+1)),0),{scroll:!1,origin:"*mouse"});p=f.sel}
+else{kr(f,c,h,Mi)};var b=a;function M(r){if(n(b,r)==0){return};b=r;if(u.unit=="rectangle"){var g=[],y=i.options.tabSize,k=H(t(f,a.line).text,a.ch,y),T=H(t(f,r.line).text,r.ch,y),M=Math.min(k,T),N=Math.max(k,T);for(var l=Math.min(a.line,r.line),O=Math.min(i.lastLine(),Math.max(a.line,r.line));l<=O;l++){var S=t(f,l).text,m=Wi(S,M,y);if(M==N){g.push(new s(e(l,m),e(l,m)))}
+else if(S.length>m){g.push(new s(e(l,m),e(l,Wi(S,N,y))))}};if(!g.length){g.push(new s(a,a))};C(f,R(p.ranges.slice(0,c).concat(g),c),{origin:"*mouse",scroll:!1});i.scrollIntoView(r)}
+else{var w=h,d=jo(i,r,u.unit),v=w.anchor,x;if(n(d.anchor,v)>0){x=d.head;v=Zt(w.from(),d.anchor)}
+else{x=d.anchor;v=qt(w.to(),d.head)};var L=p.ranges.slice(0);L[c]=pa(i,new s(o(f,v),x));C(f,R(L,c),Mi)}};var L=v.wrapper.getBoundingClientRect(),g=0;function x(e){var l=++g,t=Se(i,e,!0,u.unit=="rectangle");if(!t){return};if(n(t,b)!=0){i.curOp.focus=Y();M(t);var o=hr(v,f);if(t.line>=o.to||t.line<o.from){setTimeout(m(i,function(){if(g==l){x(e)}}),150)}}
+else{var r=e.clientY<L.top?-20:e.clientY>L.bottom?20:0;if(r){setTimeout(m(i,function(){if(g!=l){return};v.scroller.scrollTop+=r;x(e)}),50)}}};function k(e){i.state.selectingText=!1;g=Infinity;T(e);v.input.focus();D(document,"mousemove",S);D(document,"mouseup",y);f.history.lastSelOrigin=null};var S=m(i,function(e){if(!dn(e)){k(e)}
+else{x(e)}}),y=m(i,k);i.state.selectingText=y;r(document,"mousemove",S);r(document,"mouseup",y)};function pa(i,r){var o=r.anchor,l=r.head,b=t(i.doc,o.line);if(n(o,l)==0&&o.sticky==l.sticky){return r};var a=Z(b);if(!a){return r};var p=gt(a,o.ch,o.sticky),c=a[p];if(c.from!=o.ch&&c.to!=o.ch){return r};var f=p+((c.from==o.ch)==(c.level!=1)?0:1);if(f==0||f==a.length){return r};var u;if(l.line!=o.line){u=(l.line-o.line)*(i.doc.direction=="ltr"?1:-1)>0}
+else{var d=gt(a,l.ch,l.sticky),y=d-p||(l.ch-o.ch)*(c.level==1?-1:1);if(d==f-1||d==f){u=y<0}
+else{u=y>0}};var h=a[f+(u?-1:0)],g=u==(h.level==1),v=g?h.from:h.to,m=g?"after":"before";return o.ch==v&&o.sticky==m?r:new s(new e(o.line,v,m),l)};function Yo(e,t,i,r){var s,o;if(t.touches){s=t.touches[0].clientX;o=t.touches[0].clientY}
+else{try{s=t.clientX;o=t.clientY}catch(n){return!1}};if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right)){return!1};if(r){T(t)};var a=e.display,f=a.lineDiv.getBoundingClientRect();if(o>f.bottom||!F(e,i)){return Ki(t)};o-=f.top-a.viewOffset;for(var l=0;l<e.options.gutters.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=s){var c=ye(e.doc,o),h=e.options.gutters[l];p(e,i,e,c,h,t);return Ki(t)}}};function Ar(e,t){return Yo(e,t,"gutterClick",!0)};function qo(e,t){if(Q(e.display,t)||ga(e,t)){return};if(v(e,t,"contextmenu")){return};e.display.input.onContextMenu(t)};function ga(e,t){if(!F(e,"gutterContextMenu")){return!1};return Yo(e,t,"gutterContextMenu",!1)};function Zo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-");wt(e)};var Oe={toString:function(){return"CodeMirror.Init"}};var Hr={};var It={};function va(t){var r=t.optionHandlers;function i(e,i,n,o){t.defaults[e]=i;if(n){r[e]=o?function(e,t,i){if(i!=Oe){n(e,t,i)}}:n}};t.defineOption=i;t.Init=Oe;i("value","",function(e,t){return e.setValue(t)},!0);i("mode",null,function(e,t){e.doc.modeOption=t;xr(e)},!0);i("indentUnit",2,xr,!0);i("indentWithTabs",!1);i("smartIndent",!0);i("tabSize",4,function(e){Nt(e);wt(e);M(e)},!0);i("lineSeparator",null,function(t,i){t.doc.lineSep=i;if(!i){return};var n=[],o=t.doc.first;t.doc.iter(function(t){for(var l=0;;){var r=t.text.indexOf(i,l);if(r==-1){break};l=r+i.length;n.push(e(o,r))};o++});for(var r=n.length-1;r>=0;r--){Ue(t.doc,i,n[r],e(n[r].line,n[r].ch+i.length))}});i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,i){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g");if(i!=Oe){e.refresh()}});i("specialCharPlaceholder",jl,function(e){return e.refresh()},!0);i("electricChars",!0);i("inputStyle",ut?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0);i("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0);i("rtlMoveVisually",!Cl);i("wholeLineUpdateBefore",!0);i("theme","default",function(e){Zo(e);Ft(e)},!0);i("keyMap","default",function(e,t,i){var n=gi(t),r=i!=Oe&&gi(i);if(r&&r.detach){r.detach(e,n)};if(n.attach){n.attach(e,r||null)}});i("extraKeys",null);i("configureMouse",null);i("lineWrapping",!1,ya,!0);i("gutters",[],function(e){br(e.options);Ft(e)},!0);i("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0";e.refresh()},!0);i("coverGutterNextToScrollbar",!1,function(e){return ze(e)},!0);i("scrollbarStyle","native",function(e){to(e);ze(e);e.display.scrollbars.setScrollTop(e.doc.scrollTop);e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0);i("lineNumbers",!1,function(e){br(e.options);Ft(e)},!0);i("firstLineNumber",1,Ft,!0);i("lineNumberFormatter",function(e){return e},Ft,!0);i("showCursorWhenSelecting",!1,Ct,!0);i("resetSelectionOnContextMenu",!0);i("lineWiseCopyCut",!0);i("pasteLinesPerSelection",!0);i("readOnly",!1,function(e,t){if(t=="nocursor"){St(e);e.display.input.blur()};e.display.input.readOnlyChanged(t)});i("disableInput",!1,function(e,t){if(!t){e.display.input.reset()}},!0);i("dragDrop",!0,ma);i("allowDropFileTypes",null);i("cursorBlinkRate",530);i("cursorScrollMargin",0);i("cursorHeight",1,Ct,!0);i("singleCursorHeightPerLine",!0,Ct,!0);i("workTime",100);i("workDelay",100);i("flattenSpans",!0,Nt,!0);i("addModeClass",!1,Nt,!0);i("pollInterval",100);i("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t});i("historyEventDelay",1250);i("viewportMargin",10,function(e){return e.refresh()},!0);i("maxHighlightLength",10000,Nt,!0);i("moveInputWithCursor",!0,function(e,t){if(!t){e.display.input.resetPosition()}});i("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""});i("autofocus",null);i("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)};function Ft(e){no(e);M(e);qn(e)};function ma(e,t,i){var l=i&&i!=Oe;if(!t!=!l){var n=e.display.dragFunctions,o=t?r:D;o(e.display.scroller,"dragstart",n.start);o(e.display.scroller,"dragenter",n.enter);o(e.display.scroller,"dragover",n.over);o(e.display.scroller,"dragleave",n.leave);o(e.display.scroller,"drop",n.drop)}};function ya(e){if(e.options.lineWrapping){ge(e.display.wrapper,"CodeMirror-wrap");e.display.sizer.style.minWidth="";e.display.sizerWidth=null}
+else{de(e.display.wrapper,"CodeMirror-wrap");Ui(e)};ur(e);M(e);wt(e);setTimeout(function(){return ze(e)},100)};function h(e,t){var s=this;if(!(this instanceof h)){return new h(e,t)};this.options=t=t?ve(t):{};ve(Hr,t,!1);br(t);var i=t.value;if(typeof i=="string"){i=new k(i,t.mode,null,t.lineSeparator,t.direction)};this.doc=i;var a=new h.inputStyles[t.inputStyle](this),r=this.display=new Ll(e,i,a);r.wrapper.CodeMirror=this;no(this);Zo(this);if(t.lineWrapping){this.display.wrapper.className+=" CodeMirror-wrap"};to(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 ce(),keySeq:null,specialChars:null};if(t.autofocus&&!ut){r.input.focus()};if(l&&c<11){setTimeout(function(){return s.display.input.reset(!0)},20)};ba(this);Qs();Te(this);this.curOp.forceUpdate=!0;fo(this,i);if((t.autofocus&&!ut)||this.hasFocus()){setTimeout(Ai(cr,this),20)}
+else{St(this)};for(var o in It){if(It.hasOwnProperty(o)){It[o](s,t[o],Oe)}};Zn(this);if(t.finishInit){t.finishInit(this)};for(var n=0;n<bi.length;++n){bi[n](s)};Me(this);if(x&&t.lineWrapping&&getComputedStyle(r.lineDiv).textRendering=="optimizelegibility"){r.lineDiv.style.textRendering="auto"}};h.defaults=Hr;h.optionHandlers=It;function ba(t){var i=t.display;r(i.scroller,"mousedown",m(t,Xo));if(l&&c<11){r(i.scroller,"dblclick",m(t,function(e){if(v(t,e)){return};var r=Se(t,e);if(!r||Ar(t,e)||Q(t.display,e)){return};T(e);var i=t.findWordAt(r);hi(t.doc,i.anchor,i.head)}))}
+else{r(i.scroller,"dblclick",function(e){return v(t,e)||T(e)})};if(!Ni){r(i.scroller,"contextmenu",function(e){return qo(t,e)})};var u,a={end:0};function f(){if(i.activeTouch){u=setTimeout(function(){return i.activeTouch=null},1000);a=i.activeTouch;a.end=+new Date}};function d(e){if(e.touches.length!=1){return!1};var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1};function h(e,t){if(t.left==null){return!0};var i=t.left-e.left,r=t.top-e.top;return i*i+r*r>20*20};r(i.scroller,"touchstart",function(e){if(!v(t,e)&&!d(e)&&!Ar(t,e)){i.input.ensurePolled();clearTimeout(u);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null};if(e.touches.length==1){i.activeTouch.left=e.touches[0].pageX;i.activeTouch.top=e.touches[0].pageY}}});r(i.scroller,"touchmove",function(){if(i.activeTouch){i.activeTouch.moved=!0}});r(i.scroller,"touchend",function(r){var n=i.activeTouch;if(n&&!Q(i,r)&&n.left!=null&&!n.moved&&new Date-n.start<300){var l=t.coordsChar(i.activeTouch,"page"),a;if(!n.prev||h(n,n.prev)){a=new s(l,l)}
+else if(!n.prev.prev||h(n,n.prev.prev)){a=t.findWordAt(l)}
+else{a=new s(e(l.line,0),o(t.doc,e(l.line+1,0)))};t.setSelection(a.anchor,a.head);t.focus();T(r)};f()});r(i.scroller,"touchcancel",f);r(i.scroller,"scroll",function(){if(i.scroller.clientHeight){kt(t,i.scroller.scrollTop);ke(t,i.scroller.scrollLeft,!0);p(t,"scroll",t)}});r(i.scroller,"mousewheel",function(e){return lo(t,e)});r(i.scroller,"DOMMouseScroll",function(e){return lo(t,e)});r(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0});i.dragFunctions={enter:function(e){if(!v(t,e)){vt(e)}},over:function(e){if(!v(t,e)){Zs(t,e);vt(e)}},start:function(e){return qs(t,e)},drop:m(t,Ys),leave:function(e){if(!v(t,e)){Ho(t)}}};var n=i.input.getField();r(n,"keyup",function(e){return Vo.call(t,e)});r(n,"keydown",m(t,Uo));r(n,"keypress",m(t,Ko));r(n,"focus",function(e){return cr(t,e)});r(n,"blur",function(e){return St(t,e)})};var bi=[];h.defineInitHook=function(e){return bi.push(e)};function Pt(i,r,n,o){var a=i.doc,b;if(n==null){n="add"};if(n=="smart"){if(!a.mode.indent){n="prev"}
+else{b=mt(i,r).state}};var d=i.options.tabSize,u=t(a,r),g=H(u.text,null,d);if(u.stateAfter){u.stateAfter=null};var f=u.text.match(/^\s*/)[0],l;if(!o&&!/\S/.test(u.text)){l=0;n="not"}
+else if(n=="smart"){l=a.mode.indent(b,u.text.slice(f.length),u.text);if(l==Vt||l>150){if(!o){return};n="prev"}};if(n=="prev"){if(r>a.first){l=H(t(a,r-1).text,null,d)}
+else{l=0}}
+else if(n=="add"){l=g+i.options.indentUnit}
+else if(n=="subtract"){l=g-i.options.indentUnit}
+else if(typeof n=="number"){l=g+n};l=Math.max(0,l);var h="",p=0;if(i.options.indentWithTabs){for(var y=Math.floor(l/d);y;--y){p+=d;h+="\t"}};if(p<l){h+=Di(l-p)};if(h!=f){Ue(a,h,e(r,0),e(r,f.length),"+input");u.stateAfter=null;return!0}
+else{for(var c=0;c<a.sel.ranges.length;c++){var m=a.sel.ranges[c];if(m.head.line==r&&m.head.ch<f.length){var v=e(r,f.length);kr(a,c,new s(v,v));break}}}};var P=null;function mi(e){P=e};function Wr(i,r,n,o,l){var v=i.doc;i.display.shift=!1;if(!o){o=v.sel};var h=i.state.pasteIncoming||l=="paste",d=Si(r),f=null;if(h&&o.ranges.length>1){if(P&&P.text.join("\n")==r){if(o.ranges.length%P.text.length==0){f=[];for(var g=0;g<P.text.length;g++){f.push(v.splitLines(P.text[g]))}}}
+else if(d.length==o.ranges.length&&i.options.pasteLinesPerSelection){f=jt(d,function(e){return[e]})}};var y;for(var c=o.ranges.length-1;c>=0;c--){var p=o.ranges[c],s=p.from(),u=p.to();if(p.empty()){if(n&&n>0){s=e(s.line,s.ch-n)}
+else if(i.state.overwrite&&!h){u=e(u.line,Math.min(t(v,u.line).text.length,u.ch+a(d).length))}
+else if(P&&P.lineWise&&P.text.join("\n")==r){s=u=e(s.line,0)}};y=i.curOp.updateInput;var m={from:s,to:u,text:f?f[c%f.length]:d,origin:l||(h?"paste":i.state.cutIncoming?"cut":"+input")};Ge(i.doc,m);w(i,"inputRead",i,m)};if(r&&!h){Jo(i,r)};Ie(i);i.curOp.updateInput=y;i.curOp.typing=!0;i.state.pasteIncoming=i.state.cutIncoming=!1};function Qo(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i){e.preventDefault();if(!t.isReadOnly()&&!t.options.disableInput){N(t,function(){return Wr(t,i,0,null,"paste")})};return!0}};function Jo(e,i){if(!e.options.electricChars||!e.options.smartIndent){return};var a=e.doc.sel;for(var o=a.ranges.length-1;o>=0;o--){var r=a.ranges[o];if(r.head.ch>100||(o&&a.ranges[o-1].head.line==r.head.line)){continue};var n=e.getModeAt(r.head),s=!1;if(n.electricChars){for(var l=0;l<n.electricChars.length;l++){if(i.indexOf(n.electricChars.charAt(l))>-1){s=Pt(e,r.head.line,"smart");break}}}
+else if(n.electricInput){if(n.electricInput.test(t(e.doc,r.head.line).text.slice(0,r.head.ch))){s=Pt(e,r.head.line,"smart")}};if(s){w(e,"electricInput",e,r.head.line)}}};function el(t){var o=[],l=[];for(var r=0;r<t.doc.sel.ranges.length;r++){var n=t.doc.sel.ranges[r].head.line,i={anchor:e(n,0),head:e(n+1,0)};l.push(i);o.push(t.getRange(i.anchor,i.head))};return{text:o,ranges:l}};function tl(e,t){e.setAttribute("autocorrect","off");e.setAttribute("autocapitalize","off");e.setAttribute("spellcheck",!!t)};function il(){var e=i("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=i("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");if(x){e.style.width="1000px"}
+else{e.setAttribute("wrap","off")};if(at){e.style.border="1px solid black"};tl(e);return t};function wa(i){var n=i.optionHandlers,r=i.helpers={};i.prototype={constructor:i,focus:function(){window.focus();this.display.input.focus()},setOption:function(e,t){var i=this.options,r=i[e];if(i[e]==t&&e!="mode"){return};i[e]=t;if(n.hasOwnProperty(e)){m(this,n[e])(this,t,r)};p(this,"optionChange",this,e)},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](gi(e))},removeKeyMap:function(e){var i=this.state.keyMaps;for(var t=0;t<i.length;++t){if(i[t]==e||i[t].name==e){i.splice(t,1);return!0}}},addOverlay:L(function(e,t){var r=e.token?e:i.getMode(this.options,e);if(r.startState){throw new Error("Overlays may not be stateful.")};Sl(this.state.overlays,{mode:r,modeSpec:e,opaque:t&&t.opaque,priority:(t&&t.priority)||0},function(e){return e.priority});this.state.modeGen++;M(this)}),removeOverlay:L(function(e){var n=this,i=this.state.overlays;for(var t=0;t<i.length;++t){var r=i[t].modeSpec;if(r==e||typeof e=="string"&&r.name==e){i.splice(t,1);n.state.modeGen++;M(n);return}}}),indentLine:L(function(e,t,i){if(typeof t!="string"&&typeof t!="number"){if(t==null){t=this.options.smartIndent?"smart":"prev"}
+else{t=t?"add":"subtract"}};if(ht(this.doc,e)){Pt(this,e,t,i)}}),indentSelection:L(function(e){var i=this,u=this.doc.sel.ranges,n=-1;for(var t=0;t<u.length;t++){var r=u[t];if(!r.empty()){var a=r.from(),f=r.to(),c=Math.max(n,a.line);n=Math.min(i.lastLine(),f.line-(f.ch?0:1))+1;for(var l=c;l<n;++l){Pt(i,l,e)};var o=i.doc.sel.ranges;if(a.ch==0&&u.length==o.length&&o[t].from().ch>0){kr(i.doc,t,new s(a,o[t].to()),G)}}
+else if(r.head.line>n){Pt(i,r.head.line,e,!0);n=r.head.line;if(t==i.doc.sel.primIndex){Ie(i)}}}}),getTokenAt:function(e,t){return yn(this,e,t)},getLineTokens:function(t,i){return yn(this,e(t),i,!0)},getTokenTypeAt:function(e){e=o(this.doc,e);var n=vn(this,t(this.doc,e.line)),a=0,u=(n.length-1)/2,s=e.ch,r;if(s==0){r=n[2]}
+else{for(;;){var i=(a+u)>>1;if((i?n[i*2-1]:0)>=s){u=i}
+else if(n[i*2+1]<s){a=i+1}
+else{r=n[i*2+2];break}}};var l=r?r.indexOf("overlay "):-1;return l<0?r:l==0?null:r.slice(0,l-1)},getModeAt:function(e){var t=this.doc.mode;if(!t.innerMode){return t};return i.innerMode(t,this.getTokenAt(e).state).mode},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var f=this,o=[];if(!r.hasOwnProperty(t)){return o};var n=r[t],i=this.getModeAt(e);if(typeof i[t]=="string"){if(n[i[t]]){o.push(n[i[t]])}}
+else if(i[t]){for(var a=0;a<i[t].length;a++){var u=n[i[t][a]];if(u){o.push(u)}}}
+else if(i.helperType&&n[i.helperType]){o.push(n[i.helperType])}
+else if(n[i.name]){o.push(n[i.name])};for(var s=0;s<n._global.length;s++){var l=n._global[s];if(l.pred(i,f)&&b(o,l.val)==-1){o.push(l.val)}};return o},getStateAfter:function(e,t){var i=this.doc;e=en(i,e==null?i.first+i.size-1:e);return mt(this,e+1,t).state},cursorCoords:function(e,t){var i,r=this.doc.sel.primary();if(e==null){i=r.head}
+else if(typeof e=="object"){i=o(this.doc,e)}
+else{i=e?r.from():r.to()};return z(this,i,t||"page")},charCoords:function(e,t){return rr(this,o(this.doc,e),t||"page")},coordsChar:function(e,t){e=zn(this,e,t||"page");return or(this,e.left,e.top)},lineAtHeight:function(e,t){e=zn(this,{top:e,left:0},t||"page").top;return ye(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,i,r){var o=!1,n;if(typeof e=="number"){var l=this.doc.first+this.doc.size-1;if(e<this.doc.first){e=this.doc.first}
+else if(e>l){e=l;o=!0};n=t(this.doc,e)}
+else{n=e};return oi(this,n,{top:0,left:0},i||"page",r||o).top+(o?this.doc.height-q(n):0)},defaultTextHeight:function(){return Ce(this.display)},defaultCharWidth:function(){return xt(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,i,r,n){var a=this.display;e=z(this,o(this.doc,e));var s=e.bottom,l=e.left;t.style.position="absolute";t.setAttribute("cm-ignore-events","true");this.display.input.setUneditable(t);a.sizer.appendChild(t);if(r=="over"){s=e.top}
+else if(r=="above"||r=="near"){var u=Math.max(a.wrapper.clientHeight,this.doc.height),f=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);if((r=="above"||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight){s=e.top-t.offsetHeight}
+else if(e.bottom+t.offsetHeight<=u){s=e.bottom};if(l+t.offsetWidth>f){l=f-t.offsetWidth}};t.style.top=s+"px";t.style.left=t.style.right="";if(n=="right"){l=a.sizer.clientWidth-t.offsetWidth;t.style.right="0px"}
+else{if(n=="left"){l=0}
+else if(n=="middle"){l=(a.sizer.clientWidth-t.offsetWidth)/2};t.style.left=l+"px"};if(i){bs(this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})}},triggerOnKeyDown:L(Uo),triggerOnKeyPress:L(Ko),triggerOnKeyUp:Vo,triggerOnMouseDown:L(Xo),execCommand:function(e){if(Ze.hasOwnProperty(e)){return Ze[e].call(null,this)}},triggerElectric:L(function(e){Jo(this,e)}),findPosH:function(e,t,i,r){var a=this,s=1;if(t<0){s=-1;t=-t};var n=o(this.doc,e);for(var l=0;l<t;++l){n=Dr(a.doc,n,s,i,r);if(n.hitSide){break}};return n},moveH:L(function(e,t){var i=this;this.extendSelectionsBy(function(r){if(i.display.shift||i.doc.extend||r.empty()){return Dr(i.doc,r.head,e,t,i.options.rtlMoveVisually)}
+else{return e<0?r.from():r.to()}},ot)}),deleteH:L(function(e,t){var r=this.doc.sel,i=this.doc;if(r.somethingSelected()){i.replaceSelection("",null,"+delete")}
+else{Xe(this,function(r){var n=Dr(i,r.head,e,t,!1);return e<0?{from:n,to:r.head}:{from:r.head,to:n}})}}),findPosV:function(e,t,i,r){var u=this,f=1,s=r;if(t<0){f=-1;t=-t};var n=o(this.doc,e);for(var a=0;a<t;++a){var l=z(u,n,"div");if(s==null){s=l.left}
+else{l.left=s};n=rl(u,l,f,i);if(n.hitSide){break}};return n},moveV:L(function(e,t){var n=this,i=this.doc,o=[],l=!this.display.shift&&!i.extend&&i.sel.somethingSelected();i.extendSelectionsBy(function(r){if(l){return e<0?r.from():r.to()};var s=z(n,r.head,"div");if(r.goalColumn!=null){s.left=r.goalColumn};o.push(s.left);var a=rl(n,s,e,t);if(t=="page"&&r==i.sel.primary()){pr(n,rr(n,a,"div").top-s.top)};return a},ot);if(o.length){for(var r=0;r<i.sel.ranges.length;r++){i.sel.ranges[r].goalColumn=o[r]}}}),findWordAt:function(i){var f=this.doc,n=t(f,i.line).text,r=i.ch,o=i.ch;if(n){var u=this.getHelper(i,"wordChars");if((i.sticky=="before"||o==n.length)&&r){--r}
+else{++o};var l=n.charAt(r),a=Yt(l,u)?function(e){return Yt(e,u)}:/\s/.test(l)?function(e){return/\s/.test(e)}:function(e){return(!/\s/.test(e)&&!Yt(e))}
+while(r>0&&a(n.charAt(r-1))){--r}
+while(o<n.length&&a(n.charAt(o))){++o}};return new s(e(i.line,r),e(i.line,o))},toggleOverwrite:function(e){if(e!=null&&e==this.state.overwrite){return};if(this.state.overwrite=!this.state.overwrite){ge(this.display.cursorDiv,"CodeMirror-overwrite")}
+else{de(this.display.cursorDiv,"CodeMirror-overwrite")};p(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==Y()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:L(function(e,t){Lt(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-K(this)-this.display.barHeight,width:e.scrollWidth-K(this)-this.display.barWidth,clientHeight:er(this),clientWidth:xe(this)}},scrollIntoView:L(function(t,i){if(t==null){t={from:this.doc.sel.primary().head,to:null};if(i==null){i=this.options.cursorScrollMargin}}
+else if(typeof t=="number"){t={from:e(t,0),to:null}}
+else if(t.from==null){t={from:t,to:null}};if(!t.to){t.to=t.from};t.margin=i||0;if(t.from.line!=null){ws(this,t)}
+else{Qn(this,t.from,t.to,t.margin)}}),setSize:L(function(e,t){var n=this,r=function(e){return typeof e=="number"||/^\d+$/.test(String(e))?e+"px":e};if(e!=null){this.display.wrapper.style.width=r(e)};if(t!=null){this.display.wrapper.style.height=r(t)};if(this.options.lineWrapping){Pn(this)};var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets){for(var t=0;t<e.widgets.length;t++){if(e.widgets[t].noHScroll){oe(n,i,"widget");break}}};++i});this.curOp.forceUpdate=!0;p(this,"refresh",this)}),operation:function(e){return N(this,e)},startOperation:function(){return Te(this)},endOperation:function(){return Me(this)},refresh:L(function(){var e=this.display.cachedTextHeight;M(this);this.curOp.forceUpdate=!0;wt(this);Lt(this,this.doc.scrollLeft,this.doc.scrollTop);mr(this);if(e==null||Math.abs(e-Ce(this.display))>.5){ur(this)};p(this,"refresh",this)}),swapDoc:L(function(e){var t=this.doc;t.cm=null;fo(this,e);wt(this);this.display.input.reset();Lt(this,e.scrollLeft,e.scrollTop);this.curOp.forceScroll=!0;w(this,"swapDoc",this,t);return t}),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}};Pe(i);i.registerHelper=function(e,t,n){if(!r.hasOwnProperty(e)){r[e]=i[e]={_global:[]}};r[e][t]=n};i.registerGlobalHelper=function(e,t,n,o){i.registerHelper(e,t,o);r[e]._global.push({pred:n,val:o})}};function Dr(i,r,n,o,l){var g=r,m=n,a=t(i,r.line);function y(){var o=r.line+n;if(o<i.first||o>=i.first+i.size){return!1};r=new e(o,r.ch,r.sticky);return a=t(i,o)};function u(e){var t;if(l){t=ra(i.cm,a,r,n)}
+else{t=Nr(a,r,n)};if(t==null){if(!e&&y()){r=Or(l,i.cm,a,r.line,n)}
+else{return!1}}
+else{r=t};return!0};if(o=="char"){u()}
+else if(o=="column"){u(!0)}
+else if(o=="word"||o=="group"){var d=null,p=o=="group",v=i.cm&&i.cm.getHelper(r,"wordChars");for(var f=!0;;f=!1){if(n<0&&!u(!f)){break};var h=a.text.charAt(r.ch)||"\n",s=Yt(h,v)?"w":p&&h=="\n"?"n":!p||/\s/.test(h)?null:"p";if(p&&!f&&!s){s="s"};if(d&&d!=s){if(n<0){n=1;u();r.sticky="after"};break};if(s){d=s};if(n>0&&!u(!f)){break}}};var c=Tr(i,r,g,m,!0);if(Ii(g,c)){c.hitSide=!0};return c};function rl(e,t,i,r){var a=e.doc,u=t.left,n;if(r=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*Ce(e.display),3);n=(i>0?t.bottom:t.top)+i*s}
+else if(r=="line"){n=i>0?t.bottom+3:t.top-3};var o;for(;;){o=or(e,u,n);if(!o.outside){break};if(i<0?n<=0:n>=a.height){o.hitSide=!0;break};n+=i*5};return o};var f=function(e){this.cm=e;this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null;this.polling=new ce();this.composing=null;this.gracePeriod=!1;this.readDOMTimeout=null};f.prototype.init=function(e){var i=this,o=this,t=o.cm,n=o.div=e.lineDiv;tl(n,t.options.spellcheck);r(n,"paste",function(e){if(v(t,e)||Qo(e,t)){return};if(c<=11){setTimeout(m(t,function(){return i.updateFromDOM()}),20)}});r(n,"compositionstart",function(e){i.composing={data:e.data,done:!1}});r(n,"compositionupdate",function(e){if(!i.composing){i.composing={data:e.data,done:!1}}});r(n,"compositionend",function(e){if(i.composing){if(e.data!=i.composing.data){i.readFromDOMSoon()};i.composing.done=!0}});r(n,"touchstart",function(){return o.forceCompositionEnd()});r(n,"input",function(){if(!i.composing){i.readFromDOMSoon()}});function l(e){if(v(t,e)){return};if(t.somethingSelected()){mi({lineWise:!1,text:t.getSelections()});if(e.type=="cut"){t.replaceSelection("",null,"cut")}}
+else if(!t.options.lineWiseCopyCut){return}
+else{var a=el(t);mi({lineWise:!0,text:a.text});if(e.type=="cut"){t.operation(function(){t.setSelections(a.ranges,0,G);t.replaceSelection("",null,"cut")})}};if(e.clipboardData){e.clipboardData.clearData();var s=P.text.join("\n");e.clipboardData.setData("Text",s);if(e.clipboardData.getData("Text")==s){e.preventDefault();return}};var i=il(),l=i.firstChild;t.display.lineSpace.insertBefore(i,t.display.lineSpace.firstChild);l.value=P.text.join("\n");var r=document.activeElement;lt(l);setTimeout(function(){t.display.lineSpace.removeChild(i);r.focus();if(r==n){o.showPrimarySelection()}},50)};r(n,"copy",l);r(n,"cut",l)};f.prototype.prepareSelection=function(){var e=Vn(this.cm,!1);e.focus=this.cm.state.focused;return e};f.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length){return};if(e.focus||t){this.showPrimarySelection()};this.showMultipleSelections(e)};f.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,g=t.doc.sel.primary(),c=g.from(),h=g.to();if(t.display.viewTo==t.display.viewFrom||c.line>=t.display.viewTo||h.line<t.display.viewFrom){e.removeAllRanges();return};var u=yi(t,e.anchorNode,e.anchorOffset),f=yi(t,e.focusNode,e.focusOffset);if(u&&!u.bad&&f&&!f.bad&&n(Zt(u,f),c)==0&&n(qt(u,f),h)==0){return};var d=t.display.view,s=(c.line>=t.display.viewFrom&&nl(t,c))||{node:d[0].measure.map[2],offset:0};var l=h.line<t.display.viewTo&&nl(t,h);if(!l){var a=d[d.length-1].measure,r=a.maps?a.maps[a.maps.length-1]:a.map;l={node:r[r.length-1],offset:r[r.length-2]-r[r.length-3]}};if(!s||!l){e.removeAllRanges();return};var p=e.rangeCount&&e.getRangeAt(0),o;try{o=he(s.node,s.offset,l.offset,l.node)}catch(i){};if(o){if(!ie&&t.state.focused){e.collapse(s.node,s.offset);if(!o.collapsed){e.removeAllRanges();e.addRange(o)}}
+else{e.removeAllRanges();e.addRange(o)};if(p&&e.anchorNode==null){e.addRange(p)}
+else if(ie){this.startGracePeriod()}};this.rememberSelection()};f.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod);this.gracePeriod=setTimeout(function(){e.gracePeriod=!1;if(e.selectionChanged()){e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})}},20)};f.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors);W(this.cm.display.selectionDiv,e.selection)};f.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode;this.lastAnchorOffset=e.anchorOffset;this.lastFocusNode=e.focusNode;this.lastFocusOffset=e.focusOffset};f.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount){return!1};var t=e.getRangeAt(0).commonAncestorContainer;return ne(this.div,t)};f.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"){if(!this.selectionInEditor()){this.showSelection(this.prepareSelection(),!0)};this.div.focus()}};f.prototype.blur=function(){this.div.blur()};f.prototype.getField=function(){return this.div};f.prototype.supportsTouch=function(){return!0};f.prototype.receivedFocus=function(){var e=this;if(this.selectionInEditor()){this.pollSelection()}
+else{N(this.cm,function(){return e.cm.curOp.selectionChanged=!0})};function t(){if(e.cm.state.focused){e.pollSelection();e.polling.set(e.cm.options.pollInterval,t)}};this.polling.set(this.cm.options.pollInterval,t)};f.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset};f.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged()){return};var e=window.getSelection(),t=this.cm;if(Xt&&Kt&&this.cm.options.gutters.length&&xa(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs});this.blur();this.focus();return};if(this.composing){return};this.rememberSelection();var i=yi(t,e.anchorNode,e.anchorOffset),r=yi(t,e.focusNode,e.focusOffset);if(i&&r){N(t,function(){C(t.doc,se(i,r),G);if(i.bad||r.bad){t.curOp.selectionChanged=!0}})}};f.prototype.pollContent=function(){if(this.readDOMTimeout!=null){clearTimeout(this.readDOMTimeout);this.readDOMTimeout=null};var r=this.cm,o=r.display,k=r.doc.sel.primary(),f=k.from(),g=k.to();if(f.ch==0&&f.line>r.firstLine()){f=e(f.line-1,t(r.doc,f.line-1).length)};if(g.ch==t(r.doc,g.line).text.length&&g.line<r.lastLine()){g=e(g.line+1,0)};if(f.line<o.viewFrom||g.line>o.viewTo-1){return!1};var w,p,m;if(f.line==o.viewFrom||(w=Le(r,f.line))==0){p=u(o.view[0].line);m=o.view[0].node}
+else{p=u(o.view[w].line);m=o.view[w-1].node.nextSibling};var y=Le(r,g.line),d,b;if(y==o.view.length-1){d=o.viewTo-1;b=o.lineDiv.lastChild}
+else{d=u(o.view[y+1].line)-1;b=o.view[y+1].node.previousSibling};if(!m){return!1};var i=r.doc.splitLines(Ca(r,m,b,p,d)),s=me(r.doc,e(p,0),e(d,t(r.doc,d).text.length));while(i.length>1&&s.length>1){if(a(i)==a(s)){i.pop();s.pop();d--}
+else if(i[0]==s[0]){i.shift();s.shift();p++}
+else{break}};var l=0,c=0,S=i[0],L=s[0],M=Math.min(S.length,L.length);while(l<M&&S.charCodeAt(l)==L.charCodeAt(l)){++l};var h=a(i),v=a(s),T=Math.min(h.length-(i.length==1?l:0),v.length-(s.length==1?l:0));while(c<T&&h.charCodeAt(h.length-c-1)==v.charCodeAt(v.length-c-1)){++c};if(i.length==1&&s.length==1&&p==f.line){while(l&&l>f.ch&&h.charCodeAt(h.length-c-1)==v.charCodeAt(v.length-c-1)){l--;c++}};i[i.length-1]=h.slice(0,h.length-c).replace(/^\u200b+/,"");i[0]=i[0].slice(l).replace(/\u200b+$/,"");var x=e(p,l),C=e(d,s.length?a(s).length-c:0);if(i.length>1||i[0]||n(x,C)){Ue(r.doc,i,x,C,"+input");return!0}};f.prototype.ensurePolled=function(){this.forceCompositionEnd()};f.prototype.reset=function(){this.forceCompositionEnd()};f.prototype.forceCompositionEnd=function(){if(!this.composing){return};clearTimeout(this.readDOMTimeout);this.composing=null;this.updateFromDOM();this.div.blur();this.div.focus()};f.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null){return};this.readDOMTimeout=setTimeout(function(){e.readDOMTimeout=null;if(e.composing){if(e.composing.done){e.composing=null}
+else{return}};e.updateFromDOM()},80)};f.prototype.updateFromDOM=function(){var e=this;if(this.cm.isReadOnly()||!this.pollContent()){N(this.cm,function(){return M(e.cm)})}};f.prototype.setUneditable=function(e){e.contentEditable="false"};f.prototype.onKeyPress=function(e){if(e.charCode==0){return};e.preventDefault();if(!this.cm.isReadOnly()){m(this.cm,Wr)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)}};f.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")};f.prototype.onContextMenu=function(){};f.prototype.resetPosition=function(){};f.prototype.needsContentAttribute=!0;function nl(e,i){var n=tr(e,i.line);if(!n||n.hidden){return null};var o=t(e.doc,i.line),u=Wn(n,o,i.line),l=Z(o,e.doc.direction),s="left";if(l){var a=gt(l,i.ch);s=a%2?"right":"left"};var r=Hn(u.map,i.ch,s);r.offset=r.collapse=="right"?r.end:r.start;return r};function xa(e){for(var t=e;t;t=t.parentNode){if(/CodeMirror-gutter-wrapper/.test(t.className)){return!0}};return!1};function je(e,t){if(t){e.bad=!0};return e};function Ca(t,i,r,n,o){var l="",s=!1,u=t.doc.lineSeparator();function h(e){return function(t){return t.id==e}};function f(){if(s){l+=u;s=!1}};function a(e){if(e){f();l+=e}};function c(i){if(i.nodeType==1){var v=i.getAttribute("cm-text");if(v!=null){a(v||i.textContent.replace(/\u200b/g,""));return};var g=i.getAttribute("cm-marker"),l;if(g){var p=t.findMarks(e(n,0),e(o+1,0),h(+g));if(p.length&&(l=p[0].find(0))){a(me(t.doc,l.from,l.to).join(u))};return};if(i.getAttribute("contenteditable")=="false"){return};var d=/^(pre|div|p)$/i.test(i.nodeName);if(d){f()};for(var r=0;r<i.childNodes.length;r++){c(i.childNodes[r])};if(d){s=!0}}
+else if(i.nodeType==3){a(i.nodeValue)}};for(;;){c(i);if(i==r){break};i=i.nextSibling};return l};function yi(t,i,r){var n;if(i==t.display.lineDiv){n=t.display.lineDiv.childNodes[r];if(!n){return je(t.clipPos(e(t.display.viewTo-1)),!0)};i=null;r=0}
+else{for(n=i;;n=n.parentNode){if(!n||n==t.display.lineDiv){return null};if(n.parentNode&&n.parentNode==t.display.lineDiv){break}}};for(var o=0;o<t.display.view.length;o++){var l=t.display.view[o];if(l.node==n){return Sa(l,i,r)}}};function Sa(t,i,r){var h=t.text.firstChild,c=!1;if(!i||!ne(h,i)){return je(e(u(t.line),0),!0)};if(i==h){c=!0;i=h.childNodes[r];r=0;if(!i){var y=t.rest?a(t.rest):t.line;return je(e(u(y),y.text.length),c)}};var s=i.nodeType==3?i:null,f=i;if(!s&&i.childNodes.length==1&&i.firstChild.nodeType==3){s=i.firstChild;if(r){r=s.nodeValue.length}}
+while(f.parentNode!=h){f=f.parentNode};var m=t.measure,d=m.maps;function p(i,r,n){for(var o=-1;o<(d?d.length:0);o++){var s=o<0?m.map:d[o];for(var l=0;l<s.length;l+=3){var a=s[l+2];if(a==i||a==r){var c=u(o<0?t.line:t.rest[o]),f=s[l]+n;if(n<0||a!=i){f=s[l+(n?1:0)]};return e(c,f)}}}};var n=p(s,f,r);if(n){return je(n,c)};for(var l=f.nextSibling,v=s?s.nodeValue.length-r:0;l;l=l.nextSibling){n=p(l,l.firstChild,0);if(n){return je(e(n.line,n.ch-v),c)}
+else{v+=l.textContent.length}};for(var o=f.previousSibling,g=r;o;o=o.previousSibling){n=p(o,o.firstChild,-1);if(n){return je(e(n.line,n.ch+g),c)}
+else{g+=o.textContent.length}}};var g=function(e){this.cm=e;this.prevInput="";this.pollingFast=!1;this.polling=new ce();this.hasSelection=!1;this.composing=null};g.prototype.init=function(e){var o=this,i=this,t=this.cm,s=this.wrapper=il(),n=this.textarea=s.firstChild;e.wrapper.insertBefore(s,e.wrapper.firstChild);if(at){n.style.width="0px"};r(n,"input",function(){if(l&&c>=9&&o.hasSelection){o.hasSelection=null};i.poll()});r(n,"paste",function(e){if(v(t,e)||Qo(e,t)){return};t.state.pasteIncoming=!0;i.fastPoll()});function a(e){if(v(t,e)){return};if(t.somethingSelected()){mi({lineWise:!1,text:t.getSelections()})}
+else if(!t.options.lineWiseCopyCut){return}
+else{var r=el(t);mi({lineWise:!0,text:r.text});if(e.type=="cut"){t.setSelections(r.ranges,null,G)}
+else{i.prevInput="";n.value=r.text.join("\n");lt(n)}};if(e.type=="cut"){t.state.cutIncoming=!0}};r(n,"cut",a);r(n,"copy",a);r(e.scroller,"paste",function(r){if(Q(e,r)||v(t,r)){return};t.state.pasteIncoming=!0;i.focus()});r(e.lineSpace,"selectstart",function(t){if(!Q(e,t)){T(t)}});r(n,"compositionstart",function(){var e=t.getCursor("from");if(i.composing){i.composing.range.clear()};i.composing={start:e,range:t.markText(e,t.getCursor("to"),{className:"CodeMirror-composing"})}});r(n,"compositionend",function(){if(i.composing){i.poll();i.composing.range.clear();i.composing=null}})};g.prototype.prepareSelection=function(){var e=this.cm,t=e.display,l=e.doc,i=Vn(e);if(e.options.moveInputWithCursor){var r=z(e,l.sel.primary().head,"div"),n=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-n.top));i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-n.left))};return i};g.prototype.showSelection=function(e){var i=this.cm,t=i.display;W(t.cursorDiv,e.cursors);W(t.selectionDiv,e.selection);if(e.teTop!=null){this.wrapper.style.top=e.teTop+"px";this.wrapper.style.left=e.teLeft+"px"}};g.prototype.reset=function(e){if(this.contextMenuPending||this.composing){return};var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i;if(t.state.focused){lt(this.textarea)};if(l&&c>=9){this.hasSelection=i}}
+else if(!e){this.prevInput=this.textarea.value="";if(l&&c>=9){this.hasSelection=null}}};g.prototype.getField=function(){return this.textarea};g.prototype.supportsTouch=function(){return!1};g.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ut||Y()!=this.textarea)){try{this.textarea.focus()}catch(e){}}};g.prototype.blur=function(){this.textarea.blur()};g.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0};g.prototype.receivedFocus=function(){this.slowPoll()};g.prototype.slowPoll=function(){var e=this;if(this.pollingFast){return};this.polling.set(this.cm.options.pollInterval,function(){e.poll();if(e.cm.state.focused){e.slowPoll()}})};g.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0;function i(){var r=e.poll();if(!r&&!t){t=!0;e.polling.set(60,i)}
+else{e.pollingFast=!1;e.slowPoll()}};e.polling.set(20,i)};g.prototype.poll=function(){var i=this,e=this.cm,o=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||(hl(o)&&!r&&!this.composing)||e.isReadOnly()||e.options.disableInput||e.state.keySeq){return!1};var t=o.value;if(t==r&&!e.somethingSelected()){return!1};if(l&&c>=9&&this.hasSelection===t||I&&/[\uf700-\uf7ff]/.test(t)){e.display.input.reset();return!1};if(e.doc.sel==e.display.selForContextMenu){var s=t.charCodeAt(0);if(s==0x200b&&!r){r="\u200b"};if(s==0x21da){this.reset();return this.cm.execCommand("undo")}};var n=0,a=Math.min(r.length,t.length);while(n<a&&r.charCodeAt(n)==t.charCodeAt(n)){++n};N(e,function(){Wr(e,t.slice(n),r.length-n,null,i.composing?"*compose":null);if(t.length>1000||t.indexOf("\n")>-1){o.value=i.prevInput=""}
+else{i.prevInput=t};if(i.composing){i.composing.range.clear();i.composing.range=e.markText(i.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"})}});return!0};g.prototype.ensurePolled=function(){if(this.pollingFast&&this.poll()){this.pollingFast=!1}};g.prototype.onKeyPress=function(){if(l&&c>=9){this.hasSelection=null};this.fastPoll()};g.prototype.onContextMenu=function(e){var o=this,t=o.cm,i=t.display,n=o.textarea,s=Se(t,e),y=i.scroller.scrollTop;if(!s||E){return};var v=t.options.resetSelectionOnContextMenu;if(v&&t.doc.sel.contains(s)==-1){m(t,C)(t.doc,se(s),G)};var p=n.style.cssText,g=o.wrapper.style.cssText;o.wrapper.style.cssText="position: absolute";var f=o.wrapper.getBoundingClientRect();n.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(l?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var u;if(x){u=window.scrollY};i.input.focus();if(x){window.scrollTo(null,u)};i.input.reset();if(!t.somethingSelected()){n.value=o.prevInput=" "};o.contextMenuPending=!0;i.selForContextMenu=t.doc.sel;clearTimeout(i.detectingSelectAll);function h(){if(n.selectionStart!=null){var e=t.somethingSelected(),r="\u200b"+(e?n.value:"");n.value="\u21da";n.value=r;o.prevInput=e?"":"\u200b";n.selectionStart=1;n.selectionEnd=r.length;i.selForContextMenu=t.doc.sel}};function d(){o.contextMenuPending=!1;o.wrapper.style.cssText=g;n.style.cssText=p;if(l&&c<9){i.scrollbars.setScrollTop(i.scroller.scrollTop=y)};if(n.selectionStart!=null){if(!l||(l&&c<9)){h()};var r=0,e=function(){if(i.selForContextMenu==t.doc.sel&&n.selectionStart==0&&n.selectionEnd>0&&o.prevInput=="\u200b"){m(t,Lo)(t)}
+else if(r++<10){i.detectingSelectAll=setTimeout(e,500)}
+else{i.selForContextMenu=null;i.input.reset()}};i.detectingSelectAll=setTimeout(e,200)}};if(l&&c>=9){h()};if(Ni){vt(e);var a=function(){D(window,"mouseup",a);setTimeout(d,20)};r(window,"mouseup",a)}
+else{setTimeout(d,50)}};g.prototype.readOnlyChanged=function(e){if(!e){this.reset()};this.textarea.disabled=e=="nocursor"};g.prototype.setUneditable=function(){};g.prototype.needsContentAttribute=!1;function La(e,t){t=t?ve(t):{};t.value=e.value;if(!t.tabindex&&e.tabIndex){t.tabindex=e.tabIndex};if(!t.placeholder&&e.placeholder){t.placeholder=e.placeholder};if(t.autofocus==null){var a=Y();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body};function o(){e.value=s.getValue()};var l;if(e.form){r(e.form,"submit",o);if(!t.leaveSubmitMethodAlone){var n=e.form;l=n.submit;try{var u=n.submit=function(){o();n.submit=l;n.submit();n.submit=u}}catch(i){}}};t.finishInit=function(t){t.save=o;t.getTextArea=function(){return e};t.toTextArea=function(){t.toTextArea=isNaN;o();e.parentNode.removeChild(t.getWrapperElement());e.style.display="";if(e.form){D(e.form,"submit",o);if(typeof e.form.submit=="function"){e.form.submit=l}}}};e.style.display="none";var s=h(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s};function ka(t){t.off=D;t.on=r;t.wheelEventPixels=Hs;t.Doc=k;t.splitLines=Si;t.countColumn=H;t.findColumn=Wi;t.isWordChar=Hi;t.Pass=Vt;t.signal=p;t.Line=We;t.changeEnd=ae;t.scrollbarModel=Ir;t.Pos=e;t.cmpPos=n;t.modes=Ci;t.mimeModes=He;t.resolveMode=ii;t.getMode=ji;t.modeExtensions=De;t.extendMode=Gl;t.copyState=we;t.startState=pn;t.innerMode=Yi;t.commands=Ze;t.keyMap=j;t.keyName=Io;t.isModifierKey=Po;t.lookupKey=Ke;t.normalizeKeyMap=ia;t.StringStream=d;t.SharedTextMarker=et;t.TextMarker=ee;t.LineWidget=tt;t.e_preventDefault=T;t.e_stopPropagation=hn;t.e_stop=vt;t.addClass=ge;t.contains=ne;t.rmClass=de;t.keyNames=J};va(h);wa(h);var ol="iter insert remove copy getEditor constructor".split(" ");for(var Et in k.prototype){if(k.prototype.hasOwnProperty(Et)&&b(ol,Et)<0){h.prototype[Et]=(function(e){return function(){return e.apply(this.doc,arguments)}})(k.prototype[Et])}};Pe(k);h.inputStyles={"textarea":g,"contenteditable":f};h.defineMode=function(e){if(!h.defaults.mode&&e!="null"){h.defaults.mode=e};Rl.apply(this,arguments)};h.defineMIME=Bl;h.defineMode("null",function(){return({token:function(e){return e.skipToEnd()}})});h.defineMIME("text/plain","null");h.defineExtension=function(e,t){h.prototype[e]=t};h.defineDocExtension=function(e,t){k.prototype[e]=t};h.fromTextArea=La;ka(h);h.version="5.32.0";return h})));
+/* ./modules/editor/codemirror/mode/handlebars/handlebars.min.js */
+/* ./modules/editor/codemirror/mode/smalltalk/smalltalk.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("smalltalk",function(e){var s=/[+\-\/\\*~<>=@%|&?!.,:;^]/,u=/true|false|nil|self|super|thisContext/,t=function(e,t){this.next=e;this.parent=t},n=function(e,t,n){this.name=e;this.context=t;this.eos=n},l=function(){this.context=new t(i,null);this.expectVariable=!0;this.indentation=0;this.userIndentationDelta=0};l.prototype.userIndent=function(t){this.userIndentationDelta=t>0?(t/e.indentUnit-this.indentation):0};var i=function(e,l,d){var i=new n(null,l,!1),c=e.next();if(c==="\""){i=a(e,new t(a,l))}
+else if(c==="'"){i=r(e,new t(r,l))}
+else if(c==="#"){if(e.peek()==="'"){e.next();i=o(e,new t(o,l))}
+else{if(e.eatWhile(/[^\s.{}\[\]()]/))i.name="string-2";else i.name="meta"}}
+else if(c==="$"){if(e.next()==="<"){e.eatWhile(/[^\s>]/);e.next()};i.name="string-2"}
+else if(c==="|"&&d.expectVariable){i.context=new t(f,l)}
+else if(/[\[\]{}()]/.test(c)){i.name="bracket";i.eos=/[\[{(]/.test(c);if(c==="["){d.indentation++}
+else if(c==="]"){d.indentation=Math.max(0,d.indentation-1)}}
+else if(s.test(c)){e.eatWhile(s);i.name="operator";i.eos=c!==";"}
+else if(/\d/.test(c)){e.eatWhile(/[\w\d]/);i.name="number"}
+else if(/[\w_]/.test(c)){e.eatWhile(/[\w\d_]/);i.name=d.expectVariable?(u.test(e.current())?"keyword":"variable"):null}
+else{i.eos=d.expectVariable};return i},a=function(e,t){e.eatWhile(/[^"]/);return new n("comment",e.eat("\"")?t.parent:t,!0)},r=function(e,t){e.eatWhile(/[^']/);return new n("string",e.eat("'")?t.parent:t,!1)},o=function(e,t){e.eatWhile(/[^']/);return new n("string-2",e.eat("'")?t.parent:t,!1)},f=function(e,t){var i=new n(null,t,!1),a=e.next();if(a==="|"){i.context=t.parent;i.eos=!0}
+else{e.eatWhile(/[^|]/);i.name="variable"};return i};return{startState:function(){return new l},token:function(e,t){t.userIndent(e.indentation());if(e.eatSpace()){return null};var n=t.context.next(e,t.context,t);t.context=n.context;t.expectVariable=n.eos;return n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var a=t.context.next===i&&n&&n.charAt(0)==="]"?-1:t.userIndentationDelta;return(t.indentation+a)*e.indentUnit},electricChars:"]"}});e.defineMIME("text/x-stsrc",{name:"smalltalk"})});
+/* ./modules/editor/codemirror/mode/php/php.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'),require('../clike/clike'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed','../clike/clike'],e);else e(CodeMirror)})(function(e){'use strict';function t(e){var r={},s=e.split(' ');for(var t=0;t<s.length;++t)r[s[t]]=!0;return r};function s(e,t,i){if(e.length==0)return r(t);return function(l,n){var o=e[0];for(var a=0;a<o.length;a++)if(l.match(o[a][0])){n.tokenize=s(e.slice(1),t);return o[a][1]};n.tokenize=r(t,i);return'string'}};function r(e,t){return function(r,s){return o(r,s,e,t)}};function o(e,t,i,r){if(r!==!1&&e.match('${',!1)||e.match('{$',!1)){t.tokenize=null;return'string'};if(r!==!1&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/)){if(e.match('[',!1)){t.tokenize=s([[['[',null]],[[/\d[\w\.]*/,'number'],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,'variable-2'],[/[\w\$]+/,'variable']],[[']',null]]],i,r)};if(e.match(/\-\>\w/,!1)){t.tokenize=s([[['->',null]],[[/[\w]+/,'variable']]],i,r)};return'variable-2'};var l=!1;while(!e.eol()&&(l||r===!1||(!e.match('{$',!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1)))){if(!l&&e.match(i)){t.tokenize=null;t.tokStack.pop();t.tokStack.pop();break};l=e.next()=='\\'&&!l};return'string'};var l='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',n='true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__',a='func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count';e.registerHelper('hintWords','php',[l,n,a].join(' ').split(' '));e.registerHelper('wordChars','php',/[\w$]/);var i={name:'clike',helperType:'php',keywords:t(l),blockKeywords:t('catch do else elseif for foreach if switch try while finally'),defKeywords:t('class function interface namespace trait'),atoms:t(n),builtin:t(a),multiLineStrings:!0,hooks:{'$':function(e){e.eatWhile(/[\w\$_]/);return'variable-2'},'<':function(e,t){var l;if(l=e.match(/<<\s*/)){var s=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(l[0].length+(s?2:1));if(s)e.eat(s);if(i){(t.tokStack||(t.tokStack=[])).push(i,0);t.tokenize=r(i,s!='\'');return'string'}};return!1},'#':function(e){while(!e.eol()&&!e.match('?>',!1))e.next();return'comment'},'/':function(e){if(e.eat('/')){while(!e.eol()&&!e.match('?>',!1))e.next();return'comment'};return!1},'"':function(e,t){(t.tokStack||(t.tokStack=[])).push('"',0);t.tokenize=r('"');return'string'},'{':function(e,t){if(t.tokStack&&t.tokStack.length)t.tokStack[t.tokStack.length-1]++;return!1},'}':function(e,t){if(t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]){t.tokenize=r(t.tokStack[t.tokStack.length-2])};return!1}}};e.defineMode('php',function(t,r){var l=e.getMode(t,(r&&r.htmlMode)||'text/html'),s=e.getMode(t,i);function n(r,t){var c=t.curMode==s;if(r.sol()&&t.pending&&t.pending!='"'&&t.pending!='\'')t.pending=null;if(!c){if(r.match(/^<\?\w*/)){t.curMode=s;if(!t.php)t.php=e.startState(s,l.indent(t.html,''));t.curState=t.php;return'meta'};if(t.pending=='"'||t.pending=='\''){while(!r.eol()&&r.next()!=t.pending){};var i='string'}
+else if(t.pending&&r.pos<t.pending.end){r.pos=t.pending.end;var i=t.pending.style}
+else{var i=l.token(r,t.curState)};if(t.pending)t.pending=null;var n=r.current(),a=n.search(/<\?/),o;if(a!=-1){if(i=='string'&&(o=n.match(/['"]$/))&&!/\?>/.test(n))t.pending=o[0];else t.pending={end:r.pos,style:i};r.backUp(n.length-a)};return i}
+else if(c&&t.php.tokenize==null&&r.match('?>')){t.curMode=l;t.curState=t.html;if(!t.php.context.prev)t.php=null;return'meta'}
+else{return s.token(r,t.curState)}};return{startState:function(){var t=e.startState(l),i=r.startOpen?e.startState(s):null;return{html:t,php:i,curMode:r.startOpen?s:l,curState:r.startOpen?i:t,pending:null}},copyState:function(t){var o=t.html,i=e.copyState(l,o),n=t.php,a=n&&e.copyState(s,n),r;if(t.curMode==l)r=i;else r=a;return{html:i,php:a,curMode:t.curMode,curState:r,pending:t.pending}},token:n,indent:function(e,t){if((e.curMode!=s&&/^\s*<\//.test(t))||(e.curMode==s&&/^\?>/.test(t)))return l.indent(e.html,t);return e.curMode.indent(e.curState,t)},blockCommentStart:'/*',blockCommentEnd:'*/',lineComment:'//',innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},'htmlmixed','clike');e.defineMIME('application/x-httpd-php','php');e.defineMIME('application/x-httpd-php-open',{name:'php',startOpen:!0});e.defineMIME('text/x-php',i)});
+/* ./modules/editor/codemirror/mode/cobol/cobol.min.js */(function(E){if(typeof exports=="object"&&typeof module=="object")E(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],E);else E(CodeMirror)})(function(E){"use strict";E.defineMode("cobol",function(){var C="builtin",L="comment",A="string",O="atom",D="number",S="keyword",U="header",e="def",P="link";function T(E){var I={},N=E.split(" ");for(var T=0;T<N.length;++T)I[N[T]]=!0;return I};var I=T("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),N=T("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-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),R=T("- * ** / + < <= = > >= "),E={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function M(I,T){if(I==="0"&&T.eat(/x/i)){T.eatWhile(E.hex);return!0};if((I=="+"||I=="-")&&(E.digit.test(T.peek()))){T.eat(E.sign);I=T.next()};if(E.digit.test(I)){T.eat(I);T.eatWhile(E.digit);if("."==T.peek()){T.eat(".");T.eatWhile(E.digit)};if(T.eat(E.exponent)){T.eat(E.sign);T.eatWhile(E.digit)};return!0};return!1};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(T,n){if(n.indentStack==null&&T.sol()){n.indentation=6};if(T.eatSpace()){return null};var t=null;switch(n.mode){case"string":var r=!1;while((r=T.next())!=null){if(r=="\""||r=="'"){n.mode=!1;break}};t=A;break;default:var G=T.next();var i=T.column();if(i>=0&&i<=5){t=e}
+else if(i>=72&&i<=79){T.skipToEnd();t=U}
+else if(G=="*"&&i==6){T.skipToEnd();t=L}
+else if(G=="\""||G=="'"){n.mode="string";t=A}
+else if(G=="'"&&!(E.digit_or_colon.test(T.peek()))){t=O}
+else if(G=="."){t=P}
+else if(M(G,T)){t=D}
+else{if(T.current().match(E.symbol)){while(i<71){if(T.eat(E.symbol)===undefined){break}
+else{i++}}};if(N&&N.propertyIsEnumerable(T.current().toUpperCase())){t=S}
+else if(R&&R.propertyIsEnumerable(T.current().toUpperCase())){t=C}
+else if(I&&I.propertyIsEnumerable(T.current().toUpperCase())){t=O}
+else t=null}};return t},indent:function(E){if(E.indentStack==null)return E.indentation;return E.indentStack.indent}}});E.defineMIME("text/x-cobol","cobol")});
+/* ./modules/editor/codemirror/mode/haskell/haskell.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("haskell",function(e,r){function a(e,r,t){r(t);return t(e,r)};var c=/[a-z_]/,d=/[A-Z]/,n=/\d/,m=/[0-9A-Fa-f]/,h=/[0-7]/,l=/[a-z_A-Z0-9'\xa1-\uffff]/,i=/[-!#$%&*+.\/<=>?@\\^|~:]/,p=/[(),;[\]`{}]/,u=/[ \t\v\f]/;function t(e,t){if(e.eatWhile(u)){return null};var r=e.next();if(p.test(r)){if(r=="{"&&e.eat("-")){var o="comment";if(e.eat("#")){o="meta"};return a(e,t,f(o,1))};return null};if(r=="'"){if(e.eat("\\")){e.next()}
+else{e.next()};if(e.eat("'")){return"string"};return"string error"};if(r=="\""){return a(e,t,s)};if(d.test(r)){e.eatWhile(l);if(e.eat(".")){return"qualifier"};return"variable-2"};if(c.test(r)){e.eatWhile(l);return"variable"};if(n.test(r)){if(r=="0"){if(e.eat(/[xX]/)){e.eatWhile(m);return"integer"};if(e.eat(/[oO]/)){e.eatWhile(h);return"number"}};e.eatWhile(n);var o="number";if(e.match(/^\.\d+/)){o="number"};if(e.eat(/[eE]/)){o="number";e.eat(/[-+]/);e.eatWhile(n)};return o};if(r=="."&&e.eat("."))return"keyword";if(i.test(r)){if(r=="-"&&e.eat(/-/)){e.eatWhile(/-/);if(!e.eat(i)){e.skipToEnd();return"comment"}};var o="variable";if(r==":"){o="variable-2"};e.eatWhile(i);return o};return"error"};function f(e,r){if(r==0){return t};return function(n,i){var a=r;while(!n.eol()){var o=n.next();if(o=="{"&&n.eat("-")){++a}
+else if(o=="-"&&n.eat("}")){--a;if(a==0){i(t);return e}}};i(f(e,a));return e}};function s(e,r){while(!e.eol()){var n=e.next();if(n=="\""){r(t);return"string"};if(n=="\\"){if(e.eol()||e.eat(u)){r(g);return"string"};if(e.eat("&")){}
+else{e.next()}}};r(t);return"string error"};function g(e,r){if(e.eat("\\")){return a(e,r,s)};e.next();r(t);return"error"};var o=(function(){var i={};function e(e){return function(){for(var r=0;r<arguments.length;r++)i[arguments[r]]=e}};e("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_");e("keyword")("\.\.",":","::","=","\\","<-","->","@","~","=>");e("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<=","=<<","==",">",">=",">>",">>=","^","^^","||","*","**");e("builtin")("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");e("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","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 t=r.overrideKeywords;if(t)for(var n in t)if(t.hasOwnProperty(n))i[n]=t[n];return i})();return{startState:function(){return{f:t}},copyState:function(e){return{f:e.f}},token:function(e,r){var n=r.f(e,function(e){r.f=e}),t=e.current();return o.hasOwnProperty(t)?o[t]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}});e.defineMIME("text/x-haskell","haskell")});
+/* ./modules/editor/codemirror/mode/mathematica/mathematica.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('mathematica',function(e,t){var n='[a-zA-Z\\$][a-zA-Z0-9\\$]*',o='(?:\\d+)',a='(?:\\.\\d+|\\d+\\.\\d*|\\d+)',m='(?:\\.\\w+|\\w+\\.\\w*|\\w+)',i='(?:`(?:`?'+a+')?)',c=new RegExp('(?:'+o+'(?:\\^\\^'+m+i+'?(?:\\*\\^[+-]?\\d+)?))'),f=new RegExp('(?:'+a+i+'?(?:\\*\\^[+-]?\\d+)?)'),u=new RegExp('(?:`?)(?:'+n+')(?:`(?:'+n+'))*(?:`?)');function r(e,t){var r;r=e.next();if(r==='"'){t.tokenize=z;return t.tokenize(e,t)};if(r==='('){if(e.eat('*')){t.commentLevel++;t.tokenize=l;return t.tokenize(e,t)}};e.backUp(1);if(e.match(c,!0,!1)){return'number'};if(e.match(f,!0,!1)){return'number'};if(e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)){return'atom'};if(e.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::usage)/,!0,!1)){return'meta'};if(e.match(/([a-zA-Z\$]+(?:`?[a-zA-Z0-9\$])*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)){return'string-2'};if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)){return'variable-2'};if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)){return'variable-2'};if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)){return'variable-2'};if(e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)){return'variable-2'};if(e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)){return'variable-3'};if(e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)){return'bracket'};if(e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)){return'variable-2'};if(e.match(u,!0,!1)){return'keyword'};if(e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)){return'operator'};e.next();return'error'};function z(e,t){var a,i=!1,n=!1;while((a=e.next())!=null){if(a==='"'&&!n){i=!0;break};n=!n&&a==='\\'};if(i&&!n){t.tokenize=r};return'string'};function l(t,e){var a,n;while(e.commentLevel>0&&(n=t.next())!=null){if(a==='('&&n==='*')e.commentLevel++;if(a==='*'&&n===')')e.commentLevel--;a=n};if(e.commentLevel<=0){e.tokenize=r};return'comment'};return{startState:function(){return{tokenize:r,commentLevel:0}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},blockCommentStart:'(*',blockCommentEnd:'*)'}});e.defineMIME('text/x-mathematica',{name:'mathematica'})});
+/* ./modules/editor/codemirror/mode/pug/pug.min.js */(function(t){if(typeof exports=='object'&&typeof module=='object')t(require('../../lib/codemirror'),require('../javascript/javascript'),require('../css/css'),require('../htmlmixed/htmlmixed'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../javascript/javascript','../css/css','../htmlmixed/htmlmixed'],t);else t(CodeMirror)})(function(t){'use strict';t.defineMode('pug',function(e){var i='keyword',p='meta',l='builtin',h='qualifier',s={'{':'}','(':')','[':']'};var n=t.getMode(e,'javascript');function r(){this.javaScriptLine=!1;this.javaScriptLineExcludesColon=!1;this.javaScriptArguments=!1;this.javaScriptArgumentsDepth=0;this.isInterpolating=!1;this.interpolationNesting=0;this.jsState=t.startState(n);this.restOfLine='';this.isIncludeFiltered=!1;this.isEach=!1;this.lastTag='';this.scriptType='';this.isAttrs=!1;this.attrsNest=[];this.inAttributeName=!0;this.attributeIsType=!1;this.attrValue='';this.indentOf=Infinity;this.indentToken='';this.innerMode=null;this.innerState=null;this.innerModeForLine=!1};r.prototype.copy=function(){var e=new r();e.javaScriptLine=this.javaScriptLine;e.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon;e.javaScriptArguments=this.javaScriptArguments;e.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth;e.isInterpolating=this.isInterpolating;e.interpolationNesting=this.interpolationNesting;e.jsState=t.copyState(n,this.jsState);e.innerMode=this.innerMode;if(this.innerMode&&this.innerState){e.innerState=t.copyState(this.innerMode,this.innerState)};e.restOfLine=this.restOfLine;e.isIncludeFiltered=this.isIncludeFiltered;e.isEach=this.isEach;e.lastTag=this.lastTag;e.scriptType=this.scriptType;e.isAttrs=this.isAttrs;e.attrsNest=this.attrsNest.slice();e.inAttributeName=this.inAttributeName;e.attributeIsType=this.attributeIsType;e.attrValue=this.attrValue;e.indentOf=this.indentOf;e.indentToken=this.indentToken;e.innerModeForLine=this.innerModeForLine;return e};function d(t,e){if(t.sol()){e.javaScriptLine=!1;e.javaScriptLineExcludesColon=!1};if(e.javaScriptLine){if(e.javaScriptLineExcludesColon&&t.peek()===':'){e.javaScriptLine=!1;e.javaScriptLineExcludesColon=!1;return};var i=n.token(t,e.jsState);if(t.eol())e.javaScriptLine=!1;return i||!0}};function m(t,e){if(e.javaScriptArguments){if(e.javaScriptArgumentsDepth===0&&t.peek()!=='('){e.javaScriptArguments=!1;return};if(t.peek()==='('){e.javaScriptArgumentsDepth++}
+else if(t.peek()===')'){e.javaScriptArgumentsDepth--};if(e.javaScriptArgumentsDepth===0){e.javaScriptArguments=!1;return};var i=n.token(t,e.jsState);return i||!0}};function v(t){if(t.match(/^yield\b/)){return'keyword'}};function S(t){if(t.match(/^(?:doctype) *([^\n]+)?/)){return p}};function c(t,e){if(t.match('#{')){e.isInterpolating=!0;e.interpolationNesting=0;return'punctuation'}};function g(t,e){if(e.isInterpolating){if(t.peek()==='}'){e.interpolationNesting--;if(e.interpolationNesting<0){t.next();e.isInterpolating=!1;return'punctuation'}}
+else if(t.peek()==='{'){e.interpolationNesting++};return n.token(t,e.jsState)||!0}};function j(t,e){if(t.match(/^case\b/)){e.javaScriptLine=!0;return i}};function b(t,e){if(t.match(/^when\b/)){e.javaScriptLine=!0;e.javaScriptLineExcludesColon=!0;return i}};function L(t){if(t.match(/^default\b/)){return i}};function A(t,e){if(t.match(/^extends?\b/)){e.restOfLine='string';return i}};function y(t,e){if(t.match(/^append\b/)){e.restOfLine='variable';return i}};function k(t,e){if(t.match(/^prepend\b/)){e.restOfLine='variable';return i}};function M(t,e){if(t.match(/^block\b *(?:(prepend|append)\b)?/)){e.restOfLine='variable';return i}};function T(t,e){if(t.match(/^include\b/)){e.restOfLine='string';return i}};function x(t,e){if(t.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&t.match('include')){e.isIncludeFiltered=!0;return i}};function I(t,e){if(e.isIncludeFiltered){var i=u(t,e);e.isIncludeFiltered=!1;e.restOfLine='string';return i}};function N(t,e){if(t.match(/^mixin\b/)){e.javaScriptLine=!0;return i}};function O(t,e){if(t.match(/^\+([-\w]+)/)){if(!t.match(/^\( *[-\w]+ *=/,!1)){e.javaScriptArguments=!0;e.javaScriptArgumentsDepth=0};return'variable'};if(t.match(/^\+#{/,!1)){t.next();e.mixinCallAfter=!0;return c(t,e)}};function w(t,e){if(e.mixinCallAfter){e.mixinCallAfter=!1;if(!t.match(/^\( *[-\w]+ *=/,!1)){e.javaScriptArguments=!0;e.javaScriptArgumentsDepth=0};return!0}};function E(t,e){if(t.match(/^(if|unless|else if|else)\b/)){e.javaScriptLine=!0;return i}};function C(t,e){if(t.match(/^(- *)?(each|for)\b/)){e.isEach=!0;return i}};function F(t,e){if(e.isEach){if(t.match(/^ in\b/)){e.javaScriptLine=!0;e.isEach=!1;return i}
+else if(t.sol()||t.eol()){e.isEach=!1}
+else if(t.next()){while(!t.match(/^ in\b/,!1)&&t.next());return'variable'}}};function D(t,e){if(t.match(/^while\b/)){e.javaScriptLine=!0;return i}};function V(t,e){var i;if(i=t.match(/^(\w(?:[-:\w]*\w)?)\/?/)){e.lastTag=i[1].toLowerCase();if(e.lastTag==='script'){e.scriptType='application/javascript'};return'tag'}};function u(i,n){if(i.match(/^:([\w\-]+)/)){var r;if(e&&e.innerModes){r=e.innerModes(i.current().substring(1))};if(!r){r=i.current().substring(1)};if(typeof r==='string'){r=t.getMode(e,r)};a(i,n,r);return'atom'}};function q(t,e){if(t.match(/^(!?=|-)/)){e.javaScriptLine=!0;return'punctuation'}};function U(t){if(t.match(/^#([\w-]+)/)){return l}};function Z(t){if(t.match(/^\.([\w-]+)/)){return h}};function z(t,e){if(t.peek()=='('){t.next();e.isAttrs=!0;e.attrsNest=[];e.inAttributeName=!0;e.attrValue='';e.attributeIsType=!1;return'punctuation'}};function o(e,i){if(i.isAttrs){if(s[e.peek()]){i.attrsNest.push(s[e.peek()])};if(i.attrsNest[i.attrsNest.length-1]===e.peek()){i.attrsNest.pop()}
+else if(e.eat(')')){i.isAttrs=!1;return'punctuation'};if(i.inAttributeName&&e.match(/^[^=,\)!]+/)){if(e.peek()==='='||e.peek()==='!'){i.inAttributeName=!1;i.jsState=t.startState(n);if(i.lastTag==='script'&&e.current().trim().toLowerCase()==='type'){i.attributeIsType=!0}
+else{i.attributeIsType=!1}};return'attribute'};var r=n.token(e,i.jsState);if(i.attributeIsType&&r==='string'){i.scriptType=e.current().toString()};if(i.attrsNest.length===0&&(r==='string'||r==='variable'||r==='keyword')){try{Function('','var x '+i.attrValue.replace(/,\s*$/,'').replace(/^!/,''));i.inAttributeName=!0;i.attrValue='';e.backUp(e.current().length);return o(e,i)}catch(a){}};i.attrValue+=e.current();return r||!0}};function tt(t,e){if(t.match(/^&attributes\b/)){e.javaScriptArguments=!0;e.javaScriptArgumentsDepth=0;return'keyword'}};function et(t){if(t.sol()&&t.eatSpace()){return'indent'}};function it(t,e){if(t.match(/^ *\/\/(-)?([^\n]*)/)){e.indentOf=t.indentation();e.indentToken='comment';return'comment'}};function nt(t){if(t.match(/^: */)){return'colon'}};function rt(t,e){if(t.match(/^(?:\| ?| )([^\n]+)/)){return'string'};if(t.match(/^(<[^\n]*)/,!1)){a(t,e,'htmlmixed');e.innerModeForLine=!0;return f(t,e,!0)}};function at(t,e){if(t.eat('.')){var i=null;if(e.lastTag==='script'&&e.scriptType.toLowerCase().indexOf('javascript')!=-1){i=e.scriptType.toLowerCase().replace(/"|'/g,'')}
+else if(e.lastTag==='style'){i='css'};a(t,e,i);return'dot'}};function st(t){t.next();return null};function a(i,n,r){r=t.mimeModes[r]||r;r=e.innerModes?e.innerModes(r)||r:r;r=t.mimeModes[r]||r;r=t.getMode(e,r);n.indentOf=i.indentation();if(r&&r.name!=='null'){n.innerMode=r}
+else{n.indentToken='string'}};function f(e,i,n){if(e.indentation()>i.indentOf||(i.innerModeForLine&&!e.sol())||n){if(i.innerMode){if(!i.innerState){i.innerState=i.innerMode.startState?t.startState(i.innerMode,e.indentation()):{}};return e.hideFirstChars(i.indentOf+2,function(){return i.innerMode.token(e,i.innerState)||!0})}
+else{e.skipToEnd();return i.indentToken}}
+else if(e.sol()){i.indentOf=Infinity;i.indentToken=null;i.innerMode=null;i.innerState=null}};function ct(t,e){if(t.sol()){e.restOfLine=''};if(e.restOfLine){t.skipToEnd();var i=e.restOfLine;e.restOfLine='';return i}};function ut(){return new r()};function ot(t){return t.copy()};function ft(t,e){var i=f(t,e)||ct(t,e)||g(t,e)||I(t,e)||F(t,e)||o(t,e)||d(t,e)||m(t,e)||w(t,e)||v(t,e)||S(t,e)||c(t,e)||j(t,e)||b(t,e)||L(t,e)||A(t,e)||y(t,e)||k(t,e)||M(t,e)||T(t,e)||x(t,e)||N(t,e)||O(t,e)||E(t,e)||C(t,e)||D(t,e)||V(t,e)||u(t,e)||q(t,e)||U(t,e)||Z(t,e)||z(t,e)||tt(t,e)||et(t,e)||rt(t,e)||it(t,e)||nt(t,e)||at(t,e)||st(t,e);return i===!0?null:i};return{startState:ut,copyState:ot,token:ft}},'javascript','css','htmlmixed');t.defineMIME('text/x-pug','pug');t.defineMIME('text/x-jade','pug')});
+/* ./modules/editor/codemirror/mode/livescript/livescript.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('livescript',function(){var e=function(e,n){var g=n.next||'start';if(g){n.next=n.next;var i=t[g];if(i.splice){for(var o=0;o<i.length;++o){var r=i[o];if(r.regex&&e.match(r.regex)){n.next=r.next||n.next;return r.token}};e.next();return'error'};if(e.match(r=t[g])){if(r.regex&&e.match(r.regex)){n.next=r.next;return r.token}
+else{e.next();return'error'}}};e.next();return'error'},r={startState:function(){return{next:'start',lastToken:{style:null,indent:0,content:''}}},token:function(t,r){while(t.pos==t.start)var n=e(t,r);r.lastToken={style:n,indent:t.indentation(),content:t.current()};return n.replace(/\./g,' ')},indent:function(e){var t=e.lastToken.indent;if(e.lastToken.content.match(l)){t+=2};return t}};return r});var g='(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*',l=RegExp('(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*'+g+')?))\\s*$'),r='(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))',n={token:'string',regex:'.+'};var 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)'+r},{token:'constant.language',regex:'(?:true|false|yes|no|on|off|null|void|undefined)'+r},{token:'invalid.illegal',regex:'(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)'+r},{token:'language.support.class',regex:'(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)'+r},{token:'language.support.function',regex:'(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)'+r},{token:'variable.language',regex:'(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)'+r},{token:'identifier',regex:g+'\\s*:(?![:=])'},{token:'variable',regex:g},{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:'<\\[',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:g,next:'start'},{token:'text',regex:'',next:'start'}],comment:[{token:'comment.doc',regex:'.*?\\*/',next:'start'},{token:'comment.doc',regex:'.+'}],qdoc:[{token:'string',regex:'.*?\'\'\'',next:'key'},n],qqdoc:[{token:'string',regex:'.*?"""',next:'key'},n],qstring:[{token:'string',regex:'[^\\\\\']*(?:\\\\.[^\\\\\']*)*\'',next:'key'},n],qqstring:[{token:'string',regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:'key'},n],js:[{token:'string',regex:'[^\\\\`]*(?:\\\\.[^\\\\`]*)*`',next:'key'},n],words:[{token:'string',regex:'.*?\\]>',next:'key'},n]};for(var s in t){var i=t[s];if(i.splice){for(var o=0,a=i.length;o<a;++o){var x=i[o];if(typeof x.regex==='string'){t[s][o].regex=new RegExp('^'+x.regex)}}}
+else if(typeof x.regex==='string'){t[s].regex=new RegExp('^'+i.regex)}};e.defineMIME('text/x-livescript','livescript')});
+/* ./modules/editor/codemirror/mode/yaml-frontmatter/yaml-frontmatter.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../yaml/yaml'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../yaml/yaml'],e);else e(CodeMirror)})(function(e){var n=0,r=1,t=2;e.defineMode('yaml-frontmatter',function(i,f){var o=e.getMode(i,'yaml'),a=e.getMode(i,f&&f.base||'gfm');function u(e){return e.state==t?a:o};return{startState:function(){return{state:n,inner:e.startState(o)}},copyState:function(t){return{state:t.state,inner:e.copyState(u(t),t.inner)}},token:function(i,f){if(f.state==n){if(i.match(/---/,!1)){f.state=r;return o.token(i,f.inner)}
+else{f.state=t;f.inner=e.startState(a);return a.token(i,f.inner)}}
+else if(f.state==r){var u=i.sol()&&i.match(/---/,!1),s=o.token(i,f.inner);if(u){f.state=t;f.inner=e.startState(a)};return s}
+else{return a.token(i,f.inner)}},innerMode:function(e){return{mode:u(e),state:e.inner}},blankLine:function(e){var t=u(e);if(t.blankLine)return t.blankLine(e.inner)}}})});
+/* ./modules/editor/codemirror/mode/stylus/stylus.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('stylus',function(b){var z=b.indentUnit,E='',H=t(i),N=/^(a|b|i|s|col|em)$/i,I=t(o),T=t(l),ee=t(d),te=t(c),re=t(r),ie=f(r),ae=t(n),ne=t(a),oe=t(s),le=/^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,se=f(u),ce=t(m),A=new RegExp(/^\-(moz|ms|o|webkit)-/i),de=t(p),W='',w={},v,q,M,h;while(E.length<z)E+=' ';function ue(e,t){W=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);t.context.line.firstWord=W?W[0].replace(/^\s*/,''):'';t.context.line.indent=e.indentation();v=e.peek();if(e.match('//')){e.skipToEnd();return['comment','comment']};if(e.match('/*')){t.tokenize=O;return O(e,t)};if(v=='"'||v=='\''){e.next();t.tokenize=R(v);return t.tokenize(e,t)};if(v=='@'){e.next();e.eatWhile(/[\w\\-]/);return['def',e.current()]};if(v=='#'){e.next();if(e.match(/^[0-9a-f]{6}|[0-9a-f]{3}/i)){return['atom','atom']};if(e.match(/^[a-z][\w-]*/i)){return['builtin','hash']}};if(e.match(A)){return['meta','vendor-prefixes']};if(e.match(/^-?[0-9]?\.?[0-9]/)){e.eatWhile(/[a-z%]/i);return['number','unit']};if(v=='!'){e.next();return[e.match(/^(important|optional)/i)?'keyword':'operator','important']};if(v=='.'&&e.match(/^\.[a-z][\w-]*/i)){return['qualifier','qualifier']};if(e.match(ie)){if(e.peek()=='(')t.tokenize=me;return['property','word']};if(e.match(/^[a-z][\w-]*\(/i)){e.backUp(1);return['keyword','mixin']};if(e.match(/^(\+|-)[a-z][\w-]*\(/i)){e.backUp(1);return['keyword','block-mixin']};if(e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)){return['qualifier','qualifier']};if(e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)){e.backUp(1);return['variable-3','reference']};if(e.match(/^&{1}\s*$/)){return['variable-3','reference']};if(e.match(se)){return['operator','operator']};if(e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)){if(e.match(/^(\.|\[)[\w-'"\]]+/i,!1)){if(!x(e.current())){e.match(/\./);return['variable-2','variable-name']}};return['variable-2','word']};if(e.match(le)){return['operator',e.current()]};if(/[:;,{}\[\]\(\)]/.test(v)){e.next();return[null,v]};e.next();return[null,null]};function O(e,t){var i=!1,r;while((r=e.next())!=null){if(i&&r=='/'){t.tokenize=null;break};i=(r=='*')};return['comment','comment']};function R(e){return function(t,r){var i=!1,a;while((a=t.next())!=null){if(a==e&&!i){if(e==')')t.backUp(1);break};i=!i&&a=='\\'};if(a==e||!i&&e!=')')r.tokenize=null;return['string','string']}};function me(e,t){e.next();if(!e.match(/\s*["')]/,!1))t.tokenize=R(')');else t.tokenize=null;return[null,'(']};function S(e,t,r,i){this.type=e;this.indent=t;this.prev=r;this.line=i||{firstWord:'',indent:0}};function e(e,t,r,i){i=i>=0?i:z;e.context=new S(r,t.indentation()+i,e.context);return r};function j(e,t){var r=e.context.indent-z;t=t||!1;e.context=e.context.prev;if(t)e.context.indent=r;return e.context.type};function pe(e,t,r){return w[r.context.type](e,t,r)};function U(e,t,r,i){for(var a=i||1;a>0;a--)r.context=r.context.prev;return pe(e,t,r)};function x(e){return e.toLowerCase()in H};function C(e){e=e.toLowerCase();return e in I||e in oe};function B(e){return e.toLowerCase()in ce};function X(e){return e.toLowerCase().match(A)};function L(e){var r=e.toLowerCase(),t='variable-2';if(x(e))t='tag';else if(B(e))t='block-keyword';else if(C(e))t='property';else if(r in ee||r in de)t='atom';else if(r=='return'||r in te)t='keyword';else if(e.match(/^[A-Z]/))t='string';return t};function Y(e,t){return((k(t)&&(e=='{'||e==']'||e=='hash'||e=='qualifier'))||e=='block-mixin')};function Z(e,t){return e=='{'&&t.match(/^\s*\$?[\w-]+/i,!1)};function F(e,t){return e==':'&&t.match(/^[a-z-]+/,!1)};function P(e){return e.sol()||e.string.match(new RegExp('^\\s*'+g(e.current())))};function k(e){return e.eol()||e.match(/^\s*$/,!1)};function y(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,r=typeof e=='string'?e.match(t):e.string.match(t);return r?r[0].replace(/^\s*/,''):''};w.block=function(r,t,i){if((r=='comment'&&P(t))||(r==','&&k(t))||r=='mixin'){return e(i,t,'block',0)};if(Z(r,t)){return e(i,t,'interpolation')};if(k(t)&&r==']'){if(!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!x(y(t))){return e(i,t,'block',0)}};if(Y(r,t)){return e(i,t,'block')};if(r=='}'&&k(t)){return e(i,t,'block',0)};if(r=='variable-name'){if(t.string.match(/^\s?\$[\w-\.\[\]'"]+$/)||B(y(t))){return e(i,t,'variableName')}
+else{return e(i,t,'variableName',0)}};if(r=='='){if(!k(t)&&!B(y(t))){return e(i,t,'block',0)};return e(i,t,'block')};if(r=='*'){if(k(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)){h='tag';return e(i,t,'block')}};if(F(r,t)){return e(i,t,'pseudo')};if(/@(font-face|media|supports|(-moz-)?document)/.test(r)){return e(i,t,k(t)?'block':'atBlock')};if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(r)){return e(i,t,'keyframes')};if(/@extends?/.test(r)){return e(i,t,'extend',0)};if(r&&r.charAt(0)=='@'){if(t.indentation()>0&&C(t.current().slice(1))){h='variable-2';return'block'};if(/(@import|@require|@charset)/.test(r)){return e(i,t,'block',0)};return e(i,t,'block')};if(r=='reference'&&k(t)){return e(i,t,'block')};if(r=='('){return e(i,t,'parens')};if(r=='vendor-prefixes'){return e(i,t,'vendorPrefixes')};if(r=='word'){var a=t.current();h=L(a);if(h=='property'){if(P(t)){return e(i,t,'block',0)}
+else{h='atom';return'block'}};if(h=='tag'){if(/embed|menu|pre|progress|sub|table/.test(a)){if(C(y(t))){h='atom';return'block'}};if(t.string.match(new RegExp('\\[\\s*'+a+'|'+a+'\\s*\\]'))){h='atom';return'block'};if(N.test(a)){if((P(t)&&t.string.match(/=/))||(!P(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!x(y(t)))){h='variable-2';if(B(y(t)))return'block';return e(i,t,'block',0)}};if(k(t))return e(i,t,'block')};if(h=='block-keyword'){h='keyword';if(t.current(/(if|unless)/)&&!P(t)){return'block'};return e(i,t,'block')};if(a=='return')return e(i,t,'block',0);if(h=='variable-2'&&t.string.match(/^\s?\$[\w-\.\[\]'"]+$/)){return e(i,t,'block')}};return i.context.type};w.parens=function(t,r,i){if(t=='(')return e(i,r,'parens');if(t==')'){if(i.context.prev.type=='parens'){return j(i)};if((r.string.match(/^[a-z][\w-]*\(/i)&&k(r))||B(y(r))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(y(r))||(!r.string.match(/^-?[a-z][\w-\.\[\]'"]*\s*=/)&&x(y(r)))){return e(i,r,'block')};if(r.string.match(/^[\$-]?[a-z][\w-\.\[\]'"]*\s*=/)||r.string.match(/^\s*(\(|\)|[0-9])/)||r.string.match(/^\s+[a-z][\w-]*\(/i)||r.string.match(/^\s+[\$-]?[a-z]/i)){return e(i,r,'block',0)};if(k(r))return e(i,r,'block');else return e(i,r,'block',0)};if(t&&t.charAt(0)=='@'&&C(r.current().slice(1))){h='variable-2'};if(t=='word'){var a=r.current();h=L(a);if(h=='tag'&&N.test(a)){h='variable-2'};if(h=='property'||a=='to')h='atom'};if(t=='variable-name'){return e(i,r,'variableName')};if(F(t,r)){return e(i,r,'pseudo')};return i.context.type};w.vendorPrefixes=function(t,r,i){if(t=='word'){h='property';return e(i,r,'block',0)};return j(i)};w.pseudo=function(t,r,i){if(!C(y(r.string))){r.match(/^[a-z-]+/);h='variable-3';if(k(r))return e(i,r,'block');return j(i)};return U(t,r,i)};w.atBlock=function(t,r,i){if(t=='(')return e(i,r,'atBlock_parens');if(Y(t,r)){return e(i,r,'block')};if(Z(t,r)){return e(i,r,'interpolation')};if(t=='word'){var a=r.current().toLowerCase();if(/^(only|not|and|or)$/.test(a))h='keyword';else if(re.hasOwnProperty(a))h='tag';else if(ne.hasOwnProperty(a))h='attribute';else if(ae.hasOwnProperty(a))h='property';else if(T.hasOwnProperty(a))h='string-2';else h=L(r.current());if(h=='tag'&&k(r)){return e(i,r,'block')}};if(t=='operator'&&/^(not|and|or)$/.test(r.current())){h='keyword'};return i.context.type};w.atBlock_parens=function(t,r,i){if(t=='{'||t=='}')return i.context.type;if(t==')'){if(k(r))return e(i,r,'block');else return e(i,r,'atBlock')};if(t=='word'){var a=r.current().toLowerCase();h=L(a);if(/^(max|min)/.test(a))h='property';if(h=='tag'){N.test(a)?h='variable-2':h='atom'};return i.context.type};return w.atBlock(t,r,i)};w.keyframes=function(t,r,i){if(r.indentation()=='0'&&((t=='}'&&P(r))||t==']'||t=='hash'||t=='qualifier'||x(r.current()))){return U(t,r,i)};if(t=='{')return e(i,r,'keyframes');if(t=='}'){if(P(r))return j(i,!0);else return e(i,r,'keyframes')};if(t=='unit'&&/^[0-9]+\%$/.test(r.current())){return e(i,r,'keyframes')};if(t=='word'){h=L(r.current());if(h=='block-keyword'){h='keyword';return e(i,r,'keyframes')}};if(/@(font-face|media|supports|(-moz-)?document)/.test(t)){return e(i,r,k(r)?'block':'atBlock')};if(t=='mixin'){return e(i,r,'block',0)};return i.context.type};w.interpolation=function(t,r,i){if(t=='{')j(i)&&e(i,r,'block');if(t=='}'){if(r.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||(r.string.match(/^\s*[a-z]/i)&&x(y(r)))){return e(i,r,'block')};if(!r.string.match(/^(\{|\s*\&)/)||r.match(/\s*[\w-]/,!1)){return e(i,r,'block',0)};return e(i,r,'block')};if(t=='variable-name'){return e(i,r,'variableName',0)};if(t=='word'){h=L(r.current());if(h=='tag')h='atom'};return i.context.type};w.extend=function(e,t,r){if(e=='['||e=='=')return'extend';if(e==']')return j(r);if(e=='word'){h=L(t.current());return'extend'};return j(r)};w.variableName=function(e,t,r){if(e=='string'||e=='['||e==']'||t.current().match(/^(\.|\$)/)){if(t.current().match(/^\.[\w-]+/i))h='variable-2';return'variableName'};return U(e,t,r)};return{startState:function(e){return{tokenize:null,state:'block',context:new S('block',e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;q=(t.tokenize||ue)(e,t);if(q&&typeof q=='object'){M=q[1];q=q[0]};h=q;t.state=w[t.state](M,e,t);return h},indent:function(e,t,r){var l=e.context,s=t&&t.charAt(0),n=l.indent,c=y(t),o=r.match(/^\s*/)[0].replace(/\t/g,E).length,i=e.context.prev?e.context.prev.line.firstWord:'',a=e.context.prev?e.context.prev.line.indent:o;if(l.prev&&(s=='}'&&(l.type=='block'||l.type=='atBlock'||l.type=='keyframes')||s==')'&&(l.type=='parens'||l.type=='atBlock_parens')||s=='{'&&(l.type=='at'))){n=l.indent-z}
+else if(!(/(\})/.test(s))){if(/@|\$|\d/.test(s)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(i)||/^\s*[\w-\.\[\]'"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||B(c)){n=o}
+else if(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(s)||x(c)){if(/\,\s*$/.test(i)){n=a}
+else if(/^\s+/.test(r)&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||x(i))){n=o<=a?a:a+z}
+else{n=o}}
+else if(!/,\s*$/.test(r)&&(X(c)||C(c))){if(B(i)){n=o<=a?a:a+z}
+else if(/^\{/.test(i)){n=o<=a?o:a+z}
+else if(X(i)||C(i)){n=o>=a?a:o}
+else if(/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(i)||/=\s*$/.test(i)||x(i)||/^\$[\w-\.\[\]'"]/.test(i)){n=a+z}
+else{n=o}}};return n},electricChars:'}',lineComment:'//',fold:'indent'}});var i=['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'],r=['domain','regexp','url','url-prefix'],a=['all','aural','braille','handheld','print','projection','screen','tty','tv','embossed'],n=['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'],o=['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','text-transform','text-underline-position','text-wrap','top','transform','transform-origin','transform-style','transition','transition-delay','transition-duration','transition-property','transition-timing-function','unicode-bidi','vertical-align','visibility','voice-balance','voice-duration','voice-family','voice-pitch','voice-range','voice-rate','voice-stress','voice-volume','volume','white-space','widows','width','will-change','word-break','word-spacing','word-wrap','z-index','clip-path','clip-rule','mask','enable-background','filter','flood-color','flood-opacity','lighting-color','stop-color','stop-opacity','pointer-events','color-interpolation','color-interpolation-filters','color-rendering','fill','fill-opacity','fill-rule','image-rendering','marker','marker-end','marker-mid','marker-start','shape-rendering','stroke','stroke-dasharray','stroke-dashoffset','stroke-linecap','stroke-linejoin','stroke-miterlimit','stroke-opacity','stroke-width','text-rendering','baseline-shift','dominant-baseline','glyph-orientation-horizontal','glyph-orientation-vertical','text-anchor','writing-mode','font-smoothing','osx-font-smoothing'],l=['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'],s=['font-family','src','unicode-range','font-variant','font-feature-settings','font-stretch','font-weight','font-style'],c=['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'],d=['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','slide','slider-horizontal','slider-vertical','sliderthumb-horizontal','sliderthumb-vertical','slow','small','small-caps','small-caption','smaller','solid','somali','source-atop','source-in','source-out','source-over','space','spell-out','square','square-button','start','static','status-bar','stretch','stroke','sub','subpixel-antialiased','super','sw-resize','symbolic','symbols','table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row','table-row-group','tamil','telugu','text','text-bottom','text-top','textarea','textfield','thai','thick','thin','threeddarkshadow','threedface','threedhighlight','threedlightshadow','threedshadow','tibetan','tigre','tigrinya-er','tigrinya-er-abegede','tigrinya-et','tigrinya-et-abegede','to','top','trad-chinese-formal','trad-chinese-informal','translate','translate3d','translateX','translateY','translateZ','transparent','ultra-condensed','ultra-expanded','underline','up','upper-alpha','upper-armenian','upper-greek','upper-hexadecimal','upper-latin','upper-norwegian','upper-roman','uppercase','urdu','url','var','vertical','vertical-text','visible','visibleFill','visiblePainted','visibleStroke','visual','w-resize','wait','wave','wider','window','windowframe','windowtext','words','x-large','x-small','xor','xx-large','xx-small','bicubic','optimizespeed','grayscale','row','row-reverse','wrap','wrap-reverse','column-reverse','flex-start','flex-end','space-between','space-around','unset'],u=['in','and','or','not','is not','is a','is','isnt','defined','if unless'],m=['for','if','else','unless','from','to'],p=['null','true','false','href','title','type','not-allowed','readonly','disabled'],h=['@font-face','@keyframes','@media','@viewport','@page','@host','@supports','@block','@css'],b=i.concat(r,a,n,o,l,c,d,s,u,m,p,h);function f(e){e=e.sort(function(e,t){return t>e});return new RegExp('^(('+e.join(')|(')+'))\\b')};function t(e){var r={};for(var t=0;t<e.length;++t)r[e[t]]=!0;return r};function g(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&')};e.registerHelper('hintWords','stylus',b);e.defineMIME('text/x-styl','stylus')});
+/* ./modules/editor/codemirror/mode/markdown/markdown.min.js */(function(t){if(typeof exports=='object'&&typeof module=='object')t(require('../../lib/codemirror'),require('../xml/xml'),require('../meta'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../xml/xml','../meta'],t);else t(CodeMirror)})(function(t){'use strict';t.defineMode('markdown',function(r,e){var o=t.getMode(r,'text/html'),E=o.name=='null';function w(e){if(t.findModeByName){var i=t.findModeByName(e);if(i)e=i.mime||i.mimes[0]};var n=t.getMode(r,e);return n.name=='null'?null:n};if(e.highlightFormatting===undefined)e.highlightFormatting=!1;if(e.maxBlockquoteDepth===undefined)e.maxBlockquoteDepth=0;if(e.taskLists===undefined)e.taskLists=!1;if(e.strikethrough===undefined)e.strikethrough=!1;if(e.emoji===undefined)e.emoji=!1;if(e.fencedCodeBlockHighlighting===undefined)e.fencedCodeBlockHighlighting=!0;if(e.xml===undefined)e.xml=!0;if(e.tokenTypeOverrides===undefined)e.tokenTypeOverrides={};var i={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'};for(var h in i){if(i.hasOwnProperty(h)&&e.tokenTypeOverrides[h]){i[h]=e.tokenTypeOverrides[h]}};var x=/^([*\-_])(?:\s*\1){2,}\s*$/,v=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,m=/^\[(x| )\](?=\s)/i,L=e.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,T=/^ *(?:\={1,}|-{1,})\s*$/,q=/^[^#!\[\]*_\\<>` "'(~:]+/,M=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,F=/^\s*\[[^\]]+?\]:\s*\S+(\s*\S*\s*)?$/,l=/[!"#$%&'()*+,\-\.\/:;<=>?@\[\\\]^_`{|}~—]/,b=' ';function g(t,e,i){e.f=e.inline=i;return i(t,e)};function d(t,e,i){e.f=e.block=i;return i(t,e)};function y(t){return!t||!/\S/.test(t.string)};function c(t){t.linkTitle=!1;t.em=!1;t.strong=!1;t.strikethrough=!1;t.quote=0;t.indentedCode=!1;if(t.f==s){t.f=a;t.block=f};t.trailingSpace=0;t.trailingSpaceNewLine=!1;t.prevLine=t.thisLine;t.thisLine={stream:null};return null};function f(a,r){var f=a.column()===r.indentation,u=y(r.prevLine.stream),c=r.indentedCode,k=r.prevLine.hr,d=r.list!==!1,o=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var h=r.indentation;if(r.indentationDiff===null){r.indentationDiff=r.indentation;if(d){r.list=null;while(h<r.listStack[r.listStack.length-1]){r.listStack.pop();if(r.listStack.length){r.indentation=r.listStack[r.listStack.length-1]}
+else{r.list=!1}};if(r.list!==!1){r.indentationDiff=h-r.listStack[r.listStack.length-1]}}};var S=(!u&&!k&&!r.prevLine.header&&(!d||!c)&&!r.prevLine.fencedCodeEnd),s=(r.list===!1||k||u)&&r.indentation<=o&&a.match(x),l=null;if(r.indentationDiff>=4&&(c||r.prevLine.fencedCodeEnd||r.prevLine.header||u)){a.skipToEnd();r.indentedCode=!0;return i.code}
+else if(a.eatSpace()){return null}
+else if(f&&r.indentation<=o&&(l=a.match(L))&&l[1].length<=6){r.quote=0;r.header=l[1].length;r.thisLine.header=!0;if(e.highlightFormatting)r.formatting='header';r.f=r.inline;return n(r)}
+else if(r.indentation<=o&&a.eat('>')){r.quote=f?1:r.quote+1;if(e.highlightFormatting)r.formatting='quote';a.eatSpace();return n(r)}
+else if(!s&&!r.setext&&f&&r.indentation<=o&&(l=a.match(v))){var p=l[1]?'ol':'ul';r.indentation=h+a.current().length;r.list=!0;r.quote=0;r.listStack.push(r.indentation);if(e.taskLists&&a.match(m,!1)){r.taskList=!0};r.f=r.inline;if(e.highlightFormatting)r.formatting=['list','list-'+p];return n(r)}
+else if(f&&r.indentation<=o&&(l=a.match(M,!0))){r.quote=0;r.fencedEndRE=new RegExp(l[1]+'+ *$');r.localMode=e.fencedCodeBlockHighlighting&&w(l[2]);if(r.localMode)r.localState=t.startState(r.localMode);r.f=r.block=j;if(e.highlightFormatting)r.formatting='code-block';r.code=-1;return n(r)}
+else if(r.setext||((!S||!d)&&!r.quote&&r.list===!1&&!r.code&&!s&&!F.test(a.string)&&(l=a.lookAhead(1))&&(l=l.match(T)))){if(!r.setext){r.header=l[0].charAt(0)=='='?1:2;r.setext=r.header}
+else{r.header=r.setext;r.setext=0;a.skipToEnd();if(e.highlightFormatting)r.formatting='header'};r.thisLine.header=!0;r.f=r.inline;return n(r)}
+else if(s){a.skipToEnd();r.hr=!0;r.thisLine.hr=!0;return i.hr}
+else if(a.peek()==='['){return g(a,r,H)};return g(a,r,r.inline)};function s(e,i){var r=o.token(e,i.htmlState);if(!E){var n=t.innerMode(o,i.htmlState);if((n.mode.name=='xml'&&n.state.tagStart===null&&(!n.state.context&&n.state.tokenize.isInText))||(i.md_inside&&e.current().indexOf('>')>-1)){i.f=a;i.block=f;i.htmlState=null}};return r};function j(r,t){var s=t.listStack[t.listStack.length-1]||0,l=t.indentation<s,h=s+3;if(t.fencedEndRE&&t.indentation<=h&&(l||r.match(t.fencedEndRE))){if(e.highlightFormatting)t.formatting='code-block';var o;if(!l)o=n(t);t.localMode=t.localState=null;t.block=f;t.f=a;t.fencedEndRE=null;t.code=0;t.thisLine.fencedCodeEnd=!0;if(l)return d(r,t,t.block);return o}
+else if(t.localMode){return t.localMode.token(r,t.localState)}
+else{r.skipToEnd();return i.code}};function n(t){var n=[];if(t.formatting){n.push(i.formatting);if(typeof t.formatting==='string')t.formatting=[t.formatting];for(var r=0;r<t.formatting.length;r++){n.push(i.formatting+'-'+t.formatting[r]);if(t.formatting[r]==='header'){n.push(i.formatting+'-'+t.formatting[r]+'-'+t.header)};if(t.formatting[r]==='quote'){if(!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote){n.push(i.formatting+'-'+t.formatting[r]+'-'+t.quote)}
+else{n.push('error')}}}};if(t.taskOpen){n.push('meta');return n.length?n.join(' '):null};if(t.taskClosed){n.push('property');return n.length?n.join(' '):null};if(t.linkHref){n.push(i.linkHref,'url')}
+else{if(t.strong){n.push(i.strong)};if(t.em){n.push(i.em)};if(t.strikethrough){n.push(i.strikethrough)};if(t.emoji){n.push(i.emoji)};if(t.linkText){n.push(i.linkText)};if(t.code){n.push(i.code)};if(t.image){n.push(i.image)};if(t.imageAltText){n.push(i.imageAltText,'link')};if(t.imageMarker){n.push(i.imageMarker)}};if(t.header){n.push(i.header,i.header+'-'+t.header)};if(t.quote){n.push(i.quote);if(!e.maxBlockquoteDepth||e.maxBlockquoteDepth>=t.quote){n.push(i.quote+'-'+t.quote)}
+else{n.push(i.quote+'-'+e.maxBlockquoteDepth)}};if(t.list!==!1){var a=(t.listStack.length-1)%3;if(!a){n.push(i.list1)}
+else if(a===1){n.push(i.list2)}
+else{n.push(i.list3)}};if(t.trailingSpaceNewLine){n.push('trailing-space-new-line')}
+else if(t.trailingSpace){n.push('trailing-space-'+(t.trailingSpace%2?'a':'b'))};return n.length?n.join(' '):null};function C(t,e){if(t.match(q,!0)){return n(e)};return undefined};function a(f,r){var w=r.text(f,r);if(typeof w!=='undefined')return w;if(r.list){r.list=null;return n(r)};if(r.taskList){var H=f.match(m,!0)[1]===' ';if(H)r.taskOpen=!0;else r.taskClosed=!0;if(e.highlightFormatting)r.formatting='task';r.taskList=!1;return n(r)};r.taskOpen=!1;r.taskClosed=!1;if(r.header&&f.match(/^#+$/,!0)){if(e.highlightFormatting)r.formatting='header';return n(r)};var h=f.next();if(r.linkTitle){r.linkTitle=!1;var L=h;if(h==='('){L=')'};L=(L+'').replace(/([.?*+^\[\]\\(){}|-])/g,'\\$1');var B='^\\s*(?:[^'+L+'\\\\]+|\\\\\\\\|\\\\.)'+L;if(f.match(new RegExp(B),!0)){return i.linkHref}};if(h==='`'){var C=r.formatting;if(e.highlightFormatting)r.formatting='code';f.eatWhile('`');var F=f.current().length;if(r.code==0&&(!r.quote||F==1)){r.code=F;return n(r)}
+else if(F==r.code){var v=n(r);r.code=0;return v}
+else{r.formatting=C;return n(r)}}
+else if(r.code){return n(r)};if(h==='\\'){f.next();if(e.highlightFormatting){var g=n(r),E=i.formatting+'-escape';return g?g+' '+E:E}};if(h==='!'&&f.match(/\[[^\]]*\] ?(?:\(|\[)/,!1)){r.imageMarker=!0;r.image=!0;if(e.highlightFormatting)r.formatting='image';return n(r)};if(h==='['&&r.imageMarker&&f.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1)){r.imageMarker=!1;r.imageAltText=!0;if(e.highlightFormatting)r.formatting='image';return n(r)};if(h===']'&&r.imageAltText){if(e.highlightFormatting)r.formatting='image';var g=n(r);r.imageAltText=!1;r.image=!1;r.inline=r.f=p;return g};if(h==='['&&!r.image){r.linkText=!0;if(e.highlightFormatting)r.formatting='link';return n(r)};if(h===']'&&r.linkText){if(e.highlightFormatting)r.formatting='link';var g=n(r);r.linkText=!1;r.inline=r.f=f.match(/\(.*?\)| ?\[.*?\]/,!1)?p:a;return g};if(h==='<'&&f.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=k;if(e.highlightFormatting)r.formatting='link';var g=n(r);if(g){g+=' '}
+else{g=''};return g+i.linkInline};if(h==='<'&&f.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=k;if(e.highlightFormatting)r.formatting='link';var g=n(r);if(g){g+=' '}
+else{g=''};return g+i.linkEmail};if(e.xml&&h==='<'&&f.match(/^(!--|[a-z]+(?:\s+[a-z_:.\-]+(?:\s*=\s*[^ >]+)?)*\s*>)/i,!1)){var b=f.string.indexOf('>',f.pos);if(b!=-1){var j=f.string.substring(f.start,b);if(/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(j))r.md_inside=!0};f.backUp(1);r.htmlState=t.startState(o);return d(f,r,s)};if(e.xml&&h==='<'&&f.match(/^\/\w*?>/)){r.md_inside=!1;return'tag'}
+else if(h==='*'||h==='_'){var M=1,x=f.pos==1?' ':f.string.charAt(f.pos-2);while(M<3&&f.eat(h))M++;var u=f.peek()||' ',T=!/\s/.test(u)&&(!l.test(u)||/\s/.test(x)||l.test(x)),q=!/\s/.test(x)&&(!l.test(x)||/\s/.test(u)||l.test(u)),c=null,S=null;if(M%2){if(!r.em&&T&&(h==='*'||!q||l.test(x)))c=!0;else if(r.em==h&&q&&(h==='*'||!T||l.test(u)))c=!1};if(M>1){if(!r.strong&&T&&(h==='*'||!q||l.test(x)))S=!0;else if(r.strong==h&&q&&(h==='*'||!T||l.test(u)))S=!1};if(S!=null||c!=null){if(e.highlightFormatting)r.formatting=c==null?'strong':S==null?'em':'strong em';if(c===!0)r.em=h;if(S===!0)r.strong=h;var v=n(r);if(c===!1)r.em=!1;if(S===!1)r.strong=!1;return v}}
+else if(h===' '){if(f.eat('*')||f.eat('_')){if(f.peek()===' '){return n(r)}
+else{f.backUp(1)}}};if(e.strikethrough){if(h==='~'&&f.eatWhile(h)){if(r.strikethrough){if(e.highlightFormatting)r.formatting='strikethrough';var v=n(r);r.strikethrough=!1;return v}
+else if(f.match(/^[^\s]/,!1)){r.strikethrough=!0;if(e.highlightFormatting)r.formatting='strikethrough';return n(r)}}
+else if(h===' '){if(f.match(/^~~/,!0)){if(f.peek()===' '){return n(r)}
+else{f.backUp(2)}}}};if(e.emoji&&h===':'&&f.match(/^[a-z_\d+-]+:/)){r.emoji=!0;if(e.highlightFormatting)r.formatting='emoji';var y=n(r);r.emoji=!1;return y};if(h===' '){if(f.match(/ +$/,!1)){r.trailingSpace++}
+else if(r.trailingSpace){r.trailingSpaceNewLine=!0}};return n(r)};function k(t,r){var o=t.next();if(o==='>'){r.f=r.inline=a;if(e.highlightFormatting)r.formatting='link';var l=n(r);if(l){l+=' '}
+else{l=''};return l+i.linkInline};t.match(/^[^>]+/,!0);return i.linkInline};function p(t,i){if(t.eatSpace()){return null};var r=t.next();if(r==='('||r==='['){i.f=i.inline=B(r==='('?')':']');if(e.highlightFormatting)i.formatting='link-string';i.linkHref=!0;return n(i)};return'error'};var S={')':/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,']':/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function B(t){return function(i,r){var o=i.next();if(o===t){r.f=r.inline=a;if(e.highlightFormatting)r.formatting='link-string';var l=n(r);r.linkHref=!1;return l};i.match(S[t]);r.linkHref=!0;return n(r)}};function H(t,i){if(t.match(/^([^\]\\]|\\.)*\]:/,!1)){i.f=D;t.next();if(e.highlightFormatting)i.formatting='link';i.linkText=!0;return n(i)};return g(t,i,a)};function D(t,r){if(t.match(/^\]:/,!0)){r.f=r.inline=A;if(e.highlightFormatting)r.formatting='link';var a=n(r);r.linkText=!1;return a};t.match(/^([^\]\\]|\\.)+/,!0);return i.linkText};function A(t,e){if(t.eatSpace()){return null};t.match(/^[^\s]+/,!0);if(t.peek()===undefined){e.linkTitle=!0}
+else{t.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0)};e.f=e.inline=a;return i.linkHref+' url'};var u={startState:function(){return{f:f,prevLine:{stream:null},thisLine:{stream:null},block:f,htmlState:null,indentation:0,inline:a,text:C,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(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(o,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){t.formatting=!1;if(e!=t.thisLine.stream){t.header=0;t.hr=!1;if(e.match(/^\s*$/,!0)){c(t);return null};t.prevLine=t.thisLine;t.thisLine={stream:e};t.taskList=!1;t.trailingSpace=0;t.trailingSpaceNewLine=!1;if(!t.localState){t.f=t.block;if(t.f!=s){var i=e.match(/^\s*/,!0)[0].replace(/\t/g,b).length;t.indentation=i;t.indentationDiff=null;if(i>0)return null}}};return t.f(e,t)},innerMode:function(t){if(t.block==s)return{state:t.htmlState,mode:o};if(t.localState)return{state:t.localState,mode:t.localMode};return{state:t,mode:u}},indent:function(e,i,n){if(e.block==s&&o.indent)return o.indent(e.htmlState,i,n);if(e.localState&&e.localMode.indent)return e.localMode.indent(e.localState,i,n);return t.Pass},blankLine:c,getType:n,closeBrackets:'()[]{}\'\'""``',fold:'markdown'};return u},'xml');t.defineMIME('text/x-markdown','markdown')});
+/* ./modules/editor/codemirror/mode/jsx/jsx.min.js */(function(t){if(typeof exports=='object'&&typeof module=='object')t(require('../../lib/codemirror'),require('../xml/xml'),require('../javascript/javascript'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../xml/xml','../javascript/javascript'],t);else t(CodeMirror)})(function(t){'use strict';function e(t,e,n,i){this.state=t;this.mode=e;this.depth=n;this.prev=i};function n(i){return new e(t.copyState(i.mode,i.state),i.mode,i.depth,i.prev&&n(i.prev))};t.defineMode('jsx',function(i,s){var r=t.getMode(i,{name:'xml',allowMissing:!0,multilineTagIndentPastTag:!1});var a=t.getMode(i,s&&s.base||'javascript');function o(t){var n=t.tagName;t.tagName=null;var e=r.indent(t,'');t.tagName=n;return e};function c(t,e){if(e.context.mode==r)return f(t,e,e.context);else return p(t,e,e.context)};function f(n,f,s){if(s.depth==2){if(n.match(/^.*?\*\//))s.depth=1;else n.skipToEnd();return'comment'};if(n.peek()=='{'){r.skipAttribute(s.state);var d=o(s.state),p=s.state.context;if(p&&n.match(/^[^>]*>\s*$/,!1)){while(p.prev&&!p.startOfLine)p=p.prev;if(p.startOfLine)d-=i.indentUnit;else if(s.prev.state.lexical)d=s.prev.state.lexical.indented}
+else if(s.depth==1){d+=i.indentUnit};f.context=new e(t.startState(a,d),a,0,f.context);return null};if(s.depth==1){if(n.peek()=='<'){r.skipAttribute(s.state);f.context=new e(t.startState(r,o(s.state)),r,0,f.context);return null}
+else if(n.match('//')){n.skipToEnd();return'comment'}
+else if(n.match('/*')){s.depth=2;return c(n,f)}};var l=r.token(n,s.state),u=n.current(),x;if(/\btag\b/.test(l)){if(/>$/.test(u)){if(s.state.context)s.depth=0;else f.context=f.context.prev}
+else if(/^</.test(u)){s.depth=1}}
+else if(!l&&(x=u.indexOf('{'))>-1){n.backUp(u.length-x)};return l};function p(n,s,i){if(n.peek()=='<'&&a.expressionAllowed(n,i.state)){a.skipExpression(i.state);s.context=new e(t.startState(r,a.indent(i.state,'')),r,0,s.context);return null};var c=a.token(n,i.state);if(!c&&i.depth!=null){var o=n.current();if(o=='{'){i.depth++}
+else if(o=='}'){if(--i.depth==0)s.context=s.context.prev}};return c};return{startState:function(){return{context:new e(t.startState(a),a)}},copyState:function(t){return{context:n(t.context)}},token:c,indent:function(t,e,n){return t.context.mode.indent(t.context.state,e,n)},innerMode:function(t){return t.context}}},'xml','javascript');t.defineMIME('text/jsx','jsx');t.defineMIME('text/typescript-jsx',{name:'jsx',base:{name:'javascript',typescript:!0}})});
+/* ./modules/editor/codemirror/mode/velocity/velocity.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('velocity',function(){function r(e){var n={},r=e.split(' ');for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};var i=r('#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}'),e=r('#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}'),a=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'),o=/[+\-*&%=<>!?:\/|]/;function t(e,t,n){t.tokenize=n;return n(e,t)};function n(r,n){var k=n.beforeParams;n.beforeParams=!1;var f=r.next();if((f=='\'')&&!n.inString&&n.inParams){n.lastTokenWasBuiltin=!1;return t(r,n,l(f))}
+else if((f=='"')){n.lastTokenWasBuiltin=!1;if(n.inString){n.inString=!1;return'string'}
+else if(n.inParams)return t(r,n,l(f))}
+else if(/[\[\]{}\(\),;\.]/.test(f)){if(f=='('&&k)n.inParams=!0;else if(f==')'){n.inParams=!1;n.lastTokenWasBuiltin=!0};return null}
+else if(/\d/.test(f)){n.lastTokenWasBuiltin=!1;r.eatWhile(/[\w\.]/);return'number'}
+else if(f=='#'&&r.eat('*')){n.lastTokenWasBuiltin=!1;return t(r,n,s)}
+else if(f=='#'&&r.match(/ *\[ *\[/)){n.lastTokenWasBuiltin=!1;return t(r,n,u)}
+else if(f=='#'&&r.eat('#')){n.lastTokenWasBuiltin=!1;r.skipToEnd();return'comment'}
+else if(f=='$'){r.eatWhile(/[\w\d\$_\.{}]/);if(a&&a.propertyIsEnumerable(r.current())){return'keyword'}
+else{n.lastTokenWasBuiltin=!0;n.beforeParams=!0;return'builtin'}}
+else if(o.test(f)){n.lastTokenWasBuiltin=!1;r.eatWhile(o);return'operator'}
+else{r.eatWhile(/[\w\$_{}@]/);var c=r.current();if(i&&i.propertyIsEnumerable(c))return'keyword';if(e&&e.propertyIsEnumerable(c)||(r.current().match(/^#@?[a-z0-9_]+ *$/i)&&r.peek()=='(')&&!(e&&e.propertyIsEnumerable(c.toLowerCase()))){n.beforeParams=!0;n.lastTokenWasBuiltin=!1;return'keyword'};if(n.inString){n.lastTokenWasBuiltin=!1;return'string'};if(r.pos>c.length&&r.string.charAt(r.pos-c.length-1)=='.'&&n.lastTokenWasBuiltin)return'builtin';n.lastTokenWasBuiltin=!1;return null}};function l(e){return function(t,r){var i=!1,a,o=!1;while((a=t.next())!=null){if((a==e)&&!i){o=!0;break};if(e=='"'&&t.peek()=='$'&&!i){r.inString=!0;o=!0;break};i=!i&&a=='\\'};if(o)r.tokenize=n;return'string'}};function s(e,t){var i=!1,r;while(r=e.next()){if(r=='#'&&i){t.tokenize=n;break};i=(r=='*')};return'comment'};function u(e,t){var i=0,r;while(r=e.next()){if(r=='#'&&i==2){t.tokenize=n;break};if(r==']')i++;else if(r!=' ')i=0};return'meta'};return{startState:function(){return{tokenize:n,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},blockCommentStart:'#*',blockCommentEnd:'*#',lineComment:'##',fold:'velocity'}});e.defineMIME('text/velocity','velocity')});
+/* ./modules/editor/codemirror/mode/fortran/fortran.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('fortran',function(){function e(e){var n={};for(var t=0;t<e.length;++t){n[e[t]]=!0};return n};var n=e(['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']),i=e(['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']),r=e(['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']),t=/[+\-*&=<>\/\:]/,a=new RegExp('(\.and\.|\.or\.|\.eq\.|\.lt\.|\.le\.|\.gt\.|\.ge\.|\.ne\.|\.not\.|\.eqv\.|\.neqv\.)','i');function o(e,l){if(e.match(a)){return'operator'};var o=e.next();if(o=='!'){e.skipToEnd();return'comment'};if(o=='"'||o=='\''){l.tokenize=c(o);return l.tokenize(e,l)};if(/[\[\]\(\),]/.test(o)){return null};if(/\d/.test(o)){e.eatWhile(/[\w\.]/);return'number'};if(t.test(o)){e.eatWhile(t);return'operator'};e.eatWhile(/[\w\$_]/);var s=e.current().toLowerCase();if(n.hasOwnProperty(s)){return'keyword'};if(i.hasOwnProperty(s)||r.hasOwnProperty(s)){return'builtin'};return'variable'};function c(e){return function(t,i){var n=!1,r,a=!1;while((r=t.next())!=null){if(r==e&&!n){a=!0;break};n=!n&&r=='\\'};if(a||!n)i.tokenize=null;return'string'}};return{startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||o)(e,t);if(n=='comment'||n=='meta')return n;return n}}});e.defineMIME('text/x-fortran','fortran')});
+/* ./modules/editor/codemirror/mode/mirc/mirc.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMIME('text/mirc','mirc');e.defineMode('mirc',function(){function e(e){var r={},t=e.split(' ');for(var i=0;i<t.length;++i)r[t[i]]=!0;return r};var r=e('$! $$ $& $? $+ $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'),t=e('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'),n=e('if elseif else and not or eq ne in ni for foreach while switch'),o=/[+\-*&%=<>!?^\/\|]/;function a(e,i,r){i.tokenize=r;return r(e,i)};function i(e,i){var m=i.beforeParams;i.beforeParams=!1;var c=e.next();if(/[\[\]{}\(\),\.]/.test(c)){if(c=='('&&m)i.inParams=!0;else if(c==')')i.inParams=!1;return null}
+else if(/\d/.test(c)){e.eatWhile(/[\w\.]/);return'number'}
+else if(c=='\\'){e.eat('\\');e.eat(/./);return'number'}
+else if(c=='/'&&e.eat('*')){return a(e,i,s)}
+else if(c==';'&&e.match(/ *\( *\(/)){return a(e,i,l)}
+else if(c==';'&&!i.inParams){e.skipToEnd();return'comment'}
+else if(c=='"'){e.eat(/"/);return'keyword'}
+else if(c=='$'){e.eatWhile(/[$_a-z0-9A-Z\.:]/);if(r&&r.propertyIsEnumerable(e.current().toLowerCase())){return'keyword'}
+else{i.beforeParams=!0;return'builtin'}}
+else if(c=='%'){e.eatWhile(/[^,\s()]/);i.beforeParams=!0;return'string'}
+else if(o.test(c)){e.eatWhile(o);return'operator'}
+else{e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();if(t&&t.propertyIsEnumerable(d))return'keyword';if(n&&n.propertyIsEnumerable(d)){i.beforeParams=!0;return'keyword'};return null}};function s(e,r){var n=!1,t;while(t=e.next()){if(t=='/'&&n){r.tokenize=i;break};n=(t=='*')};return'comment'};function l(e,r){var n=0,t;while(t=e.next()){if(t==';'&&n==2){r.tokenize=i;break};if(t==')')n++;else if(t!=' ')n=0};return'meta'};return{startState:function(){return{tokenize:i,beforeParams:!1,inParams:!1}},token:function(e,i){if(e.eatSpace())return null;return i.tokenize(e,i)}}})});
+/* ./modules/editor/codemirror/mode/xquery/xquery.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('xquery',function(){var a=function(){function o(e){return{type:e,style:'keyword'}};var u=o('operator'),c={type:'atom',style:'atom'},l={type:'punctuation',style:null},f={type:'axis_specifier',style:'qualifier'};var n={',':l};var r=['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'];for(var e=0,t=r.length;e<t;e++){n[r[e]]=o(r[e])};var s=['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'];for(var e=0,t=s.length;e<t;e++){n[s[e]]=c};var a=['eq','ne','lt','le','gt','ge',':=','=','>','>=','<','<=','.','|','?','and','or','div','idiv','mod','*','/','+','-'];for(var e=0,t=a.length;e<t;e++){n[a[e]]=u};var i=['self::','attribute::','child::','descendant::','descendant-or-self::','parent::','ancestor::','ancestor-or-self::','following::','preceding::','following-sibling::','preceding-sibling::'];for(var e=0,t=i.length;e<t;e++){n[i[e]]=f};return n}();function r(e,t,n){t.tokenize=n;return n(e,t)};function t(t,i){var s=t.next(),w=!1,v=y(t);if(s=='<'){if(t.match('!--',!0))return r(t,i,d);if(t.match('![CDATA',!1)){i.tokenize=p;return'tag'};if(t.match('?',!1)){return r(t,i,x)};var I=t.eat('/');t.eatSpace();var k='',b;while((b=t.eat(/[^\s\u00a0=<>"'\/?]/)))k+=b;return r(t,i,m(k,I))}
+else if(s=='{'){n(i,{type:'codeblock'});return null}
+else if(s=='}'){e(i);return null}
+else if(c(i)){if(s=='>')return'tag';else if(s=='/'&&t.eat('>')){e(i);return'tag'}
+else return'variable'}
+else if(/\d/.test(s)){t.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);return'atom'}
+else if(s==='('&&t.eat(':')){n(i,{type:'comment'});return r(t,i,l)}
+else if(!v&&(s==='"'||s==='\''))return r(t,i,o(s));else if(s==='$'){return r(t,i,f)}
+else if(s===':'&&t.eat('=')){return'keyword'}
+else if(s==='('){n(i,{type:'paren'});return null}
+else if(s===')'){e(i);return null}
+else if(s==='['){n(i,{type:'bracket'});return null}
+else if(s===']'){e(i);return null}
+else{var u=a.propertyIsEnumerable(s)&&a[s];if(v&&s==='"')while(t.next()!=='"'){};if(v&&s==='\'')while(t.next()!=='\''){};if(!u)t.eatWhile(/[\w\$_-]/);var z=t.eat(':');if(!t.eat(':')&&z){t.eatWhile(/[\w\$_-]/)};if(t.match(/^[ \t]*\(/,!1)){w=!0};var h=t.current();u=a.propertyIsEnumerable(h)&&a[h];if(w&&!u)u={type:'function_call',style:'variable def'};if(g(i)){e(i);return'variable'};if(h=='element'||h=='attribute'||u.type=='axis_specifier')n(i,{type:'xmlconstructor'});return u?u.style:'variable'}};function l(t,n){var a=!1,s=!1,i=0,r;while(r=t.next()){if(r==')'&&a){if(i>0)i--;else{e(n);break}}
+else if(r==':'&&s){i++};a=(r==':');s=(r=='(')};return'comment'};function o(r,a){return function(s,u){var c;if(h(u)&&s.current()==r){e(u);if(a)u.tokenize=a;return'string'};n(u,{type:'string',name:r,tokenize:o(r,a)});if(s.match('{',!1)&&i(u)){u.tokenize=t;return'string'}
+while(c=s.next()){if(c==r){e(u);if(a)u.tokenize=a;break}
+else{if(s.match('{',!1)&&i(u)){u.tokenize=t;return'string'}}};return'string'}};function f(e,n){var r=/[\w\$_-]/;if(e.eat('"')){while(e.next()!=='"'){};e.eat(':')}
+else{e.eatWhile(r);if(!e.match(':=',!1))e.eat(':')};e.eatWhile(r);n.tokenize=t;return'variable'};function m(r,i){return function(a,s){a.eatSpace();if(i&&a.eat('>')){e(s);s.tokenize=t;return'tag'};if(!a.eat('/'))n(s,{type:'tag',name:r,tokenize:t});if(!a.eat('>')){s.tokenize=u;return'tag'}
+else{s.tokenize=t};return'tag'}};function u(a,s){var l=a.next();if(l=='/'&&a.eat('>')){if(i(s))e(s);if(c(s))e(s);return'tag'};if(l=='>'){if(i(s))e(s);return'tag'};if(l=='=')return null;if(l=='"'||l=='\'')return r(a,s,o(l,u));if(!i(s))n(s,{type:'attribute',tokenize:u});a.eat(/[a-zA-Z_:]/);a.eatWhile(/[-a-zA-Z0-9_:.]/);a.eatSpace();if(a.match('>',!1)||a.match('/',!1)){e(s);s.tokenize=t};return'attribute'};function d(e,n){var r;while(r=e.next()){if(r=='-'&&e.match('->',!0)){n.tokenize=t;return'comment'}}};function p(e,n){var r;while(r=e.next()){if(r==']'&&e.match(']',!0)){n.tokenize=t;return'comment'}}};function x(e,n){var r;while(r=e.next()){if(r=='?'&&e.match('>',!0)){n.tokenize=t;return'comment meta'}}};function c(e){return s(e,'tag')};function i(e){return s(e,'attribute')};function g(e){return s(e,'xmlconstructor')};function h(e){return s(e,'string')};function y(e){if(e.current()==='"')return e.match(/^[^"]+"\:/,!1);else if(e.current()==='\'')return e.match(/^[^"]+'\:/,!1);else return!1};function s(e,t){return(e.stack.length&&e.stack[e.stack.length-1].type==t)};function n(e,t){e.stack.push(t)};function e(e){e.stack.pop();var n=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=n||t};return{startState:function(){return{tokenize:t,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},blockCommentStart:'(:',blockCommentEnd:':)'}});e.defineMIME('application/xquery','xquery')});
+/* ./modules/editor/codemirror/mode/elm/elm.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('elm',function(){function n(e,t,r){t(r);return r(e,t)};var l=/[a-z_]/,c=/[A-Z]/,t=/[0-9]/,s=/[0-9A-Fa-f]/,m=/[0-7]/,f=/[a-z_A-Z0-9']/,r=/[-!#$%&*+.\/<=>?@\\^|~:\u03BB\u2192]/,h=/[(),;[\]`{}]/,u=/[ \t\v\f]/;function e(){return function(e,v){if(e.eatWhile(u)){return null};var i=e.next();if(h.test(i)){if(i=='{'&&e.eat('-')){var p='comment';if(e.eat('#'))p='meta';return n(e,v,a(p,1))};return null};if(i=='\''){if(e.eat('\\'))e.next();else e.next();if(e.eat('\''))return'string';return'error'};if(i=='"'){return n(e,v,o)};if(c.test(i)){e.eatWhile(f);if(e.eat('.'))return'qualifier';return'variable-2'};if(l.test(i)){var x=e.pos===1;e.eatWhile(f);return x?'type':'variable'};if(t.test(i)){if(i=='0'){if(e.eat(/[xX]/)){e.eatWhile(s);return'integer'};if(e.eat(/[oO]/)){e.eatWhile(m);return'number'}};e.eatWhile(t);var p='number';if(e.eat('.')){p='number';e.eatWhile(t)};if(e.eat(/[eE]/)){p='number';e.eat(/[-+]/);e.eatWhile(t)};return p};if(r.test(i)){if(i=='-'&&e.eat(/-/)){e.eatWhile(/-/);if(!e.eat(r)){e.skipToEnd();return'comment'}};e.eatWhile(r);return'builtin'};return'error'}};function a(t,r){if(r==0){return e()};return function(n,i){var f=r;while(!n.eol()){var u=n.next();if(u=='{'&&n.eat('-')){++f}
+else if(u=='-'&&n.eat('}')){--f;if(f==0){i(e());return t}}};i(a(t,f));return t}};function o(t,r){while(!t.eol()){var n=t.next();if(n=='"'){r(e());return'string'};if(n=='\\'){if(t.eol()||t.eat(u)){r(v);return'string'};if(!t.eat('&'))t.next()}};r(e());return'error'};function v(t,r){if(t.eat('\\')){return n(t,r,o)};t.next();r(e());return'error'};var i=(function(){var r={};var t=['case','of','as','if','then','else','let','in','infix','infixl','infixr','type','alias','input','output','foreign','loopback','module','where','import','exposing','_','..','|',':','=','\\','"','->','<-'];for(var e=t.length;e--;)r[t[e]]='keyword';return r})();return{startState:function(){return{f:e()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,function(e){t.f=e}),r=e.current();return(i.hasOwnProperty(r))?i[r]:n}}});e.defineMIME('text/x-elm','elm')});
+/* ./modules/editor/codemirror/mode/vhdl/vhdl.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";function t(e){var r={},n=e.split(",");for(var t=0;t<n.length;++t){var i=n[t].toUpperCase(),o=n[t].charAt(0).toUpperCase()+n[t].slice(1);r[n[t]]=!0;r[i]=!0;r[o]=!0};return r};function n(e){e.eatWhile(/[\w\$_]/);return"meta"};e.defineMode("vhdl",function(e,i){var u=e.indentUnit,h=i.atoms||t("null"),f=i.hooks||{"`":n,"$":n},c=i.multiLineStrings;var p=t("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"),m=t("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),s=/[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/,r;function a(e,t){var n=e.next();if(f[n]){var o=f[n](e,t);if(o!==!1)return o};if(n=="\""){t.tokenize=b(n);return t.tokenize(e,t)};if(n=="'"){t.tokenize=y(n);return t.tokenize(e,t)};if(/[\[\]{}\(\),;\:\.]/.test(n)){r=n;return null};if(/[\d']/.test(n)){e.eatWhile(/[\w\.']/);return"number"};if(n=="-"){if(e.eat("-")){e.skipToEnd();return"comment"}};if(s.test(n)){e.eatWhile(s);return"operator"};e.eatWhile(/[\w\$_]/);var i=e.current();if(p.propertyIsEnumerable(i.toLowerCase())){if(m.propertyIsEnumerable(i))r="newstatement";return"keyword"};if(h.propertyIsEnumerable(i))return"atom";return"variable"};function y(e){return function(t,n){var r=!1,i,o=!1;while((i=t.next())!=null){if(i==e&&!r){o=!0;break};r=!r&&i=="--"};if(o||!(r||c))n.tokenize=a;return"string"}};function b(e){return function(t,n){var r=!1,i,o=!1;while((i=t.next())!=null){if(i==e&&!r){o=!0;break};r=!r&&i=="--"};if(o||!(r||c))n.tokenize=a;return"string-2"}};function d(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i};function l(e,t,n){return e.context=new d(e.indented,t,n,null,e.context)};function o(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev};return{startState:function(e){return{tokenize:null,context:new d((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=!1;t.indented=e.indentation();t.startOfLine=!0};if(e.eatSpace())return null;r=null;var i=(t.tokenize||a)(e,t);if(i=="comment"||i=="meta")return i;if(n.align==null)n.align=!0;if((r==";"||r==":")&&n.type=="statement")o(t);else if(r=="{")l(t,e.column(),"}");else if(r=="[")l(t,e.column(),"]");else if(r=="(")l(t,e.column(),")");else if(r=="}"){while(n.type=="statement")n=o(t);if(n.type=="}")n=o(t);while(n.type=="statement")n=o(t)}
+else if(r==n.type)o(t);else if(n.type=="}"||n.type=="top"||(n.type=="statement"&&r=="newstatement"))l(t,e.column(),"statement");t.startOfLine=!1;return i},indent:function(e,t){if(e.tokenize!=a&&e.tokenize!=null)return 0;var r=t&&t.charAt(0),n=e.context,i=r==n.type;if(n.type=="statement")return n.indented+(r=="{"?0:u);else if(n.align)return n.column+(i?0:1);else return n.indented+(i?0:u)},electricChars:"{}"}});e.defineMIME("text/x-vhdl","vhdl")});
+/* ./modules/editor/codemirror/mode/verilog/verilog.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("verilog",function(t,n){var f=t.indentUnit,p=n.statementIndentUnit||f,q=n.dontAlignCalls,v=n.noIndentKeywords||[],L=n.multiLineStrings,a=n.hooks||{};function d(e){var n={},i=e.split(" ");for(var t=0;t<i.length;++t)n[i[t]]=!0;return n};var w=d("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"),x=/[\+\-\*\/!~&|^%=?:]/,I=/[\[\]{}()]/,C=/\d[0-9_]*/,z=/\d*\s*'s?d\s*\d[0-9_]*/i,S=/\d*\s*'s?b\s*[xz01][xz01_]*/i,j=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,E=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,m=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,M=/^((\w+)|[)}\]])/,A=/[)}\]]/,r,l,B=d("case checker class clocking config function generate interface module package primitive program property specify sequence table task"),i={};for(var s in B){i[s]="end"+s};i["begin"]="end";i["casex"]="endcase";i["casez"]="endcase";i["do"]="while";i["fork"]="join;join_any;join_none";i["covergroup"]="endgroup";for(var b in v){var s=v[b];if(i[s]){i[s]=undefined}};var k=d("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");function c(e,t){var n=e.peek(),s;if(a[n]&&(s=a[n](e,t))!=!1)return s;if(a.tokenBase&&(s=a.tokenBase(e,t))!=!1)return s;if(/[,;:\.]/.test(n)){r=e.next();return null};if(I.test(n)){r=e.next();return"bracket"};if(n=="`"){e.next();if(e.eatWhile(/[\w\$_]/)){return"def"}
+else{return null}};if(n=="$"){e.next();if(e.eatWhile(/[\w\$_]/)){return"meta"}
+else{return null}};if(n=="#"){e.next();e.eatWhile(/[\d_.]/);return"def"};if(n=="\""){e.next();t.tokenize=T(n);return t.tokenize(e,t)};if(n=="/"){e.next();if(e.eat("*")){t.tokenize=h;return h(e,t)};if(e.eat("/")){e.skipToEnd();return"comment"};e.backUp(1)};if(e.match(m)||e.match(z)||e.match(S)||e.match(j)||e.match(E)||e.match(C)||e.match(m)){return"number"};if(e.eatWhile(x)){return"meta"};if(e.eatWhile(/[\w\$_]/)){var o=e.current();if(w[o]){if(i[o]){r="newblock"};if(k[o]){r="newstatement"};l=o;return"keyword"};return"variable"};e.next();return null};function T(e){return function(t,n){var i=!1,r,a=!1;while((r=t.next())!=null){if(r==e&&!i){a=!0;break};i=!i&&r=="\\"};if(a||!(i||L))n.tokenize=c;return"string"}};function h(e,t){var i=!1,n;while(n=e.next()){if(n=="/"&&i){t.tokenize=c;break};i=(n=="*")};return"comment"};function g(e,t,n,i,r){this.indented=e;this.column=t;this.type=n;this.align=i;this.prev=r};function o(e,t,n){var i=e.indented,r=new g(i,t,n,null,e.context);return e.context=r};function u(e){var t=e.context.type;if(t==")"||t=="]"||t=="}"){e.indented=e.context.indented};return e.context=e.context.prev};function y(e,t){if(e==t){return!0}
+else{var n=t.split(";");for(var i in n){if(e==n[i]){return!0}};return!1}};function W(){var n=[];for(var t in i){if(i[t]){var e=i[t].split(";");for(var a in e){n.push(e[a])}}};var r=new RegExp("[{}()\\[\\]]|("+n.join("|")+")$");return r};return{electricInput:W(),startState:function(e){var t={tokenize:null,context:new g((e||0)-f,0,"top",!1),indented:0,startOfLine:!0};if(a.startState)a.startState(t);return t},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=!1;t.indented=e.indentation();t.startOfLine=!0};if(a.token){var s=a.token(e,t);if(s!==undefined){return s}};if(e.eatSpace())return null;r=null;l=null;var s=(t.tokenize||c)(e,t);if(s=="comment"||s=="meta"||s=="variable")return s;if(n.align==null)n.align=!0;if(r==n.type){u(t)}
+else if((r==";"&&n.type=="statement")||(n.type&&y(l,n.type))){n=u(t);while(n&&n.type=="statement")n=u(t)}
+else if(r=="{"){o(t,e.column(),"}")}
+else if(r=="["){o(t,e.column(),"]")}
+else if(r=="("){o(t,e.column(),")")}
+else if(n&&n.type=="endcase"&&r==":"){o(t,e.column(),"statement")}
+else if(r=="newstatement"){o(t,e.column(),"statement")}
+else if(r=="newblock"){if(l=="function"&&n&&(n.type=="statement"||n.type=="endgroup")){}
+else if(l=="task"&&n&&n.type=="statement"){}
+else{var f=i[l];o(t,e.column(),f)}};t.startOfLine=!1;return s},indent:function(t,n){if(t.tokenize!=c&&t.tokenize!=null)return e.Pass;if(a.indent){var s=a.indent(t);if(s>=0)return s};var i=t.context,o=n&&n.charAt(0);if(i.type=="statement"&&o=="}")i=i.prev;var r=!1,l=n.match(M);if(l)r=y(l[0],i.type);if(i.type=="statement")return i.indented+(o=="{"?0:p);else if(A.test(i.type)&&i.align&&!q)return i.column+(r?0:1);else if(i.type==")"&&!r)return i.indented+p;else return i.indented+(r?0:f)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});e.defineMIME("text/x-verilog",{name:"verilog"});e.defineMIME("text/x-systemverilog",{name:"verilog"});var a={"|":"link",">":"property","$":"variable","$$":"variable","?$":"qualifier","?*":"qualifier","-":"hr","/":"property","/-":"property","@":"variable-3","@-":"variable-3","@++":"variable-3","@+=":"variable-3","@+=-":"variable-3","@--":"variable-3","@-=":"variable-3","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable-2","**":"variable-2","\\":"keyword","\"":"comment"};var o={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"};var t=3,n=!1,r=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,s=/^[! ] /,c=/^[! ] */,l=/^\/[\/\*]/;function i(e,n,i){var r=n/t;return"tlv-"+e.tlvIndentationStyle[r]+"-"+i};function f(e){var t;return(t=e.match(r,!1))&&t[2].length>0};e.defineMIME("text/x-tlv",{name:"verilog",hooks:{electricInput:!1,token:function(e,d){var u=undefined,m;if(e.sol()&&!d.tlvInBlockComment){if(e.peek()=="\\"){u="def";e.skipToEnd();if(e.string.match(/\\SV/)){d.tlvCodeActive=!1}
+else if(e.string.match(/\\TLV/)){d.tlvCodeActive=!0}};if(d.tlvCodeActive&&e.pos==0&&(d.indented==0)&&(m=e.match(c,!1))){d.indented=m[0].length};var h=d.indented,p=h/t;if(p<=d.tlvIndentationStyle.length){var x=e.string.length==h,y=p*t;if(y<e.string.length){var b=e.string.slice(y),g=b[0];if(o[g]&&((m=b.match(r))&&a[m[1]])){h+=t;if(!(g=="\\"&&y>0)){d.tlvIndentationStyle[p]=o[g];if(n){d.statementComment=!1};p++}}};if(!x){while(d.tlvIndentationStyle.length>p){d.tlvIndentationStyle.pop()}}};d.tlvNextIndent=h};if(d.tlvCodeActive){var v=!1;if(n){v=(e.peek()!=" ")&&(u===undefined)&&!d.tlvInBlockComment&&(e.column()==d.tlvIndentationStyle.length*t);if(v){if(d.statementComment){v=!1};d.statementComment=e.match(l,!1)}};var m;if(u!==undefined){u+=" "+i(d,0,"scope-ident")}
+else if(((e.pos/t)<d.tlvIndentationStyle.length)&&(m=e.match(e.sol()?s:/^ /))){u="tlv-indent-"+(((e.pos%2)==0)?"even":"odd")+" "+i(d,e.pos-t,"indent");if(m[0].charAt(0)=="!"){u+=" tlv-alert-line-prefix"};if(f(e)){u+=" "+i(d,e.pos,"before-scope-ident")}}
+else if(d.tlvInBlockComment){if(e.match(/^.*?\*\//)){d.tlvInBlockComment=!1;if(n&&!e.eol()){d.statementComment=!1}}
+else{e.skipToEnd()};u="comment"}
+else if((m=e.match(l))&&!d.tlvInBlockComment){if(m[0]=="//"){e.skipToEnd()}
+else{d.tlvInBlockComment=!0};u="comment"}
+else if(m=e.match(r)){var k=m[1],w=m[2];if(a.hasOwnProperty(k)&&(w.length>0||e.eol())){u=a[k];if(e.column()==d.indented){u+=" "+i(d,e.column(),"scope-ident")}}
+else{e.backUp(e.current().length-1);u="tlv-default"}}
+else if(e.match(/^\t+/)){u="tlv-tab"}
+else if(e.match(/^[\[\]{}\(\);\:]+/)){u="meta"}
+else if(m=e.match(/^[mM]4([\+_])?[\w\d_]*/)){u=(m[1]=="+")?"tlv-m4-plus":"tlv-m4"}
+else if(e.match(/^ +/)){if(e.eol()){u="error"}
+else{u="tlv-default"}}
+else if(e.match(/^[\w\d_]+/)){u="number"}
+else{e.next();u="tlv-default"};if(v){u+=" tlv-statement"}}
+else{if(e.match(/^[mM]4([\w\d_]*)/)){u="tlv-m4"}};return u},indent:function(e){return(e.tlvCodeActive==!0)?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[];e.tlvCodeActive=!0;e.tlvNextIndent=-1;e.tlvInBlockComment=!1;if(n){e.statementComment=!1}}}})});
+/* ./modules/editor/codemirror/mode/spreadsheet/spreadsheet.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('spreadsheet',function(){return{startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(!e)return;if(t.stack.length===0){if((e.peek()=='"')||(e.peek()=='\'')){t.stringType=e.peek();e.next();t.stack.unshift('string')}};switch(t.stack[0]){case'string':while(t.stack[0]==='string'&&!e.eol()){if(e.peek()===t.stringType){e.next();t.stack.shift()}
+else if(e.peek()==='\\'){e.next();e.next()}
+else{e.match(/^.[^\\"']*/)}};return'string';case'characterClass':while(t.stack[0]==='characterClass'&&!e.eol()){if(!(e.match(/^[^\]\\]+/)||e.match(/^\\./)))t.stack.shift()};return'operator'};var r=e.peek();switch(r){case'[':e.next();t.stack.unshift('characterClass');return'bracket';case':':e.next();return'operator';case'\\':if(e.match(/\\[a-z]+/))return'string-2';else{e.next();return'atom'};case'.':case',':case';':case'*':case'-':case'+':case'^':case'<':case'/':case'=':e.next();return'atom';case'$':e.next();return'builtin'};if(e.match(/\d+/)){if(e.match(/^\w+/))return'error';return'number'}
+else if(e.match(/^[a-zA-Z_]\w*/)){if(e.match(/(?=[\(.])/,!1))return'keyword';return'variable-2'}
+else if(['[',']','(',')','{','}'].indexOf(r)!=-1){e.next();return'bracket'}
+else if(!e.eatSpace()){e.next()};return null}}});e.defineMIME('text/x-spreadsheet','spreadsheet')});
+/* ./modules/editor/codemirror/mode/coffeescript/coffeescript.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('coffeescript',function(e,t){var f='error';function i(e){return new RegExp('^(('+e.join(')|(')+'))\\b')};var m=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,v=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,a=/^[_A-Za-z$][_A-Za-z$0-9]*/,k=/^@[_A-Za-z$][_A-Za-z$0-9]*/,y=i(['and','or','not','is','isnt','in','instanceof','typeof']),r=['for','while','loop','if','unless','else','switch','try','catch','finally','class'],g=['break','by','continue','debugger','delete','do','in','of','new','return','then','this','@','throw','when','until','extends'],b=i(r.concat(g));r=i(r);var u=/^('{3}|"{3}|['"])/,l=/^(\/{3}|\/)/,d=['Infinity','NaN','undefined','null','true','false','on','off','yes','no'],h=i(d);function n(e,t){if(e.sol()){if(t.scope.align===null)t.scope.align=!1;var i=t.scope.offset;if(e.eatSpace()){var o=e.indentation();if(o>i&&t.scope.type=='coffee'){return'indent'}
+else if(o<i){return'dedent'};return null}
+else{if(i>0){c(e,t)}}};if(e.eatSpace()){return null};var s=e.peek();if(e.match('####')){e.skipToEnd();return'comment'};if(e.match('###')){t.tokenize=z;return t.tokenize(e,t)};if(s==='#'){e.skipToEnd();return'comment'};if(e.match(/^-?[0-9\.]/,!1)){var r=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)){r=!0};if(e.match(/^-?\d+\.\d*/)){r=!0};if(e.match(/^-?\.\d+/)){r=!0};if(r){if(e.peek()=='.'){e.backUp(1)};return'number'};var n=!1;if(e.match(/^-?0x[0-9a-f]+/i)){n=!0};if(e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)){n=!0};if(e.match(/^-?0(?![\dx])/i)){n=!0};if(n){return'number'}};if(e.match(u)){t.tokenize=p(e.current(),!1,'string');return t.tokenize(e,t)};if(e.match(l)){if(e.current()!='/'||e.match(/^.*\//,!1)){t.tokenize=p(e.current(),!0,'string-2');return t.tokenize(e,t)}
+else{e.backUp(1)}};if(e.match(m)||e.match(y)){return'operator'};if(e.match(v)){return'punctuation'};if(e.match(h)){return'atom'};if(e.match(k)||t.prop&&e.match(a)){return'property'};if(e.match(b)){return'keyword'};if(e.match(a)){return'variable'};e.next();return f};function p(e,r,i){return function(o,c){while(!o.eol()){o.eatWhile(/[^'"\/\\]/);if(o.eat('\\')){o.next();if(r&&o.eol()){return i}}
+else if(o.match(e)){c.tokenize=n;return i}
+else{o.eat(/['"\/]/)}};if(r){if(t.singleLineStringErrors){i=f}
+else{c.tokenize=n}};return i}};function z(e,t){while(!e.eol()){e.eatWhile(/[^#]/);if(e.match('###')){t.tokenize=n;break};e.eatWhile('#')};return'comment'};function o(t,n,i){i=i||'coffee';var f=0,o=!1,c=null;for(var r=n.scope;r;r=r.prev){if(r.type==='coffee'||r.type=='}'){f=r.offset+e.indentUnit;break}};if(i!=='coffee'){o=null;c=t.column()+t.current().length}
+else if(n.scope.align){n.scope.align=!1};n.scope={offset:f,type:i,prev:n.scope,align:o,alignOffset:c}};function c(t,e){if(!e.scope.prev)return;if(e.scope.type==='coffee'){var r=t.indentation(),i=!1;for(var n=e.scope;n;n=n.prev){if(r===n.offset){i=!0;break}};if(!i){return!0}
+while(e.scope.prev&&e.scope.offset!==r){e.scope=e.scope.prev};return!1}
+else{e.scope=e.scope.prev;return!1}};function x(t,e){var a=e.tokenize(t,e),n=t.current();if(n==='return'){e.dedent=!0};if(((n==='->'||n==='=>')&&t.eol())||a==='indent'){o(t,e)};var i='[({'.indexOf(n);if(i!==-1){o(t,e,'])}'.slice(i,i+1))};if(r.exec(n)){o(t,e)};if(n=='then'){c(t,e)};if(a==='dedent'){if(c(t,e)){return f}};i='])}'.indexOf(n);if(i!==-1){while(e.scope.type=='coffee'&&e.scope.prev)e.scope=e.scope.prev;if(e.scope.type==n)e.scope=e.scope.prev};if(e.dedent&&t.eol()){if(e.scope.type=='coffee'&&e.scope.prev)e.scope=e.scope.prev;e.dedent=!1};return a};var s={startState:function(e){return{tokenize:n,scope:{offset:e||0,type:'coffee',prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var r=t.scope.align===null&&t.scope;if(r&&e.sol())r.align=!1;var n=x(e,t);if(n&&n!='comment'){if(r)r.align=!0;t.prop=n=='punctuation'&&e.current()=='.'};return n},indent:function(e,t){if(e.tokenize!=n)return 0;var r=e.scope,f=t&&'])}'.indexOf(t.charAt(0))>-1;if(f)while(r.type=='coffee'&&r.prev)r=r.prev;var i=f&&r.type===t.charAt(0);if(r.align)return r.alignOffset-(i?1:0);else return(i?r.prev:r).offset},lineComment:'#',fold:'indent'};return s});e.defineMIME('application/vnd.coffeescript','coffeescript');e.defineMIME('text/x-coffeescript','coffeescript');e.defineMIME('text/coffeescript','coffeescript')});
+/* ./modules/editor/codemirror/mode/tiddlywiki/tiddlywiki.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("tiddlywiki",function(){var b={};var s={"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};var n=/[\w_\-]/i,i=/^\-\-\-\-+$/,u=/^\/\*\*\*$/,o=/^\*\*\*\/$/,a=/^<<<$/,f=/^\/\/\{\{\{$/,c=/^\/\/\}\}\}$/,l=/^<!--\{\{\{-->$/,m=/^<!--\}\}\}-->$/,h=/^\{\{\{$/,k=/^\}\}\}$/,d=/.*?\}\}\}/;function t(e,t,r){t.tokenize=r;return r(e,t)};function e(e,d){var s=e.sol(),k=e.peek();d.block=!1;if(s&&/[<\/\*{}\-]/.test(k)){if(e.match(h)){d.block=!0;return t(e,d,r)};if(e.match(a))return"quote";if(e.match(u)||e.match(o))return"comment";if(e.match(f)||e.match(c)||e.match(l)||e.match(m))return"comment";if(e.match(i))return"hr"};e.next();if(s&&/[\/\*!#;:>|]/.test(k)){if(k=="!"){e.skipToEnd();return"header"};if(k=="*"){e.eatWhile("*");return"comment"};if(k=="#"){e.eatWhile("#");return"comment"};if(k==";"){e.eatWhile(";");return"comment"};if(k==":"){e.eatWhile(":");return"comment"};if(k==">"){e.eatWhile(">");return"quote"};if(k=="|")return"header"};if(k=="{"&&e.match(/\{\{/))return t(e,d,r);if(/[hf]/i.test(k)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(k=="\"")return"string";if(k=="~")return"brace";if(/[\[\]]/.test(k)&&e.match(k))return"brace";if(k=="@"){e.eatWhile(n);return"link"};if(/\d/.test(k)){e.eatWhile(/\d/);return"number"};if(k=="/"){if(e.eat("%")){return t(e,d,p)}
+else if(e.eat("/")){return t(e,d,v)}};if(k=="_"&&e.eat("_"))return t(e,d,x);if(k=="-"&&e.eat("-")){if(e.peek()!=" ")return t(e,d,z);if(e.peek()==" ")return"brace"};if(k=="'"&&e.eat("'"))return t(e,d,w);if(k=="<"&&e.eat("<"))return t(e,d,y);e.eatWhile(/[\w\$_]/);return b.propertyIsEnumerable(e.current())?"keyword":null};function p(t,r){var i=!1,n;while(n=t.next()){if(n=="/"&&i){r.tokenize=e;break};i=(n=="%")};return"comment"};function w(t,r){var i=!1,n;while(n=t.next()){if(n=="'"&&i){r.tokenize=e;break};i=(n=="'")};return"strong"};function r(t,r){var n=r.block;if(n&&t.current()){return"comment"};if(!n&&t.match(d)){r.tokenize=e;return"comment"};if(n&&t.sol()&&t.match(k)){r.tokenize=e;return"comment"};t.next();return"comment"};function v(t,r){var i=!1,n;while(n=t.next()){if(n=="/"&&i){r.tokenize=e;break};i=(n=="/")};return"em"};function x(t,r){var i=!1,n;while(n=t.next()){if(n=="_"&&i){r.tokenize=e;break};i=(n=="_")};return"underlined"};function z(t,r){var i=!1,n;while(n=t.next()){if(n=="-"&&i){r.tokenize=e;break};i=(n=="-")};return"strikethrough"};function y(t,r){if(t.current()=="<<"){return"macro"};var n=t.next();if(!n){r.tokenize=e;return null};if(n==">"){if(t.peek()==">"){t.next();r.tokenize=e;return"macro"}};t.eatWhile(/[\w\$_]/);return s.propertyIsEnumerable(t.current())?"keyword":null};return{startState:function(){return{tokenize:e}},token:function(e,t){if(e.eatSpace())return null;var r=t.tokenize(e,t);return r}}});e.defineMIME("text/x-tiddlywiki","tiddlywiki")});
+/* ./modules/editor/codemirror/mode/mumps/mumps.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("mumps",function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")};var t=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),r=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),n=new RegExp("^[\\.,:]"),i=new RegExp("[()]"),o=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),a=["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"],c=["\\$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"],m=e(c),d=e(a);function f(e,a){if(e.sol()){a.label=!0;a.commandMode=0};var c=e.peek();if(c==" "||c=="\t"){a.label=!1;if(a.commandMode==0)a.commandMode=1;else if((a.commandMode<0)||(a.commandMode==2))a.commandMode=0}
+else if((c!=".")&&(a.commandMode>0)){if(c==":")a.commandMode=-1;else a.commandMode=2};if((c==="(")||(c==="\u0009"))a.label=!1;if(c===";"){e.skipToEnd();return"comment"};if(e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))return"number";if(c=="\""){if(e.skipTo("\"")){e.next();return"string"}
+else{e.skipToEnd();return"error"}};if(e.match(r)||e.match(t))return"operator";if(e.match(n))return null;if(i.test(c)){e.next();return"bracket"};if(a.commandMode>0&&e.match(d))return"variable-2";if(e.match(m))return"builtin";if(e.match(o))return"variable";if(c==="$"||c==="^"){e.next();return"builtin"};if(c==="@"){e.next();return"string-2"};if(/[\w%]/.test(c)){e.eatWhile(/[\w%]/);return"variable"};e.next();return"error"};return{startState:function(){return{label:!1,commandMode:0}},token:function(e,t){var r=f(e,t);if(t.label)return"tag";return r}}});e.defineMIME("text/x-mumps","mumps")});
+/* ./modules/editor/codemirror/mode/eiffel/eiffel.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('eiffel',function(){function e(e){var r={};for(var t=0,n=e.length;t<n;++t)r[e[t]]=!0;return r};var t=e(['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']),r=e([':=','and then','and','or','<<','>>']);function n(e,t,r){r.tokenize.push(e);return e(t,r)};function i(e,r){if(e.eatSpace())return null;var t=e.next();if(t=='"'||t=='\''){return n(o(t,'string'),e,r)}
+else if(t=='-'&&e.eat('-')){e.skipToEnd();return'comment'}
+else if(t==':'&&e.eat('=')){return'operator'}
+else if(/[0-9]/.test(t)){e.eatWhile(/[xXbBCc0-9\.]/);e.eat(/[\?\!]/);return'ident'}
+else if(/[a-zA-Z_0-9]/.test(t)){e.eatWhile(/[a-zA-Z_0-9]/);e.eat(/[\?\!]/);return'ident'}
+else if(/[=+\-\/*^%<>~]/.test(t)){e.eatWhile(/[=+\-\/*^%<>~]/);return'operator'}
+else{return null}};function o(e,t,r){return function(n,i){var o=!1,a;while((a=n.next())!=null){if(a==e&&(r||!o)){i.tokenize.pop();break};o=!o&&a=='%'};return t}};return{startState:function(){return{tokenize:[i]}},token:function(e,n){var o=n.tokenize[n.tokenize.length-1](e,n);if(o=='ident'){var i=e.current();o=t.propertyIsEnumerable(e.current())?'keyword':r.propertyIsEnumerable(e.current())?'operator':/^[A-Z][A-Z_0-9]*$/g.test(i)?'tag':/^0[bB][0-1]+$/g.test(i)?'number':/^0[cC][0-7]+$/g.test(i)?'number':/^0[xX][a-fA-F0-9]+$/g.test(i)?'number':/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(i)?'number':/^[0-9]+$/g.test(i)?'number':'variable'};return o},lineComment:'--'}});e.defineMIME('text/x-eiffel','eiffel')});
+/* ./modules/editor/codemirror/mode/webidl/webidl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function t(e){return new RegExp('^(('+e.join(')|(')+'))\\b')};var n=['Clamp','Constructor','EnforceRange','Exposed','ImplicitThis','Global','PrimaryGlobal','LegacyArrayClass','LegacyUnenumerableNamedProperties','LenientThis','NamedConstructor','NewObject','NoInterfaceObject','OverrideBuiltins','PutForwards','Replaceable','SameObject','TreatNonObjectAsNull','TreatNullAs','EmptyString','Unforgeable','Unscopeable'],g=t(n),i=['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'],D=t(i),a=['attribute','callback','const','deleter','dictionary','enum','getter','implements','inherit','interface','iterable','legacycaller','maplike','partial','required','serializer','setlike','setter','static','stringifier','typedef','optional','readonly','or'],E=t(a),o=['true','false','Infinity','NaN','null'],k=t(o);e.registerHelper('hintWords','webidl',n.concat(i).concat(a).concat(o));var c=['callback','dictionary','enum','interface'],l=t(c),f=['typedef'],m=t(f),u=/^[:<=>?]/,s=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,d=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,r=/^_?[A-Za-z][0-9A-Z_a-z-]*/,b=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,y=/^"[^"]*"/,p=/^\/\*.*?\*\//,h=/^\/\*.*/,A=/^.*?\*\//;function C(e,t){if(e.eatSpace())return null;if(t.inComment){if(e.match(A)){t.inComment=!1;return'comment'};e.skipToEnd();return'comment'};if(e.match('//')){e.skipToEnd();return'comment'};if(e.match(p))return'comment';if(e.match(h)){t.inComment=!0;return'comment'};if(e.match(/^-?[0-9\.]/,!1)){if(e.match(s)||e.match(d))return'number'};if(e.match(y))return'string';if(t.startDef&&e.match(r))return'def';if(t.endDef&&e.match(b)){t.endDef=!1;return'def'};if(e.match(E))return'keyword';if(e.match(D)){var n=t.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];if(n===':'||n==='implements'||i==='implements'||i==='='){return'builtin'}
+else{return'variable-3'}};if(e.match(g))return'builtin';if(e.match(k))return'atom';if(e.match(r))return'variable';if(e.match(u))return'operator';e.next();return null};e.defineMode('webidl',function(){return{startState:function(){return{inComment:!1,lastToken:'',startDef:!1,endDef:!1}},token:function(t,e){var n=C(t,e);if(n){var r=t.current();e.lastToken=r;if(n==='keyword'){e.startDef=l.test(r);e.endDef=e.endDef||m.test(r)}
+else{e.startDef=!1}};return n}}});e.defineMIME('text/x-webidl','webidl')});
+/* ./modules/editor/codemirror/mode/ebnf/ebnf.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('ebnf',function(a){var c={slash:0,parenthesis:1};var t={comment:0,_string:1,characterClass:2};var r=null;if(a.bracesMode)r=e.getMode(a,a.bracesMode);return{startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(a,n){if(!a)return;if(n.stack.length===0){if((a.peek()=='"')||(a.peek()=='\'')){n.stringType=a.peek();a.next();n.stack.unshift(t._string)}
+else if(a.match(/^\/\*/)){n.stack.unshift(t.comment);n.commentType=c.slash}
+else if(a.match(/^\(\*/)){n.stack.unshift(t.comment);n.commentType=c.parenthesis}};switch(n.stack[0]){case t._string:while(n.stack[0]===t._string&&!a.eol()){if(a.peek()===n.stringType){a.next();n.stack.shift()}
+else if(a.peek()==='\\'){a.next();a.next()}
+else{a.match(/^.[^\\"']*/)}};return n.lhs?'property string':'string';case t.comment:while(n.stack[0]===t.comment&&!a.eol()){if(n.commentType===c.slash&&a.match(/\*\//)){n.stack.shift();n.commentType=null}
+else if(n.commentType===c.parenthesis&&a.match(/\*\)/)){n.stack.shift();n.commentType=null}
+else{a.match(/^.[^\*]*/)}};return'comment';case t.characterClass:while(n.stack[0]===t.characterClass&&!a.eol()){if(!(a.match(/^[^\]\\]+/)||a.match(/^\\./))){n.stack.shift()}};return'operator'};var f=a.peek();if(r!==null&&(n.braced||f==='{')){if(n.localState===null)n.localState=e.startState(r);var i=r.token(a,n.localState),l=a.current();if(!i){for(var s=0;s<l.length;s++){if(l[s]==='{'){if(n.braced===0){i='matchingbracket'};n.braced++}
+else if(l[s]==='}'){n.braced--;if(n.braced===0){i='matchingbracket'}}}};return i};switch(f){case'[':a.next();n.stack.unshift(t.characterClass);return'bracket';case':':case'|':case';':a.next();return'operator';case'%':if(a.match('%%')){return'header'}
+else if(a.match(/[%][A-Za-z]+/)){return'keyword'}
+else if(a.match(/[%][}]/)){return'matchingbracket'};break;case'/':if(a.match(/[\/][A-Za-z]+/)){return'keyword'};case'\\':if(a.match(/[\][a-z]+/)){return'string-2'};case'.':if(a.match('.')){return'atom'};case'*':case'-':case'+':case'^':if(a.match(f)){return'atom'};case'$':if(a.match('$$')){return'builtin'}
+else if(a.match(/[$][0-9]+/)){return'variable-3'};case'<':if(a.match(/<<[a-zA-Z_]+>>/)){return'builtin'}};if(a.match(/^\/\//)){a.skipToEnd();return'comment'}
+else if(a.match(/return/)){return'operator'}
+else if(a.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)){if(a.match(/(?=[\(.])/)){return'variable'}
+else if(a.match(/(?=[\s\n]*[:=])/)){return'def'};return'variable-2'}
+else if(['[',']','(',')'].indexOf(a.peek())!=-1){a.next();return'bracket'}
+else if(!a.eatSpace()){a.next()};return null}}});e.defineMIME('text/x-ebnf','ebnf')});
+/* ./modules/editor/codemirror/mode/http/http.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('http',function(){function r(r,t){r.skipToEnd();t.cur=e;return'error'};function n(e,t){if(e.match(/^HTTP\/\d\.\d/)){t.cur=i;return'keyword'}
+else if(e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())){t.cur=o;return'keyword'}
+else{return r(e,t)}};function i(e,n){var i=e.match(/^\d+/);if(!i)return r(e,n);n.cur=u;var t=Number(i[0]);if(t>=100&&t<200){return'positive informational'}
+else if(t>=200&&t<300){return'positive success'}
+else if(t>=300&&t<400){return'positive redirect'}
+else if(t>=400&&t<500){return'negative client-error'}
+else if(t>=500&&t<600){return'negative server-error'}
+else{return'error'}};function u(r,t){r.skipToEnd();t.cur=e;return null};function o(e,r){e.eatWhile(/\S/);r.cur=c;return'string-2'};function c(t,n){if(t.match(/^HTTP\/\d\.\d$/)){n.cur=e;return'keyword'}
+else{return r(t,n)}};function e(e){if(e.sol()&&!e.eat(/[ \t]/)){if(e.match(/^.*?:/)){return'atom'}
+else{e.skipToEnd();return'error'}}
+else{e.skipToEnd();return'string'}};function t(e){e.skipToEnd();return null};return{token:function(r,n){var i=n.cur;if(i!=e&&i!=t&&r.eatSpace())return null;return i(r,n)},blankLine:function(e){e.cur=t},startState:function(){return{cur:n}}}});e.defineMIME('message/http','http')});
+/* ./modules/editor/codemirror/mode/textile/textile.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object'){e(require('../../lib/codemirror'))}
+else if(typeof define=='function'&&define.amd){define(['../../lib/codemirror'],e)}
+else{e(CodeMirror)}})(function(i){'use strict';var r={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'};function f(e,i){i.mode=n.newLayout;i.tableHeading=!1;if(i.layoutType==='definitionList'&&i.spanningLayout&&e.match(t('definitionListEnd'),!1))i.spanningLayout=!1};function s(e,t,i){if(i==='_'){if(e.eat('_'))return l(e,t,'italic',/__/,2);else return l(e,t,'em',/_/,1)};if(i==='*'){if(e.eat('*')){return l(e,t,'bold',/\*\*/,2)};return l(e,t,'strong',/\*/,1)};if(i==='['){if(e.match(/\d+\]/))t.footCite=!0;return a(t)};if(i==='('){var u=e.match(/^(r|tm|c)\)/);if(u)return o(t,r.specialChar)};if(i==='<'&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return o(t,r.html);if(i==='?'&&e.eat('?'))return l(e,t,'cite',/\?\?/,2);if(i==='='&&e.eat('='))return l(e,t,'notextile',/==/,2);if(i==='-'&&!e.eat('-'))return l(e,t,'deletion',/-/,1);if(i==='+')return l(e,t,'addition',/\+/,1);if(i==='~')return l(e,t,'sub',/~/,1);if(i==='^')return l(e,t,'sup',/\^/,1);if(i==='%')return l(e,t,'span',/%/,1);if(i==='@')return l(e,t,'code',/@/,1);if(i==='!'){var n=l(e,t,'image',/(?:\([^\)]+\))?!/,1);e.match(/^:\S+/);return n};return a(t)};function l(e,t,i,u,o){var r=e.pos>o?e.string.charAt(e.pos-o-1):null,l=e.peek();if(t[i]){if((!l||/\W/.test(l))&&r&&/\S/.test(r)){var s=a(t);t[i]=!1;return s}}
+else if((!r||/\W/.test(r))&&l&&/\S/.test(l)&&e.match(new RegExp('^.*\\S'+u.source+'(?:\\W|$)'),!1)){t[i]=!0;t.mode=n.attributes};return a(t)};function a(e){var i=u(e);if(i)return i;var t=[];if(e.layoutType)t.push(r[e.layoutType]);t=t.concat(c(e,'addition','bold','cite','code','deletion','em','footCite','image','italic','link','span','strong','sub','sup','table','tableHeading'));if(e.layoutType==='header')t.push(r.header+'-'+e.header);return t.length?t.join(' '):null};function u(e){var t=e.layoutType;switch(t){case'notextile':case'code':case'pre':return r[t];default:if(e.notextile)return r.notextile+(t?(' '+r[t]):'');return null}};function o(e,t){var n=u(e);if(n)return n;var i=a(e);if(t)return i?(i+' '+t):t;else return i};function c(e){var i=[];for(var t=1;t<arguments.length;++t){if(e[arguments[t]])i.push(r[arguments[t]])};return i};function d(e){var i=e.spanningLayout,a=e.layoutType;for(var t in e)if(e.hasOwnProperty(t))delete e[t];e.mode=n.newLayout;if(i){e.layoutType=a;e.spanningLayout=!0}};var e={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(i){switch(i){case'drawTable':return e.makeRe('^',e.single.drawTable,'$');case'html':return e.makeRe('^',e.single.html,'(?:',e.single.html,')*','$');case'linkDefinition':return e.makeRe('^',e.single.linkDefinition,'$');case'listLayout':return e.makeRe('^',e.single.list,t('allAttributes'),'*\\s+');case'tableCellAttributes':return e.makeRe('^',e.choiceRe(e.single.tableCellAttributes,t('allAttributes')),'+\\.');case'type':return e.makeRe('^',t('allTypes'));case'typeLayout':return e.makeRe('^',t('allTypes'),t('allAttributes'),'*\\.\\.?','(\\s+|$)');case'attributes':return e.makeRe('^',t('allAttributes'),'+');case'allTypes':return e.choiceRe(e.single.div,e.single.foot,e.single.header,e.single.bc,e.single.bq,e.single.notextile,e.single.pre,e.single.table,e.single.para);case'allAttributes':return e.choiceRe(e.attributes.selector,e.attributes.css,e.attributes.lang,e.attributes.align,e.attributes.pad);default:return e.makeRe('^',e.single[i])}},makeRe:function(){var i='';for(var t=0;t<arguments.length;++t){var e=arguments[t];i+=(typeof e==='string')?e:e.source};return new RegExp(i)},choiceRe:function(){var i=[arguments[0]];for(var t=1;t<arguments.length;++t){i[t*2-1]='|';i[t*2]=arguments[t]};i.unshift('(?:');i.push(')');return e.makeRe.apply(null,i)}};function t(t){return(e.cache[t]||(e.cache[t]=e.createRe(t)))};var n={newLayout:function(e,i){if(e.match(t('typeLayout'),!1)){i.spanningLayout=!1;return(i.mode=n.blockType)(e,i)};var a;if(!u(i)){if(e.match(t('listLayout'),!1))a=n.list;else if(e.match(t('drawTable'),!1))a=n.table;else if(e.match(t('linkDefinition'),!1))a=n.linkDefinition;else if(e.match(t('definitionList')))a=n.definitionList;else if(e.match(t('html'),!1))a=n.html};return(i.mode=(a||n.text))(e,i)},blockType:function(i,e){var l,r;e.layoutType=null;if(l=i.match(t('type')))r=l[0];else return(e.mode=n.text)(i,e);if(l=r.match(t('header'))){e.layoutType='header';e.header=parseInt(l[0][1])}
+else if(r.match(t('bq'))){e.layoutType='quote'}
+else if(r.match(t('bc'))){e.layoutType='code'}
+else if(r.match(t('foot'))){e.layoutType='footnote'}
+else if(r.match(t('notextile'))){e.layoutType='notextile'}
+else if(r.match(t('pre'))){e.layoutType='pre'}
+else if(r.match(t('div'))){e.layoutType='div'}
+else if(r.match(t('table'))){e.layoutType='table'};e.mode=n.attributes;return a(e)},text:function(e,i){if(e.match(t('text')))return a(i);var r=e.next();if(r==='"')return(i.mode=n.link)(e,i);return s(e,i,r)},attributes:function(e,i){i.mode=n.layoutLength;if(e.match(t('attributes')))return o(i,r.attributes);else return a(i)},layoutLength:function(e,t){if(e.eat('.')&&e.eat('.'))t.spanningLayout=!0;t.mode=n.text;return a(t)},list:function(e,i){var l=e.match(t('list'));i.listDepth=l[0].length;var r=(i.listDepth-1)%3;if(!r)i.layoutType='list1';else if(r===1)i.layoutType='list2';else i.layoutType='list3';i.mode=n.attributes;return a(i)},link:function(e,i){i.mode=n.text;if(e.match(t('link'))){e.match(/\S+/);return o(i,r.link)};return a(i)},linkDefinition:function(e,t){e.skipToEnd();return o(t,r.linkDefinition)},definitionList:function(e,i){e.match(t('definitionList'));i.layoutType='definitionList';if(e.match(/\s*$/))i.spanningLayout=!0;else i.mode=n.attributes;return a(i)},html:function(e,t){e.skipToEnd();return o(t,r.html)},table:function(e,t){t.layoutType='table';return(t.mode=n.tableCell)(e,t)},tableCell:function(e,i){if(e.match(t('tableHeading')))i.tableHeading=!0;else e.eat('|');i.mode=n.tableCellAttributes;return a(i)},tableCellAttributes:function(e,i){i.mode=n.tableText;if(e.match(t('tableCellAttributes')))return o(i,r.attributes);else return a(i)},tableText:function(e,i){if(e.match(t('tableText')))return a(i);if(e.peek()==='|'){i.mode=n.tableCell;return a(i)};return s(e,i,e.next())}};i.defineMode('textile',function(){return{startState:function(){return{mode:n.newLayout}},token:function(e,t){if(e.sol())f(e,t);return t.mode(e,t)},blankLine:d}});i.defineMIME('text/x-textile','textile')});
+/* ./modules/editor/codemirror/mode/r/r.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.registerHelper('wordChars','r',/[\w.]/);e.defineMode('r',function(e){function r(e){var r=e.split(' '),n={};for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};var s=r('NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_'),d=r('list quote bquote eval return call parse deparse'),p=r('if else repeat while function for in next break'),m=r('if else repeat while function for'),u=/[+\-*\/^<>=!&|~$:]/,t;function a(e,n){t=null;var r=e.next();if(r=='#'){e.skipToEnd();return'comment'}
+else if(r=='0'&&e.eat('x')){e.eatWhile(/[\da-f]/i);return'number'}
+else if(r=='.'&&e.eat(/\d/)){e.match(/\d*(?:e[+\-]?\d+)?/);return'number'}
+else if(/\d/.test(r)){e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);return'number'}
+else if(r=='\''||r=='"'){n.tokenize=x(r);return'string'}
+else if(r=='`'){e.match(/[^`]+`/);return'variable-3'}
+else if(r=='.'&&e.match(/.[.\d]+/)){return'keyword'}
+else if(/[\w\.]/.test(r)&&r!='_'){e.eatWhile(/[\w\.]/);var i=e.current();if(s.propertyIsEnumerable(i))return'atom';if(p.propertyIsEnumerable(i)){if(m.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1))t='block';return'keyword'};if(d.propertyIsEnumerable(i))return'builtin';return'variable'}
+else if(r=='%'){if(e.skipTo('%'))e.next();return'operator variable-2'}
+else if((r=='<'&&e.eat('-'))||(r=='<'&&e.match('<-'))||(r=='-'&&e.match(/>>?/))){return'operator arrow'}
+else if(r=='='&&n.ctx.argList){return'arg-is'}
+else if(u.test(r)){if(r=='$')return'operator dollar';e.eatWhile(u);return'operator'}
+else if(/[\(\){}\[\];]/.test(r)){t=r;if(r==';')return'semi';return null}
+else{return null}};function x(e){return function(t,r){if(t.eat('\\')){var n=t.next();if(n=='x')t.match(/^[a-f0-9]{2}/i);else if((n=='u'||n=='U')&&t.eat('{')&&t.skipTo('}'))t.next();else if(n=='u')t.match(/^[a-f0-9]{4}/i);else if(n=='U')t.match(/^[a-f0-9]{8}/i);else if(/[0-7]/.test(n))t.match(/^[0-7]{1,2}/);return'string-2'}
+else{var i;while((i=t.next())!=null){if(i==e){r.tokenize=a;break};if(i=='\\'){t.backUp(1);break}};return'string'}}};var o=1,i=2,f=4;function n(e,t,r){e.ctx={type:t,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}};function c(e,t){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|t,column:r.column,prev:r.prev}};function l(e){e.indent=e.ctx.indent;e.ctx=e.ctx.prev};return{startState:function(){return{tokenize:a,ctx:{type:'top',indent:-e.indentUnit,flags:i},indent:0,afterIdent:!1}},token:function(r,e){if(r.sol()){if((e.ctx.flags&3)==0)e.ctx.flags|=i;if(e.ctx.flags&f)l(e);e.indent=r.indentation()};if(r.eatSpace())return null;var a=e.tokenize(r,e);if(a!='comment'&&(e.ctx.flags&i)==0)c(e,o);if((t==';'||t=='{'||t=='}')&&e.ctx.type=='block')l(e);if(t=='{')n(e,'}',r);else if(t=='('){n(e,')',r);if(e.afterIdent)e.ctx.argList=!0}
+else if(t=='[')n(e,']',r);else if(t=='block')n(e,'block',r);else if(t==e.ctx.type)l(e);else if(e.ctx.type=='block'&&a!='comment')c(e,f);e.afterIdent=a=='variable'||a=='keyword';return a},indent:function(t,n){if(t.tokenize!=a)return 0;var i=n&&n.charAt(0),r=t.ctx,l=i==r.type;if(r.flags&f)r=r.prev;if(r.type=='block')return r.indent+(i=='{'?0:e.indentUnit);else if(r.flags&o)return r.column+(l?0:1);else return r.indent+(l?0:e.indentUnit)},lineComment:'#'}});e.defineMIME('text/x-rsrc','r')});
+/* ./modules/editor/codemirror/mode/haml/haml.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'),require('../ruby/ruby'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed','../ruby/ruby'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('haml',function(t){var r=e.getMode(t,{name:'htmlmixed'});var i=e.getMode(t,'ruby');function u(e){return function(t,i){var r=t.peek();if(r==e&&i.rubyState.tokenize.length==1){t.next();i.tokenize=o;return'closeAttributeTag'}
+else{return n(t,i)}}};function n(e,t){if(e.match('-#')){e.skipToEnd();return'comment'};return i.token(e,t.rubyState)};function o(t,e){var i=t.peek();if(e.previousToken.style=='comment'){if(e.indented>e.previousToken.indented){t.skipToEnd();return'commentLine'}};if(e.startOfLine){if(i=='!'&&t.match('!!')){t.skipToEnd();return'tag'}
+else if(t.match(/^%[\w:#\.]+=/)){e.tokenize=n;return'hamlTag'}
+else if(t.match(/^%[\w:]+/)){return'hamlTag'}
+else if(i=='/'){t.skipToEnd();return'comment'}};if(e.startOfLine||e.previousToken.style=='hamlTag'){if(i=='#'||i=='.'){t.match(/[\w-#\.]*/);return'hamlAttribute'}};if(e.startOfLine&&!t.match('-->',!1)&&(i=='='||i=='-')){e.tokenize=n;return e.tokenize(t,e)};if(e.previousToken.style=='hamlTag'||e.previousToken.style=='closeAttributeTag'||e.previousToken.style=='hamlAttribute'){if(i=='('){e.tokenize=u(')');return e.tokenize(t,e)}
+else if(i=='{'){if(!t.match(/^\{%.*/)){e.tokenize=u('}');return e.tokenize(t,e)}}};return r.token(t,e.htmlState)};return{startState:function(){var t=e.startState(r),n=e.startState(i);return{htmlState:t,rubyState:n,indented:0,previousToken:{style:null,indented:0},tokenize:o}},copyState:function(t){return{htmlState:e.copyState(r,t.htmlState),rubyState:e.copyState(i,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()){t.indented=e.indentation();t.startOfLine=!0};if(e.eatSpace())return null;var i=t.tokenize(e,t);t.startOfLine=!1;if(i&&i!='commentLine'){t.previousToken={style:i,indented:t.indented}};if(e.eol()&&t.tokenize==n){e.backUp(1);var r=e.peek();e.next();if(r&&r!=','){t.tokenize=o}};if(i=='hamlTag'){i='tag'}
+else if(i=='commentLine'){i='comment'}
+else if(i=='hamlAttribute'){i='attribute'}
+else if(i=='closeAttributeTag'){i=null};return i}}},'htmlmixed','ruby');e.defineMIME('text/x-haml','haml')});
+/* ./modules/editor/codemirror/mode/ecl/ecl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('ecl',function(t){function n(e){var n={},r=e.split(' ');for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};function v(e,t){if(!t.startOfLine)return!1;e.skipToEnd();return'meta'};var l=t.indentUnit,p=n('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'),m=n('apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait'),h=n('__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'),c=n('ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode'),y=n('checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when'),r=n('catch class do else finally for if switch try while'),b=n('true false null'),u={'#':v};var s=/[+\-*&%=<>!?|\/]/,e;function o(t,i){var o=t.next();if(u[o]){var f=u[o](t,i);if(f!==!1)return f};if(o=='"'||o=='\''){i.tokenize=g(o);return i.tokenize(t,i)};if(/[\[\]{}\(\),;\:\.]/.test(o)){e=o;return null};if(/\d/.test(o)){t.eatWhile(/[\w\.]/);return'number'};if(o=='/'){if(t.eat('*')){i.tokenize=d;return d(t,i)};if(t.eat('/')){t.skipToEnd();return'comment'}};if(s.test(o)){t.eatWhile(s);return'operator'};t.eatWhile(/[\w\$_]/);var n=t.current().toLowerCase();if(p.propertyIsEnumerable(n)){if(r.propertyIsEnumerable(n))e='newstatement';return'keyword'}
+else if(m.propertyIsEnumerable(n)){if(r.propertyIsEnumerable(n))e='newstatement';return'variable'}
+else if(h.propertyIsEnumerable(n)){if(r.propertyIsEnumerable(n))e='newstatement';return'variable-2'}
+else if(c.propertyIsEnumerable(n)){if(r.propertyIsEnumerable(n))e='newstatement';return'variable-3'}
+else if(y.propertyIsEnumerable(n)){if(r.propertyIsEnumerable(n))e='newstatement';return'builtin'}
+else{var a=n.length-1;while(a>=0&&(!isNaN(n[a])||n[a]=='_'))--a;if(a>0){var l=n.substr(0,a+1);if(c.propertyIsEnumerable(l)){if(r.propertyIsEnumerable(l))e='newstatement';return'variable-3'}}};if(b.propertyIsEnumerable(n))return'atom';return null};function g(e){return function(t,n){var r=!1,i,a=!1;while((i=t.next())!=null){if(i==e&&!r){a=!0;break};r=!r&&i=='\\'};if(a||!r)n.tokenize=o;return'string'}};function d(e,t){var r=!1,n;while(n=e.next()){if(n=='/'&&r){t.tokenize=o;break};r=(n=='*')};return'comment'};function f(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i};function a(e,t,n){return e.context=new f(e.indented,t,n,null,e.context)};function i(e){var t=e.context.type;if(t==')'||t==']'||t=='}')e.indented=e.context.indented;return e.context=e.context.prev};return{startState:function(e){return{tokenize:null,context:new f((e||0)-l,0,'top',!1),indented:0,startOfLine:!0}},token:function(t,n){var r=n.context;if(t.sol()){if(r.align==null)r.align=!1;n.indented=t.indentation();n.startOfLine=!0};if(t.eatSpace())return null;e=null;var l=(n.tokenize||o)(t,n);if(l=='comment'||l=='meta')return l;if(r.align==null)r.align=!0;if((e==';'||e==':')&&r.type=='statement')i(n);else if(e=='{')a(n,t.column(),'}');else if(e=='[')a(n,t.column(),']');else if(e=='(')a(n,t.column(),')');else if(e=='}'){while(r.type=='statement')r=i(n);if(r.type=='}')r=i(n);while(r.type=='statement')r=i(n)}
+else if(e==r.type)i(n);else if(r.type=='}'||r.type=='top'||(r.type=='statement'&&e=='newstatement'))a(n,t.column(),'statement');n.startOfLine=!1;return l},indent:function(e,t){if(e.tokenize!=o&&e.tokenize!=null)return 0;var n=e.context,r=t&&t.charAt(0);if(n.type=='statement'&&r=='}')n=n.prev;var i=r==n.type;if(n.type=='statement')return n.indented+(r=='{'?0:l);else if(n.align)return n.column+(i?0:1);else return n.indented+(i?0:l)},electricChars:'{}'}});e.defineMIME('text/x-ecl','ecl')});
+/* ./modules/editor/codemirror/mode/cypher/cypher.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';var t=function(e){return new RegExp('^(?:'+e.join('|')+')$','i')};e.defineMode('cypher',function(n){var c=function(e){var t=e.next();if(t==='"'){e.match(/.*?"/);return'string'};if(t==='\''){e.match(/.*?'/);return'string'};if(/[{}\(\),\.;\[\]]/.test(t)){r=t;return'node'}
+else if(t==='/'&&e.eat('/')){e.skipToEnd();return'comment'}
+else if(a.test(t)){e.eatWhile(a);return null}
+else{e.eatWhile(/[_\w\d]/);if(e.eat(':')){e.eatWhile(/[\w\d_\-]/);return'atom'};var n=e.current();if(l.test(n))return'builtin';if(d.test(n))return'def';if(u.test(n))return'keyword';return'variable'}},i=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},o=function(e){e.indent=e.context.indent;return e.context=e.context.prev},s=n.indentUnit,r,l=t(['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']),d=t(['all','and','any','contains','exists','has','in','none','not','or','single','xor']),u=t(['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']),a=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(t,e){if(t.sol()){if(e.context&&(e.context.align==null)){e.context.align=!1};e.indent=t.indentation()};if(t.eatSpace()){return null};var n=e.tokenize(t,e);if(n!=='comment'&&e.context&&(e.context.align==null)&&e.context.type!=='pattern'){e.context.align=!0};if(r==='('){i(e,')',t.column())}
+else if(r==='['){i(e,']',t.column())}
+else if(r==='{'){i(e,'}',t.column())}
+else if(/[\]\}\)]/.test(r)){while(e.context&&e.context.type==='pattern'){o(e)};if(e.context&&r===e.context.type){o(e)}}
+else if(r==='.'&&e.context&&e.context.type==='pattern'){o(e)}
+else if(/atom|string|variable/.test(n)&&e.context){if(/[\}\]]/.test(e.context.type)){i(e,'pattern',t.column())}
+else if(e.context.type==='pattern'&&!e.context.align){e.context.align=!0;e.context.col=t.column()}};return n},indent:function(n,r){var o=r&&r.charAt(0),t=n.context;if(/[\]\}]/.test(o)){while(t&&t.type==='pattern'){t=t.prev}};var i=t&&o===t.type;if(!t)return 0;if(t.type==='keywords')return e.commands.newlineAndIndent;if(t.align)return t.col+(i?0:1);return t.indent+(i?0:s)}}});e.modeExtensions['cypher']={autoFormatLineBreaks:function(e){var t,n,r,n=e.split('\n'),r=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g;for(var t=0;t<n.length;t++)n[t]=n[t].replace(r,' \n$1 ').trim();return n.join('\n')}};e.defineMIME('application/x-cypher-query','cypher')});
+/* ./modules/editor/codemirror/mode/sieve/sieve.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('sieve',function(e){function t(e){var t={},r=e.split(' ');for(var n=0;n<r.length;++n)t[r[n]]=!0;return t};var i=t('if elsif else stop require'),u=t('true false not'),o=e.indentUnit;function n(e,n){var t=e.next();if(t=='/'&&e.eat('*')){n.tokenize=r;return r(e,n)};if(t==='#'){e.skipToEnd();return'comment'};if(t=='"'){n.tokenize=l(t);return n.tokenize(e,n)};if(t=='('){n._indent.push('(');n._indent.push('{');return null};if(t==='{'){n._indent.push('{');return null};if(t==')'){n._indent.pop();n._indent.pop()};if(t==='}'){n._indent.pop();return null};if(t==',')return null;if(t==';')return null;if(/[{}\(\),;]/.test(t))return null;if(/\d/.test(t)){e.eatWhile(/[\d]/);e.eat(/[KkMmGg]/);return'number'};if(t==':'){e.eatWhile(/[a-zA-Z_]/);e.eatWhile(/[a-zA-Z0-9_]/);return'operator'};e.eatWhile(/\w/);var o=e.current();if((o=='text')&&e.eat(':')){n.tokenize=f;return'string'};if(i.propertyIsEnumerable(o))return'keyword';if(u.propertyIsEnumerable(o))return'atom';return null};function f(e,t){t._multiLineString=!0;if(!e.sol()){e.eatSpace();if(e.peek()=='#'){e.skipToEnd();return'comment'};e.skipToEnd();return'string'};if((e.next()=='.')&&(e.eol())){t._multiLineString=!1;t.tokenize=n};return'string'};function r(e,t){var i=!1,r;while((r=e.next())!=null){if(i&&r=='/'){t.tokenize=n;break};i=(r=='*')};return'comment'};function l(e){return function(t,r){var i=!1,u;while((u=t.next())!=null){if(u==e&&!i)break;i=!i&&u=='\\'};if(!i)r.tokenize=n;return'string'}};return{startState:function(e){return{tokenize:n,baseIndent:e||0,_indent:[]}},token:function(e,t){if(e.eatSpace())return null;return(t.tokenize||n)(e,t)},indent:function(e,n){var t=e._indent.length;if(n&&(n[0]=='}'))t--;if(t<0)t=0;return t*o},electricChars:'}'}});e.defineMIME('application/sieve','sieve')});
+/* ./modules/editor/codemirror/mode/soy/soy.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed'],e);else e(CodeMirror)})(function(e){'use strict';var t=['template','literal','msg','fallbackmsg','let','if','elseif','else','switch','case','default','foreach','ifempty','for','call','param','deltemplate','delcall','log'];e.defineMode('soy',function(a){var r=e.getMode(a,'text/plain'),s={html:e.getMode(a,{name:'text/html',multilineTagIndentFactor:2,multilineTagIndentPastTag:!1}),attributes:r,text:r,uri:r,css:e.getMode(a,'text/css'),js:e.getMode(a,{name:'text/javascript',statementIndent:2*a.indentUnit})};function n(e){return e[e.length-1]};function l(e,t,s){if(e.sol()){for(var i=0;i<t.indent;i++){if(!e.eat(/\s/))break};if(i)return null};var a=e.string,r=s.exec(a.substr(e.pos));if(r){e.string=a.substr(0,e.pos+r.index)};var l=e.hideFirstChars(t.indent,function(){var a=n(t.localStates);return a.mode.token(e,a.state)});e.string=a;return l};function d(e,t){while(e){if(e.element===t)return!0;e=e.next};return!1};function i(e,t){return{element:t,next:e}};function o(e,t,a){return d(e,t)?'variable-2':(a?'variable':'variable-2 error')};function c(e){if(e.scopes){e.variables=e.scopes.element;e.scopes=e.scopes.next}};return{startState:function(){return{kind:[],kindTag:[],soyState:[],templates:null,variables:i(null,'ij'),scopes:null,indent:0,quoteKind:null,localStates:[{mode:s.html,state:e.startState(s.html)}]}},copyState:function(t){return{tag:t.tag,kind:t.kind.concat([]),kindTag:t.kindTag.concat([]),soyState:t.soyState.concat([]),templates:t.templates,variables:t.variables,scopes:t.scopes,indent:t.indent,quoteKind:t.quoteKind,localStates:t.localStates.map(function(t){return{mode:t.mode,state:e.copyState(t.mode,t.state)}})}},token:function(d,r){var u;switch(n(r.soyState)){case'comment':if(d.match(/^.*?\*\//)){r.soyState.pop()}
+else{d.skipToEnd()};if(!r.scopes){var h=/@param\??\s+(\S+)/g,g=d.current();for(var u;(u=h.exec(g));){r.variables=i(r.variables,u[1])}};return'comment';case'string':var u=d.match(/^.*?(["']|\\[\s\S])/);if(!u){d.skipToEnd()}
+else if(u[1]==r.quoteKind){r.quoteKind=null;r.soyState.pop()};return'string'};if(d.match(/^\/\*/)){r.soyState.push('comment');return'comment'}
+else if(d.match(d.sol()||(r.soyState.length&&n(r.soyState)!='literal')?/^\s*\/\/.*/:/^\s+\/\/.*/)){return'comment'};switch(n(r.soyState)){case'templ-def':if(u=d.match(/^\.?([\w]+(?!\.[\w]+)*)/)){r.templates=i(r.templates,u[1]);r.scopes=i(r.scopes,r.variables);r.soyState.pop();return'def'};d.next();return null;case'templ-ref':if(u=d.match(/^\.?([\w]+)/)){r.soyState.pop();if(u[0][0]=='.'){return o(r.templates,u[1],!0)};return'variable'};d.next();return null;case'param-def':if(u=d.match(/^\w+/)){r.variables=i(r.variables,u[0]);r.soyState.pop();r.soyState.push('param-type');return'def'};d.next();return null;case'param-type':if(d.peek()=='}'){r.soyState.pop();return null};if(d.eatWhile(/^[\w]+/)){return'variable-3'};d.next();return null;case'var-def':if(u=d.match(/^\$([\w]+)/)){r.variables=i(r.variables,u[1]);r.soyState.pop();return'def'};d.next();return null;case'tag':if(d.match(/^\/?}/)){if(r.tag=='/template'||r.tag=='/deltemplate'){c(r);r.variables=i(null,'ij');r.indent=0}
+else{if(r.tag=='/for'||r.tag=='/foreach'){c(r)};r.indent-=a.indentUnit*(d.current()=='/}'||t.indexOf(r.tag)==-1?2:1)};r.soyState.pop();return'keyword'}
+else if(d.match(/^([\w?]+)(?==)/)){if(d.current()=='kind'&&(u=d.match(/^="([^"]+)/,!1))){var p=u[1];r.kind.push(p);r.kindTag.push(r.tag);var f=s[p]||s.html,m=n(r.localStates);if(m.mode.indent){r.indent+=m.mode.indent(m.state,'')};r.localStates.push({mode:f,state:e.startState(f)})};return'attribute'}
+else if(u=d.match(/^["']/)){r.soyState.push('string');r.quoteKind=u;return'string'};if(u=d.match(/^\$([\w]+)/)){return o(r.variables,u[1])};if(u=d.match(/^\w+/)){return/^(?:as|and|or|not|in)$/.test(u[0])?'keyword':null};d.next();return null;case'literal':if(d.match(/^(?=\{\/literal})/)){r.indent-=a.indentUnit;r.soyState.pop();return this.token(d,r)};return l(d,r,/\{\/literal}/)};if(d.match(/^\{literal}/)){r.indent+=a.indentUnit;r.soyState.push('literal');return'keyword'}
+else if(u=d.match(/^\{([\/@\\]?\w+\??)(?=[\s\}]|\/[/*])/)){if(u[1]!='/switch')r.indent+=(/^(\/|(else|elseif|ifempty|case|fallbackmsg|default)$)/.test(u[1])&&r.tag!='switch'?1:2)*a.indentUnit;r.tag=u[1];if(r.tag=='/'+n(r.kindTag)){r.kind.pop();r.kindTag.pop();r.localStates.pop();var m=n(r.localStates);if(m.mode.indent){r.indent-=m.mode.indent(m.state,'')}};r.soyState.push('tag');if(r.tag=='template'||r.tag=='deltemplate'){r.soyState.push('templ-def')}
+else if(r.tag=='call'||r.tag=='delcall'){r.soyState.push('templ-ref')}
+else if(r.tag=='let'){r.soyState.push('var-def')}
+else if(r.tag=='for'||r.tag=='foreach'){r.scopes=i(r.scopes,r.variables);r.soyState.push('var-def')}
+else if(r.tag=='namespace'){if(!r.scopes){r.variables=i(null,'ij')}}
+else if(r.tag.match(/^@(?:param\??|inject)/)){r.soyState.push('param-def')};return'keyword'}
+else if(d.eat('{')){r.tag='print';r.indent+=2*a.indentUnit;r.soyState.push('tag');return'keyword'};return l(d,r,/\{|\s+\/\/|\/\*/)},indent:function(t,i){var s=t.indent,l=n(t.soyState);if(l=='comment')return e.Pass;if(l=='literal'){if(/^\{\/literal}/.test(i))s-=a.indentUnit}
+else{if(/^\s*\{\/(template|deltemplate)\b/.test(i))return 0;if(/^\{(\/|(fallbackmsg|elseif|else|ifempty)\b)/.test(i))s-=a.indentUnit;if(t.tag!='switch'&&/^\{(case|default)\b/.test(i))s-=a.indentUnit;if(/^\{\/switch\b/.test(i))s-=a.indentUnit};var r=n(t.localStates);if(s&&r.mode.indent){s+=r.mode.indent(r.state,i)};return s},innerMode:function(e){if(e.soyState.length&&n(e.soyState)!='literal')return null;else return n(e.localStates)},electricInput:/^\s*\{(\/|\/template|\/deltemplate|\/switch|fallbackmsg|elseif|else|case|default|ifempty|\/literal\})$/,lineComment:'//',blockCommentStart:'/*',blockCommentEnd:'*/',blockCommentContinue:' * ',useInnerComments:!1,fold:'indent'}},'htmlmixed');e.registerHelper('hintWords','soy',t.concat(['delpackage','namespace','alias','print','css','debugger']));e.defineMIME('text/x-soy','soy')});
+/* ./modules/editor/codemirror/mode/pig/pig.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('pig',function(e,O){var E=O.keywords,t=O.builtins,I=O.types,A=O.multiLineStrings,T=/[*+\-%<>=&?:\/!|]/;function N(e,O,T){O.tokenize=T;return T(e,O)};function n(e,O){var E=!1,T;while(T=e.next()){if(T=='/'&&E){O.tokenize=r;break};E=(T=='*')};return'comment'};function R(e){return function(O,T){var E=!1,t,I=!1;while((t=O.next())!=null){if(t==e&&!E){I=!0;break};E=!E&&t=='\\'};if(I||!(E||A))T.tokenize=r;return'error'}};function r(e,r){var O=e.next();if(O=='"'||O=='\'')return N(e,r,R(O));else if(/[\[\]{}\(\),;\.]/.test(O))return null;else if(/\d/.test(O)){e.eatWhile(/[\w\.]/);return'number'}
+else if(O=='/'){if(e.eat('*')){return N(e,r,n)}
+else{e.eatWhile(T);return'operator'}}
+else if(O=='-'){if(e.eat('-')){e.skipToEnd();return'comment'}
+else{e.eatWhile(T);return'operator'}}
+else if(T.test(O)){e.eatWhile(T);return'operator'}
+else{e.eatWhile(/[\w\$_]/);if(E&&E.propertyIsEnumerable(e.current().toUpperCase())){if(!e.eat(')')&&!e.eat('.'))return'keyword'};if(t&&t.propertyIsEnumerable(e.current().toUpperCase()))return'variable-2';if(I&&I.propertyIsEnumerable(e.current().toUpperCase()))return'variable-3';return'variable'}};return{startState:function(){return{tokenize:r,startOfLine:!0}},token:function(e,O){if(e.eatSpace())return null;var T=O.tokenize(e,O);return T}}});(function(){function O(e){var T={},r=e.split(' ');for(var O=0;O<r.length;++O)T[r[O]]=!0;return T};var T='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 ',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',E='BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ';e.defineMIME('text/x-pig',{name:'pig',builtins:O(T),keywords:O(r),types:O(E)});e.registerHelper('hintWords','pig',(T+E+r).split(' '))}())});
+/* ./modules/editor/codemirror/mode/apl/apl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('apl',function(){var a={'.':'innerProduct','\\':'scan','/':'reduce','⌿':'reduce1Axis','⍀':'scan1Axis','¨':'each','⍣':'power'};var e={'+':['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'],'<':[null,'lessThan'],'≤':[null,'lessThanOrEqual'],'=':[null,'equals'],'>':[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']};var n=/[\.\/⌿⍀¨⍣]/,t=/⍬/,r=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,l=/←/,i=/[⍝#].*$/,u=function(e){var n;n=!1;return function(t){n=t;if(t===e){return n==='\\'};return!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(s,f){var o,c;if(s.eatSpace()){return null};o=s.next();if(o==='"'||o==='\''){s.eatWhile(u(o));s.next();f.prev=!0;return'string'};if(/[\[{\(]/.test(o)){f.prev=!1;return null};if(/[\]}\)]/.test(o)){f.prev=!0;return null};if(t.test(o)){f.prev=!1;return'niladic'};if(/[¯\d]/.test(o)){if(f.func){f.func=!1;f.prev=!1}
+else{f.prev=!0};s.eatWhile(/[\w\.]/);return'number'};if(n.test(o)){return'operator apl-'+a[o]};if(l.test(o)){return'apl-arrow'};if(r.test(o)){c='apl-';if(e[o]!=null){if(f.prev){c+=e[o][1]}
+else{c+=e[o][0]}};f.func=!0;f.prev=!1;return'function '+c};if(i.test(o)){s.skipToEnd();return'comment'};if(o==='∘'&&s.peek()==='.'){s.next();return'function jot-dot'};s.eatWhile(/[\w\$_]/);f.prev=!0;return'keyword'}}});e.defineMIME('text/apl','apl')});
+/* ./modules/editor/codemirror/mode/crystal/crystal.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('crystal',function(e){function r(e,t){return new RegExp((t?'':'^')+'(?:'+e.join('|')+')'+(t?'$':'\\b'))};function t(e,t,n){n.tokenize.push(e);return e(t,n)};var c=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,s=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,h=/^(?:\[\][?=]?)/,z=/^(?:\.(?:\.{2})?|->|[?:])/,u=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,o=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,b=r(['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__']),x=r(['true','false','nil','self']),y=['def','fun','macro','class','module','struct','lib','enum','union','do','for'],g=r(y),I=['if','unless','case','while','until','begin','then'],w=r(I),p=['end','else','elsif','rescue','ensure'],v=r(p),d=['\\)','\\}','\\]'],S=new RegExp('^(?:'+d.join('|')+')$'),k={'def':F,'fun':F,'macro':E,'class':i,'module':i,'struct':i,'lib':i,'enum':i,'union':i};var f={'[':']','{':'}','(':')','<':'>'};function l(e,r){if(e.eatSpace()){return null};if(r.lastToken!='\\'&&e.match('{%',!1)){return t(n('%','%'),e,r)};if(r.lastToken!='\\'&&e.match('{{',!1)){return t(n('{','}'),e,r)};if(e.peek()=='#'){e.skipToEnd();return'comment'};var i;if(e.match(u)){e.eat(/[?!]/);i=e.current();if(e.eat(':')){return'atom'}
+else if(r.lastToken=='.'){return'property'}
+else if(b.test(i)){if(g.test(i)){if(!(i=='fun'&&r.blocks.indexOf('lib')>=0)&&!(i=='def'&&r.lastToken=='abstract')){r.blocks.push(i);r.currentIndent+=1}}
+else if((r.lastStyle=='operator'||!r.lastStyle)&&w.test(i)){r.blocks.push(i);r.currentIndent+=1}
+else if(i=='end'){r.blocks.pop();r.currentIndent-=1};if(k.hasOwnProperty(i)){r.tokenize.push(k[i])};return'keyword'}
+else if(x.test(i)){return'atom'};return'variable'};if(e.eat('@')){if(e.peek()=='['){return t(a('[',']','meta'),e,r)};e.eat('@');e.match(u)||e.match(o);return'variable-2'};if(e.match(o)){return'tag'};if(e.eat(':')){if(e.eat('"')){return t(m('"','atom',!1),e,r)}
+else if(e.match(u)||e.match(o)||e.match(c)||e.match(s)||e.match(h)){return'atom'};e.eat(':');return'operator'};if(e.eat('"')){return t(m('"','string',!0),e,r)};if(e.peek()=='%'){var d='string',p=!0,l;if(e.match('%r')){d='string-2';l=e.next()}
+else if(e.match('%w')){p=!1;l=e.next()}
+else if(e.match('%q')){p=!1;l=e.next()}
+else{if(l=e.match(/^%([^\w\s=])/)){l=l[1]}
+else if(e.match(/^%[a-zA-Z0-9_\u009F-\uFFFF]*/)){return'meta'}
+else{return'operator'}};if(f.hasOwnProperty(l)){l=f[l]};return t(m(l,d,p),e,r)};if(i=e.match(/^<<-('?)([A-Z]\w*)\1/)){return t(A(i[2],!i[1]),e,r)};if(e.eat('\'')){e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/);e.eat('\'');return'atom'};if(e.eat('0')){if(e.eat('x')){e.match(/^[0-9a-fA-F]+/)}
+else if(e.eat('o')){e.match(/^[0-7]+/)}
+else if(e.eat('b')){e.match(/^[01]+/)};return'number'};if(e.eat(/^\d/)){e.match(/^\d*(?:\.\d+)?(?:[eE][+-]?\d+)?/);return'number'};if(e.match(c)){e.eat('=');return'operator'};if(e.match(s)||e.match(z)){return'operator'};if(i=e.match(/[({[]/,!1)){i=i[0];return t(a(i,f[i],null),e,r)};if(e.eat('\\')){e.next();return'meta'};e.next();return null};function a(e,t,n,r){return function(i,u){if(!r&&i.match(e)){u.tokenize[u.tokenize.length-1]=a(e,t,n,!0);u.currentIndent+=1;return n};var o=l(i,u);if(i.current()===t){u.tokenize.pop();u.currentIndent-=1;o=n};return o}};function n(e,t,r){return function(i,u){if(!r&&i.match('{'+e)){u.currentIndent+=1;u.tokenize[u.tokenize.length-1]=n(e,t,!0);return'meta'};if(i.match(t+'}')){u.currentIndent-=1;u.tokenize.pop();return'meta'};return l(i,u)}};function E(e,t){if(e.eatSpace()){return null};var n;if(n=e.match(u)){if(n=='def'){return'keyword'};e.eat(/[?!]/)};t.tokenize.pop();return'def'};function F(e,t){if(e.eatSpace()){return null};if(e.match(u)){e.eat(/[!?]/)}
+else{e.match(c)||e.match(s)||e.match(h)};t.tokenize.pop();return'def'};function i(e,t){if(e.eatSpace()){return null};e.match(o);t.tokenize.pop();return'def'};function m(t,e,r){return function(i,u){var o=!1;while(i.peek()){if(!o){if(i.match('{%',!1)){u.tokenize.push(n('%','%'));return e};if(i.match('{{',!1)){u.tokenize.push(n('{','}'));return e};if(r&&i.match('#{',!1)){u.tokenize.push(a('#{','}','meta'));return e};var f=i.next();if(f==t){u.tokenize.pop();return e};o=r&&f=='\\'}
+else{i.next();o=!1}};return e}};function A(e,t){return function(r,i){if(r.sol()){r.eatSpace();if(r.match(e)){i.tokenize.pop();return'string'}};var u=!1;while(r.peek()){if(!u){if(r.match('{%',!1)){i.tokenize.push(n('%','%'));return'string'};if(r.match('{{',!1)){i.tokenize.push(n('{','}'));return'string'};if(t&&r.match('#{',!1)){i.tokenize.push(a('#{','}','meta'));return'string'};u=t&&r.next()=='\\'}
+else{r.next();u=!1}};return'string'}};return{startState:function(){return{tokenize:[l],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();if(n&&n!='comment'){t.lastToken=r;t.lastStyle=n};return n},indent:function(t,n){n=n.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,'');if(v.test(n)||S.test(n)){return e.indentUnit*(t.currentIndent-1)};return e.indentUnit*t.currentIndent},fold:'indent',electricInput:r(d.concat(p),!0),lineComment:'#'}});e.defineMIME('text/x-crystal','crystal')});
+/* ./modules/editor/codemirror/mode/clike/clike.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(t){'use strict';function d(e,t,n,r,i,a){this.indented=e;this.column=t;this.type=n;this.info=r;this.align=i;this.prev=a};function u(e,t,n,r){var i=e.indented;if(e.context&&e.context.type=='statement'&&n!='statement')i=e.context.indented;return e.context=new d(i,t,n,r,null,e.context)};function l(e){var t=e.context.type;if(t==')'||t==']'||t=='}')e.indented=e.context.indented;return e.context=e.context.prev};function p(e,t,n){if(t.prevToken=='variable'||t.prevToken=='type')return!0;if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n)))return!0;if(t.typeAtEndOfLine&&e.column()==e.indentation())return!0};function m(e){for(;;){if(!e||e.type=='top')return!0;if(e.type=='}'&&e.prev.info!='namespace')return!1;e=e.prev}};t.defineMode('clike',function(n,e){var o=n.indentUnit,c=e.statementIndentUnit||o,k=e.dontAlignCalls,v=e.keywords||{},S=e.types||{},C=e.builtin||{},f=e.blockKeywords||{},T=e.defKeywords||{},M=e.atoms||{},a=e.hooks||{},P=e.multiLineStrings,D=e.indentStatements!==!1,L=e.indentSwitch!==!1,h=e.namespaceSeparator,I=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,F=e.numberStart||/[\d\.]/,z=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,g=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,y=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/;var r,s;function x(e,t){var n=e.next();if(a[n]){var l=a[n](e,t);if(l!==!1)return l};if(n=='"'||n=='\''){t.tokenize=j(n);return t.tokenize(e,t)};if(I.test(n)){r=n;return null};if(F.test(n)){e.backUp(1);if(e.match(z))return'number';e.next()};if(n=='/'){if(e.eat('*')){t.tokenize=w;return w(e,t)};if(e.eat('/')){e.skipToEnd();return'comment'}};if(g.test(n)){while(!e.match(/^\/[\/*]/,!1)&&e.eat(g)){};return'operator'};e.eatWhile(y);if(h)while(e.match(h))e.eatWhile(y);var o=e.current();if(i(v,o)){if(i(f,o))r='newstatement';if(i(T,o))s=!0;return'keyword'};if(i(S,o))return'type';if(i(C,o)){if(i(f,o))r='newstatement';return'builtin'};if(i(M,o))return'atom';return'variable'};function j(e){return function(t,n){var r=!1,i,a=!1;while((i=t.next())!=null){if(i==e&&!r){a=!0;break};r=!r&&i=='\\'};if(a||!(r||P))n.tokenize=null;return'string'}};function w(e,t){var r=!1,n;while(n=e.next()){if(n=='/'&&r){t.tokenize=null;break};r=(n=='*')};return'comment'};function b(t,n){if(e.typeFirstDefinitions&&t.eol()&&m(n.context))n.typeAtEndOfLine=p(t,n,t.pos)};return{startState:function(e){return{tokenize:null,context:new d((e||0)-o,0,'top',null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(t,n){var i=n.context;if(t.sol()){if(i.align==null)i.align=!1;n.indented=t.indentation();n.startOfLine=!0};if(t.eatSpace()){b(t,n);return null};r=s=null;var o=(n.tokenize||x)(t,n);if(o=='comment'||o=='meta')return o;if(i.align==null)i.align=!0;if(r==';'||r==':'||(r==','&&t.match(/^\s*(?:\/\/.*)?$/,!1)))while(n.context.type=='statement')l(n);else if(r=='{')u(n,t.column(),'}');else if(r=='[')u(n,t.column(),']');else if(r=='(')u(n,t.column(),')');else if(r=='}'){while(i.type=='statement')i=l(n);if(i.type=='}')i=l(n);while(i.type=='statement')i=l(n)}
+else if(r==i.type)l(n);else if(D&&(((i.type=='}'||i.type=='top')&&r!=';')||(i.type=='statement'&&r=='newstatement'))){u(n,t.column(),'statement',t.current())};if(o=='variable'&&((n.prevToken=='def'||(e.typeFirstDefinitions&&p(t,n,t.start)&&m(n.context)&&t.match(/^\s*\(/,!1)))))o='def';if(a.token){var c=a.token(t,n,o);if(c!==undefined)o=c};if(o=='def'&&e.styleDefs===!1)o='variable';n.startOfLine=!1;n.prevToken=s?'def':o||r;b(t,n);return o},indent:function(n,r){if(n.tokenize!=x&&n.tokenize!=null||n.typeAtEndOfLine)return t.Pass;var i=n.context,s=r&&r.charAt(0);if(i.type=='statement'&&s=='}')i=i.prev;if(e.dontIndentStatements)while(i.type=='statement'&&e.dontIndentStatements.test(i.info))i=i.prev;if(a.indent){var u=a.indent(n,i,r);if(typeof u=='number')return u};var l=s==i.type,f=i.prev&&i.prev.info=='switch';if(e.allmanIndentation&&/[{(]/.test(s)){while(i.type!='top'&&i.type!='}')i=i.prev;return i.indented};if(i.type=='statement')return i.indented+(s=='{'?0:c);if(i.align&&(!k||i.type!=')'))return i.column+(l?0:1);if(i.type==')'&&!l)return i.indented+c;return i.indented+(l?0:o)+(!l&&f&&!/^(?:case|default)\b/.test(r)?o:0)},electricInput:L?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:'/*',blockCommentEnd:'*/',blockCommentContinue:' * ',lineComment:'//',fold:'brace'}});function e(e){var n={},r=e.split(' ');for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};function i(e,t){if(typeof e==='function'){return e(t)}
+else{return e.propertyIsEnumerable(t)}};var c='auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile',o='int long char short double float unsigned signed void size_t ptrdiff_t';function a(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if(n=='\\'&&e.match(/^.$/)){r=a;break}
+else if(n=='/'&&e.match(/^\/[\/\*]/,!1)){break};e.next()};t.tokenize=r;return'meta'};function h(e,t){if(t.prevToken=='type')return'type';return!1};function r(e){e.eatWhile(/[\w\.']/);return'number'};function f(e,t){e.backUp(1);if(e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);if(!n){return!1};t.cpp11RawStringDelim=n[1];t.tokenize=y;return y(e,t)};if(e.match(/(u8|u|U|L)/)){if(e.match(/["']/,!1)){return'string'};return!1};e.next();return!1};function w(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]};function g(e,t){var n;while((n=e.next())!=null){if(n=='"'&&!e.eat('"')){t.tokenize=null;break}};return'string'};function y(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,'\\$&'),r=e.match(new RegExp('.*?\\)'+n+'"'));if(r)t.tokenize=null;else e.skipToEnd();return'string'};function n(e,n){if(typeof e=='string')e=[e];var a=[];function r(e){if(e)for(var t in e)if(e.hasOwnProperty(t))a.push(t)};r(n.keywords);r(n.types);r(n.builtin);r(n.atoms);if(a.length){n.helperType=e[0];t.registerHelper('hintWords',e[0],a)};for(var i=0;i<e.length;++i)t.defineMIME(e[i],n)};n(['text/x-csrc','text/x-c','text/x-chdr'],{name:'clike',keywords:e(c),types:e(o+' bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t'),blockKeywords:e('case do else for if switch while struct'),defKeywords:e('struct'),typeFirstDefinitions:!0,atoms:e('null true false'),hooks:{'#':a,'*':h},modeProps:{fold:['brace','include']}});n(['text/x-c++src','text/x-c++hdr'],{name:'clike',keywords:e(c+' asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override'),types:e(o+' bool wchar_t'),blockKeywords:e('catch class do else finally for if struct switch try while'),defKeywords:e('class namespace struct enum union'),typeFirstDefinitions:!0,atoms:e('true false null'),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{'#':a,'*':h,'u':f,'U':f,'L':f,'R':f,'0':r,'1':r,'2':r,'3':r,'4':r,'5':r,'6':r,'7':r,'8':r,'9':r,token:function(e,t,n){if(n=='variable'&&e.peek()=='('&&(t.prevToken==';'||t.prevToken==null||t.prevToken=='}')&&w(e.current()))return'def'}},namespaceSeparator:'::',modeProps:{fold:['brace','include']}});n('text/x-java',{name:'clike',keywords:e('abstract assert break case catch class const continue default do else enum extends final finally float 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:e('byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void'),blockKeywords:e('catch class do else finally for if switch try while'),defKeywords:e('class interface enum @interface'),typeFirstDefinitions:!0,atoms:e('true false null'),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{'@':function(e){if(e.match('interface',!1))return!1;e.eatWhile(/[\w\$_]/);return'meta'}},modeProps:{fold:['brace','import']}});n('text/x-csharp',{name:'clike',keywords:e('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:e('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:e('catch class do else finally for foreach if struct switch try while'),defKeywords:e('class interface namespace struct var'),typeFirstDefinitions:!0,atoms:e('true false null'),hooks:{'@':function(e,t){if(e.eat('"')){t.tokenize=g;return g(e,t)};e.eatWhile(/[\w\$_]/);return'meta'}}});function b(e,t){var n=!1;while(!e.eol()){if(!n&&e.match('"""')){t.tokenize=null;break};n=e.next()=='\\'&&!n};return'string'};n('text/x-scala',{name:'clike',keywords:e('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:e('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:e('catch class enum do else finally for forSome if match switch try while'),defKeywords:e('class enum def object package trait type val var'),atoms:e('true false null'),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{'@':function(e){e.eatWhile(/[\w\$_]/);return'meta'},'"':function(e,t){if(!e.match('""'))return!1;t.tokenize=b;return t.tokenize(e,t)},'\'':function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return'atom'},'=':function(e,t){var n=t.context;if(n.type=='}'&&n.align&&e.eat('>')){t.context=new d(n.indented,n.column,n.type,n.info,null,n.prev);return'operator'}
+else{return!1}}},modeProps:{closeBrackets:{triples:'"'}}});function k(e){return function(t,n){var r=!1,i,a=!1;while(!t.eol()){if(!e&&!r&&t.match('"')){a=!0;break};if(e&&t.match('"""')){a=!0;break};i=t.next();if(!r&&i=='$'&&t.match('{'))t.skipTo('}');r=!r&&i=='\\'&&!e};if(a||!e)n.tokenize=null;return'string'}};n('text/x-kotlin',{name:'clike',keywords:e('package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend'),types:e('Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void'),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:e('catch class do else finally for if where try while enum'),defKeywords:e('class val var object interface fun'),atoms:e('true false null this'),hooks:{'"':function(e,t){t.tokenize=k(e.match('""'));return t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}});n(['x-shader/x-vertex','x-shader/x-fragment'],{name:'clike',keywords:e('sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout'),types:e('float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4'),blockKeywords:e('for while do if else struct'),builtin:e('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:e('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:{'#':a},modeProps:{fold:['brace','include']}});n('text/x-nesc',{name:'clike',keywords:e(c+'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:e(o),blockKeywords:e('case do else for if switch while struct'),atoms:e('null true false'),hooks:{'#':a},modeProps:{fold:['brace','include']}});n('text/x-objectivec',{name:'clike',keywords:e(c+'inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly'),types:e(o),atoms:e('YES NO NULL NILL ON OFF true false'),hooks:{'@':function(e){e.eatWhile(/[\w\$]/);return'keyword'},'#':a,indent:function(e,t,n){if(t.type=='statement'&&/^@\w/.test(n))return t.indented}},modeProps:{fold:'brace'}});n('text/x-squirrel',{name:'clike',keywords:e('base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static'),types:e(o),blockKeywords:e('case catch class else for foreach if switch try while'),defKeywords:e('function local class'),typeFirstDefinitions:!0,atoms:e('true false null'),hooks:{'#':a},modeProps:{fold:['brace','include']}});var s=null;function x(e){return function(t,n){var r=!1,a,i=!1;while(!t.eol()){if(!r&&t.match('"')&&(e=='single'||t.match('""'))){i=!0;break};if(!r&&t.match('``')){s=x(e);i=!0;break};a=t.next();r=e=='single'&&!r&&a=='\\'};if(i)n.tokenize=null;return'string'}};n('text/x-ceylon',{name:'clike',keywords:e('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(e){var t=e.charAt(0);return(t===t.toUpperCase()&&t!==t.toLowerCase())},blockKeywords:e('case catch class dynamic else finally for function if interface module new object switch try while'),defKeywords:e('class dynamic function interface module object package value'),builtin:e('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:e('true false null larger smaller equal empty finished'),indentSwitch:!1,styleDefs:!1,hooks:{'@':function(e){e.eatWhile(/[\w\$_]/);return'meta'},'"':function(e,t){t.tokenize=x(e.match('""')?'triple':'single');return t.tokenize(e,t)},'`':function(e,t){if(!s||!e.match('`'))return!1;t.tokenize=s;s=null;return t.tokenize(e,t)},'\'':function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return'atom'},token:function(e,t,n){if((n=='variable'||n=='type')&&t.prevToken=='.'){return'variable-2'}}},modeProps:{fold:['brace','import'],closeBrackets:{triples:'"'}}})});
+/* ./modules/editor/codemirror/mode/oz/oz.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('oz',function(e){function n(e){return new RegExp('^(('+e.join(')|(')+'))\\b')};var c=/[\^@!\|<>#~\.\*\-\+\\/,=]/,f=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,s=/(:::)|(\.\.\.)|(=<:)|(>=:)/,r=['in','then','else','of','elseof','elsecase','elseif','catch','finally','with','require','prepare','import','export','define','do'],i=['end'],l=n(['true','false','nil','unit']),d=n(['andthen','at','attr','declare','feat','from','lex','mod','div','mode','orelse','parser','prod','prop','scanner','self','syn','token']),m=n(['local','proc','fun','case','class','if','cond','or','dis','choice','not','thread','try','raise','lock','for','suchthat','meth','functor']),o=n(r),a=n(i);function t(e,t){if(e.eatSpace()){return null};if(e.match(/[{}]/)){return'bracket'};if(e.match(/(\[])/)){return'keyword'};if(e.match(s)||e.match(f)){return'operator'};if(e.match(l)){return'atom'};var r=e.match(m);if(r){if(!t.doInCurrentLine)t.currentIndent++;else t.doInCurrentLine=!1;if(r[0]=='proc'||r[0]=='fun')t.tokenize=p;else if(r[0]=='class')t.tokenize=h;else if(r[0]=='meth')t.tokenize=k;return'keyword'};if(e.match(o)||e.match(d)){return'keyword'};if(e.match(a)){t.currentIndent--;return'keyword'};var n=e.next();if(n=='"'||n=='\''){t.tokenize=z(n);return t.tokenize(e,t)};if(/[~\d]/.test(n)){if(n=='~'){if(!/^[0-9]/.test(e.peek()))return null;else if((e.next()=='0'&&e.match(/^[xX][0-9a-fA-F]+/))||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return'number'};if((n=='0'&&e.match(/^[xX][0-9a-fA-F]+/))||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return'number';return null};if(n=='%'){e.skipToEnd();return'comment'}
+else if(n=='/'){if(e.eat('*')){t.tokenize=u;return u(e,t)}};if(c.test(n)){return'operator'};e.eatWhile(/\w/);return'variable'};function h(e,n){if(e.eatSpace()){return null};e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);n.tokenize=t;return'variable-3'};function k(e,n){if(e.eatSpace()){return null};e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);n.tokenize=t;return'def'};function p(e,n){if(e.eatSpace()){return null};if(!n.hasPassedFirstStage&&e.eat('{')){n.hasPassedFirstStage=!0;return'bracket'}
+else if(n.hasPassedFirstStage){e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);n.hasPassedFirstStage=!1;n.tokenize=t;return'def'}
+else{n.tokenize=t;return null}};function u(e,n){var i=!1,r;while(r=e.next()){if(r=='/'&&i){n.tokenize=t;break};i=(r=='*')};return'comment'};function z(e){return function(n,r){var i=!1,o,a=!1;while((o=n.next())!=null){if(o==e&&!i){a=!0;break};i=!i&&o=='\\'};if(a||!i)r.tokenize=t;return'string'}};function b(){var e=r.concat(i);return new RegExp('[\\[\\]]|('+e.join('|')+')$')};return{startState:function(){return{tokenize:t,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){if(e.sol())t.doInCurrentLine=0;return t.tokenize(e,t)},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,'');if(r.match(a)||r.match(o)||r.match(/(\[])/))return e.indentUnit*(t.currentIndent-1);if(t.currentIndent<0)return 0;return t.currentIndent*e.indentUnit},fold:'indent',electricInput:b(),lineComment:'%',blockCommentStart:'/*',blockCommentEnd:'*/'}});e.defineMIME('text/x-oz','oz')});
+/* ./modules/editor/codemirror/mode/modelica/modelica.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("modelica",function(t,n){var u=t.indentUnit,f=n.keywords||{};var s=n.builtin||{};var a=n.atoms||{};var o=/[;=\(:\),{}.*<>+\-\/^\[\]]/,l=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,i=/[0-9]/,r=/[_a-zA-Z]/;function c(e,t){e.skipToEnd();t.tokenize=null;return"comment"};function p(e,t){var i=!1,n;while(n=e.next()){if(i&&n=="/"){t.tokenize=null;break};i=(n=="*")};return"comment"};function d(e,t){var n=!1,i;while((i=e.next())!=null){if(i=="\""&&!n){t.tokenize=null;t.sol=!1;break};n=!n&&i=="\\"};return"string"};function m(e,t){e.eatWhile(i);while(e.eat(i)||e.eat(r)){};var n=e.current();if(t.sol&&(n=="package"||n=="model"||n=="when"||n=="connector"))t.level++;else if(t.sol&&n=="end"&&t.level>0)t.level--;t.tokenize=null;t.sol=!1;if(f.propertyIsEnumerable(n))return"keyword";else if(s.propertyIsEnumerable(n))return"builtin";else if(a.propertyIsEnumerable(n))return"atom";else return"variable"};function k(e,t){while(e.eat(/[^']/)){};t.tokenize=null;t.sol=!1;if(e.eat("'"))return"variable";else return"error"};function h(e,t){e.eatWhile(i);if(e.eat(".")){e.eatWhile(i)};if(e.eat("e")||e.eat("E")){if(!e.eat("-"))e.eat("+");e.eatWhile(i)};t.tokenize=null;t.sol=!1;return"number"};return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(t,e){if(e.tokenize!=null){return e.tokenize(t,e)};if(t.sol()){e.sol=!0};if(t.eatSpace()){e.tokenize=null;return null};var n=t.next();if(n=="/"&&t.eat("/")){e.tokenize=c}
+else if(n=="/"&&t.eat("*")){e.tokenize=p}
+else if(l.test(n+t.peek())){t.next();e.tokenize=null;return"operator"}
+else if(o.test(n)){e.tokenize=null;return"operator"}
+else if(r.test(n)){e.tokenize=m}
+else if(n=="'"&&t.peek()&&t.peek()!="'"){e.tokenize=k}
+else if(n=="\""){e.tokenize=d}
+else if(i.test(n)){e.tokenize=h}
+else{e.tokenize=null;return"error"};return e.tokenize(t,e)},indent:function(t,n){if(t.tokenize!=null)return e.Pass;var i=t.level;if(/(algorithm)/.test(n))i--;if(/(equation)/.test(n))i--;if(/(initial algorithm)/.test(n))i--;if(/(initial equation)/.test(n))i--;if(/(end)/.test(n))i--;if(i>0)return u*i;else return 0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});function t(e){var n={},i=e.split(" ");for(var t=0;t<i.length;++t)n[i[t]]=!0;return n};var n="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",i="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",r="Real Boolean Integer String";function o(t,n){if(typeof t=="string")t=[t];var r=[];function o(e){if(e)for(var t in e)if(e.hasOwnProperty(t))r.push(t)};o(n.keywords);o(n.builtin);o(n.atoms);if(r.length){n.helperType=t[0];e.registerHelper("hintWords",t[0],r)};for(var i=0;i<t.length;++i)e.defineMIME(t[i],n)};o(["text/x-modelica"],{name:"modelica",keywords:t(n),builtin:t(i),atoms:t(r)})});
+/* ./modules/editor/codemirror/mode/gherkin/gherkin.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.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(a,e){if(a.sol()){e.lineNumber++;e.inKeywordLine=!1;if(e.inMultilineTable){e.tableHeaderLine=!1;if(!a.match(/\s*\|/,!1)){e.allowMultilineArgument=!1;e.inMultilineTable=!1}}};a.eatSpace();if(e.allowMultilineArgument){if(e.inMultilineString){if(a.match("\"\"\"")){e.inMultilineString=!1;e.allowMultilineArgument=!1}
+else{a.match(/.*/)};return"string"};if(e.inMultilineTable){if(a.match(/\|\s*/)){return"bracket"}
+else{a.match(/[^\|]*/);return e.tableHeaderLine?"header":"string"}};if(a.match("\"\"\"")){e.inMultilineString=!0;return"string"}
+else if(a.match("|")){e.inMultilineTable=!0;e.tableHeaderLine=!0;return"bracket"}};if(a.match(/#.*/)){return"comment"}
+else if(!e.inKeywordLine&&a.match(/@\S+/)){return"tag"}
+else if(!e.inKeywordLine&&e.allowFeature&&a.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):/)){e.allowScenario=!0;e.allowBackground=!0;e.allowPlaceholders=!1;e.allowSteps=!1;e.allowMultilineArgument=!1;e.inKeywordLine=!0;return"keyword"}
+else if(!e.inKeywordLine&&e.allowBackground&&a.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):/)){e.allowPlaceholders=!1;e.allowSteps=!0;e.allowBackground=!1;e.allowMultilineArgument=!1;e.inKeywordLine=!0;return"keyword"}
+else if(!e.inKeywordLine&&e.allowScenario&&a.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):/)){e.allowPlaceholders=!0;e.allowSteps=!0;e.allowMultilineArgument=!1;e.inKeywordLine=!0;return"keyword"}
+else if(e.allowScenario&&a.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):/)){e.allowPlaceholders=!1;e.allowSteps=!0;e.allowBackground=!1;e.allowMultilineArgument=!0;return"keyword"}
+else if(!e.inKeywordLine&&e.allowScenario&&a.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):/)){e.allowPlaceholders=!1;e.allowSteps=!0;e.allowBackground=!1;e.allowMultilineArgument=!1;e.inKeywordLine=!0;return"keyword"}
+else if(!e.inKeywordLine&&e.allowSteps&&a.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 |\* )/)){e.inStep=!0;e.allowPlaceholders=!0;e.allowMultilineArgument=!0;e.inKeywordLine=!0;return"keyword"}
+else if(a.match(/"[^"]*"?/)){return"string"}
+else if(e.allowPlaceholders&&a.match(/<[^>]*>?/)){return"variable"}
+else{a.next();a.eatWhile(/[^@"<#]/);return null}}}});e.defineMIME("text/x-feature","gherkin")});
+/* ./modules/editor/codemirror/mode/swift/swift.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function t(e){var n={};for(var t=0;t<e.length;t++)n[e[t]]=!0;return n};var i=t(['_','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__']),o=t(['var','let','class','enum','extension','import','protocol','struct','func','typealias','associatedtype','for']),a=t(['true','false','nil','self','super','_']),u=t(['Array','Bool','Character','Dictionary','Double','Float','Int','Int8','Int16','Int32','Int64','Never','Optional','Set','String','UInt8','UInt16','UInt32','UInt64','Void']),c='+-/*%=|&<>~^?!',f=':;,.(){}[]',l=/^\-?0b[01][01_]*/,d=/^\-?0o[0-7][0-7_]*/,s=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,p=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,m=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,h=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,v=/^\#[A-Za-z]+/,x=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function n(e,t,k){if(e.sol())t.indented=e.indentation();if(e.eatSpace())return null;var n=e.peek();if(n=='/'){if(e.match('//')){e.skipToEnd();return'comment'};if(e.match('/*')){t.tokenize.push(r);return r(e,t)}};if(e.match(v))return'builtin';if(e.match(x))return'attribute';if(e.match(l))return'number';if(e.match(d))return'number';if(e.match(s))return'number';if(e.match(p))return'number';if(e.match(h))return'property';if(c.indexOf(n)>-1){e.next();return'operator'};if(f.indexOf(n)>-1){e.next();e.match('..');return'punctuation'};if(n=='"'||n=='\''){e.next();var w=b(n);t.tokenize.push(w);return w(e,t)};if(e.match(m)){var y=e.current();if(u.hasOwnProperty(y))return'variable-2';if(a.hasOwnProperty(y))return'atom';if(i.hasOwnProperty(y)){if(o.hasOwnProperty(y))t.prev='define';return'keyword'};if(k=='define')return'def';return'variable'};e.next();return null};function y(){var e=0;return function(t,r,i){var o=n(t,r,i);if(o=='punctuation'){if(t.current()=='(')++e;else if(t.current()==')'){if(e==0){t.backUp(1);r.tokenize.pop();return r.tokenize[r.tokenize.length-1](t,r)}
+else--e}};return o}};function b(e){return function(t,n){var r,i=!1;while(r=t.next()){if(i){if(r=='('){n.tokenize.push(y());return'string'};i=!1}
+else if(r==e){break}
+else{i=r=='\\'}};n.tokenize.pop();return'string'}};function r(e,t){e.match(/^(?:[^*]|\*(?!\/))*/);if(e.match('*/'))t.tokenize.pop();return'comment'};function k(e,t,n){this.prev=e;this.align=t;this.indented=n};function w(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new k(e.context,n,e.indented)};function z(e){if(e.context){e.indented=e.context.indented;e.context=e.context.prev}};e.defineMode('swift',function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var o=t.prev;t.prev=null;var a=t.tokenize[t.tokenize.length-1]||n,r=a(e,t,o);if(!r||r=='comment')t.prev=o;else if(!t.prev)t.prev=r;if(r=='punctuation'){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());if(i)(i[1]?z:w)(t,e)};return r},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);if(r.align!=null)return r.align-(i?1:0);return r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:'//',blockCommentStart:'/*',blockCommentEnd:'*/',fold:'brace',closeBrackets:'()[]{}\'\'""``'}});e.defineMIME('text/x-swift','swift')});
+/* ./modules/editor/codemirror/mode/scheme/scheme.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('scheme',function(){var p='builtin',e='comment',r='string',a='atom',c='number',l='bracket',h=2;function s(e){var i={},n=e.split(' ');for(var t=0;t<n.length;++t)i[n[t]]=!0;return i};var n=s('λ 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->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? 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->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector 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->string 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->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?'),m=s('define let letrec let* lambda');function g(e,t,i){this.indent=e;this.type=t;this.prev=i};function t(e,t,i){e.indentStack=new g(t,i,e.indentStack)};function x(e){e.indentStack=e.indentStack.prev};var o=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),d=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),f=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),u=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);function b(e){return e.match(o)};function v(e){return e.match(d)};function i(e,t){if(t===!0){e.backUp(1)};return e.match(u)};function k(e){return e.match(f)};return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1}},token:function(s,o){if(o.indentStack==null&&s.sol()){o.indentation=s.indentation()};if(s.eatSpace()){return null};var d=null;switch(o.mode){case'string':var g,S=!1;while((g=s.next())!=null){if(g=='"'&&!S){o.mode=!1;break};S=!S&&g=='\\'};d=r;break;case'comment':var g,M=!1;while((g=s.next())!=null){if(g=='#'&&M){o.mode=!1;break};M=(g=='|')};d=e;break;case's-expr-comment':o.mode=!1;if(s.peek()=='('||s.peek()=='['){o.sExprComment=0}
+else{s.eatWhile(/[^/s]/);d=e;break};default:var f=s.next();if(f=='"'){o.mode='string';d=r}
+else if(f=='\''){d=a}
+else if(f=='#'){if(s.eat('|')){o.mode='comment';d=e}
+else if(s.eat(/[tf]/i)){d=a}
+else if(s.eat(';')){o.mode='s-expr-comment';d=e}
+else{var u=null,E=!1,C=!0;if(s.eat(/[ei]/i)){E=!0}
+else{s.backUp(1)};if(s.match(/^#b/i)){u=b}
+else if(s.match(/^#o/i)){u=v}
+else if(s.match(/^#x/i)){u=k}
+else if(s.match(/^#d/i)){u=i}
+else if(s.match(/^[-+0-9.]/,!1)){C=!1;u=i}
+else if(!E){s.eat('#')};if(u!=null){if(C&&!E){s.match(/^#[ei]/i)};if(u(s))d=c}}}
+else if(/^[-+0-9.]/.test(f)&&i(s,!0)){d=c}
+else if(f==';'){s.skipToEnd();d=e}
+else if(f=='('||f=='['){var y='',w=s.column(),q;while((q=s.eat(/[^\s\(\[\;\)\]]/))!=null){y+=q};if(y.length>0&&m.propertyIsEnumerable(y)){t(o,w+h,f)}
+else{s.eatSpace();if(s.eol()||s.peek()==';'){t(o,w+1,f)}
+else{t(o,w+s.current().length,f)}};s.backUp(s.current().length-1);if(typeof o.sExprComment=='number')o.sExprComment++;d=l}
+else if(f==')'||f==']'){d=l;if(o.indentStack!=null&&o.indentStack.type==(f==')'?'(':'[')){x(o);if(typeof o.sExprComment=='number'){if(--o.sExprComment==0){d=e;o.sExprComment=!1}}}}
+else{s.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);if(n&&n.propertyIsEnumerable(s.current())){d=p}
+else d='variable'}};return(typeof o.sExprComment=='number')?e:d},indent:function(e){if(e.indentStack==null)return e.indentation;return e.indentStack.indent},closeBrackets:{pairs:'()[]{}""'},lineComment:';;'}});e.defineMIME('text/x-scheme','scheme')});
+/* ./modules/editor/codemirror/mode/idl/idl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function i(e){return new RegExp('^(('+e.join(')|(')+'))\\b','i')};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_eigenproblem','la_eigenql','la_eigenvec','la_elmhes','la_gm_linear_model','la_hqr','la_invert','la_least_square_equality','la_least_squares','la_linear_equation','la_ludc','la_lumprove','la_lusol','la_svd','la_tridc','la_trimprove','la_triql','la_trired','la_trisol','label_date','label_region','ladfit','laguerre','lambda','lambdap','lambertw','laplacian','least_squares_filter','leefilt','legend','legendre','linbcg','lindgen','linfit','linkimage','list','ll_arc_distance','lmfit','lmgr','lngamma','lnp_test','loadct','locale_get','logical_and','logical_or','logical_true','lon64arr','lonarr','long','long64','lsode','lu_complex','ludc','lumprove','lusol','m_correlate','machar','make_array','make_dll','make_rt','map','mapcontinents','mapgrid','map_2points','map_continents','map_grid','map_image','map_patch','map_proj_forward','map_proj_image','map_proj_info','map_proj_init','map_proj_inverse','map_set','matrix_multiply','matrix_power','max','md_test','mean','meanabsdev','mean_filter','median','memory','mesh_clip','mesh_decimate','mesh_issolid','mesh_merge','mesh_numtriangles','mesh_obj','mesh_smooth','mesh_surfacearea','mesh_validate','mesh_volume','message','min','min_curve_surf','mk_html_help','modifyct','moment','morph_close','morph_distance','morph_gradient','morph_hitormiss','morph_open','morph_thin','morph_tophat','multi','n_elements','n_params','n_tags','ncdf','newton','noise_hurl','noise_pick','noise_scatter','noise_slur','norm','obj_class','obj_destroy','obj_hasmethod','obj_isa','obj_new','obj_valid','objarr','on_error','on_ioerror','online_help','openr','openu','openw','oplot','oploterr','orderedhash','p_correlate','parse_url','particle_trace','path_cache','path_sep','pcomp','plot','plot3d','plot','plot_3dbox','plot_field','ploterr','plots','polar_contour','polar_surface','polyfill','polyshade','pnt_line','point_lun','polarplot','poly','poly_2d','poly_area','poly_fit','polyfillv','polygon','polyline','polywarp','popd','powell','pref_commit','pref_get','pref_set','prewitt','primes','print','printf','printd','pro','product','profile','profiler','profiles','project_vol','ps_show_fonts','psafm','pseudo','ptr_free','ptr_new','ptr_valid','ptrarr','pushd','qgrid3','qhull','qromb','qromo','qsimp','query_*','query_ascii','query_bmp','query_csv','query_dicom','query_gif','query_image','query_jpeg','query_jpeg2000','query_mrsid','query_pict','query_png','query_ppm','query_srf','query_tiff','query_video','query_wav','r_correlate','r_test','radon','randomn','randomu','ranks','rdpix','read','readf','read_ascii','read_binary','read_bmp','read_csv','read_dicom','read_gif','read_image','read_interfile','read_jpeg','read_jpeg2000','read_mrsid','read_pict','read_png','read_ppm','read_spr','read_srf','read_sylk','read_tiff','read_video','read_wav','read_wave','read_x11_bitmap','read_xwd','reads','readu','real_part','rebin','recall_commands','recon3','reduce_colors','reform','region_grow','register_cursor','regress','replicate','replicate_inplace','resolve_all','resolve_routine','restore','retall','return','reverse','rk4','roberts','rot','rotate','round','routine_filepath','routine_info','rs_test','s_test','save','savgol','scale3','scale3d','scatterplot','scatterplot3d','scope_level','scope_traceback','scope_varfetch','scope_varname','search2d','search3d','sem_create','sem_delete','sem_lock','sem_release','set_plot','set_shading','setenv','sfit','shade_surf','shade_surf_irr','shade_volume','shift','shift_diff','shmdebug','shmmap','shmunmap','shmvar','show3','showfont','signum','simplex','sin','sindgen','sinh','size','skewness','skip_lun','slicer3','slide_image','smooth','sobel','socket','sort','spawn','sph_4pnt','sph_scat','spher_harm','spl_init','spl_interp','spline','spline_p','sprsab','sprsax','sprsin','sprstp','sqrt','standardize','stddev','stop','strarr','strcmp','strcompress','streamline','streamline','stregex','stretch','string','strjoin','strlen','strlowcase','strmatch','strmessage','strmid','strpos','strput','strsplit','strtrim','struct_assign','struct_hide','strupcase','surface','surface','surfr','svdc','svdfit','svsol','swap_endian','swap_endian_inplace','symbol','systime','t_cvf','t_pdf','t3d','tag_names','tan','tanh','tek_color','temporary','terminal_size','tetra_clip','tetra_surface','tetra_volume','text','thin','thread','threed','tic','time_test2','timegen','timer','timestamp','timestamptovalues','tm_test','toc','total','trace','transpose','tri_surf','triangulate','trigrid','triql','trired','trisol','truncate_lun','ts_coef','ts_diff','ts_fcast','ts_smooth','tv','tvcrs','tvlct','tvrd','tvscl','typename','uindgen','uint','uintarr','ul64indgen','ulindgen','ulon64arr','ulonarr','ulong','ulong64','uniq','unsharp_mask','usersym','value_locate','variance','vector','vector_field','vel','velovect','vert_t3d','voigt','volume','voronoi','voxel_proj','wait','warp_tri','watershed','wdelete','wf_draw','where','widget_base','widget_button','widget_combobox','widget_control','widget_displaycontextmenu','widget_draw','widget_droplist','widget_event','widget_info','widget_label','widget_list','widget_propertysheet','widget_slider','widget_tab','widget_table','widget_text','widget_tree','widget_tree_move','widget_window','wiener_filter','window','window','write_bmp','write_csv','write_gif','write_image','write_jpeg','write_jpeg2000','write_nrif','write_pict','write_png','write_ppm','write_spr','write_srf','write_sylk','write_tiff','write_video','write_wav','write_wave','writeu','wset','wshow','wtn','wv_applet','wv_cwt','wv_cw_wavelet','wv_denoise','wv_dwt','wv_fn_coiflet','wv_fn_daubechies','wv_fn_gaussian','wv_fn_haar','wv_fn_morlet','wv_fn_paul','wv_fn_symlet','wv_import_data','wv_import_wavelet','wv_plot3d_wps','wv_plot_multires','wv_pwt','wv_tool_denoise','xbm_edit','xdisplayfile','xdxf','xfont','xinteranimate','xloadct','xmanager','xmng_tmpl','xmtool','xobjview','xobjview_rotate','xobjview_write_image','xpalette','xpcolor','xplot3d','xregistered','xroi','xsq_test','xsurface','xvaredit','xvolume','xvolume_rotate','xvolume_write_image','xyouts','zlib_compress','zlib_uncompress','zoom','zoom_24'],s=i(t),r=['begin','end','endcase','endfor','endwhile','endif','endrep','endforeach','break','case','continue','for','foreach','goto','if','then','else','repeat','until','switch','while','do','pro','function'],n=i(r);e.registerHelper('hintWords','idl',t.concat(r));var a=new RegExp('^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*','i'),o=/[+\-*&=<>\/@#~$]/,l=new RegExp('(and|or|eq|lt|le|gt|ge|ne|not)','i');function d(e){if(e.eatSpace())return null;if(e.match(';')){e.skipToEnd();return'comment'};if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return'number';if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return'number';if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return'number'};if(e.match(/^"([^"]|(""))*"/)){return'string'};if(e.match(/^'([^']|(''))*'/)){return'string'};if(e.match(n)){return'keyword'};if(e.match(s)){return'builtin'};if(e.match(a)){return'variable'};if(e.match(o)||e.match(l)){return'operator'};e.next();return null};e.defineMode('idl',function(){return{token:function(e){return d(e)}}});e.defineMIME('text/x-idl','idl')});
+/* ./modules/editor/codemirror/mode/yaml/yaml.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('yaml',function(){var e=['true','false','on','off','yes','no'],i=new RegExp('\\b(('+e.join(')|(')+'))$','i');return{token:function(t,e){var r=t.peek(),n=e.escaped;e.escaped=!1;if(r=='#'&&(t.pos==0||/\s/.test(t.string.charAt(t.pos-1)))){t.skipToEnd();return'comment'};if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return'string';if(e.literal&&t.indentation()>e.keyCol){t.skipToEnd();return'string'}
+else if(e.literal){e.literal=!1};if(t.sol()){e.keyCol=0;e.pair=!1;e.pairStart=!1;if(t.match(/---/)){return'def'};if(t.match(/\.\.\./)){return'def'};if(t.match(/\s*-\s+/)){return'meta'}};if(t.match(/^(\{|\}|\[|\])/)){if(r=='{')e.inlinePairs++;else if(r=='}')e.inlinePairs--;else if(r=='[')e.inlineList++;else e.inlineList--;return'meta'};if(e.inlineList>0&&!n&&r==','){t.next();return'meta'};if(e.inlinePairs>0&&!n&&r==','){e.keyCol=0;e.pair=!1;e.pairStart=!1;t.next();return'meta'};if(e.pairStart){if(t.match(/^\s*(\||\>)\s*/)){e.literal=!0;return'meta'};if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)){return'variable-2'};if(e.inlinePairs==0&&t.match(/^\s*-?[0-9\.\,]+\s?$/)){return'number'};if(e.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)){return'number'};if(t.match(i)){return'keyword'}};if(!e.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)){e.pair=!0;e.keyCol=t.indentation();return'atom'};if(e.pair&&t.match(/^:\s*/)){e.pairStart=!0;return'meta'};e.pairStart=!1;e.escaped=(r=='\\');t.next();return null},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}}}});e.defineMIME('text/x-yaml','yaml');e.defineMIME('text/yaml','yaml')});
+/* ./modules/editor/codemirror/mode/vue/vue.min.js */(function(e){'use strict';if(typeof exports==='object'&&typeof module==='object'){e(require('../../lib/codemirror'),require('../../addon/mode/overlay'),require('../xml/xml'),require('../javascript/javascript'),require('../coffeescript/coffeescript'),require('../css/css'),require('../sass/sass'),require('../stylus/stylus'),require('../pug/pug'),require('../handlebars/handlebars'))}
+else if(typeof define==='function'&&define.amd){define(['../../lib/codemirror','../../addon/mode/overlay','../xml/xml','../javascript/javascript','../coffeescript/coffeescript','../css/css','../sass/sass','../stylus/stylus','../pug/pug','../handlebars/handlebars'],e)}
+else{e(CodeMirror)}})(function(e){var s={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']]};e.defineMode('vue-template',function(s,t){var a={token:function(e){if(e.match(/^\{\{.*?\}\}/))return'meta mustache';while(e.next()&&!e.match('{{',!1)){};return null}};return e.overlayMode(e.getMode(s,t.backdrop||'text/html'),a)});e.defineMode('vue',function(t){return e.getMode(t,{name:'htmlmixed',tags:s})},'htmlmixed','xml','javascript','coffeescript','css','sass','stylus','pug','handlebars');e.defineMIME('script/x-vue','vue');e.defineMIME('text/x-vue','vue')});
+/* ./modules/editor/codemirror/mode/twig/twig.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../../addon/mode/multiplex'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../../addon/mode/multiplex'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('twig:inner',function(){var t=['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'],i=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,e=['true','false','null','empty','defined','divisibleby','divisible by','even','odd','iterable','sameas','same as'],n=/^(\d[+\-\*\/])?\d+(\.\d+)?/;t=new RegExp('(('+t.join(')|(')+'))\\b');e=new RegExp('(('+e.join(')|(')+'))\\b');function o(o,a){var s=o.peek();if(a.incomment){if(!o.skipTo('#}')){o.skipToEnd()}
+else{o.eatWhile(/\#|}/);a.incomment=!1};return'comment'}
+else if(a.intag){if(a.operator){a.operator=!1;if(o.match(e)){return'atom'};if(o.match(n)){return'number'}};if(a.sign){a.sign=!1;if(o.match(e)){return'atom'};if(o.match(n)){return'number'}};if(a.instring){if(s==a.instring){a.instring=!1};o.next();return'string'}
+else if(s=='\''||s=='"'){a.instring=s;o.next();return'string'}
+else if(o.match(a.intag+'}')||o.eat('-')&&o.match(a.intag+'}')){a.intag=!1;return'tag'}
+else if(o.match(i)){a.operator=!0;return'operator'}
+else if(o.match(r)){a.sign=!0}
+else{if(o.eat(' ')||o.sol()){if(o.match(t)){return'keyword'};if(o.match(e)){return'atom'};if(o.match(n)){return'number'};if(o.sol()){o.next()}}
+else{o.next()}};return'variable'}
+else if(o.eat('{')){if(o.eat('#')){a.incomment=!0;if(!o.skipTo('#}')){o.skipToEnd()}
+else{o.eatWhile(/\#|}/);a.incomment=!1};return'comment'}
+else if(s=o.eat(/\{|%/)){a.intag=s;if(s=='{'){a.intag='}'};o.eat('-');return'tag'}};o.next()};return{startState:function(){return{}},token:function(e,t){return o(e,t)}}});e.defineMode('twig',function(t,n){var i=e.getMode(t,'twig:inner');if(!n||!n.base)return i;return e.multiplexingMode(e.getMode(t,n.base),{open:/\{[{#%]/,close:/[}#%]\}/,mode:i,parseDelimiters:!0})});e.defineMIME('text/x-twig','twig')});
+/* ./modules/editor/codemirror/mode/cmake/cmake.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('cmake',function(){var n=/({)?[a-zA-Z0-9_]+(})?/;function e(e,n){var i,t,r=!1;while(!e.eol()&&(i=e.next())!=n.pending){if(i==='$'&&t!='\\'&&n.pending=='"'){r=!0;break};t=i};if(r){e.backUp(1)};if(i==n.pending){n.continueString=!1}
+else{n.continueString=!0};return'string'};function i(i,r){var t=i.next();if(t==='$'){if(i.match(n)){return'variable-2'};return'variable'};if(r.continueString){i.backUp(1);return e(i,r)};if(i.match(/(\s+)?\w+\(/)||i.match(/(\s+)?\w+\ \(/)){i.backUp(1);return'def'};if(t=='#'){i.skipToEnd();return'comment'};if(t=='\''||t=='"'){r.pending=t;return e(i,r)};if(t=='('||t==')'){return'bracket'};if(t.match(/[0-9]/)){return'number'};i.eatWhile(/[\w-]/);return null};return{startState:function(){var e={};e.inDefinition=!1;e.inInclude=!1;e.continueString=!1;e.pending=!1;return e},token:function(e,n){if(e.eatSpace())return null;return i(e,n)}}});e.defineMIME('text/x-cmake','cmake')});
+/* ./modules/editor/codemirror/mode/asciiarmor/asciiarmor.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function t(e){var t=e.match(/^\s*\S/);e.skipToEnd();return t?'error':null};e.defineMode('asciiarmor',function(){return{token:function(e,r){var i;if(r.state=='top'){if(e.sol()&&(i=e.match(/^-----BEGIN (.*)?-----\s*$/))){r.state='headers';r.type=i[1];return'tag'};return t(e)}
+else if(r.state=='headers'){if(e.sol()&&e.match(/^\w+:/)){r.state='header';return'atom'}
+else{var n=t(e);if(n)r.state='body';return n}}
+else if(r.state=='header'){e.skipToEnd();r.state='headers';return'string'}
+else if(r.state=='body'){if(e.sol()&&(i=e.match(/^-----END (.*)?-----\s*$/))){if(i[1]!=r.type)return'error';r.state='end';return'tag'}
+else{if(e.eatWhile(/[A-Za-z0-9+\/=]/)){return null}
+else{e.next();return'error'}}}
+else if(r.state=='end'){return t(e)}},blankLine:function(e){if(e.state=='headers')e.state='body'},startState:function(){return{state:'top',type:null}}}});e.defineMIME('application/pgp','asciiarmor');e.defineMIME('application/pgp-encrypted','asciiarmor');e.defineMIME('application/pgp-keys','asciiarmor');e.defineMIME('application/pgp-signature','asciiarmor')});
+/* ./modules/editor/codemirror/mode/pegjs/pegjs.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../javascript/javascript'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../javascript/javascript'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('pegjs',function(t){var n=e.getMode(t,'javascript');function i(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)};return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inCharacterClass:!1,braced:0,lhs:!0,localState:null}},token:function(t,r){if(t)if(!r.inString&&!r.inComment&&((t.peek()=='"')||(t.peek()=='\''))){r.stringType=t.peek();t.next();r.inString=!0};if(!r.inString&&!r.inComment&&t.match(/^\/\*/)){r.inComment=!0};if(r.inString){while(r.inString&&!t.eol()){if(t.peek()===r.stringType){t.next();r.inString=!1}
+else if(t.peek()==='\\'){t.next();t.next()}
+else{t.match(/^.[^\\"']*/)}};return r.lhs?'property string':'string'}
+else if(r.inComment){while(r.inComment&&!t.eol()){if(t.match(/\*\//)){r.inComment=!1}
+else{t.match(/^.[^\*]*/)}};return'comment'}
+else if(r.inCharacterClass){while(r.inCharacterClass&&!t.eol()){if(!(t.match(/^[^\]\\]+/)||t.match(/^\\./))){r.inCharacterClass=!1}}}
+else if(t.peek()==='['){t.next();r.inCharacterClass=!0;return'bracket'}
+else if(t.match(/^\/\//)){t.skipToEnd();return'comment'}
+else if(r.braced||t.peek()==='{'){if(r.localState===null){r.localState=e.startState(n)};var c=n.token(t,r.localState),l=t.current();if(!c){for(var a=0;a<l.length;a++){if(l[a]==='{'){r.braced++}
+else if(l[a]==='}'){r.braced--}}};return c}
+else if(i(t)){if(t.peek()===':'){return'variable'};return'variable-2'}
+else if(['[',']','(',')'].indexOf(t.peek())!=-1){t.next();return'bracket'}
+else if(!t.eatSpace()){t.next()};return null}}},'javascript')});
+/* ./modules/editor/codemirror/mode/solr/solr.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('solr',function(){'use strict';var t=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}"\\]/,n=/[\|\!\+\-\*\?\~\^\&]/,i=/^(OR|AND|NOT|TO)$/i;function r(e){return parseFloat(e).toString()===e};function o(t){return function(n,i){var r=!1,o;while((o=n.next())!=null){if(o==t&&!r)break;r=!r&&o=='\\'};if(!r)i.tokenize=e;return'string'}};function f(t){return function(n,i){var r='operator';if(t=='+')r+=' positive';else if(t=='-')r+=' negative';else if(t=='|')n.eat(/\|/);else if(t=='&')n.eat(/\&/);else if(t=='^')r+=' boost';i.tokenize=e;return r}};function u(n){return function(o,f){var u=n;while((n=o.peek())&&n.match(t)!=null){u+=o.next()};f.tokenize=e;if(i.test(u))return'operator';else if(r(u))return'number';else if(o.peek()==':')return'field';else return'string'}};function e(i,r){var l=i.next();if(l=='"')r.tokenize=o(l);else if(n.test(l))r.tokenize=f(l);else if(t.test(l))r.tokenize=u(l);return(r.tokenize!=e)?r.tokenize(i,r):null};return{startState:function(){return{tokenize:e}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)}}});e.defineMIME('text/x-solr','solr')});
+/* ./modules/editor/codemirror/mode/tiki/tiki.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("tiki",function(e){function i(e,t,n){return function(i,u){while(!i.eol()){if(i.match(t)){u.tokenize=r;break};i.next()};if(n)u.tokenize=n;return e}};function a(e){return function(t,n){while(!t.eol()){t.next()};n.tokenize=r;return e}};function r(e,n){function t(t){n.tokenize=t;return t(e,n)};var o=e.sol(),u=e.next();switch(u){case"{":e.eat("/");e.eatSpace();e.eatWhile(/[^\s\u00a0="'\/?(}]/);n.tokenize=s;return"tag";case"_":if(e.eat("_"))return t(i("strong","__",r));break;case"'":if(e.eat("'"))return t(i("em","''",r));break;case"(":if(e.eat("("))return t(i("variable-2","))",r));break;case"[":return t(i("variable-3","]",r));break;case"|":if(e.eat("|"))return t(i("comment","||"));break;case"-":if(e.eat("=")){return t(i("header string","=-",r))}
+else if(e.eat("-")){return t(i("error tw-deleted","--",r))};break;case"=":if(e.match("=="))return t(i("tw-underline","===",r));break;case":":if(e.eat(":"))return t(i("comment","::"));break;case"^":return t(i("tw-box","^"));break;case"~":if(e.match("np~"))return t(i("meta","~/np~"));break};if(o){switch(u){case"!":if(e.match("!!!!!")){return t(a("header string"))}
+else if(e.match("!!!!")){return t(a("header string"))}
+else if(e.match("!!!")){return t(a("header string"))}
+else if(e.match("!!")){return t(a("header string"))}
+else{return t(a("header string"))};break;case"*":case"#":case"+":return t(a("tw-listitem bracket"));break}};return null};var m=e.indentUnit,c,f;function s(e,t){var n=e.next(),i=e.peek();if(n=="}"){t.tokenize=r;return"tag"}
+else if(n=="("||n==")"){return"bracket"}
+else if(n=="="){f="equals";if(i==">"){e.next();i=e.peek()};if(!/['"]/.test(i)){t.tokenize=b()};return"operator"}
+else if(/['"]/.test(n)){t.tokenize=p(n);return t.tokenize(e,t)}
+else{e.eatWhile(/[^\s\u00a0="'\/?]/);return"keyword"}};function p(e){return function(t,n){while(!t.eol()){if(t.next()==e){n.tokenize=s;break}};return"string"}};function b(){return function(e,t){while(!e.eol()){var n=e.next(),r=e.peek();if(n==" "||n==","||/[ )}]/.test(r)){t.tokenize=s;break}};return"string"}};var t,u;function o(){for(var e=arguments.length-1;e>=0;e--)t.cc.push(arguments[e])};function n(){o.apply(null,arguments);return!0};function d(e,n){var r=t.context&&t.context.noIndent;t.context={prev:t.context,pluginName:e,indent:t.indented,startOfLine:n,noIndent:r}};function k(){if(t.context)t.context=t.context.prev};function h(e){if(e=="openPlugin"){t.pluginName=c;return n(l,x(t.startOfLine))}
+else if(e=="closePlugin"){var i=!1;if(t.context){i=t.context.pluginName!=c;k()}
+else{i=!0};if(i)u="error";return n(v(i))}
+else if(e=="string"){if(!t.context||t.context.name!="!cdata")d("!cdata");if(t.tokenize==r)k();return n()}
+else return n()};function x(e){return function(r){if(r=="selfclosePlugin"||r=="endPlugin")return n();if(r=="endPlugin"){d(t.pluginName,e);return n()};return n()}};function v(e){return function(t){if(e)u="error";if(t=="endPlugin")return n();return o()}};function l(e){if(e=="keyword"){u="attribute";return n(l)};if(e=="equals")return n(w,l);return o()};function w(e){if(e=="keyword"){u="string";return n()};if(e=="string")return n(g);return o()};function g(e){if(e=="string")return n(g);else return o()};return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,n){if(e.sol()){n.startOfLine=!0;n.indented=e.indentation()};if(e.eatSpace())return null;u=f=c=null;var r=n.tokenize(e,n);if((r||f)&&r!="comment"){t=n;while(!0){var i=n.cc.pop()||h;if(i(f||r))break}};n.startOfLine=!1;return u||r},indent:function(e,n){var t=e.context;if(t&&t.noIndent)return 0;if(t&&/^{\//.test(n))t=t.prev;while(t&&!t.startOfLine)t=t.prev;if(t)return t.indent+m;else return 0},electricChars:"/"}});e.defineMIME("text/tiki","tiki")});
+/* ./modules/editor/codemirror/mode/slim/slim.min.js */(function(t){if(typeof exports=="object"&&typeof module=="object")t(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../ruby/ruby"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],t);else t(CodeMirror)})(function(t){"use strict";t.defineMode("slim",function(e){var s=t.getMode(e,{name:"htmlmixed"});var u=t.getMode(e,"ruby"),f={html:s,ruby:u};var h={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"};var U=function(t){var e=[];for(var n in t)e.push(n);return new RegExp("^("+e.join("|")+"):")}(h),x={"commentLine":"comment","slimSwitch":"operator special","slimTag":"tag","slimId":"attribute def","slimClass":"attribute qualifier","slimAttribute":"attribute","slimSubmode":"keyword special","closeAttributeTag":null,"slimDoctype":null,"lineContinuation":null};var T={"{":"}","[":"]","(":")"};var c="_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",l=c+"\\-0-9\xB7\u0300-\u036F\u203F-\u2040",C=new RegExp("^[:"+c+"](?::["+l+"]|["+l+"]*)"),D=new RegExp("^[:"+c+"][:\\."+l+"]*(?=\\s*=)"),E=new RegExp("^[:"+c+"][:\\."+l+"]*"),A=/^\.-?[_a-zA-Z]+[\w\-]*/,L=/^#[_a-zA-Z]+[\w\-]*/;function O(t,e,n){var i=function(i,r){r.tokenize=e;if(i.pos<t){i.pos=t;return n};return r.tokenize(i,r)};return function(t,n){n.tokenize=i;return e(t,n)}};function R(t,e,n,r,i){var u=t.current(),o=u.search(n);if(o>-1){e.tokenize=O(t.pos,e.tokenize,i);t.backUp(u.length-o-r)};return i};function k(t,e){t.stack={parent:t.stack,style:"continuation",indented:e,tokenize:t.line};t.line=t.tokenize};function d(t){if(t.line==t.tokenize){t.line=t.stack.tokenize;t.stack=t.stack.parent}};function j(t,e){return function(n,i){d(i);if(n.match(/^\\$/)){k(i,t);return"lineContinuation"};var r=e(n,i);if(n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)){n.backUp(1)};return r}};function I(t,e){return function(n,i){d(i);var r=e(n,i);if(n.eol()&&n.current().match(/,$/)){k(i,t)};return r}};function m(t,e){return function(n,i){var r=n.peek();if(r==t&&i.rubyState.tokenize.length==1){n.next();i.tokenize=e;return"closeAttributeTag"}
+else{return o(n,i)}}};function n(e){var n,i=function(t,i){if(i.rubyState.tokenize.length==1&&!i.rubyState.context.prev){t.backUp(1);if(t.eatSpace()){i.rubyState=n;i.tokenize=e;return e(t,i)};t.next()};return o(t,i)};return function(e,r){n=r.rubyState;r.rubyState=t.startState(u);r.tokenize=i;return o(e,r)}};function o(t,e){return u.token(t,e.rubyState)};function P(t,e){if(t.match(/^\\$/)){return"lineContinuation"};return y(t,e)};function y(t,e){if(t.match(/^#\{/)){e.tokenize=m("}",e.tokenize);return null};return R(t,e,/[^\\]#\{/,1,s.token(t,e.htmlState))};function q(t){return function(e,n){var i=P(e,n);if(e.eol())n.tokenize=t;return i}};function S(t,e,n){e.stack={parent:e.stack,style:"html",indented:t.column()+n,tokenize:e.line};e.line=e.tokenize=y;return null};function v(t,e){t.skipToEnd();return e.stack.style};function Z(t,e){e.stack={parent:e.stack,style:"comment",indented:e.indented+1,tokenize:e.line};e.line=v;return v(t,e)};function r(t,e){if(t.eat(e.stack.endQuote)){e.line=e.stack.line;e.tokenize=e.stack.tokenize;e.stack=e.stack.parent;return null};if(t.match(E)){e.tokenize=Q;return"slimAttribute"};t.next();return null};function Q(t,e){if(t.match(/^==?/)){e.tokenize=V;return null};return r(t,e)};function V(t,e){var i=t.peek();if(i=="\""||i=="'"){e.tokenize=g(i,"string",!0,!1,r);t.next();return e.tokenize(t,e)};if(i=="["){return n(r)(t,e)};if(t.match(/^(true|false|nil)\b/)){e.tokenize=r;return"keyword"};return n(r)(t,e)};function B(t,e,n){t.stack={parent:t.stack,style:"wrapper",indented:t.indented+1,tokenize:n,line:t.line,endQuote:e};t.line=t.tokenize=r;return null};function tt(e,n){if(e.match(/^#\{/)){n.tokenize=m("}",n.tokenize);return null};var i=new t.StringStream(e.string.slice(n.stack.indented),e.tabSize);i.pos=e.pos-n.stack.indented;i.start=e.start-n.stack.indented;i.lastColumnPos=e.lastColumnPos-n.stack.indented;i.lastColumnValue=e.lastColumnValue-n.stack.indented;var r=n.subMode.token(i,n.subState);e.pos=i.pos+n.stack.indented;return r};function et(t,e){e.stack.indented=t.column();e.line=e.tokenize=tt;return e.tokenize(t,e)};function nt(n){var i=h[n],u=t.mimeModes[i];if(u){return t.getMode(e,u)};var r=t.modes[i];if(r){return r(e,{name:i})};return t.getMode(e,"null")};function it(t){if(!f.hasOwnProperty(t)){return f[t]=nt(t)};return f[t]};function rt(e,n){var i=it(e),r=t.startState(i);n.subMode=i;n.subState=r;n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line};n.line=n.tokenize=et;return"slimSubmode"};function ut(t,e){t.skipToEnd();return"slimDoctype"};function ot(t,e){var i=t.peek();if(i=="<"){return(e.tokenize=q(e.tokenize))(t,e)};if(t.match(/^[|']/)){return S(t,e,1)};if(t.match(/^\/(!|\[\w+])?/)){return Z(t,e)};if(t.match(/^(-|==?[<>]?)/)){e.tokenize=j(t.column(),I(t.column(),o));return"slimSwitch"};if(t.match(/^doctype\b/)){e.tokenize=ut;return"keyword"};var n=t.match(U);if(n){return rt(n[1],e)};return z(t,e)};function b(t,e){if(e.startOfLine){return ot(t,e)};return z(t,e)};function z(t,e){if(t.eat("*")){e.tokenize=n(w);return null};if(t.match(C)){e.tokenize=w;return"slimTag"};return a(t,e)};function w(t,e){if(t.match(/^(<>?|><?)/)){e.tokenize=a;return null};return a(t,e)};function a(t,e){if(t.match(L)){e.tokenize=a;return"slimId"};if(t.match(A)){e.tokenize=a;return"slimClass"};return i(t,e)};function i(t,e){if(t.match(/^([\[\{\(])/)){return B(e,T[RegExp.$1],i)};if(t.match(D)){e.tokenize=at;return"slimAttribute"};if(t.peek()=="*"){t.next();e.tokenize=n(F);return null};return F(t,e)};function at(t,e){if(t.match(/^==?/)){e.tokenize=ct;return null};return i(t,e)};function ct(t,e){var r=t.peek();if(r=="\""||r=="'"){e.tokenize=g(r,"string",!0,!1,i);t.next();return e.tokenize(t,e)};if(r=="["){return n(i)(t,e)};if(r==":"){return n(M)(t,e)};if(t.match(/^(true|false|nil)\b/)){e.tokenize=i;return"keyword"};return n(i)(t,e)};function M(t,e){t.backUp(1);if(t.match(/^[^\s],(?=:)/)){e.tokenize=n(M);return null};t.next();return i(t,e)};function g(t,e,n,i,r){return function(u,o){d(o);var l=u.current().length==0;if(u.match(/^\\$/,l)){if(!l)return e;k(o,o.indented);return"lineContinuation"};if(u.match(/^#\{/,l)){if(!l)return e;o.tokenize=m("}",o.tokenize);return null};var a=!1,c;while((c=u.next())!=null){if(c==t&&(i||!a)){o.tokenize=r;break};if(n&&c=="#"&&!a){if(u.eat("{")){u.backUp(2);break}};a=!a&&c=="\\"};if(u.eol()&&a){u.backUp(1)};return e}};function F(t,e){if(t.match(/^==?/)){e.tokenize=o;return"slimSwitch"};if(t.match(/^\/$/)){e.tokenize=b;return null};if(t.match(/^:/)){e.tokenize=z;return"slimSwitch"};S(t,e,0);return e.tokenize(t,e)};var p={startState:function(){var e=t.startState(s),n=t.startState(u);return{htmlState:e,rubyState:n,stack:null,last:null,tokenize:b,line:b,indented:0}},copyState:function(e){return{htmlState:t.copyState(s,e.htmlState),rubyState:t.copyState(u,e.rubyState),subMode:e.subMode,subState:e.subMode&&t.copyState(e.subMode,e.subState),stack:e.stack,last:e.last,tokenize:e.tokenize,line:e.line}},token:function(e,t){if(e.sol()){t.indented=e.indentation();t.startOfLine=!0;t.tokenize=t.line;while(t.stack&&t.stack.indented>t.indented&&t.last!="slimSubmode"){t.line=t.tokenize=t.stack.tokenize;t.stack=t.stack.parent;t.subMode=null;t.subState=null}};if(e.eatSpace())return null;var n=t.tokenize(e,t);t.startOfLine=!1;if(n)t.last=n;return x.hasOwnProperty(n)?x[n]:n},blankLine:function(t){if(t.subMode&&t.subMode.blankLine){return t.subMode.blankLine(t.subState)}},innerMode:function(t){if(t.subMode)return{state:t.subState,mode:t.subMode};return{state:t,mode:p}}};return p},"htmlmixed","ruby");t.defineMIME("text/x-slim","slim");t.defineMIME("application/x-slim","slim")});
+/* ./modules/editor/codemirror/mode/puppet/puppet.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('puppet',function(){var i={};var t=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function e(e,n){var r=n.split(' ');for(var t=0;t<r.length;t++){i[r[t]]=e}};e('keyword','class define site node include import inherits');e('keyword','case if else in and elsif default or');e('atom','false true running present absent file directory undef');e('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');function n(e,i){var n,t,r=!1;while(!e.eol()&&(n=e.next())!=i.pending){if(n==='$'&&t!='\\'&&i.pending=='"'){r=!0;break};t=n};if(r){e.backUp(1)};if(n==i.pending){i.continueString=!1}
+else{i.continueString=!0};return'string'};function r(e,r){var a=e.match(/[\w]+/,!1),s=e.match(/(\s+)?\w+\s+=>.*/,!1),c=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),u=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),o=e.next();if(o==='$'){if(e.match(t)){return r.continueString?'variable-2':'variable'};return'error'};if(r.continueString){e.backUp(1);return n(e,r)};if(r.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/)){return'def'};e.match(/\s+{/);r.inDefinition=!1};if(r.inInclude){e.match(/(\s+)?\S+(\s+)?/);r.inInclude=!1;return'def'};if(e.match(/(\s+)?\w+\(/)){e.backUp(1);return'def'};if(s){e.match(/(\s+)?\w+/);return'tag'};if(a&&i.hasOwnProperty(a)){e.backUp(1);e.match(/[\w]+/);if(e.match(/\s+\S+\s+{/,!1)){r.inDefinition=!0};if(a=='include'){r.inInclude=!0};return i[a]};if(/(^|\s+)[A-Z][\w:_]+/.test(a)){e.backUp(1);e.match(/(^|\s+)[A-Z][\w:_]+/);return'def'};if(c){e.match(/(\s+)?[\w:_]+/);return'def'};if(u){e.match(/(\s+)?[@]{1,2}/);return'special'};if(o=='#'){e.skipToEnd();return'comment'};if(o=='\''||o=='"'){r.pending=o;return n(e,r)};if(o=='{'||o=='}'){return'bracket'};if(o=='/'){e.match(/.*?\//);return'variable-3'};if(o.match(/[0-9]/)){e.eatWhile(/[0-9]+/);return'number'};if(o=='='){if(e.peek()=='>'){e.next()};return'operator'};e.eatWhile(/[\w-]/);return null};return{startState:function(){var e={};e.inDefinition=!1;e.inInclude=!1;e.continueString=!1;e.pending=!1;return e},token:function(e,i){if(e.eatSpace())return null;return r(e,i)}}});e.defineMIME('text/x-puppet','puppet')});
+/* ./modules/editor/codemirror/mode/meta.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.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']},{name:'C++',mime:'text/x-c++src',mode:'clike',ext:['cpp','c++','cc','cxx','hpp','h++','hh','hxx'],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']},{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']},{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'],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:'null',mode:'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']},{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','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',mime:['application/x-httpd-php','text/x-php'],mode:'php',ext:['php','php3','php4','php5','php7','phtml']},{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']},{name:'PLSQL',mime:'text/x-plsql',mode:'sql',ext:['pls']},{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:'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'],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:['1','2','3','4','5','6','7','8','9']},{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 t=0;t<e.modeInfo.length;t++){var m=e.modeInfo[t];if(m.mimes)m.mime=m.mimes[0]};e.findModeByMIME=function(m){m=m.toLowerCase();for(var i=0;i<e.modeInfo.length;i++){var t=e.modeInfo[i];if(t.mime==m)return t;if(t.mimes)for(var a=0;a<t.mimes.length;a++)if(t.mimes[a]==m)return t};if(/\+xml$/.test(m))return e.findModeByMIME('application/xml');if(/\+json$/.test(m))return e.findModeByMIME('application/json')};e.findModeByExtension=function(m){for(var i=0;i<e.modeInfo.length;i++){var t=e.modeInfo[i];if(t.ext)for(var a=0;a<t.ext.length;a++)if(t.ext[a]==m)return t}};e.findModeByFileName=function(m){for(var a=0;a<e.modeInfo.length;a++){var t=e.modeInfo[a];if(t.file&&t.file.test(m))return t};var i=m.lastIndexOf('.'),x=i>-1&&m.substring(i+1,m.length);if(x)return e.findModeByExtension(x)};e.findModeByName=function(m){m=m.toLowerCase();for(var i=0;i<e.modeInfo.length;i++){var t=e.modeInfo[i];if(t.name.toLowerCase()==m)return t;if(t.alias)for(var a=0;a<t.alias.length;a++)if(t.alias[a].toLowerCase()==m)return t}}});
+/* ./modules/editor/codemirror/mode/go/go.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('go',function(t){var a=t.indentUnit,s={'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};var u={'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};var o=/[+\-*&^%:=<>!|\/]/,n;function i(e,t){var i=e.next();if(i=='"'||i=='\''||i=='`'){t.tokenize=d(i);return t.tokenize(e,t)};if(/[\d\.]/.test(i)){if(i=='.'){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}
+else if(i=='0'){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}
+else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)};return'number'};if(/[\[\]{}\(\),;\:\.]/.test(i)){n=i;return null};if(i=='/'){if(e.eat('*')){t.tokenize=c;return c(e,t)};if(e.eat('/')){e.skipToEnd();return'comment'}};if(o.test(i)){e.eatWhile(o);return'operator'};e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();if(s.propertyIsEnumerable(r)){if(r=='case'||r=='default')n='case';return'keyword'};if(u.propertyIsEnumerable(r))return'atom';return'variable'};function d(e){return function(t,n){var r=!1,o,a=!1;while((o=t.next())!=null){if(o==e&&!r){a=!0;break};r=!r&&e!='`'&&o=='\\'};if(a||!(r||e=='`'))n.tokenize=i;return'string'}};function c(e,t){var r=!1,n;while(n=e.next()){if(n=='/'&&r){t.tokenize=i;break};r=(n=='*')};return'comment'};function f(e,t,n,i,r){this.indented=e;this.column=t;this.type=n;this.align=i;this.prev=r};function r(e,t,n){return e.context=new f(e.indented,t,n,null,e.context)};function l(e){if(!e.context.prev)return;var t=e.context.type;if(t==')'||t==']'||t=='}')e.indented=e.context.indented;return e.context=e.context.prev};return{startState:function(e){return{tokenize:null,context:new f((e||0)-a,0,'top',!1),indented:0,startOfLine:!0}},token:function(e,t){var o=t.context;if(e.sol()){if(o.align==null)o.align=!1;t.indented=e.indentation();t.startOfLine=!0;if(o.type=='case')o.type='}'};if(e.eatSpace())return null;n=null;var a=(t.tokenize||i)(e,t);if(a=='comment')return a;if(o.align==null)o.align=!0;if(n=='{')r(t,e.column(),'}');else if(n=='[')r(t,e.column(),']');else if(n=='(')r(t,e.column(),')');else if(n=='case')o.type='case';else if(n=='}'&&o.type=='}')l(t);else if(n==o.type)l(t);t.startOfLine=!1;return a},indent:function(t,n){if(t.tokenize!=i&&t.tokenize!=null)return e.Pass;var r=t.context,c=n&&n.charAt(0);if(r.type=='case'&&/^(?:case|default)\b/.test(n)){t.context.type='}';return r.indented};var o=c==r.type;if(r.align)return r.column+(o?0:1);else return r.indented+(o?0:a)},electricChars:'{}):',closeBrackets:'()[]{}\'\'""``',fold:'brace',blockCommentStart:'/*',blockCommentEnd:'*/',lineComment:'//'}});e.defineMIME('text/x-go','go')});
+/* ./modules/editor/codemirror/mode/commonlisp/commonlisp.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('commonlisp',function(t){var o=/^(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)$/,i=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,l=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,u=/[^\s'`,@()\[\]";]/,e;function n(e){var t;while(t=e.next()){if(t=='\\')e.next();else if(!u.test(t)){e.backUp(1);break}};return e.current()};function r(t,u){if(t.eatSpace()){e='ws';return null};if(t.match(l))return'number';var r=t.next();if(r=='\\')r=t.next();if(r=='"')return(u.tokenize=c)(t,u);else if(r=='('){e='open';return'bracket'}
+else if(r==')'||r==']'){e='close';return'bracket'}
+else if(r==';'){t.skipToEnd();e='ws';return'comment'}
+else if(/['`,@]/.test(r))return null;else if(r=='|'){if(t.skipTo('|')){t.next();return'symbol'}
+else{t.skipToEnd();return'error'}}
+else if(r=='#'){var r=t.next();if(r=='('){e='open';return'bracket'}
+else if(/[+\-=\.']/.test(r))return null;else if(/\d/.test(r)&&t.match(/^\d*#/))return null;else if(r=='|')return(u.tokenize=s)(t,u);else if(r==':'){n(t);return'meta'}
+else if(r=='\\'){t.next();n(t);return'string-2'}
+else return'error'}
+else{var f=n(t);if(f=='.')return null;e='symbol';if(f=='nil'||f=='t'||f.charAt(0)==':')return'atom';if(u.lastType=='open'&&(o.test(f)||i.test(f)))return'keyword';if(f.charAt(0)=='&')return'variable-2';return'variable'}};function c(e,t){var n=!1,i;while(i=e.next()){if(i=='"'&&!n){t.tokenize=r;break};n=!n&&i=='\\'};return'string'};function s(t,n){var i,o;while(i=t.next()){if(i=='#'&&o=='|'){n.tokenize=r;break};o=i};e='ws';return'comment'};return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:r}},token:function(r,n){if(r.sol()&&typeof n.ctx.indentTo!='number')n.ctx.indentTo=n.ctx.start+1;e=null;var o=n.tokenize(r,n);if(e!='ws'){if(n.ctx.indentTo==null){if(e=='symbol'&&i.test(r.current()))n.ctx.indentTo=n.ctx.start+t.indentUnit;else n.ctx.indentTo='next'}
+else if(n.ctx.indentTo=='next'){n.ctx.indentTo=r.column()};n.lastType=e};if(e=='open')n.ctx={prev:n.ctx,start:r.column(),indentTo:null};else if(e=='close')n.ctx=n.ctx.prev||n.ctx;return o},indent:function(e,t){var n=e.ctx.indentTo;return typeof n=='number'?n:e.ctx.start+1},closeBrackets:{pairs:'()[]{}""'},lineComment:';;',blockCommentStart:'#|',blockCommentEnd:'|#'}});e.defineMIME('text/x-common-lisp','commonlisp')});
+/* ./modules/editor/codemirror/mode/rust/rust.min.js */
+/* ./modules/editor/codemirror/mode/powershell/powershell.min.js */(function(e){'use strict';if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(window.CodeMirror)})(function(e){'use strict';e.defineMode('powershell',function(){function t(e,t){t=t||{};var n=t.prefix!==undefined?t.prefix:'^',i=t.suffix!==undefined?t.suffix:'\\b';for(var r=0;r<e.length;r++){if(e[r]instanceof RegExp){e[r]=e[r].source}
+else{e[r]=e[r].replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}};return new RegExp(n+'('+e.join('|')+')'+i,'i')};var a='(?=[^A-Za-z\\d\\-_]|$)',n=/[\w\-:]/,k=t([/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:a});var C=/[\[\]{},;`\.]|@[({]/,h=t(['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:'-'});var b=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,g=t([h,b],{suffix:''});var S=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,d=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,P=/[A-Z]:|%|\?/i,v=t([/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)/,new 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)?/,new 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/,new 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:''});var f=t([/[$?^_]|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:''});var m=t([P,v,f],{suffix:a});var o={keyword:k,number:S,operator:g,builtin:m,punctuation:C,identifier:d};function e(e,t){var u=t.returnStack[t.returnStack.length-1];if(u&&u.shouldReturnFrom(t)){t.tokenize=u.tokenize;t.returnStack.pop();return t.tokenize(e,t)};if(e.eatSpace()){return null};if(e.eat('(')){t.bracketNesting+=1;return'punctuation'};if(e.eat(')')){t.bracketNesting-=1;return'punctuation'};for(var p in o){if(e.match(o[p])){return p}};var a=e.next();if(a==='\''){return x(e,t)};if(a==='$'){return i(e,t)};if(a==='"'){return s(e,t)};if(a==='<'&&e.eat('#')){t.tokenize=c;return c(e,t)};if(a==='#'){e.skipToEnd();return'comment'};if(a==='@'){var l=e.eat(/["']/);if(l&&e.eol()){t.tokenize=r;t.startQuote=l[0];return r(e,t)}
+else if(e.eol()){return'error'}
+else if(e.peek().match(/[({]/)){return'punctuation'}
+else if(e.peek().match(n)){return i(e,t)}};return'error'};function x(t,r){var n;while((n=t.peek())!=null){t.next();if(n==='\''&&!t.eat('\'')){r.tokenize=e;return'string'}};return'error'};function s(t,r){var n;while((n=t.peek())!=null){if(n==='$'){r.tokenize=E;return'string'};t.next();if(n==='`'){t.next();continue};if(n==='"'&&!t.eat('"')){r.tokenize=e;return'string'}};return'error'};function E(e,t){return u(e,t,s)};function w(e,t){t.tokenize=r;t.startQuote='"';return r(e,t)};function y(e,t){return u(e,t,w)};function u(r,t,n){if(r.match('$(')){var o=t.bracketNesting;t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===o},tokenize:n});t.tokenize=e;t.bracketNesting+=1;return'punctuation'}
+else{r.next();t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n});t.tokenize=i;return t.tokenize(r,t)}};function c(t,r){var i=!1,n;while((n=t.next())!=null){if(i&&n=='>'){r.tokenize=e;break};i=(n==='#')};return'comment'};function i(t,r){var i=t.peek();if(t.eat('{')){r.tokenize=l;return l(t,r)}
+else if(i!=undefined&&i.match(n)){t.eatWhile(n);r.tokenize=e;return'variable-2'}
+else{r.tokenize=e;return'error'}};function l(t,r){var n;while((n=t.next())!=null){if(n==='}'){r.tokenize=e;break}};return'variable-2'};function r(t,r){var i=r.startQuote;if(t.sol()&&t.match(new RegExp(i+'@'))){r.tokenize=e}
+else if(i==='"'){while(!t.eol()){var n=t.peek();if(n==='$'){r.tokenize=y;return'string'};t.next();if(n==='`'){t.next()}}}
+else{t.skipToEnd()};return'string'};var p={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:e}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:'<#',blockCommentEnd:'#>',lineComment:'#',fold:'brace'};return p});e.defineMIME('application/x-powershell','powershell')});
+/* ./modules/editor/codemirror/mode/stex/stex.min.js */(function(t){if(typeof exports=='object'&&typeof module=='object')t(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],t);else t(CodeMirror)})(function(t){'use strict';t.defineMode('stex',function(){'use strict';function a(t,e){t.cmdState.push(e)};function u(t){if(t.cmdState.length>0){return t.cmdState[t.cmdState.length-1]}
+else{return null}};function o(t){var e=t.cmdState.pop();if(e){e.closeBracket()}};function f(t){var r=t.cmdState;for(var e=r.length-1;e>=0;e--){var n=r[e];if(n.name=='DEFAULT'){continue};return n};return{styleIdentifier:function(){return null}}};function r(t,e,n){return function(){this.name=t;this.bracketNo=0;this.style=e;this.styles=n;this.argument=null;this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null};this.openBracket=function(){this.bracketNo++;return'bracket'};this.closeBracket=function(){}}};var t={};t['importmodule']=r('importmodule','tag',['string','builtin']);t['documentclass']=r('documentclass','tag',['','atom']);t['usepackage']=r('usepackage','tag',['atom']);t['begin']=r('begin','tag',['atom']);t['end']=r('end','tag',['atom']);t['DEFAULT']=function(){this.name='DEFAULT';this.style='tag';this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function e(t,e){t.f=e};function n(n,r){var o;if(n.match(/^\\[a-zA-Z@]+/)){var l=n.current().slice(1);o=t[l]||t['DEFAULT'];o=new o();a(r,o);e(r,c);return o.style};if(n.match(/^\\[$&%#{}_]/)){return'tag'};if(n.match(/^\\[,;!\/\\]/)){return'tag'};if(n.match('\\[')){e(r,function(t,e){return i(t,e,'\\]')});return'keyword'};if(n.match('$$')){e(r,function(t,e){return i(t,e,'$$')});return'keyword'};if(n.match('$')){e(r,function(t,e){return i(t,e,'$')});return'keyword'};var s=n.next();if(s=='%'){n.skipToEnd();return'comment'}
+else if(s=='}'||s==']'){o=u(r);if(o){o.closeBracket(s);e(r,c)}
+else{return'error'};return'bracket'}
+else if(s=='{'||s=='['){o=t['DEFAULT'];o=new o();a(r,o);return'bracket'}
+else if(/\d/.test(s)){n.eatWhile(/[\w.%]/);return'atom'}
+else{n.eatWhile(/[\w\-_]/);o=f(r);if(o.name=='begin'){o.argument=n.current()};return o.styleIdentifier()}};function i(t,r,a){if(t.eatSpace()){return null};if(t.match(a)){e(r,n);return'keyword'};if(t.match(/^\\[a-zA-Z@]+/)){return'tag'};if(t.match(/^[a-zA-Z]+/)){return'variable-2'};if(t.match(/^\\[$&%#{}_]/)){return'tag'};if(t.match(/^\\[,;!\/]/)){return'tag'};if(t.match(/^[\^_&]/)){return'tag'};if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)){return null};if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)){return'number'};var i=t.next();if(i=='{'||i=='}'||i=='['||i==']'||i=='('||i==')'){return'bracket'};if(i=='%'){t.skipToEnd();return'comment'};return'error'};function c(t,r){var i=t.peek(),a;if(i=='{'||i=='['){a=u(r);a.openBracket(i);t.eat(i);e(r,n);return'bracket'};if(/[ \t\r]/.test(i)){t.eat(i);return null};e(r,n);o(r);return n(t,r)};return{startState:function(){return{cmdState:[],f:n}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=n;t.cmdState.length=0},lineComment:'%'}});t.defineMIME('text/x-stex','stex');t.defineMIME('text/x-latex','stex')});
+/* ./modules/editor/codemirror/mode/q/q.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('q',function(e){var o=e.indentUnit,t,s=a(['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']),c=/[|/&^!+:\\\-*%$=~#;@><,?_'"\[\(\]\)\s{}]/;function a(e){return new RegExp('^('+e.join('|')+')$')};function n(e,i){var a=e.sol(),r=e.next();t=null;if(a)if(r=='/')return(i.tokenize=l)(e,i);else if(r=='\\'){if(e.eol()||/\s/.test(e.peek()))return e.skipToEnd(),/^\\\s*$/.test(e.current())?(i.tokenize=d)(e):i.tokenize=n,'comment';else return i.tokenize=n,'builtin'};if(/\s/.test(r))return e.peek()=='/'?(e.skipToEnd(),'comment'):'whitespace';if(r=='"')return(i.tokenize=f)(e,i);if(r=='`')return e.eatWhile(/[A-Za-z\d_:\/.]/),'symbol';if(('.'==r&&/\d/.test(e.peek()))||/\d/.test(r)){var o=null;e.backUp(1);if(e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/))o='temporal';else if(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))o='number';return(o&&(!(r=e.peek())||c.test(r)))?o:(e.next(),'error')};if(/[A-Za-z]|\./.test(r))return e.eatWhile(/[A-Za-z._\d]/),s.test(e.current())?'keyword':'variable';if(/[|/&^!+:\\\-*%$=~#;@><\.,?_']/.test(r))return null;if(/[{}\(\[\]\)]/.test(r))return null;return'error'};function l(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=u)(e,t):(t.tokenize=n),'comment'};function u(e,t){var i=e.sol()&&e.peek()=='\\';e.skipToEnd();if(i&&/^\\\s*$/.test(e.current()))t.tokenize=n;return'comment'};function d(e){return e.skipToEnd(),'comment'};function f(e,t){var i=!1,r,o=!1;while((r=e.next())){if(r=='"'&&!i){o=!0;break};i=!i&&r=='\\'};if(o)t.tokenize=n;return'string'};function i(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}};function r(e){e.indent=e.context.indent;e.context=e.context.prev};return{startState:function(){return{tokenize:n,context:null,indent:0,col:0}},token:function(n,e){if(n.sol()){if(e.context&&e.context.align==null)e.context.align=!1;e.indent=n.indentation()};var o=e.tokenize(n,e);if(o!='comment'&&e.context&&e.context.align==null&&e.context.type!='pattern'){e.context.align=!0};if(t=='(')i(e,')',n.column());else if(t=='[')i(e,']',n.column());else if(t=='{')i(e,'}',n.column());else if(/[\]\}\)]/.test(t)){while(e.context&&e.context.type=='pattern')r(e);if(e.context&&t==e.context.type)r(e)}
+else if(t=='.'&&e.context&&e.context.type=='pattern')r(e);else if(/atom|string|variable/.test(o)&&e.context){if(/[\}\]]/.test(e.context.type))i(e,'pattern',n.column());else if(e.context.type=='pattern'&&!e.context.align){e.context.align=!0;e.context.col=n.column()}};return o},indent:function(e,n){var r=n&&n.charAt(0),t=e.context;if(/[\]\}]/.test(r))while(t&&t.type=='pattern')t=t.prev;var i=t&&r==t.type;if(!t)return 0;else if(t.type=='pattern')return t.col;else if(t.align)return t.col+(i?0:1);else return t.indent+(i?0:o)}}});e.defineMIME('text/x-q','q')});
+/* ./modules/editor/codemirror/mode/htmlembedded/htmlembedded.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'),require('../../addon/mode/multiplex'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed','../../addon/mode/multiplex'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('htmlembedded',function(d,i){return e.multiplexingMode(e.getMode(d,'htmlmixed'),{open:i.open||i.scriptStartRegex||'<%',close:i.close||i.scriptEndRegex||'%>',mode:e.getMode(d,i.scriptingModeSpec)})},'htmlmixed');e.defineMIME('application/x-ejs',{name:'htmlembedded',scriptingModeSpec:'javascript'});e.defineMIME('application/x-aspx',{name:'htmlembedded',scriptingModeSpec:'text/x-csharp'});e.defineMIME('application/x-jsp',{name:'htmlembedded',scriptingModeSpec:'text/x-java'});e.defineMIME('application/x-erb',{name:'htmlembedded',scriptingModeSpec:'ruby'})});
+/* ./modules/editor/codemirror/mode/d/d.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('d',function(t,n){var a=t.indentUnit,p=n.statementIndentUnit||a,h=n.keywords||{},y=n.builtin||{},u=n.blockKeywords||{},b=n.atoms||{},s=n.hooks||{},v=n.multiLineStrings;var l=/[+\-*&%=<>!?|\/]/,r;function f(e,t){var n=e.next();if(s[n]){var o=s[n](e,t);if(o!==!1)return o};if(n=='"'||n=='\''||n=='`'){t.tokenize=w(n);return t.tokenize(e,t)};if(/[\[\]{}\(\),;\:\.]/.test(n)){r=n;return null};if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return'number'};if(n=='/'){if(e.eat('+')){t.tokenize=d;return d(e,t)};if(e.eat('*')){t.tokenize=c;return c(e,t)};if(e.eat('/')){e.skipToEnd();return'comment'}};if(l.test(n)){e.eatWhile(l);return'operator'};e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();if(h.propertyIsEnumerable(i)){if(u.propertyIsEnumerable(i))r='newstatement';return'keyword'};if(y.propertyIsEnumerable(i)){if(u.propertyIsEnumerable(i))r='newstatement';return'builtin'};if(b.propertyIsEnumerable(i))return'atom';return'variable'};function w(e){return function(t,n){var r=!1,i,o=!1;while((i=t.next())!=null){if(i==e&&!r){o=!0;break};r=!r&&i=='\\'};if(o||!(r||v))n.tokenize=null;return'string'}};function c(e,t){var r=!1,n;while(n=e.next()){if(n=='/'&&r){t.tokenize=null;break};r=(n=='*')};return'comment'};function d(e,t){var r=!1,n;while(n=e.next()){if(n=='/'&&r){t.tokenize=null;break};r=(n=='+')};return'comment'};function m(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i};function o(e,t,n){var r=e.indented;if(e.context&&e.context.type=='statement')r=e.context.indented;return e.context=new m(r,t,n,null,e.context)};function i(e){var t=e.context.type;if(t==')'||t==']'||t=='}')e.indented=e.context.indented;return e.context=e.context.prev};return{startState:function(e){return{tokenize:null,context:new m((e||0)-a,0,'top',!1),indented:0,startOfLine:!0}},token:function(t,e){var n=e.context;if(t.sol()){if(n.align==null)n.align=!1;e.indented=t.indentation();e.startOfLine=!0};if(t.eatSpace())return null;r=null;var a=(e.tokenize||f)(t,e);if(a=='comment'||a=='meta')return a;if(n.align==null)n.align=!0;if((r==';'||r==':'||r==',')&&n.type=='statement')i(e);else if(r=='{')o(e,t.column(),'}');else if(r=='[')o(e,t.column(),']');else if(r=='(')o(e,t.column(),')');else if(r=='}'){while(n.type=='statement')n=i(e);if(n.type=='}')n=i(e);while(n.type=='statement')n=i(e)}
+else if(r==n.type)i(e);else if(((n.type=='}'||n.type=='top')&&r!=';')||(n.type=='statement'&&r=='newstatement'))o(e,t.column(),'statement');e.startOfLine=!1;return a},indent:function(t,n){if(t.tokenize!=f&&t.tokenize!=null)return e.Pass;var r=t.context,i=n&&n.charAt(0);if(r.type=='statement'&&i=='}')r=r.prev;var o=i==r.type;if(r.type=='statement')return r.indented+(i=='{'?0:p);else if(r.align)return r.column+(o?0:1);else return r.indented+(o?0:a)},electricChars:'{}'}});function t(e){var n={},r=e.split(' ');for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};var n='body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with';e.defineMIME('text/x-d',{name:'d',keywords:t('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 '+n),blockKeywords:t(n),builtin:t('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:t('exit failure success true false null'),hooks:{'@':function(e,t){e.eatWhile(/[\w\$_]/);return'meta'}}})});
+/* ./modules/editor/codemirror/mode/protobuf/protobuf.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function i(e){return new RegExp('^(('+e.join(')|(')+'))\\b','i')};var t=['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'],n=i(t);e.registerHelper('hintWords','protobuf',t);var r=new RegExp('^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*');function f(e){if(e.eatSpace())return null;if(e.match('//')){e.skipToEnd();return'comment'};if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return'number';if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return'number';if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return'number'};if(e.match(/^"([^"]|(""))*"/)){return'string'};if(e.match(/^'([^']|(''))*'/)){return'string'};if(e.match(n)){return'keyword'};if(e.match(r)){return'variable'};e.next();return null};e.defineMode('protobuf',function(){return{token:f}});e.defineMIME('text/x-protobuf','protobuf')});
+/* ./modules/editor/codemirror/mode/mscgen/mscgen.min.js */(function(t){if(typeof exports=='object'&&typeof module=='object')t(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],t);else t(CodeMirror)})(function(t){'use strict';var n={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'],'brackets':['\\{','\\}'],'arcsWords':['note','abox','rbox','box'],'arcsOthers':['\\|\\|\\|','\\.\\.\\.','---','--','<->','==','<<=>>','<=>','\\.\\.','<<>>','::','<:>','->','=>>','=>','>>',':>','<-','<<=','<=','<<','<:','x-','-x'],'singlecomment':['//','#'],'operators':['=']},xu:{'keywords':['msc','xu'],'options':['hscale','width','arcgradient','wordwraparcs','watermark'],'constants':['true','false','on','off','auto'],'attributes':['label','idurl','id','url','linecolor','linecolour','textcolor','textcolour','textbgcolor','textbgcolour','arclinecolor','arclinecolour','arctextcolor','arctextcolour','arctextbgcolor','arctextbgcolour','arcskip'],'brackets':['\\{','\\}'],'arcsWords':['note','abox','rbox','box','alt','else','opt','break','par','seq','strict','neg','critical','ignore','consider','assert','loop','ref','exc'],'arcsOthers':['\\|\\|\\|','\\.\\.\\.','---','--','<->','==','<<=>>','<=>','\\.\\.','<<>>','::','<:>','->','=>>','=>','>>',':>','<-','<<=','<=','<<','<:','x-','-x'],'singlecomment':['//','#'],'operators':['=']},msgenny:{'keywords':null,'options':['hscale','width','arcgradient','wordwraparcs','watermark'],'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'],'arcsOthers':['\\|\\|\\|','\\.\\.\\.','---','--','<->','==','<<=>>','<=>','\\.\\.','<<>>','::','<:>','->','=>>','=>','>>',':>','<-','<<=','<=','<<','<:','x-','-x'],'singlecomment':['//','#'],'operators':['=']}};t.defineMode('mscgen',function(t,r){var e=n[r&&r.language||'mscgen'];return{startState:o,copyState:i,token:c(e),lineComment:'#',blockCommentStart:'/*',blockCommentEnd:'*/'}});t.defineMIME('text/x-mscgen','mscgen');t.defineMIME('text/x-xu',{name:'mscgen',language:'xu'});t.defineMIME('text/x-msgenny',{name:'mscgen',language:'msgenny'});function e(t){return new RegExp('\\b('+t.join('|')+')\\b','i')};function r(t){return new RegExp('('+t.join('|')+')','i')};function o(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}};function i(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}};function c(t){return function(n,o){if(n.match(r(t.brackets),!0,!0)){return'bracket'};if(!o.inComment){if(n.match(/\/\*[^\*\/]*/,!0,!0)){o.inComment=!0;return'comment'};if(n.match(r(t.singlecomment),!0,!0)){n.skipToEnd();return'comment'}};if(o.inComment){if(n.match(/[^\*\/]*\*\//,!0,!0))o.inComment=!1;else n.skipToEnd();return'comment'};if(!o.inString&&n.match(/"(\\"|[^"])*/,!0,!0)){o.inString=!0;return'string'};if(o.inString){if(n.match(/[^"]*"/,!0,!0))o.inString=!1;else n.skipToEnd();return'string'};if(!!t.keywords&&n.match(e(t.keywords),!0,!0))return'keyword';if(n.match(e(t.options),!0,!0))return'keyword';if(n.match(e(t.arcsWords),!0,!0))return'keyword';if(n.match(r(t.arcsOthers),!0,!0))return'keyword';if(!!t.operators&&n.match(r(t.operators),!0,!0))return'operator';if(!!t.constants&&n.match(r(t.constants),!0,!0))return'variable';if(!t.inAttributeList&&!!t.attributes&&n.match(/\[/,!0,!0)){t.inAttributeList=!0;return'bracket'};if(t.inAttributeList){if(t.attributes!==null&&n.match(e(t.attributes),!0,!0)){return'attribute'};if(n.match(/]/,!0,!0)){t.inAttributeList=!1;return'bracket'}};n.next();return'base'}}});
+/* ./modules/editor/codemirror/mode/django/django.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'),require('../../addon/mode/overlay'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed','../../addon/mode/overlay'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('django:inner',function(){var i=['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'],e=['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'],n=['==','!=','<','>','<=','>='],o=['in','not','or','and'];i=new RegExp('^\\b('+i.join('|')+')\\b');e=new RegExp('^\\b('+e.join('|')+')\\b');n=new RegExp('^\\b('+n.join('|')+')\\b');o=new RegExp('^\\b('+o.join('|')+')\\b');function t(e,t){if(e.match('{{')){t.tokenize=l;return'tag'}
+else if(e.match('{%')){t.tokenize=a;return'tag'}
+else if(e.match('{#')){t.tokenize=u;return'comment'}
+while(e.next()!=null&&!e.match(/\{[{%#]/,!1)){};return null};function r(e,t){return function(r,i){if(!i.escapeNext&&r.eat(e)){i.tokenize=t}
+else{if(i.escapeNext){i.escapeNext=!1};var n=r.next();if(n=='\\'){i.escapeNext=!0}};return'string'}};function l(n,i){if(i.waitDot){i.waitDot=!1;if(n.peek()!='.'){return'null'};if(n.match(/\.\W+/)){return'error'}
+else if(n.eat('.')){i.waitProperty=!0;return'null'}
+else{throw Error('Unexpected error while waiting for property.')}};if(i.waitPipe){i.waitPipe=!1;if(n.peek()!='|'){return'null'};if(n.match(/\.\W+/)){return'error'}
+else if(n.eat('|')){i.waitFilter=!0;return'null'}
+else{throw Error('Unexpected error while waiting for filter.')}};if(i.waitProperty){i.waitProperty=!1;if(n.match(/\b(\w+)\b/)){i.waitDot=!0;i.waitPipe=!0;return'property'}};if(i.waitFilter){i.waitFilter=!1;if(n.match(e)){return'variable-2'}};if(n.eatSpace()){i.waitProperty=!1;return'null'};if(n.match(/\b\d+(\.\d+)?\b/)){return'number'};if(n.match('\'')){i.tokenize=r('\'',i.tokenize);return'string'}
+else if(n.match('"')){i.tokenize=r('"',i.tokenize);return'string'};if(n.match(/\b(\w+)\b/)&&!i.foundVariable){i.waitDot=!0;i.waitPipe=!0;return'variable'};if(n.match('}}')){i.waitProperty=null;i.waitFilter=null;i.waitDot=null;i.waitPipe=null;i.tokenize=t;return'tag'};n.next();return'null'};function a(l,a){if(a.waitDot){a.waitDot=!1;if(l.peek()!='.'){return'null'};if(l.match(/\.\W+/)){return'error'}
+else if(l.eat('.')){a.waitProperty=!0;return'null'}
+else{throw Error('Unexpected error while waiting for property.')}};if(a.waitPipe){a.waitPipe=!1;if(l.peek()!='|'){return'null'};if(l.match(/\.\W+/)){return'error'}
+else if(l.eat('|')){a.waitFilter=!0;return'null'}
+else{throw Error('Unexpected error while waiting for filter.')}};if(a.waitProperty){a.waitProperty=!1;if(l.match(/\b(\w+)\b/)){a.waitDot=!0;a.waitPipe=!0;return'property'}};if(a.waitFilter){a.waitFilter=!1;if(l.match(e)){return'variable-2'}};if(l.eatSpace()){a.waitProperty=!1;return'null'};if(l.match(/\b\d+(\.\d+)?\b/)){return'number'};if(l.match('\'')){a.tokenize=r('\'',a.tokenize);return'string'}
+else if(l.match('"')){a.tokenize=r('"',a.tokenize);return'string'};if(l.match(n)){return'operator'};if(l.match(o)){return'keyword'};var u=l.match(i);if(u){if(u[0]=='comment'){a.blockCommentTag=!0};return'keyword'};if(l.match(/\b(\w+)\b/)){a.waitDot=!0;a.waitPipe=!0;return'variable'};if(l.match('%}')){a.waitProperty=null;a.waitFilter=null;a.waitDot=null;a.waitPipe=null;if(a.blockCommentTag){a.blockCommentTag=!1;a.tokenize=f}
+else{a.tokenize=t};return'tag'};l.next();return'null'};function u(e,r){if(e.match(/^.*?#\}/))r.tokenize=t;else e.skipToEnd();return'comment'};function f(e,t){if(e.match(/\{%\s*endcomment\s*%\}/,!1)){t.tokenize=a;e.match('{%');return'tag'}
+else{e.next();return'comment'}};return{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)},blockCommentStart:'{% comment %}',blockCommentEnd:'{% endcomment %}'}});e.defineMode('django',function(t){var r=e.getMode(t,'text/html'),i=e.getMode(t,'django:inner');return e.overlayMode(r,i)});e.defineMIME('text/x-django','django')});
+/* ./modules/editor/codemirror/mode/toml/toml.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('toml',function(){return{startState:function(){return{inString:!1,stringType:'',lhs:!0,inArray:0}},token:function(e,t){if(!t.inString&&((e.peek()=='"')||(e.peek()=='\''))){t.stringType=e.peek();e.next();t.inString=!0};if(e.sol()&&t.inArray===0){t.lhs=!0};if(t.inString){while(t.inString&&!e.eol()){if(e.peek()===t.stringType){e.next();t.inString=!1}
+else if(e.peek()==='\\'){e.next();e.next()}
+else{e.match(/^.[^\\"']*/)}};return t.lhs?'property string':'string'}
+else if(t.inArray&&e.peek()===']'){e.next();t.inArray--;return'bracket'}
+else if(t.lhs&&e.peek()==='['&&e.skipTo(']')){e.next();if(e.peek()===']')e.next();return'atom'}
+else if(e.peek()==='#'){e.skipToEnd();return'comment'}
+else if(e.eatSpace()){return null}
+else if(t.lhs&&e.eatWhile(function(e){return e!='='&&e!=' '})){return'property'}
+else if(t.lhs&&e.peek()==='='){e.next();t.lhs=!1;return null}
+else if(!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)){return'atom'}
+else if(!t.lhs&&(e.match('true')||e.match('false'))){return'atom'}
+else if(!t.lhs&&e.peek()==='['){t.inArray++;e.next();return'bracket'}
+else if(!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)){return'number'}
+else if(!e.eatSpace()){e.next()};return null}}});e.defineMIME('text/x-toml','toml')});
+/* ./modules/editor/codemirror/mode/yacas/yacas.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("yacas",function(t,r){function p(e){var r={},n=e.split(" ");for(var t=0;t<n.length;++t)r[n[t]]=!0;return r};var a=p("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"),u="(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)",n="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",c=new RegExp(u),l=new RegExp(n),f=new RegExp(n+"?_"+n),s=new RegExp(n+"\\s*\\(");function i(e,t){var r;r=e.next();if(r==="\""){t.tokenize=m;return t.tokenize(e,t)};if(r==="/"){if(e.eat("*")){t.tokenize=d;return t.tokenize(e,t)};if(e.eat("/")){e.skipToEnd();return"comment"}};e.backUp(1);var i=e.match(/^(\w+)\s*\(/,!1);if(i!==null&&a.hasOwnProperty(i[1]))t.scopes.push("bodied");var n=o(t);if(n==="bodied"&&r==="[")t.scopes.pop();if(r==="["||r==="{"||r==="(")t.scopes.push(r);n=o(t);if(n==="["&&r==="]"||n==="{"&&r==="}"||n==="("&&r===")")t.scopes.pop();if(r===";"){while(n==="bodied"){t.scopes.pop();n=o(t)}};if(e.match(/\d+ *#/,!0,!1)){return"qualifier"};if(e.match(c,!0,!1)){return"number"};if(e.match(f,!0,!1)){return"variable-3"};if(e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)){return"bracket"};if(e.match(s,!0,!1)){e.backUp(1);return"variable"};if(e.match(l,!0,!1)){return"variable-2"};if(e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)){return"operator"};return"error"};function m(e,t){var n,o=!1,r=!1;while((n=e.next())!=null){if(n==="\""&&!r){o=!0;break};r=!r&&n==="\\"};if(o&&!r){t.tokenize=i};return"string"};function d(e,t){var n,r;while((r=e.next())!=null){if(n==="*"&&r==="/"){t.tokenize=i;break};n=r};return"comment"};function o(e){var t=null;if(e.scopes.length>0)t=e.scopes[e.scopes.length-1];return t};return{startState:function(){return{tokenize:i,scopes:[]}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},indent:function(r,n){if(r.tokenize!==i&&r.tokenize!==null)return e.Pass;var o=0;if(n==="]"||n==="];"||n==="}"||n==="};"||n===");")o=-1;return(r.scopes.length+o)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});e.defineMIME("text/x-yacas",{name:"yacas"})});
+/* ./modules/editor/codemirror/mode/dockerfile/dockerfile.min.js */
+/* ./modules/editor/codemirror/mode/python/python.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';function n(e){return new RegExp('^(('+e.join(')|(')+'))\\b')};var o=n(['and','or','not','is']),r=['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'],i=['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__'];e.registerHelper('hintWords','python',r.concat(i));function t(e){return e.scopes[e.scopes.length-1]};e.defineMode('python',function(s,a){var c='error',F=a.delimiters||a.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.]/,u=[a.singleOperators,a.doubleOperators,a.doubleDelimiters,a.tripleDelimiters,a.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@])/];for(var d=0;d<u.length;d++)if(!u[d])u.splice(d--,1);var h=a.hangingIndent||s.indentUnit,l=r,f=i;if(a.extra_keywords!=undefined)l=l.concat(a.extra_keywords);if(a.extra_builtins!=undefined)f=f.concat(a.extra_builtins);var y=!(a.version&&Number(a.version)<3);if(y){var p=a.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;l=l.concat(['nonlocal','False','True','None','async','await']);f=f.concat(['ascii','bytes','exec','print']);var b=new RegExp('^(([rbuf]|(br))?(\'{3}|"{3}|[\'"]))','i')}
+else{var p=a.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;l=l.concat(['exec','print']);f=f.concat(['apply','basestring','buffer','cmp','coerce','execfile','file','intern','long','raw_input','reduce','reload','unichr','unicode','xrange','False','True','None']);var b=new RegExp('^(([rubf]|(ur)|(br))?(\'{3}|"{3}|[\'"]))','i')};var w=n(l),z=n(f);function m(e,n){if(e.sol())n.indent=e.indentation();if(e.sol()&&t(n).type=='py'){var r=t(n).offset;if(e.eatSpace()){var a=e.indentation();if(a>r)v(n);else if(a<r&&x(e,n)&&e.peek()!='#')n.errorToken=!0;return null}
+else{var i=g(e,n);if(r>0&&x(e,n))i+=' '+c;return i}};return g(e,n)};function g(e,t){if(e.eatSpace())return null;var a=e.peek();if(a=='#'){e.skipToEnd();return'comment'};if(e.match(/^[0-9\.]/,!1)){var r=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)){r=!0};if(e.match(/^[\d_]+\.\d*/)){r=!0};if(e.match(/^\.\d+/)){r=!0};if(r){e.eat(/J/i);return'number'};var n=!1;if(e.match(/^0x[0-9a-f_]+/i))n=!0;if(e.match(/^0b[01_]+/i))n=!0;if(e.match(/^0o[0-7_]+/i))n=!0;if(e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)){e.eat(/J/i);n=!0};if(e.match(/^0(?![\dx])/i))n=!0;if(n){e.eat(/L/i);return'number'}};if(e.match(b)){t.tokenize=E(e.current());return t.tokenize(e,t)};for(var i=0;i<u.length;i++)if(e.match(u[i]))return'operator';if(e.match(F))return'punctuation';if(t.lastToken=='.'&&e.match(p))return'property';if(e.match(w)||e.match(o))return'keyword';if(e.match(z))return'builtin';if(e.match(/^(self|cls)\b/))return'variable-2';if(e.match(p)){if(t.lastToken=='def'||t.lastToken=='class')return'def';return'variable'};e.next();return c};function E(e){while('rubf'.indexOf(e.charAt(0).toLowerCase())>=0)e=e.substr(1);var n=e.length==1,t='string';function r(r,i){while(!r.eol()){r.eatWhile(/[^'"\\]/);if(r.eat('\\')){r.next();if(n&&r.eol())return t}
+else if(r.match(e)){i.tokenize=m;return t}
+else{r.eat(/['"]/)}};if(n){if(a.singleLineStringErrors)return c;else i.tokenize=m};return t};r.isString=!0;return r};function v(e){while(t(e).type!='py')e.scopes.pop();e.scopes.push({offset:t(e).offset+s.indentUnit,type:'py',align:null})};function T(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+h,type:n,align:r})};function x(e,n){var r=e.indentation();while(n.scopes.length>1&&t(n).offset>r){if(t(n).type!='py')return!0;n.scopes.pop()};return t(n).offset!=r};function A(n,e){if(n.sol())e.beginningOfLine=!0;var a=e.tokenize(n,e),r=n.current();if(e.beginningOfLine&&r=='@')return n.match(p,!1)?'meta':y?'operator':c;if(/\S/.test(r))e.beginningOfLine=!1;if((a=='variable'||a=='builtin')&&e.lastToken=='meta')a='meta';if(r=='pass'||r=='return')e.dedent+=1;if(r=='lambda')e.lambda=!0;if(r==':'&&!e.lambda&&t(e).type=='py')v(e);var i=r.length==1?'[({'.indexOf(r):-1;if(i!=-1)T(n,e,'])}'.slice(i,i+1));i='])}'.indexOf(r);if(i!=-1){if(t(e).type==r)e.indent=e.scopes.pop().offset-h;else return c};if(e.dedent>0&&n.eol()&&t(e).type=='py'){if(e.scopes.length>1)e.scopes.pop();e.dedent-=1};return a};var k={startState:function(e){return{tokenize:m,scopes:[{offset:e||0,type:'py',align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var r=t.errorToken;if(r)t.errorToken=!1;var n=A(e,t);if(n&&n!='comment')t.lastToken=(n=='keyword'||n=='punctuation')?e.current():n;if(n=='punctuation')n=null;if(e.eol()&&t.lambda)t.lambda=!1;return r?n+' '+c:n},indent:function(n,r){if(n.tokenize!=m)return n.tokenize.isString?e.Pass:0;var i=t(n),a=i.type==r.charAt(0);if(i.align!=null)return i.align-(a?1:0);else return i.offset-(a?h:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:'\'"'},lineComment:'#',fold:'indent'};return k});e.defineMIME('text/x-python','python');var a=function(e){return e.split(' ')};e.defineMIME('text/x-cython',{name:'python',extra_keywords:a('by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE')})});
+/* ./modules/editor/codemirror/mode/vb/vb.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("vb",function(n,t){var i="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")};var v=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),x=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),g=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),w=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),I=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),y=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),u=["class","module","sub","enum","select","while","if","function","get","set","property","try"],f=["else","elseif","case","catch"],d=["next","loop"],l=["and","or","not","xor","in"],E=r(l),s=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],m=["integer","string","double","decimal","boolean","short","char","float","single"],L=r(s),z=r(m),C="\"",R=r(u),h=r(f),p=r(d),b=r(["end"]),F=r(["do"]),M=null;e.registerHelper("hintWords","vb",u.concat(f).concat(d).concat(l).concat(s).concat(m));function a(e,n){n.currentIndent++};function o(e,n){n.currentIndent--};function c(e,n){if(e.eatSpace()){return null};var c=e.peek();if(c==="'"){e.skipToEnd();return"comment"};if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var r=!1;if(e.match(/^\d*\.\d+F?/i)){r=!0}
+else if(e.match(/^\d+\.\d*F?/)){r=!0}
+else if(e.match(/^\.\d+F?/)){r=!0};if(r){e.eat(/J/i);return"number"};var t=!1;if(e.match(/^&H[0-9a-f]+/i)){t=!0}
+else if(e.match(/^&O[0-7]+/i)){t=!0}
+else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);t=!0}
+else if(e.match(/^0(?![\dx])/i)){t=!0};if(t){e.eat(/L/i);return"number"}};if(e.match(C)){n.tokenize=O(e.current());return n.tokenize(e,n)};if(e.match(I)||e.match(w)){return null};if(e.match(g)||e.match(v)||e.match(E)){return"operator"};if(e.match(x)){return null};if(e.match(F)){a(e,n);n.doInCurrentLine=!0;return"keyword"};if(e.match(R)){if(!n.doInCurrentLine)a(e,n);else n.doInCurrentLine=!1;return"keyword"};if(e.match(h)){return"keyword"};if(e.match(b)){o(e,n);o(e,n);return"keyword"};if(e.match(p)){o(e,n);return"keyword"};if(e.match(z)){return"keyword"};if(e.match(L)){return"keyword"};if(e.match(y)){return"variable"};e.next();return i};function O(e){var r=e.length==1,n="string";return function(o,a){while(!o.eol()){o.eatWhile(/[^'"]/);if(o.match(e)){a.tokenize=c;return n}
+else{o.eat(/['"]/)}};if(r){if(t.singleLineStringErrors){return i}
+else{a.tokenize=c}};return n}};function T(e,n){var r=n.tokenize(e,n),c=e.current();if(c==="."){r=n.tokenize(e,n);if(r==="variable"){return"variable"}
+else{return i}};var t="[({".indexOf(c);if(t!==-1){a(e,n)};if(M==="dedent"){if(o(e,n)){return i}};t="])}".indexOf(c);if(t!==-1){if(o(e,n)){return i}};return r};var k={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:c,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,n){if(e.sol()){n.currentIndent+=n.nextLineIndent;n.nextLineIndent=0;n.doInCurrentLine=0};var t=T(e,n);n.lastToken={style:t,content:e.current()};return t},indent:function(e,t){var r=t.replace(/^\s+|\s+$/g,"");if(r.match(p)||r.match(b)||r.match(h))return n.indentUnit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*n.indentUnit},lineComment:"'"};return k});e.defineMIME("text/x-vb","vb")});
+/* ./modules/editor/codemirror/mode/octave/octave.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("octave",function(){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")};var r=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),i=new RegExp("^[\\(\\[\\{\\},:=;]"),o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),f=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),a=new RegExp("^((>>=)|(<<=))"),u=new RegExp("^[\\]\\)]"),c=new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"),m=n(["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"]),s=n(["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"]);function t(n,t){if(!n.sol()&&n.peek()==="'"){n.next();t.tokenize=e;return"operator"};t.tokenize=e;return e(n,t)};function l(n,t){if(n.match(/^.*%}/)){t.tokenize=e;return"comment"};n.skipToEnd();return"comment"};function e(d,p){if(d.eatSpace())return null;if(d.match("%{")){p.tokenize=l;d.skipToEnd();return"comment"};if(d.match(/^[%#]/)){d.skipToEnd();return"comment"};if(d.match(/^[0-9\.+-]/,!1)){if(d.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)){d.tokenize=e;return"number"};if(d.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"};if(d.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}};if(d.match(n(["nan","NaN","inf","Inf"]))){return"number"};var h=d.match(/^"(?:[^"]|"")*("|$)/)||d.match(/^'(?:[^']|'')*('|$)/);if(h){return h[1]?"string":"string error"};if(d.match(s)){return"keyword"};if(d.match(m)){return"builtin"};if(d.match(c)){return"variable"};if(d.match(r)||d.match(o)){return"operator"};if(d.match(i)||d.match(f)||d.match(a)){return null};if(d.match(u)){p.tokenize=t;return null};d.next();return"error"};return{startState:function(){return{tokenize:e}},token:function(e,n){var r=n.tokenize(e,n);if(r==="number"||r==="variable"){n.tokenize=t};return r},lineComment:"%",fold:"indent"}});e.defineMIME("text/x-octave","octave")});
+/* ./modules/editor/codemirror/mode/tcl/tcl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('tcl',function(){function a(e){var t={},n=e.split(' ');for(var r=0;r<n.length;++r)t[n[r]]=!0;return t};var t=a('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'),n=a('if elseif else and not or eq ne in ni for foreach while switch'),i=/[+\-*&%=<>!?^\/\|]/;function r(e,r,t){r.tokenize=t;return t(e,r)};function e(e,a){var c=a.beforeParams;a.beforeParams=!1;var s=e.next();if((s=='"'||s=='\'')&&a.inParams){return r(e,a,o(s))}
+else if(/[\[\]{}\(\),;\.]/.test(s)){if(s=='('&&c)a.inParams=!0;else if(s==')')a.inParams=!1;return null}
+else if(/\d/.test(s)){e.eatWhile(/[\w\.]/);return'number'}
+else if(s=='#'){if(e.eat('*'))return r(e,a,l);if(s=='#'&&e.match(/ *\[ *\[/))return r(e,a,f);e.skipToEnd();return'comment'}
+else if(s=='"'){e.skipTo(/"/);return'comment'}
+else if(s=='$'){e.eatWhile(/[$_a-z0-9A-Z\.{:]/);e.eatWhile(/}/);a.beforeParams=!0;return'builtin'}
+else if(i.test(s)){e.eatWhile(i);return'comment'}
+else{e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var u=e.current().toLowerCase();if(t&&t.propertyIsEnumerable(u))return'keyword';if(n&&n.propertyIsEnumerable(u)){a.beforeParams=!0;return'keyword'};return null}};function o(r){return function(t,n){var i=!1,a,o=!1;while((a=t.next())!=null){if(a==r&&!i){o=!0;break};i=!i&&a=='\\'};if(o)n.tokenize=e;return'string'}};function l(r,t){var i=!1,n;while(n=r.next()){if(n=='#'&&i){t.tokenize=e;break};i=(n=='*')};return'comment'};function f(r,t){var i=0,n;while(n=r.next()){if(n=='#'&&i==2){t.tokenize=e;break};if(n==']')i++;else if(n!=' ')i=0};return'meta'};return{startState:function(){return{tokenize:e,beforeParams:!1,inParams:!1}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)}}});e.defineMIME('text/x-tcl','tcl')});
+/* ./modules/editor/codemirror/mode/clojure/clojure.min.js */(function(e){if(typeof exports=="object"&&typeof module=="object")e(require("../../lib/codemirror"));else if(typeof define=="function"&&define.amd)define(["../../lib/codemirror"],e);else e(CodeMirror)})(function(e){"use strict";e.defineMode("clojure",function(t){var f="builtin",u="comment",d="string",p="string-2",r="atom",h="number",c="bracket",m="keyword",y="variable",g=t.indentUnit||2,b=t.indentUnit||2;function n(e){var n={},r=e.split(" ");for(var t=0;t<r.length;++t)n[r[t]]=!0;return n};var i=n("true false nil"),o=n("defn defn- def def- defonce defmulti defmethod defmacro defstruct deftype defprotocol defrecord defproject deftest slice defalias defhinted defmacro- defn-memo defnk defnk defonce- defunbound defunbound- defvar defvar- let letfn do case cond condp for loop recur when when-not when-let when-first if if-let if-not . .. -> ->> doto and or dosync doseq dotimes dorun doall load import unimport ns in-ns refer try catch finally throw with-open with-local-vars binding gen-class gen-and-load-class gen-and-save-class handler-case handle"),s=n("* *' *1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* *command-line-args* *compile-files* *compile-path* *compiler-options* *data-readers* *e *err* *file* *flush-on-newline* *fn-loader* *in* *math-context* *ns* *out* *print-dup* *print-length* *print-level* *print-meta* *print-readably* *read-eval* *source-path* *unchecked-math* *use-context-classloader* *verbose-defrecords* *warn-on-reflection* + +' - -' -> ->> ->ArrayChunk ->Vec ->VecNode ->VecSeq -cache-protocol-fn -reset-methods .. / < <= = == > >= EMPTY-NODE 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 apply areduce array-map 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 booleans bound-fn bound-fn* bound? butlast byte byte-array bytes case cat cast 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 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 doubles drop drop-last drop-while eduction empty empty? ensure 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 hash hash-combine hash-map hash-set identical? identity if-let if-not ifn? import in-ns inc inc' init-proxy instance? int int-array 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-indexed map? mapcat mapv max max-key memfn memoize merge merge-with meta method-sig methods min min-key mod munge name namespace namespace-munge neg? newline next nfirst nil? nnext not not-any? not-empty not-every? not= ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve ns-unalias ns-unmap nth nthnext nthrest num number? numerator object-array odd? or parents partial partition partition-all partition-by pcalls peek persistent! pmap pop pop! pop-thread-bindings pos? pr pr-str prefer-method prefers primitives-classnames print print-ctor print-dup print-method print-simple print-str printf println println-str prn prn-str promise proxy proxy-call-with-super proxy-mappings proxy-name proxy-super push-thread-bindings pvalues quot rand rand-int rand-nth random-sample range ratio? rational? rationalize re-find re-groups re-matcher re-matches re-pattern re-seq read read-line read-string realized? reduce reduce-kv reductions ref ref-history-count ref-max-history ref-min-history ref-set refer refer-clojure reify release-pending-sends rem remove remove-all-methods remove-method remove-ns remove-watch repeat repeatedly replace replicate require reset! reset-meta! resolve rest restart-agent resultset-seq reverse reversible? rseq rsubseq satisfies? second select-keys send send-off seq seq? seque sequence sequential? set set-error-handler! set-error-mode! set-validator! set? short short-array shorts shuffle shutdown-agents slurp some some-fn sort sort-by sorted-map sorted-map-by sorted-set sorted-set-by sorted? special-symbol? spit split-at split-with str string? struct struct-map subs subseq subvec supers swap! symbol symbol? sync take take-last take-nth take-while test the-ns thread-bound? time to-array to-array-2d trampoline transduce transient tree-seq true? type unchecked-add unchecked-add-int unchecked-byte unchecked-char unchecked-dec unchecked-dec-int unchecked-divide-int unchecked-double unchecked-float unchecked-inc unchecked-inc-int unchecked-int unchecked-long unchecked-multiply unchecked-multiply-int unchecked-negate unchecked-negate-int unchecked-remainder-int unchecked-short unchecked-subtract unchecked-subtract-int underive unquote unquote-splicing update update-in update-proxy use val vals var-get var-set var? vary-meta vec vector vector-of vector? volatile! volatile? vreset! vswap! when when-first when-let when-not 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 xml-seq zero? zipmap *default-data-reader-fn* as-> cond-> cond->> reduced reduced? send-via set-agent-send-executor! set-agent-send-off-executor! some-> some->>"),l=n("ns fn def defn defmethod bound-fn if if-not case condp when while when-not when-first do future comment doto locking proxy with-open with-precision reify deftype defrecord defprotocol extend extend-protocol extend-type try catch let letfn binding loop for doseq dotimes when-let if-let defstruct struct-map assoc testing deftest handler-case handle dotrace deftrace"),e={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+!\-\._?:<>\/\xa1-\uffff]/,block_indent:/^(?:def|with)[^\/]+$|\/(?:def|with)/};function k(e,t,n){this.indent=e;this.type=t;this.prev=n};function a(e,t,n){e.indentStack=new k(t,n,e.indentStack)};function v(e){e.indentStack=e.indentStack.prev};function w(n,t){if(n==="0"&&t.eat(/x/i)){t.eatWhile(e.hex);return!0};if((n=="+"||n=="-")&&(e.digit.test(t.peek()))){t.eat(e.sign);n=t.next()};if(e.digit.test(n)){t.eat(n);t.eatWhile(e.digit);if("."==t.peek()){t.eat(".");t.eatWhile(e.digit)}
+else if("/"==t.peek()){t.eat("/");t.eatWhile(e.digit)};if(t.eat(e.exponent)){t.eat(e.sign);t.eatWhile(e.digit)};return!0};return!1};function x(e){var t=e.next();if(t&&t.match(/[a-z]/)&&e.match(/[a-z]+/,!0)){return};if(t==="u"){e.match(/[0-9a-z]{4}/i,!0)}};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(t,k){if(k.indentStack==null&&t.sol()){k.indentation=t.indentation()};if(k.mode!="string"&&t.eatSpace()){return null};var q=null;switch(k.mode){case"string":var E,z=!1;while((E=t.next())!=null){if(E=="\""&&!z){k.mode=!1;break};z=!z&&E=="\\"};q=d;break;default:var n=t.next();if(n=="\""){k.mode="string";q=d}
+else if(n=="\\"){x(t);q=p}
+else if(n=="'"&&!(e.digit_or_colon.test(t.peek()))){q=r}
+else if(n==";"){t.skipToEnd();q=u}
+else if(w(n,t)){q=h}
+else if(n=="("||n=="["||n=="{"){var j="",S=t.column(),M;if(n=="(")while((M=t.eat(e.keyword_char))!=null){j+=M};if(j.length>0&&(l.propertyIsEnumerable(j)||e.block_indent.test(j))){a(k,S+g,n)}
+else{t.eatSpace();if(t.eol()||t.peek()==";"){a(k,S+b,n)}
+else{a(k,S+t.current().length,n)}};t.backUp(t.current().length-1);q=c}
+else if(n==")"||n=="]"||n=="}"){q=c;if(k.indentStack!=null&&k.indentStack.type==(n==")"?"(":(n=="]"?"[":"{"))){v(k)}}
+else if(n==":"){t.eatWhile(e.symbol);return r}
+else{t.eatWhile(e.symbol);if(o&&o.propertyIsEnumerable(t.current())){q=m}
+else if(s&&s.propertyIsEnumerable(t.current())){q=f}
+else if(i&&i.propertyIsEnumerable(t.current())){q=r}
+else{q=y}}};return q},indent:function(e){if(e.indentStack==null)return e.indentation;return e.indentStack.indent},closeBrackets:{pairs:"()[]{}\"\""},lineComment:";;"}});e.defineMIME("text/x-clojure","clojure");e.defineMIME("text/x-clojurescript","clojure");e.defineMIME("application/edn","clojure")});
+/* ./modules/editor/codemirror/mode/sass/sass.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../css/css'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../css/css'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('sass',function(r){var f=e.mimeModes['text/css'],u=f.propertyKeywords||{},x=f.colorKeywords||{},y=f.valueKeywords||{},v=f.fontProperties||{};function z(e){return new RegExp('^'+e.join('|'))};var d=['true','false','null','auto'],a=new RegExp('^'+d.join('|')),k=['\\(','\\)','=','>','<','==','>=','<=','\\+','-','\\!=','/','\\*','%','and','or','not',';','\\{','\\}',':'],c=z(k),w=/^::?[a-zA-Z_][\w\-]*/,n;function t(e){return!e.peek()||e.match(/\s+$/,!1)};function l(e,r){var t=e.peek();if(t===')'){e.next();r.tokenizer=o;return'operator'}
+else if(t==='('){e.next();e.eatSpace();return'operator'}
+else if(t==='\''||t==='"'){r.tokenizer=s(e.next());return'string'}
+else{r.tokenizer=s(')',!1);return'string'}};function p(e,r){return function(t,n){if(t.sol()&&t.indentation()<=e){n.tokenizer=o;return o(t,n)};if(r&&t.skipTo('*/')){t.next();t.next();n.tokenizer=o}
+else{t.skipToEnd()};return'comment'}};function s(e,r){if(r==null){r=!0};function n(i,f){var u=i.next(),s=i.peek(),a=i.string.charAt(i.pos-2),c=((u!=='\\'&&s===e)||(u===e&&a!=='\\'));if(c){if(u!==e&&r){i.next()};if(t(i)){f.cursorHalf=0};f.tokenizer=o;return'string'}
+else if(u==='#'&&s==='{'){f.tokenizer=h(n);i.next();return'operator'}
+else{return'string'}};return n};function h(e){return function(r,t){if(r.peek()==='}'){r.next();t.tokenizer=e;return'operator'}
+else{return o(r,t)}}};function i(e){if(e.indentCount==0){e.indentCount++;var t=e.scopes[0].offset,n=t+r.indentUnit;e.scopes.unshift({offset:n})}};function m(e){if(e.scopes.length==1)return;e.scopes.shift()};function o(e,r){var f=e.peek();if(e.match('/*')){r.tokenizer=p(e.indentation(),!0);return r.tokenizer(e,r)};if(e.match('//')){r.tokenizer=p(e.indentation(),!1);return r.tokenizer(e,r)};if(e.match('#{')){r.tokenizer=h(o);return'operator'};if(f==='"'||f==='\''){e.next();r.tokenizer=s(f);return'string'};if(!r.cursorHalf){if(f==='-'){if(e.match(/^-\w+-/)){return'meta'}};if(f==='.'){e.next();if(e.match(/^[\w-]+/)){i(r);return'qualifier'}
+else if(e.peek()==='#'){i(r);return'tag'}};if(f==='#'){e.next();if(e.match(/^[\w-]+/)){i(r);return'builtin'};if(e.peek()==='#'){i(r);return'tag'}};if(f==='$'){e.next();e.eatWhile(/[\w-]/);return'variable-2'};if(e.match(/^-?[0-9\.]+/))return'number';if(e.match(/^(px|em|in)\b/))return'unit';if(e.match(a))return'keyword';if(e.match(/^url/)&&e.peek()==='('){r.tokenizer=l;return'atom'};if(f==='='){if(e.match(/^=[\w-]+/)){i(r);return'meta'}};if(f==='+'){if(e.match(/^\+[\w-]+/)){return'variable-3'}};if(f==='@'){if(e.match(/@extend/)){if(!e.match(/\s*[\w]/))m(r)}};if(e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)){i(r);return'def'};if(f==='@'){e.next();e.eatWhile(/[\w-]/);return'def'};if(e.eatWhile(/[\w-]/)){if(e.match(/ *: *[\w-\+\$#!\("']/,!1)){n=e.current().toLowerCase();var d=r.prevProp+'-'+n;if(u.hasOwnProperty(d)){return'property'}
+else if(u.hasOwnProperty(n)){r.prevProp=n;return'property'}
+else if(v.hasOwnProperty(n)){return'property'};return'tag'}
+else if(e.match(/ *:/,!1)){i(r);r.cursorHalf=1;r.prevProp=e.current().toLowerCase();return'property'}
+else if(e.match(/ *,/,!1)){return'tag'}
+else{i(r);return'tag'}};if(f===':'){if(e.match(w)){return'variable-3'};e.next();r.cursorHalf=1;return'operator'}}
+else{if(f==='#'){e.next();if(e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)){if(t(e)){r.cursorHalf=0};return'number'}};if(e.match(/^-?[0-9\.]+/)){if(t(e)){r.cursorHalf=0};return'number'};if(e.match(/^(px|em|in)\b/)){if(t(e)){r.cursorHalf=0};return'unit'};if(e.match(a)){if(t(e)){r.cursorHalf=0};return'keyword'};if(e.match(/^url/)&&e.peek()==='('){r.tokenizer=l;if(t(e)){r.cursorHalf=0};return'atom'};if(f==='$'){e.next();e.eatWhile(/[\w-]/);if(t(e)){r.cursorHalf=0};return'variable-2'};if(f==='!'){e.next();r.cursorHalf=0;return e.match(/^[\w]+/)?'keyword':'operator'};if(e.match(c)){if(t(e)){r.cursorHalf=0};return'operator'};if(e.eatWhile(/[\w-]/)){if(t(e)){r.cursorHalf=0};n=e.current().toLowerCase();if(y.hasOwnProperty(n)){return'atom'}
+else if(x.hasOwnProperty(n)){return'keyword'}
+else if(u.hasOwnProperty(n)){r.prevProp=e.current().toLowerCase();return'property'}
+else{return'tag'}};if(t(e)){r.cursorHalf=0;return null}};if(e.match(c))return'operator';e.next();return null};function g(e,t){if(e.sol())t.indentCount=0;var u=t.tokenizer(e,t),i=e.current();if(i==='@return'||i==='}'){m(t)};if(u!==null){var s=e.pos-i.length,a=s+(r.indentUnit*t.indentCount),f=[];for(var n=0;n<t.scopes.length;n++){var o=t.scopes[n];if(o.offset<=a)f.push(o)};t.scopes=f};return u};return{startState:function(){return{tokenizer:o,scopes:[{offset:0,type:'sass'}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,r){var t=g(e,r);r.lastToken={style:t,content:e.current()};return t},indent:function(e){return e.scopes[0].offset}}},'css');e.defineMIME('text/x-sass','sass')});
+/* ./modules/editor/codemirror/mode/gas/gas.min.js */(function(i){if(typeof exports=='object'&&typeof module=='object')i(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],i);else i(CodeMirror)})(function(i){'use strict';i.defineMode('gas',function(t,l){'use strict';var r=[],e='',b={'.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'};var i={};function a(t){e='#';i.ax='variable';i.eax='variable-2';i.rax='variable-3';i.bx='variable';i.ebx='variable-2';i.rbx='variable-3';i.cx='variable';i.ecx='variable-2';i.rcx='variable-3';i.dx='variable';i.edx='variable-2';i.rdx='variable-3';i.si='variable';i.esi='variable-2';i.rsi='variable-3';i.di='variable';i.edi='variable-2';i.rdi='variable-3';i.sp='variable';i.esp='variable-2';i.rsp='variable-3';i.bp='variable';i.ebp='variable-2';i.rbp='variable-3';i.ip='variable';i.eip='variable-2';i.rip='variable-3';i.cs='keyword';i.ds='keyword';i.ss='keyword';i.es='keyword';i.fs='keyword';i.gs='keyword'};function o(t){e='@';b.syntax='builtin';i.r0='variable';i.r1='variable';i.r2='variable';i.r3='variable';i.r4='variable';i.r5='variable';i.r6='variable';i.r7='variable';i.r8='variable';i.r9='variable';i.r10='variable';i.r11='variable';i.r12='variable';i.sp='variable-2';i.lr='variable-2';i.pc='variable-2';i.r13=i.sp;i.r14=i.lr;i.r15=i.pc;r.push(function(i,t){if(i==='#'){t.eatWhile(/\w/);return'number'}})};var n=(l.architecture||'x86').toLowerCase();if(n==='x86'){a(l)}
+else if(n==='arm'||n==='armv6'){o(l)};function s(i,t){var l=!1,e;while((e=i.next())!=null){if(e===t&&!l){return!1};l=!l&&e==='\\'};return l};function u(i,t){var e=!1,l;while((l=i.next())!=null){if(l==='/'&&e){t.tokenize=null;break};e=(l==='*')};return'comment'};return{startState:function(){return{tokenize:null}},token:function(t,n){if(n.tokenize){return n.tokenize(t,n)};if(t.eatSpace()){return null};var a,o,l=t.next();if(l==='/'){if(t.eat('*')){n.tokenize=u;return u(t,n)}};if(l===e){t.skipToEnd();return'comment'};if(l==='"'){s(t,'"');return'string'};if(l==='.'){t.eatWhile(/\w/);o=t.current().toLowerCase();a=b[o];return a||null};if(l==='='){t.eatWhile(/\w/);return'tag'};if(l==='{'){return'braket'};if(l==='}'){return'braket'};if(/\d/.test(l)){if(l==='0'&&t.eat('x')){t.eatWhile(/[0-9a-fA-F]/);return'number'};t.eatWhile(/\d/);return'number'};if(/\w/.test(l)){t.eatWhile(/\w/);if(t.eat(':')){return'tag'};o=t.current().toLowerCase();a=i[o];return a||null};for(var c=0;c<r.length;c++){a=r[c](l,t,n);if(a){return a}}},lineComment:e,blockCommentStart:'/*',blockCommentEnd:'*/'}})});
+/* ./modules/editor/codemirror/mode/sas/sas.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('sas',function(){var e={};var n={eq:'operator',lt:'operator',le:'operator',gt:'operator',ge:'operator','in':'operator',ne:'operator',or:'operator'};var r=/(<=|>=|!=|<>)/,s=/[=\(:\),{}.*<>+\-\/^\[\]]/;function t(t,n,s){if(s){var o=n.split(' ');for(var r=0;r<o.length;r++){e[o[r]]={style:t,state:s}}}};t('def','stack pgm view source debug nesting nolist',['inDataStep']);t('def','if while until for do do; end end; then else cancel',['inDataStep']);t('def','label format _n_ _error_',['inDataStep']);t('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']);t('def','filevar finfo finv fipname fipnamel fipstate first firstobs floor',['inDataStep']);t('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']);t('def','zipfips zipname zipnamel zipstate',['inDataStep']);t('def','put putc putn',['inDataStep']);t('builtin','data run',['inDataStep']);t('def','data',['inProc']);t('def','%if %end %end; %else %else; %do %do; %then',['inMacro']);t('builtin','proc run; quit; libname filename %macro %mend option options',['ALL']);t('def','footnote title libname ods',['ALL']);t('def','%let %put %global %sysfunc %eval ',['ALL']);t('variable','&sysbuffr &syscc &syscharwidth &syscmd &sysdate &sysdate9 &sysday &sysdevic &sysdmg &sysdsn &sysencoding &sysenv &syserr &syserrortext &sysfilrc &syshostname &sysindex &sysinfo &sysjobid &syslast &syslckrc &syslibrc &syslogapplname &sysmacroname &sysmenv &sysmsg &sysncpu &sysodspath &sysparm &syspbuff &sysprocessid &sysprocessname &sysprocname &sysrc &sysscp &sysscpl &sysscpl &syssite &sysstartid &sysstartname &systcpiphostname &systime &sysuserid &sysver &sysvlong &sysvlong4 &syswarningtext',['ALL']);t('def','source2 nosource2 page pageno pagesize',['ALL']);t('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 ddm delete delimiter depdb depdbsl depsl depsyd deptab dequote descending descript design= 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= 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 ranexp rangam range ranks rannor ranpoi rantbl rantri ranuni read recfm register regr remote remove rename repeat 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 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 truncover type unformatted uniform union until upcase update user usericon uss validate value var weight when where while wincharset window work workinit workterm write wsum xsync xwait yearcutoff yes yyq min max',['inDataStep','inProc']);t('operator','and not ',['inDataStep','inProc']);function o(t,a){var i=t.next();if(i==='/'&&t.eat('*')){a.continueComment=!0;return'comment'}
+else if(a.continueComment===!0){if(i==='*'&&t.peek()==='/'){t.next();a.continueComment=!1}
+else if(t.skipTo('*')){t.skipTo('*');t.next();if(t.eat('/'))a.continueComment=!1}
+else{t.skipToEnd()};return'comment'};if(i=='*'&&t.column()==t.indentation()){t.skipToEnd();return'comment'};var c=i+t.peek();if((i==='"'||i==='\'')&&!a.continueString){a.continueString=i;return'string'}
+else if(a.continueString){if(a.continueString==i){a.continueString=null}
+else if(t.skipTo(a.continueString)){t.next();a.continueString=null}
+else{t.skipToEnd()};return'string'}
+else if(a.continueString!==null&&t.eol()){t.skipTo(a.continueString)||t.skipToEnd();return'string'}
+else if(/[\d\.]/.test(i)){if(i==='.')t.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);else if(i==='0')t.match(/^[xX][0-9a-fA-F]+/)||t.match(/^0[0-7]+/);else t.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);return'number'}
+else if(r.test(i+t.peek())){t.next();return'operator'}
+else if(n.hasOwnProperty(c)){t.next();if(t.peek()===' ')return n[c.toLowerCase()]}
+else if(s.test(i)){return'operator'};var o;if(t.match(/[%&;\w]+/,!1)!=null){o=i+t.match(/[%&;\w]+/,!0);if(/&/.test(o))return'variable'}
+else{o=i};if(a.nextword){t.match(/[\w]+/);if(t.peek()==='.')t.skipTo(' ');a.nextword=!1;return'variable-2'};o=o.toLowerCase();if(a.inDataStep){if(o==='run;'||t.match(/run\s;/)){a.inDataStep=!1;return'builtin'};if((o)&&t.next()==='.'){if(/\w/.test(t.peek()))return'variable-2';else return'variable'};if(o&&e.hasOwnProperty(o)&&(e[o].state.indexOf('inDataStep')!==-1||e[o].state.indexOf('ALL')!==-1)){if(t.start<t.pos)t.backUp(t.pos-t.start);for(var l=0;l<o.length;++l)t.next();return e[o].style}};if(a.inProc){if(o==='run;'||o==='quit;'){a.inProc=!1;return'builtin'};if(o&&e.hasOwnProperty(o)&&(e[o].state.indexOf('inProc')!==-1||e[o].state.indexOf('ALL')!==-1)){t.match(/[\w]+/);return e[o].style}};if(a.inMacro){if(o==='%mend'){if(t.peek()===';')t.next();a.inMacro=!1;return'builtin'};if(o&&e.hasOwnProperty(o)&&(e[o].state.indexOf('inMacro')!==-1||e[o].state.indexOf('ALL')!==-1)){t.match(/[\w]+/);return e[o].style};return'atom'};if(o&&e.hasOwnProperty(o)){t.backUp(1);t.match(/[\w]+/);if(o==='data'&&/=/.test(t.peek())===!1){a.inDataStep=!0;a.nextword=!0;return'builtin'};if(o==='proc'){a.inProc=!0;a.nextword=!0;return'builtin'};if(o==='%macro'){a.inMacro=!0;a.nextword=!0;return'builtin'};if(/title[1-9]/.test(o))return'def';if(o==='footnote'){t.eat(/[1-9]/);return'def'};if(a.inDataStep===!0&&e[o].state.indexOf('inDataStep')!==-1)return e[o].style;if(a.inProc===!0&&e[o].state.indexOf('inProc')!==-1)return e[o].style;if(a.inMacro===!0&&e[o].state.indexOf('inMacro')!==-1)return e[o].style;if(e[o].state.indexOf('ALL')!==-1)return e[o].style;return null};return null};return{startState:function(){return{inDataStep:!1,inProc:!1,inMacro:!1,nextword:!1,continueString:null,continueComment:!1}},token:function(e,t){if(e.eatSpace())return null;return o(e,t)},blockCommentStart:'/*',blockCommentEnd:'*/'}});e.defineMIME('text/x-sas','sas')});
+/* ./modules/editor/codemirror/mode/julia/julia.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('julia',function(e,t){function i(e,t){if(typeof t==='undefined'){t='\\b'};return new RegExp('^(('+e.join(')|(')+'))'+t)};var u='\\\\[0-7]{1,3}',s='\\\\x[A-Fa-f0-9]{1,2}',c='\\\\[abefnrtv0%?\'"\\\\]',l='([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])',m=t.operators||i(['[<>]:','[<>=]=','<<=?','>>>?=?','=>','->','\\/\\/','[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?','\\?','\\$','~',':','\\u00D7','\\u2208','\\u2209','\\u220B','\\u220C','\\u2218','\\u221A','\\u221B','\\u2229','\\u222A','\\u2260','\\u2264','\\u2265','\\u2286','\\u2288','\\u228A','\\u22C5','\\b(in|isa)\\b(?!\.?\\()'],''),h=t.delimiters||/^[;,()[\]{}]/,p=t.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,d=i([u,s,c,l],'\''),v=i(['begin','function','type','struct','immutable','let','macro','for','while','quote','if','else','elseif','try','finally','catch','do']),k=i(['end','else','elseif','catch','finally']),b=i(['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']),F=i(['true','false','nothing','NaN','Inf']),g=/^@[_A-Za-z][\w]*/,x=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,z=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function a(e){return o(e,'[')};function o(e,t){var n=r(e),i=r(e,1);if(typeof(t)==='undefined'){t='('};if(n===t||(i===t&&n==='for')){return!0};return!1};function r(e,t){if(typeof(t)==='undefined'){t=0};if(e.scopes.length<=t){return null};return e.scopes[e.scopes.length-(t+1)]};function n(e,t){if(e.match(/^#=/,!1)){t.tokenize=E;return t.tokenize(e,t)};var f=t.leavingExpr;if(e.sol()){f=!1};t.leavingExpr=!1;if(f){if(e.match(/^'+/)){return'operator'}};if(e.match(/\.{4,}/)){return'error'}
+else if(e.match(/\.{1,3}/)){return'operator'};if(e.eatSpace()){return null};var i=e.peek();if(i==='#'){e.skipToEnd();return'comment'};if(i==='['){t.scopes.push('[')};if(i==='('){t.scopes.push('(')};var s=r(t);if(a(t)&&i===']'){if(s==='for'){t.scopes.pop()};t.scopes.pop();t.leavingExpr=!0};if(o(t)&&i===')'){if(s==='for'){t.scopes.pop()};t.scopes.pop();t.leavingExpr=!0};if(a(t)){if(t.lastToken=='end'&&e.match(/^:/)){return'operator'};if(e.match(/^end/)){return'number'}};var u;if(u=e.match(v,!1)){t.scopes.push(u[0])};if(e.match(k,!1)){t.scopes.pop()};if(e.match(/^::(?![:\$])/)){t.tokenize=y;return t.tokenize(e,t)};if(!f&&e.match(x)||e.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/)){return'builtin'};if(e.match(m)){return'operator'};if(e.match(/^\.?\d/,!1)){var l=RegExp(/^im\b/),n=!1;if(e.match(/^\d*\.(?!\.)\d*([Eef][\+\-]?\d+)?/i)){n=!0};if(e.match(/^\d+\.(?!\.)\d*/)){n=!0};if(e.match(/^\.\d+/)){n=!0};if(e.match(/^0x\.[0-9a-f]+p[\+\-]?\d+/i)){n=!0};if(e.match(/^0x[0-9a-f]+/i)){n=!0};if(e.match(/^0b[01]+/i)){n=!0};if(e.match(/^0o[0-7]+/i)){n=!0};if(e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)){n=!0};if(e.match(/^0(?![\dx])/i)){n=!0};if(n){e.match(l);t.leavingExpr=!0;return'number'}};if(e.match(/^'/)){t.tokenize=P;return t.tokenize(e,t)};if(e.match(z)){t.tokenize=D(e.current());return t.tokenize(e,t)};if(e.match(g)){return'meta'};if(e.match(h)){return null};if(e.match(b)){return'keyword'};if(e.match(F)){return'builtin'};var c=t.isDefinition||t.lastToken=='function'||t.lastToken=='macro'||t.lastToken=='type'||t.lastToken=='struct'||t.lastToken=='immutable';if(e.match(p)){if(c){if(e.peek()==='.'){t.isDefinition=!0;return'variable'};t.isDefinition=!1;return'def'};if(e.match(/^({[^}]*})*\(/,!1)){t.tokenize=A;return t.tokenize(e,t)};t.leavingExpr=!0;return'variable'};e.next();return'error'};function A(t,e){var i=t.match(/^(\(\s*)/);if(i){if(e.firstParenPos<0)e.firstParenPos=e.scopes.length;e.scopes.push('(');e.charsAdvanced+=i[1].length};if(r(e)=='('&&t.match(/^\)/)){e.scopes.pop();e.charsAdvanced+=1;if(e.scopes.length<=e.firstParenPos){var a=t.match(/^(\s*where\s+[^\s=]+)*\s*?=(?!=)/,!1);t.backUp(e.charsAdvanced);e.firstParenPos=-1;e.charsAdvanced=0;e.tokenize=n;if(a)return'def';return'builtin'}};if(t.match(/^$/g,!1)){t.backUp(e.charsAdvanced);while(e.scopes.length>e.firstParenPos)e.scopes.pop();e.firstParenPos=-1;e.charsAdvanced=0;e.tokenize=n;return'builtin'};e.charsAdvanced+=t.match(/^([^()]*)/)[1].length;return e.tokenize(t,e)};function y(e,t){e.match(/.*?(?=,|;|{|}|\(|\)|=|$|\s)/);if(e.match(/^{/)){t.nestedLevels++}
+else if(e.match(/^}/)){t.nestedLevels--};if(t.nestedLevels>0){e.match(/.*?(?={|})/)||e.next()}
+else if(t.nestedLevels==0){t.tokenize=n};return'builtin'};function E(e,t){if(e.match(/^#=/)){t.nestedLevels++};if(!e.match(/.*?(?=(#=|=#))/)){e.skipToEnd()};if(e.match(/^=#/)){t.nestedLevels--;if(t.nestedLevels==0)t.tokenize=n};return'comment'};function P(e,t){var r=!1,a;if(e.match(d)){r=!0}
+else if(a=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var i=parseInt(a[1],16);if(i<=55295||i>=57344){r=!0;e.next()}}
+else if(a=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i=parseInt(a[1],16);if(i<=1114111){r=!0;e.next()}};if(r){t.leavingExpr=!0;t.tokenize=n;return'string'};if(!e.match(/^[^']+(?=')/)){e.skipToEnd()};if(e.match(/^'/)){t.tokenize=n};return'error'};function D(e){if(e.substr(-3)==='"""'){e='"""'}
+else if(e.substr(-1)==='"'){e='"'};function t(t,i){if(t.eat('\\')){t.next()}
+else if(t.match(e)){i.tokenize=n;i.leavingExpr=!0;return'string'}
+else{t.eat(/[`"]/)};t.eatWhile(/[^\\`"]/);return'string'};return t};var f={startState:function(){return{tokenize:n,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedLevels:0,charsAdvanced:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),i=e.current();if(i&&n){t.lastToken=i};return n},indent:function(n,t){var i=0;if(t===']'||t===')'||t==='end'||t==='else'||t==='catch'||t==='elseif'||t==='finally'){i=-1};return(n.scopes.length+i)*e.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:'#=',blockCommentEnd:'=#',lineComment:'#',fold:'indent'};return f});e.defineMIME('text/x-julia','julia')});
+/* ./modules/editor/codemirror/mode/fcl/fcl.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('fcl',function(e){var o=e.indentUnit,l={'term':!0,'method':!0,'accu':!0,'rule':!0,'then':!0,'is':!0,'and':!0,'or':!0,'if':!0,'default':!0};var i={'var_input':!0,'var_output':!0,'fuzzify':!0,'defuzzify':!0,'function_block':!0,'ruleblock':!0};var n={'end_ruleblock':!0,'end_defuzzify':!0,'end_function_block':!0,'end_fuzzify':!0,'end_var':!0};var a={'true':!0,'false':!0,'nan':!0,'real':!0,'min':!0,'max':!0,'cog':!0,'cogs':!0};var r=/[+\-*&^%:=<>!|\/]/;function t(e,t){var o=e.next();if(/[\d\.]/.test(o)){if(o=='.'){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}
+else if(o=='0'){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}
+else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)};return'number'};if(o=='/'||o=='('){if(e.eat('*')){t.tokenize=u;return u(e,t)};if(e.eat('/')){e.skipToEnd();return'comment'}};if(r.test(o)){e.eatWhile(r);return'operator'};e.eatWhile(/[\w\$_\xa1-\uffff]/);var f=e.current().toLowerCase();if(l.propertyIsEnumerable(f)||i.propertyIsEnumerable(f)||n.propertyIsEnumerable(f)){return'keyword'};if(a.propertyIsEnumerable(f))return'atom';return'variable'};function u(e,n){var i=!1,r;while(r=e.next()){if((r=='/'||r==')')&&i){n.tokenize=t;break};i=(r=='*')};return'comment'};function f(e,n,t,r,i){this.indented=e;this.column=n;this.type=t;this.align=r;this.prev=i};function c(e,n,t){return e.context=new f(e.indented,n,t,null,e.context)};function d(e){if(!e.context.prev)return;var n=e.context.type;if(n=='end_block')e.indented=e.context.indented;return e.context=e.context.prev};return{startState:function(e){return{tokenize:null,context:new f((e||0)-o,0,'top',!1),indented:0,startOfLine:!0}},token:function(e,r){var o=r.context;if(e.sol()){if(o.align==null)o.align=!1;r.indented=e.indentation();r.startOfLine=!0};if(e.eatSpace())return null;var u=(r.tokenize||t)(e,r);if(u=='comment')return u;if(o.align==null)o.align=!0;var f=e.current().toLowerCase();if(i.propertyIsEnumerable(f))c(r,e.column(),'end_block');else if(n.propertyIsEnumerable(f))d(r);r.startOfLine=!1;return u},indent:function(e,r){if(e.tokenize!=t&&e.tokenize!=null)return 0;var i=e.context,u=n.propertyIsEnumerable(r);if(i.align)return i.column+(u?0:1);else return i.indented+(u?0:o)},electricChars:'ryk',fold:'brace',blockCommentStart:'(*',blockCommentEnd:'*)',lineComment:'//'}});e.defineMIME('text/x-fcl','fcl')});
+/* ./modules/editor/codemirror/mode/tornado/tornado.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'),require('../htmlmixed/htmlmixed'),require('../../addon/mode/overlay'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror','../htmlmixed/htmlmixed','../../addon/mode/overlay'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('tornado:inner',function(){var e=['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'];e=new RegExp('^(('+e.join(')|(')+'))\\b');function t(e,t){e.eatWhile(/[^\{]/);var o=e.next();if(o=='{'){if(o=e.eat(/\{|%|#/)){t.tokenize=n(o);return'tag'}}};function n(n){if(n=='{'){n='}'};return function(o,r){var i=o.next();if((i==n)&&o.eat('}')){r.tokenize=t;return'tag'};if(o.match(e)){return'keyword'};return n=='#'?'comment':'string'}};return{startState:function(){return{tokenize:t}},token:function(e,t){return t.tokenize(e,t)}}});e.defineMode('tornado',function(t){var n=e.getMode(t,'text/html'),o=e.getMode(t,'tornado:inner');return e.overlayMode(n,o)});e.defineMIME('text/x-tornado','tornado')});
+/* ./modules/editor/codemirror/mode/asterisk/asterisk.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('asterisk',function(){var e=['exten','same','include','ignorepat','switch'],t=['#include','#exec'],i=['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'];function n(i,a){var r='',n=i.next();if(n==';'){i.skipToEnd();return'comment'};if(n=='['){i.skipTo(']');i.eat(']');return'header'};if(n=='"'){i.skipTo('"');return'string'};if(n=='\''){i.skipTo('\'');return'string-2'};if(n=='#'){i.eatWhile(/\w/);r=i.current();if(t.indexOf(r)!==-1){i.skipToEnd();return'strong'}};if(n=='$'){var o=i.peek();if(o=='{'){i.skipTo('}');i.eat('}');return'variable-3'}};i.eatWhile(/\w/);r=i.current();if(e.indexOf(r)!==-1){a.extenStart=!0;switch(r){case'same':a.extenSame=!0;break;case'include':case'switch':case'ignorepat':a.extenInclude=!0;break;default:break};return'atom'}};return{startState:function(){return{extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(t,e){var r='';if(t.eatSpace())return null;if(e.extenStart){t.eatWhile(/[^\s]/);r=t.current();if(/^=>?$/.test(r)){e.extenExten=!0;e.extenStart=!1;return'strong'}
+else{e.extenStart=!1;t.skipToEnd();return'error'}}
+else if(e.extenExten){e.extenExten=!1;e.extenPriority=!0;t.eatWhile(/[^,]/);if(e.extenInclude){t.skipToEnd();e.extenPriority=!1;e.extenInclude=!1};if(e.extenSame){e.extenPriority=!1;e.extenSame=!1;e.extenApplication=!0};return'tag'}
+else if(e.extenPriority){e.extenPriority=!1;e.extenApplication=!0;t.next();if(e.extenSame)return null;t.eatWhile(/[^,]/);return'number'}
+else if(e.extenApplication){t.eatWhile(/,/);r=t.current();if(r===',')return null;t.eatWhile(/\w/);r=t.current().toLowerCase();e.extenApplication=!1;if(i.indexOf(r)!==-1){return'def strong'}}
+else{return n(t,e)};return null}}});e.defineMIME('text/x-asterisk','asterisk')});
+/* ./modules/editor/codemirror/mode/sql/sql.min.js */(function(e){if(typeof exports=='object'&&typeof module=='object')e(require('../../lib/codemirror'));else if(typeof define=='function'&&define.amd)define(['../../lib/codemirror'],e);else e(CodeMirror)})(function(e){'use strict';e.defineMode('sql',function(t,r){'use strict';var c=r.client||{},u=r.atoms||{'false':!0,'true':!0,'null':!0},d=r.builtin||{},m=r.keywords||{},s=r.operatorChars||/^[*+\-%<>!=&|~^]/,a=r.support||{},o=r.hooks||{},p=r.dateSQL||{'date':!0,'time':!0,'timestamp':!0};function i(e,r){var t=e.next();if(o[t]){var l=o[t](e,r);if(l!==!1)return l};if(a.hexNumber&&((t=='0'&&e.match(/^[xX][0-9a-fA-F]+/))||(t=='x'||t=='X')&&e.match(/^'[0-9a-fA-F]+'/))){return'number'}
+else if(a.binaryNumber&&(((t=='b'||t=='B')&&e.match(/^'[01]+'/))||(t=='0'&&e.match(/^b[01]+/)))){return'number'}
+else if(t.charCodeAt(0)>47&&t.charCodeAt(0)<58){e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/);a.decimallessFloat&&e.match(/^\.(?!\.)/);return'number'}
+else if(t=='?'&&(e.eatSpace()||e.eol()||e.eat(';'))){return'variable-3'}
+else if(t=='\''||(t=='"'&&a.doubleQuote)){r.tokenize=g(t);return r.tokenize(e,r)}
+else if((((a.nCharCast&&(t=='n'||t=='N'))||(a.charsetCast&&t=='_'&&e.match(/[a-z][a-z0-9]*/i)))&&(e.peek()=='\''||e.peek()=='"'))){return'keyword'}
+else if(/^[\(\),\;\[\]]/.test(t)){return null}
+else if(a.commentSlashSlash&&t=='/'&&e.eat('/')){e.skipToEnd();return'comment'}
+else if((a.commentHash&&t=='#')||(t=='-'&&e.eat('-')&&(!a.commentSpaceRequired||e.eat(' ')))){e.skipToEnd();return'comment'}
+else if(t=='/'&&e.eat('*')){r.tokenize=n(1);return r.tokenize(e,r)}
+else if(t=='.'){if(a.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return'number';if(e.match(/^\.+/))return null;if(a.ODBCdotTable&&e.match(/^[\w\d_]+/))return'variable-2'}
+else if(s.test(t)){e.eatWhile(s);return null}
+else if(t=='{'&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))){return'number'}
+else{e.eatWhile(/^[_\w\d]/);var i=e.current().toLowerCase();if(p.hasOwnProperty(i)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/)))return'number';if(u.hasOwnProperty(i))return'atom';if(d.hasOwnProperty(i))return'builtin';if(m.hasOwnProperty(i))return'keyword';if(c.hasOwnProperty(i))return'string-2';return null}};function g(e){return function(t,r){var a=!1,n;while((n=t.next())!=null){if(n==e&&!a){r.tokenize=i;break};a=!a&&n=='\\'};return'string'}};function n(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);if(!a)t.skipToEnd();else if(a[1]=='/*')r.tokenize=n(e+1);else if(e>1)r.tokenize=n(e-1);else r.tokenize=i;return'comment'}};function l(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}};function h(e){e.indent=e.context.indent;e.context=e.context.prev};return{startState:function(){return{tokenize:i,context:null}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=!1};if(t.tokenize==i&&e.eatSpace())return null;var a=t.tokenize(e,t);if(a=='comment')return a;if(t.context&&t.context.align==null)t.context.align=!0;var r=e.current();if(r=='(')l(e,t,')');else if(r=='[')l(e,t,']');else if(t.context&&t.context.type==r)h(t);return a},indent:function(r,a){var i=r.context;if(!i)return e.Pass;var n=a.charAt(0)==i.type;if(i.align)return i.col+(n?0:1);else return i.indent+(n?0:t.indentUnit)},blockCommentStart:'/*',blockCommentEnd:'*/',lineComment:a.commentSlashSlash?'//':a.commentHash?'#':'--'}});(function(){'use strict';function i(e){var t;while((t=e.next())!=null){if(t=='`'&&!e.eat('`'))return'variable-2'};e.backUp(e.current().length-1);return e.eatWhile(/\w/)?'variable-2':null};function s(e){var t;while((t=e.next())!=null){if(t=='"'&&!e.eat('"'))return'variable-2'};e.backUp(e.current().length-1);return e.eatWhile(/\w/)?'variable-2':null};function r(e){if(e.eat('@')){e.match(/^session\./);e.match(/^local\./);e.match(/^global\./)};if(e.eat('\'')){e.match(/^.*'/);return'variable-2'}
+else if(e.eat('"')){e.match(/^.*"/);return'variable-2'}
+else if(e.eat('`')){e.match(/^.*`/);return'variable-2'}
+else if(e.match(/^[0-9a-zA-Z$\.\_]+/)){return'variable-2'};return null};function n(e){if(e.eat('N')){return'atom'};return e.match(/^[a-zA-Z.#!?]/)?'variable-2':null};var a='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 ';function t(e){var r={},a=e.split(' ');for(var t=0;t<a.length;++t)r[a[t]]=!0;return r};e.defineMIME('text/x-sql',{name:'sql',keywords:t(a+'begin'),builtin:t('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'),atoms:t('false true null unknown'),operatorChars:/^[*+\-%<>!=]/,dateSQL:t('date time timestamp'),support:t('ODBCdotTable doubleQuote binaryNumber hexNumber')});e.defineMIME('text/x-mssql',{name:'sql',client:t('charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee'),keywords:t(a+'begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec'),builtin:t('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:t('false true null unknown'),operatorChars:/^[*+\-%<>!=]/,dateSQL:t('date datetimeoffset datetime2 smalldatetime datetime time'),hooks:{'@':r}});e.defineMIME('text/x-mysql',{name:'sql',client:t('charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee'),keywords:t(a+'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:t('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:t('false true null unknown'),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:t('date time timestamp'),support:t('ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired'),hooks:{'@':r,'`':i,'\\':n}});e.defineMIME('text/x-mariadb',{name:'sql',client:t('charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee'),keywords:t(a+'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:t('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:t('false true null unknown'),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:t('date time timestamp'),support:t('ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired'),hooks:{'@':r,'`':i,'\\':n}});e.defineMIME('text/x-sqlite',{name:'sql',client:t('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:t(a+'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:t('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:t('null current_date current_time current_timestamp'),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:t('date time timestamp datetime'),support:t('decimallessFloat zerolessFloat'),identifierQuote:'"',hooks:{'@':r,':':r,'?':r,'$':r,'"':s,'`':i}});e.defineMIME('text/x-cassandra',{name:'sql',client:{},keywords:t('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