4.chunk.js 343 KB
webpackJsonpecCom([4],{1001:function(e,t,r){!function(t,r){e.exports=r()}(0,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function r(e,r){return t(e).appendChild(r)}function n(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,r,i){var o=n(e,t,r,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function a(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(t,r){var n=t.className;e(r).test(n)||(t.className+=(n?" ":"")+r)}function l(t,r){for(var n=t.split(" "),i=0;i<n.length;i++)n[i]&&!e(n[i]).test(r)&&(r+=" "+n[i]);return r}function c(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function u(e,t,r){t||(t={});for(var n in e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function d(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=n||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=r-a%r,o=s+1}}function f(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}function m(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var a=o-n;if(o==e.length||i+a>=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}function p(e){for(;$a.length<=e;)$a.push(h($a)+" ");return $a[e]}function h(e){return e[e.length-1]}function g(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function v(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function A(){}function b(e,t){var r;return Object.create?r=Object.create(e):(A.prototype=e,r=new A),t&&u(t,r),r}function y(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Ka.test(e))}function C(e,t){return t?!!(t.source.indexOf("\\w")>-1&&y(e))||t.test(e):y(e)}function x(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Qa.test(e)}function w(e,t,r){for(;(r<0?t>0:t<e.length)&&k(e.charAt(t));)t+=r;return t}function M(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function B(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}function S(e,t,r){var n;Xa=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Xa=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Xa=i)}return null!=n?n:Xa}function E(e,t){var r=e.order;return null==r&&(r=e.order=Za(e.text,t)),r}function _(e,t){return e._handlers&&e._handlers[t]||Ja}function D(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=f(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function L(e,t){var r=_(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function T(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),L(e,r||t.type,e,t),W(t)||t.codemirrorIgnore}function F(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==f(r,t[n])&&r.push(t[n])}function N(e,t){return _(e,t).length>0}function O(e){e.prototype.on=function(e,t){es(this,e,t)},e.prototype.off=function(e,t){D(this,e,t)}}function z(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function I(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function W(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function P(e){z(e),I(e)}function j(e){return e.target||e.srcElement}function H(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),La&&e.ctrlKey&&1==t&&(t=3),t}function q(e){if(null==Ha){var t=n("span","​");r(e,n("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ha=t.offsetWidth<=1&&t.offsetHeight>2&&!(ba&&ya<8))}var i=Ha?n("span","​"):n("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function R(e){if(null!=qa)return qa;var n=r(e,document.createTextNode("AخA")),i=Oa(n,0,1).getBoundingClientRect(),o=Oa(n,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(qa=o.right-i.right<3)}function U(e){if(null!=os)return os;var t=r(e,n("span","x")),i=t.getBoundingClientRect(),o=Oa(t,0,1).getBoundingClientRect();return os=Math.abs(i.left-o.left)>1}function Y(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),as[e]=t}function G(e,t){ss[e]=t}function V(e){if("string"==typeof e&&ss.hasOwnProperty(e))e=ss[e];else if(e&&"string"==typeof e.name&&ss.hasOwnProperty(e.name)){var t=ss[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return V("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return V("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function $(e,t){t=V(t);var r=as[t.name];if(!r)return $(e,"text/plain");var n=r(e,t);if(ls.hasOwnProperty(t.name)){var i=ls[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}function K(e,t){u(t,ls.hasOwnProperty(e)?ls[e]:ls[e]={})}function Q(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function X(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Z(e,t,r){return!e.startState||e.startState(t,r)}function J(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function ee(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;i==r.line&&(o=o.slice(0,r.ch)),i==t.line&&(o=o.slice(t.ch)),n.push(o),++i}),n}function te(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function re(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function ne(e){if(null==e.parent)return null;for(var t=e.parent,r=f(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function ie(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l)break;t-=l}return r+a}function oe(e,t){return t>=e.first&&t<e.first+e.size}function ae(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function se(e,t,r){if(void 0===r&&(r=null),!(this instanceof se))return new se(e,t,r);this.line=e,this.ch=t,this.sticky=r}function le(e,t){return e.line-t.line||e.ch-t.ch}function ce(e,t){return e.sticky==t.sticky&&0==le(e,t)}function ue(e){return se(e.line,e.ch)}function de(e,t){return le(e,t)<0?t:e}function fe(e,t){return le(e,t)<0?e:t}function me(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pe(e,t){if(t.line<e.first)return se(e.first,0);var r=e.first+e.size-1;return t.line>r?se(r,J(e,r).text.length):he(t,J(e,t.line).text.length)}function he(e,t){var r=e.ch;return null==r||r>t?se(e.line,t):r<0?se(e.line,0):e}function ge(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=pe(e,t[n]);return r}function ve(e,t,r,n){var i=[e.state.modeGen],o={};Me(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var a=r.state,s=0;s<e.state.overlays.length;++s)!function(n){r.baseTokens=i;var s=e.state.overlays[n],l=1,c=0;r.state=!0,Me(e,t.text,s.mode,r,function(e,t){for(var r=l;c<e;){var n=i[l];n>e&&i.splice(l,1,e,i[l+1],n),l+=2,c=Math.min(e,n)}if(t)if(s.opaque)i.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var o=i[r+1];i[r+1]=(o?o+" ":"")+"overlay "+t}},o),r.state=a,r.baseTokens=null,r.baseTokenPos=1}(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Ae(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=be(e,ne(t)),i=t.text.length>e.options.maxHighlightLength&&Q(e.doc.mode,n.state),o=ve(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function be(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ds(n,!0,t);var o=Be(e,t,r),a=o>n.first&&J(n,o-1).stateAfter,s=a?ds.fromSaved(n,a,o):new ds(n,Z(n.mode),o);return n.iter(o,t,function(r){ye(e,r.text,s);var n=s.line;r.stateAfter=n==t-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()}),r&&(n.modeFrontier=s.line),s}function ye(e,t,r,n){var i=e.doc.mode,o=new cs(t,e.options.tabSize,r);for(o.start=o.pos=n||0,""==t&&Ce(i,r.state);!o.eol();)xe(i,o,r.state),o.start=o.pos}function Ce(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=X(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function xe(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=X(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function ke(e,t,r,n){var i,o=e.doc,a=o.mode;t=pe(o,t);var s,l=J(o,t.line),c=be(e,t.line,r),u=new cs(l.text,e.options.tabSize,c);for(n&&(s=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=xe(a,u,c.state),n&&s.push(new fs(u,i,Q(o.mode,c.state)));return n?s:new fs(u,i,c.state)}function we(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(t[n])||(t[n]+=" "+r[2])}return e}function Me(e,t,r,n,i,o,a){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new cs(t,e.options.tabSize,n),f=e.options.addModeClass&&[null];for(""==t&&we(Ce(r,n.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&ye(e,t,n,d.pos),d.pos=t.length,l=null):l=we(xe(r,d,n.state,f),o),f){var m=f[0].name;m&&(l="m-"+(l?m+" "+l:m))}if(!s||u!=l){for(;c<d.start;)c=Math.min(d.start,c+5e3),i(c,u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Be(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=J(o,s-1),c=l.stateAfter;if(c&&(!r||s+(c instanceof us?c.lookAhead:0)<=o.modeFrontier))return s;var u=d(l.text,null,e.options.tabSize);(null==i||n>u)&&(i=s-1,n=u)}return i}function Se(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=J(e,n).stateAfter;if(i&&(!(i instanceof us)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}function Ee(){ms=!0}function _e(){ps=!0}function De(e,t,r){this.marker=e,this.from=t,this.to=r}function Le(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Te(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Fe(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Ne(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!r||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new De(a,o.from,l?null:o.to))}}return n}function Oe(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!r||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new De(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return n}function ze(e,t){if(t.full)return null;var r=oe(e,t.from.line)&&J(e,t.from.line).markedSpans,n=oe(e,t.to.line)&&J(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,a=0==le(t.from,t.to),s=Ne(r,i,a),l=Oe(n,o,a),c=1==t.text.length,u=h(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var m=Le(l,f.marker);m?c&&(f.to=null==m.to?null:m.to+u):f.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];if(null!=g.to&&(g.to+=u),null==g.from){var v=Le(s,g.marker);v||(g.from=u,c&&(s||(s=[])).push(g))}else g.from+=u,c&&(s||(s=[])).push(g)}s&&(s=Ie(s)),l&&l!=s&&(l=Ie(l));var A=[s];if(!c){var b,y=t.text.length-2;if(y>0&&s)for(var C=0;C<s.length;++C)null==s[C].to&&(b||(b=[])).push(new De(s[C].marker,null,null));for(var x=0;x<y;++x)A.push(b);A.push(l)}return A}function Ie(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function We(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=f(n,r)||(n||(n=[])).push(r)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var a=n[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(le(c.to,s.from)<0||le(c.from,s.to)>0)){var u=[l,1],d=le(c.from,s.from),m=le(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(m>0||!a.inclusiveRight&&!m)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Pe(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function je(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function He(e){return e.inclusiveLeft?-1:0}function qe(e){return e.inclusiveRight?1:0}function Re(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=le(n.from,i.from)||He(e)-He(t);if(o)return-o;var a=le(n.to,i.to)||qe(e)-qe(t);return a||t.id-e.id}function Ue(e,t){var r,n=ps&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!r||Re(r,i.marker)<0)&&(r=i.marker);return r}function Ye(e){return Ue(e,!0)}function Ge(e){return Ue(e,!1)}function Ve(e,t){var r,n=ps&&e.markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!r||Re(r,o.marker)<0)&&(r=o.marker)}return r}function $e(e,t,r,n,i){var o=J(e,t),a=ps&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=le(c.from,r)||He(l.marker)-He(i),d=le(c.to,n)||qe(l.marker)-qe(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?le(c.to,r)>=0:le(c.to,r)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?le(c.from,n)<=0:le(c.from,n)<0)))return!0}}}function Ke(e){for(var t;t=Ye(e);)e=t.find(-1,!0).line;return e}function Qe(e){for(var t;t=Ge(e);)e=t.find(1,!0).line;return e}function Xe(e){for(var t,r;t=Ge(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Ze(e,t){var r=J(e,t),n=Ke(r);return r==n?t:ne(n)}function Je(e,t){if(t>e.lastLine())return t;var r,n=J(e,t);if(!et(e,n))return t;for(;r=Ge(n);)n=r.find(1,!0).line;return ne(n)+1}function et(e,t){var r=ps&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],n.marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&tt(e,t,n))return!0}}function tt(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return tt(e,n.line,Le(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&tt(e,t,i))return!0}function rt(e){e=Ke(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==r)break;t+=s.height}return t}function nt(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=Ye(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=Ge(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,n=o.to.line,r+=n.text.length-o.to.ch}return r}function it(e){var t=e.display,r=e.doc;t.maxLine=J(r,r.first),t.maxLineLength=nt(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=nt(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}function ot(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Pe(e),je(e,r);var i=n?n(e):1;i!=e.height&&re(e,i)}function at(e){e.parent=null,Pe(e)}function st(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?As:vs;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function lt(e,t){var r=i("span",null,null,Ca?"padding-right: .1px":null),n={pre:i("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;n.pos=0,n.addToken=ut,R(e.display.measure)&&(s=E(a,e.doc.direction))&&(n.addToken=ft(n.addToken,s)),n.map=[];pt(a,n,Ae(e,a,t!=e.display.externalMeasured&&ne(a))),a.styleClasses&&(a.styleClasses.bgClass&&(n.bgClass=l(a.styleClasses.bgClass,n.bgClass||"")),a.styleClasses.textClass&&(n.textClass=l(a.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(q(e.display.measure))),0==o?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(Ca){var c=n.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return L(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=l(n.pre.className,n.textClass||"")),n}function ct(e){var t=n("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ut(e,t,r,i,o,a,s){if(t){var l,c=e.splitSpaces?dt(t,e.trailingSpace):t,u=e.cm.state.specialChars,d=!1;if(u.test(t)){l=document.createDocumentFragment();for(var f=0;;){u.lastIndex=f;var m=u.exec(t),h=m?m.index-f:t.length-f;if(h){var g=document.createTextNode(c.slice(f,f+h));ba&&ya<9?l.appendChild(n("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+h,g),e.col+=h,e.pos+=h}if(!m)break;f+=h+1;var v=void 0;if("\t"==m[0]){var A=e.cm.options.tabSize,b=A-e.col%A;v=l.appendChild(n("span",p(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==m[0]||"\n"==m[0]?(v=l.appendChild(n("span","\r"==m[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",m[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(m[0]),v.setAttribute("cm-text",m[0]),ba&&ya<9?l.appendChild(n("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,l),ba&&ya<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),r||i||o||d||a){var y=r||"";i&&(y+=i),o&&(y+=o);var C=n("span",[l],y,a);if(s)for(var x in s)s.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&C.setAttribute(x,s[x]);return e.content.appendChild(C)}e.content.appendChild(l)}}function dt(e,t){if(e.length>1&&!/  /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}function ft(e,t){return function(r,n,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=r.pos,u=c+n.length;;){for(var d=void 0,f=0;f<t.length&&(d=t[f],!(d.to>c&&d.from<=c));f++);if(d.to>=u)return e(r,n,i,o,a,s,l);e(r,n.slice(0,d.to-c),i,o,null,s,l),o=null,n=n.slice(d.to-c),c=d.to}}}function mt(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function pt(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var a,s,l,c,u,d,f,m=i.length,p=0,h=1,g="",v=0;;){if(v==p){l=c=u=s="",f=null,d=null,v=1/0;for(var A=[],b=void 0,y=0;y<n.length;++y){var C=n[y],x=C.marker;if("bookmark"==x.type&&C.from==p&&x.widgetNode)A.push(x);else if(C.from<=p&&(null==C.to||C.to>p||x.collapsed&&C.to==p&&C.from==p)){if(null!=C.to&&C.to!=p&&v>C.to&&(v=C.to,c=""),x.className&&(l+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&C.from==p&&(u+=" "+x.startStyle),x.endStyle&&C.to==v&&(b||(b=[])).push(x.endStyle,C.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var k in x.attributes)(f||(f={}))[k]=x.attributes[k];x.collapsed&&(!d||Re(d.marker,x)<0)&&(d=C)}else C.from>p&&v>C.from&&(v=C.from)}if(b)for(var w=0;w<b.length;w+=2)b[w+1]==v&&(c+=" "+b[w]);if(!d||d.from==p)for(var M=0;M<A.length;++M)mt(t,0,A[M]);if(d&&(d.from||0)==p){if(mt(t,(null==d.to?m+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=m)break;for(var B=Math.min(m,v);;){if(g){var S=p+g.length;if(!d){var E=S>B?g.slice(0,B-p):g;t.addToken(t,E,a?a+l:l,u,p+E.length==v?c:"",s,f)}if(S>=B){g=g.slice(B-p),p=B;break}p=S,u=""}g=i.slice(o,o=r[h++]),a=st(r[h++],t.cm.options)}}else for(var _=1;_<r.length;_+=2)t.addToken(t,i.slice(o,o=r[_]),st(r[_+1],t.cm.options))}function ht(e,t,r){this.line=t,this.rest=Xe(t),this.size=this.rest?ne(h(this.rest))-r+1:1,this.node=this.text=null,this.hidden=et(e,t)}function gt(e,t,r){for(var n,i=[],o=t;o<r;o=n){var a=new ht(e.doc,J(e.doc,o),o);n=o+a.size,i.push(a)}return i}function vt(e){bs?bs.ops.push(e):e.ownsGroup=bs={ops:[e],delayedCallbacks:[]}}function At(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function bt(e,t){var r=e.ownsGroup;if(r)try{At(r)}finally{bs=null,t(r)}}function yt(e,t){var r=_(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);bs?n=bs.delayedCallbacks:ys?n=ys:(n=ys=[],setTimeout(Ct,0));for(var o=0;o<r.length;++o)!function(e){n.push(function(){return r[e].apply(null,i)})}(o)}}function Ct(){var e=ys;ys=null;for(var t=0;t<e.length;++t)e[t]()}function xt(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Bt(e,t):"gutter"==o?Et(e,t,r,n):"class"==o?St(e,t):"widget"==o&&_t(e,t,n)}t.changes=null}function kt(e){return e.node==e.text&&(e.node=n("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ba&&ya<8&&(e.node.style.zIndex=2)),e.node}function wt(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var i=kt(t);t.background=i.insertBefore(n("div",null,r),i.firstChild),e.display.input.setUneditable(t.background)}}function Mt(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):lt(e,t)}function Bt(e,t){var r=t.text.className,n=Mt(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,St(e,t)):r&&(t.text.className=r)}function St(e,t){wt(e,t),t.line.wrapClass?kt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Et(e,t,r,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=kt(t);t.gutterBackground=n("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var s=kt(t),l=t.gutter=n("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),s.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(n("div",ae(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var c=0;c<e.display.gutterSpecs.length;++c){var u=e.display.gutterSpecs[c].className,d=a.hasOwnProperty(u)&&a[u];d&&l.appendChild(n("div",[d],"CodeMirror-gutter-elt","left: "+i.gutterLeft[u]+"px; width: "+i.gutterWidth[u]+"px"))}}}function _t(t,r,n){r.alignable&&(r.alignable=null);for(var i=e("CodeMirror-linewidget"),o=r.node.firstChild,a=void 0;o;o=a)a=o.nextSibling,i.test(o.className)&&r.node.removeChild(o);Lt(t,r,n)}function Dt(e,t,r,n){var i=Mt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),St(e,t),Et(e,t,r,n),Lt(e,t,n),t.node}function Lt(e,t,r){if(Tt(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Tt(e,t.rest[n],t,r,!1)}function Tt(e,t,r,i,o){if(t.widgets)for(var a=kt(r),s=0,l=t.widgets;s<l.length;++s){var c=l[s],u=n("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Ft(c,u,r,i),e.display.input.setUneditable(u),o&&c.above?a.insertBefore(u,r.gutter||r.text):a.appendChild(u),yt(c,"redraw")}}function Ft(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function Nt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),r(t.display.measure,n("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Ot(e,t){for(var r=j(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function zt(e){return e.lineSpace.offsetTop}function It(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=r(e.measure,n("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Pt(e){return Ra-e.display.nativeBarWidth}function jt(e){return e.display.scroller.clientWidth-Pt(e)-e.display.barWidth}function Ht(e){return e.display.scroller.clientHeight-Pt(e)-e.display.barHeight}function qt(e,t,r){var n=e.options.lineWrapping,i=n&&jt(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Rt(e,t,r){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 i=0;i<e.rest.length;i++)if(ne(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Ut(e,t){t=Ke(t);var n=ne(t),i=e.display.externalMeasured=new ht(e.doc,t,n);i.lineN=n;var o=i.built=lt(e,i);return i.text=o.pre,r(e.display.lineMeasure,o.pre),i}function Yt(e,t,r,n){return $t(e,Vt(e,t),r,n)}function Gt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Mr(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function Vt(e,t){var r=ne(t),n=Gt(e,r);n&&!n.text?n=null:n&&n.changes&&(xt(e,n,r,yr(e)),e.curOp.forceUpdate=!0),n||(n=Ut(e,t));var i=Rt(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function $t(e,t,r,n,i){t.before&&(r=-1);var o,a=r+(n||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(qt(e,t.view,t.rect),t.hasHeights=!0),o=Xt(e,t,r,n),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Kt(e,t,r){for(var n,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?(i=t-s,o=i+1):(c==e.length-3||t==l&&e[c+3]>t)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(n=e[c+2],s==l&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)n=e[2+(c-=3)],a="left";if("right"==r&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)n=e[(c+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Qt(e,t){var r=Cs;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Xt(e,t,r,n){var i,o=Kt(t.map,r,n),a=o.node,s=o.start,l=o.end,c=o.collapse;if(3==a.nodeType){for(var u=0;u<4;u++){for(;s&&k(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+l<o.coverEnd&&k(t.line.text.charAt(o.coverStart+l));)++l;if(i=ba&&ya<9&&0==s&&l==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Qt(Oa(a,s,l).getClientRects(),n),i.left||i.right||0==s)break;l=s,s-=1,c="right"}ba&&ya<11&&(i=Zt(e.display.measure,i))}else{s>0&&(c=n="right");var d;i=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==n?d.length-1:0]:a.getBoundingClientRect()}if(ba&&ya<9&&!s&&(!i||!i.left&&!i.right)){var f=a.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+br(e.display),top:f.top,bottom:f.bottom}:Cs}for(var m=i.top-t.rect.top,p=i.bottom-t.rect.top,h=(m+p)/2,g=t.view.measure.heights,v=0;v<g.length-1&&!(h<g[v]);v++);var A=v?g[v-1]:0,b=g[v],y={left:("right"==c?i.right:i.left)-t.rect.left,right:("left"==c?i.left:i.right)-t.rect.left,top:A,bottom:b};return i.left||i.right||(y.bogus=!0),e.options.singleCursorHeightPerLine||(y.rtop=m,y.rbottom=p),y}function Zt(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!U(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function Jt(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function er(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)Jt(e.display.view[r])}function tr(e){er(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function rr(){return ka&&_a?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function nr(){return ka&&_a?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ir(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=Nt(e.widgets[r]));return t}function or(e,t,r,n,i){if(!i){var o=ir(t);r.top+=o,r.bottom+=o}if("line"==n)return r;n||(n="local");var a=rt(t);if("local"==n?a+=zt(e.display):a-=e.display.viewOffset,"page"==n||"window"==n){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==n?0:nr());var l=s.left+("window"==n?0:rr());r.left+=l,r.right+=l}return r.top+=a,r.bottom+=a,r}function ar(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=rr(),i-=nr();else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:i-a.top}}function sr(e,t,r,n,i){return n||(n=J(e.doc,t.line)),or(e,n,Yt(e,n,t.ch,i),r)}function lr(e,t,r,n,i,o){function a(t,a){var s=$t(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,or(e,n,s,r)}function s(e,t,r){var n=l[t],i=1==n.level;return a(r?e-1:e,i!=r)}n=n||J(e.doc,t.line),i||(i=Vt(e,n));var l=E(n,e.doc.direction),c=t.ch,u=t.sticky;if(c>=n.text.length?(c=n.text.length,u="before"):c<=0&&(c=0,u="after"),!l)return a("before"==u?c-1:c,"before"==u);var d=S(l,c,u),f=Xa,m=s(c,d,"before"==u);return null!=f&&(m.other=s(c,f,"before"!=u)),m}function cr(e,t){var r=0;t=pe(e.doc,t),e.options.lineWrapping||(r=br(e.display)*t.ch);var n=J(e.doc,t.line),i=rt(n)+zt(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function ur(e,t,r,n,i){var o=se(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function dr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return ur(n.first,0,null,-1,-1);var i=ie(n,r),o=n.first+n.size-1;if(i>o)return ur(n.first+n.size-1,J(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=J(n,i);;){var s=hr(e,a,i,t,r),l=Ve(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=J(n,i=c.line)}}function fr(e,t,r,n){n-=ir(t);var i=t.text.length,o=M(function(t){return $t(e,r,t-1).bottom<=n},i,0);return i=M(function(t){return $t(e,r,t).top>n},o,i),{begin:o,end:i}}function mr(e,t,r,n){return r||(r=Vt(e,t)),fr(e,t,r,or(e,t,$t(e,r,n),"line").top)}function pr(e,t,r,n){return!(e.bottom<=r)&&(e.top>r||(n?e.left:e.right)>t)}function hr(e,t,r,n,i){i-=rt(t);var o=Vt(e,t),a=ir(t),s=0,l=t.text.length,c=!0,u=E(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?vr:gr)(e,t,r,o,u,n,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var f,m,p=null,h=null,g=M(function(t){var r=$t(e,o,t);return r.top+=a,r.bottom+=a,!!pr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=t,h=r),!0)},s,l),v=!1;if(h){var A=n-h.left<h.right-n,b=A==c;g=p+(b?0:1),m=b?"after":"before",f=A?h.left:h.right}else{c||g!=l&&g!=s||g++,m=0==g?"after":g==t.text.length?"before":$t(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var y=lr(e,se(r,g,m),"line",t,o);f=y.left,v=i<y.top?-1:i>=y.bottom?1:0}return g=w(t.text,g,1),ur(r,g,m,v,n-f)}function gr(e,t,r,n,i,o,a){var s=M(function(s){var l=i[s],c=1!=l.level;return pr(lr(e,se(r,c?l.to:l.from,c?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=lr(e,se(r,c?l.from:l.to,c?"after":"before"),"line",t,n);pr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function vr(e,t,r,n,i,o,a){var s=fr(e,t,n,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<i.length;f++){var m=i[f];if(!(m.from>=c||m.to<=l)){var p=1!=m.level,h=$t(e,n,p?Math.min(c,m.to)-1:Math.max(l,m.from)).right,g=h<o?o-h+1e9:h-o;(!u||d>g)&&(u=m,d=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Ar(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==gs){gs=n("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)gs.appendChild(document.createTextNode("x")),gs.appendChild(n("br"));gs.appendChild(document.createTextNode("x"))}r(e.measure,gs);var o=gs.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function br(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=n("span","xxxxxxxxxx"),i=n("pre",[t],"CodeMirror-line-like");r(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function yr(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;r[s]=o.offsetLeft+o.clientLeft+i,n[s]=o.clientWidth}return{fixedPos:Cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xr(e){var t=Ar(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/br(e.display)-3);return function(i){if(et(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function kr(e){var t=e.doc,r=xr(e);t.iter(function(e){var t=r(e);t!=e.height&&re(e,t)})}function wr(e,t,r,n){var i=e.display;if(!r&&"true"==j(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,c=dr(e,o,a);if(n&&c.xRel>0&&(l=J(e.doc,c.line).text).length==c.ch){var u=d(l,l.length,e.options.tabSize)-l.length;c=se(c.line,Math.max(0,Math.round((o-Wt(e.display).left)/br(e.display))-u))}return c}function Mr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function Br(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)ps&&Ze(e.doc,t)<i.viewTo&&Er(e);else if(r<=i.viewFrom)ps&&Je(e.doc,r+n)>i.viewFrom?Er(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)Er(e);else if(t<=i.viewFrom){var o=_r(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):Er(e)}else if(r>=i.viewTo){var a=_r(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Er(e)}else{var s=_r(e,t,t,-1),l=_r(e,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(gt(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):Er(e)}var c=i.externalMeasured;c&&(r<c.lineN?c.lineN+=n:t<c.lineN+c.size&&(i.externalMeasured=null))}function Sr(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[Mr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==f(a,r)&&a.push(r)}}}function Er(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function _r(e,t,r,n){var i,o=Mr(e,t),a=e.display.view;if(!ps||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(n>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;Ze(e.doc,r)!=r;){if(o==(n<0?0:a.length-1))return null;r+=n*a[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function Dr(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=gt(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=gt(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Mr(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(gt(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Mr(e,r)))),n.viewTo=r}function Lr(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function Tr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Fr(e,t){void 0===t&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=0;a<r.sel.ranges.length;a++)if(t||a!=r.sel.primIndex){var s=r.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Nr(e,s.head,i),l||zr(e,s,o)}}return n}function Nr(e,t,r){var i=lr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=r.appendChild(n("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var a=r.appendChild(n("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=i.other.left+"px",a.style.top=i.other.top+"px",a.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Or(e,t){return e.top-t.top||e.left-t.left}function zr(e,t,r){function i(e,t,r,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),l.appendChild(n("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==r?d-e:r)+"px;\n                             height: "+(i-t)+"px"))}function o(t,r,n){function o(r,n){return sr(e,se(t,r),"div",m,n)}function a(t,r,n){var i=mr(e,m,null,t),a="ltr"==r==("after"==n)?"left":"right";return o("after"==n?i.begin:i.end-(/\s/.test(m.text.charAt(i.end-1))?2:1),a)[a]}var l,c,m=J(s,t),p=m.text.length,h=E(m,s.direction);return B(h,r||0,null==n?p:n,function(e,t,s,m){var g="ltr"==s,v=o(e,g?"left":"right"),A=o(t-1,g?"right":"left"),b=null==r&&0==e,y=null==n&&t==p,C=0==m,x=!h||m==h.length-1;if(A.top-v.top<=3){var k=(f?b:y)&&C,w=(f?y:b)&&x,M=k?u:(g?v:A).left,B=w?d:(g?A:v).right;i(M,v.top,B-M,v.bottom)}else{var S,E,_,D;g?(S=f&&b&&C?u:v.left,E=f?d:a(e,s,"before"),_=f?u:a(t,s,"after"),D=f&&y&&x?d:A.right):(S=f?a(e,s,"before"):u,E=!f&&b&&C?d:v.right,_=!f&&y&&x?u:A.left,D=f?a(t,s,"after"):d),i(S,v.top,E-S,v.bottom),v.bottom<A.top&&i(u,v.bottom,null,A.top),i(_,A.top,D-_,A.bottom)}(!l||Or(v,l)<0)&&(l=v),Or(A,l)<0&&(l=A),(!c||Or(v,c)<0)&&(c=v),Or(A,c)<0&&(c=A)}),{start:l,end:c}}var a=e.display,s=e.doc,l=document.createDocumentFragment(),c=Wt(e.display),u=c.left,d=Math.max(a.sizerWidth,jt(e)-a.sizer.offsetLeft)-c.right,f="ltr"==s.direction,m=t.from(),p=t.to();if(m.line==p.line)o(m.line,m.ch,p.ch);else{var h=J(s,m.line),g=J(s,p.line),v=Ke(h)==Ke(g),A=o(m.line,m.ch,v?h.text.length+1:null).end,b=o(p.line,v?0:null,p.ch).start;v&&(A.top<b.top-2?(i(A.right,A.top,null,A.bottom),i(u,b.top,b.left,b.bottom)):i(A.right,A.top,b.left-A.right,A.bottom)),A.bottom<b.top&&i(u,A.bottom,null,b.top)}r.appendChild(l)}function Ir(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Wr(e){e.state.focused||(e.display.input.focus(),jr(e))}function Pr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Hr(e))},100)}function jr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(L(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),Ca&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ir(e))}function Hr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(L(e,"blur",e,t),e.state.focused=!1,Wa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function qr(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=e.options.lineWrapping,a=void 0,s=0;if(!i.hidden){if(ba&&ya<8){var l=i.node.offsetTop+i.node.offsetHeight;a=l-r,r=l}else{var c=i.node.getBoundingClientRect();a=c.bottom-c.top,!o&&i.text.firstChild&&(s=i.text.firstChild.getBoundingClientRect().right-c.left-1)}var u=i.line.height-a;if((u>.005||u<-.005)&&(re(i.line,a),Rr(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Rr(i.rest[d]);if(s>e.display.sizerWidth){var f=Math.ceil(s/br(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Rr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Ur(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-zt(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=ie(t,n),a=ie(t,i);if(r&&r.ensure){var s=r.ensure.from.line,l=r.ensure.to.line;s<o?(o=s,a=ie(t,rt(J(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=ie(t,rt(J(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Yr(e,t){if(!T(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!Sa){var a=n("div","​",null,"position: absolute;\n                         top: "+(t.top-r.viewOffset-zt(e.display))+"px;\n                         height: "+(t.bottom-t.top+Pt(e)+r.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Gr(e,t,r,n){null==n&&(n=0);var i;e.options.lineWrapping||t!=r||(t=t.ch?se(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,r="before"==t.sticky?se(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=lr(e,t),l=r&&r!=t?lr(e,r):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n};var c=$r(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(tn(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(nn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function Vr(e,t){var r=$r(e,t);null!=r.scrollTop&&tn(e,r.scrollTop),null!=r.scrollLeft&&nn(e,r.scrollLeft)}function $r(e,t){var r=e.display,n=Ar(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Ht(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+It(r),l=t.top<n,c=t.bottom>s-n;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,f=jt(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),m=t.right-t.left>f;return m&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<d?a.scrollLeft=Math.max(0,t.left-(m?0:10)):t.right>f+d-3&&(a.scrollLeft=t.right+(m?0:10)-f),a}function Kr(e,t){null!=t&&(Jr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Qr(e){Jr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Xr(e,t,r){null==t&&null==r||Jr(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Zr(e,t){Jr(e),e.curOp.scrollToPos=t}function Jr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;en(e,cr(e,t.from),cr(e,t.to),t.margin)}}function en(e,t,r,n){var i=$r(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});Xr(e,i.scrollLeft,i.scrollTop)}function tn(e,t){Math.abs(e.doc.scrollTop-t)<2||(ha||En(e,{top:t}),rn(e,t,!0),ha&&En(e),Cn(e,100))}function rn(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function nn(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Tn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function on(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+It(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?r:0,docHeight:n,scrollHeight:n+Pt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function an(e,t){t||(t=on(e));var r=e.display.barWidth,n=e.display.barHeight;sn(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&qr(e),sn(e,on(e)),r=e.display.barWidth,n=e.display.barHeight}function sn(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}function ln(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Wa(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ws[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),es(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?nn(e,t):tn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function cn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ms},vt(e.curOp)}function un(e){var t=e.curOp;t&&bt(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;dn(e)})}function dn(e){for(var t=e.ops,r=0;r<t.length;r++)fn(t[r]);for(var n=0;n<t.length;n++)mn(t[n]);for(var i=0;i<t.length;i++)pn(t[i]);for(var o=0;o<t.length;o++)hn(t[o]);for(var a=0;a<t.length;a++)gn(t[a])}function fn(e){var t=e.cm,r=t.display;kn(t),e.updateMaxLine&&it(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Bs(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function mn(e){e.updatedDisplay=e.mustUpdate&&Bn(e.cm,e.update)}function pn(e){var t=e.cm,r=t.display;e.updatedDisplay&&qr(t),e.barMeasure=on(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yt(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Pt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-jt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function hn(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&nn(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==a();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&an(t,e.barMeasure),e.updatedDisplay&&Ln(t,e.barMeasure),e.selectionChanged&&Ir(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Wr(e.cm)}function gn(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Sn(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&rn(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&nn(t,e.scrollLeft,!0,!0),e.scrollToPos){Yr(t,Gr(t,pe(n,e.scrollToPos.from),pe(n,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||L(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&L(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&L(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function vn(e,t){if(e.curOp)return t();cn(e);try{return t()}finally{un(e)}}function An(e,t){return function(){if(e.curOp)return t.apply(e,arguments);cn(e);try{return t.apply(e,arguments)}finally{un(e)}}}function bn(e){return function(){if(this.curOp)return e.apply(this,arguments);cn(this);try{return e.apply(this,arguments)}finally{un(this)}}}function yn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);cn(t);try{return e.apply(this,arguments)}finally{un(t)}}}function Cn(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,c(xn,e))}function xn(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=be(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Q(t.mode,n.state):null,l=ve(e,o,n,!0);s&&(n.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ye(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return Cn(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&vn(e,function(){for(var t=0;t<i.length;t++)Sr(e,i[t],"text")})}}function kn(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Pt(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Pt(e)+"px",t.scrollbarsClipped=!0)}function wn(e){if(e.hasFocus())return null;var t=a();if(!t||!o(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&o(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function Mn(e){if(e&&e.activeElt&&e.activeElt!=a()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function Bn(e,r){var n=e.display,i=e.doc;if(r.editorIsHidden)return Er(e),!1;if(!r.force&&r.visible.from>=n.viewFrom&&r.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Lr(e))return!1;Fn(e)&&(Er(e),r.dims=yr(e));var o=i.first+i.size,a=Math.max(r.visible.from-e.options.viewportMargin,i.first),s=Math.min(o,r.visible.to+e.options.viewportMargin);n.viewFrom<a&&a-n.viewFrom<20&&(a=Math.max(i.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(o,n.viewTo)),ps&&(a=Ze(e.doc,a),s=Je(e.doc,s));var l=a!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=r.wrapperHeight||n.lastWrapWidth!=r.wrapperWidth;Dr(e,a,s),n.viewOffset=rt(J(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=Lr(e);if(!l&&0==c&&!r.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=wn(e);return c>4&&(n.lineDiv.style.display="none"),_n(e,n.updateLineNumbers,r.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Mn(u),t(n.cursorDiv),t(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=r.wrapperHeight,n.lastWrapWidth=r.wrapperWidth,Cn(e,400)),n.updateLineNumbers=null,!0}function Sn(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=jt(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+It(e.display)-Ht(e),r.top)}),t.visible=Ur(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Bn(e,t);n=!1){qr(e);var i=on(e);Tr(e),an(e,i),Ln(e,i),t.force=!1}t.signal(e,"update",e),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 En(e,t){var r=new Bs(e,t);if(Bn(e,r)){qr(e),Sn(e,r);var n=on(e);Tr(e),an(e,n),Ln(e,n),r.finish()}}function _n(e,r,n){function i(t){var r=t.nextSibling;return Ca&&La&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,l=s.firstChild,c=o.view,u=o.viewFrom,d=0;d<c.length;d++){var m=c[d];if(m.hidden);else if(m.node&&m.node.parentNode==s){for(;l!=m.node;)l=i(l);var p=a&&null!=r&&r<=u&&m.lineNumber;m.changes&&(f(m.changes,"gutter")>-1&&(p=!1),xt(e,m,u,n)),p&&(t(m.lineNumber),m.lineNumber.appendChild(document.createTextNode(ae(e.options,u)))),l=m.node.nextSibling}else{var h=Dt(e,m,u,n);s.insertBefore(h,l)}u+=m.size}for(;l;)l=i(l)}function Dn(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Ln(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+Pt(e)+"px"}function Tn(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=Cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){e.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=o),r[a].gutterBackground&&(r[a].gutterBackground.style.left=o));var s=r[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Fn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=ae(e.options,t.first+t.size-1),i=e.display;if(r.length!=i.lineNumChars){var o=i.measure.appendChild(n("div",[n("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,s=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Dn(e.display),!0}return!1}function Nn(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;n=!0}r.push({className:o,style:a})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function On(e){var r=e.gutters,i=e.gutterSpecs;t(r),e.lineGutter=null;for(var o=0;o<i.length;++o){var a=i[o],s=a.className,l=a.style,c=r.appendChild(n("div",null,"CodeMirror-gutter "+s));l&&(c.style.cssText=l),"CodeMirror-linenumbers"==s&&(e.lineGutter=c,c.style.width=(e.lineNumWidth||1)+"px")}r.style.display=i.length?"":"none",Dn(e)}function zn(e){On(e.display),Br(e),Tn(e)}function In(e,t,r,o){var a=this;this.input=r,a.scrollbarFiller=n("div",null,"CodeMirror-scrollbar-filler"),a.scrollbarFiller.setAttribute("cm-not-content","true"),a.gutterFiller=n("div",null,"CodeMirror-gutter-filler"),a.gutterFiller.setAttribute("cm-not-content","true"),a.lineDiv=i("div",null,"CodeMirror-code"),a.selectionDiv=n("div",null,null,"position: relative; z-index: 1"),a.cursorDiv=n("div",null,"CodeMirror-cursors"),a.measure=n("div",null,"CodeMirror-measure"),a.lineMeasure=n("div",null,"CodeMirror-measure"),a.lineSpace=i("div",[a.measure,a.lineMeasure,a.selectionDiv,a.cursorDiv,a.lineDiv],null,"position: relative; outline: none");var s=i("div",[a.lineSpace],"CodeMirror-lines");a.mover=n("div",[s],null,"position: relative"),a.sizer=n("div",[a.mover],"CodeMirror-sizer"),a.sizerWidth=null,a.heightForcer=n("div",null,null,"position: absolute; height: "+Ra+"px; width: 1px;"),a.gutters=n("div",null,"CodeMirror-gutters"),a.lineGutter=null,a.scroller=n("div",[a.sizer,a.heightForcer,a.gutters],"CodeMirror-scroll"),a.scroller.setAttribute("tabIndex","-1"),a.wrapper=n("div",[a.scrollbarFiller,a.gutterFiller,a.scroller],"CodeMirror"),ba&&ya<8&&(a.gutters.style.zIndex=-1,a.scroller.style.paddingRight=0),Ca||ha&&Da||(a.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(a.wrapper):e(a.wrapper)),a.viewFrom=a.viewTo=t.first,a.reportedViewFrom=a.reportedViewTo=t.first,a.view=[],a.renderedView=null,a.externalMeasured=null,a.viewOffset=0,a.lastWrapHeight=a.lastWrapWidth=0,a.updateLineNumbers=null,a.nativeBarWidth=a.barHeight=a.barWidth=0,a.scrollbarsClipped=!1,a.lineNumWidth=a.lineNumInnerWidth=a.lineNumChars=null,a.alignWidgets=!1,a.cachedCharWidth=a.cachedTextHeight=a.cachedPaddingH=null,a.maxLine=null,a.maxLineLength=0,a.maxLineChanged=!1,a.wheelDX=a.wheelDY=a.wheelStartX=a.wheelStartY=null,a.shift=!1,a.selForContextMenu=null,a.activeTouch=null,a.gutterSpecs=Nn(o.gutters,o.lineNumbers),On(a),r.init(a)}function Wn(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function Pn(e){var t=Wn(e);return t.x*=Es,t.y*=Es,t}function jn(e,t){var r=Wn(t),n=r.x,i=r.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,l=a.scrollHeight>a.clientHeight;if(n&&s||i&&l){if(i&&La&&Ca)e:for(var c=t.target,u=o.view;c!=a;c=c.parentNode)for(var d=0;d<u.length;d++)if(u[d].node==c){e.display.currentWheelTarget=c;break e}if(n&&!ha&&!wa&&null!=Es)return i&&l&&tn(e,Math.max(0,a.scrollTop+i*Es)),nn(e,Math.max(0,a.scrollLeft+n*Es)),(!i||i&&l)&&z(t),void(o.wheelStartX=null);if(i&&null!=Es){var f=i*Es,m=e.doc.scrollTop,p=m+o.wrapper.clientHeight;f<0?m=Math.max(0,m+f-50):p=Math.min(e.doc.height,p+f+50),En(e,{top:m,bottom:p})}Ss<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,r=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,r&&(Es=(Es*Ss+r)/(Ss+1),++Ss)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}function Hn(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(e,t){return le(e.from(),t.from())}),r=f(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=le(s.to(),a.from());if(n&&!a.empty()?l>0:l>=0){var c=fe(s.from(),a.from()),u=de(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=r&&--r,t.splice(--o,2,new Ds(d?u:c,d?c:u))}}return new _s(t,r)}function qn(e,t){return new _s([new Ds(e,t||e)],0)}function Rn(e){return e.text?se(e.from.line+e.text.length-1,h(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Un(e,t){if(le(e,t.from)<0)return e;if(le(e,t.to)<=0)return Rn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Rn(t).ch-t.to.ch),se(r,n)}function Yn(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new Ds(Un(i.anchor,t),Un(i.head,t)))}return Hn(e.cm,r,e.sel.primIndex)}function Gn(e,t,r){return e.line==t.line?se(r.line,e.ch-t.ch+r.ch):se(r.line+(e.line-t.line),e.ch)}function Vn(e,t,r){for(var n=[],i=se(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Gn(s.from,i,o),c=Gn(Rn(s),i,o);if(i=s.to,o=c,"around"==r){var u=e.sel.ranges[a],d=le(u.head,u.anchor)<0;n[a]=new Ds(d?c:l,d?l:c)}else n[a]=new Ds(l,l)}return new _s(n,e.sel.primIndex)}function $n(e){e.doc.mode=$(e.options,e.doc.modeOption),Kn(e)}function Kn(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Cn(e,100),e.state.modeGen++,e.curOp&&Br(e)}function Qn(e,t){return 0==t.from.ch&&0==t.to.ch&&""==h(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Xn(e,t,r,n){function i(e){return r?r[e]:null}function o(e,r,i){ot(e,r,i,n),yt(e,"change",e,t)}function a(e,t){for(var r=[],o=e;o<t;++o)r.push(new hs(c[o],i(o),n));return r}var s=t.from,l=t.to,c=t.text,u=J(e,s.line),d=J(e,l.line),f=h(c),m=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Qn(e,t)){var g=a(0,c.length-1);o(d,d.text,m),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(l.ch),m);else{var v=a(1,c.length-1);v.push(new hs(f+u.text.slice(l.ch),m,n)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,v)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,f+d.text.slice(l.ch),m);var A=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,A)}yt(e,"change",e,t)}function Zn(e,t,r){function n(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;r&&!l||(t(s.doc,l),n(s.doc,e,l))}}}n(e,null,!0)}function Jn(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,kr(e),$n(e),ei(e),e.options.lineWrapping||it(e),e.options.mode=t.modeOption,Br(e)}function ei(e){("rtl"==e.doc.direction?s:Wa)(e.display.lineDiv,"CodeMirror-rtl")}function ti(e){vn(e,function(){ei(e),Br(e)})}function ri(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ni(e,t){var r={from:ue(t.from),to:Rn(t),text:ee(e,t.from,t.to)};return ui(e,r,t.from.line,t.to.line+1),Zn(e,function(e){return ui(e,r,t.from.line,t.to.line+1)},!0),r}function ii(e){for(;e.length;){if(!h(e).ranges)break;e.pop()}}function oi(e,t){return t?(ii(e.done),h(e.done)):e.done.length&&!h(e.done).ranges?h(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),h(e.done)):void 0}function ai(e,t,r,n){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=oi(i,i.lastOp==n)))a=h(o.changes),0==le(t.from,t.to)&&0==le(t.from,a.to)?a.to=Rn(t):o.changes.push(ni(e,t));else{var l=h(i.done);for(l&&l.ranges||ci(e.sel,i.done),o={changes:[ni(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,a||L(e,"historyAdded")}function si(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function li(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||si(e,o,h(i.done),t))?i.done[i.done.length-1]=t:ci(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&ii(i.undone)}function ci(e,t){var r=h(t);r&&r.ranges&&r.equals(e)||t.push(e)}function ui(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function di(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function fi(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(di(r[i]));return n}function mi(e,t){var r=fi(e,t),n=ze(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],a=n[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(r[i]=a)}return r}function pi(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?_s.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];n.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&f(t,Number(u[1]))>-1&&(h(s)[d]=c[d],delete c[d])}}}return n}function hi(e,t,r,n){if(n){var i=e.anchor;if(r){var o=le(t,i)<0;o!=le(r,i)<0?(i=t,t=r):o!=le(t,r)<0&&(t=r)}return new Ds(i,t)}return new Ds(r||t,t)}function gi(e,t,r,n,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),xi(e,new _s([hi(e.sel.primary(),t,r,i)],0),n)}function vi(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=hi(e.sel.ranges[o],t[o],null,i);xi(e,Hn(e.cm,n,e.sel.primIndex),r)}function Ai(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,xi(e,Hn(e.cm,i,e.sel.primIndex),n)}function bi(e,t,r,n){xi(e,qn(t,r),n)}function yi(e,t,r){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var r=0;r<t.length;r++)this.ranges[r]=new Ds(pe(e,t[r].anchor),pe(e,t[r].head))},origin:r&&r.origin};return L(e,"beforeSelectionChange",e,n),e.cm&&L(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Hn(e.cm,n.ranges,n.ranges.length-1):t}function Ci(e,t,r){var n=e.history.done,i=h(n);i&&i.ranges?(n[n.length-1]=t,ki(e,t,r)):xi(e,t,r)}function xi(e,t,r){ki(e,t,r),li(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function ki(e,t,r){(N(e,"beforeSelectionChange")||e.cm&&N(e.cm,"beforeSelectionChange"))&&(t=yi(e,t,r)),wi(e,Bi(e,t,r&&r.bias||(le(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),r&&!1===r.scroll||!e.cm||Qr(e.cm)}function wi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,F(e.cm)),yt(e,"cursorActivity",e))}function Mi(e){wi(e,Bi(e,e.sel,null,!1))}function Bi(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Ei(e,a.anchor,s&&s.anchor,r,n),c=Ei(e,a.head,s&&s.head,r,n);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ds(l,c))}return i?Hn(e.cm,i,t.primIndex):t}function Si(e,t,r,n,i){var o=J(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(L(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(r){var d=l.find(n<0?1:-1),f=void 0;if((n<0?u:c)&&(d=_i(e,d,-n,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=le(d,r))&&(n<0?f<0:f>0))return Si(e,d,t,n,i)}var m=l.find(n<0?-1:1);return(n<0?c:u)&&(m=_i(e,m,n,m.line==t.line?o:null)),m?Si(e,m,t,n,i):null}}return t}function Ei(e,t,r,n,i){var o=n||1,a=Si(e,t,r,o,i)||!i&&Si(e,t,r,o,!0)||Si(e,t,r,-o,i)||!i&&Si(e,t,r,-o,!0);return a||(e.cantEdit=!0,se(e.first,0))}function _i(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?pe(e,se(t.line-1)):null:r>0&&t.ch==(n||J(e,t.line)).text.length?t.line<e.first+e.size-1?se(t.line+1,0):null:new se(t.line,t.ch+r)}function Di(e){e.setSelection(se(e.firstLine(),0),se(e.lastLine()),Ya)}function Li(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,o){t&&(n.from=pe(e,t)),r&&(n.to=pe(e,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),L(e,"beforeChange",e,n),e.cm&&L(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Ti(e,t,r){if(e.cm){if(!e.cm.curOp)return An(e.cm,Ti)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(N(e,"beforeChange")||e.cm&&N(e.cm,"beforeChange"))||(t=Li(e,t,!0))){var n=ms&&!r&&We(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Fi(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else Fi(e,t)}}function Fi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=le(t.from,t.to)){var r=Yn(e,t);ai(e,t,r,e.cm?e.cm.curOp.id:NaN),zi(e,t,r,ze(e,t));var n=[];Zn(e,function(e,r){r||-1!=f(n,e.history)||(Hi(e.history,t),n.push(e.history)),zi(e,t,null,ze(e,t))})}}function Ni(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!n||r){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],r?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(n)return void s.push(i);break}if(ci(i,l),r&&!i.equals(e.sel))return void xi(e,i,{clearRedo:!1});a=i}var u=[];ci(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=N(e,"beforeChange")||e.cm&&N(e.cm,"beforeChange"),m=i.changes.length-1;m>=0;--m){var p=function(r){var n=i.changes[r];if(n.origin=t,d&&!Li(e,n,!1))return s.length=0,{};u.push(ni(e,n));var o=r?Yn(e,n):h(s);zi(e,n,o,mi(e,n)),!r&&e.cm&&e.cm.scrollIntoView({from:n.from,to:Rn(n)});var a=[];Zn(e,function(e,t){t||-1!=f(a,e.history)||(Hi(e.history,n),a.push(e.history)),zi(e,n,null,mi(e,n))})}(m);if(p)return p.v}}}}function Oi(e,t){if(0!=t&&(e.first+=t,e.sel=new _s(g(e.sel.ranges,function(e){return new Ds(se(e.anchor.line+t,e.anchor.ch),se(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Br(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Sr(e.cm,n,"gutter")}}function zi(e,t,r,n){if(e.cm&&!e.cm.curOp)return An(e.cm,zi)(e,t,r,n);if(t.to.line<e.first)return void Oi(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Oi(e,i),t={from:se(e.first,0),to:se(t.to.line+i,t.to.ch),text:[h(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:se(o,J(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ee(e,t.from,t.to),r||(r=Yn(e,t)),e.cm?Ii(e.cm,t,n):Xn(e,t,n),ki(e,r,Ya),e.cantEdit&&Ei(e,se(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ii(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ne(Ke(J(n,o.line))),n.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&F(e),Xn(n,t,r,xr(e)),e.options.lineWrapping||(n.iter(l,o.line+t.text.length,function(e){var t=nt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Se(n,o.line),Cn(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Br(e):o.line!=a.line||1!=t.text.length||Qn(e.doc,t)?Br(e,o.line,a.line+1,c):Sr(e,o.line,"text");var u=N(e,"changes"),d=N(e,"change");if(d||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&yt(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function Wi(e,t,r,n,i){var o;n||(n=r),le(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Ti(e,{from:r,to:n,text:t,origin:i})}function Pi(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function ji(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Pi(o.ranges[s].anchor,t,r,n),Pi(o.ranges[s].head,t,r,n)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(r<c.from.line)c.from=se(c.from.line+n,c.from.ch),c.to=se(c.to.line+n,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Hi(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;ji(e.done,r,n,i),ji(e.undone,r,n,i)}function qi(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=J(e,me(e,t)):i=ne(t),null==i?null:(n(o,i)&&e.cm&&Sr(e.cm,i,r),o)}function Ri(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}function Ui(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}function Yi(e,t,r){rt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Kr(e,r)}function Gi(e,t,r,n){var i=new Ls(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),qi(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!et(e,t)){var n=rt(t)<e.scrollTop;re(t,t.height+Nt(i)),n&&Kr(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&yt(o,"lineWidgetAdded",o,i,"number"==typeof t?t:ne(t)),i}function Vi(e,t,r,n,o){if(n&&n.shared)return $i(e,t,r,n,o);if(e.cm&&!e.cm.curOp)return An(e.cm,Vi)(e,t,r,n,o);var a=new Fs(e,o),s=le(t,r);if(n&&u(n,a,!1),s>0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=i("span",[a.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if($e(e,t.line,t,r,a)||t.line!=r.line&&$e(e,r.line,t,r,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");_e()}a.addToHistory&&ai(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l,c=t.line,d=e.cm;if(e.iter(c,r.line+1,function(e){d&&a.collapsed&&!d.options.lineWrapping&&Ke(e)==d.display.maxLine&&(l=!0),a.collapsed&&c!=t.line&&re(e,0),Fe(e,new De(a,c==t.line?t.ch:null,c==r.line?r.ch:null)),++c}),a.collapsed&&e.iter(t.line,r.line+1,function(t){et(e,t)&&re(t,0)}),a.clearOnEnter&&es(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(Ee(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Ts,a.atomic=!0),d){if(l&&(d.curOp.updateMaxLine=!0),a.collapsed)Br(d,t.line,r.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var f=t.line;f<=r.line;f++)Sr(d,f,"text");a.atomic&&Mi(d.doc),yt(d,"markerAdded",d,a)}return a}function $i(e,t,r,n,i){n=u(n),n.shared=!1;var o=[Vi(e,t,r,n,i)],a=o[0],s=n.widgetNode;return Zn(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),o.push(Vi(e,pe(e,t),pe(e,r),n,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=h(o)}),new Ns(o,a)}function Ki(e){return e.findMarks(se(e.first,0),e.clipPos(se(e.lastLine())),function(e){return e.parent})}function Qi(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(le(o,a)){var s=Vi(e,o,a,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function Xi(e){for(var t=0;t<e.length;t++)!function(t){var r=e[t],n=[r.primary.doc];Zn(r.primary.doc,function(e){return n.push(e)});for(var i=0;i<r.markers.length;i++){var o=r.markers[i];-1==f(n,o.doc)&&(o.parent=null,r.markers.splice(i--,1))}}(t)}function Zi(e){var t=this;if(to(t),!T(t,e)&&!Ot(t.display,e)){z(e),ba&&(Is=+new Date);var r=wr(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),a=0,s=0;s<i;++s)!function(e,n){if(!t.options.allowDropFileTypes||-1!=f(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=An(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[n]=e,++a==i){r=pe(t.doc,r);var l={from:r,to:r,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ti(t.doc,l),Ci(t.doc,qn(r,Rn(l)))}}),s.readAsText(e)}}(n[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),ki(t.doc,qn(r,r)),c)for(var u=0;u<c.length;++u)Wi(t.doc,"",c[u].anchor,c[u].head,"drag");t.replaceSelection(l,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ji(e,t){if(ba&&(!e.state.draggingText||+new Date-Is<100))return void P(t);if(!T(e,t)&&!Ot(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Ma)){var r=n("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",wa&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),wa&&r.parentNode.removeChild(r)}}function eo(e,t){var i=wr(e,t);if(i){var o=document.createDocumentFragment();Nr(e,i,o),e.display.dragCursor||(e.display.dragCursor=n("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),r(e.display.dragCursor,o)}}function to(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function ro(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var t=0;t<r.length;t++)e(r[t])})}}function no(){Ws||(io(),Ws=!0)}function io(){var e;es(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,ro(oo)},100))}),es(window,"blur",function(){return ro(Hr)})}function oo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}function ao(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function so(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=g(r.split(" "),ao),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=n):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[r]}for(var c in t)e[c]=t[c];return e}function lo(e,t,r,n){t=mo(t);var i=t.call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return lo(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=lo(e,t.fallthrough[o],r,n);if(a)return a}}}function co(e){var t="string"==typeof e?e:Ps[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function uo(e,t,r){var n=e;return t.altKey&&"Alt"!=n&&(e="Alt-"+e),(za?t.metaKey:t.ctrlKey)&&"Ctrl"!=n&&(e="Ctrl-"+e),(za?t.ctrlKey:t.metaKey)&&"Cmd"!=n&&(e="Cmd-"+e),!r&&t.shiftKey&&"Shift"!=n&&(e="Shift-"+e),e}function fo(e,t){if(wa&&34==e.keyCode&&e.char)return!1;var r=Ps[e.keyCode];return null!=r&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(r=e.code),uo(r,e,t))}function mo(e){return"string"==typeof e?Rs[e]:e}function po(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&le(o.from,h(n).to)<=0;){var a=n.pop();if(le(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}vn(e,function(){for(var t=n.length-1;t>=0;t--)Wi(e.doc,"",n[t].from,n[t].to,"+delete");Qr(e)})}function ho(e,t,r){var n=w(e.text,t+r,r);return n<0||n>e.text.length?null:n}function go(e,t,r){var n=ho(e,t.ch,r);return null==n?null:new se(t.line,n,r<0?"after":"before")}function vo(e,t,r,n,i){if(e){var o=E(r,t.doc.direction);if(o){var a,s=i<0?h(o):o[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Vt(t,r);a=i<0?r.text.length-1:0;var d=$t(t,u,a).top;a=M(function(e){return $t(t,u,e).top==d},i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=ho(r,a,1))}else a=i<0?s.to:s.from;return new se(n,a,c)}}return new se(n,i<0?r.text.length:0,i<0?"before":"after")}function Ao(e,t,r,n){var i=E(t,e.doc.direction);if(!i)return go(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=S(i,r.ch,r.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return go(t,r,n);var s,l=function(e,r){return ho(t,e instanceof se?e.ch:e,r)},c=function(r){return e.options.lineWrapping?(s=s||Vt(e,t),mr(e,t,s,r)):{begin:0,end:t.text.length}},u=c("before"==r.sticky?l(r,-1):r.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==n<0,f=l(r,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var m=d?"before":"after";return new se(r.line,f,m)}}var p=function(e,t,n){for(var o=function(e,t){return t?new se(r.line,l(e,1),"before"):new se(r.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?n.begin:l(n.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),n.begin<=c&&c<n.end)return o(c,s)}},h=p(o+n,n,u);if(h)return h;var g=n>0?u.end:l(u.begin,-1);return null==g||n>0&&g==t.text.length||!(h=p(n>0?0:i.length-1,n,c(g)))?null:h}function bo(e,t){var r=J(e.doc,t),n=Ke(r);return n!=r&&(t=ne(n)),vo(!0,e,n,t,1)}function yo(e,t){var r=J(e.doc,t),n=Qe(r);return n!=r&&(t=ne(n)),vo(!0,e,r,t,-1)}function Co(e,t){var r=bo(e,t.line),n=J(e.doc,r.line),i=E(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,n.text.search(/\S/)),a=t.line==r.line&&t.ch<=o&&t.ch;return se(r.line,a?0:o,r.sticky)}return r}function xo(e,t,r){if("string"==typeof t&&!(t=Us[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Ua}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function ko(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=lo(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&lo(t,e.options.extraKeys,r,e)||lo(t,e.options.keyMap,r,e)}function wo(e,t,r,n){var i=e.state.keySeq;if(i){if(co(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:Ys.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),Mo(e,i+" "+t,r,n))return!0}return Mo(e,t,r,n)}function Mo(e,t,r,n){var i=ko(e,t,n);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&yt(e,"keyHandled",e,t,r),"handled"!=i&&"multi"!=i||(z(r),Ir(e)),!!i}function Bo(e,t){var r=fo(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?wo(e,"Shift-"+r,t,function(t){return xo(e,t,!0)})||wo(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return xo(e,t)}):wo(e,r,t,function(t){return xo(e,t)}))}function So(e,t,r){return wo(e,"'"+r+"'",t,function(t){return xo(e,t,!0)})}function Eo(e){var t=this;if(t.curOp.focus=a(),!T(t,e)){ba&&ya<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var n=Bo(t,e);wa&&(Gs=n?r:null,!n&&88==r&&!is&&(La?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),ha&&!La&&!n&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||_o(t)}}function _o(e){function t(e){18!=e.keyCode&&e.altKey||(Wa(r,"CodeMirror-crosshair"),D(document,"keyup",t),D(document,"mouseover",t))}var r=e.display.lineDiv;s(r,"CodeMirror-crosshair"),es(document,"keyup",t),es(document,"mouseover",t)}function Do(e){16==e.keyCode&&(this.doc.sel.shift=!1),T(this,e)}function Lo(e){var t=this;if(!(Ot(t.display,e)||T(t,e)||e.ctrlKey&&!e.altKey||La&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(wa&&r==Gs)return Gs=null,void z(e);if(!wa||e.which&&!(e.which<10)||!Bo(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(So(t,e,i)||t.display.input.onKeyPress(e))}}}function To(e,t){var r=+new Date;return Ks&&Ks.compare(r,e,t)?($s=Ks=null,"triple"):$s&&$s.compare(r,e,t)?(Ks=new Vs(r,e,t),$s=null,"double"):($s=new Vs(r,e,t),Ks=null,"single")}function Fo(e){var t=this,r=t.display;if(!(T(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Ot(r,e))return void(Ca||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100)));if(!qo(t,e)){var n=wr(t,e),i=H(e),o=n?To(n,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),n&&No(t,i,n,o,e)||(1==i?n?zo(t,n,o,e):j(e)==r.scroller&&z(e):2==i?(n&&gi(t.doc,n),setTimeout(function(){return r.input.focus()},20)):3==i&&(Ia?t.display.input.onContextMenu(e):Pr(t)))}}}function No(e,t,r,n,i){var o="Click";return"double"==n?o="Double"+o:"triple"==n&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,wo(e,uo(o,i),i,function(t){if("string"==typeof t&&(t=Us[t]),!t)return!1;var n=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n=t(e,r)!=Ua}finally{e.state.suppressEdits=!1}return n})}function Oo(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(null==i.unit){var o=Ta?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),null==i.addNew&&(i.addNew=La?r.metaKey:r.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(La?r.altKey:r.ctrlKey)),i}function zo(e,t,r,n){ba?setTimeout(c(Wr,e),0):e.curOp.focus=a();var i,o=Oo(e,r,n),s=e.doc.sel;e.options.dragDrop&&ts&&!e.isReadOnly()&&"single"==r&&(i=s.contains(t))>-1&&(le((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(le(i.to(),t)>0||t.xRel<0)?Io(e,n,t,o):Po(e,n,t,o)}function Io(e,t,r,n){var i=e.display,o=!1,a=An(e,function(t){Ca&&(i.scroller.draggable=!1),e.state.draggingText=!1,D(i.wrapper.ownerDocument,"mouseup",a),D(i.wrapper.ownerDocument,"mousemove",s),D(i.scroller,"dragstart",l),D(i.scroller,"drop",a),o||(z(t),n.addNew||gi(e.doc,r,null,null,n.extend),Ca||ba&&9==ya?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},l=function(){return o=!0};Ca&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),es(i.wrapper.ownerDocument,"mouseup",a),es(i.wrapper.ownerDocument,"mousemove",s),es(i.scroller,"dragstart",l),es(i.scroller,"drop",a),Pr(e),setTimeout(function(){return i.input.focus()},20)}function Wo(e,t,r){if("char"==r)return new Ds(t,t);if("word"==r)return e.findWordAt(t);if("line"==r)return new Ds(se(t.line,0),pe(e.doc,se(t.line+1,0)));var n=r(e,t);return new Ds(n.from,n.to)}function Po(e,t,r,n){function i(t){if(0!=le(v,t))if(v=t,"rectangle"==n.unit){for(var i=[],o=e.options.tabSize,a=d(J(c,r.line).text,r.ch,o),s=d(J(c,t.line).text,t.ch,o),l=Math.min(a,s),h=Math.max(a,s),g=Math.min(r.line,t.line),A=Math.min(e.lastLine(),Math.max(r.line,t.line));g<=A;g++){var b=J(c,g).text,y=m(b,l,o);l==h?i.push(new Ds(se(g,y),se(g,y))):b.length>y&&i.push(new Ds(se(g,y),se(g,m(b,h,o))))}i.length||i.push(new Ds(r,r)),xi(c,Hn(e,p.ranges.slice(0,f).concat(i),f),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var C,x=u,k=Wo(e,t,n.unit),w=x.anchor;le(k.anchor,w)>0?(C=k.head,w=fe(x.from(),k.anchor)):(C=k.anchor,w=de(x.to(),k.head));var M=p.ranges.slice(0);M[f]=jo(e,new Ds(pe(c,w),C)),xi(c,Hn(e,M,f),Ga)}}function o(t){var r=++b,s=wr(e,t,!0,"rectangle"==n.unit);if(s)if(0!=le(s,v)){e.curOp.focus=a(),i(s);var u=Ur(l,c);(s.line>=u.to||s.line<u.from)&&setTimeout(An(e,function(){b==r&&o(t)}),150)}else{var d=t.clientY<A.top?-20:t.clientY>A.bottom?20:0;d&&setTimeout(An(e,function(){b==r&&(l.scroller.scrollTop+=d,o(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,t&&(z(t),l.input.focus()),D(l.wrapper.ownerDocument,"mousemove",y),D(l.wrapper.ownerDocument,"mouseup",C),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;z(t);var u,f,p=c.sel,h=p.ranges;if(n.addNew&&!n.extend?(f=c.sel.contains(r),u=f>-1?h[f]:new Ds(r,r)):(u=c.sel.primary(),f=c.sel.primIndex),"rectangle"==n.unit)n.addNew||(u=new Ds(r,r)),r=wr(e,t,!0,!0),f=-1;else{var g=Wo(e,r,n.unit);u=n.extend?hi(u,g.anchor,g.head,n.extend):g}n.addNew?-1==f?(f=h.length,xi(c,Hn(e,h.concat([u]),f),{scroll:!1,origin:"*mouse"})):h.length>1&&h[f].empty()&&"char"==n.unit&&!n.extend?(xi(c,Hn(e,h.slice(0,f).concat(h.slice(f+1)),0),{scroll:!1,origin:"*mouse"}),p=c.sel):Ai(c,f,u,Ga):(f=0,xi(c,new _s([u],0),Ga),p=c.sel);var v=r,A=l.wrapper.getBoundingClientRect(),b=0,y=An(e,function(e){0!==e.buttons&&H(e)?o(e):s(e)}),C=An(e,s);e.state.selectingText=C,es(l.wrapper.ownerDocument,"mousemove",y),es(l.wrapper.ownerDocument,"mouseup",C)}function jo(e,t){var r=t.anchor,n=t.head,i=J(e.doc,r.line);if(0==le(r,n)&&r.sticky==n.sticky)return t;var o=E(i);if(!o)return t;var a=S(o,r.ch,r.sticky),s=o[a];if(s.from!=r.ch&&s.to!=r.ch)return t;var l=a+(s.from==r.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;var c;if(n.line!=r.line)c=(n.line-r.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=S(o,n.ch,n.sticky),d=u-a||(n.ch-r.ch)*(1==s.level?-1:1);c=u==l-1||u==l?d<0:d>0}var f=o[l+(c?-1:0)],m=c==(1==f.level),p=m?f.from:f.to,h=m?"after":"before";return r.ch==p&&r.sticky==h?t:new Ds(new se(r.line,p,h),n)}function Ho(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&z(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!N(e,r))return W(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){return L(e,r,e,ie(e.doc,o),e.display.gutterSpecs[l].className,t),W(t)}}}function qo(e,t){return Ho(e,t,"gutterClick",!0)}function Ro(e,t){Ot(e.display,t)||Uo(e,t)||T(e,t,"contextmenu")||Ia||e.display.input.onContextMenu(t)}function Uo(e,t){return!!N(e,"gutterContextMenu")&&Ho(e,t,"gutterContextMenu",!1)}function Yo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),tr(e)}function Go(e,t,r){if(!t!=!(r&&r!=Qs)){var n=e.display.dragFunctions,i=t?es:D;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Vo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Wa(e.display.wrapper,"CodeMirror-wrap"),it(e)),kr(e),Br(e),tr(e),setTimeout(function(){return an(e)},100)}function $o(e,t){var r=this;if(!(this instanceof $o))return new $o(e,t);this.options=t=t?u(t):{},u(Xs,t,!1);var n=t.value;"string"==typeof n?n=new zs(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new $o.inputStyles[t.inputStyle](this),o=this.display=new In(e,n,i,t);o.wrapper.CodeMirror=this,Yo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ln(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 ja,keySeq:null,specialChars:null},t.autofocus&&!Da&&o.input.focus(),ba&&ya<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ko(this),no(),cn(this),this.curOp.forceUpdate=!0,Jn(this,n),t.autofocus&&!Da||this.hasFocus()?setTimeout(c(jr,this),20):Hr(this);for(var a in Zs)Zs.hasOwnProperty(a)&&Zs[a](this,t[a],Qs);Fn(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Js.length;++s)Js[s](this);un(this),Ca&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ko(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),a=i.activeTouch,a.end=+new Date)}function r(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function n(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}var i=e.display;es(i.scroller,"mousedown",An(e,Fo)),ba&&ya<11?es(i.scroller,"dblclick",An(e,function(t){if(!T(e,t)){var r=wr(e,t);if(r&&!qo(e,t)&&!Ot(e.display,t)){z(t);var n=e.findWordAt(r);gi(e.doc,n.anchor,n.head)}}})):es(i.scroller,"dblclick",function(t){return T(e,t)||z(t)}),es(i.scroller,"contextmenu",function(t){return Ro(e,t)});var o,a={end:0};es(i.scroller,"touchstart",function(t){if(!T(e,t)&&!r(t)&&!qo(e,t)){i.input.ensurePolled(),clearTimeout(o);var n=+new Date;i.activeTouch={start:n,moved:!1,prev:n-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),es(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),es(i.scroller,"touchend",function(r){var o=i.activeTouch;if(o&&!Ot(i,r)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(i.activeTouch,"page");a=!o.prev||n(o,o.prev)?new Ds(s,s):!o.prev.prev||n(o,o.prev.prev)?e.findWordAt(s):new Ds(se(s.line,0),pe(e.doc,se(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),z(r)}t()}),es(i.scroller,"touchcancel",t),es(i.scroller,"scroll",function(){i.scroller.clientHeight&&(tn(e,i.scroller.scrollTop),nn(e,i.scroller.scrollLeft,!0),L(e,"scroll",e))}),es(i.scroller,"mousewheel",function(t){return jn(e,t)}),es(i.scroller,"DOMMouseScroll",function(t){return jn(e,t)}),es(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){T(e,t)||P(t)},over:function(t){T(e,t)||(eo(e,t),P(t))},start:function(t){return Ji(e,t)},drop:An(e,Zi),leave:function(t){T(e,t)||to(e)}};var s=i.input.getField();es(s,"keyup",function(t){return Do.call(e,t)}),es(s,"keydown",An(e,Eo)),es(s,"keypress",An(e,Lo)),es(s,"focus",function(t){return jr(e,t)}),es(s,"blur",function(t){return Hr(e,t)})}function Qo(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=be(e,t).state:r="prev");var a=e.options.tabSize,s=J(o,t),l=d(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==Ua||c>150)){if(!n)return;r="prev"}}else c=0,r="not";"prev"==r?c=t>o.first?d(J(o,t-1).text,null,a):0:"add"==r?c=l+e.options.indentUnit:"subtract"==r?c=l-e.options.indentUnit:"number"==typeof r&&(c=l+r),c=Math.max(0,c);var f="",m=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)m+=a,f+="\t";if(m<c&&(f+=p(c-m)),f!=u)return Wi(o,f,se(t,0),se(t,u.length),"+input"),s.stateAfter=null,!0;for(var g=0;g<o.sel.ranges.length;g++){var v=o.sel.ranges[g];if(v.head.line==t&&v.head.ch<u.length){var A=se(t,u.length);Ai(o,g,new Ds(A,A));break}}}function Xo(e){el=e}function Zo(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=rs(t),c=null;if(s&&n.ranges.length>1)if(el&&el.text.join("\n")==t){if(n.ranges.length%el.text.length==0){c=[];for(var u=0;u<el.text.length;u++)c.push(o.splitLines(el.text[u]))}}else l.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(c=g(l,function(e){return[e]}));for(var d=e.curOp.updateInput,f=n.ranges.length-1;f>=0;f--){var m=n.ranges[f],p=m.from(),v=m.to();m.empty()&&(r&&r>0?p=se(p.line,p.ch-r):e.state.overwrite&&!s?v=se(v.line,Math.min(J(o,v.line).text.length,v.ch+h(l).length)):s&&el&&el.lineWise&&el.text.join("\n")==t&&(p=v=se(p.line,0)));var A={from:p,to:v,text:c?c[f%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Ti(e.doc,A),yt(e,"inputRead",e,A)}t&&!s&&ea(e,t),Qr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Jo(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||vn(t,function(){return Zo(t,r,0,null,"paste")}),!0}function ea(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Qo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(J(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Qo(e,i.head.line,"smart"));a&&yt(e,"electricInput",e,i.head.line)}}}function ta(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:se(i,0),head:se(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function ra(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function na(){var e=n("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=n("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ca?e.style.width="1000px":e.setAttribute("wrap","off"),Ea&&(e.style.border="1px solid black"),ra(e),t}function ia(e,t,r,n,i){function o(){var n=t.line+r;return!(n<e.first||n>=e.first+e.size)&&(t=new se(n,t.ch,t.sticky),c=J(e,n))}function a(n){var a;if(null==(a=i?Ao(e.cm,c,t,r):go(c,t,r))){if(n||!o())return!1;t=vo(i,e.cm,c,t.line,r)}else t=a;return!0}var s=t,l=r,c=J(e,t.line);if("char"==n)a();else if("column"==n)a(!0);else if("word"==n||"group"==n)for(var u=null,d="group"==n,f=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(r<0)||a(!m);m=!1){var p=c.text.charAt(t.ch)||"\n",h=C(p,f)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||m||h||(h="s"),u&&u!=h){r<0&&(r=1,a(),t.sticky="after");break}if(h&&(u=h),r>0&&!a(!m))break}var g=Ei(e,t,s,l,!0);return ce(s,g)&&(g.hitSide=!0),g}function oa(e,t,r,n){var i,o=e.doc,a=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*Ar(e.display),3);i=(r>0?t.bottom:t.top)+r*l}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(var c;c=dr(e,a,i),c.outside;){if(r<0?i<=0:i>=o.height){c.hitSide=!0;break}i+=5*r}return c}function aa(e,t){var r=Gt(e,t.line);if(!r||r.hidden)return null;var n=J(e.doc,t.line),i=Rt(r,n,t.line),o=E(n,e.doc.direction),a="left";if(o){a=S(o,t.ch)%2?"right":"left"}var s=Kt(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function sa(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function la(e,t){return t&&(e.bad=!0),e}function ca(e,t,r,n,i){function o(e){return function(t){return t.id==e}}function a(){u&&(c+=d,f&&(c+=d),u=f=!1)}function s(e){e&&(a(),c+=e)}function l(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(r)return void s(r);var c,m=t.getAttribute("cm-marker");if(m){var p=e.findMarks(se(n,0),se(i+1,0),o(+m));return void(p.length&&(c=p[0].find(0))&&s(ee(e.doc,c.from,c.to).join(d)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&a();for(var g=0;g<t.childNodes.length;g++)l(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(f=!0),h&&(u=!0)}else 3==t.nodeType&&s(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(var c="",u=!1,d=e.doc.lineSeparator(),f=!1;l(t),t!=r;)t=t.nextSibling,f=!1;return c}function ua(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return la(e.clipPos(se(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return da(o,t,r)}}function da(e,t,r){function n(t,r,n){for(var i=-1;i<(d?d.length:0);i++)for(var o=i<0?u.map:d[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==r){var l=ne(i<0?e.line:e.rest[i]),c=o[a]+n;return(n<0||s!=t)&&(c=o[a+(n?1:0)]),se(l,c)}}}var i=e.text.firstChild,a=!1;if(!t||!o(i,t))return la(se(ne(e.line),0),!0);if(t==i&&(a=!0,t=i.childNodes[r],r=0,!t)){var s=e.rest?h(e.rest):e.line;return la(se(ne(s),s.text.length),a)}var l=3==t.nodeType?t:null,c=t;for(l||1!=t.childNodes.length||3!=t.firstChild.nodeType||(l=t.firstChild,r&&(r=l.nodeValue.length));c.parentNode!=i;)c=c.parentNode;var u=e.measure,d=u.maps,f=n(l,c,r);if(f)return la(f,a);for(var m=c.nextSibling,p=l?l.nodeValue.length-r:0;m;m=m.nextSibling){if(f=n(m,m.firstChild,0))return la(se(f.line,f.ch-p),a);p+=m.textContent.length}for(var g=c.previousSibling,v=r;g;g=g.previousSibling){if(f=n(g,g.firstChild,-1))return la(se(f.line,f.ch+v),a);v+=g.textContent.length}}function fa(e,t){function r(){e.value=l.getValue()}if(t=t?u(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=a();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}var i;if(e.form&&(es(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(D(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=$o(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l}var ma=navigator.userAgent,pa=navigator.platform,ha=/gecko\/\d/i.test(ma),ga=/MSIE \d/.test(ma),va=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ma),Aa=/Edge\/(\d+)/.exec(ma),ba=ga||va||Aa,ya=ba&&(ga?document.documentMode||6:+(Aa||va)[1]),Ca=!Aa&&/WebKit\//.test(ma),xa=Ca&&/Qt\/\d+\.\d+/.test(ma),ka=!Aa&&/Chrome\//.test(ma),wa=/Opera\//.test(ma),Ma=/Apple Computer/.test(navigator.vendor),Ba=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(ma),Sa=/PhantomJS/.test(ma),Ea=!Aa&&/AppleWebKit/.test(ma)&&/Mobile\/\w+/.test(ma),_a=/Android/.test(ma),Da=Ea||_a||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(ma),La=Ea||/Mac/.test(pa),Ta=/\bCrOS\b/.test(ma),Fa=/win/i.test(pa),Na=wa&&ma.match(/Version\/(\d*\.\d*)/);Na&&(Na=Number(Na[1])),Na&&Na>=15&&(wa=!1,Ca=!0);var Oa,za=La&&(xa||wa&&(null==Na||Na<12.11)),Ia=ha||ba&&ya>=9,Wa=function(t,r){var n=t.className,i=e(r).exec(n);if(i){var o=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(o?i[1]+o:"")}};Oa=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var Pa=function(e){e.select()};Ea?Pa=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ba&&(Pa=function(e){try{e.select()}catch(e){}});var ja=function(){this.id=null,this.f=null,this.time=0,this.handler=c(this.onTimeout,this)};ja.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ja.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};var Ha,qa,Ra=30,Ua={toString:function(){return"CodeMirror.Pass"}},Ya={scroll:!1},Ga={origin:"*mouse"},Va={origin:"+move"},$a=[""],Ka=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Qa=/[\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]/,Xa=null,Za=function(){function e(e){return e<=247?r.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,r){this.level=e,this.from=t,this.to=r}var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(r,n){var c="ltr"==n?"L":"R";if(0==r.length||"ltr"==n&&!i.test(r))return!1;for(var u=r.length,d=[],f=0;f<u;++f)d.push(e(r.charCodeAt(f)));for(var m=0,p=c;m<u;++m){var g=d[m];"m"==g?d[m]=p:p=g}for(var v=0,A=c;v<u;++v){var b=d[v];"1"==b&&"r"==A?d[v]="n":a.test(b)&&(A=b,"r"==b&&(d[v]="R"))}for(var y=1,C=d[0];y<u-1;++y){var x=d[y];"+"==x&&"1"==C&&"1"==d[y+1]?d[y]="1":","!=x||C!=d[y+1]||"1"!=C&&"n"!=C||(d[y]=C),C=x}for(var k=0;k<u;++k){var w=d[k];if(","==w)d[k]="N";else if("%"==w){var M=void 0;for(M=k+1;M<u&&"%"==d[M];++M);for(var B=k&&"!"==d[k-1]||M<u&&"1"==d[M]?"1":"N",S=k;S<M;++S)d[S]=B;k=M-1}}for(var E=0,_=c;E<u;++E){var D=d[E];"L"==_&&"1"==D?d[E]="L":a.test(D)&&(_=D)}for(var L=0;L<u;++L)if(o.test(d[L])){var T=void 0;for(T=L+1;T<u&&o.test(d[T]);++T);for(var F="L"==(L?d[L-1]:c),N="L"==(T<u?d[T]:c),O=F==N?F?"L":"R":c,z=L;z<T;++z)d[z]=O;L=T-1}for(var I,W=[],P=0;P<u;)if(s.test(d[P])){var j=P;for(++P;P<u&&s.test(d[P]);++P);W.push(new t(0,j,P))}else{var H=P,q=W.length;for(++P;P<u&&"L"!=d[P];++P);for(var R=H;R<P;)if(l.test(d[R])){H<R&&W.splice(q,0,new t(1,H,R));var U=R;for(++R;R<P&&l.test(d[R]);++R);W.splice(q,0,new t(2,U,R)),H=R}else++R;H<P&&W.splice(q,0,new t(1,H,P))}return"ltr"==n&&(1==W[0].level&&(I=r.match(/^\s+/))&&(W[0].from=I[0].length,W.unshift(new t(0,0,I[0].length))),1==h(W).level&&(I=r.match(/\s+$/))&&(h(W).to-=I[0].length,W.push(new t(0,u-I[0].length,u)))),"rtl"==n?W.reverse():W}}(),Ja=[],es=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Ja).concat(r)}},ts=function(){if(ba&&ya<9)return!1;var e=n("div");return"draggable"in e||"dragDrop"in e}(),rs=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(r.push(o.slice(0,a)),t+=a+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},ns=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},is=function(){var e=n("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),os=null,as={},ss={},ls={},cs=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};cs.prototype.eol=function(){return this.pos>=this.string.length},cs.prototype.sol=function(){return this.pos==this.lineStart},cs.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cs.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cs.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},cs.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},cs.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},cs.prototype.skipToEnd=function(){this.pos=this.string.length},cs.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},cs.prototype.backUp=function(e){this.pos-=e},cs.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=d(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?d(this.string,this.lineStart,this.tabSize):0)},cs.prototype.indentation=function(){return d(this.string,null,this.tabSize)-(this.lineStart?d(this.string,this.lineStart,this.tabSize):0)},cs.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},cs.prototype.current=function(){return this.string.slice(this.start,this.pos)},cs.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},cs.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},cs.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var us=function(e,t){this.state=e,this.lookAhead=t},ds=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};ds.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ds.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ds.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ds.fromSaved=function(e,t,r){return t instanceof us?new ds(e,Q(e.mode,t.state),r,t.lookAhead):new ds(e,Q(e.mode,t),r)},ds.prototype.save=function(e){var t=!1!==e?Q(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new us(t,this.maxLookAhead):t};var fs=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r},ms=!1,ps=!1,hs=function(e,t,r){this.text=e,je(this,t),this.height=r?r(this):1};hs.prototype.lineNo=function(){return ne(this)},O(hs);var gs,vs={},As={},bs=null,ys=null,Cs={left:0,right:0,top:0,bottom:0},xs=function(e,t,r){this.cm=r;var i=this.vert=n("div",[n("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=n("div",[n("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=o.tabIndex=-1,e(i),e(o),es(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),es(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ba&&ya<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};xs.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},xs.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},xs.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},xs.prototype.zeroWidthHack=function(){var e=La&&!Ba?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ja,this.disableVert=new ja},xs.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},xs.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ks=function(){};ks.prototype.update=function(){return{bottom:0,right:0}},ks.prototype.setScrollLeft=function(){},ks.prototype.setScrollTop=function(){},ks.prototype.clear=function(){};var ws={native:xs,null:ks},Ms=0,Bs=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Ur(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=jt(e),this.force=r,this.dims=yr(e),this.events=[]};Bs.prototype.signal=function(e,t){N(e,t)&&this.events.push(arguments)},Bs.prototype.finish=function(){for(var e=0;e<this.events.length;e++)L.apply(null,this.events[e])};var Ss=0,Es=null;ba?Es=-.53:ha?Es=15:ka?Es=-.7:Ma&&(Es=-1/3);var _s=function(e,t){this.ranges=e,this.primIndex=t};_s.prototype.primary=function(){return this.ranges[this.primIndex]},_s.prototype.equals=function(e){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 r=this.ranges[t],n=e.ranges[t];if(!ce(r.anchor,n.anchor)||!ce(r.head,n.head))return!1}return!0},_s.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ds(ue(this.ranges[t].anchor),ue(this.ranges[t].head));return new _s(e,this.primIndex)},_s.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},_s.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(le(t,n.from())>=0&&le(e,n.to())<=0)return r}return-1};var Ds=function(e,t){this.anchor=e,this.head=t};Ds.prototype.from=function(){return fe(this.anchor,this.head)},Ds.prototype.to=function(){return de(this.anchor,this.head)},Ds.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ri.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,at(i),yt(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}},Ui.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),a=n.height;if(n.removeInner(e,o),this.height-=a-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Ri))){var s=[];this.collapse(s),this.children=[new Ri(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new Ri(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++n,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new Ui(t);if(e.parent){e.size-=r.size,e.height-=r.height;var n=f(e.parent.children,e);e.parent.children.splice(n+1,0,r)}else{var i=new Ui(e.children);i.parent=e,e.children=[i,r],e=i}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,r))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Ls=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};Ls.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=ne(r);if(null!=n&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=Nt(this);re(r,Math.max(0,r.height-o)),e&&(vn(e,function(){Yi(e,r,-o),Sr(e,n,"widget")}),yt(e,"lineWidgetCleared",e,this,n))}},Ls.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=Nt(this)-t;i&&(et(this.doc,n)||re(n,n.height+i),r&&vn(r,function(){r.curOp.forceUpdate=!0,Yi(r,n,i),yt(r,"lineWidgetChanged",r,e,ne(n))}))},O(Ls);var Ts=0,Fs=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ts};Fs.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&cn(e),N(this,"clear")){var r=this.find();r&&yt(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Le(a.markedSpans,this);e&&!this.collapsed?Sr(e,ne(a),"text"):e&&(null!=s.to&&(i=ne(a)),null!=s.from&&(n=ne(a))),a.markedSpans=Te(a.markedSpans,s),null==s.from&&this.collapsed&&!et(this.doc,a)&&e&&re(a,Ar(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Ke(this.lines[l]),u=nt(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Br(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Mi(e.doc)),e&&yt(e,"markerCleared",e,this,n,i),t&&un(e),this.parent&&this.parent.clear()}},Fs.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var o=this.lines[i],a=Le(o.markedSpans,this);if(null!=a.from&&(r=se(t?o:ne(o),a.from),-1==e))return r;if(null!=a.to&&(n=se(t?o:ne(o),a.to),1==e))return n}return r&&{from:r,to:n}},Fs.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&vn(n,function(){var i=t.line,o=ne(t.line),a=Gt(n,o);if(a&&(Jt(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!et(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var l=Nt(r)-s;l&&re(i,i.height+l)}yt(n,"markerChanged",n,e)})},Fs.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=f(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Fs.prototype.detachLine=function(e){if(this.lines.splice(f(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},O(Fs);var Ns=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};Ns.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();yt(this,"clear")}},Ns.prototype.find=function(e,t){return this.primary.find(e,t)},O(Ns);var Os=0,zs=function(e,t,r,n,i){if(!(this instanceof zs))return new zs(e,t,r,n,i);null==r&&(r=0),Ui.call(this,[new Ri([new hs("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=se(r,0);this.sel=qn(o),this.history=new ri(null),this.id=++Os,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Xn(this,{from:o,to:o,text:e}),xi(this,qn(o),Ya)};zs.prototype=b(Ui.prototype,{constructor:zs,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=te(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:yn(function(e){var t=se(this.first,0),r=this.first+this.size-1;Ti(this,{from:t,to:se(r,J(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Xr(this.cm,0,0),xi(this,qn(t),Ya)}),replaceRange:function(e,t,r,n){t=pe(this,t),r=r?pe(this,r):t,Wi(this,e,t,r,n)},getRange:function(e,t,r){var n=ee(this,pe(this,e),pe(this,t));return!1===r?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(oe(this,e))return J(this,e)},getLineNumber:function(e){return ne(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=J(this,e)),Ke(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pe(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:yn(function(e,t,r){bi(this,pe(this,"number"==typeof e?se(e,t||0):e),null,r)}),setSelection:yn(function(e,t,r){bi(this,pe(this,e),pe(this,t||e),r)}),extendSelection:yn(function(e,t,r){gi(this,pe(this,e),t&&pe(this,t),r)}),extendSelections:yn(function(e,t){vi(this,ge(this,e),t)}),extendSelectionsBy:yn(function(e,t){vi(this,ge(this,g(this.sel.ranges,e)),t)}),setSelections:yn(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new Ds(pe(this,e[i].anchor),pe(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),xi(this,Hn(this.cm,n,t),r)}}),addSelection:yn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Ds(pe(this,e),pe(this,t||e))),xi(this,Hn(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t,r=this.sel.ranges,n=0;n<r.length;n++){var i=ee(this,r[n].from(),r[n].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=ee(this,r[n].from(),r[n].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:yn(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:r}}for(var s=t&&"end"!=t&&Vn(this,n,t),l=n.length-1;l>=0;l--)Ti(this,n[l]);s?Ci(this,s):this.cm&&Qr(this.cm)}),undo:yn(function(){Ni(this,"undo")}),redo:yn(function(){Ni(this,"redo")}),undoSelection:yn(function(){Ni(this,"undo",!0)}),redoSelection:yn(function(){Ni(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){this.history=new ri(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:pi(this.history.done),undone:pi(this.history.undone)}},setHistory:function(e){var t=this.history=new ri(this.history.maxGeneration);t.done=pi(e.done.slice(0),null,!0),t.undone=pi(e.undone.slice(0),null,!0)},setGutterMarker:yn(function(e,t,r){return qi(this,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&x(n)&&(e.gutterMarkers=null),!0})}),clearGutter:yn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&qi(t,r,"gutter",function(){return r.gutterMarkers[e]=null,x(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!oe(this,e))return null;if(t=e,!(e=J(this,e)))return null}else if(null==(t=ne(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:yn(function(t,r,n){return qi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass";if(t[i]){if(e(n).test(t[i]))return!1;t[i]+=" "+n}else t[i]=n;return!0})}),removeLineClass:yn(function(t,r,n){return qi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==n)t[i]=null;else{var a=o.match(e(n));if(!a)return!1;var s=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:yn(function(e,t,r){return Gi(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Vi(this,pe(this,e),pe(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=pe(this,e),Vi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=pe(this,e);var t=[],r=J(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=pe(this,e),t=pe(this,t);var n=[],i=e.line;return 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];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||r&&!r(l.marker)||n.push(l.marker.parent||l.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),pe(this,se(r,t))},indexFromPos:function(e){e=pe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new zs(te(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new zs(te(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Qi(n,Ki(this)),n},unlinkDoc:function(e){if(e instanceof $o&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Xi(Ki(this));break}}if(e.history==this.history){var n=[e.id];Zn(e,function(e){return n.push(e.id)},!0),e.history=new ri(null),e.history.done=pi(this.history.done,n),e.history.undone=pi(this.history.undone,n)}},iterLinkedDocs:function(e){Zn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):rs(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:yn(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ti(this.cm))})}),zs.prototype.eachLine=zs.prototype.iter;for(var Is=0,Ws=!1,Ps={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",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"},js=0;js<10;js++)Ps[js+48]=Ps[js+96]=String(js);for(var Hs=65;Hs<=90;Hs++)Ps[Hs]=String.fromCharCode(Hs);for(var qs=1;qs<=12;qs++)Ps[qs+111]=Ps[qs+63235]="F"+qs;var Rs={};Rs.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"},Rs.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"},Rs.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"},Rs.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"]},Rs.default=La?Rs.macDefault:Rs.pcDefault;var Us={selectAll:Di,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ya)},killLine:function(e){return po(e,function(t){if(t.empty()){var r=J(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:se(t.head.line+1,0)}:{from:t.head,to:se(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return po(e,function(t){return{from:se(t.from().line,0),to:pe(e.doc,se(t.to().line+1,0))}})},delLineLeft:function(e){return po(e,function(e){return{from:se(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return po(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return po(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},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(e){return e.extendSelection(se(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(se(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return bo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Co(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return yo(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Va)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Va)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?Co(e,t.head):n},Va)},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){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),a=d(e.getLine(o.line),o.ch,n);t.push(p(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return vn(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=J(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new se(i.line,i.ch-1)),i.ch>0)i=new se(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),se(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=J(e.doc,i.line-1).text;a&&(i=new se(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),se(i.line-1,a.length-1),i,"+transpose"))}r.push(new Ds(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return vn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Qr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},Ys=new ja,Gs=null,Vs=function(e,t,r){this.time=e,this.pos=t,this.button=r};Vs.prototype.compare=function(e,t,r){return this.time+400>e&&0==le(t,this.pos)&&r==this.button};var $s,Ks,Qs={toString:function(){return"CodeMirror.Init"}},Xs={},Zs={};$o.defaults=Xs,$o.optionHandlers=Zs;var Js=[];$o.defineInitHook=function(e){return Js.push(e)};var el=null,tl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ja,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tl.prototype.init=function(e){function t(e){if(!T(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ya),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var r=el.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var a=na(),s=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),s.value=el.text.join("\n");var l=document.activeElement;Pa(s),setTimeout(function(){i.display.lineSpace.removeChild(a),l.focus(),l==o&&n.showPrimarySelection()},50)}}var r=this,n=this,i=n.cm,o=n.div=e.lineDiv;ra(o,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),es(o,"paste",function(e){T(i,e)||Jo(e,i)||ya<=11&&setTimeout(An(i,function(){return r.updateFromDOM()}),20)}),es(o,"compositionstart",function(e){r.composing={data:e.data,done:!1}}),es(o,"compositionupdate",function(e){r.composing||(r.composing={data:e.data,done:!1})}),es(o,"compositionend",function(e){r.composing&&(e.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),es(o,"touchstart",function(){return n.forceCompositionEnd()}),es(o,"input",function(){r.composing||r.readFromDOMSoon()}),es(o,"copy",t),es(o,"cut",t)},tl.prototype.prepareSelection=function(){var e=Fr(this.cm,!1);return e.focus=this.cm.state.focused,e},tl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},tl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom)return void e.removeAllRanges();var o=ua(t,e.anchorNode,e.anchorOffset),a=ua(t,e.focusNode,e.focusOffset);if(!o||o.bad||!a||a.bad||0!=le(fe(o,a),n)||0!=le(de(o,a),i)){var s=t.display.view,l=n.line>=t.display.viewFrom&&aa(t,n)||{node:s[0].measure.map[2],offset:0},c=i.line<t.display.viewTo&&aa(t,i);if(!c){var u=s[s.length-1].measure,d=u.maps?u.maps[u.maps.length-1]:u.map;c={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(!l||!c)return void e.removeAllRanges();var f,m=e.rangeCount&&e.getRangeAt(0);try{f=Oa(l.node,l.offset,c.offset,c.node)}catch(e){}f&&(!ha&&t.state.focused?(e.collapse(l.node,l.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),m&&null==e.anchorNode?e.addRange(m):ha&&this.startGracePeriod()),this.rememberSelection()}},tl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},tl.prototype.showMultipleSelections=function(e){r(this.cm.display.cursorDiv,e.cursors),r(this.cm.display.selectionDiv,e.selection)},tl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},tl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},tl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},tl.prototype.blur=function(){this.div.blur()},tl.prototype.getField=function(){return this.div},tl.prototype.supportsTouch=function(){return!0},tl.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():vn(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},tl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},tl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(_a&&ka&&this.cm.display.gutterSpecs.length&&sa(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=ua(t,e.anchorNode,e.anchorOffset),n=ua(t,e.focusNode,e.focusOffset);r&&n&&vn(t,function(){xi(t.doc,qn(r,n),Ya),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},tl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(0==n.ch&&n.line>e.firstLine()&&(n=se(n.line-1,J(e.doc,n.line-1).length)),i.ch==J(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=se(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,s;n.line==t.viewFrom||0==(o=Mr(e,n.line))?(a=ne(t.view[0].line),s=t.view[0].node):(a=ne(t.view[o].line),s=t.view[o-1].node.nextSibling);var l,c,u=Mr(e,i.line);if(u==t.view.length-1?(l=t.viewTo-1,c=t.lineDiv.lastChild):(l=ne(t.view[u+1].line)-1,c=t.view[u+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(ca(e,s,c,a,l)),f=ee(e.doc,se(a,0),se(l,J(e.doc,l).text.length));d.length>1&&f.length>1;)if(h(d)==h(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),a++}for(var m=0,p=0,g=d[0],v=f[0],A=Math.min(g.length,v.length);m<A&&g.charCodeAt(m)==v.charCodeAt(m);)++m;for(var b=h(d),y=h(f),C=Math.min(b.length-(1==d.length?m:0),y.length-(1==f.length?m:0));p<C&&b.charCodeAt(b.length-p-1)==y.charCodeAt(y.length-p-1);)++p;if(1==d.length&&1==f.length&&a==n.line)for(;m&&m>n.ch&&b.charCodeAt(b.length-p-1)==y.charCodeAt(y.length-p-1);)m--,p++;d[d.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(m).replace(/\u200b+$/,"");var x=se(a,m),k=se(l,f.length?h(f).length-p:0);return d.length>1||d[0]||le(x,k)?(Wi(e.doc,d,x,k,"+input"),!0):void 0},tl.prototype.ensurePolled=function(){this.forceCompositionEnd()},tl.prototype.reset=function(){this.forceCompositionEnd()},tl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},tl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||vn(this.cm,function(){return Br(e.cm)})},tl.prototype.setUneditable=function(e){e.contentEditable="false"},tl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||An(this.cm,Zo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},tl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},tl.prototype.onContextMenu=function(){},tl.prototype.resetPosition=function(){},tl.prototype.needsContentAttribute=!0;var rl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ja,this.hasSelection=!1,this.composing=null};rl.prototype.init=function(e){function t(e){if(!T(i,e)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var t=ta(i);Xo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ya):(n.prevInput="",o.value=t.text.join("\n"),Pa(o))}"cut"==e.type&&(i.state.cutIncoming=+new Date)}}var r=this,n=this,i=this.cm;this.createField(e);var o=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),Ea&&(o.style.width="0px"),es(o,"input",function(){ba&&ya>=9&&r.hasSelection&&(r.hasSelection=null),n.poll()}),es(o,"paste",function(e){T(i,e)||Jo(e,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())}),es(o,"cut",t),es(o,"copy",t),es(e.scroller,"paste",function(t){if(!Ot(e,t)&&!T(i,t)){if(!o.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var r=new Event("paste");r.clipboardData=t.clipboardData,o.dispatchEvent(r)}}),es(e.lineSpace,"selectstart",function(t){Ot(e,t)||z(t)}),es(o,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),es(o,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},rl.prototype.createField=function(e){this.wrapper=na(),this.textarea=this.wrapper.firstChild},rl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Fr(e);if(e.options.moveInputWithCursor){var i=lr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},rl.prototype.showSelection=function(e){var t=this.cm,n=t.display;r(n.cursorDiv,e.cursors),r(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},rl.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&Pa(this.textarea),ba&&ya>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",ba&&ya>=9&&(this.hasSelection=null))}},rl.prototype.getField=function(){return this.textarea},rl.prototype.supportsTouch=function(){return!1},rl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!Da||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},rl.prototype.blur=function(){this.textarea.blur()},rl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},rl.prototype.receivedFocus=function(){this.slowPoll()},rl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},rl.prototype.fastPoll=function(){function e(){r.poll()||t?(r.pollingFast=!1,r.slowPoll()):(t=!0,r.polling.set(60,e))}var t=!1,r=this;r.pollingFast=!0,r.polling.set(20,e)},rl.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||ns(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(ba&&ya>=9&&this.hasSelection===i||La&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(n.length,i.length);a<s&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return vn(t,function(){Zo(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},rl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},rl.prototype.onKeyPress=function(){ba&&ya>=9&&(this.hasSelection=null),this.fastPoll()},rl.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,n.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function r(){if(n.contextMenuPending==r&&(n.contextMenuPending=!1,n.wrapper.style.cssText=u,a.style.cssText=c,ba&&ya<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=l),null!=a.selectionStart)){(!ba||ba&&ya<9)&&t();var e=0,s=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==n.prevInput?An(i,Di)(i):e++<10?o.detectingSelectAll=setTimeout(s,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(s,200)}}var n=this,i=n.cm,o=i.display,a=n.textarea;n.contextMenuPending&&n.contextMenuPending();var s=wr(i,e),l=o.scroller.scrollTop;if(s&&!wa){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(s)&&An(i,xi)(i.doc,qn(s),Ya);var c=a.style.cssText,u=n.wrapper.style.cssText,d=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",a.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+"px;\n      z-index: 1000; background: "+(ba?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(Ca&&(f=window.scrollY),o.input.focus(),Ca&&window.scrollTo(null,f),o.input.reset(),i.somethingSelected()||(a.value=n.prevInput=" "),n.contextMenuPending=r,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),ba&&ya>=9&&t(),Ia){P(e);var m=function(){D(window,"mouseup",m),setTimeout(r,20)};es(window,"mouseup",m)}else setTimeout(r,50)}},rl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},rl.prototype.setUneditable=function(){},rl.prototype.needsContentAttribute=!1,function(e){function t(t,n,i,o){e.defaults[t]=n,i&&(r[t]=o?function(e,t,r){r!=Qs&&i(e,t,r)}:i)}var r=e.optionHandlers;e.defineOption=t,e.Init=Qs,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,$n(e)},!0),t("indentUnit",2,$n,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Kn(e),tr(e),Br(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(se(n,o))}n++});for(var i=r.length-1;i>=0;i--)Wi(e.doc,t,r[i],se(r[i].line,r[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Qs&&e.refresh()}),t("specialCharPlaceholder",ct,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",Da?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),t("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),t("rtlMoveVisually",!Fa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Yo(e),zn(e)},!0),t("keyMap","default",function(e,t,r){var n=mo(t),i=r!=Qs&&mo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Vo,!0),t("gutters",[],function(e,t){e.display.gutterSpecs=Nn(t,e.options.lineNumbers),zn(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Cr(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return an(e)},!0),t("scrollbarStyle","native",function(e){ln(e),an(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Nn(e.options.gutters,t),zn(e)},!0),t("firstLineNumber",1,zn,!0),t("lineNumberFormatter",function(e){return e},zn,!0),t("showCursorWhenSelecting",!1,Tr,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("selectionsMayTouch",!1),t("readOnly",!1,function(e,t){"nocursor"==t&&(Hr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Go),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Tr,!0),t("singleCursorHeightPerLine",!0,Tr,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Kn,!0),t("addModeClass",!1,Kn,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Kn,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),t("phrases",null)}($o),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&An(this,t[e])(this,r,i),L(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"](mo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:bn(function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");v(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,Br(this)}),removeOverlay:bn(function(e){for(var t=this.state.overlays,r=0;r<t.length;++r){var n=t[r].modeSpec;if(n==e||"string"==typeof e&&n.name==e)return t.splice(r,1),this.state.modeGen++,void Br(this)}}),indentLine:bn(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),oe(this.doc,e)&&Qo(this,e,t,r)}),indentSelection:bn(function(e){for(var t=this.doc.sel.ranges,r=-1,n=0;n<t.length;n++){var i=t[n];if(i.empty())i.head.line>r&&(Qo(this,i.head.line,e,!0),r=i.head.line,n==this.doc.sel.primIndex&&Qr(this));else{var o=i.from(),a=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<r;++l)Qo(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[n].from().ch>0&&Ai(this.doc,n,new Ds(o,c[n].to()),Ya)}}}),getTokenAt:function(e,t){return ke(this,e,t)},getLineTokens:function(e,t){return ke(this,se(e),t,!0)},getTokenTypeAt:function(e){e=pe(this.doc,e);var t,r=Ae(this,J(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var a=n+i>>1;if((a?r[2*a-1]:0)>=o)i=a;else{if(!(r[2*a+1]<o)){t=r[2*a+2];break}n=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!r.hasOwnProperty(t))return n;var i=r[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&n.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&n.push(s)}else o.helperType&&i[o.helperType]?n.push(i[o.helperType]):i[o.name]&&n.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==f(n,c.val)&&n.push(c.val)}return n},getStateAfter:function(e,t){var r=this.doc;return e=me(r,null==e?r.first+r.size-1:e),be(this,e+1,t).state},cursorCoords:function(e,t){var r,n=this.doc.sel.primary();return r=null==e?n.head:"object"==typeof e?pe(this.doc,e):e?n.from():n.to(),lr(this,r,t||"page")},charCoords:function(e,t){return sr(this,pe(this.doc,e),t||"page")},coordsChar:function(e,t){return e=ar(this,e,t||"page"),dr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=ar(this,{top:e,left:0},t||"page").top,ie(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),n=J(this.doc,e)}else n=e;return or(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-rt(n):0)},defaultTextHeight:function(){return Ar(this.display)},defaultCharWidth:function(){return br(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display;e=lr(this,pe(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)a=e.top;else if("above"==n||"near"==n){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&Vr(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:bn(Eo),triggerOnKeyPress:bn(Lo),triggerOnKeyUp:Do,triggerOnMouseDown:bn(Fo),execCommand:function(e){if(Us.hasOwnProperty(e))return Us[e].call(null,this)},triggerElectric:bn(function(e){ea(this,e)}),findPosH:function(e,t,r,n){var i=1;t<0&&(i=-1,t=-t);for(var o=pe(this.doc,e),a=0;a<t&&(o=ia(this.doc,o,i,r,n),!o.hitSide);++a);return o},moveH:bn(function(e,t){var r=this;this.extendSelectionsBy(function(n){return r.display.shift||r.doc.extend||n.empty()?ia(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()},Va)}),deleteH:bn(function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):po(this,function(r){var i=ia(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(e,t,r,n){var i=1,o=n;t<0&&(i=-1,t=-t);for(var a=pe(this.doc,e),s=0;s<t;++s){var l=lr(this,a,"div");if(null==o?o=l.left:l.left=o,a=oa(this,l,i,r),a.hitSide)break}return a},moveV:bn(function(e,t){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=lr(r,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=oa(r,s,e,t);return"page"==t&&a==n.sel.primary()&&Kr(r,sr(r,l,"div").top-s.top),l},Va),i.length)for(var a=0;a<n.sel.ranges.length;a++)n.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,r=J(t,e.line).text,n=e.ch,i=e.ch;if(r){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=r.length||!n?++i:--n;for(var a=r.charAt(n),s=C(a,o)?function(e){return C(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!C(e)};n>0&&s(r.charAt(n-1));)--n;for(;i<r.length&&s(r.charAt(i));)++i}return new Ds(se(e.line,n),se(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):Wa(this.display.cursorDiv,"CodeMirror-overwrite"),L(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==a()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:bn(function(e,t){Xr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Pt(this)-this.display.barHeight,width:e.scrollWidth-Pt(this)-this.display.barWidth,clientHeight:Ht(this),clientWidth:jt(this)}},scrollIntoView:bn(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:se(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Zr(this,e):en(this,e.from,e.to,e.margin)}),setSize:bn(function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&er(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){Sr(r,i,"widget");break}++i}),this.curOp.forceUpdate=!0,L(this,"refresh",this)}),operation:function(e){return vn(this,e)},startOperation:function(){return cn(this)},endOperation:function(){return un(this)},refresh:bn(function(){var e=this.display.cachedTextHeight;Br(this),this.curOp.forceUpdate=!0,tr(this),Xr(this,this.doc.scrollLeft,this.doc.scrollTop),Dn(this.display),(null==e||Math.abs(e-Ar(this.display))>.5)&&kr(this),L(this,"refresh",this)}),swapDoc:bn(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Jn(this,e),tr(this),this.display.input.reset(),Xr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,yt(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},O(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}($o);var nl="iter insert remove copy getEditor constructor".split(" ");for(var il in zs.prototype)zs.prototype.hasOwnProperty(il)&&f(nl,il)<0&&($o.prototype[il]=function(e){return function(){return e.apply(this.doc,arguments)}}(zs.prototype[il]));return O(zs),$o.inputStyles={textarea:rl,contenteditable:tl},$o.defineMode=function(e){$o.defaults.mode||"null"==e||($o.defaults.mode=e),Y.apply(this,arguments)},$o.defineMIME=G,$o.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),$o.defineMIME("text/plain","null"),$o.defineExtension=function(e,t){$o.prototype[e]=t},$o.defineDocExtension=function(e,t){zs.prototype[e]=t},$o.fromTextArea=fa,function(e){e.off=D,e.on=es,e.wheelEventPixels=Pn,e.Doc=zs,e.splitLines=rs,e.countColumn=d,e.findColumn=m,e.isWordChar=y,e.Pass=Ua,e.signal=L,e.Line=hs,e.changeEnd=Rn,e.scrollbarModel=ws,e.Pos=se,e.cmpPos=le,e.modes=as,e.mimeModes=ss,e.resolveMode=V,e.getMode=$,e.modeExtensions=ls,e.extendMode=K,e.copyState=Q,e.startState=Z,e.innerMode=X,e.commands=Us,e.keyMap=Rs,e.keyName=fo,e.isModifierKey=co,e.lookupKey=lo,e.normalizeKeyMap=so,e.StringStream=cs,e.SharedTextMarker=Ns,e.TextMarker=Fs,e.LineWidget=Ls,e.e_preventDefault=z,e.e_stopPropagation=I,e.e_stop=P,e.addClass=s,e.contains=o,e.rmClass=Wa,e.keyNames=Ps}($o),$o.version="5.50.2",$o})},1015:function(e,t,r){"use strict";var n=r(2),i=r(1016);if("undefined"===typeof n)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new n.Component).updater;e.exports=i(n.Component,n.isValidElement,o)},1016:function(e,t,r){"use strict";function n(e){return e}function i(e,t,r){function i(e,t){var r=A.hasOwnProperty(t)?A[t]:null;k.hasOwnProperty(t)&&s("OVERRIDE_BASE"===r,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===r||"DEFINE_MANY_MERGED"===r,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function c(e,r){if(r){s("function"!==typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var n=e.prototype,o=n.__reactAutoBindPairs;r.hasOwnProperty(l)&&y.mixins(e,r.mixins);for(var a in r)if(r.hasOwnProperty(a)&&a!==l){var c=r[a],u=n.hasOwnProperty(a);if(i(u,a),y.hasOwnProperty(a))y[a](e,c);else{var d=A.hasOwnProperty(a),p="function"===typeof c,h=p&&!d&&!u&&!1!==r.autobind;if(h)o.push(a,c),n[a]=c;else if(u){var g=A[a];s(d&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?n[a]=f(n[a],c):"DEFINE_MANY"===g&&(n[a]=m(n[a],c))}else n[a]=c}}}else;}function u(e,t){if(t)for(var r in t){var n=t[r];if(t.hasOwnProperty(r)){var i=r in y;s(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',r);var o=r in e;if(o){var a=b.hasOwnProperty(r)?b[r]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",r),void(e[r]=f(e[r],n))}e[r]=n}}}function d(e,t){s(e&&t&&"object"===typeof e&&"object"===typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var r in t)t.hasOwnProperty(r)&&(s(void 0===e[r],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",r),e[r]=t[r]);return e}function f(e,t){return function(){var r=e.apply(this,arguments),n=t.apply(this,arguments);if(null==r)return n;if(null==n)return r;var i={};return d(i,r),d(i,n),i}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var r=t.bind(e);return r}function h(e){for(var t=e.__reactAutoBindPairs,r=0;r<t.length;r+=2){var n=t[r],i=t[r+1];e[n]=p(e,i)}}function g(e){var t=n(function(e,n,i){this.__reactAutoBindPairs.length&&h(this),this.props=e,this.context=n,this.refs=a,this.updater=i||r,this.state=null;var o=this.getInitialState?this.getInitialState():null;s("object"===typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],v.forEach(c.bind(null,t)),c(t,C),c(t,e),c(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var i in A)t.prototype[i]||(t.prototype[i]=null);return t}var v=[],A={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},y={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var r=0;r<t.length;r++)c(e,t[r])},childContextTypes:function(e,t){e.childContextTypes=o({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=o({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=o({},e.propTypes,t)},statics:function(e,t){u(e,t)},autobind:function(){}},C={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},k={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},w=function(){};return o(w.prototype,e.prototype,k),g}var o=r(84),a=r(1017),s=r(1018),l="mixins";e.exports=i},1017:function(e,t,r){"use strict";var n={};e.exports=n},1018:function(e,t,r){"use strict";function n(e,t,r,n,o,a,s,l){if(i(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,a,s,l],d=0;c=new Error(t.replace(/%s/g,function(){return u[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(e){};e.exports=n},1104:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(t,i,o,a){function s(e){var r=l(t,i);if(!r||r.to.line-r.from.line<c)return null;for(var n=t.findMarksAt(r.from),o=0;o<n.length;++o)if(n[o].__isFold&&"fold"!==a){if(!e)return null;r.cleared=!0,n[o].clear()}return r}if(o&&o.call){var l=o;o=null}else var l=n(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var c=n(t,o,"minFoldSize"),u=s(!0);if(n(t,o,"scanUp"))for(;!u&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),u=s(!1);if(u&&!u.cleared&&"unfold"!==a){var d=r(t,o,u);e.on(d,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(u.from,u.to,{replacedWith:d,clearOnEnter:n(t,o,"clearOnEnter"),__isFold:!0});f.on("clear",function(r,n){e.signal(t,"unfold",t,r,n)}),e.signal(t,"fold",t,u.from,u.to)}}function r(e,t,r){var i=n(e,t,"widget");if("function"==typeof i&&(i=i(r.from,r.to)),"string"==typeof i){var o=document.createTextNode(i);i=document.createElement("span"),i.appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}function n(e,t,r){if(t&&void 0!==t[r])return t[r];var n=e.options.foldOptions;return n&&void 0!==n[r]?n[r]:i[r]}e.newFoldFunction=function(e,r){return function(n,i){t(n,i,{rangeFinder:e,widget:r})}},e.defineExtension("foldCode",function(e,r,n){t(this,e,r,n)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),r=0;r<t.length;++r)if(t[r].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var r=t.firstLine(),n=t.lastLine();r<=n;r++)t.foldCode(e.Pos(r,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var r=t.firstLine(),n=t.lastLine();r<=n;r++)t.foldCode(e.Pos(r,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,r){for(var n=0;n<e.length;++n){var i=e[n](t,r);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var r=e.getHelpers(t,"fold"),n=0;n<r.length;n++){var i=r[n](e,t);if(i)return i}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return n(this,e,t)})})},1276:function(e,t,r){(function(e,r){function n(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function i(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function o(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function a(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function s(e,t){return e.has(t)}function l(e,t){return null==e?void 0:e[t]}function c(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function u(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function d(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function f(){this.__data__=wt?wt(null):{},this.size=0}function m(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function p(e){var t=this.__data__;if(wt){var r=t[e];return r===Ae?void 0:r}return at.call(t,e)?t[e]:void 0}function h(e){var t=this.__data__;return wt?void 0!==t[e]:at.call(t,e)}function g(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=wt&&void 0===t?Ae:t,this}function v(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function A(){this.__data__=[],this.size=0}function b(e){var t=this.__data__,r=P(t,e);return!(r<0)&&(r==t.length-1?t.pop():pt.call(t,r,1),--this.size,!0)}function y(e){var t=this.__data__,r=P(t,e);return r<0?void 0:t[r][1]}function C(e){return P(this.__data__,e)>-1}function x(e,t){var r=this.__data__,n=P(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function k(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function w(){this.size=0,this.__data__={hash:new d,map:new(yt||v),string:new d}}function M(e){var t=Z(this,e).delete(e);return this.size-=t?1:0,t}function B(e){return Z(this,e).get(e)}function S(e){return Z(this,e).has(e)}function E(e,t){var r=Z(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function _(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new k;++t<r;)this.add(e[t])}function D(e){return this.__data__.set(e,Ae),this}function L(e){return this.__data__.has(e)}function T(e){var t=this.__data__=new v(e);this.size=t.size}function F(){this.__data__=new v,this.size=0}function N(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function O(e){return this.__data__.get(e)}function z(e){return this.__data__.has(e)}function I(e,t){var r=this.__data__;if(r instanceof v){var n=r.__data__;if(!yt||n.length<ve-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new k(n)}return r.set(e,t),this.size=r.size,this}function W(e,t){var r=Ot(e),n=!r&&Nt(e),i=!r&&!n&&zt(e),o=!r&&!n&&!i&&It(e),s=r||n||i||o,l=s?a(e.length,String):[],c=l.length;for(var u in e)!t&&!at.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||te(u,c))||l.push(u);return l}function P(e,t){for(var r=e.length;r--;)if(se(e[r][0],t))return r;return-1}function j(e,t,r){var n=t(e);return Ot(e)?n:i(n,r(e))}function H(e){return null==e?void 0===e?Pe:Te:ht&&ht in Object(e)?ee(e):oe(e)}function q(e){return me(e)&&H(e)==xe}function R(e,t,r,n,i){return e===t||(null==e||null==t||!me(e)&&!me(t)?e!==e&&t!==t:U(e,t,r,n,R,i))}function U(e,t,r,n,i,o){var a=Ot(e),s=Ot(t),l=a?ke:Ft(e),c=s?ke:Ft(t);l=l==xe?Fe:l,c=c==xe?Fe:c;var u=l==Fe,d=c==Fe,f=l==c;if(f&&zt(e)){if(!zt(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new T),a||It(e)?$(e,t,r,n,i,o):K(e,t,l,r,n,i,o);if(!(r&be)){var m=u&&at.call(e,"__wrapped__"),p=d&&at.call(t,"__wrapped__");if(m||p){var h=m?e.value():e,g=p?t.value():t;return o||(o=new T),i(h,g,r,n,o)}}return!!f&&(o||(o=new T),Q(e,t,r,n,i,o))}function Y(e){return!(!fe(e)||ne(e))&&(ue(e)?ct:Re).test(ae(e))}function G(e){return me(e)&&de(e.length)&&!!Ye[H(e)]}function V(e){if(!ie(e))return At(e);var t=[];for(var r in Object(e))at.call(e,r)&&"constructor"!=r&&t.push(r);return t}function $(e,t,r,n,i,a){var l=r&be,c=e.length,u=t.length;if(c!=u&&!(l&&u>c))return!1;var d=a.get(e);if(d&&a.get(t))return d==t;var f=-1,m=!0,p=r&ye?new _:void 0;for(a.set(e,t),a.set(t,e);++f<c;){var h=e[f],g=t[f];if(n)var v=l?n(g,h,f,t,e,a):n(h,g,f,e,t,a);if(void 0!==v){if(v)continue;m=!1;break}if(p){if(!o(t,function(e,t){if(!s(p,t)&&(h===e||i(h,e,r,n,a)))return p.push(t)})){m=!1;break}}else if(h!==g&&!i(h,g,r,n,a)){m=!1;break}}return a.delete(e),a.delete(t),m}function K(e,t,r,n,i,o,a){switch(r){case He:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case je:return!(e.byteLength!=t.byteLength||!o(new ft(e),new ft(t)));case Me:case Be:case Le:return se(+e,+t);case Se:return e.name==t.name&&e.message==t.message;case Oe:case Ie:return e==t+"";case De:var s=c;case ze:var l=n&be;if(s||(s=u),e.size!=t.size&&!l)return!1;var d=a.get(e);if(d)return d==t;n|=ye,a.set(e,t);var f=$(s(e),s(t),n,i,o,a);return a.delete(e),f;case We:if(Lt)return Lt.call(e)==Lt.call(t)}return!1}function Q(e,t,r,n,i,o){var a=r&be,s=X(e),l=s.length;if(l!=X(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:at.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var m=a;++c<l;){u=s[c];var p=e[u],h=t[u];if(n)var g=a?n(h,p,u,t,e,o):n(p,h,u,e,t,o);if(!(void 0===g?p===h||i(p,h,r,n,o):g)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var v=e.constructor,A=t.constructor;v!=A&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A)&&(f=!1)}return o.delete(e),o.delete(t),f}function X(e){return j(e,pe,Tt)}function Z(e,t){var r=e.__data__;return re(t)?r["string"==typeof t?"string":"hash"]:r.map}function J(e,t){var r=l(e,t);return Y(r)?r:void 0}function ee(e){var t=at.call(e,ht),r=e[ht];try{e[ht]=void 0;var n=!0}catch(e){}var i=lt.call(e);return n&&(t?e[ht]=r:delete e[ht]),i}function te(e,t){return!!(t=null==t?Ce:t)&&("number"==typeof e||Ue.test(e))&&e>-1&&e%1==0&&e<t}function re(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ne(e){return!!st&&st in e}function ie(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||nt)}function oe(e){return lt.call(e)}function ae(e){if(null!=e){try{return ot.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function se(e,t){return e===t||e!==e&&t!==t}function le(e){return null!=e&&de(e.length)&&!ue(e)}function ce(e,t){return R(e,t)}function ue(e){if(!fe(e))return!1;var t=H(e);return t==Ee||t==_e||t==we||t==Ne}function de(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ce}function fe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function me(e){return null!=e&&"object"==typeof e}function pe(e){return le(e)?W(e):V(e)}function he(){return[]}function ge(){return!1}var ve=200,Ae="__lodash_hash_undefined__",be=1,ye=2,Ce=9007199254740991,xe="[object Arguments]",ke="[object Array]",we="[object AsyncFunction]",Me="[object Boolean]",Be="[object Date]",Se="[object Error]",Ee="[object Function]",_e="[object GeneratorFunction]",De="[object Map]",Le="[object Number]",Te="[object Null]",Fe="[object Object]",Ne="[object Proxy]",Oe="[object RegExp]",ze="[object Set]",Ie="[object String]",We="[object Symbol]",Pe="[object Undefined]",je="[object ArrayBuffer]",He="[object DataView]",qe=/[\\^$.*+?()[\]{}|]/g,Re=/^\[object .+?Constructor\]$/,Ue=/^(?:0|[1-9]\d*)$/,Ye={};Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye[xe]=Ye[ke]=Ye[je]=Ye[Me]=Ye[He]=Ye[Be]=Ye[Se]=Ye[Ee]=Ye[De]=Ye[Le]=Ye[Fe]=Ye[Oe]=Ye[ze]=Ye[Ie]=Ye["[object WeakMap]"]=!1;var Ge="object"==typeof e&&e&&e.Object===Object&&e,Ve="object"==typeof self&&self&&self.Object===Object&&self,$e=Ge||Ve||Function("return this")(),Ke="object"==typeof t&&t&&!t.nodeType&&t,Qe=Ke&&"object"==typeof r&&r&&!r.nodeType&&r,Xe=Qe&&Qe.exports===Ke,Ze=Xe&&Ge.process,Je=function(){try{return Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),et=Je&&Je.isTypedArray,tt=Array.prototype,rt=Function.prototype,nt=Object.prototype,it=$e["__core-js_shared__"],ot=rt.toString,at=nt.hasOwnProperty,st=function(){var e=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),lt=nt.toString,ct=RegExp("^"+ot.call(at).replace(qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Xe?$e.Buffer:void 0,dt=$e.Symbol,ft=$e.Uint8Array,mt=nt.propertyIsEnumerable,pt=tt.splice,ht=dt?dt.toStringTag:void 0,gt=Object.getOwnPropertySymbols,vt=ut?ut.isBuffer:void 0,At=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),bt=J($e,"DataView"),yt=J($e,"Map"),Ct=J($e,"Promise"),xt=J($e,"Set"),kt=J($e,"WeakMap"),wt=J(Object,"create"),Mt=ae(bt),Bt=ae(yt),St=ae(Ct),Et=ae(xt),_t=ae(kt),Dt=dt?dt.prototype:void 0,Lt=Dt?Dt.valueOf:void 0;d.prototype.clear=f,d.prototype.delete=m,d.prototype.get=p,d.prototype.has=h,d.prototype.set=g,v.prototype.clear=A,v.prototype.delete=b,v.prototype.get=y,v.prototype.has=C,v.prototype.set=x,k.prototype.clear=w,k.prototype.delete=M,k.prototype.get=B,k.prototype.has=S,k.prototype.set=E,_.prototype.add=_.prototype.push=D,_.prototype.has=L,T.prototype.clear=F,T.prototype.delete=N,T.prototype.get=O,T.prototype.has=z,T.prototype.set=I;var Tt=gt?function(e){return null==e?[]:(e=Object(e),n(gt(e),function(t){return mt.call(e,t)}))}:he,Ft=H;(bt&&Ft(new bt(new ArrayBuffer(1)))!=He||yt&&Ft(new yt)!=De||Ct&&"[object Promise]"!=Ft(Ct.resolve())||xt&&Ft(new xt)!=ze||kt&&"[object WeakMap]"!=Ft(new kt))&&(Ft=function(e){var t=H(e),r=t==Fe?e.constructor:void 0,n=r?ae(r):"";if(n)switch(n){case Mt:return He;case Bt:return De;case St:return"[object Promise]";case Et:return ze;case _t:return"[object WeakMap]"}return t});var Nt=q(function(){return arguments}())?q:function(e){return me(e)&&at.call(e,"callee")&&!mt.call(e,"callee")},Ot=Array.isArray,zt=vt||ge,It=et?function(e){return function(t){return e(t)}}(et):G;r.exports=ce}).call(t,r(40),r(107)(e))},1277:function(e,t,r){var n=r(1278);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1278:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-webkit-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}',"",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/lib/codemirror.css"],names:[],mappings:"AAEA,YAEE,sBAAuB,AACvB,aAAc,AACd,WAAa,AACb,aAAe,CAChB,AAID,kBACE,aAAe,CAChB,AACD,qEAEE,aAAe,CAChB,AAED,uDACE,qBAAwB,CACzB,AAID,oBACE,4BAA6B,AAC7B,yBAA0B,AAC1B,kBAAoB,CACrB,AAED,uBACE,oBAAqB,AACrB,eAAgB,AAChB,iBAAkB,AAClB,WAAY,AACZ,kBAAoB,CACrB,AAED,yBAA2B,UAAa,CAAE,AAC1C,gCAAkC,UAAY,CAAE,AAIhD,mBACE,2BAA6B,AAC7B,kBAAmB,AACnB,OAAS,CACV,AAED,2CACE,4BAA8B,CAC/B,AACD,kCACE,WAAY,AACZ,mBAAqB,AACrB,eAAiB,CAClB,AACD,sCACE,SAAW,CACZ,AACD,oBACE,mCAAyC,CAG1C,AACD,2CAHE,gDAAiD,AACjD,uCAAyC,CAQ1C,AAND,uBACE,WAAY,AACZ,SAAU,AAGV,qBAAuB,CACxB,AACD,yBAEE,IAAM,4BAA8B,CAAE,CAEvC,AACD,iBAEE,IAAM,4BAA8B,CAAE,CAEvC,AAKD,QAAU,qBAAsB,AAAC,uBAAyB,CAAE,AAE5D,mBACE,kBAAmB,AACnB,OAAQ,AAAC,QAAS,AAAC,UAAW,AAAC,SAAU,AACzC,eAAiB,CAClB,AACD,kBACE,2BAA4B,AAC5B,MAAO,AAAC,SAAU,AAClB,iBAAmB,CACpB,AAID,yBAA0B,UAAY,CAAC,AACvC,wBAAyB,UAAY,CAAC,AACtC,aAAc,UAAY,CAAC,AAC3B,aAAc,UAAY,CAAC,AAC3B,sBAAwB,eAAkB,CAAC,AAC3C,OAAQ,iBAAmB,CAAC,AAC5B,SAAU,yBAA2B,CAAC,AACtC,kBAAmB,4BAA8B,CAAC,AAElD,0BAA2B,UAAY,CAAC,AACxC,uBAAwB,UAAY,CAAC,AACrC,yBAA0B,UAAY,CAAC,AACvC,sBAAuB,UAAY,CAAC,AAKpC,6BAA8B,UAAY,CAAC,AAC3C,oDAAsD,UAAY,CAAC,AACnE,0BAA2B,UAAY,CAAC,AACxC,yBAA0B,UAAY,CAAC,AACvC,2BAA4B,UAAY,CAAC,AAEzC,mDAA6B,UAAY,CAAC,AAC1C,0BAA2B,UAAY,CAAC,AACxC,0BAA2B,UAAY,CAAC,AACxC,sBAAuB,UAAY,CAAC,AACpC,4BAA6B,UAAY,CAAC,AAC1C,qBAAsB,UAAY,CAAC,AACnC,uBAAwB,UAAY,CAAC,AAGrC,wCAAiB,SAAY,CAAC,AAE9B,sBAAwB,uBAAyB,CAAE,AAInD,+CAAgD,UAAY,CAAC,AAC7D,kDAAmD,UAAY,CAAC,AAChE,wBAA0B,6BAAkC,CAAE,AAC9D,kCAAmC,kBAAoB,CAAC,AAOxD,YACE,kBAAmB,AACnB,gBAAiB,AACjB,eAAkB,CACnB,AAED,mBACE,0BAA4B,AAG5B,oBAAqB,AAAC,mBAAoB,AAC1C,oBAAqB,AACrB,YAAa,AACb,aAAc,AACd,iBAAmB,CACpB,AACD,kBACE,kBAAmB,AACnB,mCAAqC,CACtC,AAKD,qGACE,kBAAmB,AACnB,UAAW,AACX,YAAc,CACf,AACD,uBACE,QAAS,AAAC,MAAO,AACjB,kBAAmB,AACnB,iBAAmB,CACpB,AACD,uBACE,SAAU,AAAC,OAAQ,AACnB,kBAAmB,AACnB,iBAAmB,CACpB,AACD,6BACE,QAAS,AAAC,QAAU,CACrB,AACD,0BACE,OAAQ,AAAC,QAAU,CACpB,AAED,oBACE,kBAAmB,AAAC,OAAQ,AAAC,MAAO,AACpC,gBAAiB,AACjB,SAAW,CACZ,AACD,mBACE,mBAAoB,AACpB,YAAa,AACb,qBAAsB,AACtB,mBAAoB,AACpB,mBAAqB,CACtB,AACD,2BACE,kBAAmB,AACnB,UAAW,AACX,0BAA4B,AAC5B,qBAAwB,CACzB,AACD,8BACE,kBAAmB,AACnB,MAAO,AAAC,SAAU,AAClB,SAAW,CACZ,AACD,uBACE,kBAAmB,AACnB,eAAgB,AAChB,SAAW,CACZ,AAED,uCAAyC,4BAA6B,CAAE,AACxE,4CAA8C,4BAA6B,CAAE,AAE7E,kBACE,YAAa,AACb,cAAgB,CACjB,AACD,qEAEmE,gBAAiB,AAClF,eAAgB,AAChB,uBAAwB,AACxB,oBAAqB,AACrB,kBAAmB,AACnB,SAAU,AACV,gBAAiB,AACjB,iBAAkB,AAClB,oBAAqB,AACrB,cAAe,AACf,UAAW,AACX,kBAAmB,AACnB,iBAAkB,AAClB,wCAAyC,AACzC,0CAA2C,AAC3C,iCAAmC,CACpC,AACD,+EAEE,qBAAsB,AACtB,qBAAsB,AACtB,iBAAmB,CACpB,AAED,2BACE,kBAAmB,AACnB,OAAQ,AAAC,QAAS,AAAC,MAAO,AAAC,SAAU,AACrC,SAAW,CACZ,AAED,uBACE,kBAAmB,AACnB,UAAW,AACX,YAAe,CAChB,AAID,oBAAsB,aAAe,CAAE,AAEvC,iBACE,YAAc,CACf,AAGD,mGAKE,+BAAgC,AACxB,sBAAwB,CACjC,AAED,oBACE,kBAAmB,AACnB,WAAY,AACZ,SAAU,AACV,gBAAiB,AACjB,iBAAmB,CACpB,AAED,mBACE,kBAAmB,AACnB,mBAAqB,CACtB,AACD,wBAA0B,eAAiB,CAAE,AAE7C,uBACE,kBAAmB,AACnB,kBAAmB,AACnB,SAAW,CACZ,AAKD,sEACE,kBAAoB,CACrB,AAED,qBAAuB,kBAAoB,CAAE,AAC7C,yCAA2C,kBAAoB,CAAE,AACjE,sBAAwB,gBAAkB,CAAE,AAE5C,mGAA6G,kBAAoB,CAAE,AACnI,kHAA4H,kBAAoB,CAAE,AAElJ,cACE,sBAAuB,AACvB,mCAAwC,CACzC,AAGD,iBAAmB,kBAAoB,CAAE,AAEzC,aAEE,mCACE,iBAAmB,CACpB,CACF,AAGD,wBAA0B,UAAY,CAAE,AAGxC,6BAA+B,eAAiB,CAAE",file:"codemirror.css",sourcesContent:["/* BASICS */\n\n.CodeMirror {\n  /* Set height, width, borders, and global font properties here */\n  font-family: monospace;\n  height: 300px;\n  color: black;\n  direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n  padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n  padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n  background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n  border-right: 1px solid #ddd;\n  background-color: #f7f7f7;\n  white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n  padding: 0 3px 0 5px;\n  min-width: 20px;\n  text-align: right;\n  color: #999;\n  white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n  border-left: 1px solid black;\n  border-right: none;\n  width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n  border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n  width: auto;\n  border: 0 !important;\n  background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n  z-index: 1;\n}\n.cm-fat-cursor-mark {\n  background-color: rgba(20, 255, 20, 0.5);\n  -webkit-animation: blink 1.06s steps(1) infinite;\n  animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n  width: auto;\n  border: 0;\n  -webkit-animation: blink 1.06s steps(1) infinite;\n  animation: blink 1.06s steps(1) infinite;\n  background-color: #7e7;\n}\n@-webkit-keyframes blink {\n  0% {}\n  50% { background-color: transparent; }\n  100% {}\n}\n@keyframes blink {\n  0% {}\n  50% { background-color: transparent; }\n  100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n  position: absolute;\n  left: 0; right: 0; top: -50px; bottom: 0;\n  overflow: hidden;\n}\n.CodeMirror-ruler {\n  border-left: 1px solid #ccc;\n  top: 0; bottom: 0;\n  position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n   the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n  position: relative;\n  overflow: hidden;\n  background: white;\n}\n\n.CodeMirror-scroll {\n  overflow: scroll !important; /* Things will break if this is overridden */\n  /* 30px is the magic margin used to hide the element's real scrollbars */\n  /* See overflow: hidden in .CodeMirror */\n  margin-bottom: -30px; margin-right: -30px;\n  padding-bottom: 30px;\n  height: 100%;\n  outline: none; /* Prevent dragging from highlighting the element */\n  position: relative;\n}\n.CodeMirror-sizer {\n  position: relative;\n  border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n   before actual scrolling happens, thus preventing shaking and\n   flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n  position: absolute;\n  z-index: 6;\n  display: none;\n}\n.CodeMirror-vscrollbar {\n  right: 0; top: 0;\n  overflow-x: hidden;\n  overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n  bottom: 0; left: 0;\n  overflow-y: hidden;\n  overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n  right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n  left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n  position: absolute; left: 0; top: 0;\n  min-height: 100%;\n  z-index: 3;\n}\n.CodeMirror-gutter {\n  white-space: normal;\n  height: 100%;\n  display: inline-block;\n  vertical-align: top;\n  margin-bottom: -30px;\n}\n.CodeMirror-gutter-wrapper {\n  position: absolute;\n  z-index: 4;\n  background: none !important;\n  border: none !important;\n}\n.CodeMirror-gutter-background {\n  position: absolute;\n  top: 0; bottom: 0;\n  z-index: 4;\n}\n.CodeMirror-gutter-elt {\n  position: absolute;\n  cursor: default;\n  z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n  cursor: text;\n  min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n  /* Reset some styles that the rest of the page might have set */ border-radius: 0;\n  border-width: 0;\n  background: transparent;\n  font-family: inherit;\n  font-size: inherit;\n  margin: 0;\n  white-space: pre;\n  word-wrap: normal;\n  line-height: inherit;\n  color: inherit;\n  z-index: 2;\n  position: relative;\n  overflow: visible;\n  -webkit-tap-highlight-color: transparent;\n  -webkit-font-variant-ligatures: contextual;\n  font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  word-break: normal;\n}\n\n.CodeMirror-linebackground {\n  position: absolute;\n  left: 0; right: 0; top: 0; bottom: 0;\n  z-index: 0;\n}\n\n.CodeMirror-linewidget {\n  position: relative;\n  z-index: 2;\n  padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n  outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n  -webkit-box-sizing: content-box;\n          box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n  position: absolute;\n  width: 100%;\n  height: 0;\n  overflow: hidden;\n  visibility: hidden;\n}\n\n.CodeMirror-cursor {\n  position: absolute;\n  pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n  visibility: hidden;\n  position: relative;\n  z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n  visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n  visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n  background-color: #ffa;\n  background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n  /* Hide the cursor when printing */\n  .CodeMirror div.CodeMirror-cursors {\n    visibility: hidden;\n  }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n"],sourceRoot:""}])},1279:function(e,t,r){var n=r(1280);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1280:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/addon/hint/show-hint.css"],names:[],mappings:"AAAA,kBACE,kBAAmB,AACnB,WAAY,AACZ,gBAAiB,AACjB,gBAAiB,AAEjB,SAAU,AACV,YAAa,AAEb,8CAA+C,AAC/C,sCAAuC,AACvC,kBAAmB,AACnB,wBAAyB,AAEzB,gBAAkB,AAClB,cAAe,AACf,sBAAuB,AAEvB,gBAAiB,AACjB,eAAiB,CAClB,AAED,iBACE,SAAU,AACV,cAAe,AACf,kBAAmB,AACnB,gBAAiB,AACjB,WAAa,AACb,cAAgB,CACjB,AAED,0BACE,gBAAiB,AACjB,UAAa,CACd",file:"show-hint.css",sourcesContent:[".CodeMirror-hints {\n  position: absolute;\n  z-index: 10;\n  overflow: hidden;\n  list-style: none;\n\n  margin: 0;\n  padding: 2px;\n\n  -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n  box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n  border-radius: 3px;\n  border: 1px solid silver;\n\n  background: white;\n  font-size: 90%;\n  font-family: monospace;\n\n  max-height: 20em;\n  overflow-y: auto;\n}\n\n.CodeMirror-hint {\n  margin: 0;\n  padding: 0 4px;\n  border-radius: 2px;\n  white-space: pre;\n  color: black;\n  cursor: pointer;\n}\n\nli.CodeMirror-hint-active {\n  background: #08f;\n  color: white;\n}\n"],sourceRoot:""}])},1281:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var r=this;e.on("cursorActivity",this.activityFunc=function(){r.cursorActivity()})}function r(e,t,r){var n=e.options.hintOptions,i={};for(var o in p)i[o]=p[o];if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}function n(e){return"string"==typeof e?e:e.text}function i(e,t){function r(e,r){var i;i="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,o[e]=i}var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var i=e.options.customKeys,o=i?{}:n;if(i)for(var a in i)i.hasOwnProperty(a)&&r(a,i[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&r(a,s[a]);return o}function o(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function a(t,r){this.completion=t,this.data=r,this.picked=!1;var a=this,s=t.cm,l=s.getInputField().ownerDocument,c=l.defaultView||l.parentWindow,f=this.hints=l.createElement("ul"),m=t.cm.options.theme;f.className="CodeMirror-hints "+m,this.selectedHint=r.selectedHint||0;for(var p=r.list,h=0;h<p.length;++h){var g=f.appendChild(l.createElement("li")),v=p[h],A=u+(h!=this.selectedHint?"":" "+d);null!=v.className&&(A=v.className+" "+A),g.className=A,v.render?v.render(g,r,v):g.appendChild(l.createTextNode(v.displayText||n(v))),g.hintId=h}var b=t.options.container||l.body,y=s.cursorCoords(t.options.alignWithWord?r.from:null),C=y.left,x=y.bottom,k=!0,w=0,M=0;if(b!==l.body){var B=-1!==["absolute","relative","fixed"].indexOf(c.getComputedStyle(b).position),S=B?b:b.offsetParent,E=S.getBoundingClientRect(),_=l.body.getBoundingClientRect();w=E.left-_.left-S.scrollLeft,M=E.top-_.top-S.scrollTop}f.style.left=C-w+"px",f.style.top=x-M+"px";var D=c.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),L=c.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);b.appendChild(f);var T=f.getBoundingClientRect(),F=T.bottom-L,N=f.scrollHeight>f.clientHeight+1,O=s.getScrollInfo();if(F>0){var z=T.bottom-T.top;if(y.top-(y.bottom-T.top)-z>0)f.style.top=(x=y.top-z-M)+"px",k=!1;else if(z>L){f.style.height=L-5+"px",f.style.top=(x=y.bottom-T.top-M)+"px";var I=s.getCursor();r.from.ch!=I.ch&&(y=s.cursorCoords(I),f.style.left=(C=y.left-w)+"px",T=f.getBoundingClientRect())}}var W=T.right-D;if(W>0&&(T.right-T.left>D&&(f.style.width=D-5+"px",W-=T.right-T.left-D),f.style.left=(C=y.left-W-w)+"px"),N)for(var P=f.firstChild;P;P=P.nextSibling)P.style.paddingRight=s.display.nativeBarWidth+"px";if(s.addKeyMap(this.keyMap=i(t,{moveFocus:function(e,t){a.changeActive(a.selectedHint+e,t)},setFocus:function(e){a.changeActive(e)},menuSize:function(){return a.screenAmount()},length:p.length,close:function(){t.close()},pick:function(){a.pick()},data:r})),t.options.closeOnUnfocus){var j;s.on("blur",this.onBlur=function(){j=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(j)})}return s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),r=s.getWrapperElement().getBoundingClientRect(),n=x+O.top-e.top,i=n-(c.pageYOffset||(l.documentElement||l.body).scrollTop);if(k||(i+=f.offsetHeight),i<=r.top||i>=r.bottom)return t.close();f.style.top=n+"px",f.style.left=C+O.left-e.left+"px"}),e.on(f,"dblclick",function(e){var t=o(f,e.target||e.srcElement);t&&null!=t.hintId&&(a.changeActive(t.hintId),a.pick())}),e.on(f,"click",function(e){var r=o(f,e.target||e.srcElement);r&&null!=r.hintId&&(a.changeActive(r.hintId),t.options.completeOnSingleClick&&a.pick())}),e.on(f,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(r,"select",p[this.selectedHint],f.childNodes[this.selectedHint]),!0}function s(e,t){if(!e.somethingSelected())return t;for(var r=[],n=0;n<t.length;n++)t[n].supportsSelection&&r.push(t[n]);return r}function l(e,t,r,n){if(e.async)e(t,n,r);else{var i=e(t,r);i&&i.then?i.then(n):n(i)}}function c(t,r){var n,i=t.getHelpers(r,"hint");if(i.length){var o=function(e,t,r){function n(i){if(i==o.length)return t(null);l(o[i],e,r,function(e){e&&e.list.length>0?t(e):n(i+1)})}var o=s(e,i);n(0)};return o.async=!0,o.supportsSelection=!0,o}return(n=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:n})}:e.hint.anyword?function(t,r){return e.hint.anyword(t,r)}:function(){}}var u="CodeMirror-hint",d="CodeMirror-hint-active";e.showHint=function(e,t,r){if(!t)return e.showHint(r);r&&r.async&&(t.async=!0);var n={hint:t};if(r)for(var i in r)n[i]=r[i];return e.showHint(n)},e.defineExtension("showHint",function(n){n=r(this,this.getCursor("start"),n);var i=this.listSelections();if(!(i.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o<i.length;o++)if(i[o].head.line!=i[o].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var a=this.state.completionActive=new t(this,n);a.options.hint&&(e.signal(this,"startCompletion",this),a.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var f=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},m=window.cancelAnimationFrame||clearTimeout;t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,r){var i=t.list[r];i.hint?i.hint(this.cm,t,i):this.cm.replaceRange(n(i),i.from||t.from,i.to||t.to,"complete"),e.signal(t,"pick",i),this.close()},cursorActivity:function(){this.debounce&&(m(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch<this.startPos.ch||this.cm.somethingSelected()||!e.ch||this.options.closeCharacters.test(t.charAt(e.ch-1)))this.close();else{var r=this;this.debounce=f(function(){r.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,r=++this.tick;l(this.options.hint,this.cm,this.options,function(n){t.tick==r&&t.finishUpdate(n,e)})}},finishUpdate:function(t,r){this.data&&e.signal(this.data,"update");var n=this.widget&&this.widget.picked||r&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(n&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown")))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var n=this.hints.childNodes[this.selectedHint];n&&(n.className=n.className.replace(" "+d,"")),n=this.hints.childNodes[this.selectedHint=t],n.className+=" "+d,n.offsetTop<this.hints.scrollTop?this.hints.scrollTop=n.offsetTop-3:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],n)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:c}),e.registerHelper("hint","fromList",function(t,r){var n,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?n=o.string.substr(0,i.ch-o.start):(n="",a=i);for(var l=[],c=0;c<r.words.length;c++){var u=r.words[c];u.slice(0,n.length)==n&&l.push(u)}if(l.length)return{list:l,from:a,to:s}}),e.commands.autocomplete=e.showHint;var p={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)})},1282:function(e,t,r){!function(e){e(r(1001),r(1283))}(function(e){"use strict";function t(e){return"[object Array]"==Object.prototype.toString.call(e)}function r(t){var r=t.doc.modeOption;return"sql"===r&&(r="text/x-sql"),e.resolveMode(r).keywords}function n(t){var r=t.doc.modeOption;return"sql"===r&&(r="text/x-sql"),e.resolveMode(r).identifierQuote||"`"}function i(e){return"string"==typeof e?e:e.text}function o(e,r){return t(r)&&(r={columns:r}),r.text||(r.text=e),r}function a(e){var r={};if(t(e))for(var n=e.length-1;n>=0;n--){var a=e[n];r[i(a).toUpperCase()]=o(i(a),a)}else if(e)for(var s in e)r[s.toUpperCase()]=o(s,e[s]);return r}function s(e){return g[e.toUpperCase()]}function l(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function c(e,t){var r=e.length,n=i(t).substr(0,r);return e.toUpperCase()===n.toUpperCase()}function u(e,r,n,i){if(t(n))for(var o=0;o<n.length;o++)c(r,n[o])&&e.push(i(n[o]));else for(var a in n)if(n.hasOwnProperty(a)){var s=n[a];s=s&&!0!==s?s.displayText?{text:s.text,displayText:s.displayText}:s.text:a,c(r,s)&&e.push(i(s))}}function d(e){"."==e.charAt(0)&&(e=e.substr(1));for(var t=e.split(b+b),r=0;r<t.length;r++)t[r]=t[r].replace(new RegExp(b,"g"),"");return t.join(b)}function f(e){for(var t=i(e).split("."),r=0;r<t.length;r++)t[r]=b+t[r].replace(new RegExp(b,"g"),b+b)+b;var n=t.join(".");return"string"==typeof e?n:(e=l(e),e.text=n,e)}function m(e,t,r,n){for(var i=!1,o=[],a=t.start,c=!0;c;)c="."==t.string.charAt(0),i=i||t.string.charAt(0)==b,a=t.start,o.unshift(d(t.string)),t=n.getTokenAt(C(e.line,t.start)),"."==t.string&&(c=!0,t=n.getTokenAt(C(e.line,t.start)));var m=o.join(".");u(r,m,g,function(e){return i?f(e):e}),u(r,m,v,function(e){return i?f(e):e}),m=o.pop();var p=o.join("."),A=!1,y=p;if(!s(p)){var x=p;p=h(p,n),p!==x&&(A=!0)}var k=s(p);return k&&k.columns&&(k=k.columns),k&&u(r,m,k,function(e){var t=p;return 1==A&&(t=y),"string"==typeof e?e=t+"."+e:(e=l(e),e.text=t+"."+e.text),i?f(e):e}),a}function p(e,t){for(var r=e.split(/\s+/),n=0;n<r.length;n++)r[n]&&t(r[n].replace(/[,;]/g,""))}function h(e,t){for(var r=t.doc,n=r.getValue(),i=e.toUpperCase(),o="",a="",l=[],c={start:C(0,0),end:C(t.lastLine(),t.getLineHandle(t.lastLine()).length)},u=n.indexOf(y.QUERY_DIV);-1!=u;)l.push(r.posFromIndex(u)),u=n.indexOf(y.QUERY_DIV,u+1);l.unshift(C(0,0)),l.push(C(t.lastLine(),t.getLineHandle(t.lastLine()).text.length));for(var d=null,f=t.getCursor(),m=0;m<l.length;m++){if((null==d||x(f,d)>0)&&x(f,l[m])<=0){c={start:d,end:l[m]};break}d=l[m]}if(c.start)for(var h=r.getRange(c.start,c.end,!1),m=0;m<h.length;m++){var g=h[m];if(p(g,function(e){var t=e.toUpperCase();t===i&&s(o)&&(a=o),t!==y.ALIAS_KEYWORD&&(o=e)}),a)break}return a}var g,v,A,b,y={QUERY_DIV:";",ALIAS_KEYWORD:"AS"},C=e.Pos,x=e.cmpPos;e.registerHelper("hint","sql",function(e,t){g=a(t&&t.tables);var i=t&&t.defaultTable,o=t&&t.disableKeywords;v=i&&s(i),A=r(e),b=n(e),i&&!v&&(v=h(i,e)),v=v||[],v.columns&&(v=v.columns);var l,c,d,f=e.getCursor(),p=[],y=e.getTokenAt(f);if(y.end>f.ch&&(y.end=f.ch,y.string=y.string.slice(0,f.ch-y.start)),y.string.match(/^[.`"\w@]\w*$/)?(d=y.string,l=y.start,c=y.end):(l=c=f.ch,d=""),"."==d.charAt(0)||d.charAt(0)==b)l=m(f,y,p,e);else{var x=function(e,t){return"object"===typeof e?e.className=t:e={text:e,className:t},e};u(p,d,v,function(e){return x(e,"CodeMirror-hint-table CodeMirror-hint-default-table")}),u(p,d,g,function(e){return x(e,"CodeMirror-hint-table")}),o||u(p,d,A,function(e){return x(e.toUpperCase(),"CodeMirror-hint-keyword")})}return{list:p,from:C(f.line,l),to:C(f.line,c)}})})},1283:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function i(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function o(e){for(var t={},r=e.split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}e.defineMode("sql",function(t,r){function n(e,t){var r=e.next();if(v[r]){var n=v[r](e,t);if(!1!==n)return n}if(g.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(g.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),g.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==r&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==r||'"'==r&&g.doubleQuote)return t.tokenize=i(r),t.tokenize(e,t);if((g.nCharCast&&("n"==r||"N"==r)||g.charsetCast&&"_"==r&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(g.escapeConstant&&("e"==r||"E"==r)&&("'"==e.peek()||'"'==e.peek()&&g.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=i(e.next(),!0))(e,t)},"keyword";if(g.commentSlashSlash&&"/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(g.commentHash&&"#"==r||"-"==r&&e.eat("-")&&(!g.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==r&&e.eat("*"))return t.tokenize=l(1),t.tokenize(e,t);if("."!=r){if(h.test(r))return e.eatWhile(h),"operator";if(y.test(r))return"bracket";if(C.test(r))return e.eatWhile(C),"punctuation";if("{"==r&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return A.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":f.hasOwnProperty(o)?"atom":m.hasOwnProperty(o)?"builtin":p.hasOwnProperty(o)?"keyword":d.hasOwnProperty(o)?"string-2":null}return g.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:g.ODBCdotTable&&e.match(/^[\w\d_]+/)?"variable-2":void 0}function i(e,t){return function(r,i){for(var o,a=!1;null!=(o=r.next());){if(o==e&&!a){i.tokenize=n;break}a=(b||t)&&!a&&"\\"==o}return"string"}}function l(e){return function(t,r){var i=t.match(/^.*?(\/\*|\*\/)/);return i?"/*"==i[1]?r.tokenize=l(e+1):r.tokenize=e>1?l(e-1):n:t.skipToEnd(),"comment"}}function c(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function u(e){e.indent=e.context.indent,e.context=e.context.prev}var d=r.client||{},f=r.atoms||{false:!0,true:!0,null:!0},m=r.builtin||o(s),p=r.keywords||o(a),h=r.operatorChars||/^[*+\-%<>!=&|~^\/]/,g=r.support||{},v=r.hooks||{},A=r.dateSQL||{date:!0,time:!0,timestamp:!0},b=!1!==r.backslashStringEscapes,y=r.brackets||/^[\{}\(\)\[\]]/,C=r.punctuation||/^[;.,:]/;return{startState:function(){return{tokenize:n,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==n&&e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var i=e.current();return"("==i?c(e,t,")"):"["==i?c(e,t,"]"):t.context&&t.context.type==i&&u(t),r},indent:function(r,n){var i=r.context;if(!i)return e.Pass;var o=n.charAt(0)==i.type;return i.align?i.col+(o?0:1):i.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:g.commentSlashSlash?"//":g.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});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 ",s="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";e.defineMIME("text/x-sql",{name:"sql",keywords:o(a+"begin"),builtin:o(s),atoms:o("false true null unknown"),dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:o("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:o(a+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:o("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:o("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:\/]/,backslashStringEscapes:!1,dateSQL:o("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(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:o("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:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":i}}),e.defineMIME("text/x-mariadb",{name:"sql",client:o("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:o(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:o("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:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":i}}),e.defineMIME("text/x-sqlite",{name:"sql",client:o("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:o(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:o("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:o("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|\/~]/,dateSQL:o("date time timestamp datetime"),support:o("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":n,":":n,"?":n,$:n,'"':r,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:o("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:o("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:o("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:o("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:o("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:o("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:o("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:o("date time timestamp"),support:o("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:o("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:o("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:o("date timestamp"),support:o("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:o("source"),keywords:o(a+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:o("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:o("false true"),builtin:o("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:o("source"),keywords:o("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:o("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:o("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:o("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:o("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:o("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:o("date time timestamp"),support:o("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:o("source"),keywords:o("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:o("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:o("time"),support:o("decimallessFloat zerolessFloat binaryNumber hexNumber")})})},1284:function(e,t,r){var n=r(1285);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1285:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,'.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\\25BE"}.CodeMirror-foldgutter-folded:after{content:"\\25B8"}',"",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/addon/fold/foldgutter.css"],names:[],mappings:"AAAA,uBACE,WAAY,AACZ,oFAAwF,AACxF,kBAAmB,AACnB,eAAgB,AAChB,cAAgB,CACjB,AACD,uBACE,UAAY,CACb,AACD,0DAEE,cAAgB,CACjB,AACD,kCACE,eAAiB,CAClB,AACD,oCACE,eAAiB,CAClB",file:"foldgutter.css",sourcesContent:['.CodeMirror-foldmarker {\n  color: blue;\n  text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px;\n  font-family: arial;\n  line-height: .3;\n  cursor: pointer;\n}\n.CodeMirror-foldgutter {\n  width: .7em;\n}\n.CodeMirror-foldgutter-open,\n.CodeMirror-foldgutter-folded {\n  cursor: pointer;\n}\n.CodeMirror-foldgutter-open:after {\n  content: "\\25BE";\n}\n.CodeMirror-foldgutter-folded:after {\n  content: "\\25B8";\n}\n'],sourceRoot:""}])},1286:function(e,t,r){!function(e){e(r(1001),r(1104))}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function r(e){return!0===e&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function n(e,t){for(var r=e.findMarks(f(t,0),f(t+1,0)),n=0;n<r.length;++n)if(r[n].__isFold){var i=r[n].find(-1);if(i&&i.line===t)return r[n]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,t,r){var o=e.state.foldGutter.options,s=t-1,l=e.foldOption(o,"minFoldSize"),c=e.foldOption(o,"rangeFinder"),u="string"==typeof o.indicatorFolded&&a(o.indicatorFolded),d="string"==typeof o.indicatorOpen&&a(o.indicatorOpen);e.eachLine(t,r,function(t){++s;var r=null,a=t.gutterMarkers;if(a&&(a=a[o.gutter]),n(e,s)){if(u&&a&&u.test(a.className))return;r=i(o.indicatorFolded)}else{var m=f(s,0),p=c&&c(e,m);if(p&&p.to.line-p.from.line>=l){if(d&&a&&d.test(a.className))return;r=i(o.indicatorOpen)}}(r||a)&&e.setGutterMarker(t,o.gutter,r)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),r=e.state.foldGutter;r&&(e.operation(function(){o(e,t.from,t.to)}),r.from=t.from,r.to=t.to)}function l(e,t,r){var i=e.state.foldGutter;if(i){var o=i.options;if(r==o.gutter){var a=n(e,t);a?a.clear():e.foldCode(f(t,0),o)}}}function c(e){var t=e.state.foldGutter;if(t){var r=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){s(e)},r.foldOnChangeTimeSpan||600)}}function u(e){var t=e.state.foldGutter;if(t){var r=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var r=e.getViewport();t.from==t.to||r.from-t.to>20||t.from-r.to>20?s(e):e.operation(function(){r.from<t.from&&(o(e,r.from,t.from),t.from=r.from),r.to>t.to&&(o(e,t.to,r.to),t.to=r.to)})},r.updateViewportTimeSpan||400)}}function d(e,t){var r=e.state.foldGutter;if(r){var n=t.line;n>=r.from&&n<r.to&&o(e,n,n+1)}}e.defineOption("foldGutter",!1,function(n,i,o){o&&o!=e.Init&&(n.clearGutter(n.state.foldGutter.options.gutter),n.state.foldGutter=null,n.off("gutterClick",l),n.off("changes",c),n.off("viewportChange",u),n.off("fold",d),n.off("unfold",d),n.off("swapDoc",c)),i&&(n.state.foldGutter=new t(r(i)),s(n),n.on("gutterClick",l),n.on("changes",c),n.on("viewportChange",u),n.on("fold",d),n.on("unfold",d),n.on("swapDoc",c))});var f=e.Pos})},1287:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function r(e,t,r,n){this.line=t,this.ch=r,this.cm=e,this.text=e.getLine(t),this.min=n?Math.max(n.from,e.firstLine()):e.firstLine(),this.max=n?Math.min(n.to-1,e.lastLine()):e.lastLine()}function n(e,t){var r=e.cm.getTokenTypeAt(f(e.line,t));return r&&/\btag\b/.test(r)}function i(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function o(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(i(e))continue;return}{if(n(e,t+1)){var r=e.text.lastIndexOf("/",t),o=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(n(e,t+1)){p.lastIndex=t,e.ch=t;var r=p.exec(e.text);if(r&&r.index==t)return r}else e.ch=t}}function l(e){for(;;){p.lastIndex=e.ch;var t=p.exec(e.text);if(!t){if(i(e))continue;return}{if(n(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}{if(n(e,t+1)){var r=e.text.lastIndexOf("/",t),i=r>-1&&!/\S/.test(e.text.slice(r+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}}function u(e,t){for(var r=[];;){var n,i=l(e),o=e.line,s=e.ch-(i?i[0].length:0);if(!i||!(n=a(e)))return;if("selfClose"!=n)if(i[1]){for(var c=r.length-1;c>=0;--c)if(r[c]==i[2]){r.length=c;break}if(c<0&&(!t||t==i[2]))return{tag:i[2],from:f(o,s),to:f(e.line,e.ch)}}else r.push(i[2])}}function d(e,t){for(var r=[];;){var n=c(e);if(!n)return;if("selfClose"!=n){var i=e.line,o=e.ch,a=s(e);if(!a)return;if(a[1])r.push(a[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==a[2]){r.length=l;break}if(l<0&&(!t||t==a[2]))return{tag:a[2],from:f(e.line,e.ch),to:f(i,o)}}}else s(e)}}var f=e.Pos,m="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",p=new RegExp("<(/?)(["+m+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,n){for(var i=new r(e,n.line,0);;){var o=l(i);if(!o||i.line!=n.line)return;var s=a(i);if(!s)return;if(!o[1]&&"selfClose"!=s){var c=f(i.line,i.ch),d=u(i,o[2]);return d&&t(d.from,c)>0?{from:c,to:d.from}:null}}}),e.findMatchingTag=function(e,n,i){var o=new r(e,n.line,n.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var l=a(o),c=l&&f(o.line,o.ch),m=l&&s(o);if(l&&m&&!(t(o,n)>0)){var p={from:f(o.line,o.ch),to:c,tag:m[2]};return"selfClose"==l?{open:p,close:null,at:"open"}:m[1]?{open:d(o,m[2]),close:p,at:"close"}:(o=new r(e,c.line,c.ch,i),{open:p,close:u(o,m[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,n,i){for(var o=new r(e,t.line,t.ch,n);;){var a=d(o,i);if(!a)break;var s=new r(e,t.line,t.ch,n),l=u(s,a.tag);if(l)return{open:a,close:l}}},e.scanForClosingTag=function(e,t,n,i){return u(new r(e,t.line,t.ch,i?{from:0,to:i}:null),n)}})},1288:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(t,r){var n=t.getLine(r),i=n.search(/\S/);return-1==i||/\bcomment\b/.test(t.getTokenTypeAt(e.Pos(r,i+1)))?-1:e.countColumn(n,null,t.getOption("tabSize"))}e.registerHelper("fold","indent",function(r,n){var i=t(r,n.line);if(!(i<0)){for(var o=null,a=n.line+1,s=r.lastLine();a<=s;++a){var l=t(r,a);if(-1==l);else{if(!(l>i))break;o=a}}return o?{from:e.Pos(n.line,r.getLine(n.line).length),to:e.Pos(o,r.getLine(o).length)}:void 0}})})},1289:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";e.registerHelper("fold","brace",function(t,r){function n(n){for(var s=r.ch,l=0;;){var c=s<=0?-1:a.lastIndexOf(n,s-1);if(-1!=c){if(1==l&&c<r.ch)break;if(i=t.getTokenTypeAt(e.Pos(o,c+1)),!/^(comment|string)/.test(i))return c+1;s=c-1}else{if(1==l)break;l=1,s=a.length}}}var i,o=r.line,a=t.getLine(o),s="{",l="}",c=n("{");if(null==c&&(s="[",l="]",c=n("[")),null!=c){var u,d,f=1,m=t.lastLine();e:for(var p=o;p<=m;++p)for(var h=t.getLine(p),g=p==o?c:0;;){var v=h.indexOf(s,g),A=h.indexOf(l,g);if(v<0&&(v=h.length),A<0&&(A=h.length),(g=Math.min(v,A))==h.length)break;if(t.getTokenTypeAt(e.Pos(p,g+1))==i)if(g==v)++f;else if(!--f){u=p,d=g;break e}++g}if(null!=u&&o!=u)return{from:e.Pos(o,c),to:e.Pos(u,d)}}}),e.registerHelper("fold","import",function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));if(/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"keyword"!=n.type||"import"!=n.string)return null;for(var i=r,o=Math.min(t.lastLine(),r+10);i<=o;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:n.end,end:e.Pos(i,s)}}}var i,o=r.line,a=n(o);if(!a||n(o-1)||(i=n(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=n(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,r){function n(r){if(r<t.firstLine()||r>t.lastLine())return null;var n=t.getTokenAt(e.Pos(r,1));return/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(r,n.end+1))),"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var i=r.line,o=n(i);if(null==o||null!=n(i-1))return null;for(var a=i;;){if(null==n(a+1))break;++a}return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})})},1290:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";e.registerHelper("fold","markdown",function(t,r){function n(r){var n=t.getTokenTypeAt(e.Pos(r,0));return n&&/\bheader\b/.test(n)}function i(e,t,r){var i=t&&t.match(/^#+/);return i&&n(e)?i[0].length:(i=r&&r.match(/^[=\-]+\s*$/),i&&n(e+1)?"="==r[0]?1:2:o)}var o=100,a=t.getLine(r.line),s=t.getLine(r.line+1),l=i(r.line,a,s);if(l!==o){for(var c=t.lastLine(),u=r.line,d=t.getLine(u+2);u<c&&!(i(u+1,s,d)<=l);)++u,s=d,d=t.getLine(u+2);return{from:e.Pos(r.line,a.length),to:e.Pos(u,t.getLine(u).length)}}})})},1291:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,r){var n=t.getModeAt(r),i=n.blockCommentStart,o=n.blockCommentEnd;if(i&&o){for(var a,s=r.line,l=t.getLine(s),c=r.ch,u=0;;){var d=c<=0?-1:l.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d<r.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(s,d+1)))&&(0==d||l.slice(d-o.length,d)==o||!/comment/.test(t.getTokenTypeAt(e.Pos(s,d))))){a=d+i.length;break}c=d-1}else{if(1==u)return;u=1,c=l.length}}var f,m,p=1,h=t.lastLine();e:for(var g=s;g<=h;++g)for(var v=t.getLine(g),A=g==s?a:0;;){var b=v.indexOf(i,A),y=v.indexOf(o,A);if(b<0&&(b=v.length),y<0&&(y=v.length),(A=Math.min(b,y))==v.length)break;if(A==b)++p;else if(!--p){f=g,m=A;break e}++A}if(null!=f&&(s!=f||m!=a))return{from:e.Pos(s,a),to:e.Pos(f,m)}}})})},1292:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",o),e.removeLineClass(e.state.activeLines[t],"background",a),e.removeLineClass(e.state.activeLines[t],"gutter",s)}function r(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}function n(e,n){for(var i=[],l=0;l<n.length;l++){var c=n[l],u=e.getOption("styleActiveLine");if("object"==typeof u&&u.nonEmpty?c.anchor.line==c.head.line:c.empty()){var d=e.getLineHandleVisualStart(c.head.line);i[i.length-1]!=d&&i.push(d)}}r(e.state.activeLines,i)||e.operation(function(){t(e);for(var r=0;r<i.length;r++)e.addLineClass(i[r],"wrap",o),e.addLineClass(i[r],"background",a),e.addLineClass(i[r],"gutter",s);e.state.activeLines=i})}function i(e,t){n(e,t.ranges)}var o="CodeMirror-activeline",a="CodeMirror-activeline-background",s="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(r,o,a){var s=a!=e.Init&&a;o!=s&&(s&&(r.off("beforeSelectionChange",i),t(r),delete r.state.activeLines),o&&(r.state.activeLines=[],n(r,r.listSelections()),r.on("beforeSelectionChange",i)))})})},1293:function(e,t,r){var n=r(1294);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1294:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".cm-s-elegant span.cm-atom,.cm-s-elegant span.cm-number,.cm-s-elegant span.cm-string{color:#762}.cm-s-elegant span.cm-comment{color:#262;font-style:italic;line-height:1em}.cm-s-elegant span.cm-meta{color:#555;font-style:italic;line-height:1em}.cm-s-elegant span.cm-variable{color:#000}.cm-s-elegant span.cm-variable-2{color:#b11}.cm-s-elegant span.cm-qualifier{color:#555}.cm-s-elegant span.cm-keyword{color:#730}.cm-s-elegant span.cm-builtin{color:#30a}.cm-s-elegant span.cm-link{color:#762}.cm-s-elegant span.cm-error{background-color:#fdd}.cm-s-elegant .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-elegant .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/theme/elegant.css"],names:[],mappings:"AAAA,qFAAyF,UAAY,CAAE,AACvG,8BAAgC,WAAY,AAAC,kBAAmB,AAAC,eAAiB,CAAE,AACpF,2BAA6B,WAAY,AAAC,kBAAmB,AAAC,eAAiB,CAAE,AACjF,+BAAiC,UAAa,CAAE,AAChD,iCAAmC,UAAY,CAAE,AACjD,gCAAkC,UAAY,CAAE,AAChD,8BAAgC,UAAY,CAAE,AAC9C,8BAAgC,UAAY,CAAE,AAC9C,2BAA6B,UAAY,CAAE,AAC3C,4BAA8B,qBAAuB,CAAE,AAEvD,gDAAkD,kBAAoB,CAAE,AACxE,0CAA4C,uBAAuB,AAAC,oBAAuB,CAAE",file:"elegant.css",sourcesContent:[".cm-s-elegant span.cm-number, .cm-s-elegant span.cm-string, .cm-s-elegant span.cm-atom { color: #762; }\n.cm-s-elegant span.cm-comment { color: #262; font-style: italic; line-height: 1em; }\n.cm-s-elegant span.cm-meta { color: #555; font-style: italic; line-height: 1em; }\n.cm-s-elegant span.cm-variable { color: black; }\n.cm-s-elegant span.cm-variable-2 { color: #b11; }\n.cm-s-elegant span.cm-qualifier { color: #555; }\n.cm-s-elegant span.cm-keyword { color: #730; }\n.cm-s-elegant span.cm-builtin { color: #30a; }\n.cm-s-elegant span.cm-link { color: #762; }\n.cm-s-elegant span.cm-error { background-color: #fdd; }\n\n.cm-s-elegant .CodeMirror-activeline-background { background: #e8f2ff; }\n.cm-s-elegant .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n"],sourceRoot:""}])},1295:function(e,t,r){var n=r(1296);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1296:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".cm-s-eclipse span.cm-meta{color:#ff1717}.cm-s-eclipse span.cm-keyword{line-height:1em;font-weight:700;color:#7f0055}.cm-s-eclipse span.cm-atom{color:#219}.cm-s-eclipse span.cm-number{color:#164}.cm-s-eclipse span.cm-def{color:#00f}.cm-s-eclipse span.cm-variable{color:#000}.cm-s-eclipse span.cm-type,.cm-s-eclipse span.cm-variable-2,.cm-s-eclipse span.cm-variable-3{color:#0000c0}.cm-s-eclipse span.cm-operator,.cm-s-eclipse span.cm-property{color:#000}.cm-s-eclipse span.cm-comment{color:#3f7f5f}.cm-s-eclipse span.cm-string{color:#2a00ff}.cm-s-eclipse span.cm-string-2{color:#f50}.cm-s-eclipse span.cm-qualifier{color:#555}.cm-s-eclipse span.cm-builtin{color:#30a}.cm-s-eclipse span.cm-bracket{color:#cc7}.cm-s-eclipse span.cm-tag{color:#170}.cm-s-eclipse span.cm-attribute{color:#00c}.cm-s-eclipse span.cm-link{color:#219}.cm-s-eclipse span.cm-error{color:red}.cm-s-eclipse .CodeMirror-activeline-background{background:#e8f2ff}.cm-s-eclipse .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/theme/eclipse.css"],names:[],mappings:"AAAA,2BAA6B,aAAe,CAAE,AAC9C,8BAAgC,gBAAiB,AAAC,gBAAkB,AAAC,aAAe,CAAE,AACtF,2BAA6B,UAAY,CAAE,AAC3C,6BAA+B,UAAY,CAAE,AAC7C,0BAA4B,UAAY,CAAE,AAC1C,+BAAiC,UAAa,CAAE,AAEhD,6FAA+D,aAAe,CAAE,AAEhF,8DAAiC,UAAa,CAAE,AAChD,8BAAgC,aAAe,CAAE,AACjD,6BAA+B,aAAe,CAAE,AAChD,+BAAiC,UAAY,CAAE,AAC/C,gCAAkC,UAAY,CAAE,AAChD,8BAAgC,UAAY,CAAE,AAC9C,8BAAgC,UAAY,CAAE,AAC9C,0BAA4B,UAAY,CAAE,AAC1C,gCAAkC,UAAY,CAAE,AAChD,2BAA6B,UAAY,CAAE,AAC3C,4BAA8B,SAAY,CAAE,AAE5C,gDAAkD,kBAAoB,CAAE,AACxE,0CAA4C,uBAAuB,AAAC,oBAAuB,CAAE",file:"eclipse.css",sourcesContent:[".cm-s-eclipse span.cm-meta { color: #FF1717; }\n.cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }\n.cm-s-eclipse span.cm-atom { color: #219; }\n.cm-s-eclipse span.cm-number { color: #164; }\n.cm-s-eclipse span.cm-def { color: #00f; }\n.cm-s-eclipse span.cm-variable { color: black; }\n.cm-s-eclipse span.cm-variable-2 { color: #0000C0; }\n.cm-s-eclipse span.cm-variable-3, .cm-s-eclipse span.cm-type { color: #0000C0; }\n.cm-s-eclipse span.cm-property { color: black; }\n.cm-s-eclipse span.cm-operator { color: black; }\n.cm-s-eclipse span.cm-comment { color: #3F7F5F; }\n.cm-s-eclipse span.cm-string { color: #2A00FF; }\n.cm-s-eclipse span.cm-string-2 { color: #f50; }\n.cm-s-eclipse span.cm-qualifier { color: #555; }\n.cm-s-eclipse span.cm-builtin { color: #30a; }\n.cm-s-eclipse span.cm-bracket { color: #cc7; }\n.cm-s-eclipse span.cm-tag { color: #170; }\n.cm-s-eclipse span.cm-attribute { color: #00c; }\n.cm-s-eclipse span.cm-link { color: #219; }\n.cm-s-eclipse span.cm-error { color: #f00; }\n\n.cm-s-eclipse .CodeMirror-activeline-background { background: #e8f2ff; }\n.cm-s-eclipse .CodeMirror-matchingbracket { outline:1px solid grey; color:black !important; }\n"],sourceRoot:""}])},1297:function(e,t,r){var n=r(1298);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1298:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".cm-s-monokai.CodeMirror{background:#272822;color:#f8f8f2}.cm-s-monokai div.CodeMirror-selected{background:#49483e}.cm-s-monokai .CodeMirror-line::selection,.cm-s-monokai .CodeMirror-line>span::selection,.cm-s-monokai .CodeMirror-line>span>span::selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-line::-moz-selection,.cm-s-monokai .CodeMirror-line>span::-moz-selection,.cm-s-monokai .CodeMirror-line>span>span::-moz-selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-gutters{background:#272822;border-right:0}.cm-s-monokai .CodeMirror-guttermarker{color:#fff}.cm-s-monokai .CodeMirror-guttermarker-subtle,.cm-s-monokai .CodeMirror-linenumber{color:#d0d0d0}.cm-s-monokai .CodeMirror-cursor{border-left:1px solid #f8f8f0}.cm-s-monokai span.cm-comment{color:#75715e}.cm-s-monokai span.cm-atom,.cm-s-monokai span.cm-number{color:#ae81ff}.cm-s-monokai span.cm-comment.cm-attribute{color:#97b757}.cm-s-monokai span.cm-comment.cm-def{color:#bc9262}.cm-s-monokai span.cm-comment.cm-tag{color:#bc6283}.cm-s-monokai span.cm-comment.cm-type{color:#5998a6}.cm-s-monokai span.cm-attribute,.cm-s-monokai span.cm-property{color:#a6e22e}.cm-s-monokai span.cm-keyword{color:#f92672}.cm-s-monokai span.cm-builtin{color:#66d9ef}.cm-s-monokai span.cm-string{color:#e6db74}.cm-s-monokai span.cm-variable{color:#f8f8f2}.cm-s-monokai span.cm-variable-2{color:#9effff}.cm-s-monokai span.cm-type,.cm-s-monokai span.cm-variable-3{color:#66d9ef}.cm-s-monokai span.cm-def{color:#fd971f}.cm-s-monokai span.cm-bracket{color:#f8f8f2}.cm-s-monokai span.cm-tag{color:#f92672}.cm-s-monokai span.cm-header,.cm-s-monokai span.cm-link{color:#ae81ff}.cm-s-monokai span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-monokai .CodeMirror-activeline-background{background:#373831}.cm-s-monokai .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/theme/monokai.css"],names:[],mappings:"AAEA,yBAA2B,mBAAoB,AAAC,aAAe,CAAE,AACjE,sCAAwC,kBAAoB,CAAE,AAE9D,6IAAuJ,6BAAkC,CAAE,AAC3L,4JAAsK,6BAAkC,CAAE,AAC1M,kCAAoC,mBAAoB,AAAC,cAAkB,CAAE,AAC7E,uCAAyC,UAAa,CAAE,AAExD,mFAAuC,aAAe,CAAE,AACxD,iCAAmC,6BAA+B,CAAE,AAEpE,8BAAgC,aAAe,CAAE,AAEjD,wDAA+B,aAAe,CAAE,AAEhD,2CAA6C,aAAe,CAAE,AAC9D,qCAAuC,aAAe,CAAE,AACxD,qCAAuC,aAAe,CAAE,AACxD,sCAAwC,aAAe,CAAE,AAEzD,+DAAkE,aAAe,CAAE,AACnF,8BAAgC,aAAe,CAAE,AACjD,8BAAgC,aAAe,CAAE,AACjD,6BAA+B,aAAe,CAAE,AAEhD,+BAAiC,aAAe,CAAE,AAClD,iCAAmC,aAAe,CAAE,AACpD,4DAA+D,aAAe,CAAE,AAChF,0BAA4B,aAAe,CAAE,AAC7C,8BAAgC,aAAe,CAAE,AACjD,0BAA4B,aAAe,CAAE,AAE7C,wDAA6B,aAAe,CAAE,AAC9C,4BAA8B,mBAAoB,AAAC,aAAe,CAAE,AAEpE,gDAAkD,kBAAoB,CAAE,AACxE,0CACE,0BAA2B,AAC3B,oBAAwB,CACzB",file:"monokai.css",sourcesContent:["/* Based on Sublime Text's Monokai theme */\n\n.cm-s-monokai.CodeMirror { background: #272822; color: #f8f8f2; }\n.cm-s-monokai div.CodeMirror-selected { background: #49483E; }\n.cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); }\n.cm-s-monokai .CodeMirror-line::selection, .cm-s-monokai .CodeMirror-line > span::selection, .cm-s-monokai .CodeMirror-line > span > span::selection { background: rgba(73, 72, 62, .99); }\n.cm-s-monokai .CodeMirror-line::-moz-selection, .cm-s-monokai .CodeMirror-line > span::-moz-selection, .cm-s-monokai .CodeMirror-line > span > span::-moz-selection { background: rgba(73, 72, 62, .99); }\n.cm-s-monokai .CodeMirror-gutters { background: #272822; border-right: 0px; }\n.cm-s-monokai .CodeMirror-guttermarker { color: white; }\n.cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }\n.cm-s-monokai .CodeMirror-linenumber { color: #d0d0d0; }\n.cm-s-monokai .CodeMirror-cursor { border-left: 1px solid #f8f8f0; }\n\n.cm-s-monokai span.cm-comment { color: #75715e; }\n.cm-s-monokai span.cm-atom { color: #ae81ff; }\n.cm-s-monokai span.cm-number { color: #ae81ff; }\n\n.cm-s-monokai span.cm-comment.cm-attribute { color: #97b757; }\n.cm-s-monokai span.cm-comment.cm-def { color: #bc9262; }\n.cm-s-monokai span.cm-comment.cm-tag { color: #bc6283; }\n.cm-s-monokai span.cm-comment.cm-type { color: #5998a6; }\n\n.cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute { color: #a6e22e; }\n.cm-s-monokai span.cm-keyword { color: #f92672; }\n.cm-s-monokai span.cm-builtin { color: #66d9ef; }\n.cm-s-monokai span.cm-string { color: #e6db74; }\n\n.cm-s-monokai span.cm-variable { color: #f8f8f2; }\n.cm-s-monokai span.cm-variable-2 { color: #9effff; }\n.cm-s-monokai span.cm-variable-3, .cm-s-monokai span.cm-type { color: #66d9ef; }\n.cm-s-monokai span.cm-def { color: #fd971f; }\n.cm-s-monokai span.cm-bracket { color: #f8f8f2; }\n.cm-s-monokai span.cm-tag { color: #f92672; }\n.cm-s-monokai span.cm-header { color: #ae81ff; }\n.cm-s-monokai span.cm-link { color: #ae81ff; }\n.cm-s-monokai span.cm-error { background: #f92672; color: #f8f8f0; }\n\n.cm-s-monokai .CodeMirror-activeline-background { background: #373831; }\n.cm-s-monokai .CodeMirror-matchingbracket {\n  text-decoration: underline;\n  color: white !important;\n}\n"],sourceRoot:""}])},1299:function(e,t,r){var n=r(1300);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1300:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #fc0}.cm-s-material.CodeMirror-focused div.CodeMirror-selected,.cm-s-material div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-type,.cm-s-material .cm-variable-3{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/theme/material.css"],names:[],mappings:"AAMA,0BACE,yBAA0B,AAC1B,UAAe,CAChB,AAED,mCACE,mBAAoB,AACpB,cAAe,AACf,WAAa,CACd,AAED,6HAGE,aAAe,CAChB,AAED,kCACE,0BAA+B,CAChC,AAMD,iGACE,+BAAqC,CACtC,AAQD,gJAGE,+BAAqC,CACtC,AAED,+JAGE,+BAAqC,CACtC,AAED,iDACE,yBAA+B,CAChC,AAED,2BACE,aAAe,CAChB,AAED,4BACE,aAAe,CAChB,AAED,8BACE,UAAe,CAChB,AAED,sDAEE,aAAe,CAChB,AAED,2BACE,aAAe,CAChB,AAED,wBACE,aAAe,CAChB,AAED,0BACE,aAAe,CAChB,AAED,uBACE,aAAe,CAChB,AAED,0BACE,aAAe,CAChB,AAED,4BACE,aAAe,CAChB,AAED,2BACE,aAAe,CAChB,AAED,4BACE,aAAe,CAChB,AAED,uBACE,aAAe,CAChB,AAED,wBACE,aAAe,CAChB,AAMD,yDACE,aAAe,CAChB,AAMD,mFAEE,aAAe,CAChB,AAGD,yBACE,WAAgC,AAChC,wBAA0B,CAC3B,AAED,2CACE,0BAA2B,AAC3B,oBAAwB,CACzB",file:"material.css",sourcesContent:["/*\n  Name:       material\n  Author:     Mattia Astorino (http://github.com/equinusocio)\n  Website:    https://material-theme.site/\n*/\n\n.cm-s-material.CodeMirror {\n  background-color: #263238;\n  color: #EEFFFF;\n}\n\n.cm-s-material .CodeMirror-gutters {\n  background: #263238;\n  color: #546E7A;\n  border: none;\n}\n\n.cm-s-material .CodeMirror-guttermarker,\n.cm-s-material .CodeMirror-guttermarker-subtle,\n.cm-s-material .CodeMirror-linenumber {\n  color: #546E7A;\n}\n\n.cm-s-material .CodeMirror-cursor {\n  border-left: 1px solid #FFCC00;\n}\n\n.cm-s-material div.CodeMirror-selected {\n  background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material.CodeMirror-focused div.CodeMirror-selected {\n  background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n  background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::selection,\n.cm-s-material .CodeMirror-line>span::selection,\n.cm-s-material .CodeMirror-line>span>span::selection {\n  background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-line::-moz-selection,\n.cm-s-material .CodeMirror-line>span::-moz-selection,\n.cm-s-material .CodeMirror-line>span>span::-moz-selection {\n  background: rgba(128, 203, 196, 0.2);\n}\n\n.cm-s-material .CodeMirror-activeline-background {\n  background: rgba(0, 0, 0, 0.5);\n}\n\n.cm-s-material .cm-keyword {\n  color: #C792EA;\n}\n\n.cm-s-material .cm-operator {\n  color: #89DDFF;\n}\n\n.cm-s-material .cm-variable-2 {\n  color: #EEFFFF;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n  color: #f07178;\n}\n\n.cm-s-material .cm-builtin {\n  color: #FFCB6B;\n}\n\n.cm-s-material .cm-atom {\n  color: #F78C6C;\n}\n\n.cm-s-material .cm-number {\n  color: #FF5370;\n}\n\n.cm-s-material .cm-def {\n  color: #82AAFF;\n}\n\n.cm-s-material .cm-string {\n  color: #C3E88D;\n}\n\n.cm-s-material .cm-string-2 {\n  color: #f07178;\n}\n\n.cm-s-material .cm-comment {\n  color: #546E7A;\n}\n\n.cm-s-material .cm-variable {\n  color: #f07178;\n}\n\n.cm-s-material .cm-tag {\n  color: #FF5370;\n}\n\n.cm-s-material .cm-meta {\n  color: #FFCB6B;\n}\n\n.cm-s-material .cm-attribute {\n  color: #C792EA;\n}\n\n.cm-s-material .cm-property {\n  color: #C792EA;\n}\n\n.cm-s-material .cm-qualifier {\n  color: #DECB6B;\n}\n\n.cm-s-material .cm-variable-3,\n.cm-s-material .cm-type {\n  color: #DECB6B;\n}\n\n\n.cm-s-material .cm-error {\n  color: rgba(255, 255, 255, 1.0);\n  background-color: #FF5370;\n}\n\n.cm-s-material .CodeMirror-matchingbracket {\n  text-decoration: underline;\n  color: white !important;\n}"],sourceRoot:""}])},1301:function(e,t,r){var n=r(1302);"string"===typeof n&&(n=[[e.i,n,""]]);var i={hmr:!1};i.transform=void 0;r(930)(n,i);n.locals&&(e.exports=n.locals)},1302:function(e,t,r){t=e.exports=r(929)(!0),t.push([e.i,".cm-s-night.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-night div.CodeMirror-selected{background:#447}.cm-s-night .CodeMirror-line::selection,.cm-s-night .CodeMirror-line>span::selection,.cm-s-night .CodeMirror-line>span>span::selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-line::-moz-selection,.cm-s-night .CodeMirror-line>span::-moz-selection,.cm-s-night .CodeMirror-line>span>span::-moz-selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-night .CodeMirror-guttermarker{color:#fff}.cm-s-night .CodeMirror-guttermarker-subtle{color:#bbb}.cm-s-night .CodeMirror-linenumber{color:#f8f8f8}.cm-s-night .CodeMirror-cursor{border-left:1px solid #fff}.cm-s-night span.cm-comment{color:#8900d1}.cm-s-night span.cm-atom{color:#845dc4}.cm-s-night span.cm-attribute,.cm-s-night span.cm-number{color:#ffd500}.cm-s-night span.cm-keyword{color:#599eff}.cm-s-night span.cm-string{color:#37f14a}.cm-s-night span.cm-meta{color:#7678e2}.cm-s-night span.cm-tag,.cm-s-night span.cm-variable-2{color:#99b2ff}.cm-s-night span.cm-def,.cm-s-night span.cm-type,.cm-s-night span.cm-variable-3{color:#fff}.cm-s-night span.cm-bracket{color:#8da6ce}.cm-s-night span.cm-builtin,.cm-s-night span.cm-special{color:#ff9e59}.cm-s-night span.cm-link{color:#845dc4}.cm-s-night span.cm-error{color:#9d1e15}.cm-s-night .CodeMirror-activeline-background{background:#1c005a}.cm-s-night .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}","",{version:3,sources:["/weaver/Oracle/ecology/coms-git/WEAVER_CloudStore_e9/components/node_modules/codemirror/theme/night.css"],names:[],mappings:"AAEA,uBAAyB,mBAAoB,AAAC,aAAe,CAAE,AAC/D,oCAAsC,eAAiB,CAAE,AAEzD,uIAAiJ,8BAAmC,CAAE,AACtL,sJAAgK,8BAAmC,CAAE,AACrM,gCAAkC,mBAAoB,AAAC,2BAA6B,CAAE,AACtF,qCAAuC,UAAa,CAAE,AACtD,4CAA8C,UAAY,CAAE,AAC5D,mCAAqC,aAAe,CAAE,AACtD,+BAAiC,0BAA6B,CAAE,AAEhE,4BAA8B,aAAe,CAAE,AAC/C,yBAA2B,aAAe,CAAE,AAC5C,yDAA4D,aAAe,CAAE,AAC7E,4BAA8B,aAAe,CAAE,AAC/C,2BAA6B,aAAe,CAAE,AAC9C,yBAA2B,aAAe,CAAE,AAC5C,uDAA0D,aAAe,CAAE,AAC3E,gFAAoF,UAAa,CAAE,AACnG,4BAA8B,aAAe,CAAE,AAC/C,wDAA2D,aAAe,CAAE,AAC5E,yBAA2B,aAAe,CAAE,AAC5C,0BAA4B,aAAe,CAAE,AAE7C,8CAAgD,kBAAoB,CAAE,AACtE,wCAA0C,uBAAuB,AAAC,oBAAuB,CAAE",file:"night.css",sourcesContent:["/* Loosely based on the Midnight Textmate theme */\n\n.cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }\n.cm-s-night div.CodeMirror-selected { background: #447; }\n.cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); }\n.cm-s-night .CodeMirror-line::selection, .cm-s-night .CodeMirror-line > span::selection, .cm-s-night .CodeMirror-line > span > span::selection { background: rgba(68, 68, 119, .99); }\n.cm-s-night .CodeMirror-line::-moz-selection, .cm-s-night .CodeMirror-line > span::-moz-selection, .cm-s-night .CodeMirror-line > span > span::-moz-selection { background: rgba(68, 68, 119, .99); }\n.cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }\n.cm-s-night .CodeMirror-guttermarker { color: white; }\n.cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }\n.cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }\n.cm-s-night .CodeMirror-cursor { border-left: 1px solid white; }\n\n.cm-s-night span.cm-comment { color: #8900d1; }\n.cm-s-night span.cm-atom { color: #845dc4; }\n.cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }\n.cm-s-night span.cm-keyword { color: #599eff; }\n.cm-s-night span.cm-string { color: #37f14a; }\n.cm-s-night span.cm-meta { color: #7678e2; }\n.cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }\n.cm-s-night span.cm-variable-3, .cm-s-night span.cm-def, .cm-s-night span.cm-type { color: white; }\n.cm-s-night span.cm-bracket { color: #8da6ce; }\n.cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }\n.cm-s-night span.cm-link { color: #845dc4; }\n.cm-s-night span.cm-error { color: #9d1e15; }\n\n.cm-s-night .CodeMirror-activeline-background { background: #1C005A; }\n.cm-s-night .CodeMirror-matchingbracket { outline:1px solid grey; color:white !important; }\n"],sourceRoot:""}])},1303:function(e,t,r){!function(e){e(r(1001),r(1304),r(1305))}(function(e){"use strict";e.defineMode("markdown",function(t,r){function n(r){if(e.findModeByName){var n=e.findModeByName(r);n&&(r=n.mime||n.mimes[0])}var i=e.getMode(t,r);return"null"==i.name?null:i}function i(e,t,r){return t.f=t.inline=r,r(e,t)}function o(e,t,r){return t.f=t.block=r,r(e,t)}function a(e){return!e||!/\S/.test(e.string)}function s(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==c){var r=C;if(!r){var n=e.innerMode(y,t.htmlState);r="xml"==n.mode.name&&null===n.state.tagStart&&!n.state.context&&n.state.tokenize.isInText}r&&(t.f=m,t.block=l,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function l(t,o){var s=t.column()===o.indentation,l=a(o.prevLine.stream),c=o.indentedCode,f=o.prevLine.hr,m=!1!==o.list,p=(o.listStack[o.listStack.length-1]||0)+3;o.indentedCode=!1;var h=o.indentation;if(null===o.indentationDiff&&(o.indentationDiff=o.indentation,m)){for(o.list=null;h<o.listStack[o.listStack.length-1];)o.listStack.pop(),o.listStack.length?o.indentation=o.listStack[o.listStack.length-1]:o.list=!1;!1!==o.list&&(o.indentationDiff=h-o.listStack[o.listStack.length-1])}var g=!l&&!f&&!o.prevLine.header&&(!m||!c)&&!o.prevLine.fencedCodeEnd,A=(!1===o.list||f||l)&&o.indentation<=p&&t.match(w),b=null;if(o.indentationDiff>=4&&(c||o.prevLine.fencedCodeEnd||o.prevLine.header||l))return t.skipToEnd(),o.indentedCode=!0,x.code;if(t.eatSpace())return null;if(s&&o.indentation<=p&&(b=t.match(S))&&b[1].length<=6)return o.quote=0,o.header=b[1].length,o.thisLine.header=!0,r.highlightFormatting&&(o.formatting="header"),o.f=o.inline,d(o);if(o.indentation<=p&&t.eat(">"))return o.quote=s?1:o.quote+1,r.highlightFormatting&&(o.formatting="quote"),t.eatSpace(),d(o);if(!A&&!o.setext&&s&&o.indentation<=p&&(b=t.match(M))){var y=b[1]?"ol":"ul";return o.indentation=h+t.current().length,o.list=!0,o.quote=0,o.listStack.push(o.indentation),o.em=!1,o.strong=!1,o.code=!1,o.strikethrough=!1,r.taskLists&&t.match(B,!1)&&(o.taskList=!0),o.f=o.inline,r.highlightFormatting&&(o.formatting=["list","list-"+y]),d(o)}return s&&o.indentation<=p&&(b=t.match(D,!0))?(o.quote=0,o.fencedEndRE=new RegExp(b[1]+"+ *$"),o.localMode=r.fencedCodeBlockHighlighting&&n(b[2]),o.localMode&&(o.localState=e.startState(o.localMode)),o.f=o.block=u,r.highlightFormatting&&(o.formatting="code-block"),o.code=-1,d(o)):o.setext||!(g&&m||o.quote||!1!==o.list||o.code||A||L.test(t.string))&&(b=t.lookAhead(1))&&(b=b.match(E))?(o.setext?(o.header=o.setext,o.setext=0,t.skipToEnd(),r.highlightFormatting&&(o.formatting="header")):(o.header="="==b[0].charAt(0)?1:2,o.setext=o.header),o.thisLine.header=!0,o.f=o.inline,d(o)):A?(t.skipToEnd(),o.hr=!0,o.thisLine.hr=!0,x.hr):"["===t.peek()?i(t,o,v):i(t,o,o.inline)}function c(t,r){var n=y.token(t,r.htmlState);if(!C){var i=e.innerMode(y,r.htmlState);("xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText||r.md_inside&&t.current().indexOf(">")>-1)&&(r.f=m,r.block=l,r.htmlState=null)}return n}function u(e,t){var n=t.listStack[t.listStack.length-1]||0,i=t.indentation<n,a=n+3;if(t.fencedEndRE&&t.indentation<=a&&(i||e.match(t.fencedEndRE))){r.highlightFormatting&&(t.formatting="code-block");var s;return i||(s=d(t)),t.localMode=t.localState=null,t.block=l,t.f=m,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,i?o(e,t,t.block):s}return t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),x.code)}function d(e){var t=[];if(e.formatting){t.push(x.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n<e.formatting.length;n++)t.push(x.formatting+"-"+e.formatting[n]),"header"===e.formatting[n]&&t.push(x.formatting+"-"+e.formatting[n]+"-"+e.header),"quote"===e.formatting[n]&&(!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=e.quote?t.push(x.formatting+"-"+e.formatting[n]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(x.linkHref,"url"):(e.strong&&t.push(x.strong),e.em&&t.push(x.em),e.strikethrough&&t.push(x.strikethrough),e.emoji&&t.push(x.emoji),e.linkText&&t.push(x.linkText),e.code&&t.push(x.code),e.image&&t.push(x.image),e.imageAltText&&t.push(x.imageAltText,"link"),e.imageMarker&&t.push(x.imageMarker)),e.header&&t.push(x.header,x.header+"-"+e.header),e.quote&&(t.push(x.quote),!r.maxBlockquoteDepth||r.maxBlockquoteDepth>=e.quote?t.push(x.quote+"-"+e.quote):t.push(x.quote+"-"+r.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(x.list2):t.push(x.list3):t.push(x.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function f(e,t){if(e.match(_,!0))return d(t)}function m(t,n){var i=n.text(t,n);if("undefined"!==typeof i)return i;if(n.list)return n.list=null,d(n);if(n.taskList){return" "===t.match(B,!0)[1]?n.taskOpen=!0:n.taskClosed=!0,r.highlightFormatting&&(n.formatting="task"),n.taskList=!1,d(n)}if(n.taskOpen=!1,n.taskClosed=!1,n.header&&t.match(/^#+$/,!0))return r.highlightFormatting&&(n.formatting="header"),d(n);var a=t.next();if(n.linkTitle){n.linkTitle=!1;var s=a;"("===a&&(s=")"),s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var l="^\\s*(?:[^"+s+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(t.match(new RegExp(l),!0))return x.linkHref}if("`"===a){var u=n.formatting;r.highlightFormatting&&(n.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=n.code||n.quote&&1!=f){if(f==n.code){var g=d(n);return n.code=0,g}return n.formatting=u,d(n)}return n.code=f,d(n)}if(n.code)return d(n);if("\\"===a&&(t.next(),r.highlightFormatting)){var v=d(n),A=x.formatting+"-escape";return v?v+" "+A:A}if("!"===a&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return n.imageMarker=!0,n.image=!0,r.highlightFormatting&&(n.formatting="image"),d(n);if("["===a&&n.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return n.imageMarker=!1,n.imageAltText=!0,r.highlightFormatting&&(n.formatting="image"),d(n);if("]"===a&&n.imageAltText){r.highlightFormatting&&(n.formatting="image");var v=d(n);return n.imageAltText=!1,n.image=!1,n.inline=n.f=h,v}if("["===a&&!n.image)return n.linkText&&t.match(/^.*?\]/)?d(n):(n.linkText=!0,r.highlightFormatting&&(n.formatting="link"),d(n));if("]"===a&&n.linkText){r.highlightFormatting&&(n.formatting="link");var v=d(n);return n.linkText=!1,n.inline=n.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?h:m,v}if("<"===a&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=p,r.highlightFormatting&&(n.formatting="link");var v=d(n);return v?v+=" ":v="",v+x.linkInline}if("<"===a&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=p,r.highlightFormatting&&(n.formatting="link");var v=d(n);return v?v+=" ":v="",v+x.linkEmail}if(r.xml&&"<"===a&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=t.string.indexOf(">",t.pos);if(-1!=b){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(t.string.substring(t.start,b))&&(n.md_inside=!0)}return t.backUp(1),n.htmlState=e.startState(y),o(t,n,c)}if(r.xml&&"<"===a&&t.match(/^\/\w*?>/))return n.md_inside=!1,"tag";if("*"===a||"_"===a){for(var C=1,k=1==t.pos?" ":t.string.charAt(t.pos-2);C<3&&t.eat(a);)C++;var w=t.peek()||" ",M=!/\s/.test(w)&&(!T.test(w)||/\s/.test(k)||T.test(k)),S=!/\s/.test(k)&&(!T.test(k)||/\s/.test(w)||T.test(w)),E=null,_=null;if(C%2&&(n.em||!M||"*"!==a&&S&&!T.test(k)?n.em!=a||!S||"*"!==a&&M&&!T.test(w)||(E=!1):E=!0),C>1&&(n.strong||!M||"*"!==a&&S&&!T.test(k)?n.strong!=a||!S||"*"!==a&&M&&!T.test(w)||(_=!1):_=!0),null!=_||null!=E){r.highlightFormatting&&(n.formatting=null==E?"strong":null==_?"em":"strong em"),!0===E&&(n.em=a),!0===_&&(n.strong=a);var g=d(n);return!1===E&&(n.em=!1),!1===_&&(n.strong=!1),g}}else if(" "===a&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(n);t.backUp(1)}if(r.strikethrough)if("~"===a&&t.eatWhile(a)){if(n.strikethrough){r.highlightFormatting&&(n.formatting="strikethrough");var g=d(n);return n.strikethrough=!1,g}if(t.match(/^[^\s]/,!1))return n.strikethrough=!0,r.highlightFormatting&&(n.formatting="strikethrough"),d(n)}else if(" "===a&&t.match(/^~~/,!0)){if(" "===t.peek())return d(n);t.backUp(2)}if(r.emoji&&":"===a&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){n.emoji=!0,r.highlightFormatting&&(n.formatting="emoji");var D=d(n);return n.emoji=!1,D}return" "===a&&(t.match(/^ +$/,!1)?n.trailingSpace++:n.trailingSpace&&(n.trailingSpaceNewLine=!0)),d(n)}function p(e,t){if(">"===e.next()){t.f=t.inline=m,r.highlightFormatting&&(t.formatting="link");var n=d(t);return n?n+=" ":n="",n+x.linkInline}return e.match(/^[^>]+/,!0),x.linkInline}function h(e,t){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(t.f=t.inline=g("("===n?")":"]"),r.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function g(e){return function(t,n){if(t.next()===e){n.f=n.inline=m,r.highlightFormatting&&(n.formatting="link-string");var i=d(n);return n.linkHref=!1,i}return t.match(F[e]),n.linkHref=!0,d(n)}}function v(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=A,e.next(),r.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):i(e,t,m)}function A(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=b,r.highlightFormatting&&(t.formatting="link");var n=d(t);return t.linkText=!1,n}return e.match(/^([^\]\\]|\\.)+/,!0),x.linkText}function b(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=m,x.linkHref+" url")}var y=e.getMode(t,"text/html"),C="null"==y.name;void 0===r.highlightFormatting&&(r.highlightFormatting=!1),void 0===r.maxBlockquoteDepth&&(r.maxBlockquoteDepth=0),void 0===r.taskLists&&(r.taskLists=!1),void 0===r.strikethrough&&(r.strikethrough=!1),void 0===r.emoji&&(r.emoji=!1),void 0===r.fencedCodeBlockHighlighting&&(r.fencedCodeBlockHighlighting=!0),void 0===r.xml&&(r.xml=!0),void 0===r.tokenTypeOverrides&&(r.tokenTypeOverrides={});var x={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 k in x)x.hasOwnProperty(k)&&r.tokenTypeOverrides[k]&&(x[k]=r.tokenTypeOverrides[k]);var w=/^([*\-_])(?:\s*\1){2,}\s*$/,M=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,B=/^\[(x| )\](?=\s)/i,S=r.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,E=/^ *(?:\={1,}|-{1,})\s*$/,_=/^[^#!\[\]*_\\<>` "'(~:]+/,D=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,L=/^\s*\[[^\]]+?\]:.*$/,T=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,F={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/},N={startState:function(){return{f:l,prevLine:{stream:null},thisLine:{stream:null},block:l,htmlState:null,indentation:0,inline:m,text:f,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(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(y,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return s(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=c)){var r=e.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(t.indentation=r,t.indentationDiff=null,r>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==c?{state:e.htmlState,mode:y}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:N}},indent:function(t,r,n){return t.block==c&&y.indent?y.indent(t.htmlState,r,n):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,r,n):e.Pass},blankLine:s,getType:d,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return N},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")})},1304:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(n,i){function o(e,t){function r(r){return t.tokenize=r,r(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?r(l("atom","]]>")):null:e.match("--")?r(l("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(c(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=l("meta","?>"),"meta"):(B=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==n){var i;return i=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),i?"atom":"error"}return e.eatWhile(/[^&<]/),null}function a(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=o,B=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return B="equals",null;if("<"==r){t.tokenize=o,t.state=m,t.tagName=t.tagStart=null;var n=t.tokenize(e,t);return n?n+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=s(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function s(e){var t=function(t,r){for(;!t.eol();)if(t.next()==e){r.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function l(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=o;break}r.next()}return e}}function c(e){return function(t,r){for(var n;null!=(n=t.next());){if("<"==n)return r.tokenize=c(e+1),r.tokenize(t,r);if(">"==n){if(1==e){r.tokenize=o;break}return r.tokenize=c(e-1),r.tokenize(t,r)}}return"meta"}}function u(e,t,r){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=r,(k.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function d(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var r;;){if(!e.context)return;if(r=e.context.tagName,!k.contextGrabbers.hasOwnProperty(r)||!k.contextGrabbers[r].hasOwnProperty(t))return;d(e)}}function m(e,t,r){return"openTag"==e?(r.tagStart=t.column(),p):"closeTag"==e?h:m}function p(e,t,r){return"word"==e?(r.tagName=t.current(),S="tag",A):k.allowMissingTagName&&"endTag"==e?(S="tag bracket",A(e,t,r)):(S="error",p)}function h(e,t,r){if("word"==e){var n=t.current();return r.context&&r.context.tagName!=n&&k.implicitlyClosed.hasOwnProperty(r.context.tagName)&&d(r),r.context&&r.context.tagName==n||!1===k.matchClosing?(S="tag",g):(S="tag error",v)}return k.allowMissingTagName&&"endTag"==e?(S="tag bracket",g(e,t,r)):(S="error",v)}function g(e,t,r){return"endTag"!=e?(S="error",g):(d(r),m)}function v(e,t,r){return S="error",g(e,t,r)}function A(e,t,r){if("word"==e)return S="attribute",b;if("endTag"==e||"selfcloseTag"==e){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==e||k.autoSelfClosers.hasOwnProperty(n)?f(r,n):(f(r,n),r.context=new u(r,n,i==r.indented)),m}return S="error",A}function b(e,t,r){return"equals"==e?y:(k.allowMissing||(S="error"),A(e,t,r))}function y(e,t,r){return"string"==e?C:"word"==e&&k.allowUnquoted?(S="string",A):(S="error",A(e,t,r))}function C(e,t,r){return"string"==e?C:A(e,t,r)}var x=n.indentUnit,k={},w=i.htmlMode?t:r;for(var M in w)k[M]=w[M];for(var M in i)k[M]=i[M];var B,S;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;B=null;var r=t.tokenize(e,t);return(r||B)&&"comment"!=r&&(S=null,t.state=t.state(B||r,e,t),S&&(r="error"==S?r+" error":S)),r},indent:function(t,r,n){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+x;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return n?n.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==k.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+x*(k.multilineTagIndentFactor||1);if(k.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var s=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(s&&s[1])for(;i;){if(i.tagName==s[2]){i=i.prev;break}if(!k.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(s)for(;i;){var l=k.contextGrabbers[i.tagName];if(!l||!l.hasOwnProperty(s[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+x:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:k.htmlMode?"html":"xml",helperType:k.htmlMode?"html":"xml",skipAttribute:function(e){e.state==y&&(e.state=A)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],r=e.context;r;r=r.prev)r.tagName&&t.push(r.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},1305:function(e,t,r){!function(e){e(r(1001))}(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","ino"]},{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","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{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:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["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 r=e.modeInfo[t];r.mimes&&(r.mime=r.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.mime==t)return n;if(n.mimes)for(var i=0;i<n.mimes.length;i++)if(n.mimes[i]==t)return n}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.ext)for(var i=0;i<n.ext.length;i++)if(n.ext[i]==t)return n}},e.findModeByFileName=function(t){for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.file&&n.file.test(t))return n}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var r=0;r<e.modeInfo.length;r++){var n=e.modeInfo[r];if(n.name.toLowerCase()==t)return n;if(n.alias)for(var i=0;i<n.alias.length;i++)if(n.alias[i].toLowerCase()==t)return n}}})},1306:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";e.defineMode("javascript",function(t,r){function n(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function i(e,t,r){return je=e,He=r,t}function o(e,t){var r=e.next();if('"'==r||"'"==r)return t.tokenize=a(r),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return i("number","number");if("."==r&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return i(r);if("="==r&&e.eat(">"))return i("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return i("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),i("number","number");if("/"==r)return e.eat("*")?(t.tokenize=s,s(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):Pe(e,t,1)?(n(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),i("regexp","string-2")):(e.eat("="),i("operator","operator",e.current()));if("`"==r)return t.tokenize=l,l(e,t);if("#"==r)return e.skipToEnd(),i("error","error");if("<"==r&&e.match("!--")||"-"==r&&e.match("->"))return e.skipToEnd(),i("comment","comment");if(Ke.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),i("operator","operator",e.current());if(Ve.test(r)){e.eatWhile(Ve);var o=e.current();if("."!=t.lastType){if($e.propertyIsEnumerable(o)){var c=$e[o];return i(c.type,c.style,o)}if("async"==o&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return i("async","keyword",o)}return i("variable","variable",o)}}function a(e){return function(t,r){var n,a=!1;if(Ue&&"@"==t.peek()&&t.match(Qe))return r.tokenize=o,i("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=o),i("string","string")}}function s(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return i("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(Ge){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var i=0,o=!1,a=r-1;a>=0;--a){var s=e.string.charAt(a),l=Xe.indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(Ve.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;var c=e.string.charAt(a-1);if(c==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}function u(e,t,r,n,i,o){this.indented=e,this.column=t,this.type=r,this.prev=i,this.info=o,null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function f(e,t,r,n,i){var o=e.cc;for(Je.state=e,Je.stream=i,Je.marked=null,Je.cc=o,Je.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((o.length?o.pop():Ye?_:S)(r,n)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Je.marked?Je.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Je.cc.push(arguments[e])}function p(){return m.apply(null,arguments),!0}function h(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function g(e){var t=Je.state;if(Je.marked="def",t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=v(e,t.context);if(null!=n)return void(t.context=n)}else if(!h(e,t.localVars))return void(t.localVars=new y(e,t.localVars));r.globalVars&&!h(e,t.globalVars)&&(t.globalVars=new y(e,t.globalVars))}function v(e,t){if(t){if(t.block){var r=v(e,t.prev);return r?r==t.prev?t:new b(r,t.vars,!0):null}return h(e,t.vars)?t:new b(t.prev,new y(e,t.vars),!1)}return null}function A(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function b(e,t,r){this.prev=e,this.vars=t,this.block=r}function y(e,t){this.name=e,this.next=t}function C(){Je.state.context=new b(Je.state.context,Je.state.localVars,!1),Je.state.localVars=et}function x(){Je.state.context=new b(Je.state.context,Je.state.localVars,!0),Je.state.localVars=null}function k(){Je.state.localVars=Je.state.context.vars,Je.state.context=Je.state.context.prev}function w(e,t){var r=function(){var r=Je.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var i=r.lexical;i&&")"==i.type&&i.align;i=i.prev)n=i.indented;r.lexical=new u(n,Je.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function M(){var e=Je.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function B(e){function t(r){return r==e?p():";"==e||"}"==r||")"==r||"]"==r?m():p(t)}return t}function S(e,t){return"var"==e?p(w("vardef",t),ce,B(";"),M):"keyword a"==e?p(w("form"),L,S,M):"keyword b"==e?p(w("form"),S,M):"keyword d"==e?Je.stream.match(/^\s*$/,!1)?p():p(w("stat"),F,B(";"),M):"debugger"==e?p(B(";")):"{"==e?p(w("}"),x,Q,M,k):";"==e?p():"if"==e?("else"==Je.state.lexical.info&&Je.state.cc[Je.state.cc.length-1]==M&&Je.state.cc.pop()(),p(w("form"),L,S,M,he)):"function"==e?p(be):"for"==e?p(w("form"),ge,S,M):"class"==e||Ge&&"interface"==t?(Je.marked="keyword",p(w("form","class"==e?e:t),we,M)):"variable"==e?Ge&&"declare"==t?(Je.marked="keyword",p(S)):Ge&&("module"==t||"enum"==t||"type"==t)&&Je.stream.match(/^\s*\w/,!1)?(Je.marked="keyword","enum"==t?p(ze):"type"==t?p(Ce,B("operator"),te,B(";")):p(w("form"),ue,B("{"),w("}"),Q,M,M)):Ge&&"namespace"==t?(Je.marked="keyword",p(w("form"),_,S,M)):Ge&&"abstract"==t?(Je.marked="keyword",p(S)):p(w("stat"),R):"switch"==e?p(w("form"),L,B("{"),w("}","switch"),x,Q,M,M,k):"case"==e?p(_,B(":")):"default"==e?p(B(":")):"catch"==e?p(w("form"),C,E,S,M,k):"export"==e?p(w("stat"),Ee,M):"import"==e?p(w("stat"),De,M):"async"==e?p(S):"@"==t?p(_,S):m(w("stat"),_,B(";"),M)}function E(e){if("("==e)return p(xe,B(")"))}function _(e,t){return T(e,t,!1)}function D(e,t){return T(e,t,!0)}function L(e){return"("!=e?m():p(w(")"),_,B(")"),M)}function T(e,t,r){if(Je.state.fatArrowAt==Je.stream.start){var n=r?P:W;if("("==e)return p(C,w(")"),$(xe,")"),M,B("=>"),n,k);if("variable"==e)return m(C,ue,B("=>"),n,k)}var i=r?O:N;return Ze.hasOwnProperty(e)?p(i):"function"==e?p(be,i):"class"==e||Ge&&"interface"==t?(Je.marked="keyword",p(w("form"),ke,M)):"keyword c"==e||"async"==e?p(r?D:_):"("==e?p(w(")"),F,B(")"),M,i):"operator"==e||"spread"==e?p(r?D:_):"["==e?p(w("]"),Oe,M,i):"{"==e?K(Y,"}",null,i):"quasi"==e?m(z,i):"new"==e?p(j(r)):"import"==e?p(_):p()}function F(e){return e.match(/[;\}\)\],]/)?m():m(_)}function N(e,t){return","==e?p(_):O(e,t,!1)}function O(e,t,r){var n=0==r?N:O,i=0==r?_:D;return"=>"==e?p(C,r?P:W,k):"operator"==e?/\+\+|--/.test(t)||Ge&&"!"==t?p(n):Ge&&"<"==t&&Je.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?p(w(">"),$(te,">"),M,n):"?"==t?p(_,B(":"),i):p(i):"quasi"==e?m(z,n):";"!=e?"("==e?K(D,")","call",n):"."==e?p(U,n):"["==e?p(w("]"),F,B("]"),M,n):Ge&&"as"==t?(Je.marked="keyword",p(te,n)):"regexp"==e?(Je.state.lastType=Je.marked="operator",Je.stream.backUp(Je.stream.pos-Je.stream.start-1),p(i)):void 0:void 0}function z(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?p(z):p(_,I)}function I(e){if("}"==e)return Je.marked="string-2",Je.state.tokenize=l,p(z)}function W(e){return c(Je.stream,Je.state),m("{"==e?S:_)}function P(e){return c(Je.stream,Je.state),m("{"==e?S:D)}function j(e){return function(t){return"."==t?p(e?q:H):"variable"==t&&Ge?p(ae,e?O:N):m(e?D:_)}}function H(e,t){if("target"==t)return Je.marked="keyword",p(N)}function q(e,t){if("target"==t)return Je.marked="keyword",p(O)}function R(e){return":"==e?p(M,S):m(N,B(";"),M)}function U(e){if("variable"==e)return Je.marked="property",p()}function Y(e,t){if("async"==e)return Je.marked="property",p(Y);if("variable"==e||"keyword"==Je.style){if(Je.marked="property","get"==t||"set"==t)return p(G);var r;return Ge&&Je.state.fatArrowAt==Je.stream.start&&(r=Je.stream.match(/^\s*:\s*/,!1))&&(Je.state.fatArrowAt=Je.stream.pos+r[0].length),p(V)}return"number"==e||"string"==e?(Je.marked=Ue?"property":Je.style+" property",p(V)):"jsonld-keyword"==e?p(V):Ge&&A(t)?(Je.marked="keyword",p(Y)):"["==e?p(_,X,B("]"),V):"spread"==e?p(D,V):"*"==t?(Je.marked="keyword",p(Y)):":"==e?m(V):void 0}function G(e){return"variable"!=e?m(V):(Je.marked="property",p(be))}function V(e){return":"==e?p(D):"("==e?m(be):void 0}function $(e,t,r){function n(i,o){if(r?r.indexOf(i)>-1:","==i){var a=Je.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),p(function(r,n){return r==t||n==t?m():m(e)},n)}return i==t||o==t?p():r&&r.indexOf(";")>-1?m(e):p(B(t))}return function(r,i){return r==t||i==t?p():m(e,n)}}function K(e,t,r){for(var n=3;n<arguments.length;n++)Je.cc.push(arguments[n]);return p(w(t,r),$(e,t),M)}function Q(e){return"}"==e?p():m(S,Q)}function X(e,t){if(Ge){if(":"==e)return p(te);if("?"==t)return p(X)}}function Z(e,t){if(Ge&&(":"==e||"in"==t))return p(te)}function J(e){if(Ge&&":"==e)return Je.stream.match(/^\s*\w+\s+is\b/,!1)?p(_,ee,te):p(te)}function ee(e,t){if("is"==t)return Je.marked="keyword",p()}function te(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(Je.marked="keyword",p("typeof"==t?D:te)):"variable"==e||"void"==t?(Je.marked="type",p(oe)):"|"==t||"&"==t?p(te):"string"==e||"number"==e||"atom"==e?p(oe):"["==e?p(w("]"),$(te,"]",","),M,oe):"{"==e?p(w("}"),$(ne,"}",",;"),M,oe):"("==e?p($(ie,")"),re,oe):"<"==e?p($(te,">"),te):void 0}function re(e){if("=>"==e)return p(te)}function ne(e,t){return"variable"==e||"keyword"==Je.style?(Je.marked="property",p(ne)):"?"==t||"number"==e||"string"==e?p(ne):":"==e?p(te):"["==e?p(B("variable"),Z,B("]"),ne):"("==e?m(ye,ne):void 0}function ie(e,t){return"variable"==e&&Je.stream.match(/^\s*[?:]/,!1)||"?"==t?p(ie):":"==e?p(te):"spread"==e?p(ie):m(te)}function oe(e,t){return"<"==t?p(w(">"),$(te,">"),M,oe):"|"==t||"."==e||"&"==t?p(te):"["==e?p(te,B("]"),oe):"extends"==t||"implements"==t?(Je.marked="keyword",p(te)):"?"==t?p(te,B(":"),te):void 0}function ae(e,t){if("<"==t)return p(w(">"),$(te,">"),M,oe)}function se(){return m(te,le)}function le(e,t){if("="==t)return p(te)}function ce(e,t){return"enum"==t?(Je.marked="keyword",p(ze)):m(ue,X,me,pe)}function ue(e,t){return Ge&&A(t)?(Je.marked="keyword",p(ue)):"variable"==e?(g(t),p()):"spread"==e?p(ue):"["==e?K(fe,"]"):"{"==e?K(de,"}"):void 0}function de(e,t){return"variable"!=e||Je.stream.match(/^\s*:/,!1)?("variable"==e&&(Je.marked="property"),"spread"==e?p(ue):"}"==e?m():"["==e?p(_,B("]"),B(":"),de):p(B(":"),ue,me)):(g(t),p(me))}function fe(){return m(ue,me)}function me(e,t){if("="==t)return p(D)}function pe(e){if(","==e)return p(ce)}function he(e,t){if("keyword b"==e&&"else"==t)return p(w("form","else"),S,M)}function ge(e,t){return"await"==t?p(ge):"("==e?p(w(")"),ve,M):void 0}function ve(e){return"var"==e?p(ce,Ae):"variable"==e?p(Ae):m(Ae)}function Ae(e,t){return")"==e?p():";"==e?p(Ae):"in"==t||"of"==t?(Je.marked="keyword",p(_,Ae)):m(_,Ae)}function be(e,t){return"*"==t?(Je.marked="keyword",p(be)):"variable"==e?(g(t),p(be)):"("==e?p(C,w(")"),$(xe,")"),M,J,S,k):Ge&&"<"==t?p(w(">"),$(se,">"),M,be):void 0}function ye(e,t){return"*"==t?(Je.marked="keyword",p(ye)):"variable"==e?(g(t),p(ye)):"("==e?p(C,w(")"),$(xe,")"),M,J,k):Ge&&"<"==t?p(w(">"),$(se,">"),M,ye):void 0}function Ce(e,t){return"keyword"==e||"variable"==e?(Je.marked="type",p(Ce)):"<"==t?p(w(">"),$(se,">"),M):void 0}function xe(e,t){return"@"==t&&p(_,xe),"spread"==e?p(xe):Ge&&A(t)?(Je.marked="keyword",p(xe)):Ge&&"this"==e?p(X,me):m(ue,X,me)}function ke(e,t){return"variable"==e?we(e,t):Me(e,t)}function we(e,t){if("variable"==e)return g(t),p(Me)}function Me(e,t){return"<"==t?p(w(">"),$(se,">"),M,Me):"extends"==t||"implements"==t||Ge&&","==e?("implements"==t&&(Je.marked="keyword"),p(Ge?te:_,Me)):"{"==e?p(w("}"),Be,M):void 0}function Be(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||Ge&&A(t))&&Je.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Je.marked="keyword",p(Be)):"variable"==e||"keyword"==Je.style?(Je.marked="property",p(Ge?Se:be,Be)):"number"==e||"string"==e?p(Ge?Se:be,Be):"["==e?p(_,X,B("]"),Ge?Se:be,Be):"*"==t?(Je.marked="keyword",p(Be)):Ge&&"("==e?m(ye,Be):";"==e||","==e?p(Be):"}"==e?p():"@"==t?p(_,Be):void 0}function Se(e,t){if("?"==t)return p(Se);if(":"==e)return p(te,me);if("="==t)return p(D);var r=Je.state.lexical.prev;return m(r&&"interface"==r.info?ye:be)}function Ee(e,t){return"*"==t?(Je.marked="keyword",p(Ne,B(";"))):"default"==t?(Je.marked="keyword",p(_,B(";"))):"{"==e?p($(_e,"}"),Ne,B(";")):m(S)}function _e(e,t){return"as"==t?(Je.marked="keyword",p(B("variable"))):"variable"==e?m(D,_e):void 0}function De(e){return"string"==e?p():"("==e?m(_):m(Le,Te,Ne)}function Le(e,t){return"{"==e?K(Le,"}"):("variable"==e&&g(t),"*"==t&&(Je.marked="keyword"),p(Fe))}function Te(e){if(","==e)return p(Le,Te)}function Fe(e,t){if("as"==t)return Je.marked="keyword",p(Le)}function Ne(e,t){if("from"==t)return Je.marked="keyword",p(_)}function Oe(e){return"]"==e?p():m($(D,"]"))}function ze(){return m(w("form"),ue,B("{"),w("}"),$(Ie,"}"),M,M)}function Ie(){return m(ue,me)}function We(e,t){return"operator"==e.lastType||","==e.lastType||Ke.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}function Pe(e,t,r){return t.tokenize==o&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}var je,He,qe=t.indentUnit,Re=r.statementIndent,Ue=r.jsonld,Ye=r.json||Ue,Ge=r.typescript,Ve=r.wordCharacters||/[\w$\xa1-\uffff]/,$e=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),Ke=/[+\-*&%=<>!?|~^@]/,Qe=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Xe="([{}])",Ze={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Je={state:null,column:null,marked:null,cc:null},et=new y("this",new y("arguments",null));return k.lex=!0,M.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-qe,0,"block",!1),localVars:r.localVars,context:r.localVars&&new b(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=s&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==je?r:(t.lastType="operator"!=je||"++"!=He&&"--"!=He?je:"incdec",f(t,r,je,He,e))},indent:function(t,n){if(t.tokenize==s)return e.Pass;if(t.tokenize!=o)return 0;var i,a=n&&n.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(n))for(var c=t.cc.length-1;c>=0;--c){var u=t.cc[c];if(u==M)l=l.prev;else if(u!=he)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(i=t.cc[t.cc.length-1])&&(i==N||i==O)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;Re&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=a==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==a?l.indented:"form"==d?l.indented+qe:"stat"==d?l.indented+(We(t,n)?Re||qe:0):"switch"!=l.info||f||0==r.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:qe):l.indented+(/^(?:case|default)\b/.test(n)?qe:2*qe)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Ye?null:"/*",blockCommentEnd:Ye?null:"*/",blockCommentContinue:Ye?null:" * ",lineComment:Ye?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Ye?"json":"javascript",jsonldMode:Ue,jsonMode:Ye,expressionAllowed:Pe,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=_&&t!=D||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},1307:function(e,t,r){!function(e){e(r(1001))}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function r(e){return e.scopes[e.scopes.length-1]}var n=t(["and","or","not","is"]),i=["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"],o=["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",i.concat(o)),e.defineMode("python",function(a,s){function l(e,t){var n=e.sol()&&"\\"!=t.lastToken;if(n&&(t.indent=e.indentation()),n&&"py"==r(t).type){var i=r(t).offset;if(e.eatSpace()){var o=e.indentation();return o>i?f(t):o<i&&p(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var a=c(e,t);return i>0&&p(e,t)&&(a+=" "+g),a}return c(e,t)}function c(e,t){if(e.eatSpace())return null;if(e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,!1)){var r=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(r=!0),e.match(/^[\d_]+\.\d*/)&&(r=!0),e.match(/^\.\d+/)&&(r=!0),r)return e.eat(/J/i),"number";var i=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),e.match(/^0b[01_]+/i)&&(i=!0),e.match(/^0o[0-7_]+/i)&&(i=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),i=!0),e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}if(e.match(M)){return-1!==e.current().toLowerCase().indexOf("f")?(t.tokenize=u(e.current(),t.tokenize),t.tokenize(e,t)):(t.tokenize=d(e.current(),t.tokenize),t.tokenize(e,t))}for(var o=0;o<A.length;o++)if(e.match(A[o]))return"operator";return e.match(v)?"punctuation":"."==t.lastToken&&e.match(w)?"property":e.match(B)||e.match(n)?"keyword":e.match(S)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(w)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),g)}function u(e,t){function r(e){return function(t,i){var o=c(t,i);return"punctuation"==o&&("{"==t.current()?i.tokenize=r(e+1):"}"==t.current()&&(i.tokenize=e>1?r(e-1):n)),o}}function n(n,a){for(;!n.eol();)if(n.eatWhile(/[^'"\{\}\\]/),n.eat("\\")){if(n.next(),i&&n.eol())return o}else{if(n.match(e))return a.tokenize=t,o;if(n.match("{{"))return o;if(n.match("{",!1))return a.tokenize=r(0),n.current()?o:a.tokenize(n,a);if(n.match("}}"))return o;if(n.match("}"))return g;n.eat(/['"]/)}if(i){if(s.singleLineStringErrors)return g;a.tokenize=t}return o}for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var i=1==e.length,o="string";return n.isString=!0,n}function d(e,t){function r(r,o){for(;!r.eol();)if(r.eatWhile(/[^'"\\]/),r.eat("\\")){if(r.next(),n&&r.eol())return i}else{if(r.match(e))return o.tokenize=t,i;r.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return g;o.tokenize=t}return i}for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,i="string";return r.isString=!0,r}function f(e){for(;"py"!=r(e).type;)e.scopes.pop();e.scopes.push({offset:r(e).offset+a.indentUnit,type:"py",align:null})}function m(e,t,r){var n=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+y,type:r,align:n})}function p(e,t){for(var n=e.indentation();t.scopes.length>1&&r(t).offset>n;){if("py"!=r(t).type)return!0;t.scopes.pop()}return r(t).offset!=n}function h(e,t){e.sol()&&(t.beginningOfLine=!0);var n=t.tokenize(e,t),i=e.current();if(t.beginningOfLine&&"@"==i)return e.match(w,!1)?"meta":k?"operator":g;if(/\S/.test(i)&&(t.beginningOfLine=!1),"variable"!=n&&"builtin"!=n||"meta"!=t.lastToken||(n="meta"),"pass"!=i&&"return"!=i||(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=r(t).type||f(t),1==i.length&&!/string|comment/.test(n)){var o="[({".indexOf(i);if(-1!=o&&m(e,t,"])}".slice(o,o+1)),-1!=(o="])}".indexOf(i))){if(r(t).type!=i)return g;t.indent=t.scopes.pop().offset-y}}return t.dedent>0&&e.eol()&&"py"==r(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}for(var g="error",v=s.delimiters||s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,A=[s.singleOperators,s.doubleOperators,s.doubleDelimiters,s.tripleDelimiters,s.operators||/^([-+*\/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],b=0;b<A.length;b++)A[b]||A.splice(b--,1);var y=s.hangingIndent||a.indentUnit,C=i,x=o;void 0!=s.extra_keywords&&(C=C.concat(s.extra_keywords)),void 0!=s.extra_builtins&&(x=x.concat(s.extra_builtins));var k=!(s.version&&Number(s.version)<3);if(k){var w=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;C=C.concat(["nonlocal","False","True","None","async","await"]),x=x.concat(["ascii","bytes","exec","print"]);var M=new RegExp("^(([rbuf]|(br)|(fr))?('{3}|\"{3}|['\"]))","i")}else{var w=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;C=C.concat(["exec","print"]),x=x.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var M=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var B=t(C),S=t(x);return{startState:function(e){return{tokenize:l,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;r&&(t.errorToken=!1);var n=h(e,t);return n&&"comment"!=n&&(t.lastToken="keyword"==n||"punctuation"==n?e.current():n),"punctuation"==n&&(n=null),e.eol()&&t.lambda&&(t.lambda=!1),r?n+" "+g:n},indent:function(t,n){if(t.tokenize!=l)return t.tokenize.isString?e.Pass:0;var i=r(t),o=i.type==n.charAt(0);return null!=i.align?i.align-(o?1:0):i.offset-(o?y:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-python","python");e.defineMIME("text/x-cython",{name:"python",extra_keywords:function(e){return e.split(" ")}("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})},969:function(e,t,r){"use strict";function n(e){return e?e.replace(/\r\n|\r/g,"\n"):e}var i=r(30),o=function(e){return e&&e.__esModule?e:{default:e}}(i),a=r(2),s=(r(51),r(13)),l=r(18),c=r(369),u=r(1276),d=r(1015);r(1277),r(1279),r(1281),r(1282),r(1284),r(1104),r(1286),r(1287),r(1288),r(1289),r(1290),r(1291),r(1292),r(1293),r(1295),r(1297),r(1299),r(1301),r(1303),r(1306),r(1307);var f=d({displayName:"CodeMirror",propTypes:{autoFocus:s.bool,className:s.any,codeMirrorInstance:s.func,defaultValue:s.string,name:s.string,onChange:s.func,onCursorActivity:s.func,onFocusChange:s.func,onScroll:s.func,options:s.object,path:s.string,value:s.string,preserveScrollPosition:s.bool},getDefaultProps:function(){return{preserveScrollPosition:!1}},getCodeMirrorInstance:function(){return this.props.codeMirrorInstance||r(1001)},getInitialState:function(){return{isFocused:!1}},componentWillMount:function(){this.componentWillReceiveProps=c(this.componentWillReceiveProps,0),this.props.path&&console.error("Warning: react-codemirror: the `path` prop has been changed to `name`")},componentDidMount:function(){var e=this,t=this.getCodeMirrorInstance();setTimeout(function(){e.codeMirror=t.fromTextArea(e.textareaNode,e.props.options),e.codeMirror.on("change",e.codemirrorValueChanged),e.codeMirror.on("cursorActivity",e.cursorActivity),e.codeMirror.on("focus",e.focusChanged.bind(e,!0)),e.codeMirror.on("blur",e.focusChanged.bind(e,!1)),e.codeMirror.on("scroll",e.scrollChanged),e.codeMirror.setValue(e.props.defaultValue||e.props.value||"")},0)},componentWillUnmount:function(){this.codeMirror&&this.codeMirror.toTextArea()},componentWillReceiveProps:function(e){if(this.codeMirror&&void 0!==e.value&&e.value!==this.props.value&&n(this.codeMirror.getValue())!==n(e.value))if(this.props.preserveScrollPosition){var t=this.codeMirror.getScrollInfo();this.codeMirror.setValue(e.value),this.codeMirror.scrollTo(t.left,t.top)}else this.codeMirror.setValue(e.value);if("object"===(0,o.default)(e.options))for(var r in e.options)e.options.hasOwnProperty(r)&&this.setOptionIfChanged(r,e.options[r])},setOptionIfChanged:function(e,t){var r=this.codeMirror.getOption(e);u(r,t)||this.codeMirror.setOption(e,t)},getCodeMirror:function(){return this.codeMirror},focus:function(){this.codeMirror&&this.codeMirror.focus()},focusChanged:function(e){this.setState({isFocused:e}),this.props.onFocusChange&&this.props.onFocusChange(e)},cursorActivity:function(e){this.props.onCursorActivity&&this.props.onCursorActivity(e)},scrollChanged:function(e){this.props.onScroll&&this.props.onScroll(e.getScrollInfo())},codemirrorValueChanged:function(e,t){this.props.onChange&&"setValue"!==t.origin&&this.props.onChange(e.getValue(),t)},render:function(){var e=this,t=l("ReactCodeMirror",this.state.isFocused?"ReactCodeMirror--focused":null,this.props.className);return a.createElement("div",{className:t},a.createElement("textarea",{ref:function(t){return e.textareaNode=t},name:this.props.name||this.props.path,defaultValue:this.props.value,autoComplete:"off",autoFocus:this.props.autoFocus}))}});e.exports=f}});
//# sourceMappingURL=4.chunk.js.map?v=680c01b7