text: !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=101)}([function(e,t,n){!function(t,n){e.exports=n()}(this,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 n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"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){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 o(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function a(t,n){var r=t.className;e(n).test(r)||(t.className+=(r?" ":"")+n)}function u(t,n){for(var r=t.split(" "),i=0;i<r.length;i++)r[i]&&!e(r[i]).test(n)&&(n+=" "+r[i]);return n}function s(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function l(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||n===!1&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function c(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=r||0,a=i||0;;){var u=e.indexOf("\t",o);if(u<0||u>=t)return a+(t-o);a+=u-o,a+=n-a%n,o=u+1}}function f(){this.id=null}function h(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function d(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);o==-1&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function p(e){for(;Da.length<=e;)Da.push(m(Da)+" ");return Da[e]}function m(e){return e[e.length-1]}function g(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function v(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function y(){}function b(e,t){var n;return Object.create?n=Object.create(e):(y.prototype=e,n=new y),t&&l(t,n),n}function x(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Ba.test(e))}function C(e,t){return t?!!(t.source.indexOf("\\w")>-1&&x(e))||t.test(e):x(e)}function A(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function w(e){return e.charCodeAt(0)>=768&&Ta.test(e)}function E(e,t,n){var i=this;this.input=n,i.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=r("div",null,"CodeMirror-code"),i.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=r("div",null,"CodeMirror-cursors"),i.measure=r("div",null,"CodeMirror-measure"),i.lineMeasure=r("div",null,"CodeMirror-measure"),i.lineSpace=r("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none"),i.mover=r("div",[r("div",[i.lineSpace],"CodeMirror-lines")],null,"position: relative"),i.sizer=r("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=r("div",null,null,"position: absolute; height: "+Ea+"px; width: 1px;"),i.gutters=r("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=r("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=r("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),na&&ra<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),ia||Jo&&ha||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,n.init(i)}function k(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function _(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function S(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function F(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function D(e){if(null==e.parent)return null;for(var t=e.parent,n=h(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function B(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var u=e.lines[a],s=u.height;if(t<s)break;t-=s}return n+a}function T(e,t){return t>=e.first&&t<e.first+e.size}function L(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function M(e,t){return this instanceof M?(this.line=e,void(this.ch=t)):new M(e,t)}function O(e,t){return e.line-t.line||e.ch-t.ch}function N(e){return M(e.line,e.ch)}function I(e,t){return O(e,t)<0?t:e}function j(e,t){return O(e,t)<0?e:t}function R(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function P(e,t){if(t.line<e.first)return M(e.first,0);var n=e.first+e.size-1;return t.line>n?M(n,k(e,n).text.length):$(t,k(e,t.line).text.length)}function $(e,t){var n=e.ch;return null==n||n>t?M(e.line,t):n<0?M(e.line,0):e}function z(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=P(e,t[r]);return n}function W(){La=!0}function H(){Ma=!0}function U(e,t,n){this.marker=e,this.from=t,this.to=n}function q(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function V(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Z(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function G(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(u||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new U(a,o.from,s?null:o.to))}}return r}function Y(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,u=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(u||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new U(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Q(e,t){if(t.full)return null;var n=T(e,t.from.line)&&k(e,t.from.line).markedSpans,r=T(e,t.to.line)&&k(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==O(t.from,t.to),u=G(n,i,a),s=Y(r,o,a),l=1==t.text.length,c=m(t.text).length+(l?i:0);if(u)for(var f=0;f<u.length;++f){var h=u[f];if(null==h.to){var d=q(s,h.marker);d?l&&(h.to=null==d.to?null:d.to+c):h.to=i}}if(s)for(var p=0;p<s.length;++p){var g=s[p];if(null!=g.to&&(g.to+=c),null==g.from){var v=q(u,g.marker);v||(g.from=c,l&&(u||(u=[])).push(g))}else g.from+=c,l&&(u||(u=[])).push(g)}u&&(u=K(u)),s&&s!=u&&(s=K(s));var y=[u];if(!l){var b,x=t.text.length-2;if(x>0&&u)for(var C=0;C<u.length;++C)null==u[C].to&&(b||(b=[])).push(new U(u[C].marker,null,null));for(var A=0;A<x;++A)y.push(b);y.push(s)}return y}function K(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function X(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&h(r,n)!=-1||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],u=a.find(0),s=0;s<i.length;++s){var l=i[s];if(!(O(l.to,u.from)<0||O(l.from,u.to)>0)){var c=[s,1],f=O(l.from,u.from),d=O(l.to,u.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:l.from,to:u.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:u.to,to:l.to}),i.splice.apply(i,c),s+=c.length-1}}return i}function J(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function ee(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function te(e){return e.inclusiveLeft?-1:0}function ne(e){return e.inclusiveRight?1:0}function re(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=O(r.from,i.from)||te(e)-te(t);if(o)return-o;var a=O(r.to,i.to)||ne(e)-ne(t);return a?a:t.id-e.id}function ie(e,t){var n,r=Ma&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||re(n,i.marker)<0)&&(n=i.marker);return n}function oe(e){return ie(e,!0)}function ae(e){return ie(e,!1)}function ue(e,t,n,r,i){var o=k(e,t),a=Ma&&o.markedSpans;if(a)for(var u=0;u<a.length;++u){var s=a[u];if(s.marker.collapsed){var l=s.marker.find(0),c=O(l.from,n)||te(s.marker)-te(i),f=O(l.to,r)||ne(s.marker)-ne(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?O(l.to,n)>=0:O(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?O(l.from,r)<=0:O(l.from,r)<0)))return!0}}}function se(e){for(var t;t=oe(e);)e=t.find(-1,!0).line;return e}function le(e){for(var t,n;t=ae(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ce(e,t){var n=k(e,t),r=se(n);return n==r?t:D(r)}function fe(e,t){if(t>e.lastLine())return t;var n,r=k(e,t);if(!he(e,r))return t;for(;n=ae(r);)r=n.find(1,!0).line;return D(r)+1}function he(e,t){var n=Ma&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&de(e,t,r))return!0}}function de(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return de(e,r.line,q(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.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==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&de(e,t,i))return!0}function pe(e){e=se(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var u=o.children[a];if(u==n)break;t+=u.height}return t}function me(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=oe(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=ae(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function ge(e){var t=e.display,n=e.doc;t.maxLine=k(n,n.first),t.maxLineLength=me(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=me(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function ve(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}function ye(e){return e.level%2?e.to:e.from}function be(e){return e.level%2?e.from:e.to}function xe(e){var t=Se(e);return t?ye(t[0]):0}function Ce(e){var t=Se(e);return t?be(m(t)):e.text.length}function Ae(e,t,n){var r=e[0].level;return t==r||n!=r&&t<n}function we(e,t){var n;Oa=null;for(var r=0;r<e.length;++r){var i=e[r];if(i.from<t&&i.to>t)return r;if(i.from==t||i.to==t){if(null!=n)return Ae(e,i.level,e[n].level)?(i.from!=i.to&&(Oa=n),r):(i.from!=i.to&&(Oa=r),n);n=r}}return n}function Ee(e,t,n,r){if(!r)return t+n;do t+=n;while(t>0&&w(e.text.charAt(t)));return t}function ke(e,t,n,r){var i=Se(e);if(!i)return _e(e,t,n,r);for(var o=we(i,t),a=i[o],u=Ee(e,t,a.level%2?-n:n,r);;){if(u>a.from&&u<a.to)return u;if(u==a.from||u==a.to)return we(i,u)==o?u:(a=i[o+=n],n>0==a.level%2?a.to:a.from);if(a=i[o+=n],!a)return null;u=n>0==a.level%2?Ee(e,a.to,-1,r):Ee(e,a.from,1,r)}}function _e(e,t,n,r){var i=t+n;if(r)for(;i>0&&w(e.text.charAt(i));)i+=n;return i<0||i>e.text.length?null:i}function Se(e){var t=e.order;return null==t&&(t=e.order=Na(e.text)),t}function Fe(e,t){return e._handlers&&e._handlers[t]||Ia}function De(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=h(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Be(e,t){var n=Fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Te(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Be(e,n||t.type,e,t),je(t)||t.codemirrorIgnore}function Le(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)h(n,t[r])==-1&&n.push(t[r])}function Me(e,t){return Fe(e,t).length>0}function Oe(e){e.prototype.on=function(e,t){ja(this,e,t)},e.prototype.off=function(e,t){De(this,e,t)}}function Ne(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ie(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function je(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Re(e){Ne(e),Ie(e)}function Pe(e){return e.target||e.srcElement}function $e(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),da&&e.ctrlKey&&1==t&&(t=3),t}function ze(e){if(null==Aa){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Aa=t.offsetWidth<=1&&t.offsetHeight>2&&!(na&&ra<8))}var i=Aa?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function We(e){if(null!=wa)return wa;var r=n(e,document.createTextNode("AخA")),i=va(r,0,1).getBoundingClientRect(),o=va(r,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(wa=o.right-i.right<3)}function He(e){if(null!=Wa)return Wa;var t=n(e,r("span","x")),i=t.getBoundingClientRect(),o=va(t,0,1).getBoundingClientRect();return Wa=Math.abs(i.left-o.left)>1}function Ue(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ha[e]=t}function qe(e,t){Ua[e]=t}function Ve(e){if("string"==typeof e&&Ua.hasOwnProperty(e))e=Ua[e];else if(e&&"string"==typeof e.name&&Ua.hasOwnProperty(e.name)){var t=Ua[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 Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ze(e,t){t=Ve(t);var n=Ha[t.name];if(!n)return Ze(e,"text/plain");var r=n(e,t);if(qa.hasOwnProperty(t.name)){var i=qa[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ge(e,t){var n=qa.hasOwnProperty(e)?qa[e]:qa[e]={};l(t,n)}function Ye(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),n&&n.mode!=e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}function Xe(e,t,n,r){var i=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=function(n){var r=e.state.overlays[n],a=1,u=0;at(e,t.text,r.mode,!0,function(e,t){for(var n=a;u<e;){var o=i[a];o>e&&i.splice(a,1,e,i[a+1],o),a+=2,u=Math.min(e,o)}if(t)if(r.opaque)i.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;n<a;n+=2){var s=i[n+1];i[n+1]=(s?s+" ":"")+"overlay "+t}},o)},u=0;u<e.state.overlays.length;++u)a(u);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Je(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=et(e,D(t)),i=Xe(e,t,t.text.length>e.options.maxHighlightLength?Ye(e.doc.mode,r):r);t.stateAfter=r,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return!0;var o=ut(e,t,n),a=o>r.first&&k(r,o-1).stateAfter;return a=a?Ye(r.mode,a):Ke(r.mode),r.iter(o,t,function(n){tt(e,n.text,a);var u=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo;n.stateAfter=u?Ye(r.mode,a):null,++o}),n&&(r.frontier=o),a}function tt(e,t,n,r){var i=e.doc.mode,o=new Va(t,e.options.tabSize);for(o.start=o.pos=r||0,""==t&&nt(i,n);!o.eol();)rt(i,o,n),o.start=o.pos}function nt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Qe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function rt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Qe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function it(e,t,n,r){var i,o=function(e){return{start:f.start,end:f.pos,string:f.current(),type:i||null,state:e?Ye(a.mode,c):c}},a=e.doc,u=a.mode;t=P(a,t);var s,l=k(a,t.line),c=et(e,t.line,n),f=new Va(l.text,e.options.tabSize);for(r&&(s=[]);(r||f.pos<t.ch)&&!f.eol();)f.start=f.pos,i=rt(u,f,c),r&&s.push(o(!0));return r?s:o()}function ot(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function at(e,t,n,r,i,o,a){var u=n.flattenSpans;null==u&&(u=e.options.flattenSpans);var s,l=0,c=null,f=new Va(t,e.options.tabSize),h=e.options.addModeClass&&[null];for(""==t&&ot(nt(n,r),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(u=!1,a&&tt(e,t,r,f.pos),f.pos=t.length,s=null):s=ot(rt(n,f,r,h),o),h){var d=h[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!u||c!=s){for(;l<f.start;)l=Math.min(f.start,l+5e3),i(l,c);c=s}f.start=f.pos}for(;l<f.pos;){var p=Math.min(f.pos,l+5e3);i(p,c),l=p}}function ut(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),u=t;u>a;--u){if(u<=o.first)return o.first;var s=k(o,u-1);if(s.stateAfter&&(!n||u<=o.frontier))return u;var l=c(s.text,null,e.options.tabSize);(null==i||r>l)&&(i=u-1,r=l)}return i}function st(e,t,n){this.text=e,ee(this,t),this.height=n?n(this):1}function lt(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),J(e),ee(e,n);var i=r?r(e):1;i!=e.height&&F(e,i)}function ct(e){e.parent=null,J(e)}function ft(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ya:Ga;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function ht(e,t){var n=r("span",null,null,ia?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(na||ia)&&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;i.pos=0,i.addToken=pt,We(e.display.measure)&&(s=Se(a))&&(i.addToken=gt(i.addToken,s)),i.map=[];var l=t!=e.display.externalMeasured&&D(a);yt(a,i,Je(e,a,l)),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=u(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=u(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(ze(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ia){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Be(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=u(i.pre.className,i.textClass||"")),i}function dt(e){var t=r("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function pt(e,t,n,i,o,a,u){if(t){var s,l=e.splitSpaces?mt(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){s=document.createDocumentFragment();for(var h=0;;){c.lastIndex=h;var d=c.exec(t),m=d?d.index-h:t.length-h;if(m){var g=document.createTextNode(l.slice(h,h+m));na&&ra<9?s.appendChild(r("span",[g])):s.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!d)break;h+=m+1;var v=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;v=s.appendChild(r("span",p(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(v=s.appendChild(r("span","\r"==d[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",d[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(d[0]),v.setAttribute("cm-text",d[0]),na&&ra<9?s.appendChild(r("span",[v])):s.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,s=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,s),na&&ra<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||i||o||f||u){var x=n||"";i&&(x+=i),o&&(x+=o);var C=r("span",[s],x,u);return a&&(C.title=a),e.content.appendChild(C)}e.content.appendChild(s)}}function mt(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function gt(e,t){return function(n,r,i,o,a,u,s){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var f=void 0,h=0;h<t.length&&(f=t[h],!(f.to>l&&f.from<=l));h++);if(f.to>=c)return e(n,r,i,o,a,u,s);e(n,r.slice(0,f.to-l),i,o,null,u,s),o=null,r=r.slice(f.to-l),l=f.to}}}function vt(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function yt(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,u,s,l,c,f,h,d=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=l=c=f=u="",h=null,v=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var C=r[x],A=C.marker;"bookmark"==A.type&&C.from==p&&A.widgetNode?y.push(A):C.from<=p&&(null==C.to||C.to>p||A.collapsed&&C.to==p&&C.from==p)?(null!=C.to&&C.to!=p&&v>C.to&&(v=C.to,l=""),A.className&&(s+=" "+A.className),A.css&&(u=(u?u+";":"")+A.css),A.startStyle&&C.from==p&&(c+=" "+A.startStyle),A.endStyle&&C.to==v&&(b||(b=[])).push(A.endStyle,C.to),A.title&&!f&&(f=A.title),A.collapsed&&(!h||re(h.marker,A)<0)&&(h=C)):C.from>p&&v>C.from&&(v=C.from)}if(b)for(var w=0;w<b.length;w+=2)b[w+1]==v&&(l+=" "+b[w]);if(!h||h.from==p)for(var E=0;E<y.length;++E)vt(t,0,y[E]);if(h&&(h.from||0)==p){if(vt(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var k=Math.min(d,v);;){if(g){var _=p+g.length;if(!h){var S=_>k?g.slice(0,k-p):g;t.addToken(t,S,a?a+s:s,c,p+S.length==v?l:"",f,u)}if(_>=k){g=g.slice(k-p),p=k;break}p=_,c=""}g=i.slice(o,o=n[m++]),a=ft(n[m++],t.cm.options)}}else for(var F=1;F<n.length;F+=2)t.addToken(t,i.slice(o,o=n[F]),ft(n[F+1],t.cm.options))}function bt(e,t,n){this.line=t,this.rest=le(t),this.size=this.rest?D(m(this.rest))-n+1:1,this.node=this.text=null,this.hidden=he(e,t)}function xt(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new bt(e.doc,k(e.doc,o),o);r=o+a.size,i.push(a)}return i}function Ct(e){Qa?Qa.ops.push(e):e.ownsGroup=Qa={ops:[e],delayedCallbacks:[]}}function At(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function wt(e,t){var n=e.ownsGroup;if(n)try{At(n)}finally{Qa=null,t(n)}}function Et(e,t){var n=Fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);Qa?r=Qa.delayedCallbacks:Ka?r=Ka:(r=Ka=[],setTimeout(kt,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function kt(){var e=Ka;Ka=null;for(var t=0;t<e.length;++t)e[t]()}function _t(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Bt(e,t):"gutter"==o?Lt(e,t,n,r):"class"==o?Tt(t):"widget"==o&&Mt(e,t,r)}t.changes=null}function St(e){return e.node==e.text&&(e.node=r("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),na&&ra<8&&(e.node.style.zIndex=2)),e.node}function Ft(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=St(e);e.background=n.insertBefore(r("div",null,t),n.firstChild)}}function Dt(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):ht(e,t)}function Bt(e,t){var n=t.text.className,r=Dt(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Tt(t)):n&&(t.text.className=n)}function Tt(e){Ft(e),e.line.wrapClass?St(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function Lt(e,t,n,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=St(t);t.gutterBackground=r("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),o.insertBefore(t.gutterBackground,t.text)}var a=t.line.gutterMarkers;if(e.options.lineNumbers||a){var u=St(t),s=t.gutter=r("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),u.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||a&&a["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(r("div",L(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),a)for(var l=0;l<e.options.gutters.length;++l){var c=e.options.gutters[l],f=a.hasOwnProperty(c)&&a[c];f&&s.appendChild(r("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Mt(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);Nt(e,t,n)}function Ot(e,t,n,r){var i=Dt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Tt(t),Lt(e,t,n,r),Nt(e,t,r),t.node}function Nt(e,t,n){if(It(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)It(e,t.rest[r],t,n,!1)}function It(e,t,n,i,o){if(t.widgets)for(var a=St(n),u=0,s=t.widgets;u<s.length;++u){var l=s[u],c=r("div",[l.node],"CodeMirror-linewidget");l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),jt(l,c,n,i),e.display.input.setUneditable(c),o&&l.above?a.insertBefore(c,n.gutter||n.text):a.appendChild(c),Et(l,"redraw")}}function jt(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Rt(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!i(document.body,e.node)){var o="position: relative;";e.coverGutter&&(o+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(o+="width: "+t.display.wrapper.clientWidth+"px;"),n(t.display.measure,r("div",[e.node],null,o))}return e.height=e.node.parentNode.offsetHeight}function Pt(e,t){for(var n=Pe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function $t(e){return e.lineSpace.offsetTop}function zt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Wt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=n(e.measure,r("pre","x")),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 Ht(e){return Ea-e.display.nativeBarWidth}function Ut(e){return e.display.scroller.clientWidth-Ht(e)-e.display.barWidth}function qt(e){return e.display.scroller.clientHeight-Ht(e)-e.display.barHeight}function Vt(e,t,n){var r=e.options.lineWrapping,i=r&&Ut(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),u=0;u<a.length-1;u++){var s=a[u],l=a[u+1];Math.abs(s.bottom-l.bottom)>2&&o.push((s.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(D(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Gt(e,t){t=se(t);var r=D(t),i=e.display.externalMeasured=new bt(e.doc,t,r);i.lineN=r;var o=i.built=ht(e,i);return i.text=o.pre,n(e.display.lineMeasure,o.pre),i}function Yt(e,t,n,r){return Xt(e,Kt(e,t),n,r)}function Qt(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[En(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Kt(e,t){var n=D(t),r=Qt(e,n);r&&!r.text?r=null:r&&r.changes&&(_t(e,r,n,bn(e)),e.curOp.forceUpdate=!0),r||(r=Gt(e,t));var i=Zt(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Xt(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Vt(e,t.view,t.rect),t.hasHeights=!0),o=tn(e,t,n,r),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 Jt(e,t,n){for(var r,i,o,a,u,s,l=0;l<e.length;l+=3)if(u=e[l],s=e[l+1],t<u?(i=0,o=1,a="left"):t<s?(i=t-u,o=i+1):(l==e.length-3||t==s&&e[l+3]>t)&&(o=s-u,i=o-1,t>=s&&(a="right")),null!=i){if(r=e[l+2],u==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[(l-=3)+2],a="left";if("right"==n&&i==s-u)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:u,coverEnd:s}}function en(e,t){var n=Xa;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);
  return n}function tn(e,t,n,r){var i,o=Jt(t.map,n,r),a=o.node,u=o.start,s=o.end,l=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;u&&w(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+s<o.coverEnd&&w(t.line.text.charAt(o.coverStart+s));)++s;if(i=na&&ra<9&&0==u&&s==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():en(va(a,u,s).getClientRects(),r),i.left||i.right||0==u)break;s=u,u-=1,l="right"}na&&ra<11&&(i=nn(e.display.measure,i))}else{u>0&&(l=r="right");var f;i=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(na&&ra<9&&!u&&(!i||!i.left&&!i.right)){var h=a.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+yn(e.display),top:h.top,bottom:h.bottom}:Xa}for(var d=i.top-t.rect.top,p=i.bottom-t.rect.top,m=(d+p)/2,g=t.view.measure.heights,v=0;v<g.length-1&&!(m<g[v]);v++);var y=v?g[v-1]:0,b=g[v],x={left:("right"==l?i.right:i.left)-t.rect.left,right:("left"==l?i.left:i.right)-t.rect.left,top:y,bottom:b};return i.left||i.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=d,x.rbottom=p),x}function nn(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!He(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function rn(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 on(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)rn(e.display.view[n])}function an(e){on(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function un(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function sn(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function ln(e,t,n,r,i){if(!i&&t.widgets)for(var o=0;o<t.widgets.length;++o)if(t.widgets[o].above){var a=Rt(t.widgets[o]);n.top+=a,n.bottom+=a}if("line"==r)return n;r||(r="local");var u=pe(t);if("local"==r?u+=$t(e.display):u-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();u+=s.top+("window"==r?0:sn());var l=s.left+("window"==r?0:un());n.left+=l,n.right+=l}return n.top+=u,n.bottom+=u,n}function cn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=un(),i-=sn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function fn(e,t,n,r,i){return r||(r=k(e.doc,t.line)),ln(e,r,Yt(e,r,t.ch,i),n)}function hn(e,t,n,r,i,o){function a(t,a){var u=Xt(e,i,t,a?"right":"left",o);return a?u.left=u.right:u.right=u.left,ln(e,r,u,n)}function u(e,t){var n=s[t],r=n.level%2;return e==ye(n)&&t&&n.level<s[t-1].level?(n=s[--t],e=be(n)-(n.level%2?0:1),r=!0):e==be(n)&&t<s.length-1&&n.level<s[t+1].level&&(n=s[++t],e=ye(n)-n.level%2,r=!1),r&&e==n.to&&e>n.from?a(e-1):a(e,r)}r=r||k(e.doc,t.line),i||(i=Kt(e,r));var s=Se(r),l=t.ch;if(!s)return a(l);var c=we(s,l),f=u(l,c);return null!=Oa&&(f.other=u(l,Oa)),f}function dn(e,t){var n=0;t=P(e.doc,t),e.options.lineWrapping||(n=yn(e.display)*t.ch);var r=k(e.doc,t.line),i=pe(r)+$t(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function pn(e,t,n,r){var i=M(e,t);return i.xRel=r,n&&(i.outside=!0),i}function mn(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return pn(r.first,0,!0,-1);var i=B(r,n),o=r.first+r.size-1;if(i>o)return pn(r.first+r.size-1,k(r,o).text.length,!0,1);t<0&&(t=0);for(var a=k(r,i);;){var u=gn(e,a,i,t,n),s=ae(a),l=s&&s.find(0,!0);if(!s||!(u.ch>l.from.ch||u.ch==l.from.ch&&u.xRel>0))return u;i=D(a=l.to.line)}}function gn(e,t,n,r,i){function o(r){var i=hn(e,M(n,r),"line",t,l);return u=!0,a>i.bottom?i.left-s:a<i.top?i.left+s:(u=!1,i.left)}var a=i-pe(t),u=!1,s=2*e.display.wrapper.clientWidth,l=Kt(e,t),c=Se(t),f=t.text.length,h=xe(t),d=Ce(t),p=o(h),m=u,g=o(d),v=u;if(r>g)return pn(n,d,v,1);for(;;){if(c?d==h||d==ke(t,h,1):d-h<=1){var y=r<p||r-p<=g-r?h:d,b=y==h?m:v,x=r-(y==h?p:g);if(v&&!c&&!/\s/.test(t.text.charAt(y))&&x>0&&y<t.text.length&&l.view.measure.heights.length>1){var C=Xt(e,l,y,"right");a<=C.bottom&&a>=C.top&&Math.abs(r-C.right)<x&&(b=!1,y++,x=r-C.right)}for(;w(t.text.charAt(y));)++y;var A=pn(n,y,b,x<-1?-1:x>1?1:0);return A}var E=Math.ceil(f/2),k=h+E;if(c){k=h;for(var _=0;_<E;++_)k=ke(t,k,1)}var S=o(k);S>r?(d=k,g=S,(v=u)&&(g+=1e3),f=E):(h=k,p=S,m=u,f-=E)}}function vn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Za){Za=r("pre");for(var i=0;i<49;++i)Za.appendChild(document.createTextNode("x")),Za.appendChild(r("br"));Za.appendChild(document.createTextNode("x"))}n(e.measure,Za);var o=Za.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function yn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function bn(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:xn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function xn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Cn(e){var t=vn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/yn(e.display)-3);return function(i){if(he(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 n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function An(e){var t=e.doc,n=Cn(e);t.iter(function(e){var t=n(e);t!=e.height&&F(e,t)})}function wn(e,t,n,r){var i=e.display;if(!n&&"true"==Pe(t).getAttribute("cm-not-content"))return null;var o,a,u=i.lineSpace.getBoundingClientRect();try{o=t.clientX-u.left,a=t.clientY-u.top}catch(e){return null}var s,l=mn(e,o,a);if(r&&1==l.xRel&&(s=k(e.doc,l.line).text).length==l.ch){var f=c(s,s.length,e.options.tabSize)-s.length;l=M(l.line,Math.max(0,Math.round((o-Wt(e.display).left)/yn(e.display))-f))}return l}function En(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function kn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function _n(e,t){for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t!==!1||a!=n.sel.primIndex){var u=n.sel.ranges[a];if(!(u.from().line>=e.display.viewTo||u.to().line<e.display.viewFrom)){var s=u.empty();(s||e.options.showCursorWhenSelecting)&&Sn(e,u.head,i),s||Fn(e,u,o)}}return r}function Sn(e,t,n){var i=hn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=n.appendChild(r("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=n.appendChild(r("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 Fn(e,t,n){function i(e,t,n,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),s.appendChild(r("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?f-e:n)+"px;\n                             height: "+(i-t)+"px"))}function o(t,n,r){function o(n,r){return fn(e,M(t,n),"div",l,r)}var a,s,l=k(u,t),h=l.text.length;return ve(Se(l),n||0,null==r?h:r,function(e,t,u){var l,d,p,m=o(e,"left");if(e==t)l=m,d=p=m.left;else{if(l=o(t-1,"right"),"rtl"==u){var g=m;m=l,l=g}d=m.left,p=l.right}null==n&&0==e&&(d=c),l.top-m.top>3&&(i(d,m.top,null,m.bottom),d=c,m.bottom<l.top&&i(d,m.bottom,null,l.top)),null==r&&t==h&&(p=f),(!a||m.top<a.top||m.top==a.top&&m.left<a.left)&&(a=m),(!s||l.bottom>s.bottom||l.bottom==s.bottom&&l.right>s.right)&&(s=l),d<c+1&&(d=c),i(d,l.top,p-d,l.bottom)}),{start:a,end:s}}var a=e.display,u=e.doc,s=document.createDocumentFragment(),l=Wt(e.display),c=l.left,f=Math.max(a.sizerWidth,Ut(e)-a.sizer.offsetLeft)-l.right,h=t.from(),d=t.to();if(h.line==d.line)o(h.line,h.ch,d.ch);else{var p=k(u,h.line),m=k(u,d.line),g=se(p)==se(m),v=o(h.line,h.ch,g?p.text.length+1:null).end,y=o(d.line,g?0:null,d.ch).start;g&&(v.top<y.top-2?(i(v.right,v.top,null,v.bottom),i(c,y.top,y.left,y.bottom)):i(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&i(c,v.bottom,null,y.top)}n.appendChild(s)}function Dn(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Bn(e){e.state.focused||(e.display.input.focus(),Ln(e))}function Tn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Mn(e))},100)}function Ln(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Be(e,"focus",e,t),e.state.focused=!0,a(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ia&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Dn(e))}function Mn(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Be(e,"blur",e,t),e.state.focused=!1,xa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function On(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=xn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var u=n[a].alignable;if(u)for(var s=0;s<u.length;s++)u[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Nn(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=L(e.options,t.first+t.size-1),i=e.display;if(n.length!=i.lineNumChars){var o=i.measure.appendChild(r("div",[r("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),a=o.firstChild.offsetWidth,u=o.offsetWidth-a;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(a,i.lineGutter.offsetWidth-u)+1,i.lineNumWidth=i.lineNumInnerWidth+u,i.lineNumChars=i.lineNumInnerWidth?n.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",_r(e),!0}return!1}function In(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=void 0;if(!i.hidden){if(na&&ra<8){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var u=i.node.getBoundingClientRect();o=u.bottom-u.top}var s=i.line.height-o;if(o<2&&(o=vn(t)),(s>.001||s<-.001)&&(F(i.line,o),jn(i.line),i.rest))for(var l=0;l<i.rest.length;l++)jn(i.rest[l])}}}function jn(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function Rn(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-$t(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=B(t,r),a=B(t,i);if(n&&n.ensure){var u=n.ensure.from.line,s=n.ensure.to.line;u<o?(o=u,a=B(t,pe(k(t,u))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=B(t,pe(k(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Pn(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,Jo||Er(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),Jo&&Er(e),br(e,100))}function $n(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,On(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function zn(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Wn(e){var t=zn(e);return t.x*=eu,t.y*=eu,t}function Hn(e,t){var n=zn(t),r=n.x,i=n.y,o=e.display,a=o.scroller,u=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(r&&u||i&&s){if(i&&da&&ia)e:for(var l=t.target,c=o.view;l!=a;l=l.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==l){e.display.currentWheelTarget=l;break e}if(r&&!Jo&&!ua&&null!=eu)return i&&s&&Pn(e,Math.max(0,Math.min(a.scrollTop+i*eu,a.scrollHeight-a.clientHeight))),$n(e,Math.max(0,Math.min(a.scrollLeft+r*eu,a.scrollWidth-a.clientWidth))),(!i||i&&s)&&Ne(t),void(o.wheelStartX=null);if(i&&null!=eu){var h=i*eu,d=e.doc.scrollTop,p=d+o.wrapper.clientHeight;h<0?d=Math.max(0,d+h-50):p=Math.min(e.doc.height,p+h+50),Er(e,{top:d,bottom:p})}Ja<20&&(null==o.wheelStartX?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=a.scrollLeft-o.wheelStartX,t=a.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(eu=(eu*Ja+n)/(Ja+1),++Ja)}},200)):(o.wheelDX+=r,o.wheelDY+=i))}}function Un(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+zt(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?n:0,docHeight:r,scrollHeight:r+Ht(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function qn(e,t){t||(t=Un(e));var n=e.display.barWidth,r=e.display.barHeight;Vn(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&In(e),Vn(e,Un(e)),n=e.display.barWidth,r=e.display.barHeight}function Vn(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function Zn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&xa(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ru[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ja(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?$n(e,t):Pn(e,t)},e),e.display.scrollbars.addClass&&a(e.display.wrapper,e.display.scrollbars.addClass)}function Gn(e,t){if(!Te(e,"scrollCursorIntoView")){var n=e.display,i=n.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&&!ca){var a=r("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-$t(e.display))+"px;\n                         height: "+(t.bottom-t.top+Ht(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Yn(e,t,n,r){null==r&&(r=0);for(var i,o=0;o<5;o++){var a=!1;i=hn(e,t);var u=n&&n!=t?hn(e,n):i,s=Kn(e,Math.min(i.left,u.left),Math.min(i.top,u.top)-r,Math.max(i.left,u.left),Math.max(i.bottom,u.bottom)+r),l=e.doc.scrollTop,c=e.doc.scrollLeft;if(null!=s.scrollTop&&(Pn(e,s.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=s.scrollLeft&&($n(e,s.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(a=!0)),!a)break}return i}function Qn(e,t,n,r,i){var o=Kn(e,t,n,r,i);null!=o.scrollTop&&Pn(e,o.scrollTop),null!=o.scrollLeft&&$n(e,o.scrollLeft)}function Kn(e,t,n,r,i){var o=e.display,a=vn(e.display);n<0&&(n=0);var u=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:o.scroller.scrollTop,s=qt(e),l={};i-n>s&&(i=n+s);var c=e.doc.height+zt(o),f=n<a,h=i>c-a;if(n<u)l.scrollTop=f?0:n;else if(i>u+s){var d=Math.min(n,(h?c:i)-s);d!=u&&(l.scrollTop=d)}var p=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:o.scroller.scrollLeft,m=Ut(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),g=r-t>m;return g&&(r=t+m),t<10?l.scrollLeft=0:t<p?l.scrollLeft=Math.max(0,t-(g?0:10)):r>m+p-3&&(l.scrollLeft=r+(g?0:10)-m),l}function Xn(e,t,n){null==t&&null==n||er(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Jn(e){er(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?M(t.line,t.ch-1):t,r=M(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function er(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=dn(e,t.from),r=dn(e,t.to),i=Kn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(i.scrollLeft,i.scrollTop)}}function tr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++iu},Ct(e.curOp)}function nr(e){var t=e.curOp;wt(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;rr(e)})}function rr(e){for(var t=e.ops,n=0;n<t.length;n++)ir(t[n]);for(var r=0;r<t.length;r++)or(t[r]);for(var i=0;i<t.length;i++)ar(t[i]);for(var o=0;o<t.length;o++)ur(t[o]);for(var a=0;a<t.length;a++)sr(t[a])}function ir(e){var t=e.cm,n=t.display;Cr(t),e.updateMaxLine&&ge(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ou(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function or(e){e.updatedDisplay=e.mustUpdate&&Ar(e.cm,e.update)}function ar(e){var t=e.cm,n=t.display;e.updatedDisplay&&In(t),e.barMeasure=Un(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Yt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ht(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function ur(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&$n(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==o()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&qn(t,e.barMeasure),e.updatedDisplay&&Sr(t,e.barMeasure),e.selectionChanged&&Dn(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Bn(e.cm)}function sr(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&wr(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null==e.scrollTop||n.scroller.scrollTop==e.scrollTop&&!e.forceScroll||(r.scrollTop=Math.max(0,Math.min(n.scroller.scrollHeight-n.scroller.clientHeight,e.scrollTop)),n.scrollbars.setScrollTop(r.scrollTop),n.scroller.scrollTop=r.scrollTop),null==e.scrollLeft||n.scroller.scrollLeft==e.scrollLeft&&!e.forceScroll||(r.scrollLeft=Math.max(0,Math.min(n.scroller.scrollWidth-n.scroller.clientWidth,e.scrollLeft)),n.scrollbars.setScrollLeft(r.scrollLeft),n.scroller.scrollLeft=r.scrollLeft,On(t)),e.scrollToPos){var i=Yn(t,P(r,e.scrollToPos.from),P(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&Gn(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var u=0;u<o.length;++u)o[u].lines.length||Be(o[u],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Be(a[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function lr(e,t){if(e.curOp)return t();tr(e);try{return t()}finally{nr(e)}}function cr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);tr(e);try{return t.apply(e,arguments)}finally{nr(e)}}}function fr(e){return function(){if(this.curOp)return e.apply(this,arguments);tr(this);try{return e.apply(this,arguments)}finally{nr(this)}}}function hr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);tr(t);try{return e.apply(this,arguments)}finally{nr(t)}}}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ma&&ce(e.doc,t)<i.viewTo&&mr(e);else if(n<=i.viewFrom)Ma&&fe(e.doc,n+r)>i.viewFrom?mr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)mr(e);else if(t<=i.viewFrom){var o=gr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):mr(e)}else if(n>=i.viewTo){var a=gr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):mr(e)}else{var u=gr(e,t,t,-1),s=gr(e,n,n+r,1);u&&s?(i.view=i.view.slice(0,u.index).concat(xt(e,u.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):mr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function pr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[En(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);h(a,n)==-1&&a.push(n)}}}function mr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function gr(e,t,n,r){var i,o=En(e,t),a=e.display.view;if(!Ma||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var u=e.display.viewFrom,s=0;s<o;s++)u+=a[s].size;if(u!=t){if(r>0){if(o==a.length-1)return null;i=u+a[o].size-t,o++}else i=u-t;t+=i,n+=i}for(;ce(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function vr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=xt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=xt(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(En(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(xt(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,En(e,n)))),r.viewTo=n}function yr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function br(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,s(xr,e))}function xr(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Ye(t.mode,et(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,u=o.text.length>e.options.maxHighlightLength,s=Xe(e,o,u?Ye(t.mode,r):r,!0);o.styles=s.styles;var l=o.styleClasses,c=s.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!f&&h<a.length;++h)f=a[h]!=o.styles[h];f&&i.push(t.frontier),o.stateAfter=u?r:Ye(t.mode,r)}else o.text.length<=e.options.maxHighlightLength&&tt(e,o.text,r),o.stateAfter=t.frontier%5==0?Ye(t.mode,r):null;if(++t.frontier,+new Date>n)return br(e,e.options.workDelay),!0}),i.length&&lr(e,function(){for(var t=0;t<i.length;t++)pr(e,i[t],"text")})}}function Cr(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ht(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ht(e)+"px",t.scrollbarsClipped=!0)}function Ar(e,n){var r=e.display,i=e.doc;if(n.editorIsHidden)return mr(e),!1;if(!n.force&&n.visible.from>=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==yr(e))return!1;Nn(e)&&(mr(e),n.dims=bn(e));var a=i.first+i.size,u=Math.max(n.visible.from-e.options.viewportMargin,i.first),s=Math.min(a,n.visible.to+e.options.viewportMargin);r.viewFrom<u&&u-r.viewFrom<20&&(u=Math.max(i.first,r.viewFrom)),r.viewTo>s&&r.viewTo-s<20&&(s=Math.min(a,r.viewTo)),Ma&&(u=ce(e.doc,u),s=fe(e.doc,s));var l=u!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;vr(e,u,s),r.viewOffset=pe(k(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=yr(e);if(!l&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var f=o();return c>4&&(r.lineDiv.style.display="none"),kr(e,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,f&&o()!=f&&f.offsetHeight&&f.focus(),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,br(e,400)),r.updateLineNumbers=null,!0}function wr(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+zt(e.display)-qt(e),n.top)}),t.visible=Rn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ar(e,t);r=!1){In(e);var i=Un(e);kn(e),qn(e,i),Sr(e,i)}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 Er(e,t){var n=new ou(e,t);if(Ar(e,n)){In(e),wr(e,n);var r=Un(e);kn(e),qn(e,r),Sr(e,r),n.finish()}}function kr(e,n,r){function i(t){var n=t.nextSibling;return ia&&da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,u=o.lineDiv,s=u.firstChild,l=o.view,c=o.viewFrom,f=0;f<l.length;f++){var d=l[f];if(d.hidden);else if(d.node&&d.node.parentNode==u){for(;s!=d.node;)s=i(s);var p=a&&null!=n&&n<=c&&d.lineNumber;d.changes&&(h(d.changes,"gutter")>-1&&(p=!1),_t(e,d,c,r)),p&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(L(e.options,c)))),s=d.node.nextSibling}else{var m=Ot(e,d,c,r);u.insertBefore(m,s)}c+=d.size}for(;s;)s=i(s)}function _r(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Sr(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+Ht(e)+"px"}function Fr(e){var n=e.display.gutters,i=e.options.gutters;t(n);for(var o=0;o<i.length;++o){var a=i[o],u=n.appendChild(r("div",null,"CodeMirror-gutter "+a));"CodeMirror-linenumbers"==a&&(e.display.lineGutter=u,u.style.width=(e.display.lineNumWidth||1)+"px")}n.style.display=o?"":"none",_r(e)}function Dr(e){var t=h(e.gutters,"CodeMirror-linenumbers");t==-1&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Br(e,t){this.ranges=e,this.primIndex=t}function Tr(e,t){this.anchor=e,this.head=t}function Lr(e,t){var n=e[t];e.sort(function(e,t){return O(e.from(),t.from())}),t=h(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(O(o.to(),i.from())>=0){var a=j(o.from(),i.from()),u=I(o.to(),i.to()),s=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new Tr(s?u:a,s?a:u))}}return new Br(e,t)}function Mr(e,t){return new Br([new Tr(e,t||e)],0)}function Or(e){return e.text?M(e.from.line+e.text.length-1,m(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Nr(e,t){if(O(e,t.from)<0)return e;if(O(e,t.to)<=0)return Or(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Or(t).ch-t.to.ch),M(n,r)}function Ir(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Tr(Nr(i.anchor,t),Nr(i.head,t)))}return Lr(n,e.sel.primIndex)}function jr(e,t,n){return e.line==t.line?M(n.line,e.ch-t.ch+n.ch):M(n.line+(e.line-t.line),e.ch)}function Rr(e,t,n){for(var r=[],i=M(e.first,0),o=i,a=0;a<t.length;a++){var u=t[a],s=jr(u.from,i,o),l=jr(Or(u),i,o);if(i=u.to,o=l,"around"==n){var c=e.sel.ranges[a],f=O(c.head,c.anchor)<0;r[a]=new Tr(f?l:s,f?s:l)}else r[a]=new Tr(s,s)}return new Br(r,e.sel.primIndex)}function Pr(e){e.doc.mode=Ze(e.options,e.doc.modeOption),$r(e)}function $r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,br(e,100),e.state.modeGen++,e.curOp&&dr(e)}function zr(e,t){return 0==t.from.ch&&0==t.to.ch&&""==m(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Wr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){lt(e,n,i,r),Et(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new st(l[o],i(o),r));return n}var u=t.from,s=t.to,l=t.text,c=k(e,u.line),f=k(e,s.line),h=m(l),d=i(l.length-1),p=s.line-u.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(zr(e,t)){var g=a(0,l.length-1);o(f,f.text,d),p&&e.remove(u.line,p),g.length&&e.insert(u.line,g)}else if(c==f)if(1==l.length)o(c,c.text.slice(0,u.ch)+h+c.text.slice(s.ch),d);else{var v=a(1,l.length-1);v.push(new st(h+c.text.slice(s.ch),d,r)),o(c,c.text.slice(0,u.ch)+l[0],i(0)),e.insert(u.line+1,v)}else if(1==l.length)o(c,c.text.slice(0,u.ch)+l[0]+f.text.slice(s.ch),i(0)),e.remove(u.line+1,p);else{o(c,c.text.slice(0,u.ch)+l[0],i(0)),o(f,h+f.text.slice(s.ch),d);var y=a(1,l.length-1);p>1&&e.remove(u.line+1,p-1),e.insert(u.line+1,y)}Et(e,"change",e,t)}function Hr(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var u=e.linked[a];if(u.doc!=i){var s=o&&u.sharedHist;n&&!s||(t(u.doc,s),r(u.doc,e,s))}}}r(e,null,!0)}function Ur(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,An(e),Pr(e),e.options.lineWrapping||ge(e),e.options.mode=t.modeOption,dr(e)}function qr(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 Vr(e,t){var n={from:N(t.from),to:Or(t),text:_(e,t.from,t.to)};return Jr(e,n,t.from.line,t.to.line+1),Hr(e,function(e){return Jr(e,n,t.from.line,t.to.line+1)},!0),n}function Zr(e){for(;e.length;){var t=m(e);if(!t.ranges)break;e.pop()}}function Gr(e,t){return t?(Zr(e.done),m(e.done)):e.done.length&&!m(e.done).ranges?m(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),m(e.done)):void 0;
  }function Yr(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,u=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>u-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=Gr(i,i.lastOp==r)))a=m(o.changes),0==O(t.from,t.to)&&0==O(t.from,a.to)?a.to=Or(t):o.changes.push(Vr(e,t));else{var s=m(i.done);for(s&&s.ranges||Xr(e.sel,i.done),o={changes:[Vr(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(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=u,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||Be(e,"historyAdded")}function Qr(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Kr(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Qr(e,o,m(i.done),t))?i.done[i.done.length-1]=t:Xr(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&Zr(i.undone)}function Xr(e,t){var n=m(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Jr(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function ei(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function ti(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(ei(n[i]));return r}function ni(e,t){var n=ti(e,t),r=Q(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var u=0;u<a.length;++u){for(var s=a[u],l=0;l<o.length;++l)if(o[l].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function ri(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Br.prototype.deepCopy.call(o):o);else{var a=o.changes,u=[];r.push({changes:u});for(var s=0;s<a.length;++s){var l=a[s],c=void 0;if(u.push({from:l.from,to:l.to,text:l.text}),t)for(var f in l)(c=f.match(/^spans_(\d+)$/))&&h(t,Number(c[1]))>-1&&(m(u)[f]=l[f],delete l[f])}}}return r}function ii(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(r){var o=O(n,i)<0;o!=O(r,i)<0?(i=n,n=r):o!=O(n,r)<0&&(n=r)}return new Tr(i,n)}return new Tr(r||n,n)}function oi(e,t,n,r){fi(e,new Br([ii(e,e.sel.primary(),t,n)],0),r)}function ai(e,t,n){for(var r=[],i=0;i<e.sel.ranges.length;i++)r[i]=ii(e,e.sel.ranges[i],t[i],null);var o=Lr(r,e.sel.primIndex);fi(e,o,n)}function ui(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,fi(e,Lr(i,e.sel.primIndex),r)}function si(e,t,n,r){fi(e,Mr(t,n),r)}function li(e,t,n){var r={ranges:t.ranges,update:function(t){var n=this;this.ranges=[];for(var r=0;r<t.length;r++)n.ranges[r]=new Tr(P(e,t[r].anchor),P(e,t[r].head))},origin:n&&n.origin};return Be(e,"beforeSelectionChange",e,r),e.cm&&Be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Lr(r.ranges,r.ranges.length-1):t}function ci(e,t,n){var r=e.history.done,i=m(r);i&&i.ranges?(r[r.length-1]=t,hi(e,t,n)):fi(e,t,n)}function fi(e,t,n){hi(e,t,n),Kr(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function hi(e,t,n){(Me(e,"beforeSelectionChange")||e.cm&&Me(e.cm,"beforeSelectionChange"))&&(t=li(e,t,n));var r=n&&n.bias||(O(t.primary().head,e.sel.primary().head)<0?-1:1);di(e,mi(e,t,r,!0)),n&&n.scroll===!1||!e.cm||Jn(e.cm)}function di(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,Le(e.cm)),Et(e,"cursorActivity",e))}function pi(e){di(e,mi(e,e.sel,null,!1),_a)}function mi(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],u=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=vi(e,a.anchor,u&&u.anchor,n,r),l=vi(e,a.head,u&&u.head,n,r);(i||s!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Tr(s,l))}return i?Lr(i,t.primIndex):t}function gi(e,t,n,r,i){var o=k(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var u=o.markedSpans[a],s=u.marker;if((null==u.from||(s.inclusiveLeft?u.from<=t.ch:u.from<t.ch))&&(null==u.to||(s.inclusiveRight?u.to>=t.ch:u.to>t.ch))){if(i&&(Be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var l=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(l=yi(e,l,-r,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(c=O(l,n))&&(r<0?c<0:c>0))return gi(e,l,t,r,i)}var f=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(f=yi(e,f,r,f.line==t.line?o:null)),f?gi(e,f,t,r,i):null}}return t}function vi(e,t,n,r,i){var o=r||1,a=gi(e,t,n,o,i)||!i&&gi(e,t,n,o,!0)||gi(e,t,n,-o,i)||!i&&gi(e,t,n,-o,!0);return a?a:(e.cantEdit=!0,M(e.first,0))}function yi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?P(e,M(t.line-1)):null:n>0&&t.ch==(r||k(e,t.line)).text.length?t.line<e.first+e.size-1?M(t.line+1,0):null:new M(t.line,t.ch+n)}function bi(e){e.setSelection(M(e.firstLine(),0),M(e.lastLine()),_a)}function xi(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=P(e,t)),n&&(r.to=P(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),Be(e,"beforeChange",e,r),e.cm&&Be(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Ci(e,t,n){if(e.cm){if(!e.cm.curOp)return cr(e.cm,Ci)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Me(e,"beforeChange")||e.cm&&Me(e.cm,"beforeChange"))||(t=xi(e,t,!0))){var r=La&&!n&&X(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Ai(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else Ai(e,t)}}function Ai(e,t){if(1!=t.text.length||""!=t.text[0]||0!=O(t.from,t.to)){var n=Ir(e,t);Yr(e,t,n,e.cm?e.cm.curOp.id:NaN),ki(e,t,n,Q(e,t));var r=[];Hr(e,function(e,n){n||h(r,e.history)!=-1||(Bi(e.history,t),r.push(e.history)),ki(e,t,null,Q(e,t))})}}function wi(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,u="undo"==t?i.undone:i.done,s=0;s<a.length&&(r=a[s],n?!r.ranges||r.equals(e.sel):r.ranges);s++);if(s!=a.length){for(i.lastOrigin=i.lastSelOrigin=null;r=a.pop(),r.ranges;){if(Xr(r,u),n&&!r.equals(e.sel))return void fi(e,r,{clearRedo:!1});o=r}var l=[];Xr(o,u),u.push({changes:l,generation:i.generation}),i.generation=r.generation||++i.maxGeneration;for(var c=Me(e,"beforeChange")||e.cm&&Me(e.cm,"beforeChange"),f=function(n){var i=r.changes[n];if(i.origin=t,c&&!xi(e,i,!1))return a.length=0,{};l.push(Vr(e,i));var o=n?Ir(e,i):m(a);ki(e,i,o,ni(e,i)),!n&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Or(i)});var u=[];Hr(e,function(e,t){t||h(u,e.history)!=-1||(Bi(e.history,i),u.push(e.history)),ki(e,i,null,ni(e,i))})},d=r.changes.length-1;d>=0;--d){var p=f(d);if(p)return p.v}}}}function Ei(e,t){if(0!=t&&(e.first+=t,e.sel=new Br(g(e.sel.ranges,function(e){return new Tr(M(e.anchor.line+t,e.anchor.ch),M(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)pr(e.cm,r,"gutter")}}function ki(e,t,n,r){if(e.cm&&!e.cm.curOp)return cr(e.cm,ki)(e,t,n,r);if(t.to.line<e.first)return void Ei(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);Ei(e,i),t={from:M(e.first,0),to:M(t.to.line+i,t.to.ch),text:[m(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:M(o,k(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=_(e,t.from,t.to),n||(n=Ir(e,t)),e.cm?_i(e.cm,t,r):Wr(e,t,r),hi(e,n,_a)}}function _i(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,u=!1,s=o.line;e.options.lineWrapping||(s=D(se(k(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return u=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Le(e),Wr(r,t,n,Cn(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=me(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,u=!1)}),u&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,o.line),br(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?dr(e):o.line!=a.line||1!=t.text.length||zr(e.doc,t)?dr(e,o.line,a.line+1,l):pr(e,o.line,"text");var c=Me(e,"changes"),f=Me(e,"change");if(f||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Et(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Si(e,t,n,r,i){if(r||(r=n),O(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),Ci(e,{from:n,to:r,text:t,origin:i})}function Fi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Di(e,t,n,r){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 u=0;u<o.ranges.length;u++)Fi(o.ranges[u].anchor,t,n,r),Fi(o.ranges[u].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var l=o.changes[s];if(n<l.from.line)l.from=M(l.from.line+r,l.from.ch),l.to=M(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function Bi(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Di(e.done,n,r,i),Di(e.undone,n,r,i)}function Ti(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=k(e,R(e,t)):i=D(t),null==i?null:(r(o,i)&&e.cm&&pr(e.cm,i,n),o)}function Li(e){var t=this;this.lines=e,this.parent=null;for(var n=0,r=0;r<e.length;++r)e[r].parent=t,n+=e[r].height;this.height=n}function Mi(e){var t=this;this.children=e;for(var n=0,r=0,i=0;i<e.length;++i){var o=e[i];n+=o.chunkSize(),r+=o.height,o.parent=t}this.size=n,this.height=r,this.parent=null}function Oi(e,t,n){var r=this;if(n)for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);this.doc=e,this.node=t}function Ni(e,t,n){pe(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xn(e,null,n)}function Ii(e,t,n,r){var i=new Oi(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Ti(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!he(e,t)){var r=pe(t)<e.scrollTop;F(t,t.height+Rt(i)),r&&Xn(o,null,i.height),o.curOp.forceUpdate=!0}return!0}),i}function ji(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++au}function Ri(e,t,n,i,o){if(i&&i.shared)return $i(e,t,n,i,o);if(e.cm&&!e.cm.curOp)return cr(e.cm,Ri)(e,t,n,i,o);var a=new ji(e,o),u=O(t,n);if(i&&l(i,a,!1),u>0||0==u&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ue(e,t.line,t,n,a)||t.line!=n.line&&ue(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");H()}a.addToHistory&&Yr(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,f=e.cm;if(e.iter(c,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&se(e)==f.display.maxLine&&(s=!0),a.collapsed&&c!=t.line&&F(e,0),Z(e,new U(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&e.iter(t.line,n.line+1,function(t){he(e,t)&&F(t,0)}),a.clearOnEnter&&ja(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(W(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++au,a.atomic=!0),f){if(s&&(f.curOp.updateMaxLine=!0),a.collapsed)dr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var h=t.line;h<=n.line;h++)pr(f,h,"text");a.atomic&&pi(f.doc),Et(f,"markerAdded",f,a)}return a}function Pi(e,t){var n=this;this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=n}function $i(e,t,n,r,i){r=l(r),r.shared=!1;var o=[Ri(e,t,n,r,i)],a=o[0],u=r.widgetNode;return Hr(e,function(e){u&&(r.widgetNode=u.cloneNode(!0)),o.push(Ri(e,P(e,t),P(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=m(o)}),new Pi(o,a)}function zi(e){return e.findMarks(M(e.first,0),e.clipPos(M(e.lastLine())),function(e){return e.parent})}function Wi(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(O(o,a)){var u=Ri(e,o,a,r.primary,r.primary.type);r.markers.push(u),u.parent=r}}}function Hi(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Hr(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];h(r,o.doc)==-1&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}function Ui(e){var t=this;if(Zi(t),!Te(t,e)&&!Pt(t.display,e)){Ne(e),na&&(lu=+new Date);var n=wn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,u=function(e,r){if(!t.options.allowDropFileTypes||h(t.options.allowDropFileTypes,e.type)!=-1){var u=new FileReader;u.onload=cr(t,function(){var e=u.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){n=P(t.doc,n);var s={from:n,to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ci(t.doc,s),ci(t.doc,Mr(n,Or(s)))}}),u.readAsText(e)}},s=0;s<i;++s)u(r[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-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()),hi(t.doc,Mr(n,n)),c)for(var f=0;f<c.length;++f)Si(t.doc,"",c[f].anchor,c[f].head,"drag");t.replaceSelection(l,"around","paste"),t.display.input.focus()}}catch(e){}}}}function qi(e,t){if(na&&(!e.state.draggingText||+new Date-lu<100))return void Re(t);if(!Te(e,t)&&!Pt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!sa)){var n=r("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ua&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),ua&&n.parentNode.removeChild(n)}}function Vi(e,t){var i=wn(e,t);if(i){var o=document.createDocumentFragment();Sn(e,i,o),e.display.dragCursor||(e.display.dragCursor=r("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),n(e.display.dragCursor,o)}}function Zi(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Gi(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function Yi(){cu||(Qi(),cu=!0)}function Qi(){var e;ja(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Gi(Ki)},100))}),ja(window,"blur",function(){return Gi(Mn)})}function Ki(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Xi(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var n,r,i,o,a=0;a<t.length-1;a++){var u=t[a];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))n=!0;else if(/^(c|ctrl|control)$/i.test(u))r=!0;else{if(!/^s(hift)?$/i.test(u))throw new Error("Unrecognized modifier name: "+u);i=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ji(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=g(n.split(" "),Xi),o=0;o<i.length;o++){var a=void 0,u=void 0;o==i.length-1?(u=i.join(" "),a=r):(u=i.slice(0,o+1).join(" "),a="...");var s=t[u];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+u)}else t[u]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function eo(e,t,n,r){t=ro(t);var i=t.call?t.call(e,r):t[e];if(i===!1)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return eo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=eo(e,t.fallthrough[o],n,r);if(a)return a}}}function to(e){var t="string"==typeof e?e:fu[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function no(e,t){if(ua&&34==e.keyCode&&e.char)return!1;var n=fu[e.keyCode],r=n;return null!=r&&!e.altGraphKey&&(e.altKey&&"Alt"!=n&&(r="Alt-"+r),(ya?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(r="Ctrl-"+r),(ya?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(r="Cmd-"+r),!t&&e.shiftKey&&"Shift"!=n&&(r="Shift-"+r),r)}function ro(e){return"string"==typeof e?mu[e]:e}function io(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&O(o.from,m(r).to)<=0;){var a=r.pop();if(O(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}lr(e,function(){for(var t=r.length-1;t>=0;t--)Si(e.doc,"",r[t].from,r[t].to,"+delete");Jn(e)})}function oo(e,t){var n=k(e.doc,t),r=se(n);r!=n&&(t=D(r));var i=Se(r),o=i?i[0].level%2?Ce(r):xe(r):0;return M(t,o)}function ao(e,t){for(var n,r=k(e.doc,t);n=ae(r);)r=n.find(1,!0).line,t=null;var i=Se(r),o=i?i[0].level%2?xe(r):Ce(r):r.text.length;return M(null==t?D(r):t,o)}function uo(e,t){var n=oo(e,t.line),r=k(e.doc,n.line),i=Se(r);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return M(n.line,a?0:o)}return n}function so(e,t,n){if("string"==typeof t&&(t=yu[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=ka}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function lo(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=eo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&eo(t,e.options.extraKeys,n,e)||eo(t,e.options.keyMap,n,e)}function co(e,t,n,r){var i=e.state.keySeq;if(i){if(to(t))return"handled";bu.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}var o=lo(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&Et(e,"keyHandled",e,t,n),"handled"!=o&&"multi"!=o||(Ne(n),Dn(e)),i&&!o&&/\'$/.test(t)?(Ne(n),!0):!!o}function fo(e,t){var n=no(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?co(e,"Shift-"+n,t,function(t){return so(e,t,!0)})||co(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return so(e,t)}):co(e,n,t,function(t){return so(e,t)}))}function ho(e,t,n){return co(e,"'"+n+"'",t,function(t){return so(e,t,!0)})}function po(e){var t=this;if(t.curOp.focus=o(),!Te(t,e)){na&&ra<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=fo(t,e);ua&&(xu=r?n:null,!r&&88==n&&!za&&(da?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||mo(t)}}function mo(e){function t(e){18!=e.keyCode&&e.altKey||(xa(n,"CodeMirror-crosshair"),De(document,"keyup",t),De(document,"mouseover",t))}var n=e.display.lineDiv;a(n,"CodeMirror-crosshair"),ja(document,"keyup",t),ja(document,"mouseover",t)}function go(e){16==e.keyCode&&(this.doc.sel.shift=!1),Te(this,e)}function vo(e){var t=this;if(!(Pt(t.display,e)||Te(t,e)||e.ctrlKey&&!e.altKey||da&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(ua&&n==xu)return xu=null,void Ne(e);if(!ua||e.which&&!(e.which<10)||!fo(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ho(t,e,i)||t.display.input.onKeyPress(e))}}}function yo(e){var t=this,n=t.display;if(!(Te(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,Pt(n,e))return void(ia||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100)));if(!wo(t,e)){var r=wn(t,e);switch(window.focus(),$e(e)){case 1:t.state.selectingText?t.state.selectingText(e):r?bo(t,e,r):Pe(e)==n.scroller&&Ne(e);break;case 2:ia&&(t.state.lastMiddleDown=+new Date),r&&oi(t.doc,r),setTimeout(function(){return n.input.focus()},20),Ne(e);break;case 3:ba?Eo(t,e):Tn(t)}}}}function bo(e,t,n){na?setTimeout(s(Bn,e),0):e.curOp.focus=o();var r,i=+new Date;vu&&vu.time>i-400&&0==O(vu.pos,n)?r="triple":gu&&gu.time>i-400&&0==O(gu.pos,n)?(r="double",vu={time:i,pos:n}):(r="single",gu={time:i,pos:n});var a,u=e.doc.sel,l=da?t.metaKey:t.ctrlKey;e.options.dragDrop&&Ra&&!e.isReadOnly()&&"single"==r&&(a=u.contains(n))>-1&&(O((a=u.ranges[a]).from(),n)<0||n.xRel>0)&&(O(a.to(),n)>0||n.xRel<0)?xo(e,t,n,l):Co(e,t,n,r,l)}function xo(e,t,n,r){var i=e.display,o=+new Date,a=cr(e,function(u){ia&&(i.scroller.draggable=!1),e.state.draggingText=!1,De(document,"mouseup",a),De(i.scroller,"drop",a),Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)<10&&(Ne(u),!r&&+new Date-200<o&&oi(e.doc,n),ia||na&&9==ra?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())});ia&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=da?t.altKey:t.ctrlKey,i.scroller.dragDrop&&i.scroller.dragDrop(),ja(document,"mouseup",a),ja(i.scroller,"drop",a)}function Co(e,t,n,r,i){function a(t){if(0!=O(b,t))if(b=t,"rect"==r){for(var i=[],o=e.options.tabSize,a=c(k(f,n.line).text,n.ch,o),u=c(k(f,t.line).text,t.ch,o),s=Math.min(a,u),l=Math.max(a,u),g=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=v;g++){var y=k(f,g).text,x=d(y,s,o);s==l?i.push(new Tr(M(g,x),M(g,x))):y.length>x&&i.push(new Tr(M(g,x),M(g,d(y,l,o))))}i.length||i.push(new Tr(n,n)),fi(f,Lr(m.ranges.slice(0,p).concat(i),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var C=h,A=C.anchor,w=t;if("single"!=r){var E;E="double"==r?e.findWordAt(t):new Tr(M(t.line,0),P(f,M(t.line+1,0))),O(E.anchor,A)>0?(w=E.head,A=j(C.from(),E.anchor)):(w=E.anchor,A=I(C.to(),E.head))}var _=m.ranges.slice(0);_[p]=new Tr(P(f,A),w),fi(f,Lr(_,p),Sa)}}function u(t){var n=++C,i=wn(e,t,!0,"rect"==r);if(i)if(0!=O(i,b)){e.curOp.focus=o(),a(i);var s=Rn(l,f);(i.line>=s.to||i.line<s.from)&&setTimeout(cr(e,function(){C==n&&u(t)}),150)}else{var c=t.clientY<x.top?-20:t.clientY>x.bottom?20:0;c&&setTimeout(cr(e,function(){C==n&&(l.scroller.scrollTop+=c,u(t))}),50)}}function s(t){e.state.selectingText=!1,C=1/0,Ne(t),l.input.focus(),De(document,"mousemove",A),De(document,"mouseup",w),f.history.lastSelOrigin=null}var l=e.display,f=e.doc;Ne(t);var h,p,m=f.sel,g=m.ranges;if(i&&!t.shiftKey?(p=f.sel.contains(n),h=p>-1?g[p]:new Tr(n,n)):(h=f.sel.primary(),p=f.sel.primIndex),pa?t.shiftKey&&t.metaKey:t.altKey)r="rect",i||(h=new Tr(n,n)),n=wn(e,t,!0,!0),p=-1;else if("double"==r){var v=e.findWordAt(n);h=e.display.shift||f.extend?ii(f,h,v.anchor,v.head):v}else if("triple"==r){var y=new Tr(M(n.line,0),P(f,M(n.line+1,0)));h=e.display.shift||f.extend?ii(f,h,y.anchor,y.head):y}else h=ii(f,h,n);i?p==-1?(p=g.length,fi(f,Lr(g.concat([h]),p),{scroll:!1,origin:"*mouse"})):g.length>1&&g[p].empty()&&"single"==r&&!t.shiftKey?(fi(f,Lr(g.slice(0,p).concat(g.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),m=f.sel):ui(f,p,h,Sa):(p=0,fi(f,new Br([h],0),Sa),m=f.sel);var b=n,x=l.wrapper.getBoundingClientRect(),C=0,A=cr(e,function(e){$e(e)?u(e):s(e)}),w=cr(e,s);e.state.selectingText=w,ja(document,"mousemove",A),ja(document,"mouseup",w)}function Ao(e,t,n,r){var i,o;try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ne(t);var a=e.display,u=a.lineDiv.getBoundingClientRect();if(o>u.bottom||!Me(e,n))return je(t);o-=u.top-a.viewOffset;for(var s=0;s<e.options.gutters.length;++s){var l=a.gutters.childNodes[s];if(l&&l.getBoundingClientRect().right>=i){var c=B(e.doc,o),f=e.options.gutters[s];return Be(e,n,e,c,f,t),je(t)}}}function wo(e,t){return Ao(e,t,"gutterClick",!0)}function Eo(e,t){Pt(e.display,t)||ko(e,t)||Te(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function ko(e,t){return!!Me(e,"gutterContextMenu")&&Ao(e,t,"gutterContextMenu",!1)}function _o(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),an(e)}function So(e){function t(t,r,i,o){e.defaults[t]=r,i&&(n[t]=o?function(e,t,n){n!=Cu&&i(e,t,n)}:i)}var n=e.optionHandlers;e.defineOption=t,e.Init=Cu,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Pr(e)},!0),t("indentUnit",2,Pr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){$r(e),an(e),dr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(o==-1)break;i=o+t.length,n.push(M(r,o))}r++});for(var i=n.length-1;i>=0;i--)Si(e.doc,t,n[i],M(n[i].line,n[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Cu&&e.refresh()}),t("specialCharPlaceholder",dt,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ha?"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("rtlMoveVisually",!ma),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){_o(e),Fo(e)},!0),t("keyMap","default",function(e,t,n){var r=ro(t),i=n!=Cu&&ro(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),t("extraKeys",null),t("lineWrapping",!1,Bo,!0),t("gutters",[],function(e){Dr(e.options),Fo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?xn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return qn(e)},!0),t("scrollbarStyle","native",function(e){Zn(e),qn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Dr(e.options),Fo(e)},!0),t("firstLineNumber",1,Fo,!0),t("lineNumberFormatter",function(e){return e},Fo,!0),t("showCursorWhenSelecting",!1,kn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Mn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Do),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,kn,!0),t("singleCursorHeightPerLine",!0,kn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,$r,!0),t("addModeClass",!1,$r,!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,$r,!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)}function Fo(e){Fr(e),dr(e),On(e)}function Do(e,t,n){var r=n&&n!=Cu;if(!t!=!r){var i=e.display.dragFunctions,o=t?ja:De;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Bo(e){e.options.lineWrapping?(a(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(xa(e.display.wrapper,"CodeMirror-wrap"),ge(e)),An(e),dr(e),an(e),setTimeout(function(){return qn(e)},100)}function To(e,t){var n=this;if(!(this instanceof To))return new To(e,t);this.options=t=t?l(t):{},l(Au,t,!1),Dr(t);var r=t.value;"string"==typeof r&&(r=new su(r,t.mode,null,t.lineSeparator)),this.doc=r;var i=new To.inputStyles[t.inputStyle](this),o=this.display=new E(e,r,i);o.wrapper.CodeMirror=this,Fr(this),_o(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zn(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 f,keySeq:null,specialChars:null},t.autofocus&&!ha&&o.input.focus(),na&&ra<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Lo(this),Yi(),tr(this),this.curOp.forceUpdate=!0,Ur(this,r),t.autofocus&&!ha||this.hasFocus()?setTimeout(s(Ln,this),20):Mn(this);for(var a in wu)wu.hasOwnProperty(a)&&wu[a](n,t[a],Cu);Nn(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Eu.length;++u)Eu[u](n);nr(this),ia&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Lo(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),a=i.activeTouch,a.end=+new Date)}function n(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function r(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}var i=e.display;ja(i.scroller,"mousedown",cr(e,yo)),na&&ra<11?ja(i.scroller,"dblclick",cr(e,function(t){if(!Te(e,t)){var n=wn(e,t);if(n&&!wo(e,t)&&!Pt(e.display,t)){Ne(t);var r=e.findWordAt(n);oi(e.doc,r.anchor,r.head)}}})):ja(i.scroller,"dblclick",function(t){return Te(e,t)||Ne(t)}),ba||ja(i.scroller,"contextmenu",function(t){return Eo(e,t)});var o,a={end:0};ja(i.scroller,"touchstart",function(t){if(!Te(e,t)&&!n(t)){i.input.ensurePolled(),clearTimeout(o);var r=+new Date;i.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),ja(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ja(i.scroller,"touchend",function(n){var o=i.activeTouch;if(o&&!Pt(i,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,u=e.coordsChar(i.activeTouch,"page");a=!o.prev||r(o,o.prev)?new Tr(u,u):!o.prev.prev||r(o,o.prev.prev)?e.findWordAt(u):new Tr(M(u.line,0),P(e.doc,M(u.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ne(n)}t()}),ja(i.scroller,"touchcancel",t),ja(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Pn(e,i.scroller.scrollTop),$n(e,i.scroller.scrollLeft,!0),Be(e,"scroll",e))}),ja(i.scroller,"mousewheel",function(t){return Hn(e,t)}),ja(i.scroller,"DOMMouseScroll",function(t){return Hn(e,t)}),ja(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){Te(e,t)||Re(t)},over:function(t){Te(e,t)||(Vi(e,t),Re(t))},start:function(t){return qi(e,t)},drop:cr(e,Ui),leave:function(t){Te(e,t)||Zi(e)}};var u=i.input.getField();ja(u,"keyup",function(t){return go.call(e,t)}),ja(u,"keydown",cr(e,po)),ja(u,"keypress",cr(e,vo)),ja(u,"focus",function(t){return Ln(e,t)}),ja(u,"blur",function(t){return Mn(e,t)})}function Mo(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=et(e,t):n="prev");var a=e.options.tabSize,u=k(o,t),s=c(u.text,null,a);u.stateAfter&&(u.stateAfter=null);var l,f=u.text.match(/^\s*/)[0];if(r||/\S/.test(u.text)){if("smart"==n&&(l=o.mode.indent(i,u.text.slice(f.length),u.text),l==ka||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?c(k(o,t-1).text,null,a):0:"add"==n?l=s+e.options.indentUnit:"subtract"==n?l=s-e.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var h="",d=0;if(e.options.indentWithTabs)for(var m=Math.floor(l/a);m;--m)d+=a,h+="\t";if(d<l&&(h+=p(l-d)),h!=f)return Si(o,h,M(t,0),M(t,f.length),"+input"),u.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<f.length){var y=M(t,f.length);ui(o,g,new Tr(y,y));break}}}function Oo(e){ku=e}function No(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=e.state.pasteIncoming||"paste"==i,u=Pa(t),s=null;if(a&&r.ranges.length>1)if(ku&&ku.text.join("\n")==t){if(r.ranges.length%ku.text.length==0){s=[];for(var l=0;l<ku.text.length;l++)s.push(o.splitLines(ku.text[l]))}}else u.length==r.ranges.length&&(s=g(u,function(e){
  return[e]}));for(var c,f=r.ranges.length-1;f>=0;f--){var h=r.ranges[f],d=h.from(),p=h.to();h.empty()&&(n&&n>0?d=M(d.line,d.ch-n):e.state.overwrite&&!a?p=M(p.line,Math.min(k(o,p.line).text.length,p.ch+m(u).length)):ku&&ku.lineWise&&ku.text.join("\n")==t&&(d=p=M(d.line,0))),c=e.curOp.updateInput;var v={from:d,to:p,text:s?s[f%s.length]:u,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};Ci(e.doc,v),Et(e,"inputRead",e,v)}t&&!a&&jo(e,t),Jn(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Io(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||lr(t,function(){return No(t,n,0,null,"paste")}),!0}function jo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var u=0;u<o.electricChars.length;u++)if(t.indexOf(o.electricChars.charAt(u))>-1){a=Mo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(k(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Mo(e,i.head.line,"smart"));a&&Et(e,"electricInput",e,i.head.line)}}}function Ro(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:M(i,0),head:M(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Po(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function $o(){var e=r("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=r("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ia?e.style.width="1000px":e.setAttribute("wrap","off"),fa&&(e.style.border="1px solid black"),Po(e),t}function zo(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&cr(this,t[e])(this,n,i),Be(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"](ro(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:fr(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");v(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,dr(this)}),removeOverlay:fr(function(e){for(var t=this,n=this.state.overlays,r=0;r<n.length;++r){var i=n[r].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return n.splice(r,1),t.state.modeGen++,void dr(t)}}),indentLine:fr(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),T(this.doc,e)&&Mo(this,e,t,n)}),indentSelection:fr(function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Mo(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&Jn(t));else{var a=o.from(),u=o.to(),s=Math.max(r,a.line);r=Math.min(t.lastLine(),u.line-(u.ch?0:1))+1;for(var l=s;l<r;++l)Mo(t,l,e);var c=t.doc.sel.ranges;0==a.ch&&n.length==c.length&&c[i].from().ch>0&&ui(t.doc,i,new Tr(a,c[i].to()),_a)}}}),getTokenAt:function(e,t){return it(this,e,t)},getLineTokens:function(e,t){return it(this,M(e),t,!0)},getTokenTypeAt:function(e){e=P(this.doc,e);var t,n=Je(this,k(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var u=t?t.indexOf("overlay "):-1;return u<0?t:0==u?null:t.slice(0,u-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=this,i=[];if(!n.hasOwnProperty(t))return i;var o=n[t],a=this.getModeAt(e);if("string"==typeof a[t])o[a[t]]&&i.push(o[a[t]]);else if(a[t])for(var u=0;u<a[t].length;u++){var s=o[a[t][u]];s&&i.push(s)}else a.helperType&&o[a.helperType]?i.push(o[a.helperType]):o[a.name]&&i.push(o[a.name]);for(var l=0;l<o._global.length;l++){var c=o._global[l];c.pred(a,r)&&h(i,c.val)==-1&&i.push(c.val)}return i},getStateAfter:function(e,t){var n=this.doc;return e=R(n,null==e?n.first+n.size-1:e),et(this,e+1,t)},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?P(this.doc,e):e?r.from():r.to(),hn(this,n,t||"page")},charCoords:function(e,t){return fn(this,P(this.doc,e),t||"page")},coordsChar:function(e,t){return e=cn(this,e,t||"page"),mn(this,e.left,e.top)},lineAtHeight:function(e,t){return e=cn(this,{top:e,left:0},t||"page").top,B(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,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),r=k(this.doc,e)}else r=e;return ln(this,r,{top:0,left:0},t||"page",n).top+(i?this.doc.height-pe(r):0)},defaultTextHeight:function(){return vn(this.display)},defaultCharWidth:function(){return yn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=hn(this,P(this.doc,e));var a=e.bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),u+t.offsetWidth>l&&(u=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(u=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&Qn(this,u,a,u+t.offsetWidth,a+t.offsetHeight)},triggerOnKeyDown:fr(po),triggerOnKeyPress:fr(vo),triggerOnKeyUp:go,execCommand:function(e){if(yu.hasOwnProperty(e))return yu[e].call(null,this)},triggerElectric:fr(function(e){jo(this,e)}),findPosH:function(e,t,n,r){var i=this,o=1;t<0&&(o=-1,t=-t);for(var a=P(this.doc,e),u=0;u<t&&(a=Wo(i.doc,a,o,n,r),!a.hitSide);++u);return a},moveH:fr(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Wo(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Fa)}),deleteH:fr(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):io(this,function(n){var i=Wo(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=this,o=1,a=r;t<0&&(o=-1,t=-t);for(var u=P(this.doc,e),s=0;s<t;++s){var l=hn(i,u,"div");if(null==a?a=l.left:l.left=a,u=Ho(i,l,o,n),u.hitSide)break}return u},moveV:fr(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var u=hn(n,a.head,"div");null!=a.goalColumn&&(u.left=a.goalColumn),i.push(u.left);var s=Ho(n,u,e,t);return"page"==t&&a==r.sel.primary()&&Xn(n,null,fn(n,s,"div").top-u.top),s},Fa),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=k(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");(e.xRel<0||i==n.length)&&r?--r:++i;for(var a=n.charAt(r),u=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)};r>0&&u(n.charAt(r-1));)--r;for(;i<n.length&&u(n.charAt(i));)++i}return new Tr(M(e.line,r),M(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?a(this.display.cursorDiv,"CodeMirror-overwrite"):xa(this.display.cursorDiv,"CodeMirror-overwrite"),Be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==o()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:fr(function(e,t){null==e&&null==t||er(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ht(this)-this.display.barHeight,width:e.scrollWidth-Ht(this)-this.display.barWidth,clientHeight:qt(this),clientWidth:Ut(this)}},scrollIntoView:fr(function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:M(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)er(this),this.curOp.scrollToPos=e;else{var n=Kn(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(n.scrollLeft,n.scrollTop)}}),setSize:fr(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&on(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){pr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,Be(this,"refresh",this)}),operation:function(e){return lr(this,e)},refresh:fr(function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,an(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),_r(this),(null==e||Math.abs(e-vn(this.display))>.5)&&An(this),Be(this,"refresh",this)}),swapDoc:fr(function(e){var t=this.doc;return t.cm=null,Ur(this,e),an(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Et(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function Wo(e,t,n,r,i){function o(){var t=u+n;return!(t<e.first||t>=e.first+e.size)&&(u=t,c=k(e,t))}function a(e){var t=(i?ke:_e)(c,s,n,!0);if(null==t){if(e||!o())return!1;s=i?(n<0?Ce:xe)(c):n<0?c.text.length:0}else s=t;return!0}var u=t.line,s=t.ch,l=n,c=k(e,u);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var f=null,h="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||a(!p);p=!1){var m=c.text.charAt(s)||"\n",g=C(m,d)?"w":h&&"\n"==m?"n":!h||/\s/.test(m)?null:"p";if(!h||p||g||(g="s"),f&&f!=g){n<0&&(n=1,a());break}if(g&&(f=g),n>0&&!a(!p))break}var v=vi(e,M(u,s),t,l,!0);return O(t,v)||(v.hitSide=!0),v}function Ho(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var u=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(u-.5*vn(e.display),3);i=(n>0?t.bottom:t.top)+n*s}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(var l;l=mn(e,a,i),l.outside;){if(n<0?i<=0:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}function Uo(e,t){var n=Qt(e,t.line);if(!n||n.hidden)return null;var r=k(e.doc,t.line),i=Zt(n,r,t.line),o=Se(r),a="left";if(o){var u=we(o,t.ch);a=u%2?"right":"left"}var s=Jt(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function qo(e,t){return t&&(e.bad=!0),e}function Vo(e,t,n,r,i){function o(e){return function(t){return t.id==e}}function a(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void(u+=""==n?t.textContent.replace(/\u200b/g,""):n);var c,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(M(r,0),M(i+1,0),o(+f));return void(h.length&&(c=h[0].find())&&(u+=_(e.doc,c.from,c.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;for(var d=0;d<t.childNodes.length;d++)a(t.childNodes[d]);/^(pre|div|p)$/i.test(t.nodeName)&&(s=!0)}else if(3==t.nodeType){var p=t.nodeValue;if(!p)return;s&&(u+=l,s=!1),u+=p}}for(var u="",s=!1,l=e.doc.lineSeparator();a(t),t!=n;)t=t.nextSibling;return u}function Zo(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return qo(e.clipPos(M(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return Go(o,t,n)}}function Go(e,t,n){function r(t,n,r){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],a=0;a<o.length;a+=3){var u=o[a+2];if(u==t||u==n){var s=D(i<0?e.line:e.rest[i]),l=o[a]+r;return(r<0||u!=t)&&(l=o[a+(r?1:0)]),M(s,l)}}}var o=e.text.firstChild,a=!1;if(!t||!i(o,t))return qo(M(D(e.line),0),!0);if(t==o&&(a=!0,t=o.childNodes[n],n=0,!t)){var u=e.rest?m(e.rest):e.line;return qo(M(D(u),u.text.length),a)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=o;)l=l.parentNode;var c=e.measure,f=c.maps,h=r(s,l,n);if(h)return qo(h,a);for(var d=l.nextSibling,p=s?s.nodeValue.length-n:0;d;d=d.nextSibling){if(h=r(d,d.firstChild,0))return qo(M(h.line,h.ch-p),a);p+=d.textContent.length}for(var g=l.previousSibling,v=n;g;g=g.previousSibling){if(h=r(g,g.firstChild,-1))return qo(M(h.line,h.ch+v),a);v+=g.textContent.length}}function Yo(e,t){function n(){e.value=s.getValue()}if(t=t?l(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 r=o();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}var i;if(e.form&&(ja(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var a=e.form;i=a.submit;try{var u=a.submit=function(){n(),a.submit=i,a.submit(),a.submit=u}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(De(e.form,"submit",n),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var s=To(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function Qo(e){e.off=De,e.on=ja,e.wheelEventPixels=Wn,e.Doc=su,e.splitLines=Pa,e.countColumn=c,e.findColumn=d,e.isWordChar=x,e.Pass=ka,e.signal=Be,e.Line=st,e.changeEnd=Or,e.scrollbarModel=ru,e.Pos=M,e.cmpPos=O,e.modes=Ha,e.mimeModes=Ua,e.resolveMode=Ve,e.getMode=Ze,e.modeExtensions=qa,e.extendMode=Ge,e.copyState=Ye,e.startState=Ke,e.innerMode=Qe,e.commands=yu,e.keyMap=mu,e.keyName=no,e.isModifierKey=to,e.lookupKey=eo,e.normalizeKeyMap=Ji,e.StringStream=Va,e.SharedTextMarker=Pi,e.TextMarker=ji,e.LineWidget=Oi,e.e_preventDefault=Ne,e.e_stopPropagation=Ie,e.e_stop=Re,e.addClass=a,e.contains=i,e.rmClass=xa,e.keyNames=fu}var Ko=navigator.userAgent,Xo=navigator.platform,Jo=/gecko\/\d/i.test(Ko),ea=/MSIE \d/.test(Ko),ta=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ko),na=ea||ta,ra=na&&(ea?document.documentMode||6:ta[1]),ia=/WebKit\//.test(Ko),oa=ia&&/Qt\/\d+\.\d+/.test(Ko),aa=/Chrome\//.test(Ko),ua=/Opera\//.test(Ko),sa=/Apple Computer/.test(navigator.vendor),la=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ko),ca=/PhantomJS/.test(Ko),fa=/AppleWebKit/.test(Ko)&&/Mobile\/\w+/.test(Ko),ha=fa||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ko),da=fa||/Mac/.test(Xo),pa=/\bCrOS\b/.test(Ko),ma=/win/i.test(Xo),ga=ua&&Ko.match(/Version\/(\d*\.\d*)/);ga&&(ga=Number(ga[1])),ga&&ga>=15&&(ua=!1,ia=!0);var va,ya=da&&(oa||ua&&(null==ga||ga<12.11)),ba=Jo||na&&ra>=9,xa=function(t,n){var r=t.className,i=e(n).exec(r);if(i){var o=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};va=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ca=function(e){e.select()};fa?Ca=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:na&&(Ca=function(e){try{e.select()}catch(e){}}),f.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var Aa,wa,Ea=30,ka={toString:function(){return"CodeMirror.Pass"}},_a={scroll:!1},Sa={origin:"*mouse"},Fa={origin:"+move"},Da=[""],Ba=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ta=/[\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]/,La=!1,Ma=!1,Oa=null,Na=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,u=/[Lb1n]/,s=/[1n]/,l="L";return function(n){if(!i.test(n))return!1;for(var r=n.length,c=[],f=0;f<r;++f)c.push(e(n.charCodeAt(f)));for(var h=0,d=l;h<r;++h){var p=c[h];"m"==p?c[h]=d:d=p}for(var g=0,v=l;g<r;++g){var y=c[g];"1"==y&&"r"==v?c[g]="n":a.test(y)&&(v=y,"r"==y&&(c[g]="R"))}for(var b=1,x=c[0];b<r-1;++b){var C=c[b];"+"==C&&"1"==x&&"1"==c[b+1]?c[b]="1":","!=C||x!=c[b+1]||"1"!=x&&"n"!=x||(c[b]=x),x=C}for(var A=0;A<r;++A){var w=c[A];if(","==w)c[A]="N";else if("%"==w){var E=void 0;for(E=A+1;E<r&&"%"==c[E];++E);for(var k=A&&"!"==c[A-1]||E<r&&"1"==c[E]?"1":"N",_=A;_<E;++_)c[_]=k;A=E-1}}for(var S=0,F=l;S<r;++S){var D=c[S];"L"==F&&"1"==D?c[S]="L":a.test(D)&&(F=D)}for(var B=0;B<r;++B)if(o.test(c[B])){var T=void 0;for(T=B+1;T<r&&o.test(c[T]);++T);for(var L="L"==(B?c[B-1]:l),M="L"==(T<r?c[T]:l),O=L||M?"L":"R",N=B;N<T;++N)c[N]=O;B=T-1}for(var I,j=[],R=0;R<r;)if(u.test(c[R])){var P=R;for(++R;R<r&&u.test(c[R]);++R);j.push(new t(0,P,R))}else{var $=R,z=j.length;for(++R;R<r&&"L"!=c[R];++R);for(var W=$;W<R;)if(s.test(c[W])){$<W&&j.splice(z,0,new t(1,$,W));var H=W;for(++W;W<R&&s.test(c[W]);++W);j.splice(z,0,new t(2,H,W)),$=W}else++W;$<R&&j.splice(z,0,new t(1,$,R))}return 1==j[0].level&&(I=n.match(/^\s+/))&&(j[0].from=I[0].length,j.unshift(new t(0,0,I[0].length))),1==m(j).level&&(I=n.match(/\s+$/))&&(m(j).to-=I[0].length,j.push(new t(0,r-I[0].length,r))),2==j[0].level&&j.unshift(new t(1,j[0].to,j[0].to)),j[0].level!=m(j).level&&j.push(new t(j[0].level,r,r)),j}}(),Ia=[],ja=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Ia).concat(n)}},Ra=function(){if(na&&ra<9)return!1;var e=r("div");return"draggable"in e||"dragDrop"in e}(),Pa=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);i==-1&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");a!=-1?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},$a=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)},za=function(){var e=r("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Wa=null,Ha={},Ua={},qa={},Va=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Va.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)))return++this.pos,n},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=c(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?c(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return c(this.string,null,this.tabSize)-(this.lineStart?c(this.string,this.lineStart,this.tabSize):0)},match:function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return t!==!1&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}},Oe(st),st.prototype.lineNo=function(){return D(this)};var Za,Ga={},Ya={},Qa=null,Ka=null,Xa={left:0,right:0,top:0,bottom:0},Ja=0,eu=null;na?eu=-.53:Jo?eu=15:aa?eu=-.7:sa&&(eu=-1/3);var tu=function(e,t,n){this.cm=n;var i=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),ja(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),ja(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,na&&ra<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};tu.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r: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=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+o+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},tu.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},tu.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},tu.prototype.zeroWidthHack=function(){var e=da&&!la?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new f,this.disableVert=new f},tu.prototype.enableZeroWidthBar=function(e,t){function n(){var r=e.getBoundingClientRect(),i=document.elementFromPoint(r.left+1,r.bottom-1);i!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},tu.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var nu=function(){};nu.prototype.update=function(){return{bottom:0,right:0}},nu.prototype.setScrollLeft=function(){},nu.prototype.setScrollTop=function(){},nu.prototype.clear=function(){};var ru={native:tu,null:nu},iu=0,ou=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Rn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=bn(e),this.events=[]};ou.prototype.signal=function(e,t){Me(e,t)&&this.events.push(arguments)},ou.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Be.apply(null,e.events[t])},Br.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var r=t.ranges[n],i=e.ranges[n];if(0!=O(r.anchor,i.anchor)||0!=O(r.head,i.head))return!1}return!0},deepCopy:function(){for(var e=this,t=[],n=0;n<this.ranges.length;n++)t[n]=new Tr(N(e.ranges[n].anchor),N(e.ranges[n].head));return new Br(t,this.primIndex)},somethingSelected:function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},contains:function(e,t){var n=this;t||(t=e);for(var r=0;r<this.ranges.length;r++){var i=n.ranges[r];if(O(t,i.from())>=0&&O(e,i.to())<=0)return r}return-1}},Tr.prototype={from:function(){return j(this.anchor,this.head)},to:function(){return I(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}},Li.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,i=e+t;r<i;++r){var o=n.lines[r];n.height-=o.height,ct(o),Et(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){var r=this;this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=r},iterN:function(e,t,n){for(var r=this,i=e+t;e<i;++e)if(n(r.lines[e]))return!0}},Mi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),u=i.height;if(i.removeInner(e,a),n.height-=u-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Li))){var s=[];this.collapse(s),this.children=[new Li(s)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n<this.children.length;++n)t.children[n].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<=a){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var u=o.lines.length%25+25,s=u;s<o.lines.length;){var l=new Li(o.lines.slice(s,s+=25));o.height-=l.height,r.children.splice(++i,0,l),l.parent=r}o.lines=o.lines.slice(0,u),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Mi(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=h(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new Mi(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<a){var u=Math.min(t,a-e);if(o.iterN(e,u,n))return!0;if(0==(t-=u))break;e=0}else e-=a}}},Oe(Oi),Oi.prototype.clear=function(){var e=this,t=this.doc.cm,n=this.line.widgets,r=this.line,i=D(r);if(null!=i&&n){for(var o=0;o<n.length;++o)n[o]==e&&n.splice(o--,1);n.length||(r.widgets=null);var a=Rt(this);F(r,Math.max(0,r.height-a)),t&&lr(t,function(){Ni(t,r,-a),pr(t,i,"widget")})}},Oi.prototype.changed=function(){var e=this.height,t=this.doc.cm,n=this.line;this.height=null;var r=Rt(this)-e;r&&(F(n,n.height+r),t&&lr(t,function(){t.curOp.forceUpdate=!0,Ni(t,n,r)}))};var au=0;Oe(ji),ji.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&tr(t),Me(this,"clear")){var r=this.find();r&&Et(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;a<this.lines.length;++a){var u=e.lines[a],s=q(u.markedSpans,e);t&&!e.collapsed?pr(t,D(u),"text"):t&&(null!=s.to&&(o=D(u)),null!=s.from&&(i=D(u))),u.markedSpans=V(u.markedSpans,s),null==s.from&&e.collapsed&&!he(e.doc,u)&&t&&F(u,vn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=se(e.lines[l]),f=me(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&dr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&pi(t.doc)),t&&Et(t,"markerCleared",t,this),n&&nr(t),this.parent&&this.parent.clear()}},ji.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,i,o=0;o<this.lines.length;++o){var a=n.lines[o],u=q(a.markedSpans,n);if(null!=u.from&&(r=M(t?a:D(a),u.from),e==-1))return r;if(null!=u.to&&(i=M(t?a:D(a),u.to),1==e))return i}return r&&{from:r,to:i}},ji.prototype.changed=function(){var e=this.find(-1,!0),t=this,n=this.doc.cm;e&&n&&lr(n,function(){var r=e.line,i=D(e.line),o=Qt(n,i);if(o&&(rn(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!he(t.doc,r)&&null!=t.height){var a=t.height;
  t.height=null;var u=Rt(t)-a;u&&F(r,r.height+u)}})},ji.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&h(t.maybeHiddenMarkers,this)!=-1||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ji.prototype.detachLine=function(e){if(this.lines.splice(h(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Oe(Pi),Pi.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();Et(this,"clear")}},Pi.prototype.find=function(e,t){return this.primary.find(e,t)};var uu=0,su=function(e,t,n,r){if(!(this instanceof su))return new su(e,t,n,r);null==n&&(n=0),Mi.call(this,[new Li([new st("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var i=M(n,0);this.sel=Mr(i),this.history=new qr(null),this.id=++uu,this.modeOption=t,this.lineSep=r,this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Wr(this,{from:i,to:i,text:e}),fi(this,Mr(i),_a)};su.prototype=b(Mi.prototype,{constructor:su,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=S(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:hr(function(e){var t=M(this.first,0),n=this.first+this.size-1;Ci(this,{from:t,to:M(n,k(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),fi(this,Mr(t))}),replaceRange:function(e,t,n,r){t=P(this,t),n=n?P(this,n):t,Si(this,e,t,n,r)},getRange:function(e,t,n){var r=_(this,P(this,e),P(this,t));return n===!1?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(T(this,e))return k(this,e)},getLineNumber:function(e){return D(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=k(this,e)),se(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return P(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||e===!1?n.to():n.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:hr(function(e,t,n){si(this,P(this,"number"==typeof e?M(e,t||0):e),null,n)}),setSelection:hr(function(e,t,n){si(this,P(this,e),P(this,t||e),n)}),extendSelection:hr(function(e,t,n){oi(this,P(this,e),t&&P(this,t),n)}),extendSelections:hr(function(e,t){ai(this,z(this,e),t)}),extendSelectionsBy:hr(function(e,t){var n=g(this.sel.ranges,e);ai(this,z(this,n),t)}),setSelections:hr(function(e,t,n){var r=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new Tr(P(r,e[o].anchor),P(r,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),fi(this,Lr(i,t),n)}}),addSelection:hr(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Tr(P(this,e),P(this,t||e))),fi(this,Lr(r,r.length-1),n)}),getSelection:function(e){for(var t,n=this,r=this.sel.ranges,i=0;i<r.length;i++){var o=_(n,r[i].from(),r[i].to());t=t?t.concat(o):o}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,n=[],r=this.sel.ranges,i=0;i<r.length;i++){var o=_(t,r[i].from(),r[i].to());e!==!1&&(o=o.join(e||t.lineSeparator())),n[i]=o}return n},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:hr(function(e,t,n){for(var r=this,i=[],o=this.sel,a=0;a<o.ranges.length;a++){var u=o.ranges[a];i[a]={from:u.from(),to:u.to(),text:r.splitLines(e[a]),origin:n}}for(var s=t&&"end"!=t&&Rr(this,i,t),l=i.length-1;l>=0;l--)Ci(r,i[l]);s?ci(this,s):this.cm&&Jn(this.cm)}),undo:hr(function(){wi(this,"undo")}),redo:hr(function(){wi(this,"redo")}),undoSelection:hr(function(){wi(this,"undo",!0)}),redoSelection:hr(function(){wi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new qr(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:ri(this.history.done),undone:ri(this.history.undone)}},setHistory:function(e){var t=this.history=new qr(this.history.maxGeneration);t.done=ri(e.done.slice(0),null,!0),t.undone=ri(e.undone.slice(0),null,!0)},setGutterMarker:hr(function(e,t,n){return Ti(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&A(r)&&(e.gutterMarkers=null),!0})}),clearGutter:hr(function(e){var t=this,n=this.first;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&Ti(t,r,"gutter",function(){return r.gutterMarkers[e]=null,A(r.gutterMarkers)&&(r.gutterMarkers=null),!0}),++n})}),lineInfo:function(e){var t;if("number"==typeof e){if(!T(this,e))return null;if(t=e,e=k(this,e),!e)return null}else if(t=D(e),null==t)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:hr(function(t,n,r){return Ti(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass";if(t[i]){if(e(r).test(t[i]))return!1;t[i]+=" "+r}else t[i]=r;return!0})}),removeLineClass:hr(function(t,n,r){return Ti(this,t,"gutter"==n?"gutter":"class",function(t){var i="text"==n?"textClass":"background"==n?"bgClass":"gutter"==n?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==r)t[i]=null;else{var a=o.match(e(r));if(!a)return!1;var u=a.index+a[0].length;t[i]=o.slice(0,a.index)+(a.index&&u!=o.length?" ":"")+o.slice(u)||null}return!0})}),addLineWidget:hr(function(e,t,n){return Ii(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ri(this,P(this,e),P(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=P(this,e),Ri(this,e,e,n,"bookmark")},findMarksAt:function(e){e=P(this,e);var t=[],n=k(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(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,n){e=P(this,e),t=P(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var u=0;u<a.length;u++){var s=a[u];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;return o>e?(t=e,!0):(e-=o,void++n)}),P(this,M(n,t))},indexFromPos:function(e){e=P(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new su(S(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep);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,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new su(S(this,t,n),e.mode||this.modeOption,t,this.lineSep);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Wi(r,zi(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof To&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=t.linked[n];if(r.doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Hi(zi(t));break}}if(e.history==this.history){var i=[e.id];Hr(e,function(e){return i.push(e.id)},!0),e.history=new qr(null),e.history.done=ri(this.history.done,i),e.history.undone=ri(this.history.undone,i)}},iterLinkedDocs:function(e){Hr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Pa(e)},lineSeparator:function(){return this.lineSep||"\n"}}),su.prototype.eachLine=su.prototype.iter;for(var lu=0,cu=!1,fu={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hu=0;hu<10;hu++)fu[hu+48]=fu[hu+96]=String(hu);for(var du=65;du<=90;du++)fu[du]=String.fromCharCode(du);for(var pu=1;pu<=12;pu++)fu[pu+111]=fu[pu+63235]="F"+pu;var mu={};mu.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"},mu.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"},mu.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"},mu.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"]},mu.default=da?mu.macDefault:mu.pcDefault;var gu,vu,yu={selectAll:bi,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),_a)},killLine:function(e){return io(e,function(t){if(t.empty()){var n=k(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:M(t.head.line+1,0)}:{from:t.head,to:M(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return io(e,function(t){return{from:M(t.from().line,0),to:P(e.doc,M(t.to().line+1,0))}})},delLineLeft:function(e){return io(e,function(e){return{from:M(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return io(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return io(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(M(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(M(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return oo(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return uo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return ao(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Fa)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Fa)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?uo(e,t.head):r},Fa)},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=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=c(e.getLine(o.line),o.ch,r);t.push(p(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return lr(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=k(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new M(i.line,i.ch-1)),i.ch>0)i=new M(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),M(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=k(e.doc,i.line-1).text;a&&(i=new M(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),M(i.line-1,a.length-1),i,"+transpose"))}n.push(new Tr(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return lr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Jn(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},bu=new f,xu=null,Cu={toString:function(){return"CodeMirror.Init"}},Au={},wu={};To.defaults=Au,To.optionHandlers=wu;var Eu=[];To.defineInitHook=function(e){return Eu.push(e)};var ku=null,_u=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new f,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_u.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Oo({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Oo({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,_a),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=ku.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=$o(),u=a.firstChild;i.display.lineSpace.insertBefore(a,i.display.lineSpace.firstChild),u.value=ku.text.join("\n");var s=document.activeElement;Ca(u),setTimeout(function(){i.display.lineSpace.removeChild(a),s.focus(),s==o&&r.showPrimarySelection()},50)}}var n=this,r=this,i=r.cm,o=r.div=e.lineDiv;Po(o,i.options.spellcheck),ja(o,"paste",function(e){Te(i,e)||Io(e,i)||ra<=11&&setTimeout(cr(i,function(){r.pollContent()||dr(i)}),20)}),ja(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),ja(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),ja(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ja(o,"touchstart",function(){return r.forceCompositionEnd()}),ja(o,"input",function(){n.composing||n.readFromDOMSoon()}),ja(o,"copy",t),ja(o,"cut",t)},_u.prototype.prepareSelection=function(){var e=_n(this.cm,!1);return e.focus=this.cm.state.focused,e},_u.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},_u.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=Zo(this.cm,e.anchorNode,e.anchorOffset),r=Zo(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!r||r.bad||0!=O(j(n,r),t.from())||0!=O(I(n,r),t.to())){var i=Uo(this.cm,t.from()),o=Uo(this.cm,t.to());if(i||o){var a=this.cm.display.view,u=e.rangeCount&&e.getRangeAt(0);if(i){if(!o){var s=a[a.length-1].measure,l=s.maps?s.maps[s.maps.length-1]:s.map;o={node:l[l.length-1],offset:l[l.length-2]-l[l.length-3]}}}else i={node:a[0].measure.map[2],offset:0};var c;try{c=va(i.node,i.offset,o.offset,o.node)}catch(e){}c&&(!Jo&&this.cm.state.focused?(e.collapse(i.node,i.offset),c.collapsed||(e.removeAllRanges(),e.addRange(c))):(e.removeAllRanges(),e.addRange(c)),u&&null==e.anchorNode?e.addRange(u):Jo&&this.startGracePeriod()),this.rememberSelection()}}},_u.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)},_u.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},_u.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},_u.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return i(this.div,t)},_u.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},_u.prototype.blur=function(){this.div.blur()},_u.prototype.getField=function(){return this.div},_u.prototype.supportsTouch=function(){return!0},_u.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():lr(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},_u.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},_u.prototype.pollSelection=function(){if(!this.composing&&null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=Zo(t,e.anchorNode,e.anchorOffset),r=Zo(t,e.focusNode,e.focusOffset);n&&r&&lr(t,function(){fi(t.doc,Mr(n,r),_a),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}},_u.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),r=n.from(),i=n.to();if(0==r.ch&&r.line>e.firstLine()&&(r=M(r.line-1,k(e.doc,r.line-1).length)),i.ch==k(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=M(i.line+1,0)),r.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,u;r.line==t.viewFrom||0==(o=En(e,r.line))?(a=D(t.view[0].line),u=t.view[0].node):(a=D(t.view[o].line),u=t.view[o-1].node.nextSibling);var s,l,c=En(e,i.line);if(c==t.view.length-1?(s=t.viewTo-1,l=t.lineDiv.lastChild):(s=D(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!u)return!1;for(var f=e.doc.splitLines(Vo(e,u,l,a,s)),h=_(e.doc,M(a,0),M(s,k(e.doc,s).text.length));f.length>1&&h.length>1;)if(m(f)==m(h))f.pop(),h.pop(),s--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),a++}for(var d=0,p=0,g=f[0],v=h[0],y=Math.min(g.length,v.length);d<y&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var b=m(f),x=m(h),C=Math.min(b.length-(1==f.length?d:0),x.length-(1==h.length?d:0));p<C&&b.charCodeAt(b.length-p-1)==x.charCodeAt(x.length-p-1);)++p;f[f.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var A=M(a,d),w=M(s,h.length?m(h).length-p:0);return f.length>1||f[0]||O(A,w)?(Si(e.doc,f,A,w,"+input"),!0):void 0},_u.prototype.ensurePolled=function(){this.forceCompositionEnd()},_u.prototype.reset=function(){this.forceCompositionEnd()},_u.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.pollContent()||dr(this.cm),this.div.blur(),this.div.focus())},_u.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.cm.isReadOnly()&&e.pollContent()||lr(e.cm,function(){return dr(e.cm)})},80))},_u.prototype.setUneditable=function(e){e.contentEditable="false"},_u.prototype.onKeyPress=function(e){e.preventDefault(),this.cm.isReadOnly()||cr(this.cm,No)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},_u.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},_u.prototype.onContextMenu=function(){},_u.prototype.resetPosition=function(){},_u.prototype.needsContentAttribute=!0;var Su=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new f,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};Su.prototype.init=function(e){function t(e){if(!Te(i,e)){if(i.somethingSelected())Oo({lineWise:!1,text:i.getSelections()}),r.inaccurateSelection&&(r.prevInput="",r.inaccurateSelection=!1,a.value=ku.text.join("\n"),Ca(a));else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Oo({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,_a):(r.prevInput="",a.value=t.text.join("\n"),Ca(a))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var n=this,r=this,i=this.cm,o=this.wrapper=$o(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),fa&&(a.style.width="0px"),ja(a,"input",function(){na&&ra>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),ja(a,"paste",function(e){Te(i,e)||Io(e,i)||(i.state.pasteIncoming=!0,r.fastPoll())}),ja(a,"cut",t),ja(a,"copy",t),ja(e.scroller,"paste",function(t){Pt(e,t)||Te(i,t)||(i.state.pasteIncoming=!0,r.focus())}),ja(e.lineSpace,"selectstart",function(t){Pt(e,t)||Ne(t)}),ja(a,"compositionstart",function(){var e=i.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),ja(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Su.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=_n(e);if(e.options.moveInputWithCursor){var i=hn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Su.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Su.prototype.reset=function(e){if(!this.contextMenuPending){var t,n,r=this.cm,i=r.doc;if(r.somethingSelected()){this.prevInput="";var o=i.sel.primary();t=za&&(o.to().line-o.from().line>100||(n=r.getSelection()).length>1e3);var a=t?"-":n||r.getSelection();this.textarea.value=a,r.state.focused&&Ca(this.textarea),na&&ra>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",na&&ra>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},Su.prototype.getField=function(){return this.textarea},Su.prototype.supportsTouch=function(){return!1},Su.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ha||o()!=this.textarea))try{this.textarea.focus()}catch(e){}},Su.prototype.blur=function(){this.textarea.blur()},Su.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Su.prototype.receivedFocus=function(){this.slowPoll()},Su.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Su.prototype.fastPoll=function(){function e(){var r=n.poll();r||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},Su.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||$a(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(na&&ra>=9&&this.hasSelection===i||da&&/[\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||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,u=Math.min(r.length,i.length);a<u&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return lr(t,function(){No(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.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},Su.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Su.prototype.onKeyPress=function(){na&&ra>=9&&(this.hasSelection=null),this.fastPoll()},Su.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=i.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=f,a.style.cssText=c,na&&ra<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=s),null!=a.selectionStart){(!na||na&&ra<9)&&t();var e=0,n=function(){o.selForContextMenu==i.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?cr(i,bi)(i):e++<10?o.detectingSelectAll=setTimeout(n,500):o.input.reset()};o.detectingSelectAll=setTimeout(n,200)}}var r=this,i=r.cm,o=i.display,a=r.textarea,u=wn(i,e),s=o.scroller.scrollTop;if(u&&!ua){var l=i.options.resetSelectionOnContextMenu;l&&i.doc.sel.contains(u)==-1&&cr(i,fi)(i.doc,Mr(u),_a);var c=a.style.cssText,f=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var h=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(na?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(ia&&(d=window.scrollY),o.input.focus(),ia&&window.scrollTo(null,d),o.input.reset(),i.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),na&&ra>=9&&t(),ba){Re(e);var p=function(){De(window,"mouseup",p),setTimeout(n,20)};ja(window,"mouseup",p)}else setTimeout(n,50)}},Su.prototype.readOnlyChanged=function(e){e||this.reset()},Su.prototype.setUneditable=function(){},Su.prototype.needsContentAttribute=!1,So(To),zo(To);var Fu="iter insert remove copy getEditor constructor".split(" ");for(var Du in su.prototype)su.prototype.hasOwnProperty(Du)&&h(Fu,Du)<0&&(To.prototype[Du]=function(e){return function(){return e.apply(this.doc,arguments)}}(su.prototype[Du]));return Oe(su),To.inputStyles={textarea:Su,contenteditable:_u},To.defineMode=function(e){To.defaults.mode||"null"==e||(To.defaults.mode=e),Ue.apply(this,arguments)},To.defineMIME=qe,To.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),To.defineMIME("text/plain","null"),To.defineExtension=function(e,t){To.prototype[e]=t},To.defineDocExtension=function(e,t){su.prototype[e]=t},To.fromTextArea=Yo,Qo(To),To.version="5.22.0",To})},function(e,t,n){var r=n(5),i=n(67),o=n(65),a=n(66);e.exports=function(e,t,n){function u(e,t,r){return 0===t||t===r.length-e.length?"":n}return null==e?"":(n=n||" ",e=String(e).replace(o,"$1 $2").replace(a,"$1 $2").replace(i,u),r(e,t))}},function(e,t){var n={tr:{regexp:/[\u0069]/g,map:{i:"İ"}},az:{regexp:/[\u0069]/g,map:{i:"İ"}},lt:{regexp:/[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g,map:{"i̇":"I","j̇":"J","į̇":"Į","i̇̀":"Ì","i̇́":"Í","i̇̃":"Ĩ"}}};e.exports=function(e,t){var r=n[t];return e=null==e?"":String(e),r&&(e=e.replace(r.regexp,function(e){return r.map[e]})),e.toUpperCase()}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e)}return r(e,null,[{key:"initField",value:function(e,t,n){}},{key:"getVueData",value:function(){throw new TypeError("Must implement")}}]),e}();e.exports=i},function(e,t){
  var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};e.exports=function(e,t){var r=n[t];return e=null==e?"":String(e),r&&(e=e.replace(r.regexp,function(e){return r.map[e]})),e.toLowerCase()}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(s(r.parts[o],t))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(s(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],u=i[2],s=i[3],l={css:a,media:u,sourceMap:s};n[o]?n[o].parts.push(l):t.push(n[o]={id:o,parts:[l]})}return t}function i(e,t){var n=m(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function o(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function a(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function u(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function s(e,t){var n,r,i;if(t.singleton){var s=v++;n=g||(g=a(t)),r=l.bind(null,n,s,!1),i=l.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=f.bind(null,n),i=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),r=c.bind(null,n),i=function(){o(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function l(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},d=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),m=d(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,y=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var i=r(e);return n(i,t),function(e){for(var o=[],a=0;a<i.length;a++){var u=i[a],s=h[u.id];s.refs--,o.push(s)}if(e){var l=r(e);n(l,t)}for(var a=0;a<o.length;a++){var s=o[a];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete h[s.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){(function(e,n){(function(){function r(e,t){return e.set(t[0],t[1]),e}function i(e,t){return e.add(t),e}function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function u(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function s(e,t){for(var n=null==e?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function l(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function c(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function f(e,t){var n=null==e?0:e.length;return!!n&&A(e,t,0)>-1}function h(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function d(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function p(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function m(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function g(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function v(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function y(e){return e.split("")}function b(e){return e.match(zt)||[]}function x(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function C(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function A(e,t,n){return t===t?Y(e,t,n):C(e,E,n)}function w(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function E(e){return e!==e}function k(e,t){var n=null==e?0:e.length;return n?B(e,t)/n:Ne}function _(e){return function(t){return null==t?ne:t[e]}}function S(e){return function(t){return null==e?ne:e[t]}}function F(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function D(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function B(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==ne&&(n=n===ne?o:n+o)}return n}function T(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function L(e,t){return d(t,function(t){return[t,e[t]]})}function M(e){return function(t){return e(t)}}function O(e,t){return d(t,function(t){return e[t]})}function N(e,t){return e.has(t)}function I(e,t){for(var n=-1,r=e.length;++n<r&&A(t,e[n],0)>-1;);return n}function j(e,t){for(var n=e.length;n--&&A(t,e[n],0)>-1;);return n}function R(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}function P(e){return"\\"+er[e]}function $(e,t){return null==e?ne:e[t]}function z(e){return qn.test(e)}function W(e){return Vn.test(e)}function H(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function U(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function q(e,t){return function(n){return e(t(n))}}function V(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==le||(e[n]=le,o[i++]=n)}return o}function Z(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function G(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Y(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Q(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function K(e){return z(e)?J(e):vr(e)}function X(e){return z(e)?ee(e):y(e)}function J(e){for(var t=Hn.lastIndex=0;Hn.test(e);)++t;return t}function ee(e){return e.match(Hn)||[]}function te(e){return e.match(Un)||[]}var ne,re="4.17.4",ie=200,oe="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ae="Expected a function",ue="__lodash_hash_undefined__",se=500,le="__lodash_placeholder__",ce=1,fe=2,he=4,de=1,pe=2,me=1,ge=2,ve=4,ye=8,be=16,xe=32,Ce=64,Ae=128,we=256,Ee=512,ke=30,_e="...",Se=800,Fe=16,De=1,Be=2,Te=3,Le=1/0,Me=9007199254740991,Oe=1.7976931348623157e308,Ne=NaN,Ie=4294967295,je=Ie-1,Re=Ie>>>1,Pe=[["ary",Ae],["bind",me],["bindKey",ge],["curry",ye],["curryRight",be],["flip",Ee],["partial",xe],["partialRight",Ce],["rearg",we]],$e="[object Arguments]",ze="[object Array]",We="[object AsyncFunction]",He="[object Boolean]",Ue="[object Date]",qe="[object DOMException]",Ve="[object Error]",Ze="[object Function]",Ge="[object GeneratorFunction]",Ye="[object Map]",Qe="[object Number]",Ke="[object Null]",Xe="[object Object]",Je="[object Promise]",et="[object Proxy]",tt="[object RegExp]",nt="[object Set]",rt="[object String]",it="[object Symbol]",ot="[object Undefined]",at="[object WeakMap]",ut="[object WeakSet]",st="[object ArrayBuffer]",lt="[object DataView]",ct="[object Float32Array]",ft="[object Float64Array]",ht="[object Int8Array]",dt="[object Int16Array]",pt="[object Int32Array]",mt="[object Uint8Array]",gt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",bt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Ct=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,wt=/[&<>"']/g,Et=RegExp(At.source),kt=RegExp(wt.source),_t=/<%-([\s\S]+?)%>/g,St=/<%([\s\S]+?)%>/g,Ft=/<%=([\s\S]+?)%>/g,Dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,Tt=/^\./,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(Mt.source),Nt=/^\s+|\s+$/g,It=/^\s+/,jt=/\s+$/,Rt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,$t=/,? & /,zt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/\\(\\)?/g,Ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ut=/\w*$/,qt=/^[-+]0x[0-9a-f]+$/i,Vt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Gt=/^0o[0-7]+$/i,Yt=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,Xt=/['\n\r\u2028\u2029\\]/g,Jt="\\ud800-\\udfff",en="\\u0300-\\u036f",tn="\\ufe20-\\ufe2f",nn="\\u20d0-\\u20ff",rn=en+tn+nn,on="\\u2700-\\u27bf",an="a-z\\xdf-\\xf6\\xf8-\\xff",un="\\xac\\xb1\\xd7\\xf7",sn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ln="\\u2000-\\u206f",cn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fn="A-Z\\xc0-\\xd6\\xd8-\\xde",hn="\\ufe0e\\ufe0f",dn=un+sn+ln+cn,pn="['’]",mn="["+Jt+"]",gn="["+dn+"]",vn="["+rn+"]",yn="\\d+",bn="["+on+"]",xn="["+an+"]",Cn="[^"+Jt+dn+yn+on+an+fn+"]",An="\\ud83c[\\udffb-\\udfff]",wn="(?:"+vn+"|"+An+")",En="[^"+Jt+"]",kn="(?:\\ud83c[\\udde6-\\uddff]){2}",_n="[\\ud800-\\udbff][\\udc00-\\udfff]",Sn="["+fn+"]",Fn="\\u200d",Dn="(?:"+xn+"|"+Cn+")",Bn="(?:"+Sn+"|"+Cn+")",Tn="(?:"+pn+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+pn+"(?:D|LL|M|RE|S|T|VE))?",Mn=wn+"?",On="["+hn+"]?",Nn="(?:"+Fn+"(?:"+[En,kn,_n].join("|")+")"+On+Mn+")*",In="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",jn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Rn=On+Mn+Nn,Pn="(?:"+[bn,kn,_n].join("|")+")"+Rn,$n="(?:"+[En+vn+"?",vn,kn,_n,mn].join("|")+")",zn=RegExp(pn,"g"),Wn=RegExp(vn,"g"),Hn=RegExp(An+"(?="+An+")|"+$n+Rn,"g"),Un=RegExp([Sn+"?"+xn+"+"+Tn+"(?="+[gn,Sn,"$"].join("|")+")",Bn+"+"+Ln+"(?="+[gn,Sn+Dn,"$"].join("|")+")",Sn+"?"+Dn+"+"+Tn,Sn+"+"+Ln,jn,In,yn,Pn].join("|"),"g"),qn=RegExp("["+Fn+Jt+rn+hn+"]"),Vn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gn=-1,Yn={};Yn[ct]=Yn[ft]=Yn[ht]=Yn[dt]=Yn[pt]=Yn[mt]=Yn[gt]=Yn[vt]=Yn[yt]=!0,Yn[$e]=Yn[ze]=Yn[st]=Yn[He]=Yn[lt]=Yn[Ue]=Yn[Ve]=Yn[Ze]=Yn[Ye]=Yn[Qe]=Yn[Xe]=Yn[tt]=Yn[nt]=Yn[rt]=Yn[at]=!1;var Qn={};Qn[$e]=Qn[ze]=Qn[st]=Qn[lt]=Qn[He]=Qn[Ue]=Qn[ct]=Qn[ft]=Qn[ht]=Qn[dt]=Qn[pt]=Qn[Ye]=Qn[Qe]=Qn[Xe]=Qn[tt]=Qn[nt]=Qn[rt]=Qn[it]=Qn[mt]=Qn[gt]=Qn[vt]=Qn[yt]=!0,Qn[Ve]=Qn[Ze]=Qn[at]=!1;var Kn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Xn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},er={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tr=parseFloat,nr=parseInt,rr="object"==typeof e&&e&&e.Object===Object&&e,ir="object"==typeof self&&self&&self.Object===Object&&self,or=rr||ir||Function("return this")(),ar="object"==typeof t&&t&&!t.nodeType&&t,ur=ar&&"object"==typeof n&&n&&!n.nodeType&&n,sr=ur&&ur.exports===ar,lr=sr&&rr.process,cr=function(){try{return lr&&lr.binding&&lr.binding("util")}catch(e){}}(),fr=cr&&cr.isArrayBuffer,hr=cr&&cr.isDate,dr=cr&&cr.isMap,pr=cr&&cr.isRegExp,mr=cr&&cr.isSet,gr=cr&&cr.isTypedArray,vr=_("length"),yr=S(Kn),br=S(Xn),xr=S(Jn),Cr=function e(t){function n(e){if(ls(e)&&!Ch(e)&&!(e instanceof Y)){if(e instanceof S)return e;if(xc.call(e,"__wrapped__"))return aa(e)}return new S(e)}function y(){}function S(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=ne}function Y(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function J(){var e=new Y(this.__wrapped__);return e.__actions__=$i(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=$i(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=$i(this.__views__),e}function ee(){if(this.__filtered__){var e=new Y(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function zt(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ch(e),r=t<0,i=n?e.length:0,o=Bo(0,i,this.__views__),a=o.start,u=o.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,h=0,d=Qc(s,this.__takeCount__);if(!n||!r&&i==s&&d==s)return Ci(e,this.__actions__);var p=[];e:for(;s--&&h<d;){l+=t;for(var m=-1,g=e[l];++m<f;){var v=c[m],y=v.iteratee,b=v.type,x=y(g);if(b==Be)g=x;else if(!x){if(b==De)continue e;break e}}p[h++]=g}return p}function Jt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function en(){this.__data__=uf?uf(null):{},this.size=0}function tn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function nn(e){var t=this.__data__;if(uf){var n=t[e];return n===ue?ne:n}return xc.call(t,e)?t[e]:ne}function rn(e){var t=this.__data__;return uf?t[e]!==ne:xc.call(t,e)}function on(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uf&&t===ne?ue:t,this}function an(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function un(){this.__data__=[],this.size=0}function sn(e){var t=this.__data__,n=Mn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Oc.call(t,n,1),--this.size,!0}function ln(e){var t=this.__data__,n=Mn(t,e);return n<0?ne:t[n][1]}function cn(e){return Mn(this.__data__,e)>-1}function fn(e,t){var n=this.__data__,r=Mn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function dn(){this.size=0,this.__data__={hash:new Jt,map:new(nf||an),string:new Jt}}function pn(e){var t=_o(this,e).delete(e);return this.size-=t?1:0,t}function mn(e){return _o(this,e).get(e)}function gn(e){return _o(this,e).has(e)}function vn(e,t){var n=_o(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new hn;++t<n;)this.add(e[t])}function bn(e){return this.__data__.set(e,ue),this}function xn(e){return this.__data__.has(e)}function Cn(e){var t=this.__data__=new an(e);this.size=t.size}function An(){this.__data__=new an,this.size=0}function wn(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function En(e){return this.__data__.get(e)}function kn(e){return this.__data__.has(e)}function _n(e,t){var n=this.__data__;if(n instanceof an){var r=n.__data__;if(!nf||r.length<ie-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new hn(r)}return n.set(e,t),this.size=n.size,this}function Sn(e,t){var n=Ch(e),r=!n&&xh(e),i=!n&&!r&&wh(e),o=!n&&!r&&!i&&Fh(e),a=n||r||i||o,u=a?T(e.length,dc):[],s=u.length;for(var l in e)!t&&!xc.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ro(l,s))||u.push(l);return u}function Fn(e){var t=e.length;return t?e[ni(0,t-1)]:ne}function Dn(e,t){return na($i(e),Pn(t,0,e.length))}function Bn(e){return na($i(e))}function Tn(e,t,n){(n===ne||Yu(e[t],n))&&(n!==ne||t in e)||jn(e,t,n)}function Ln(e,t,n){var r=e[t];xc.call(e,t)&&Yu(r,n)&&(n!==ne||t in e)||jn(e,t,n)}function Mn(e,t){for(var n=e.length;n--;)if(Yu(e[n][0],t))return n;return-1}function On(e,t,n,r){return bf(e,function(e,i,o){t(r,e,n(e),o)}),r}function Nn(e,t){return e&&zi(t,Us(t),e)}function In(e,t){return e&&zi(t,qs(t),e)}function jn(e,t,n){"__proto__"==t&&Rc?Rc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Rn(e,t){for(var n=-1,r=t.length,i=ac(r),o=null==e;++n<r;)i[n]=o?ne:zs(e,t[n]);return i}function Pn(e,t,n){return e===e&&(n!==ne&&(e=e<=n?e:n),t!==ne&&(e=e>=t?e:t)),e}function $n(e,t,n,r,i,o){var a,s=t&ce,l=t&fe,c=t&he;if(n&&(a=i?n(e,r,i,o):n(e)),a!==ne)return a;if(!ss(e))return e;var f=Ch(e);if(f){if(a=Mo(e),!s)return $i(e,a)}else{var h=Tf(e),d=h==Ze||h==Ge;if(wh(e))return Fi(e,s);if(h==Xe||h==$e||d&&!i){if(a=l||d?{}:Oo(e),!s)return l?Hi(e,In(a,e)):Wi(e,Nn(a,e))}else{if(!Qn[h])return i?e:{};a=No(e,h,$n,s)}}o||(o=new Cn);var p=o.get(e);if(p)return p;o.set(e,a);var m=c?l?Ao:Co:l?qs:Us,g=f?ne:m(e);return u(g||e,function(r,i){g&&(i=r,r=e[i]),Ln(a,i,$n(r,t,n,i,e,o))}),a}function Hn(e){var t=Us(e);return function(n){return Un(n,e,t)}}function Un(e,t,n){var r=n.length;if(null==e)return!r;for(e=fc(e);r--;){var i=n[r],o=t[i],a=e[i];if(a===ne&&!(i in e)||!o(a))return!1}return!0}function qn(e,t,n){if("function"!=typeof e)throw new pc(ae);return Of(function(){e.apply(ne,n)},t)}function Vn(e,t,n,r){var i=-1,o=f,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=d(t,M(n))),r?(o=h,a=!1):t.length>=ie&&(o=N,a=!1,t=new yn(t));e:for(;++i<u;){var c=e[i],p=null==n?c:n(c);if(c=r||0!==c?c:0,a&&p===p){for(var m=l;m--;)if(t[m]===p)continue e;s.push(c)}else o(t,p,r)||s.push(c)}return s}function Kn(e,t){var n=!0;return bf(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Xn(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(u===ne?a===a&&!xs(a):n(a,u)))var u=a,s=o}return s}function Jn(e,t,n,r){var i=e.length;for(n=_s(n),n<0&&(n=-n>i?0:i+n),r=r===ne||r>i?i:_s(r),r<0&&(r+=i),r=n>r?0:Ss(r);n<r;)e[n++]=t;return e}function er(e,t){var n=[];return bf(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function rr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=jo),i||(i=[]);++o<a;){var u=e[o];t>0&&n(u)?t>1?rr(u,t-1,n,r,i):p(i,u):r||(i[i.length]=u)}return i}function ir(e,t){return e&&Cf(e,t,Us)}function ar(e,t){return e&&Af(e,t,Us)}function ur(e,t){return c(t,function(t){return os(e[t])})}function lr(e,t){t=_i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[ra(t[n++])];return n&&n==r?e:ne}function cr(e,t,n){var r=t(e);return Ch(e)?r:p(r,n(e))}function vr(e){return null==e?e===ne?ot:Ke:jc&&jc in fc(e)?Do(e):Qo(e)}function Cr(e,t){return e>t}function wr(e,t){return null!=e&&xc.call(e,t)}function Er(e,t){return null!=e&&t in fc(e)}function kr(e,t,n){return e>=Qc(t,n)&&e<Yc(t,n)}function _r(e,t,n){for(var r=n?h:f,i=e[0].length,o=e.length,a=o,u=ac(o),s=1/0,l=[];a--;){var c=e[a];a&&t&&(c=d(c,M(t))),s=Qc(c.length,s),u[a]=!n&&(t||i>=120&&c.length>=120)?new yn(a&&c):ne}c=e[0];var p=-1,m=u[0];e:for(;++p<i&&l.length<s;){var g=c[p],v=t?t(g):g;if(g=n||0!==g?g:0,!(m?N(m,v):r(l,v,n))){for(a=o;--a;){var y=u[a];if(!(y?N(y,v):r(e[a],v,n)))continue e}m&&m.push(v),l.push(g)}}return l}function Sr(e,t,n,r){return ir(e,function(e,i,o){t(r,n(e),i,o)}),r}function Fr(e,t,n){t=_i(t,e),e=Xo(e,t);var r=null==e?e:e[ra(ka(t))];return null==r?ne:o(r,e,n)}function Dr(e){return ls(e)&&vr(e)==$e}function Br(e){return ls(e)&&vr(e)==st}function Tr(e){return ls(e)&&vr(e)==Ue}function Lr(e,t,n,r,i){return e===t||(null==e||null==t||!ls(e)&&!ls(t)?e!==e&&t!==t:Mr(e,t,n,r,Lr,i))}function Mr(e,t,n,r,i,o){var a=Ch(e),u=Ch(t),s=a?ze:Tf(e),l=u?ze:Tf(t);s=s==$e?Xe:s,l=l==$e?Xe:l;var c=s==Xe,f=l==Xe,h=s==l;if(h&&wh(e)){if(!wh(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new Cn),a||Fh(e)?vo(e,t,n,r,i,o):yo(e,t,s,n,r,i,o);if(!(n&de)){var d=c&&xc.call(e,"__wrapped__"),p=f&&xc.call(t,"__wrapped__");if(d||p){var m=d?e.value():e,g=p?t.value():t;return o||(o=new Cn),i(m,g,n,r,o)}}return!!h&&(o||(o=new Cn),bo(e,t,n,r,i,o))}function Or(e){return ls(e)&&Tf(e)==Ye}function Nr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=fc(e);i--;){var u=n[i];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=n[i];var s=u[0],l=e[s],c=u[1];if(a&&u[2]){if(l===ne&&!(s in e))return!1}else{var f=new Cn;if(r)var h=r(l,c,s,e,t,f);if(!(h===ne?Lr(c,l,de|pe,r,f):h))return!1}}return!0}function Ir(e){if(!ss(e)||Ho(e))return!1;var t=os(e)?_c:Zt;return t.test(ia(e))}function jr(e){return ls(e)&&vr(e)==tt}function Rr(e){return ls(e)&&Tf(e)==nt}function Pr(e){return ls(e)&&us(e.length)&&!!Yn[vr(e)]}function $r(e){return"function"==typeof e?e:null==e?Ol:"object"==typeof e?Ch(e)?Vr(e[0],e[1]):qr(e):Wl(e)}function zr(e){if(!Uo(e))return Gc(e);var t=[];for(var n in fc(e))xc.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Wr(e){if(!ss(e))return Yo(e);var t=Uo(e),n=[];for(var r in e)("constructor"!=r||!t&&xc.call(e,r))&&n.push(r);return n}function Hr(e,t){return e<t}function Ur(e,t){var n=-1,r=Qu(e)?ac(e.length):[];return bf(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function qr(e){var t=So(e);return 1==t.length&&t[0][2]?Vo(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function Vr(e,t){return $o(e)&&qo(t)?Vo(ra(e),t):function(n){var r=zs(n,e);return r===ne&&r===t?Hs(n,e):Lr(t,r,de|pe)}}function Zr(e,t,n,r,i){e!==t&&Cf(t,function(o,a){if(ss(o))i||(i=new Cn),Gr(e,t,a,n,Zr,r,i);else{var u=r?r(e[a],o,a+"",e,t,i):ne;u===ne&&(u=o),Tn(e,a,u)}},qs)}function Gr(e,t,n,r,i,o,a){var u=e[n],s=t[n],l=a.get(s);if(l)return void Tn(e,n,l);var c=o?o(u,s,n+"",e,t,a):ne,f=c===ne;if(f){var h=Ch(s),d=!h&&wh(s),p=!h&&!d&&Fh(s);c=s,h||d||p?Ch(u)?c=u:Ku(u)?c=$i(u):d?(f=!1,c=Fi(s,!0)):p?(f=!1,c=Ni(s,!0)):c=[]:vs(s)||xh(s)?(c=u,xh(u)?c=Ds(u):(!ss(u)||r&&os(u))&&(c=Oo(s))):f=!1}f&&(a.set(s,c),i(c,s,r,o,a),a.delete(s)),Tn(e,n,c)}function Yr(e,t){var n=e.length;if(n)return t+=t<0?n:0,Ro(t,n)?e[t]:ne}function Qr(e,t,n){var r=-1;t=d(t.length?t:[Ol],M(ko()));var i=Ur(e,function(e,n,i){var o=d(t,function(t){return t(e)});return{criteria:o,index:++r,value:e}});return D(i,function(e,t){return ji(e,t,n)})}function Kr(e,t){return Xr(e,t,function(t,n){return Hs(e,n)})}function Xr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=lr(e,a);n(u,a)&&si(o,_i(a,e),u)}return o}function Jr(e){return function(t){return lr(t,e)}}function ei(e,t,n,r){var i=r?w:A,o=-1,a=t.length,u=e;for(e===t&&(t=$i(t)),n&&(u=d(e,M(n)));++o<a;)for(var s=0,l=t[o],c=n?n(l):l;(s=i(u,c,s,r))>-1;)u!==e&&Oc.call(u,s,1),Oc.call(e,s,1);return e}function ti(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Ro(i)?Oc.call(e,i,1):yi(e,i)}}return e}function ni(e,t){return e+Hc(Jc()*(t-e+1))}function ri(e,t,n,r){for(var i=-1,o=Yc(Wc((t-e)/(n||1)),0),a=ac(o);o--;)a[r?o:++i]=e,e+=n;return a}function ii(e,t){var n="";if(!e||t<1||t>Me)return n;do t%2&&(n+=e),t=Hc(t/2),t&&(e+=e);while(t);return n}function oi(e,t){return Nf(Ko(e,t,Ol),e+"")}function ai(e){return Fn(rl(e))}function ui(e,t){var n=rl(e);return na(n,Pn(t,0,n.length))}function si(e,t,n,r){if(!ss(e))return e;t=_i(t,e);for(var i=-1,o=t.length,a=o-1,u=e;null!=u&&++i<o;){var s=ra(t[i]),l=n;if(i!=a){var c=u[s];l=r?r(c,s,u):ne,l===ne&&(l=ss(c)?c:Ro(t[i+1])?[]:{})}Ln(u,s,l),u=u[s]}return e}function li(e){return na(rl(e))}function ci(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=ac(i);++r<i;)o[r]=e[r+t];return o}function fi(e,t){var n;return bf(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function hi(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=Re){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!xs(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return di(e,t,Ol,n)}function di(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!==t,u=null===t,s=xs(t),l=t===ne;i<o;){var c=Hc((i+o)/2),f=n(e[c]),h=f!==ne,d=null===f,p=f===f,m=xs(f);if(a)var g=r||p;else g=l?p&&(r||h):u?p&&h&&(r||!d):s?p&&h&&!d&&(r||!m):!d&&!m&&(r?f<=t:f<t);g?i=c+1:o=c}return Qc(o,je)}function pi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Yu(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function mi(e){return"number"==typeof e?e:xs(e)?Ne:+e}function gi(e){if("string"==typeof e)return e;if(Ch(e))return d(e,gi)+"";if(xs(e))return vf?vf.call(e):"";var t=e+"";return"0"==t&&1/e==-Le?"-0":t}function vi(e,t,n){var r=-1,i=f,o=e.length,a=!0,u=[],s=u;if(n)a=!1,i=h;else if(o>=ie){var l=t?null:Sf(e);if(l)return Z(l);a=!1,i=N,s=new yn}else s=t?[]:u;e:for(;++r<o;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d===d){for(var p=s.length;p--;)if(s[p]===d)continue e;t&&s.push(d),u.push(c)}else i(s,d,n)||(s!==u&&s.push(d),u.push(c))}return u}function yi(e,t){return t=_i(t,e),e=Xo(e,t),null==e||delete e[ra(ka(t))]}function bi(e,t,n,r){return si(e,t,n(lr(e,t)),r)}function xi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ci(e,r?0:o,r?o+1:i):ci(e,r?o+1:0,r?i:o)}function Ci(e,t){var n=e;return n instanceof Y&&(n=n.value()),m(t,function(e,t){return t.func.apply(t.thisArg,p([e],t.args))},n)}function Ai(e,t,n){var r=e.length;if(r<2)return r?vi(e[0]):[];for(var i=-1,o=ac(r);++i<r;)for(var a=e[i],u=-1;++u<r;)u!=i&&(o[i]=Vn(o[i]||a,e[u],t,n));return vi(rr(o,1),t,n)}function wi(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var u=r<o?t[r]:ne;n(a,e[r],u)}return a}function Ei(e){return Ku(e)?e:[]}function ki(e){return"function"==typeof e?e:Ol}function _i(e,t){return Ch(e)?e:$o(e,t)?[e]:If(Ts(e))}function Si(e,t,n){var r=e.length;return n=n===ne?r:n,!t&&n>=r?e:ci(e,t,n)}function Fi(e,t){if(t)return e.slice();var n=e.length,r=Bc?Bc(n):new e.constructor(n);return e.copy(r),r}function Di(e){var t=new e.constructor(e.byteLength);return new Dc(t).set(new Dc(e)),t}function Bi(e,t){var n=t?Di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ti(e,t,n){var i=t?n(U(e),ce):U(e);return m(i,r,new e.constructor)}function Li(e){var t=new e.constructor(e.source,Ut.exec(e));return t.lastIndex=e.lastIndex,t}function Mi(e,t,n){var r=t?n(Z(e),ce):Z(e);return m(r,i,new e.constructor)}function Oi(e){return gf?fc(gf.call(e)):{}}function Ni(e,t){var n=t?Di(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ii(e,t){if(e!==t){var n=e!==ne,r=null===e,i=e===e,o=xs(e),a=t!==ne,u=null===t,s=t===t,l=xs(t);if(!u&&!l&&!o&&e>t||o&&a&&s&&!u&&!l||r&&a&&s||!n&&s||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!s)return-1}return 0}function ji(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;++r<a;){var s=Ii(i[r],o[r]);if(s){if(r>=u)return s;var l=n[r];return s*("desc"==l?-1:1)}}return e.index-t.index}function Ri(e,t,n,r){for(var i=-1,o=e.length,a=n.length,u=-1,s=t.length,l=Yc(o-a,0),c=ac(s+l),f=!r;++u<s;)c[u]=t[u];for(;++i<a;)(f||i<o)&&(c[n[i]]=e[i]);for(;l--;)c[u++]=e[i++];return c}function Pi(e,t,n,r){for(var i=-1,o=e.length,a=-1,u=n.length,s=-1,l=t.length,c=Yc(o-u,0),f=ac(c+l),h=!r;++i<c;)f[i]=e[i];for(var d=i;++s<l;)f[d+s]=t[s];for(;++a<u;)(h||i<o)&&(f[d+n[a]]=e[i++]);return f}function $i(e,t){var n=-1,r=e.length;for(t||(t=ac(r));++n<r;)t[n]=e[n];return t}function zi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var u=t[o],s=r?r(n[u],e[u],u,n,e):ne;s===ne&&(s=e[u]),i?jn(n,u,s):Ln(n,u,s)}return n}function Wi(e,t){return zi(e,Df(e),t)}function Hi(e,t){return zi(e,Bf(e),t)}function Ui(e,t){return function(n,r){var i=Ch(n)?a:On,o=t?t():{};return i(n,e,ko(r,2),o)}}function qi(e){return oi(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:ne,a=i>2?n[2]:ne;for(o=e.length>3&&"function"==typeof o?(i--,o):ne,a&&Po(n[0],n[1],a)&&(o=i<3?ne:o,i=1),t=fc(t);++r<i;){var u=n[r];u&&e(t,u,r,o)}return t})}function Vi(e,t){return function(n,r){if(null==n)return n;if(!Qu(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=fc(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function Zi(e){return function(t,n,r){for(var i=-1,o=fc(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(n(o[s],s,o)===!1)break}return t}}function Gi(e,t,n){function r(){var t=this&&this!==or&&this instanceof r?o:e;return t.apply(i?n:this,arguments)}var i=t&me,o=Ki(e);return r}function Yi(e){return function(t){t=Ts(t);var n=z(t)?X(t):ne,r=n?n[0]:t.charAt(0),i=n?Si(n,1).join(""):t.slice(1);return r[e]()+i}}function Qi(e){return function(t){return m(Dl(ll(t).replace(zn,"")),e,"")}}function Ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=yf(e.prototype),r=e.apply(n,t);return ss(r)?r:n}}function Xi(e,t,n){function r(){for(var a=arguments.length,u=ac(a),s=a,l=Eo(r);s--;)u[s]=arguments[s];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:V(u,l);if(a-=c.length,a<n)return lo(e,t,to,r.placeholder,ne,u,c,ne,ne,n-a);var f=this&&this!==or&&this instanceof r?i:e;return o(f,this,u)}var i=Ki(e);return r}function Ji(e){return function(t,n,r){var i=fc(t);if(!Qu(t)){var o=ko(n,3);t=Us(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:ne}}function eo(e){return xo(function(t){var n=t.length,r=n,i=S.prototype.thru;for(e&&t.reverse();r--;){var o=t[r];if("function"!=typeof o)throw new pc(ae);if(i&&!a&&"wrapper"==wo(o))var a=new S([],!0)}for(r=a?r:n;++r<n;){o=t[r];var u=wo(o),s="wrapper"==u?Ff(o):ne;a=s&&Wo(s[0])&&s[1]==(Ae|ye|xe|we)&&!s[4].length&&1==s[9]?a[wo(s[0])].apply(a,s[3]):1==o.length&&Wo(o)?a[u]():a.thru(o)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Ch(r))return a.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);
  return o}})}function to(e,t,n,r,i,o,a,u,s,l){function c(){for(var v=arguments.length,y=ac(v),b=v;b--;)y[b]=arguments[b];if(p)var x=Eo(c),C=R(y,x);if(r&&(y=Ri(y,r,i,p)),o&&(y=Pi(y,o,a,p)),v-=C,p&&v<l){var A=V(y,x);return lo(e,t,to,c.placeholder,n,y,A,u,s,l-v)}var w=h?n:this,E=d?w[e]:e;return v=y.length,u?y=Jo(y,u):m&&v>1&&y.reverse(),f&&s<v&&(y.length=s),this&&this!==or&&this instanceof c&&(E=g||Ki(E)),E.apply(w,y)}var f=t&Ae,h=t&me,d=t&ge,p=t&(ye|be),m=t&Ee,g=d?ne:Ki(e);return c}function no(e,t){return function(n,r){return Sr(n,e,t(r),{})}}function ro(e,t){return function(n,r){var i;if(n===ne&&r===ne)return t;if(n!==ne&&(i=n),r!==ne){if(i===ne)return r;"string"==typeof n||"string"==typeof r?(n=gi(n),r=gi(r)):(n=mi(n),r=mi(r)),i=e(n,r)}return i}}function io(e){return xo(function(t){return t=d(t,M(ko())),oi(function(n){var r=this;return e(t,function(e){return o(e,r,n)})})})}function oo(e,t){t=t===ne?" ":gi(t);var n=t.length;if(n<2)return n?ii(t,e):t;var r=ii(t,Wc(e/K(t)));return z(t)?Si(X(r),0,e).join(""):r.slice(0,e)}function ao(e,t,n,r){function i(){for(var t=-1,s=arguments.length,l=-1,c=r.length,f=ac(c+s),h=this&&this!==or&&this instanceof i?u:e;++l<c;)f[l]=r[l];for(;s--;)f[l++]=arguments[++t];return o(h,a?n:this,f)}var a=t&me,u=Ki(e);return i}function uo(e){return function(t,n,r){return r&&"number"!=typeof r&&Po(t,n,r)&&(n=r=ne),t=ks(t),n===ne?(n=t,t=0):n=ks(n),r=r===ne?t<n?1:-1:ks(r),ri(t,n,r,e)}}function so(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Fs(t),n=Fs(n)),e(t,n)}}function lo(e,t,n,r,i,o,a,u,s,l){var c=t&ye,f=c?a:ne,h=c?ne:a,d=c?o:ne,p=c?ne:o;t|=c?xe:Ce,t&=~(c?Ce:xe),t&ve||(t&=~(me|ge));var m=[e,t,i,d,f,p,h,u,s,l],g=n.apply(ne,m);return Wo(e)&&Mf(g,m),g.placeholder=r,ea(g,e,t)}function co(e){var t=cc[e];return function(e,n){if(e=Fs(e),n=null==n?0:Qc(_s(n),292)){var r=(Ts(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(Ts(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}function fo(e){return function(t){var n=Tf(t);return n==Ye?U(t):n==nt?G(t):L(t,e(t))}}function ho(e,t,n,r,i,o,a,u){var s=t&ge;if(!s&&"function"!=typeof e)throw new pc(ae);var l=r?r.length:0;if(l||(t&=~(xe|Ce),r=i=ne),a=a===ne?a:Yc(_s(a),0),u=u===ne?u:_s(u),l-=i?i.length:0,t&Ce){var c=r,f=i;r=i=ne}var h=s?ne:Ff(e),d=[e,t,n,r,i,c,f,o,a,u];if(h&&Go(d,h),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],u=d[9]=d[9]===ne?s?0:e.length:Yc(d[9]-l,0),!u&&t&(ye|be)&&(t&=~(ye|be)),t&&t!=me)p=t==ye||t==be?Xi(e,t,u):t!=xe&&t!=(me|xe)||i.length?to.apply(ne,d):ao(e,t,n,r);else var p=Gi(e,t,n);var m=h?wf:Mf;return ea(m(p,d),e,t)}function po(e,t,n,r){return e===ne||Yu(e,vc[n])&&!xc.call(r,n)?t:e}function mo(e,t,n,r,i,o){return ss(e)&&ss(t)&&(o.set(t,e),Zr(e,t,ne,mo,o),o.delete(t)),e}function go(e){return vs(e)?ne:e}function vo(e,t,n,r,i,o){var a=n&de,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,f=!0,h=n&pe?new yn:ne;for(o.set(e,t),o.set(t,e);++c<u;){var d=e[c],p=t[c];if(r)var m=a?r(p,d,c,t,e,o):r(d,p,c,e,t,o);if(m!==ne){if(m)continue;f=!1;break}if(h){if(!v(t,function(e,t){if(!N(h,t)&&(d===e||i(d,e,n,r,o)))return h.push(t)})){f=!1;break}}else if(d!==p&&!i(d,p,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function yo(e,t,n,r,i,o,a){switch(n){case lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case st:return!(e.byteLength!=t.byteLength||!o(new Dc(e),new Dc(t)));case He:case Ue:case Qe:return Yu(+e,+t);case Ve:return e.name==t.name&&e.message==t.message;case tt:case rt:return e==t+"";case Ye:var u=U;case nt:var s=r&de;if(u||(u=Z),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=pe,a.set(e,t);var c=vo(u(e),u(t),r,i,o,a);return a.delete(e),c;case it:if(gf)return gf.call(e)==gf.call(t)}return!1}function bo(e,t,n,r,i,o){var a=n&de,u=Co(e),s=u.length,l=Co(t),c=l.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var h=u[f];if(!(a?h in t:xc.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var m=a;++f<s;){h=u[f];var g=e[h],v=t[h];if(r)var y=a?r(v,g,h,t,e,o):r(g,v,h,e,t,o);if(!(y===ne?g===v||i(g,v,n,r,o):y)){p=!1;break}m||(m="constructor"==h)}if(p&&!m){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(p=!1)}return o.delete(e),o.delete(t),p}function xo(e){return Nf(Ko(e,ne,va),e+"")}function Co(e){return cr(e,Us,Df)}function Ao(e){return cr(e,qs,Bf)}function wo(e){for(var t=e.name+"",n=lf[t],r=xc.call(lf,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Eo(e){var t=xc.call(n,"placeholder")?n:e;return t.placeholder}function ko(){var e=n.iteratee||Nl;return e=e===Nl?$r:e,arguments.length?e(arguments[0],arguments[1]):e}function _o(e,t){var n=e.__data__;return zo(t)?n["string"==typeof t?"string":"hash"]:n.map}function So(e){for(var t=Us(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,qo(i)]}return t}function Fo(e,t){var n=$(e,t);return Ir(n)?n:ne}function Do(e){var t=xc.call(e,jc),n=e[jc];try{e[jc]=ne;var r=!0}catch(e){}var i=wc.call(e);return r&&(t?e[jc]=n:delete e[jc]),i}function Bo(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Qc(t,e+a);break;case"takeRight":e=Yc(e,t-a)}}return{start:e,end:t}}function To(e){var t=e.match(Pt);return t?t[1].split($t):[]}function Lo(e,t,n){t=_i(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=ra(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&us(i)&&Ro(a,i)&&(Ch(e)||xh(e)))}function Mo(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&xc.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Oo(e){return"function"!=typeof e.constructor||Uo(e)?{}:yf(Tc(e))}function No(e,t,n,r){var i=e.constructor;switch(t){case st:return Di(e);case He:case Ue:return new i(+e);case lt:return Bi(e,r);case ct:case ft:case ht:case dt:case pt:case mt:case gt:case vt:case yt:return Ni(e,r);case Ye:return Ti(e,r,n);case Qe:case rt:return new i(e);case tt:return Li(e);case nt:return Mi(e,r,n);case it:return Oi(e)}}function Io(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Rt,"{\n/* [wrapped with "+t+"] */\n")}function jo(e){return Ch(e)||xh(e)||!!(Nc&&e&&e[Nc])}function Ro(e,t){return t=null==t?Me:t,!!t&&("number"==typeof e||Yt.test(e))&&e>-1&&e%1==0&&e<t}function Po(e,t,n){if(!ss(n))return!1;var r=typeof t;return!!("number"==r?Qu(n)&&Ro(t,n.length):"string"==r&&t in n)&&Yu(n[t],e)}function $o(e,t){if(Ch(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!xs(e))||(Bt.test(e)||!Dt.test(e)||null!=t&&e in fc(t))}function zo(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Wo(e){var t=wo(e),r=n[t];if("function"!=typeof r||!(t in Y.prototype))return!1;if(e===r)return!0;var i=Ff(r);return!!i&&e===i[0]}function Ho(e){return!!Ac&&Ac in e}function Uo(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||vc;return e===n}function qo(e){return e===e&&!ss(e)}function Vo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==ne||e in fc(n)))}}function Zo(e){var t=Nu(e,function(e){return n.size===se&&n.clear(),e}),n=t.cache;return t}function Go(e,t){var n=e[1],r=t[1],i=n|r,o=i<(me|ge|Ae),a=r==Ae&&n==ye||r==Ae&&n==we&&e[7].length<=t[8]||r==(Ae|we)&&t[7].length<=t[8]&&n==ye;if(!o&&!a)return e;r&me&&(e[2]=t[2],i|=n&me?0:ve);var u=t[3];if(u){var s=e[3];e[3]=s?Ri(s,u,t[4]):u,e[4]=s?V(e[3],le):t[4]}return u=t[5],u&&(s=e[5],e[5]=s?Pi(s,u,t[6]):u,e[6]=s?V(e[5],le):t[6]),u=t[7],u&&(e[7]=u),r&Ae&&(e[8]=null==e[8]?t[8]:Qc(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function Yo(e){var t=[];if(null!=e)for(var n in fc(e))t.push(n);return t}function Qo(e){return wc.call(e)}function Ko(e,t,n){return t=Yc(t===ne?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Yc(r.length-t,0),u=ac(a);++i<a;)u[i]=r[t+i];i=-1;for(var s=ac(t+1);++i<t;)s[i]=r[i];return s[t]=n(u),o(e,this,s)}}function Xo(e,t){return t.length<2?e:lr(e,ci(t,0,-1))}function Jo(e,t){for(var n=e.length,r=Qc(t.length,n),i=$i(e);r--;){var o=t[r];e[r]=Ro(o,n)?i[o]:ne}return e}function ea(e,t,n){var r=t+"";return Nf(e,Io(r,oa(To(r),n)))}function ta(e){var t=0,n=0;return function(){var r=Kc(),i=Fe-(r-n);if(n=r,i>0){if(++t>=Se)return arguments[0]}else t=0;return e.apply(ne,arguments)}}function na(e,t){var n=-1,r=e.length,i=r-1;for(t=t===ne?r:t;++n<t;){var o=ni(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function ra(e){if("string"==typeof e||xs(e))return e;var t=e+"";return"0"==t&&1/e==-Le?"-0":t}function ia(e){if(null!=e){try{return bc.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function oa(e,t){return u(Pe,function(n){var r="_."+n[0];t&n[1]&&!f(e,r)&&e.push(r)}),e.sort()}function aa(e){if(e instanceof Y)return e.clone();var t=new S(e.__wrapped__,e.__chain__);return t.__actions__=$i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function ua(e,t,n){t=(n?Po(e,t,n):t===ne)?1:Yc(_s(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,o=0,a=ac(Wc(r/t));i<r;)a[o++]=ci(e,i,i+=t);return a}function sa(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}function la(){var e=arguments.length;if(!e)return[];for(var t=ac(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return p(Ch(n)?$i(n):[n],rr(t,1))}function ca(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===ne?1:_s(t),ci(e,t<0?0:t,r)):[]}function fa(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===ne?1:_s(t),t=r-t,ci(e,0,t<0?0:t)):[]}function ha(e,t){return e&&e.length?xi(e,ko(t,3),!0,!0):[]}function da(e,t){return e&&e.length?xi(e,ko(t,3),!0):[]}function pa(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Po(e,t,n)&&(n=0,r=i),Jn(e,t,n,r)):[]}function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=Yc(r+i,0)),C(e,ko(t,3),i)}function ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==ne&&(i=_s(n),i=n<0?Yc(r+i,0):Qc(i,r-1)),C(e,ko(t,3),i,!0)}function va(e){var t=null==e?0:e.length;return t?rr(e,1):[]}function ya(e){var t=null==e?0:e.length;return t?rr(e,Le):[]}function ba(e,t){var n=null==e?0:e.length;return n?(t=t===ne?1:_s(t),rr(e,t)):[]}function xa(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function Ca(e){return e&&e.length?e[0]:ne}function Aa(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:_s(n);return i<0&&(i=Yc(r+i,0)),A(e,t,i)}function wa(e){var t=null==e?0:e.length;return t?ci(e,0,-1):[]}function Ea(e,t){return null==e?"":Zc.call(e,t)}function ka(e){var t=null==e?0:e.length;return t?e[t-1]:ne}function _a(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==ne&&(i=_s(n),i=i<0?Yc(r+i,0):Qc(i,r-1)),t===t?Q(e,t,i):C(e,E,i,!0)}function Sa(e,t){return e&&e.length?Yr(e,_s(t)):ne}function Fa(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function Da(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,ko(n,2)):e}function Ba(e,t,n){return e&&e.length&&t&&t.length?ei(e,t,ne,n):e}function Ta(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=ko(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return ti(e,i),n}function La(e){return null==e?e:ef.call(e)}function Ma(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Po(e,t,n)?(t=0,n=r):(t=null==t?0:_s(t),n=n===ne?r:_s(n)),ci(e,t,n)):[]}function Oa(e,t){return hi(e,t)}function Na(e,t,n){return di(e,t,ko(n,2))}function Ia(e,t){var n=null==e?0:e.length;if(n){var r=hi(e,t);if(r<n&&Yu(e[r],t))return r}return-1}function ja(e,t){return hi(e,t,!0)}function Ra(e,t,n){return di(e,t,ko(n,2),!0)}function Pa(e,t){var n=null==e?0:e.length;if(n){var r=hi(e,t,!0)-1;if(Yu(e[r],t))return r}return-1}function $a(e){return e&&e.length?pi(e):[]}function za(e,t){return e&&e.length?pi(e,ko(t,2)):[]}function Wa(e){var t=null==e?0:e.length;return t?ci(e,1,t):[]}function Ha(e,t,n){return e&&e.length?(t=n||t===ne?1:_s(t),ci(e,0,t<0?0:t)):[]}function Ua(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===ne?1:_s(t),t=r-t,ci(e,t<0?0:t,r)):[]}function qa(e,t){return e&&e.length?xi(e,ko(t,3),!1,!0):[]}function Va(e,t){return e&&e.length?xi(e,ko(t,3)):[]}function Za(e){return e&&e.length?vi(e):[]}function Ga(e,t){return e&&e.length?vi(e,ko(t,2)):[]}function Ya(e,t){return t="function"==typeof t?t:ne,e&&e.length?vi(e,ne,t):[]}function Qa(e){if(!e||!e.length)return[];var t=0;return e=c(e,function(e){if(Ku(e))return t=Yc(e.length,t),!0}),T(t,function(t){return d(e,_(t))})}function Ka(e,t){if(!e||!e.length)return[];var n=Qa(e);return null==t?n:d(n,function(e){return o(t,ne,e)})}function Xa(e,t){return wi(e||[],t||[],Ln)}function Ja(e,t){return wi(e||[],t||[],si)}function eu(e){var t=n(e);return t.__chain__=!0,t}function tu(e,t){return t(e),e}function nu(e,t){return t(e)}function ru(){return eu(this)}function iu(){return new S(this.value(),this.__chain__)}function ou(){this.__values__===ne&&(this.__values__=Es(this.value()));var e=this.__index__>=this.__values__.length,t=e?ne:this.__values__[this.__index__++];return{done:e,value:t}}function au(){return this}function uu(e){for(var t,n=this;n instanceof y;){var r=aa(n);r.__index__=0,r.__values__=ne,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t}function su(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:nu,args:[La],thisArg:ne}),new S(t,this.__chain__)}return this.thru(La)}function lu(){return Ci(this.__wrapped__,this.__actions__)}function cu(e,t,n){var r=Ch(e)?l:Kn;return n&&Po(e,t,n)&&(t=ne),r(e,ko(t,3))}function fu(e,t){var n=Ch(e)?c:er;return n(e,ko(t,3))}function hu(e,t){return rr(yu(e,t),1)}function du(e,t){return rr(yu(e,t),Le)}function pu(e,t,n){return n=n===ne?1:_s(n),rr(yu(e,t),n)}function mu(e,t){var n=Ch(e)?u:bf;return n(e,ko(t,3))}function gu(e,t){var n=Ch(e)?s:xf;return n(e,ko(t,3))}function vu(e,t,n,r){e=Qu(e)?e:rl(e),n=n&&!r?_s(n):0;var i=e.length;return n<0&&(n=Yc(i+n,0)),bs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&A(e,t,n)>-1}function yu(e,t){var n=Ch(e)?d:Ur;return n(e,ko(t,3))}function bu(e,t,n,r){return null==e?[]:(Ch(t)||(t=null==t?[]:[t]),n=r?ne:n,Ch(n)||(n=null==n?[]:[n]),Qr(e,t,n))}function xu(e,t,n){var r=Ch(e)?m:F,i=arguments.length<3;return r(e,ko(t,4),n,i,bf)}function Cu(e,t,n){var r=Ch(e)?g:F,i=arguments.length<3;return r(e,ko(t,4),n,i,xf)}function Au(e,t){var n=Ch(e)?c:er;return n(e,Iu(ko(t,3)))}function wu(e){var t=Ch(e)?Fn:ai;return t(e)}function Eu(e,t,n){t=(n?Po(e,t,n):t===ne)?1:_s(t);var r=Ch(e)?Dn:ui;return r(e,t)}function ku(e){var t=Ch(e)?Bn:li;return t(e)}function _u(e){if(null==e)return 0;if(Qu(e))return bs(e)?K(e):e.length;var t=Tf(e);return t==Ye||t==nt?e.size:zr(e).length}function Su(e,t,n){var r=Ch(e)?v:fi;return n&&Po(e,t,n)&&(t=ne),r(e,ko(t,3))}function Fu(e,t){if("function"!=typeof t)throw new pc(ae);return e=_s(e),function(){if(--e<1)return t.apply(this,arguments)}}function Du(e,t,n){return t=n?ne:t,t=e&&null==t?e.length:t,ho(e,Ae,ne,ne,ne,ne,t)}function Bu(e,t){var n;if("function"!=typeof t)throw new pc(ae);return e=_s(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=ne),n}}function Tu(e,t,n){t=n?ne:t;var r=ho(e,ye,ne,ne,ne,ne,ne,t);return r.placeholder=Tu.placeholder,r}function Lu(e,t,n){t=n?ne:t;var r=ho(e,be,ne,ne,ne,ne,ne,t);return r.placeholder=Lu.placeholder,r}function Mu(e,t,n){function r(t){var n=h,r=d;return h=d=ne,y=t,m=e.apply(r,n)}function i(e){return y=e,g=Of(u,t),b?r(e):m}function o(e){var n=e-v,r=e-y,i=t-n;return x?Qc(i,p-r):i}function a(e){var n=e-v,r=e-y;return v===ne||n>=t||n<0||x&&r>=p}function u(){var e=lh();return a(e)?s(e):void(g=Of(u,o(e)))}function s(e){return g=ne,C&&h?r(e):(h=d=ne,m)}function l(){g!==ne&&_f(g),y=0,h=v=d=g=ne}function c(){return g===ne?m:s(lh())}function f(){var e=lh(),n=a(e);if(h=arguments,d=this,v=e,n){if(g===ne)return i(v);if(x)return g=Of(u,t),r(v)}return g===ne&&(g=Of(u,t)),m}var h,d,p,m,g,v,y=0,b=!1,x=!1,C=!0;if("function"!=typeof e)throw new pc(ae);return t=Fs(t)||0,ss(n)&&(b=!!n.leading,x="maxWait"in n,p=x?Yc(Fs(n.maxWait)||0,t):p,C="trailing"in n?!!n.trailing:C),f.cancel=l,f.flush=c,f}function Ou(e){return ho(e,Ee)}function Nu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new pc(ae);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Nu.Cache||hn),n}function Iu(e){if("function"!=typeof e)throw new pc(ae);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ju(e){return Bu(2,e)}function Ru(e,t){if("function"!=typeof e)throw new pc(ae);return t=t===ne?t:_s(t),oi(e,t)}function Pu(e,t){if("function"!=typeof e)throw new pc(ae);return t=null==t?0:Yc(_s(t),0),oi(function(n){var r=n[t],i=Si(n,0,t);return r&&p(i,r),o(e,this,i)})}function $u(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new pc(ae);return ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mu(e,t,{leading:r,maxWait:t,trailing:i})}function zu(e){return Du(e,1)}function Wu(e,t){return mh(ki(t),e)}function Hu(){if(!arguments.length)return[];var e=arguments[0];return Ch(e)?e:[e]}function Uu(e){return $n(e,he)}function qu(e,t){return t="function"==typeof t?t:ne,$n(e,he,t)}function Vu(e){return $n(e,ce|he)}function Zu(e,t){return t="function"==typeof t?t:ne,$n(e,ce|he,t)}function Gu(e,t){return null==t||Un(e,t,Us(t))}function Yu(e,t){return e===t||e!==e&&t!==t}function Qu(e){return null!=e&&us(e.length)&&!os(e)}function Ku(e){return ls(e)&&Qu(e)}function Xu(e){return e===!0||e===!1||ls(e)&&vr(e)==He}function Ju(e){return ls(e)&&1===e.nodeType&&!vs(e)}function es(e){if(null==e)return!0;if(Qu(e)&&(Ch(e)||"string"==typeof e||"function"==typeof e.splice||wh(e)||Fh(e)||xh(e)))return!e.length;var t=Tf(e);if(t==Ye||t==nt)return!e.size;if(Uo(e))return!zr(e).length;for(var n in e)if(xc.call(e,n))return!1;return!0}function ts(e,t){return Lr(e,t)}function ns(e,t,n){n="function"==typeof n?n:ne;var r=n?n(e,t):ne;return r===ne?Lr(e,t,ne,n):!!r}function rs(e){if(!ls(e))return!1;var t=vr(e);return t==Ve||t==qe||"string"==typeof e.message&&"string"==typeof e.name&&!vs(e)}function is(e){return"number"==typeof e&&Vc(e)}function os(e){if(!ss(e))return!1;var t=vr(e);return t==Ze||t==Ge||t==We||t==et}function as(e){return"number"==typeof e&&e==_s(e)}function us(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Me}function ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ls(e){return null!=e&&"object"==typeof e}function cs(e,t){return e===t||Nr(e,t,So(t))}function fs(e,t,n){return n="function"==typeof n?n:ne,Nr(e,t,So(t),n)}function hs(e){return gs(e)&&e!=+e}function ds(e){if(Lf(e))throw new sc(oe);return Ir(e)}function ps(e){return null===e}function ms(e){return null==e}function gs(e){return"number"==typeof e||ls(e)&&vr(e)==Qe}function vs(e){if(!ls(e)||vr(e)!=Xe)return!1;var t=Tc(e);if(null===t)return!0;var n=xc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Ec}function ys(e){return as(e)&&e>=-Me&&e<=Me}function bs(e){return"string"==typeof e||!Ch(e)&&ls(e)&&vr(e)==rt}function xs(e){return"symbol"==typeof e||ls(e)&&vr(e)==it}function Cs(e){return e===ne}function As(e){return ls(e)&&Tf(e)==at}function ws(e){return ls(e)&&vr(e)==ut}function Es(e){if(!e)return[];if(Qu(e))return bs(e)?X(e):$i(e);if(Ic&&e[Ic])return H(e[Ic]());var t=Tf(e),n=t==Ye?U:t==nt?Z:rl;return n(e)}function ks(e){if(!e)return 0===e?e:0;if(e=Fs(e),e===Le||e===-Le){var t=e<0?-1:1;return t*Oe}return e===e?e:0}function _s(e){var t=ks(e),n=t%1;return t===t?n?t-n:t:0}function Ss(e){return e?Pn(_s(e),0,Ie):0}function Fs(e){if("number"==typeof e)return e;if(xs(e))return Ne;if(ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Nt,"");var n=Vt.test(e);return n||Gt.test(e)?nr(e.slice(2),n?2:8):qt.test(e)?Ne:+e}function Ds(e){return zi(e,qs(e))}function Bs(e){return e?Pn(_s(e),-Me,Me):0===e?e:0}function Ts(e){return null==e?"":gi(e)}function Ls(e,t){var n=yf(e);return null==t?n:Nn(n,t)}function Ms(e,t){return x(e,ko(t,3),ir)}function Os(e,t){return x(e,ko(t,3),ar)}function Ns(e,t){return null==e?e:Cf(e,ko(t,3),qs)}function Is(e,t){return null==e?e:Af(e,ko(t,3),qs)}function js(e,t){return e&&ir(e,ko(t,3))}function Rs(e,t){return e&&ar(e,ko(t,3))}function Ps(e){return null==e?[]:ur(e,Us(e))}function $s(e){return null==e?[]:ur(e,qs(e))}function zs(e,t,n){var r=null==e?ne:lr(e,t);return r===ne?n:r}function Ws(e,t){return null!=e&&Lo(e,t,wr)}function Hs(e,t){return null!=e&&Lo(e,t,Er)}function Us(e){return Qu(e)?Sn(e):zr(e)}function qs(e){return Qu(e)?Sn(e,!0):Wr(e)}function Vs(e,t){var n={};return t=ko(t,3),ir(e,function(e,r,i){jn(n,t(e,r,i),e)}),n}function Zs(e,t){var n={};return t=ko(t,3),ir(e,function(e,r,i){jn(n,r,t(e,r,i))}),n}function Gs(e,t){return Ys(e,Iu(ko(t)))}function Ys(e,t){if(null==e)return{};var n=d(Ao(e),function(e){return[e]});return t=ko(t),Xr(e,n,function(e,n){return t(e,n[0])})}function Qs(e,t,n){t=_i(t,e);var r=-1,i=t.length;for(i||(i=1,e=ne);++r<i;){var o=null==e?ne:e[ra(t[r])];o===ne&&(r=i,o=n),e=os(o)?o.call(e):o}return e}function Ks(e,t,n){return null==e?e:si(e,t,n)}function Xs(e,t,n,r){return r="function"==typeof r?r:ne,null==e?e:si(e,t,n,r)}function Js(e,t,n){var r=Ch(e),i=r||wh(e)||Fh(e);if(t=ko(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ss(e)&&os(o)?yf(Tc(e)):{}}return(i?u:ir)(e,function(e,r,i){return t(n,e,r,i)}),n}function el(e,t){return null==e||yi(e,t)}function tl(e,t,n){return null==e?e:bi(e,t,ki(n))}function nl(e,t,n,r){return r="function"==typeof r?r:ne,null==e?e:bi(e,t,ki(n),r)}function rl(e){return null==e?[]:O(e,Us(e))}function il(e){return null==e?[]:O(e,qs(e))}function ol(e,t,n){return n===ne&&(n=t,t=ne),n!==ne&&(n=Fs(n),n=n===n?n:0),t!==ne&&(t=Fs(t),t=t===t?t:0),Pn(Fs(e),t,n)}function al(e,t,n){return t=ks(t),n===ne?(n=t,t=0):n=ks(n),e=Fs(e),kr(e,t,n)}function ul(e,t,n){if(n&&"boolean"!=typeof n&&Po(e,t,n)&&(t=n=ne),n===ne&&("boolean"==typeof t?(n=t,t=ne):"boolean"==typeof e&&(n=e,e=ne)),e===ne&&t===ne?(e=0,t=1):(e=ks(e),t===ne?(t=e,e=0):t=ks(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Jc();return Qc(e+i*(t-e+tr("1e-"+((i+"").length-1))),t)}return ni(e,t)}function sl(e){return ed(Ts(e).toLowerCase())}function ll(e){return e=Ts(e),e&&e.replace(Qt,yr).replace(Wn,"")}function cl(e,t,n){e=Ts(e),t=gi(t);var r=e.length;n=n===ne?r:Pn(_s(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}function fl(e){return e=Ts(e),e&&kt.test(e)?e.replace(wt,br):e}function hl(e){return e=Ts(e),e&&Ot.test(e)?e.replace(Mt,"\\$&"):e}function dl(e,t,n){e=Ts(e),t=_s(t);var r=t?K(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return oo(Hc(i),n)+e+oo(Wc(i),n)}function pl(e,t,n){e=Ts(e),t=_s(t);var r=t?K(e):0;return t&&r<t?e+oo(t-r,n):e}function ml(e,t,n){e=Ts(e),t=_s(t);var r=t?K(e):0;return t&&r<t?oo(t-r,n)+e:e}function gl(e,t,n){return n||null==t?t=0:t&&(t=+t),Xc(Ts(e).replace(It,""),t||0)}function vl(e,t,n){return t=(n?Po(e,t,n):t===ne)?1:_s(t),ii(Ts(e),t)}function yl(){var e=arguments,t=Ts(e[0]);return e.length<3?t:t.replace(e[1],e[2])}function bl(e,t,n){return n&&"number"!=typeof n&&Po(e,t,n)&&(t=n=ne),(n=n===ne?Ie:n>>>0)?(e=Ts(e),e&&("string"==typeof t||null!=t&&!_h(t))&&(t=gi(t),!t&&z(e))?Si(X(e),0,n):e.split(t,n)):[]}function xl(e,t,n){return e=Ts(e),n=null==n?0:Pn(_s(n),0,e.length),t=gi(t),e.slice(n,n+t.length)==t}function Cl(e,t,r){var i=n.templateSettings;r&&Po(e,t,r)&&(t=ne),e=Ts(e),t=Mh({},t,i,po);var o,a,u=Mh({},t.imports,i.imports,po),s=Us(u),l=O(u,s),c=0,f=t.interpolate||Kt,h="__p += '",d=hc((t.escape||Kt).source+"|"+f.source+"|"+(f===Ft?Ht:Kt).source+"|"+(t.evaluate||Kt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Gn+"]")+"\n";e.replace(d,function(t,n,r,i,u,s){return r||(r=i),h+=e.slice(c,s).replace(Xt,P),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),u&&(a=!0,h+="';\n"+u+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t}),h+="';\n";var m=t.variable;m||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(bt,""):h).replace(xt,"$1").replace(Ct,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=td(function(){return lc(s,p+"return "+h).apply(ne,l)});if(g.source=h,rs(g))throw g;return g}function Al(e){return Ts(e).toLowerCase()}function wl(e){return Ts(e).toUpperCase()}function El(e,t,n){if(e=Ts(e),e&&(n||t===ne))return e.replace(Nt,"");if(!e||!(t=gi(t)))return e;var r=X(e),i=X(t),o=I(r,i),a=j(r,i)+1;return Si(r,o,a).join("")}function kl(e,t,n){if(e=Ts(e),e&&(n||t===ne))return e.replace(jt,"");if(!e||!(t=gi(t)))return e;var r=X(e),i=j(r,X(t))+1;return Si(r,0,i).join("")}function _l(e,t,n){if(e=Ts(e),e&&(n||t===ne))return e.replace(It,"");if(!e||!(t=gi(t)))return e;var r=X(e),i=I(r,X(t));return Si(r,i).join("")}function Sl(e,t){var n=ke,r=_e;if(ss(t)){var i="separator"in t?t.separator:i;n="length"in t?_s(t.length):n,r="omission"in t?gi(t.omission):r}e=Ts(e);var o=e.length;if(z(e)){var a=X(e);o=a.length}if(n>=o)return e;var u=n-K(r);if(u<1)return r;var s=a?Si(a,0,u).join(""):e.slice(0,u);if(i===ne)return s+r;if(a&&(u+=s.length-u),_h(i)){if(e.slice(u).search(i)){var l,c=s;for(i.global||(i=hc(i.source,Ts(Ut.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;s=s.slice(0,f===ne?u:f)}}else if(e.indexOf(gi(i),u)!=u){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r}function Fl(e){return e=Ts(e),e&&Et.test(e)?e.replace(At,xr):e}function Dl(e,t,n){return e=Ts(e),t=n?ne:t,t===ne?W(e)?te(e):b(e):e.match(t)||[]}function Bl(e){var t=null==e?0:e.length,n=ko();return e=t?d(e,function(e){if("function"!=typeof e[1])throw new pc(ae);return[n(e[0]),e[1]]}):[],oi(function(n){for(var r=-1;++r<t;){var i=e[r];if(o(i[0],this,n))return o(i[1],this,n)}})}function Tl(e){return Hn($n(e,ce))}function Ll(e){return function(){return e}}function Ml(e,t){return null==e||e!==e?t:e}function Ol(e){return e}function Nl(e){return $r("function"==typeof e?e:$n(e,ce))}function Il(e){return qr($n(e,ce))}function jl(e,t){return Vr(e,$n(t,ce))}function Rl(e,t,n){var r=Us(t),i=ur(t,r);null!=n||ss(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,Us(t)));var o=!(ss(n)&&"chain"in n&&!n.chain),a=os(e);return u(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=$i(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,p([this.value()],arguments))})}),e}function Pl(){return or._===this&&(or._=kc),this}function $l(){}function zl(e){return e=_s(e),oi(function(t){return Yr(t,e)})}function Wl(e){return $o(e)?_(ra(e)):Jr(e)}function Hl(e){return function(t){return null==e?ne:lr(e,t)}}function Ul(){return[]}function ql(){return!1}function Vl(){return{}}function Zl(){return""}function Gl(){return!0}function Yl(e,t){if(e=_s(e),e<1||e>Me)return[];var n=Ie,r=Qc(e,Ie);t=ko(t),e-=Ie;for(var i=T(r,t);++n<e;)t(n);return i}function Ql(e){return Ch(e)?d(e,ra):xs(e)?[e]:$i(If(Ts(e)))}function Kl(e){var t=++Cc;return Ts(e)+t}function Xl(e){return e&&e.length?Xn(e,Ol,Cr):ne}function Jl(e,t){return e&&e.length?Xn(e,ko(t,2),Cr):ne}function ec(e){return k(e,Ol)}function tc(e,t){return k(e,ko(t,2))}function nc(e){return e&&e.length?Xn(e,Ol,Hr):ne}function rc(e,t){return e&&e.length?Xn(e,ko(t,2),Hr):ne}function ic(e){return e&&e.length?B(e,Ol):0}function oc(e,t){return e&&e.length?B(e,ko(t,2)):0}t=null==t?or:Ar.defaults(or.Object(),t,Ar.pick(or,Zn));var ac=t.Array,uc=t.Date,sc=t.Error,lc=t.Function,cc=t.Math,fc=t.Object,hc=t.RegExp,dc=t.String,pc=t.TypeError,mc=ac.prototype,gc=lc.prototype,vc=fc.prototype,yc=t["__core-js_shared__"],bc=gc.toString,xc=vc.hasOwnProperty,Cc=0,Ac=function(){var e=/[^.]+$/.exec(yc&&yc.keys&&yc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),wc=vc.toString,Ec=bc.call(fc),kc=or._,_c=hc("^"+bc.call(xc).replace(Mt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sc=sr?t.Buffer:ne,Fc=t.Symbol,Dc=t.Uint8Array,Bc=Sc?Sc.allocUnsafe:ne,Tc=q(fc.getPrototypeOf,fc),Lc=fc.create,Mc=vc.propertyIsEnumerable,Oc=mc.splice,Nc=Fc?Fc.isConcatSpreadable:ne,Ic=Fc?Fc.iterator:ne,jc=Fc?Fc.toStringTag:ne,Rc=function(){try{var e=Fo(fc,"defineProperty");return e({},"",{}),e}catch(e){}}(),Pc=t.clearTimeout!==or.clearTimeout&&t.clearTimeout,$c=uc&&uc.now!==or.Date.now&&uc.now,zc=t.setTimeout!==or.setTimeout&&t.setTimeout,Wc=cc.ceil,Hc=cc.floor,Uc=fc.getOwnPropertySymbols,qc=Sc?Sc.isBuffer:ne,Vc=t.isFinite,Zc=mc.join,Gc=q(fc.keys,fc),Yc=cc.max,Qc=cc.min,Kc=uc.now,Xc=t.parseInt,Jc=cc.random,ef=mc.reverse,tf=Fo(t,"DataView"),nf=Fo(t,"Map"),rf=Fo(t,"Promise"),of=Fo(t,"Set"),af=Fo(t,"WeakMap"),uf=Fo(fc,"create"),sf=af&&new af,lf={},cf=ia(tf),ff=ia(nf),hf=ia(rf),df=ia(of),pf=ia(af),mf=Fc?Fc.prototype:ne,gf=mf?mf.valueOf:ne,vf=mf?mf.toString:ne,yf=function(){function e(){}return function(t){if(!ss(t))return{};if(Lc)return Lc(t);e.prototype=t;var n=new e;return e.prototype=ne,n}}();n.templateSettings={escape:_t,evaluate:St,interpolate:Ft,variable:"",imports:{_:n}},n.prototype=y.prototype,n.prototype.constructor=n,S.prototype=yf(y.prototype),S.prototype.constructor=S,Y.prototype=yf(y.prototype),Y.prototype.constructor=Y,Jt.prototype.clear=en,Jt.prototype.delete=tn,Jt.prototype.get=nn,Jt.prototype.has=rn,Jt.prototype.set=on,an.prototype.clear=un,an.prototype.delete=sn,an.prototype.get=ln,an.prototype.has=cn,an.prototype.set=fn,hn.prototype.clear=dn,hn.prototype.delete=pn,hn.prototype.get=mn,hn.prototype.has=gn,hn.prototype.set=vn,yn.prototype.add=yn.prototype.push=bn,yn.prototype.has=xn,Cn.prototype.clear=An,Cn.prototype.delete=wn,Cn.prototype.get=En,Cn.prototype.has=kn,Cn.prototype.set=_n;var bf=Vi(ir),xf=Vi(ar,!0),Cf=Zi(),Af=Zi(!0),wf=sf?function(e,t){return sf.set(e,t),e}:Ol,Ef=Rc?function(e,t){return Rc(e,"toString",{configurable:!0,enumerable:!1,value:Ll(t),writable:!0})}:Ol,kf=oi,_f=Pc||function(e){return or.clearTimeout(e)},Sf=of&&1/Z(new of([,-0]))[1]==Le?function(e){return new of(e)}:$l,Ff=sf?function(e){return sf.get(e)}:$l,Df=Uc?function(e){return null==e?[]:(e=fc(e),c(Uc(e),function(t){return Mc.call(e,t)}))}:Ul,Bf=Uc?function(e){for(var t=[];e;)p(t,Df(e)),e=Tc(e);return t}:Ul,Tf=vr;(tf&&Tf(new tf(new ArrayBuffer(1)))!=lt||nf&&Tf(new nf)!=Ye||rf&&Tf(rf.resolve())!=Je||of&&Tf(new of)!=nt||af&&Tf(new af)!=at)&&(Tf=function(e){var t=vr(e),n=t==Xe?e.constructor:ne,r=n?ia(n):"";if(r)switch(r){case cf:return lt;case ff:return Ye;case hf:return Je;case df:return nt;case pf:return at}return t});var Lf=yc?os:ql,Mf=ta(wf),Of=zc||function(e,t){return or.setTimeout(e,t)},Nf=ta(Ef),If=Zo(function(e){var t=[];return Tt.test(e)&&t.push(""),e.replace(Lt,function(e,n,r,i){t.push(r?i.replace(Wt,"$1"):n||e)}),t}),jf=oi(function(e,t){return Ku(e)?Vn(e,rr(t,1,Ku,!0)):[]}),Rf=oi(function(e,t){var n=ka(t);return Ku(n)&&(n=ne),Ku(e)?Vn(e,rr(t,1,Ku,!0),ko(n,2)):[]}),Pf=oi(function(e,t){var n=ka(t);return Ku(n)&&(n=ne),Ku(e)?Vn(e,rr(t,1,Ku,!0),ne,n):[]}),$f=oi(function(e){var t=d(e,Ei);return t.length&&t[0]===e[0]?_r(t):[]}),zf=oi(function(e){var t=ka(e),n=d(e,Ei);return t===ka(n)?t=ne:n.pop(),n.length&&n[0]===e[0]?_r(n,ko(t,2)):[]}),Wf=oi(function(e){var t=ka(e),n=d(e,Ei);return t="function"==typeof t?t:ne,t&&n.pop(),n.length&&n[0]===e[0]?_r(n,ne,t):[]}),Hf=oi(Fa),Uf=xo(function(e,t){var n=null==e?0:e.length,r=Rn(e,t);return ti(e,d(t,function(e){return Ro(e,n)?+e:e}).sort(Ii)),r}),qf=oi(function(e){return vi(rr(e,1,Ku,!0))}),Vf=oi(function(e){var t=ka(e);return Ku(t)&&(t=ne),
  vi(rr(e,1,Ku,!0),ko(t,2))}),Zf=oi(function(e){var t=ka(e);return t="function"==typeof t?t:ne,vi(rr(e,1,Ku,!0),ne,t)}),Gf=oi(function(e,t){return Ku(e)?Vn(e,t):[]}),Yf=oi(function(e){return Ai(c(e,Ku))}),Qf=oi(function(e){var t=ka(e);return Ku(t)&&(t=ne),Ai(c(e,Ku),ko(t,2))}),Kf=oi(function(e){var t=ka(e);return t="function"==typeof t?t:ne,Ai(c(e,Ku),ne,t)}),Xf=oi(Qa),Jf=oi(function(e){var t=e.length,n=t>1?e[t-1]:ne;return n="function"==typeof n?(e.pop(),n):ne,Ka(e,n)}),eh=xo(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Rn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Y&&Ro(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:nu,args:[i],thisArg:ne}),new S(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(ne),e})):this.thru(i)}),th=Ui(function(e,t,n){xc.call(e,n)?++e[n]:jn(e,n,1)}),nh=Ji(ma),rh=Ji(ga),ih=Ui(function(e,t,n){xc.call(e,n)?e[n].push(t):jn(e,n,[t])}),oh=oi(function(e,t,n){var r=-1,i="function"==typeof t,a=Qu(e)?ac(e.length):[];return bf(e,function(e){a[++r]=i?o(t,e,n):Fr(e,t,n)}),a}),ah=Ui(function(e,t,n){jn(e,n,t)}),uh=Ui(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),sh=oi(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Po(e,t[0],t[1])?t=[]:n>2&&Po(t[0],t[1],t[2])&&(t=[t[0]]),Qr(e,rr(t,1),[])}),lh=$c||function(){return or.Date.now()},ch=oi(function(e,t,n){var r=me;if(n.length){var i=V(n,Eo(ch));r|=xe}return ho(e,r,t,n,i)}),fh=oi(function(e,t,n){var r=me|ge;if(n.length){var i=V(n,Eo(fh));r|=xe}return ho(t,r,e,n,i)}),hh=oi(function(e,t){return qn(e,1,t)}),dh=oi(function(e,t,n){return qn(e,Fs(t)||0,n)});Nu.Cache=hn;var ph=kf(function(e,t){t=1==t.length&&Ch(t[0])?d(t[0],M(ko())):d(rr(t,1),M(ko()));var n=t.length;return oi(function(r){for(var i=-1,a=Qc(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return o(e,this,r)})}),mh=oi(function(e,t){var n=V(t,Eo(mh));return ho(e,xe,ne,t,n)}),gh=oi(function(e,t){var n=V(t,Eo(gh));return ho(e,Ce,ne,t,n)}),vh=xo(function(e,t){return ho(e,we,ne,ne,ne,t)}),yh=so(Cr),bh=so(function(e,t){return e>=t}),xh=Dr(function(){return arguments}())?Dr:function(e){return ls(e)&&xc.call(e,"callee")&&!Mc.call(e,"callee")},Ch=ac.isArray,Ah=fr?M(fr):Br,wh=qc||ql,Eh=hr?M(hr):Tr,kh=dr?M(dr):Or,_h=pr?M(pr):jr,Sh=mr?M(mr):Rr,Fh=gr?M(gr):Pr,Dh=so(Hr),Bh=so(function(e,t){return e<=t}),Th=qi(function(e,t){if(Uo(t)||Qu(t))return void zi(t,Us(t),e);for(var n in t)xc.call(t,n)&&Ln(e,n,t[n])}),Lh=qi(function(e,t){zi(t,qs(t),e)}),Mh=qi(function(e,t,n,r){zi(t,qs(t),e,r)}),Oh=qi(function(e,t,n,r){zi(t,Us(t),e,r)}),Nh=xo(Rn),Ih=oi(function(e){return e.push(ne,po),o(Mh,ne,e)}),jh=oi(function(e){return e.push(ne,mo),o(Wh,ne,e)}),Rh=no(function(e,t,n){e[t]=n},Ll(Ol)),Ph=no(function(e,t,n){xc.call(e,t)?e[t].push(n):e[t]=[n]},ko),$h=oi(Fr),zh=qi(function(e,t,n){Zr(e,t,n)}),Wh=qi(function(e,t,n,r){Zr(e,t,n,r)}),Hh=xo(function(e,t){var n={};if(null==e)return n;var r=!1;t=d(t,function(t){return t=_i(t,e),r||(r=t.length>1),t}),zi(e,Ao(e),n),r&&(n=$n(n,ce|fe|he,go));for(var i=t.length;i--;)yi(n,t[i]);return n}),Uh=xo(function(e,t){return null==e?{}:Kr(e,t)}),qh=fo(Us),Vh=fo(qs),Zh=Qi(function(e,t,n){return t=t.toLowerCase(),e+(n?sl(t):t)}),Gh=Qi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Yh=Qi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qh=Yi("toLowerCase"),Kh=Qi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Xh=Qi(function(e,t,n){return e+(n?" ":"")+ed(t)}),Jh=Qi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ed=Yi("toUpperCase"),td=oi(function(e,t){try{return o(e,ne,t)}catch(e){return rs(e)?e:new sc(e)}}),nd=xo(function(e,t){return u(t,function(t){t=ra(t),jn(e,t,ch(e[t],e))}),e}),rd=eo(),id=eo(!0),od=oi(function(e,t){return function(n){return Fr(n,e,t)}}),ad=oi(function(e,t){return function(n){return Fr(e,n,t)}}),ud=io(d),sd=io(l),ld=io(v),cd=uo(),fd=uo(!0),hd=ro(function(e,t){return e+t},0),dd=co("ceil"),pd=ro(function(e,t){return e/t},1),md=co("floor"),gd=ro(function(e,t){return e*t},1),vd=co("round"),yd=ro(function(e,t){return e-t},0);return n.after=Fu,n.ary=Du,n.assign=Th,n.assignIn=Lh,n.assignInWith=Mh,n.assignWith=Oh,n.at=Nh,n.before=Bu,n.bind=ch,n.bindAll=nd,n.bindKey=fh,n.castArray=Hu,n.chain=eu,n.chunk=ua,n.compact=sa,n.concat=la,n.cond=Bl,n.conforms=Tl,n.constant=Ll,n.countBy=th,n.create=Ls,n.curry=Tu,n.curryRight=Lu,n.debounce=Mu,n.defaults=Ih,n.defaultsDeep=jh,n.defer=hh,n.delay=dh,n.difference=jf,n.differenceBy=Rf,n.differenceWith=Pf,n.drop=ca,n.dropRight=fa,n.dropRightWhile=ha,n.dropWhile=da,n.fill=pa,n.filter=fu,n.flatMap=hu,n.flatMapDeep=du,n.flatMapDepth=pu,n.flatten=va,n.flattenDeep=ya,n.flattenDepth=ba,n.flip=Ou,n.flow=rd,n.flowRight=id,n.fromPairs=xa,n.functions=Ps,n.functionsIn=$s,n.groupBy=ih,n.initial=wa,n.intersection=$f,n.intersectionBy=zf,n.intersectionWith=Wf,n.invert=Rh,n.invertBy=Ph,n.invokeMap=oh,n.iteratee=Nl,n.keyBy=ah,n.keys=Us,n.keysIn=qs,n.map=yu,n.mapKeys=Vs,n.mapValues=Zs,n.matches=Il,n.matchesProperty=jl,n.memoize=Nu,n.merge=zh,n.mergeWith=Wh,n.method=od,n.methodOf=ad,n.mixin=Rl,n.negate=Iu,n.nthArg=zl,n.omit=Hh,n.omitBy=Gs,n.once=ju,n.orderBy=bu,n.over=ud,n.overArgs=ph,n.overEvery=sd,n.overSome=ld,n.partial=mh,n.partialRight=gh,n.partition=uh,n.pick=Uh,n.pickBy=Ys,n.property=Wl,n.propertyOf=Hl,n.pull=Hf,n.pullAll=Fa,n.pullAllBy=Da,n.pullAllWith=Ba,n.pullAt=Uf,n.range=cd,n.rangeRight=fd,n.rearg=vh,n.reject=Au,n.remove=Ta,n.rest=Ru,n.reverse=La,n.sampleSize=Eu,n.set=Ks,n.setWith=Xs,n.shuffle=ku,n.slice=Ma,n.sortBy=sh,n.sortedUniq=$a,n.sortedUniqBy=za,n.split=bl,n.spread=Pu,n.tail=Wa,n.take=Ha,n.takeRight=Ua,n.takeRightWhile=qa,n.takeWhile=Va,n.tap=tu,n.throttle=$u,n.thru=nu,n.toArray=Es,n.toPairs=qh,n.toPairsIn=Vh,n.toPath=Ql,n.toPlainObject=Ds,n.transform=Js,n.unary=zu,n.union=qf,n.unionBy=Vf,n.unionWith=Zf,n.uniq=Za,n.uniqBy=Ga,n.uniqWith=Ya,n.unset=el,n.unzip=Qa,n.unzipWith=Ka,n.update=tl,n.updateWith=nl,n.values=rl,n.valuesIn=il,n.without=Gf,n.words=Dl,n.wrap=Wu,n.xor=Yf,n.xorBy=Qf,n.xorWith=Kf,n.zip=Xf,n.zipObject=Xa,n.zipObjectDeep=Ja,n.zipWith=Jf,n.entries=qh,n.entriesIn=Vh,n.extend=Lh,n.extendWith=Mh,Rl(n,n),n.add=hd,n.attempt=td,n.camelCase=Zh,n.capitalize=sl,n.ceil=dd,n.clamp=ol,n.clone=Uu,n.cloneDeep=Vu,n.cloneDeepWith=Zu,n.cloneWith=qu,n.conformsTo=Gu,n.deburr=ll,n.defaultTo=Ml,n.divide=pd,n.endsWith=cl,n.eq=Yu,n.escape=fl,n.escapeRegExp=hl,n.every=cu,n.find=nh,n.findIndex=ma,n.findKey=Ms,n.findLast=rh,n.findLastIndex=ga,n.findLastKey=Os,n.floor=md,n.forEach=mu,n.forEachRight=gu,n.forIn=Ns,n.forInRight=Is,n.forOwn=js,n.forOwnRight=Rs,n.get=zs,n.gt=yh,n.gte=bh,n.has=Ws,n.hasIn=Hs,n.head=Ca,n.identity=Ol,n.includes=vu,n.indexOf=Aa,n.inRange=al,n.invoke=$h,n.isArguments=xh,n.isArray=Ch,n.isArrayBuffer=Ah,n.isArrayLike=Qu,n.isArrayLikeObject=Ku,n.isBoolean=Xu,n.isBuffer=wh,n.isDate=Eh,n.isElement=Ju,n.isEmpty=es,n.isEqual=ts,n.isEqualWith=ns,n.isError=rs,n.isFinite=is,n.isFunction=os,n.isInteger=as,n.isLength=us,n.isMap=kh,n.isMatch=cs,n.isMatchWith=fs,n.isNaN=hs,n.isNative=ds,n.isNil=ms,n.isNull=ps,n.isNumber=gs,n.isObject=ss,n.isObjectLike=ls,n.isPlainObject=vs,n.isRegExp=_h,n.isSafeInteger=ys,n.isSet=Sh,n.isString=bs,n.isSymbol=xs,n.isTypedArray=Fh,n.isUndefined=Cs,n.isWeakMap=As,n.isWeakSet=ws,n.join=Ea,n.kebabCase=Gh,n.last=ka,n.lastIndexOf=_a,n.lowerCase=Yh,n.lowerFirst=Qh,n.lt=Dh,n.lte=Bh,n.max=Xl,n.maxBy=Jl,n.mean=ec,n.meanBy=tc,n.min=nc,n.minBy=rc,n.stubArray=Ul,n.stubFalse=ql,n.stubObject=Vl,n.stubString=Zl,n.stubTrue=Gl,n.multiply=gd,n.nth=Sa,n.noConflict=Pl,n.noop=$l,n.now=lh,n.pad=dl,n.padEnd=pl,n.padStart=ml,n.parseInt=gl,n.random=ul,n.reduce=xu,n.reduceRight=Cu,n.repeat=vl,n.replace=yl,n.result=Qs,n.round=vd,n.runInContext=e,n.sample=wu,n.size=_u,n.snakeCase=Kh,n.some=Su,n.sortedIndex=Oa,n.sortedIndexBy=Na,n.sortedIndexOf=Ia,n.sortedLastIndex=ja,n.sortedLastIndexBy=Ra,n.sortedLastIndexOf=Pa,n.startCase=Xh,n.startsWith=xl,n.subtract=yd,n.sum=ic,n.sumBy=oc,n.template=Cl,n.times=Yl,n.toFinite=ks,n.toInteger=_s,n.toLength=Ss,n.toLower=Al,n.toNumber=Fs,n.toSafeInteger=Bs,n.toString=Ts,n.toUpper=wl,n.trim=El,n.trimEnd=kl,n.trimStart=_l,n.truncate=Sl,n.unescape=Fl,n.uniqueId=Kl,n.upperCase=Jh,n.upperFirst=ed,n.each=mu,n.eachRight=gu,n.first=Ca,Rl(n,function(){var e={};return ir(n,function(t,r){xc.call(n.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),n.VERSION=re,u(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),u(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===ne?1:Yc(_s(n),0);var r=this.__filtered__&&!t?new Y(this):this.clone();return r.__filtered__?r.__takeCount__=Qc(n,r.__takeCount__):r.__views__.push({size:Qc(n,Ie),type:e+(r.__dir__<0?"Right":"")}),r},Y.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),u(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==De||n==Te;Y.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ko(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),u(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),u(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Ol)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=oi(function(e,t){return"function"==typeof e?new Y(this):this.map(function(n){return Fr(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Iu(ko(e)))},Y.prototype.slice=function(e,t){e=_s(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==ne&&(t=_s(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(Ie)},ir(Y.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=n[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(n.prototype[t]=function(){var t=this.__wrapped__,u=i?[1]:arguments,s=t instanceof Y,l=u[0],c=s||Ch(t),f=function(e){var t=o.apply(n,p([e],u));return i&&h?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(s=c=!1);var h=this.__chain__,d=!!this.__actions__.length,m=a&&!h,g=s&&!d;if(!a&&c){t=g?t:new Y(this);var v=e.apply(t,u);return v.__actions__.push({func:nu,args:[f],thisArg:ne}),new S(v,h)}return m&&g?e.apply(this,u):(v=this.thru(f),m?i?v.value()[0]:v.value():v)})}),u(["pop","push","shift","sort","splice","unshift"],function(e){var t=mc[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var n=this.value();return t.apply(Ch(n)?n:[],e)}return this[r](function(n){return t.apply(Ch(n)?n:[],e)})}}),ir(Y.prototype,function(e,t){var r=n[t];if(r){var i=r.name+"",o=lf[i]||(lf[i]=[]);o.push({name:t,func:r})}}),lf[to(ne,ge).name]=[{name:"wrapper",func:ne}],Y.prototype.clone=J,Y.prototype.reverse=ee,Y.prototype.value=zt,n.prototype.at=eh,n.prototype.chain=ru,n.prototype.commit=iu,n.prototype.next=ou,n.prototype.plant=uu,n.prototype.reverse=su,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=lu,n.prototype.first=n.prototype.head,Ic&&(n.prototype[Ic]=au),n},Ar=Cr();ur?((ur.exports=Ar)._=Ar,ar._=Ar):or._=Ar}).call(this)}).call(t,n(4),n(21)(e))},function(e,t,n){var r=n(2);e.exports=function(e,t){return null==e?"":(e=String(e),r(e.charAt(0),t)+e.substr(1))}},function(e,t,n){var r=n(2),i=n(1);e.exports=function(e,t,n){var o=i(e,t);return n||(o=o.replace(/ (?=\d)/g,"_")),o.replace(/ (.)/g,function(e,n){return r(n,t)})}},function(e,t,n){t.no=t.noCase=n(1),t.dot=t.dotCase=n(55),t.swap=t.swapCase=n(82),t.path=t.pathCase=n(70),t.upper=t.upperCase=n(2),t.lower=t.lowerCase=n(5),t.camel=t.camelCase=n(10),t.snake=t.snakeCase=n(20),t.title=t.titleCase=n(83),t.param=t.paramCase=n(68),t.header=t.headerCase=n(56),t.pascal=t.pascalCase=n(69),t.constant=t.constantCase=n(52),t.sentence=t.sentenceCase=n(78),t.isUpper=t.isUpperCase=n(60),t.isLower=t.isLowerCase=n(59),t.ucFirst=t.upperCaseFirst=n(9),t.lcFirst=t.lowerCaseFirst=n(63)},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){!function(e){e(n(0))}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n){return t.indent(e.base,n)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}})},function(e,t,n){!function(e){e(n(0),n(15),n(50))}(function(e){"use strict";e.defineMode("markdown",function(t,n){function r(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}function i(e,t,n){return t.f=t.inline=n,n(e,t)}function o(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return!e||!/\S/.test(e.string)}function u(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,A&&e.f==l&&(e.f=p,e.block=s),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine=null,null}function s(t,o){var u=t.sol(),s=o.list!==!1,l=o.indentedCode;o.indentedCode=!1,s&&(o.indentationDiff>=0?(o.indentationDiff<4&&(o.indentation-=o.indentationDiff),o.list=null):o.indentation>0?o.list=null:o.list=!1);var f=null;if(o.indentationDiff>=4)return t.skipToEnd(),l||a(o.prevLine)?(o.indentation-=4,o.indentedCode=!0,w.code):null;if(t.eatSpace())return null;if((f=t.match(F))&&f[1].length<=6)return o.header=f[1].length,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,h(o);if(!(a(o.prevLine)||o.quote||s||l)&&(f=t.match(D)))return o.header="="==f[0].charAt(0)?1:2,n.highlightFormatting&&(o.formatting="header"),o.f=o.inline,h(o);if(t.eat(">"))return o.quote=u?1:o.quote+1,n.highlightFormatting&&(o.formatting="quote"),t.eatSpace(),h(o);if("["===t.peek())return i(t,o,y);if(t.match(k,!0))return o.hr=!0,w.hr;if(f=t.match(_)){var d=f[1]?"ol":"ul";for(o.indentation=t.column()+t.current().length,o.list=!0;o.listStack&&t.column()<o.listStack[o.listStack.length-1];)o.listStack.pop();return o.listStack.push(o.indentation),n.taskLists&&t.match(S,!1)&&(o.taskList=!0),o.f=o.inline,n.highlightFormatting&&(o.formatting=["list","list-"+d]),h(o)}return n.fencedCodeBlocks&&(f=t.match(T,!0))?(o.fencedChars=f[1],o.localMode=r(f[2]),o.localMode&&(o.localState=e.startState(o.localMode)),o.f=o.block=c,n.highlightFormatting&&(o.formatting="code-block"),o.code=-1,h(o)):i(t,o,o.inline)}function l(t,n){var r=C.token(t,n.htmlState);if(!A){var i=e.innerMode(C,n.htmlState);("xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=p,n.block=s,n.htmlState=null)}return r}function c(e,t){return t.fencedChars&&e.match(t.fencedChars,!1)?(t.localMode=t.localState=null,t.f=t.block=f,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),w.code)}function f(e,t){e.match(t.fencedChars),t.block=s,t.f=p,t.fencedChars=null,n.highlightFormatting&&(t.formatting="code-block"),t.code=1;var r=h(t);return t.code=0,r}function h(e){var t=[];if(e.formatting){t.push(w.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(w.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(w.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(w.formatting+"-"+e.formatting[r]+"-"+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(w.linkHref,"url"):(e.strong&&t.push(w.strong),e.em&&t.push(w.em),e.strikethrough&&t.push(w.strikethrough),e.linkText&&t.push(w.linkText),e.code&&t.push(w.code),e.image&&t.push(w.image),e.imageAltText&&t.push(w.imageAltText,"link"),e.imageMarker&&t.push(w.imageMarker)),e.header&&t.push(w.header,w.header+"-"+e.header),e.quote&&(t.push(w.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(w.quote+"-"+e.quote):t.push(w.quote+"-"+n.maxBlockquoteDepth)),e.list!==!1){var i=(e.listStack.length-1)%3;i?1===i?t.push(w.list2):t.push(w.list3):t.push(w.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 d(e,t){if(e.match(B,!0))return h(t)}function p(t,r){var i=r.text(t,r);if("undefined"!=typeof i)return i;if(r.list)return r.list=null,h(r);if(r.taskList){var a="x"!==t.match(S,!0)[1];return a?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,h(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),h(r);var u=t.sol(),s=t.next();if(r.linkTitle){r.linkTitle=!1;var c=s;"("===s&&(c=")"),c=(c+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var f="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(f),!0))return w.linkHref}if("`"===s){var d=r.formatting;n.highlightFormatting&&(r.formatting="code"),t.eatWhile("`");var p=t.current().length;if(0==r.code)return r.code=p,h(r);if(p==r.code){var v=h(r);return r.code=0,v}return r.formatting=d,h(r)}if(r.code)return h(r);if("\\"===s&&(t.next(),n.highlightFormatting)){var y=h(r),b=w.formatting+"-escape";return y?y+" "+b:b}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),h(r);if("["===s&&r.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),h(r);if("]"===s&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var y=h(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=g,y}if("["===s&&t.match(/[^\]]*\](\(.*\)| ?\[.*?\])/,!1)&&!r.image)return r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),h(r);if("]"===s&&r.linkText&&t.match(/\(.*?\)| ?\[.*?\]/,!1)){n.highlightFormatting&&(r.formatting="link");var y=h(r);return r.linkText=!1,r.inline=r.f=g,y}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var y=h(r);return y?y+=" ":y="",y+w.linkInline}if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=m,n.highlightFormatting&&(r.formatting="link");var y=h(r);return y?y+=" ":y="",y+w.linkEmail}if("<"===s&&t.match(/^(!--|\w)/,!1)){var x=t.string.indexOf(">",t.pos);if(x!=-1){var A=t.string.substring(t.start,x);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(A)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(C),o(t,r,l)}if("<"===s&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";var E=!1;if(!n.underscoresBreakWords&&"_"===s&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var k=t.pos-2;if(k>=0){var _=t.string.charAt(k);"_"!==_&&_.match(/(\w)/,!1)&&(E=!0)}}if("*"===s||"_"===s&&!E)if(u&&" "===t.peek());else{if(r.strong===s&&t.eat(s)){n.highlightFormatting&&(r.formatting="strong");var v=h(r);return r.strong=!1,v}if(!r.strong&&t.eat(s))return r.strong=s,n.highlightFormatting&&(r.formatting="strong"),h(r);if(r.em===s){n.highlightFormatting&&(r.formatting="em");var v=h(r);return r.em=!1,v}if(!r.em)return r.em=s,n.highlightFormatting&&(r.formatting="em"),h(r)}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return h(r);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var v=h(r);return r.strikethrough=!1,v}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),h(r)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return h(r);t.backUp(2)}return" "===s&&(t.match(/ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),h(r)}function m(e,t){var r=e.next();if(">"===r){t.f=t.inline=p,n.highlightFormatting&&(t.formatting="link");var i=h(t);return i?i+=" ":i="",i+w.linkInline}return e.match(/^[^>]+/,!0),w.linkInline}function g(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=v("("===r?")":"]",0),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,h(t)):"error"}function v(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=p,n.highlightFormatting&&(r.formatting="link-string");var o=h(r);return r.linkHref=!1,o}return t.match(L[e]),r.linkHref=!0,h(r)}}function y(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=b,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,h(t)):i(e,t,p)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=x,n.highlightFormatting&&(t.formatting="link");var r=h(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),w.linkText}function x(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=p,w.linkHref+" url")}var C=e.getMode(t,"text/html"),A="null"==C.name;void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.underscoresBreakWords&&(n.underscoresBreakWords=!0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var w={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"};for(var E in w)w.hasOwnProperty(E)&&n.tokenTypeOverrides[E]&&(w[E]=n.tokenTypeOverrides[E]);var k=/^([*\-_])(?:\s*\1){2,}\s*$/,_=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,S=/^\[(x| )\](?=\s)/,F=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,D=/^ *(?:\={1,}|-{1,})\s*$/,B=/^[^#!\[\]*_\\<>` "'(~]+/,T=new RegExp("^("+(n.fencedCodeBlocks===!0?"~~~+|```+":n.fencedCodeBlocks)+")[ \\t]*([\\w+#-]*)"),L={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\\]]|\\.)*\])*?(?=\])/},M={startState:function(){return{f:s,prevLine:null,thisLine:null,block:s,htmlState:null,indentation:0,inline:p,text:d,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,fencedChars:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(C,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,linkTitle:t.linkTitle,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,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,fencedChars:t.fencedChars}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine){var n=t.header||t.hr;if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0)||n){if(u(t),!n)return null;t.prevLine=null}t.prevLine=t.thisLine,t.thisLine=e,t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var r=e.match(/^\s*/,!0)[0].replace(/\t/g,"    ").length;if(t.indentationDiff=Math.min(r-t.indentation,4),t.indentation=t.indentation+t.indentationDiff,r>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:C}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:M}},blankLine:u,getType:h,closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return M},"xml"),e.defineMIME("text/x-markdown","markdown")})},function(e,t,n){!function(e){e(n(0))}(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},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",function(r,i){function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(s("atom","]]>")):null:e.match("--")?n(s("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(l(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=s("meta","?>"),"meta"):(_=e.eat("/")?"closeTag":"openTag",t.tokenize=a,"tag bracket");if("&"==r){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 n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=o,_=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return _="equals",null;if("<"==n){t.tokenize=o,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=u(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=a;break}return"string"};return t.isInAttribute=!0,t}function s(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=o;break}n.next()}return e}}function l(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=l(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=o;break}return n.tokenize=l(e-1),n.tokenize(t,n)}}return"meta"}}function c(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function f(e){e.context&&(e.context=e.context.prev)}function h(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;f(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?m:d}function p(e,t,n){return"word"==e?(n.tagName=t.current(),S="tag",y):(S="error",p)}function m(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||w.matchClosing===!1?(S="tag",g):(S="tag error",v)}return S="error",v}function g(e,t,n){return"endTag"!=e?(S="error",g):(f(n),d)}function v(e,t,n){return S="error",g(e,t,n)}function y(e,t,n){if("word"==e)return S="attribute",b;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?h(n,r):(h(n,r),n.context=new c(n,r,i==n.indented)),d}return S="error",y}function b(e,t,n){return"equals"==e?x:(w.allowMissing||(S="error"),y(e,t,n))}function x(e,t,n){return"string"==e?C:"word"==e&&w.allowUnquoted?(S="string",y):(S="error",y(e,t,n))}function C(e,t,n){return"string"==e?C:y(e,t,n)}var A=r.indentUnit,w={},E=i.htmlMode?t:n;for(var k in E)w[k]=E[k];for(var k in i)w[k]=i[k];var _,S;return o.isInText=!0,{startState:function(e){var t={tokenize:o,state:d,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;_=null;var n=t.tokenize(e,t);return(n||_)&&"comment"!=n&&(S=null,t.state=t.state(_||n,e,t),S&&(n="error"==S?n+" error":S)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+A;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=a&&t.tokenize!=o)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return w.multilineTagIndentPastTag!==!1?t.tagStart+t.tagName.length+2:t.tagStart+A*(w.multilineTagIndentFactor||1);if(w.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var u=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(u&&u[1])for(;i;){if(i.tagName==u[2]){i=i.prev;break}if(!w.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(u)for(;i;){var s=w.contextGrabbers[i.tagName];if(!s||!s.hasOwnProperty(u[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+A:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:w.htmlMode?"html":"xml",helperType:w.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=y)}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},function(e,t,n){(function(t){(function(){function t(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=f.normal,this.options.gfm&&(this.options.tables?this.rules=f.tables:this.rules=f.gfm)}function n(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=h.normal,this.renderer=this.options.renderer||new r,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=h.breaks:this.rules=h.gfm:this.options.pedantic&&(this.rules=h.pedantic)}function r(e){this.options=e||{}}function i(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new r,this.renderer=this.options.renderer,this.renderer.options=this.options}function o(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function a(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function u(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),
  e=e.replace(r,i),n):new RegExp(e,t)}}function s(){}function l(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function c(e,n,r){if(r||"function"==typeof n){r||(r=n,n=null),n=l({},c.defaults,n||{});var a,u,s=n.highlight,f=0;try{a=t.lex(e,n)}catch(e){return r(e)}u=a.length;var h=function(e){if(e)return n.highlight=s,r(e);var t;try{t=i.parse(a,n)}catch(t){e=t}return n.highlight=s,e?r(e):r(null,t)};if(!s||s.length<3)return h();if(delete n.highlight,!u)return h();for(;f<a.length;f++)!function(e){return"code"!==e.type?--u||h():s(e.text,e.lang,function(t,n){return t?h(t):null==n||n===e.text?--u||h():(e.text=n,e.escaped=!0,void(--u||h()))})}(a[f])}else try{return n&&(n=l({},c.defaults,n)),i.parse(t.lex(e,n),n)}catch(e){if(e.message+="\nPlease report this to https://github.com/chjj/marked.",(n||c.defaults).silent)return"<p>An error occured:</p><pre>"+o(e.message+"",!0)+"</pre>";throw e}}var f={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};f.bullet=/(?:[*+-]|\d+\.)/,f.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,f.item=u(f.item,"gm")(/bull/g,f.bullet)(),f.list=u(f.list)(/bull/g,f.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+f.def.source+")")(),f.blockquote=u(f.blockquote)("def",f.def)(),f._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",f.html=u(f.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,f._tag)(),f.paragraph=u(f.paragraph)("hr",f.hr)("heading",f.heading)("lheading",f.lheading)("blockquote",f.blockquote)("tag","<"+f._tag)("def",f.def)(),f.normal=l({},f),f.gfm=l({},f.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),f.gfm.paragraph=u(f.paragraph)("(?!","(?!"+f.gfm.fences.source.replace("\\1","\\2")+"|"+f.list.source.replace("\\1","\\3")+"|")(),f.tables=l({},f.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),t.rules=f,t.lex=function(e,n){var r=new t(n);return r.lex(e)},t.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},t.prototype.token=function(e,t,n){for(var r,i,o,a,u,s,l,c,h,e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},c=0;c<s.align.length;c++)/^ *-+: *$/.test(s.align[c])?s.align[c]="right":/^ *:-+: *$/.test(s.align[c])?s.align[c]="center":/^ *:-+ *$/.test(s.align[c])?s.align[c]="left":s.align[c]=null;for(c=0;c<s.cells.length;c++)s.cells[c]=s.cells[c].split(/ *\| */);this.tokens.push(s)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,t,!0),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),o=o[0].match(this.rules.item),r=!1,h=o.length,c=0;c<h;c++)s=o[c],l=s.length,s=s.replace(/^ *([*+-]|\d+\.) +/,""),~s.indexOf("\n ")&&(l-=s.length,s=this.options.pedantic?s.replace(/^ {1,4}/gm,""):s.replace(new RegExp("^ {1,"+l+"}","gm"),"")),this.options.smartLists&&c!==h-1&&(u=f.bullet.exec(o[c+1])[0],a===u||a.length>1&&u.length>1||(e=o.slice(c+1).join("\n")+e,c=h-1)),i=r||/\n\n(?!\s*$)/.test(s),c!==h-1&&(r="\n"===s.charAt(s.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(s,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(!n&&t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),this.tokens.links[o[1].toLowerCase()]={href:o[2],title:o[3]};else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),s={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c<s.align.length;c++)/^ *-+: *$/.test(s.align[c])?s.align[c]="right":/^ *:-+: *$/.test(s.align[c])?s.align[c]="center":/^ *:-+ *$/.test(s.align[c])?s.align[c]="left":s.align[c]=null;for(c=0;c<s.cells.length;c++)s.cells[c]=s.cells[c].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(s)}else if(t&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var h={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};h._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,h._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,h.link=u(h.link)("inside",h._inside)("href",h._href)(),h.reflink=u(h.reflink)("inside",h._inside)(),h.normal=l({},h),h.pedantic=l({},h.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),h.gfm=l({},h.normal,{escape:u(h.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(h.text)("]|","~]|")("|","|https?://|")()}),h.breaks=l({},h.gfm,{br:u(h.br)("{2,}","*")(),text:u(h.gfm.text)("{2,}","*")()}),n.rules=h,n.output=function(e,t,r){var i=new n(t,r);return i.output(e)},n.prototype.output=function(e){for(var t,n,r,i,a="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),a+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),"@"===i[2]?(n=":"===i[1].charAt(6)?this.mangle(i[1].substring(7)):this.mangle(i[1]),r=this.mangle("mailto:")+n):(n=o(i[1]),r=n),a+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),a+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):o(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,a+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){a+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,a+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),a+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),a+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),a+=this.renderer.codespan(o(i[2],!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),a+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),a+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),a+=this.renderer.text(o(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(i[0].length),n=o(i[1]),r=n,a+=this.renderer.link(r,null,n);return a},n.prototype.outputLink=function(e,t){var n=o(t.href),r=t.title?o(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,o(e[1]))},n.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},n.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+o(t,!0)+'">'+(n?e:o(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:o(e,!0))+"\n</code></pre>"},r.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},r.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},r.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},r.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},r.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},r.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},r.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},r.prototype.strong=function(e){return"<strong>"+e+"</strong>"},r.prototype.em=function(e){return"<em>"+e+"</em>"},r.prototype.codespan=function(e){return"<code>"+e+"</code>"},r.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},r.prototype.del=function(e){return"<del>"+e+"</del>"},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},r.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},r.prototype.text=function(e){return e},i.parse=function(e,t,n){var r=new i(t,n);return r.parse(e)},i.prototype.parse=function(e){this.inline=new n(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,o="",a="";for(n="",e=0;e<this.token.header.length;e++)r={header:!0,align:this.token.align[e]},n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});a+=this.renderer.tablerow(n)}return this.renderer.table(o,a);case"blockquote_start":for(var a="";"blockquote_end"!==this.next().type;)a+=this.tok();return this.renderer.blockquote(a);case"list_start":for(var a="",u=this.token.ordered;"list_end"!==this.next().type;)a+=this.tok();return this.renderer.list(a,u);case"list_item_start":for(var a="";"list_item_end"!==this.next().type;)a+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(a);case"loose_item_start":for(var a="";"list_item_end"!==this.next().type;)a+=this.tok();return this.renderer.listitem(a);case"html":var s=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(s);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},s.exec=s,c.options=c.setOptions=function(e){return l(c.defaults,e),c},c.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new r,xhtml:!1},c.Parser=i,c.parser=i.parse,c.Renderer=r,c.Lexer=t,c.lexer=t.lex,c.InlineLexer=n,c.inlineLexer=n.output,c.parse=c,e.exports=c}).call(function(){return this||("undefined"!=typeof window?window:t)}())}).call(t,n(4))},function(e,t,n){"use strict";function r(e,t,n,r){this.array=e,this.start=t||0,this.stop=n||1/0,this.step=r||1}var i=n(18);e.exports=r,r.prototype.next=function(){var e;return this.start<Math.min(this.array.length,this.stop)?(e=new i(this.array[this.start],!1,this.start),this.start+=this.step):e=new i(void 0,!0),e}},function(e,t){"use strict";function n(e,t,n){this.value=e,this.done=t,this.index=n}e.exports=n,n.prototype.equals=function(e){return"object"==typeof e&&e.value===this.value&&e.done===this.done&&e.index===this.index}},function(e,t,n){"use strict";(function(t){function r(e){return e===Object(e)}function i(e,t){if(O&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&e.stack.indexOf($)===-1){for(var n=[],r=t;r&&z.get(r);r=z.get(r).became)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var i=n.join("\n"+$+"\n");e.stack=o(i)}}function o(e){if(d.isIntrospective)return e;for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var i=t[r];s(i)||a(i)||!i||n.push(i)}return n.join("\n")}function a(e){return e.indexOf("(module.js:")!==-1||e.indexOf("(node.js:")!==-1}function u(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function s(e){var t=u(e);if(!t)return!1;var n=t[0],r=t[1];return n===N&&r>=I&&r<=G}function l(){if(O)try{throw new Error}catch(r){var e=r.stack.split("\n"),t=e[0].indexOf("@")>0?e[1]:e[2],n=u(t);if(!n)return;return N=n[0],n[1]}}function c(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&(n?console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack):console.warn(t+" is deprecated.",new Error("").stack)),e.apply(this,arguments)}}function f(e){var t=z.get(e);return t&&t.became?(t=h(t),z.set(e,t),t):t}function h(e){return e.became?(e.became=h(e.became),e.became):e}function d(e){return k(e)?e:_(e)?(q.has(e)||q.set(e,new w(new L(e))),q.get(e)):new w(new D(e))}function p(e){return new w(new B(e))}function m(){var e=new T,t=new w(e),n=new F(t);if(d.longStackSupport&&O)try{throw new Error}catch(e){t.stack=e.stack.substring(e.stack.indexOf("\n")+1)}return n}function g(e){function t(){u=-(1/0);for(var e=0;e<a.length;e++)a[e]>u&&(u=a[e])}if(k(e))return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("Q.all no longer directly unwraps a promise. Use Q(array).all()"),d(e).all();var n,r=0,i=m(),o=Array(e.length),a=[],u=-(1/0);return Array.prototype.forEach.call(e,function(s,l){var c;k(s)&&"fulfilled"===(c=f(s)).state?o[l]=c.value:(++r,s=d(s),s.then(function(e){o[l]=e,0===--r&&i.resolve(o)},i.reject),s.observeEstimate(function(r){var o=a[l];a[l]=r,r>u?u=r:o===u&&r<=u&&t(),a.length===e.length&&u!==n&&(i.setEstimate(u),n=u)}))}),0===r&&i.resolve(o),i.promise}function v(e){return k(e)?("undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("Q.allSettled no longer directly unwraps a promise. Use Q(array).allSettled()"),d(e).allSettled()):g(e.map(function(e){function t(){return e.inspect()}return e=d(e),e.then(t,t)}))}function y(e,t,n){return d(e).spread(t,n)}function b(e){return new w(function(t){e.forEach(function(e){d(e).then(t.resolve,t.reject)})})}function x(e){return function(){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=arguments[n];return d(e).apply(this,t)}}function C(e){return function(){function t(e,t){var o;try{o=n[e](t)}catch(e){return p(e)}return o.done?d(o.value):d(o.value).then(r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}}function A(e){C(e)().done()}function w(e){if(!(this instanceof w))return new w(e);if("function"==typeof e){var t=e,n=m();e=f(n.promise);try{t(n.resolve,n.reject,n.setEstimate)}catch(e){n.reject(e)}}z.set(this,e)}function E(e){return d(e)}function k(e){return r(e)&&!!z.get(e)}function _(e){return r(e)&&"function"==typeof e.then}function S(e){throw e}function F(e){this.promise=e,Z.set(this,e);var t=this,n=this.resolve;this.resolve=function(e){n.call(t,e)};var r=this.reject;this.reject=function(e){r.call(t,e)}}function D(e){this.value=e,this.estimate=Date.now()}function B(e){this.reason=e,this.estimate=1/0}function T(){this.messages=[],this.observers=[],this.estimate=1/0}function L(e){this.thenable=e,this.became=null,this.estimate=1/0}function M(e){this.promise=e}var O=!1;try{throw new Error}catch(e){O=!!e.stack}var N,I=l(),j=n(94),R=n(72),P=n(30),$="From previous event:",z=new j,W=new Error("Can't resolve a promise with itself"),H=p(W),U=f(H),q=new j;e.exports=d,d.longStackSupport=!1,d.reject=p,d.defer=m,d.when=function(e,t,n,r){return d(e).then(t,n,r)},d.all=g,d.allSettled=v,d.delay=function(e,t){return void 0===t&&(t=e,e=void 0),d(e).delay(t)},d.timeout=function(e,t,n){return d(e).timeout(t,n)},d.spread=y,d.join=function(e,t){return d.spread([e,t],function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},d.race=b,d.try=function(e){return d(e).dispatch("call",[[]])},d.function=x,d.promised=function(e){return function(){for(var t=new Array(arguments.length),n=0;n<arguments.length;n++)t[n]=arguments[n];return y([this,g(t)],function(t,n){return e.apply(t,n)})}},d.passByCopy=d.push=function(e){return Object(e)!==e||k(e)||V.set(e,!0),e},d.isPortable=function(e){return Object(e)===e&&V.has(e)};var V=new j;d.async=C,d.spawn=A,d.Promise=w,w.all=g,w.race=b,w.resolve=E,w.reject=p,d.isPromise=k,w.prototype.inspect=function(){return f(this).inspect()},w.prototype.isPending=function(){return"pending"===f(this).state},w.prototype.isFulfilled=function(){return"fulfilled"===f(this).state},w.prototype.isRejected=function(){return"rejected"===f(this).state},w.prototype.toBePassed=function(){return"passed"===f(this).state},w.prototype.toString=function(){return"[object Promise]"},w.prototype.then=function(e,t,n){var r,i=this,o=m();r="function"==typeof e?function(t){try{o.resolve(e.call(void 0,t))}catch(e){o.reject(e)}}:o.resolve;var a;if(a="function"==typeof t?function(e){try{o.resolve(t.call(void 0,e))}catch(e){o.reject(e)}}:o.reject,this.done(r,a),void 0!==n){var u=function(){o.setEstimate(i.getEstimate()+n)};this.observeEstimate(u),u()}return o.promise},w.prototype.done=function(e,n){var r=this,o=!1;P(function(){var a;"function"==typeof e&&(a=d.onerror?function(t){if(!o){o=!0;try{e.call(void 0,t)}catch(e){(d.onerror||S)(e)}}}:function(t){o||(o=!0,e.call(void 0,t))});var u;u="function"==typeof n&&d.onerror?function(e){if(!o){o=!0,i(e,r);try{n.call(void 0,e)}catch(e){(d.onerror||S)(e)}}}:"function"==typeof n?function(e){o||(o=!0,i(e,r),n.call(void 0,e))}:d.onerror||S,"object"==typeof t&&t.domain&&(u=t.domain.bind(u)),f(r).dispatch(a,"then",[u])})},w.prototype.thenResolve=function(e){return e=d(e),g([this,e]).then(function(){return e},null,0)},w.prototype.thenReject=function(e){return this.then(function(){throw e},null,0)},w.prototype.all=function(){return this.then(g)},w.prototype.allSettled=function(){return this.then(v)},w.prototype.catch=function(e){return this.then(void 0,e)},w.prototype.finally=function(e,t){return e?(e=d(e),this.then(function(t){return e.call().then(function(){return t})},function(t){return e.call().then(function(){throw t})},t)):this},w.prototype.observeEstimate=function(e){return this.rawDispatch(null,"estimate",[e]),this},w.prototype.getEstimate=function(){return f(this).estimate},w.prototype.dispatch=function(e,t){var n=m();return this.rawDispatch(n.resolve,e,t),n.promise},w.prototype.rawDispatch=function(e,t,n){var r=this;P(function(){f(r).dispatch(e,t,n)})},w.prototype.get=function(e){return this.dispatch("get",[e])},w.prototype.invoke=function(e){for(var t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.dispatch("invoke",[e,t])},w.prototype.apply=function(e,t){return this.dispatch("call",[t,e])},w.prototype.call=function(e){for(var t=new Array(Math.max(0,arguments.length-1)),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.dispatch("call",[t,e])},w.prototype.bind=function(e){for(var t=this,n=new Array(Math.max(0,arguments.length-1)),r=1;r<arguments.length;r++)n[r-1]=arguments[r];return function(){for(var r=n.slice(),i=0;i<arguments.length;i++)r[r.length]=arguments[i];return t.dispatch("call",[r,e])}},w.prototype.keys=function(){return this.dispatch("keys",[])},w.prototype.iterate=function(){return this.dispatch("iterate",[])},w.prototype.spread=function(e,t,n){return this.all().then(function(t){return e.apply(void 0,t)},t,n)},w.prototype.timeout=function(e,t){var n=m(),r=setTimeout(function(){n.reject(new Error(t||"Timed out after "+e+" ms"))},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)}),n.promise},w.prototype.delay=function(e){return this.then(function(t){var n=m();return n.setEstimate(Date.now()+e),setTimeout(function(){n.resolve(t)},e),n.promise},null,e)},w.prototype.pull=function(){return this.dispatch("pull",[])},w.prototype.pass=function(){return this.toBePassed()?this:new w(new M(this))};var Z=new j;F.prototype.resolve=function(e){var t=f(Z.get(this));t.messages&&t.become(d(e))},F.prototype.reject=function(e){var t=f(Z.get(this));t.messages&&t.become(p(e))},F.prototype.setEstimate=function(e){if(e=+e,e!==e&&(e=1/0),e<1e12&&e!==-(1/0))throw new Error("Estimate values should be a number of miliseconds in the future");var t=f(Z.get(this));t.setEstimate&&t.setEstimate(e)},D.prototype.state="fulfilled",D.prototype.inspect=function(){return{state:"fulfilled",value:this.value}},D.prototype.dispatch=function(e,t,n){var r;if("then"===t||"get"===t||"call"===t||"invoke"===t||"keys"===t||"iterate"===t||"pull"===t)try{r=this[t].apply(this,n)}catch(e){r=p(e)}else if("estimate"===t)n[0].call(void 0,this.estimate);else{var i=new Error("Fulfilled promises do not support the "+t+" operator");r=p(i)}e&&e(r)},D.prototype.then=function(){return this.value},D.prototype.get=function(e){return this.value[e]},D.prototype.call=function(e,t){return this.callInvoke(this.value,e,t)},D.prototype.invoke=function(e,t){return this.callInvoke(this.value[e],t,this.value)},D.prototype.callInvoke=function(e,t,n){for(var r,i=0;i<t.length;i++)k(t[i])&&t[i].toBePassed()&&(r=r||[],r.push(t[i]));if(r){var o=this;return g(r).then(function(){return o.callInvoke(e,t.map(function(e){return k(e)&&e.toBePassed()?e.inspect().value:e}),n)})}return e.apply(n,t)},D.prototype.keys=function(){return Object.keys(this.value)},D.prototype.iterate=function(){return R(this.value)},D.prototype.pull=function(){var e;if(Object(this.value)===this.value){e=Array.isArray(this.value)?[]:{};for(var t in this.value)e[t]=this.value[t]}else e=this.value;return d.push(e)},B.prototype.state="rejected",B.prototype.inspect=function(){return{state:"rejected",reason:this.reason}},B.prototype.dispatch=function(e,t,n){var r;r="then"===t?this.then(e,n[0]):this,e&&e(r)},B.prototype.then=function(e,t){return t?t(this.reason):this},T.prototype.state="pending",T.prototype.inspect=function(){return{state:"pending"}},T.prototype.dispatch=function(e,t,n){if(this.messages.push([e,t,n]),"estimate"===t){this.observers.push(n[0]);var r=this;P(function(){n[0].call(void 0,r.estimate)})}},T.prototype.become=function(e){this.became=U;var t=f(e);this.became=t,z.set(e,t),this.promise=void 0,this.messages.forEach(function(t){P(function(){var n=f(e);n.dispatch.apply(n,t)})}),this.messages=void 0,this.observers=void 0},T.prototype.setEstimate=function(e){if(this.observers){var t=this;t.estimate=e,this.observers.forEach(function(t){P(function(){t.call(void 0,e)})})}},L.prototype.state="thenable",L.prototype.inspect=function(){return{state:"pending"}},L.prototype.cast=function(){if(!this.became){var e=m(),t=this.thenable;P(function(){try{t.then(e.resolve,e.reject)}catch(t){e.reject(t)}}),this.became=f(e.promise)}return this.became},L.prototype.dispatch=function(e,t,n){this.cast().dispatch(e,t,n)},M.prototype.state="passed",M.prototype.inspect=function(){return this.promise.inspect()},M.prototype.dispatch=function(e,t,n){return this.promise.rawDispatch(e,t,n)},d.ninvoke=function(e,t){for(var n=new Array(Math.max(0,arguments.length-1)),r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=d.defer();return n[r-2]=i.makeNodeResolver(),d(e).dispatch("invoke",[t,n]).catch(i.reject),i.promise},w.prototype.ninvoke=function(e){for(var t=new Array(arguments.length),n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=d.defer();return t[n-1]=r.makeNodeResolver(),this.dispatch("invoke",[e,t]).catch(r.reject),r.promise},d.denodeify=function(e,t){return function(){for(var n=new Array(arguments.length+1),r=0;r<arguments.length;r++)n[r]=arguments[r];var i=d.defer();return n[r]=i.makeNodeResolver(t),d(e).apply(this,n).catch(i.reject),i.promise}},F.prototype.makeNodeResolver=function(e){var t=this.resolve;return e===!0?function(e){if(e)t(p(e));else{for(var n=new Array(Math.max(0,arguments.length-1)),r=1;r<arguments.length;r++)n[r-1]=arguments[r];t(n)}}:e?function(n){if(n)t(p(n));else{for(var r={},i=0;i<e.length;i++)r[e[i]]=arguments[i+1];t(r)}}:function(e,n){t(e?p(e):n)}},w.prototype.nodeify=function(e){return e?void this.done(function(t){e(null,t)},e):this},d.nextTick=c(P,"nextTick","asap package"),d.resolve=c(d,"resolve","Q"),d.fulfill=c(d,"fulfill","Q"),d.isPromiseAlike=c(_,"isPromiseAlike","(not supported)"),d.fail=c(function(e,t){return d(e).catch(t)},"Q.fail","Q(value).catch"),d.fin=c(function(e,t){return d(e).finally(t)},"Q.fin","Q(value).finally"),d.progress=c(function(e){return e},"Q.progress","no longer supported"),d.thenResolve=c(function(e,t){return d(e).thenResolve(t)},"thenResolve","Q(value).thenResolve"),d.thenReject=c(function(e,t){return d(e).thenResolve(t)},"thenResolve","Q(value).thenResolve"),d.isPending=c(function(e){return d(e).isPending()},"isPending","Q(value).isPending"),d.isFulfilled=c(function(e){return d(e).isFulfilled()},"isFulfilled","Q(value).isFulfilled"),d.isRejected=c(function(e){return d(e).isRejected()},"isRejected","Q(value).isRejected"),d.master=c(function(e){return e},"master","no longer necessary"),d.makePromise=function(){throw new Error("makePromise is no longer supported")},d.dispatch=c(function(e,t,n){return d(e).dispatch(t,n)},"dispatch","Q(value).dispatch"),d.get=c(function(e,t){return d(e).get(t)},"get","Q(value).get"),d.keys=c(function(e){return d(e).keys()},"keys","Q(value).keys"),d.post=c(function(e,t,n){return d(e).post(t,n)},"post","Q(value).invoke (spread arguments)"),d.mapply=c(function(e,t,n){return d(e).post(t,n)},"post","Q(value).invoke (spread arguments)"),d.send=c(function(e,t){return d(e).post(t,Array.prototype.slice.call(arguments,2))},"send","Q(value).invoke"),d.set=function(){throw new Error("Q.set no longer supported")},d.delete=function(){throw new Error("Q.delete no longer supported")},d.nearer=c(function(e){return k(e)&&e.isFulfilled()?e.inspect().value:e},"nearer","inspect().value (+nuances)"),d.fapply=c(function(e,t){return d(e).dispatch("call",[t])},"fapply","Q(callback).apply(thisp, args)"),d.fcall=c(function(e){return d(e).dispatch("call",[Array.prototype.slice.call(arguments,1)])},"fcall","Q(callback).call(thisp, ...args)"),d.fbind=c(function(e){var t=d(e),n=Array.prototype.slice.call(arguments,1);return function(){return t.dispatch("call",[n.concat(Array.prototype.slice.call(arguments)),this])}},"fbind","bind with thisp"),d.promise=c(w,"promise","Promise"),w.prototype.fapply=c(function(e){return this.dispatch("call",[e])},"fapply","apply with thisp"),w.prototype.fcall=c(function(){return this.dispatch("call",[Array.prototype.slice.call(arguments)])},"fcall","try or call with thisp"),w.prototype.fail=c(function(e){return this.catch(e)},"fail","catch"),w.prototype.fin=c(function(e){return this.finally(e)},"fin","finally"),w.prototype.set=function(){throw new Error("Promise set no longer supported")},w.prototype.delete=function(){throw new Error("Promise delete no longer supported")},F.prototype.notify=c(function(){},"notify","no longer supported"),w.prototype.progress=c(function(){return this},"progress","no longer supported"),w.prototype.mapply=c(function(e,t){return this.dispatch("invoke",[e,t])},"mapply","invoke"),w.prototype.fbind=c(function(){return d.fbind.apply(d,[void 0].concat(Array.prototype.slice.call(arguments)))},"fbind","bind(thisp, ...args)"),w.prototype.send=c(function(){return this.dispatch("invoke",[name,Array.prototype.slice.call(arguments,1)])},"send","invoke"),w.prototype.mcall=c(function(){return this.dispatch("invoke",[name,Array.prototype.slice.call(arguments,1)])},"mcall","invoke"),w.prototype.passByCopy=c(function(e){return e},"passByCopy","Q.passByCopy"),d.nfapply=c(function(e,t){var n=d.defer(),r=Array.prototype.slice.call(t);return r.push(n.makeNodeResolver()),d(e).apply(this,r).catch(n.reject),n.promise},"nfapply"),w.prototype.nfapply=c(function(e){return d.nfapply(this,e)},"nfapply"),d.nfcall=c(function(e){var t=Array.prototype.slice.call(arguments,1);return d.nfapply(e,t)},"nfcall"),w.prototype.nfcall=c(function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;t++)e[t]=arguments[t];return d.nfapply(this,e)},"nfcall"),d.nfbind=c(function(e){var t=Array.prototype.slice.call(arguments,1);return function(){var n=t.concat(Array.prototype.slice.call(arguments)),r=d.defer();return n.push(r.makeNodeResolver()),d(e).apply(this,n).catch(r.reject),
  r.promise}},"nfbind","denodeify (with caveats)"),w.prototype.nfbind=c(function(){for(var e=new Array(arguments.length),t=0;t<arguments.length;t++)e[t]=arguments[t];return d.nfbind(this,e)},"nfbind","denodeify (with caveats)"),d.nbind=c(function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){function r(){return e.apply(t,arguments)}var i=n.concat(Array.prototype.slice.call(arguments)),o=d.defer();return i.push(o.makeNodeResolver()),d(r).apply(this,i).catch(o.reject),o.promise}},"nbind","denodeify (with caveats)"),d.npost=c(function(e,t,n){var r=d.defer();return n.push(r.makeNodeResolver()),d(e).dispatch("invoke",[t,n]).catch(r.reject),r.promise},"npost","ninvoke (with spread arguments)"),w.prototype.npost=c(function(e,t){return d.npost(this,e,t)},"npost","Q.ninvoke (with caveats)"),d.nmapply=c(d.nmapply,"nmapply","q/node nmapply"),w.prototype.nmapply=c(w.prototype.npost,"nmapply","Q.nmapply"),d.nsend=c(d.ninvoke,"nsend","q/node ninvoke"),d.nmcall=c(d.ninvoke,"nmcall","q/node ninvoke"),w.prototype.nsend=c(w.prototype.ninvoke,"nsend","q/node ninvoke"),w.prototype.nmcall=c(w.prototype.ninvoke,"nmcall","q/node ninvoke");var G=l()}).call(t,n(73))},function(e,t,n){var r=n(1);e.exports=function(e,t){return r(e,t,"_")}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,configurable:!1,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,configurable:!1,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(32),u=n(33),s=n(11),l=n(64),c=n(19),f=n(92),h=n(93),d=n(8);f.component("draggable",h);var p=function(){function e(){r(this,e)}return o(e,null,[{key:"registerEditor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.slug;if(console.log("Registering ",n),this.editors[n])throw TypeError("Editor "+n+" is already registered with RichArea.");this.editors[n]=e,this.localVueComponents[n]=e.getVueData(),this.options.editors[n]=t}},{key:"ensureLayoutsLoaded",value:function(e){var t=this,n=e.layoutUrls,r=c.defer(),o=[];if(n.forEach(function(n){t.layoutUrls[n]||o.push(a.parse(n).then(function(r){for(var i in r){var o=r[i];for(var a in o.fields){var s=o.fields[a];if(!t.editors[s.editor])throw new TypeError("Editor "+s.editor+" has not been registered.");t.editors[s.editor].initField(s,o,e)}}t.layoutUrls[n]=r,Object.keys(r).forEach(function(e){t.localVueComponents["c"+e]=u.createFromLayout(r[e]),d.merge(t.layoutCategories,r[e].categories)}),d.merge(t.layouts,r)}))}),c.all(o).then(function(){r.resolve()}).fail(function(e){r.reject(e)}),e.extraLayouts){var s=function(){var n=l(e.extraLayouts);if(t.layoutUrls[n])return{v:void 0};var r=a.parseFromString(e.extraLayouts);t.layoutUrls[n]=r,Object.keys(r).forEach(function(e){t.localVueComponents["c"+e]=u.createFromLayout(r[e]),d.merge(t.layoutCategories,r[e].categories)}),d.merge(t.layouts,r)}();if("object"===("undefined"==typeof s?"undefined":i(s)))return s.v}return r.promise}},{key:"create",value:function(e){var t=this;if(e=d.merge({},{container:null,root:null,assetRoot:"",layoutUrls:[],extraLayouts:null,layouts:{},items:[],mode:"edit",editors:this.options.editors},e),!e.container)throw new TypeError("RichArea must be attached to a DOM element container.");if(0==e.layoutUrls.length)throw new TypeError("RichArea must have at least one layout file defined.");var r={edit:n(28),view:n(29)};e.root=$("<div class='richarea'>"+r[e.mode]+"</div>"),$(e.container).append(e.root),this.ensureLayoutsLoaded(e).then(function(){if(0==Object.keys(t.layouts).length)throw new TypeError("You must define at least one layout.");t.initVue(e)}).done()}},{key:"migrate",value:function(e){e.version||(e.version=1,e.layoutId=e.layout_id,delete e.layout_id)}},{key:"ensureDefaultValues",value:function(e){var t=this;if(e instanceof Array)return e.forEach(function(e){t.ensureDefaultValues(e)}),e;this.migrate(e),d.merge(e,{data:{}});var n=this.layouts[e.layoutId];return n?!function(){var t=n.fields;Object.keys(t).forEach(function(n){n in e.data||(e.data[n]=t[n].defaultValue)})}():console.log("Warning: Undefined layout for "+JSON.stringify(e)),e}},{key:"initVue",value:function(t){function n(){return $(t.root).find(".richarea-app")}function r(){return $(t.root).find(".richarea-editor")}function i(){return r().find(".sortable")}var o=this.ensureDefaultValues(d.union([],t.items)),a=d.merge({},t,{content:null,itemsJson:null,currentIdx:null,$currentLayout:null,items:o,selectedCategory:"default",layoutCategories:Object.keys(this.layoutCategories).sort(),layouts:this.layouts});new f({components:this.localVueComponents,el:t.root.find(".richarea-app").get(0),data:a,computed:{currentItem:function(){return this.items[this.currentIdx]},currentLayout:function(){var e=this.items[this.currentIdx];return e?this.layouts[e.layoutId]:null},config:function(){return t}},filters:{titlecase:function(e){var t=e.replace(/([A-Z])/g," $1"),n=t.charAt(0).toUpperCase()+t.slice(1);return n},jsonify:function(e){return JSON.stringify(e)},titleize:function(e){return s.title(e)}},watch:{currentIdx:function(e){this.$nextTick(function(){i().find(".tools").hide(),null!=e&&i().find("li.active .tools").show()})},items:{handler:function(e,t){this.calc()},deep:!0}},methods:{add:function(e){this.currentIdx=e;var t=r().find(".layouts-modal");t.modal("show")},selectCat:function(e){this.selectedCategory=e},inActiveCategories:function(e){return this.selectedCategory==-1||e.categories[this.selectedCategory]},notifyChange:function(){t.onChange&&t.onChange({html:this.content,data:this.items})},close:function(e){r().find(".modal.in").modal("hide"),setTimeout(this.calc,0),e.preventDefault()},calc:function(){var e=this;this.$nextTick(function(){r().find(".modal.layout-settings.in").length>0||(e.calcContent(),e.calcJson(),e.notifyChange())})},calcJson:function(){this.itemsJson=JSON.stringify(this.items)},calcContent:function(){var e=[];i().find(".item .layout-container").each(function(t,n){var r=$(n).clone();r.find("[data-render]").each(function(e,t){var n=$(t);n.replaceWith(n.data("render"))}),["data-editor","data-field","data-default-value"].forEach(function(e){r.find("["+e+"]").removeAttr(e)});var i=r.html();e.push(i)});var t=$("<div>").addClass("richarea");t.html(e.join("\n")),this.content=t.get(0).outerHTML},select:function(e){var t=$(e.target).closest("li");this.currentIdx=t.index(),this.$currentLayout=t},insert:function(t){var n=e.ensureDefaultValues({version:1,layoutId:t}),r=i().find("li.active").index();r>=0?(this.items.splice(r,0,n),this.currentIdx=r):(this.items.push(n),this.currentIdx=this.items.length-1)},edit:function(e){var t=r().find(".layout-settings");t.modal("show")},duplicate:function(e){this.items.splice(this.currentIdx,0,d.merge({},this.items[this.currentIdx]))},remove:function(e){var t=confirm("Are you sure you want to delete this item?");t&&(this.items.splice(this.currentIdx,1),this.currentIdx=null)}},mounted:function(){var e=this;this.calc(),n().show(),$.prototype.sortable&&i().sortable({placeholder:"alert alert-warning",items:"li:not(.disabled)",handle:".move",helper:"clone",stop:function(t,n){n.placeholder.height(n.item.height()),n.placeholder.width(n.item[0].offsetWidth);var r=$(n.item),o=r.data("index"),a=r.index();e.items.move(o,a),e.currentIdx=a,i().sortable("cancel")},cursor:"move"}),$.prototype.fullscreen&&r().find(".modal-fullscreen").fullscreen(),"function"==typeof window.callPhantom&&setTimeout(function(){window.callPhantom("takeShot")},1e4)}})}},{key:"get",value:function(e){function t(){xhrSuccess(r)?i.resolve(r.responseText):n()}function n(){i.reject("Can't XHR "+JSON.stringify(e))}if(0===URL.resolve(window.location,e).indexOf(FILE_PROTOCOL))throw new Error("XHR does not function for file: protocol");var r=new XMLHttpRequest,i=Promise.defer();try{r.open(GET,e,!0),r.overrideMimeType&&r.overrideMimeType(APPLICATION_JAVASCRIPT_MIMETYPE),r.onreadystatechange=function(){4===r.readyState&&t()},r.onload=r.load=t,r.onerror=r.error=n}catch(e){i.reject(e.message,e)}return r.send(),i.promise}}]),e}();p.options={editors:{}},p.editors={},p.layoutUrls={},p.layouts={},p.layoutCategories={},p.localVueComponents={},p.registerEditor(n(38)),p.registerEditor(n(39)),p.registerEditor(n(36)),p.registerEditor(n(34)),p.registerEditor(n(37)),p.registerEditor(n(35)),e.exports=p},function(e,t,n){var r=n(26);"string"==typeof r&&(r=[[e.i,r,""]]);n(7)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(6)(),t.push([e.i,".CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word){background:rgba(255,0,0,.15)}",""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.i,'.CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{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-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;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:-20px;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-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:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.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{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{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{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;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{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:#ffa;background: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}',""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.i,'.richarea figure{text-align:center}.richarea .btn{min-width:25px}.richarea img{max-width:100%}.richarea .quote{background-color:#eee;padding:10px;border-radius:10px;margin:10px;padding-top:30px}.richarea .quote .fa-quote-left{color:#222;font-size:25px;display:inline-block;opacity:.5;position:absolute;top:20px}.richarea .richarea-app{display:none}.richarea .richarea-app .richarea-editor{position:relative}.richarea .richarea-app .richarea-editor ul.sortable{list-style-type:none;margin:0;padding:0;position:relative}.richarea .richarea-app .richarea-editor ul.sortable li{min-height:20px;position:relative;border:none;border-radius:3px;padding:0;margin:0}.richarea .richarea-app .richarea-editor ul.sortable li .tools{position:absolute;top:5px;right:5px;display:none;background:rgba(85,85,85,.2);border-radius:3px;padding:3px;width:150px;z-index:1000}.richarea .richarea-app .richarea-editor ul.sortable li .tools .glyphicon{margin-bottom:3px;width:25px}.richarea .richarea-app .richarea-editor ul.sortable li .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.richarea .richarea-app .richarea-editor ul.sortable li .item:after{content:" ";z-index:10;display:block;position:absolute;height:100%;top:0;left:0;right:0;background:transparent;border-radius:3px}.richarea .richarea-app .richarea-editor ul.sortable li:hover{cursor:pointer}.richarea .richarea-app .richarea-editor ul.sortable li.active .item:after{background:hsla(0,0%,93%,.44)}.richarea .richarea-app .richarea-editor .modal .modal-header:hover{cursor:move}.richarea .richarea-app .richarea-editor .modal.layout-selector .modal-body{background-color:#eee;color:#222}.richarea .richarea-app .richarea-editor img.layout{border:1px solid #eee;border-radius:3px;margin:5px;max-width:195px}.richarea .richarea-app .richarea-editor img.layout:hover{cursor:pointer}.richarea .richarea-app .richarea-editor .modal.layout-settings .image-editor{max-width:320px}.richarea .richarea-app .richarea-editor .modal.layout-settings .image-editor .cropit-preview:hover{cursor:move}.richarea .richarea-app .richarea-editor .modal.layout-settings .image-editor img{max-width:none}',""])},function(e,t,n){t=e.exports=n(6)(),t.push([e.i,'.CodeMirror{height:auto;border:1px solid #ddd;border-bottom-left-radius:4px;border-bottom-right-radius:4px;padding:10px;font:inherit;z-index:1}.CodeMirror,.CodeMirror-scroll{min-height:300px}.CodeMirror-fullscreen{background:#fff;position:fixed!important;top:50px;left:0;right:0;bottom:0;height:auto;z-index:9}.CodeMirror-sided{width:50%!important}.editor-toolbar{position:relative;opacity:.6;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;padding:0 10px;border-top:1px solid #bbb;border-left:1px solid #bbb;border-right:1px solid #bbb;border-top-left-radius:4px;border-top-right-radius:4px}.editor-toolbar:after,.editor-toolbar:before{display:block;content:" ";height:1px}.editor-toolbar:before{margin-bottom:8px}.editor-toolbar:after{margin-top:8px}.editor-toolbar:hover,.editor-wrapper input.title:focus,.editor-wrapper input.title:hover{opacity:.8}.editor-toolbar.fullscreen{width:100%;height:50px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;padding-top:10px;padding-bottom:10px;box-sizing:border-box;background:#fff;border:0;position:fixed;top:0;left:0;opacity:1;z-index:9}.editor-toolbar.fullscreen:before{width:20px;height:50px;background:-webkit-gradient(linear,left top,right top,color-stop(0,#fff),color-stop(100%,hsla(0,0%,100%,0)));background:-webkit-linear-gradient(left,#fff,hsla(0,0%,100%,0));background:linear-gradient(90deg,#fff 0,hsla(0,0%,100%,0));position:fixed;top:0;left:0;margin:0;padding:0}.editor-toolbar.fullscreen:after{width:20px;height:50px;background:-webkit-gradient(linear,left top,right top,color-stop(0,hsla(0,0%,100%,0)),color-stop(100%,#fff));background:-webkit-linear-gradient(left,hsla(0,0%,100%,0),#fff);background:linear-gradient(90deg,hsla(0,0%,100%,0) 0,#fff);position:fixed;top:0;right:0;margin:0;padding:0}.editor-toolbar a{display:inline-block;text-align:center;text-decoration:none!important;color:#2c3e50!important;width:30px;height:30px;margin:0;border:1px solid transparent;border-radius:3px;cursor:pointer}.editor-toolbar a.active,.editor-toolbar a:hover{background:#fcfcfc;border-color:#95a5a6}.editor-toolbar a:before{line-height:30px}.editor-toolbar i.separator{display:inline-block;width:0;border-left:1px solid #d9d9d9;border-right:1px solid #fff;color:transparent;text-indent:-10px;margin:0 6px}.editor-toolbar a.fa-header-x:after{font-family:Arial,Helvetica Neue,Helvetica,sans-serif;font-size:65%;vertical-align:text-bottom;position:relative;top:2px}.editor-toolbar a.fa-header-1:after{content:"1"}.editor-toolbar a.fa-header-2:after{content:"2"}.editor-toolbar a.fa-header-3:after{content:"3"}.editor-toolbar a.fa-header-bigger:after{content:"\\25B2"}.editor-toolbar a.fa-header-smaller:after{content:"\\25BC"}.editor-toolbar.disabled-for-preview a:not(.no-disable){pointer-events:none;background:#fff;border-color:transparent;text-shadow:inherit}@media only screen and (max-width:700px){.editor-toolbar a.no-mobile{display:none}}.editor-statusbar{padding:8px 10px;font-size:12px;color:#959694;text-align:right}.editor-statusbar span{display:inline-block;min-width:4em;margin-left:1em}.editor-statusbar .lines:before{content:"lines: "}.editor-statusbar .words:before{content:"words: "}.editor-statusbar .characters:before{content:"characters: "}.editor-preview{position:absolute;width:100%;height:100%;top:0;left:0;z-index:7}.editor-preview,.editor-preview-side{padding:10px;background:#fafafa;overflow:auto;display:none;box-sizing:border-box}.editor-preview-side{position:fixed;bottom:0;width:50%;top:50px;right:0;z-index:9;border:1px solid #ddd}.editor-preview-active,.editor-preview-active-side{display:block}.editor-preview-side>p,.editor-preview>p{margin-top:0}.editor-preview-side pre,.editor-preview pre{background:#eee;margin-bottom:10px}.editor-preview-side table td,.editor-preview-side table th,.editor-preview table td,.editor-preview table th{border:1px solid #ddd;padding:5px}.CodeMirror .CodeMirror-code .cm-tag{color:#63a35c}.CodeMirror .CodeMirror-code .cm-attribute{color:#795da3}.CodeMirror .CodeMirror-code .cm-string{color:#183691}.CodeMirror .CodeMirror-selected{background:#d9d9d9}.CodeMirror .CodeMirror-code .cm-header-1{font-size:200%;line-height:200%}.CodeMirror .CodeMirror-code .cm-header-2{font-size:160%;line-height:160%}.CodeMirror .CodeMirror-code .cm-header-3{font-size:125%;line-height:125%}.CodeMirror .CodeMirror-code .cm-header-4{font-size:110%;line-height:110%}.CodeMirror .CodeMirror-code .cm-comment{background:rgba(0,0,0,.05);border-radius:2px}.CodeMirror .CodeMirror-code .cm-link{color:#7f8c8d}.CodeMirror .CodeMirror-code .cm-url{color:#aab2b3}.CodeMirror .CodeMirror-code .cm-strikethrough{text-decoration:line-through}.CodeMirror .CodeMirror-placeholder{opacity:.5}',""])},function(e,t){e.exports='<div class=richarea-app> <div class=richarea-editor> <ul class=sortable> <draggable :list=items :options="{handle: \'.glyphicon-resize-vertical\'}"> <li :class="{active: currentIdx==index }" :data-index=index @click=select @dblclick=edit v-for="(item,index) in items"> <div class=tools> <span class="move btn btn-success btn-xs glyphicon glyphicon-resize-vertical"></span> <span @click=add(index) class="add btn btn-default btn-xs glyphicon glyphicon-plus"></span> <span @click=edit class="settings btn btn-default btn-xs glyphicon glyphicon-cog"></span> <span @click=duplicate class="duplicate btn btn-default btn-xs glyphicon glyphicon-duplicate"></span> <span @click=remove class="delete btn btn-danger btn-xs glyphicon glyphicon-remove"></span> </div> <div class=item> <layout :is="\'c\'+item.layoutId" :item=item :config=config></layout> </div> </li> </draggable> <li class="disabled add text-center"> <button @click.prevent=add(null) class="btn btn-primary btn-xl">+</button> </li> </ul> <div class="modal modal-fullscreen fade layout-settings" role=dialog> <div class=modal-dialog role=document> <div class=modal-content> <div class=modal-header> <button class=close @click.prevent=close> <span class="glyphicon glyphicon-remove"></span> </button> <h4 class=modal-title>Edit Component</h4> </div> <div class=modal-body> <template v-if=currentLayout> <template v-if="Object.keys(currentLayout.fields).length>0"> <div v-for="(field,fieldName) in currentLayout.fields"> <div class=form-horizontal> <div class=form-group> <label class="col-xs-2 control-label">{{fieldName | titlecase}}</label> <div class=col-xs-10> <component :is=field.editor :item=currentItem :field-name=fieldName :config=config :key="\'elem\'+currentIdx" :layout=layouts[currentItem.layoutId]></component> </div> </div> </div> </div> </template> <template v-else> There are no fields to edit for this layout. </template> </template> </div> <div class=modal-footer> <button class="btn btn-default" @click.prevent=close>Close</button> </div> </div> </div> </div> <div class="modal modal-fullscreen fade layouts-modal" role=dialog> <div class="modal-dialog layout-selector" role=document> <div class=modal-content> <div class=modal-header> <button class=close data-dismiss=modal> <span class="glyphicon glyphicon-remove"></span> </button> <h4 class=modal-title>Add Component</h4> </div> <div class=modal-body> <div> <div :class="{\'btn-success\': selectedCategory == k, \'btn-primary\': selectedCategory != k }" @click=selectCat(k) class="btn btn-xs" style=margin:2px v-for="k in layoutCategories"> {{k | titleize }} </div> </div> <img class=layout data-dismiss=modal :data-layout-id=layout.id :src="`${layout.thumbnailUrl}`" v-for="(layout,index) in layouts" v-if=inActiveCategories(layout) v-on:click=insert(layout.id) /> </div> <div class=modal-footer> <button class="btn btn-default" data-dismiss=modal>Close</button> </div> </div> </div> </div> </div> </div> '},function(e,t){e.exports='<div class=richarea-app> <div v-for="(item,index) in items"> <layout :is="\'c\'+item.layoutId" :item=item :config=config></layout> </div> </div> '},function(e,t,n){"use strict";function r(){if(s.length)throw s.shift()}function i(e){var t;t=u.length?u.pop():new o,t.task=e,a(t)}function o(){this.task=null}var a=n(31),u=[],s=[],l=a.makeRequestCallFromTimer(r);e.exports=i,o.prototype.call=function(){try{this.task.call()}catch(e){i.onerror?i.onerror(e):(s.push(e),l())}finally{this.task=null,u[u.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){u.length||(a(),s=!0),u[u.length]=e}function r(){for(;l<u.length;){var e=l;if(l+=1,u[e].call(),l>c){for(var t=0,n=u.length-l;t<n;t++)u[t]=u[t+l];u.length-=l,l=0}}u.length=0,l=0,s=!1}function i(e){var t=1,n=new h(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}function o(e){return function(){function t(){clearTimeout(n),clearInterval(r),e()}var n=setTimeout(t,0),r=setInterval(t,50)}}e.exports=n;var a,u=[],s=!1,l=0,c=1024,f="undefined"!=typeof t?t:self,h=f.MutationObserver||f.WebKitMutationObserver;a="function"==typeof h?i(r):o(r),n.requestFlush=a,n.makeRequestCallFromTimer=o}).call(t,n(4))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(19),a=n(8),u=function(){function e(){r(this,e)}return i(e,null,[{key:"parse",value:function(e){var t=this,n=o.defer();return $.get(e,function(r){var i=t.parseFromString(r,e);n.resolve(i)}),n.promise}},{key:"parseFromString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t){var n=document.createElement("a");n.href=t.replace(/\/[^\/]+$/,""),t=n.href}var r=t+"/images",i={},o=$("<div>");return o.html(e),o.children("div").each(function(e,n){var o=$(n),u={},s=o.data("id");if(!s)throw new TypeError("Layout ID must not be null for "+o.html());o.find("[data-editor]").each(function(e,t){var n=$(t),r=n.data("default-value");u[n.data("field")]={editor:n.data("editor"),defaultValue:r}}),["data-editor","data-field","data-default-value"].forEach(function(e){o.find("["+e+"]").removeAttr(e)});var l=o.html().trim(),c=o.data("cat"),f=o.data("thumbnail");if(!c)throw new TypeError("cats must not be null for "+$layoutId);"string"==typeof c&&(c=JSON.parse(c.replace(/'/g,'"')));var h={};c.forEach(function(e){h[e]=!0}),i[s]={id:s,fields:a.merge({},u),categories:h,template:l,assetRoot:t,thumbnailUrl:f||r+"/"+s+".png"}}),i}}]),e}();e.exports=u},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(){function e(){r(this,e)}return i(e,null,[{key:"createFromLayout",value:function(e){return{props:["item","config"],template:"<div class='layout-container'>"+e.template+"</div>",filters:{embedify:function(e){var t=n(89),r=t.parse(e,!0,!0),i=r.pathname.match(/embed\/(.*)/),o=r.query.v||(i&&2==i.length?i[1]:""),a=r.query.list,u={pathname:"//www.youtube.com/embed/"+o};a&&(u.query={list:a});var s=t.format(u);return s},linebreak:function(e){return e.replace("\n","<br/>")}}}}}]),e}();e.exports=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),s=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"getVueData",value:function(){return{props:["item","fieldName"],template:'\n      <select class="form-control" v-model="item.data[fieldName].value">\n        <template v-for="(v,k) in item.data[fieldName].options">\n          <option :value="k">{{ v }}</option>\n        </template>\n      '}}}]),t}(u);s.slug="DropdownEditor",e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3);n(62),n(61),n(53);var s=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"initField",value:function(e,t,n){var r=n.editors[this.slug].assetRoot||t.assetRoot;e.defaultValue.originalImage=r+e.defaultValue.originalImage,e.defaultValue.croppedImage=r+e.defaultValue.croppedImage}},{key:"getVueData",value:function(){return{props:["item","fieldName","config","layout"],template:'\n        <div>\n          <div :data-field="fieldName" class="image-editor">\n            <input accept="image/gif,image/png,image/jpeg" class="cropit-image-input" type="file"></input>\n            <img :src="layout.fields[fieldName].defaultValue.croppedImage" class="reference" style="width:100%; display: none"/>\n            <div class="cropit-preview"></div>\n            <input class="cropit-image-zoom-input" type="range"></input>\n          </div>\n        </div>\n      ',data:function(){return{isCropperInitialized:!1,$modal:null,$editor:null,$root:null,$referenceImage:null,$fileInput:null,shouldSave:!1}},computed:{field:function(){return this.item.data[this.fieldName]}},methods:{showBsModal:function(){this.isCropperInitialized||this.$editor.invisible()},shownBsModal:function(){if(this.shouldSave=!1,!this.isCropperInitialized){if(0==this.$referenceImage.get(0).naturalWidth||0==this.$referenceImage.get(0).naturalHeight)throw new TypeError("Reference/placeholder image was not found "+this.$referenceImage.attr("src"));
  var e=Math.floor(this.$referenceImage.actual("width")),t=Math.floor(this.$referenceImage.actual("height"));this.$editor.cropit({exportZoom:this.$referenceImage.get(0).naturalWidth/e||1,imageBackground:!1,imageBackgroundBorderWidth:0,initialZoom:"image",width:e,height:t,maxZoom:5,onFileReadError:function(){console.log("onFileReadError",arguments)},onImageError:this.onImageError,smallImage:"allow",onImageLoaded:this.onImageLoaded,onZoomChange:this.onZoomChange,onOffsetChange:this.onOffsetChange}),this.$editor.cropit("imageSrc",this.field.originalImage)}},hideBsModal:function(){var e=this;this.config.editors.ImageEditor.uploadUrl&&this.shouldSave&&$.post(this.config.editors.ImageEditor.uploadUrl,{data:this.$editor.cropit("export")},function(t,n){console.log([t,n]),"success"==n&&"success"==t.status&&(e.field.croppedImage=t.url)})},onImageError:function(){this.$editor.cropit("imageSrc",""),this.isCropperInitialized=!0,this.$editor.visible(),this.$editor.cropit("offset",{x:0,y:0})},onImageLoaded:function(){var e=this;if(this.isCropperInitialized)!function(){e.shouldSave=!0;var t=e.$fileInput.get(0).files[0],n=new FileReader;n.onload=function(){e.config.editors.ImageEditor.uploadUrl&&$.post(e.config.editors.ImageEditor.uploadUrl,{data:n.result},function(t,n){console.log([t,n]),"success"==n&&"success"==t.status&&(e.field.originalImage=t.url,e.field.croppedImage=t.url)})},n.readAsDataURL(t),e.field.croppedImage=e.$editor.cropit("export")}();else{var t=null==this.field.zoom?this.$referenceImage.actual("width")/this.$referenceImage.get(0).naturalWidth:this.field.zoom;this.$editor.cropit("zoom",t),this.$editor.cropit("offset",this.field.offset),this.isCropperInitialized=!0,this.$editor.visible()}},onZoomChange:function(){this.isCropperInitialized&&(this.shouldSave=!0,this.field.zoom=this.$editor.cropit("zoom"),this.field.croppedImage=this.$editor.cropit("export"))},onOffsetChange:function(){if(this.isCropperInitialized){this.shouldSave=!0;var e=this.$editor.cropit("offset");this.field.offset={x:Math.floor(e.x),y:Math.floor(e.y)},this.field.croppedImage=this.$editor.cropit("export")}}},mounted:function(){console.log("mount "+this.item.layoutId+":"+this.fieldName),this.$root=$(this.$el),this.$modal=this.$root.closest(".modal"),this.$editor=this.$root.find(".image-editor"),this.$referenceImage=this.$editor.find(".reference"),this.$fileInput=this.$editor.find("[type=file]"),this.$modal.on("show.bs.modal",this.showBsModal),this.$modal.on("shown.bs.modal",this.shownBsModal),this.$modal.on("hide.bs.modal",this.hideBsModal)},beforeDestroy:function(){console.log("unmount "+this.item.layoutId+":"+this.fieldName),this.$modal.off("show.bs.modal",this.showBsModal),this.$modal.off("shown.bs.modal",this.shownBsModal),this.$modal.off("hide.bs.modal",this.hideBsModal)}}}}]),t}(u);s.slug="ImageEditor",e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),s=n(11),l=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"getVueData",value:function(){return{props:["item","fieldName"],template:'\n        <div>\n          <div v-for="(v,k) in item.data[fieldName]" class="row">\n            <label class="col-xs-2 control-label">{{k | titlecase | titleize }}</label>\n            <div class="col-xs-10">\n              <input class="form-control" type="text" v-model="item.data[fieldName][k]"></input>\n            </div>\n          </div>\n        </div>\n      ',filters:{titlecase:function(e){var t=e.replace(/([A-Z])/g," $1"),n=t.charAt(0).toUpperCase()+t.slice(1);return n},jsonify:function(e){return JSON.stringify(e)},titleize:function(e){return s.title(e)}}}}}]),t}(u);l.slug="LinkEditor",e.exports=l},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3);n(97),n(96),n(95);var s=n(80),l=n(16),c=n(84);jQuery.fn.visible=function(){return this.css("visibility","visible")},jQuery.fn.invisible=function(){return this.css("visibility","hidden")},jQuery.fn.visibilityToggle=function(){return this.css("visibility",function(e,t){return"visible"==t?"hidden":"visible"})};var f=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"initField",value:function(e,t,n){n.editors[this.slug].assetRoot||t.assetRoot;e.defaultValue=l(e.defaultValue)}},{key:"getVueData",value:function(){return{props:["item","fieldName"],data:function(){return{isInitialized:!1}},template:'\n        <div>\n          <textarea class="form-control markdown-editor" style="height: 300px" ref="area"></textarea>\n        </div>\n      ',methods:{showBsModal:function(){console.log("before show "+this.item.layoutId+":"+this.fieldName),this.isInitialized||this.$editor.invisible()},shownBsModal:function(){var e=this;console.log("on show "+this.item.layoutId+":"+this.fieldName),this.isInitialized||(this.mde=new s({element:this.$refs.area}),this.mde.value(c(this.item.data[this.fieldName])),this.mde.codemirror.on("change",function(){e.item.data[e.fieldName]=l(e.mde.value())}),this.isInitialized=!0)},hideBsModal:function(){}},mounted:function(){console.log("mount "+this.item.layoutId+":"+this.fieldName),this.$root=$(this.$el),this.$modal=this.$root.closest(".modal"),this.$editor=this.$root.find(".markdown-editor"),this.$modal.on("show.bs.modal",this.showBsModal),this.$modal.on("shown.bs.modal",this.shownBsModal),this.$modal.on("hide.bs.modal",this.hideBsModal)},beforeDestroy:function(){console.log("unmount "+this.item.layoutId+":"+this.fieldName),this.$modal.off("show.bs.modal",this.showBsModal),this.$modal.off("shown.bs.modal",this.shownBsModal),this.$modal.off("hide.bs.modal",this.hideBsModal)}}}}]),t}(u);f.slug="MarkdownEditor",e.exports=f},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),s=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"getVueData",value:function(){return{props:["item","fieldName"],template:'<input class="form-control" type="text" v-model="item.data[fieldName]"/>'}}}]),t}(u);s.slug="TextEditor",e.exports=s},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),s=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),a(t,null,[{key:"getVueData",value:function(){return{props:["item","fieldName"],template:'<textarea class="form-control" rows="3" v-model="item.data[fieldName]"></textarea>'}}}]),t}(u);s.slug="TextareaEditor",e.exports=s},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-n(e)}function i(e){var t,r,i,o,a,u,s=e.length;a=n(e),u=new c(3*s/4-a),i=a>0?s-4:s;var f=0;for(t=0,r=0;t<i;t+=4,r+=3)o=l[e.charCodeAt(t)]<<18|l[e.charCodeAt(t+1)]<<12|l[e.charCodeAt(t+2)]<<6|l[e.charCodeAt(t+3)],u[f++]=o>>16&255,u[f++]=o>>8&255,u[f++]=255&o;return 2===a?(o=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,u[f++]=255&o):1===a&&(o=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[e.charCodeAt(t+2)]>>2,u[f++]=o>>8&255,u[f++]=255&o),u}function o(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function a(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],i.push(o(r));return i.join("")}function u(e){for(var t,n=e.length,r=n%3,i="",o=[],u=16383,l=0,c=n-r;l<c;l+=u)o.push(a(e,l,l+u>c?c:l+u));return 1===r?(t=e[n-1],i+=s[t>>2],i+=s[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=s[t>>10],i+=s[t>>4&63],i+=s[t<<2&63],i+="="),o.push(i),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=u;for(var s=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=f.length;h<d;++h)s[h]=f[h],l[f.charCodeAt(h)]=h;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(e,t){e.exports=["address","article","aside","audio","blockquote","canvas","dd","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","noscript","ol","output","p","pre","section","table","tfoot","ul","video"]},function(e,t,n){"use strict";(function(e){function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=a.prototype):(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?d(e,t,n,r):"string"==typeof t?f(e,t,n):p(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t,n,r){return s(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function c(e,t){if(s(t),e=o(e,t<0?0:0|m(t)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=o(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function h(e,t){var n=t.length<0?0:0|m(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),a.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=a.prototype):e=h(e,t),e}function p(e,t){if(a.isBuffer(t)){var n=0|m(t.length);return e=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||Q(t.length)?o(e,0):h(e,t);if("Buffer"===t.type&&J(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),a.alloc(+e)}function v(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return F(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,u=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}var l;if(i){var c=-1;for(l=n;l<u;l++)if(o(e,l)===o(t,c===-1?0:l-c)){if(c===-1&&(c=l),l-c+1===s)return c*a}else c!==-1&&(l-=l-c),c=-1}else for(n+s>u&&(n=u-s),l=n;l>=0;l--){for(var f=!0,h=0;h<s;h++)if(o(e,l+h)!==o(t,h)){f=!1;break}if(f)return l}return-1}function A(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var u=parseInt(t.substr(2*a,2),16);if(isNaN(u))return a;e[n+a]=u}return a}function w(e,t,n,r){return Y(q(t,e.length-n),e,n,r)}function E(e,t,n,r){return Y(V(t),e,n,r)}function k(e,t,n,r){return E(e,t,n,r)}function _(e,t,n,r){return Y(G(t),e,n,r)}function S(e,t,n,r){return Y(Z(t,e.length-n),e,n,r)}function F(e,t,n){return 0===t&&n===e.length?K.fromByteArray(e):K.fromByteArray(e.slice(t,n))}function D(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o=e[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(i+u<=n){var s,l,c,f;switch(u){case 1:o<128&&(a=o);break;case 2:s=e[i+1],128===(192&s)&&(f=(31&o)<<6|63&s,f>127&&(a=f));break;case 3:s=e[i+1],l=e[i+2],128===(192&s)&&128===(192&l)&&(f=(15&o)<<12|(63&s)<<6|63&l,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:s=e[i+1],l=e[i+2],c=e[i+3],128===(192&s)&&128===(192&l)&&128===(192&c)&&(f=(15&o)<<18|(63&s)<<12|(63&l)<<6|63&c,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=u}return B(r)}function B(e){var t=e.length;if(t<=ee)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ee));return n}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function N(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,i){return i||P(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return i||P(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(e,t,n,r,52,8),n+8}function W(e){if(e=H(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Z(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(e){return K.toByteArray(W(e))}function Y(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Q(e){return e!==e}var K=n(40),X=n(57),J=n(43);t.Buffer=a,t.SlowBuffer=g,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),t.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return u(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return l(null,e,t,n)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!J(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=v,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):y.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,u=n-t,s=Math.min(o,u),l=this.slice(r,i),c=e.slice(t,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],u=c[f];break}return o<u?-1:u<o?1:0},a.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},a.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return A(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=a.prototype;else{var i=t-e;r=new a(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},a.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?(255-this[e]+1)*-1:this[e]},a.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),X.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),X.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),X.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),X.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;I(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;I(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,u=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===u&&0!==this[t+o-1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,u=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===u&&0!==this[t+o+1]&&(u=1),this[t+o]=(e/a>>0)-u&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var u=a.isBuffer(e)?e:q(new a(e,r).toString()),s=u.length;for(o=0;o<n-t;++o)this[o+t]=u[o%s]}return this};var te=/[^+\/0-9A-Za-z-_]/g}).call(t,n(4))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";function r(e){return e=e||{},"function"!=typeof e.codeMirrorInstance||"function"!=typeof e.codeMirrorInstance.defineMode?void console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`"):(String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),void e.codeMirrorInstance.defineMode("spell-checker",function(t){if(!r.aff_loading){r.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),
  n.onload=function(){4===n.readyState&&200===n.status&&(r.aff_data=n.responseText,r.num_loaded++,2==r.num_loaded&&(r.typo=new i("en_US",r.aff_data,r.dic_data,{platform:"any"})))},n.send(null)}if(!r.dic_loading){r.dic_loading=!0;var o=new XMLHttpRequest;o.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),o.onload=function(){4===o.readyState&&200===o.status&&(r.dic_data=o.responseText,r.num_loaded++,2==r.num_loaded&&(r.typo=new i("en_US",r.aff_data,r.dic_data,{platform:"any"})))},o.send(null)}var a='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',u={token:function(e){var t=e.peek(),n="";if(a.includes(t))return e.next(),null;for(;null!=(t=e.peek())&&!a.includes(t);)n+=t,e.next();return r.typo&&!r.typo.check(n)?"spell-error":null}},s=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(s,u,!0)}))}var i=n(88);r.num_loaded=0,r.aff_loading=!1,r.dic_loading=!1,r.aff_data="",r.dic_data="",r.typo,e.exports=r},function(e,t,n){!function(e){e(n(0))}(function(e){"use strict";function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function n(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,function(r,i,o){o==e.Init&&(o=!1),!o!=!i&&(i?t(r):n(r))})})},function(e,t,n){!function(e){e(n(0))}(function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.className="CodeMirror-placeholder";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){o(e)&&n(e)}function i(e){var r=e.getWrapperElement(),i=o(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function o(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,o,a){var u=a&&a!=e.Init;if(o&&!u)n.on("blur",r),n.on("change",i),n.on("swapDoc",i),i(n);else if(!o&&u){n.off("blur",r),n.off("change",i),n.off("swapDoc",i),t(n);var s=n.getWrapperElement();s.className=s.className.replace(" CodeMirror-empty","")}o&&!n.hasFocus()&&r(n)})})},function(e,t,n){!function(e){e(n(0))}(function(e){"use strict";var t=/^(\s*)(>[> ]*|- \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|- \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;e.commands.newlineAndIndentContinueMarkdownList=function(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),a=[],u=0;u<o.length;u++){var s=o[u].head,l=i.getStateAfter(s.line),c=l.list!==!1,f=0!==l.quote,h=i.getLine(s.line),d=t.exec(h);if(!o[u].empty()||!c&&!f||!d)return void i.execCommand("newlineAndIndent");if(n.test(h))i.replaceRange("",{line:s.line,ch:0},{line:s.line,ch:s.ch+1}),a[u]="\n";else{var p=d[1],m=d[5],g=r.test(d[2])||d[2].indexOf(">")>=0?d[2].replace("x"," "):parseInt(d[3],10)+1+d[4];a[u]="\n"+p+g+m}}i.replaceSelections(a)}})},function(e,t,n){!function(e){e(n(0))}(function(e){"use strict";function t(e){e.operation(function(){a(e)})}function n(e){e.state.markedSelection.length&&e.operation(function(){i(e)})}function r(e,t,n,r){if(0!=l(t,n))for(var i=e.state.markedSelection,o=e.state.markedSelectionStyle,a=t.line;;){var c=a==t.line?t:s(a,0),f=a+u,h=f>=n.line,d=h?n:s(f,0),p=e.markText(c,d,{className:o});if(null==r?i.push(p):i.splice(r++,0,p),h)break;a=f}}function i(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function o(e){i(e);for(var t=e.listSelections(),n=0;n<t.length;n++)r(e,t[n].from(),t[n].to())}function a(e){if(!e.somethingSelected())return i(e);if(e.listSelections().length>1)return o(e);var t=e.getCursor("start"),n=e.getCursor("end"),a=e.state.markedSelection;if(!a.length)return r(e,t,n);var s=a[0].find(),c=a[a.length-1].find();if(!s||!c||n.line-t.line<u||l(t,c.to)>=0||l(n,s.from)<=0)return o(e);for(;l(t,s.from)>0;)a.shift().clear(),s=a[0].find();for(l(t,s.from)<0&&(s.to.line-t.line<u?(a.shift().clear(),r(e,t,s.to,0)):r(e,t,s.from,0));l(n,c.to)<0;)a.pop().clear(),c=a[a.length-1].find();l(n,c.to)>0&&(n.line-c.from.line<u?(a.pop().clear(),r(e,c.from,n)):r(e,c.to,n))}e.defineOption("styleSelectedText",!1,function(r,a,u){var s=u&&u!=e.Init;a&&!s?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof a?a:"CodeMirror-selectedtext",o(r),r.on("cursorActivity",t),r.on("change",n)):!a&&s&&(r.off("cursorActivity",t),r.off("change",n),i(r),r.state.markedSelection=r.state.markedSelectionStyle=null)});var u=8,s=e.Pos,l=e.cmpPos})},function(e,t,n){!function(e){e(n(0),n(14),n(13))}(function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){function i(e){return e.code=!1,null}var o=0,a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var i=e.pos;e.eatWhile("`");var a=1+e.pos-i;return n.code?a===o&&(n.code=!1):(o=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,r.gitHubSpice!==!1)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:i},u={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:"```",strikethrough:!0};for(var s in r)u[s]=r[s];return u.name="markdown",e.overlayMode(e.getMode(n,u),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},function(e,t,n){!function(e){e(n(0))}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["pgp"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists.txt$/},{name:"CoffeeScript",mime:"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:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"],alias:["objective-c","objc"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{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:"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"],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 n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}},e.findModeByExtension=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}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 n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}})},function(e,t,n){"use strict";function r(e){return!(!e||!l[e.nodeName])}function i(e){return!(!e||!s[e.nodeName])}function o(e,t){if(e.firstChild&&"PRE"!==e.nodeName){"function"!=typeof t&&(t=r);for(var n=null,o=!1,s=null,l=u(s,e);l!==e;){if(3===l.nodeType){var c=l.data.replace(/[ \r\n\t]+/g," ");if(n&&!/ $/.test(n.data)||o||" "!==c[0]||(c=c.substr(1)),!c){l=a(l);continue}l.data=c,n=l}else{if(1!==l.nodeType){l=a(l);continue}t(l)||"BR"===l.nodeName?(n&&(n.data=n.data.replace(/ $/,"")),n=null,o=!1):i(l)&&(n=null,o=!0)}var f=u(s,l);s=l,l=f}n&&(n.data=n.data.replace(/ $/,""),n.data||a(n))}}function a(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function u(e,t){return e&&e.parentNode===t||"PRE"===t.nodeName?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var s=n(91);Object.keys(s).forEach(function(e){s[e.toUpperCase()]=1});var l={};n(41).forEach(function(e){l[e.toUpperCase()]=1}),e.exports=o},function(e,t,n){var r=n(2),i=n(20);e.exports=function(e,t){return r(i(e,t),t)}},function(e,t,n){/*! cropit - v0.5.0 <https://github.com/scottcheng/cropit> */
  !function(t,r){e.exports=r(n(98))}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}var i=Array.prototype.slice,o=n(1),a=r(o),u=n(2),s=r(u),l=n(4),c=n(6),f=function(e,t){return e.each(function(){var e=a.default.data(this,l.PLUGIN_KEY);e&&t(e)})},h=function(e,t,n){var r=e.first().data(l.PLUGIN_KEY);return r&&a.default.isFunction(r[t])?r[t](n):null},d={init:function(e){return this.each(function(){if(!a.default.data(this,l.PLUGIN_KEY)){var t=new s.default(a.default,this,e);a.default.data(this,l.PLUGIN_KEY,t)}})},destroy:function(){return this.each(function(){a.default.removeData(this,l.PLUGIN_KEY)})},isZoomable:function(){return h(this,"isZoomable")},export:function(e){return h(this,"getCroppedImageData",e)}},p=function(e,t){return f(e,function(e){e[t]()})},m=function(e,t,n){if((0,c.exists)(n))return f(e,function(e){e[t]=n});var r=e.first().data(l.PLUGIN_KEY);return r[t]};a.default.fn.cropit=function(e){return d[e]?d[e].apply(this,Array.prototype.slice.call(arguments,1)):["imageState","imageSrc","offset","previewSize","imageSize","zoom","initialZoom","exportZoom","minZoom","maxZoom"].indexOf(e)>=0?m.apply(void 0,[this].concat(i.call(arguments))):["rotateCW","rotateCCW","disable","reenable"].indexOf(e)>=0?p.apply(void 0,[this].concat(i.call(arguments))):d.init.apply(this,arguments)}},function(t,n){t.exports=e},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),u=r(a),s=n(3),l=r(s),c=n(4),f=n(5),h=n(6),d=function(){function e(t,n,r){i(this,e),this.$el=(0,u.default)(n);var o=(0,f.loadDefaults)(this.$el);this.options=u.default.extend({},o,r),this.init()}return o(e,[{key:"init",value:function(){var e=this;this.image=new Image,this.preImage=new Image,this.image.onload=this.onImageLoaded.bind(this),this.preImage.onload=this.onPreImageLoaded.bind(this),this.image.onerror=this.preImage.onerror=function(){e.onImageError.call(e,c.ERRORS.IMAGE_FAILED_TO_LOAD)},this.$preview=this.options.$preview.css("position","relative"),this.$fileInput=this.options.$fileInput.attr({accept:"image/*"}),this.$zoomSlider=this.options.$zoomSlider.attr({min:0,max:1,step:.01}),this.previewSize={width:this.options.width||this.$preview.width(),height:this.options.height||this.$preview.height()},this.$image=(0,u.default)("<img />").addClass(c.CLASS_NAMES.PREVIEW_IMAGE).attr("alt","").css({transformOrigin:"top left",webkitTransformOrigin:"top left",willChange:"transform"}),this.$imageContainer=(0,u.default)("<div />").addClass(c.CLASS_NAMES.PREVIEW_IMAGE_CONTAINER).css({position:"absolute",overflow:"hidden",left:0,top:0,width:"100%",height:"100%"}).append(this.$image),this.$preview.append(this.$imageContainer),this.options.imageBackground&&(u.default.isArray(this.options.imageBackgroundBorderWidth)?this.bgBorderWidthArray=this.options.imageBackgroundBorderWidth:this.bgBorderWidthArray=[0,1,2,3].map(function(){return e.options.imageBackgroundBorderWidth}),this.$bg=(0,u.default)("<img />").addClass(c.CLASS_NAMES.PREVIEW_BACKGROUND).attr("alt","").css({position:"relative",left:this.bgBorderWidthArray[3],top:this.bgBorderWidthArray[0],transformOrigin:"top left",webkitTransformOrigin:"top left",willChange:"transform"}),this.$bgContainer=(0,u.default)("<div />").addClass(c.CLASS_NAMES.PREVIEW_BACKGROUND_CONTAINER).css({position:"absolute",zIndex:0,top:-this.bgBorderWidthArray[0],right:-this.bgBorderWidthArray[1],bottom:-this.bgBorderWidthArray[2],left:-this.bgBorderWidthArray[3]}).append(this.$bg),this.bgBorderWidthArray[0]>0&&this.$bgContainer.css("overflow","hidden"),this.$preview.prepend(this.$bgContainer)),this.initialZoom=this.options.initialZoom,this.imageLoaded=!1,this.moveContinue=!1,this.zoomer=new l.default,this.options.allowDragNDrop&&u.default.event.props.push("dataTransfer"),this.bindListeners(),this.options.imageState&&this.options.imageState.src&&this.loadImage(this.options.imageState.src)}},{key:"bindListeners",value:function(){this.$fileInput.on("change.cropit",this.onFileChange.bind(this)),this.$imageContainer.on(c.EVENTS.PREVIEW,this.onPreviewEvent.bind(this)),this.$zoomSlider.on(c.EVENTS.ZOOM_INPUT,this.onZoomSliderChange.bind(this)),this.options.allowDragNDrop&&(this.$imageContainer.on("dragover.cropit dragleave.cropit",this.onDragOver.bind(this)),this.$imageContainer.on("drop.cropit",this.onDrop.bind(this)))}},{key:"unbindListeners",value:function(){this.$fileInput.off("change.cropit"),this.$imageContainer.off(c.EVENTS.PREVIEW),this.$imageContainer.off("dragover.cropit dragleave.cropit drop.cropit"),this.$zoomSlider.off(c.EVENTS.ZOOM_INPUT)}},{key:"onFileChange",value:function(e){this.options.onFileChange(e),this.$fileInput.get(0).files&&this.loadFile(this.$fileInput.get(0).files[0])}},{key:"loadFile",value:function(e){var t=new FileReader;e&&e.type.match("image")?(t.readAsDataURL(e),t.onload=this.onFileReaderLoaded.bind(this),t.onerror=this.onFileReaderError.bind(this)):e&&this.onFileReaderError()}},{key:"onFileReaderLoaded",value:function(e){this.loadImage(e.target.result)}},{key:"onFileReaderError",value:function(){this.options.onFileReaderError()}},{key:"onDragOver",value:function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy",this.$preview.toggleClass(c.CLASS_NAMES.DRAG_HOVERED,"dragover"===e.type)}},{key:"onDrop",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=Array.prototype.slice.call(e.dataTransfer.files,0);n.some(function(e){return!!e.type.match("image")&&(t.loadFile(e),!0)}),this.$preview.removeClass(c.CLASS_NAMES.DRAG_HOVERED)}},{key:"loadImage",value:function(e){var t=this;if(e)if(this.options.onImageLoading(),this.setImageLoadingClass(),0===e.indexOf("data"))this.preImage.src=e;else{var n=new XMLHttpRequest;n.onload=function(e){return e.target.status>=300?void t.onImageError.call(t,c.ERRORS.IMAGE_FAILED_TO_LOAD):void t.loadFile(e.target.response)},n.open("GET",e),n.responseType="blob",n.send()}}},{key:"onPreImageLoaded",value:function(){return this.shouldRejectImage({imageWidth:this.preImage.width,imageHeight:this.preImage.height,previewSize:this.previewSize,maxZoom:this.options.maxZoom,exportZoom:this.options.exportZoom,smallImage:this.options.smallImage})?(this.onImageError(c.ERRORS.SMALL_IMAGE),void(this.image.src&&this.setImageLoadedClass())):void(this.image.src=this.preImage.src)}},{key:"onImageLoaded",value:function(){this.rotation=0,this.setupZoomer(this.options.imageState&&this.options.imageState.zoom||this._initialZoom),this.options.imageState&&this.options.imageState.offset?this.offset=this.options.imageState.offset:this.centerImage(),this.options.imageState={},this.$image.attr("src",this.image.src),this.options.imageBackground&&this.$bg.attr("src",this.image.src),this.setImageLoadedClass(),this.imageLoaded=!0,this.options.onImageLoaded()}},{key:"onImageError",value:function(){this.options.onImageError.apply(this,arguments),this.removeImageLoadingClass()}},{key:"setImageLoadingClass",value:function(){this.$preview.removeClass(c.CLASS_NAMES.IMAGE_LOADED).addClass(c.CLASS_NAMES.IMAGE_LOADING)}},{key:"setImageLoadedClass",value:function(){this.$preview.removeClass(c.CLASS_NAMES.IMAGE_LOADING).addClass(c.CLASS_NAMES.IMAGE_LOADED)}},{key:"removeImageLoadingClass",value:function(){this.$preview.removeClass(c.CLASS_NAMES.IMAGE_LOADING)}},{key:"getEventPosition",value:function(e){if(e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches[0]&&(e=e.originalEvent.touches[0]),e.clientX&&e.clientY)return{x:e.clientX,y:e.clientY}}},{key:"onPreviewEvent",value:function(e){if(this.imageLoaded)return this.moveContinue=!1,this.$imageContainer.off(c.EVENTS.PREVIEW_MOVE),"mousedown"===e.type||"touchstart"===e.type?(this.origin=this.getEventPosition(e),this.moveContinue=!0,this.$imageContainer.on(c.EVENTS.PREVIEW_MOVE,this.onMove.bind(this))):(0,u.default)(document.body).focus(),e.stopPropagation(),!1}},{key:"onMove",value:function(e){var t=this.getEventPosition(e);return this.moveContinue&&t&&(this.offset={x:this.offset.x+t.x-this.origin.x,y:this.offset.y+t.y-this.origin.y}),this.origin=t,e.stopPropagation(),!1}},{key:"fixOffset",value:function(e){if(!this.imageLoaded)return e;var t={x:e.x,y:e.y};return this.options.freeMove||(this.imageWidth*this.zoom>=this.previewSize.width?t.x=Math.min(0,Math.max(t.x,this.previewSize.width-this.imageWidth*this.zoom)):t.x=Math.max(0,Math.min(t.x,this.previewSize.width-this.imageWidth*this.zoom)),this.imageHeight*this.zoom>=this.previewSize.height?t.y=Math.min(0,Math.max(t.y,this.previewSize.height-this.imageHeight*this.zoom)):t.y=Math.max(0,Math.min(t.y,this.previewSize.height-this.imageHeight*this.zoom))),t.x=(0,h.round)(t.x),t.y=(0,h.round)(t.y),t}},{key:"centerImage",value:function(){this.image.width&&this.image.height&&this.zoom&&(this.offset={x:(this.previewSize.width-this.imageWidth*this.zoom)/2,y:(this.previewSize.height-this.imageHeight*this.zoom)/2})}},{key:"onZoomSliderChange",value:function(){if(this.imageLoaded){this.zoomSliderPos=Number(this.$zoomSlider.val());var e=this.zoomer.getZoom(this.zoomSliderPos);e!==this.zoom&&(this.zoom=e)}}},{key:"enableZoomSlider",value:function(){this.$zoomSlider.removeAttr("disabled"),this.options.onZoomEnabled()}},{key:"disableZoomSlider",value:function(){this.$zoomSlider.attr("disabled",!0),this.options.onZoomDisabled()}},{key:"setupZoomer",value:function(e){this.zoomer.setup({imageSize:this.imageSize,previewSize:this.previewSize,exportZoom:this.options.exportZoom,maxZoom:this.options.maxZoom,minZoom:this.options.minZoom,smallImage:this.options.smallImage}),this.zoom=(0,h.exists)(e)?e:this._zoom,this.isZoomable()?this.enableZoomSlider():this.disableZoomSlider()}},{key:"fixZoom",value:function(e){return this.zoomer.fixZoom(e)}},{key:"isZoomable",value:function(){return this.zoomer.isZoomable()}},{key:"renderImage",value:function(){var e="\n      translate("+this.rotatedOffset.x+"px, "+this.rotatedOffset.y+"px)\n      scale("+this.zoom+")\n      rotate("+this.rotation+"deg)";this.$image.css({transform:e,webkitTransform:e}),this.options.imageBackground&&this.$bg.css({transform:e,webkitTransform:e})}},{key:"rotateCW",value:function(){this.shouldRejectImage({imageWidth:this.image.height,imageHeight:this.image.width,previewSize:this.previewSize,maxZoom:this.options.maxZoom,exportZoom:this.options.exportZoom,smallImage:this.options.smallImage})?this.rotation=(this.rotation+180)%360:this.rotation=(this.rotation+90)%360}},{key:"rotateCCW",value:function(){this.shouldRejectImage({imageWidth:this.image.height,imageHeight:this.image.width,previewSize:this.previewSize,maxZoom:this.options.maxZoom,exportZoom:this.options.exportZoom,smallImage:this.options.smallImage})?this.rotation=(this.rotation+180)%360:this.rotation=(this.rotation+270)%360}},{key:"shouldRejectImage",value:function(e){var t=e.imageWidth,n=e.imageHeight,r=e.previewSize,i=e.maxZoom,o=e.exportZoom,a=e.smallImage;return"reject"===a&&(t*i<r.width*o||n*i<r.height*o)}},{key:"getCroppedImageData",value:function(e){if(this.image.src){var t={type:"image/png",quality:.75,originalSize:!1,fillBg:"#fff"};e=u.default.extend({},t,e);var n=e.originalSize?1/this.zoom:this.options.exportZoom,r={width:this.zoom*n*this.image.width,height:this.zoom*n*this.image.height},i=(0,u.default)("<canvas />").attr({width:this.previewSize.width*n,height:this.previewSize.height*n}).get(0),o=i.getContext("2d");return"image/jpeg"===e.type&&(o.fillStyle=e.fillBg,o.fillRect(0,0,i.width,i.height)),o.translate(this.rotatedOffset.x*n,this.rotatedOffset.y*n),o.rotate(this.rotation*Math.PI/180),o.drawImage(this.image,0,0,r.width,r.height),i.toDataURL(e.type,e.quality)}}},{key:"disable",value:function(){this.unbindListeners(),this.disableZoomSlider(),this.$el.addClass(c.CLASS_NAMES.DISABLED)}},{key:"reenable",value:function(){this.bindListeners(),this.enableZoomSlider(),this.$el.removeClass(c.CLASS_NAMES.DISABLED)}},{key:"$",value:function(e){return this.$el?this.$el.find(e):null}},{key:"offset",set:function(e){e&&(0,h.exists)(e.x)&&(0,h.exists)(e.y)&&(this._offset=this.fixOffset(e),this.renderImage(),this.options.onOffsetChange(e))},get:function(){return this._offset}},{key:"zoom",set:function(e){if(e=this.fixZoom(e),this.imageLoaded){var t=this.zoom,n=this.previewSize.width/2-(this.previewSize.width/2-this.offset.x)*e/t,r=this.previewSize.height/2-(this.previewSize.height/2-this.offset.y)*e/t;this._zoom=e,this.offset={x:n,y:r}}else this._zoom=e;this.zoomSliderPos=this.zoomer.getSliderPos(this.zoom),this.$zoomSlider.val(this.zoomSliderPos),this.options.onZoomChange(e)},get:function(){return this._zoom}},{key:"rotatedOffset",get:function(){return{x:this.offset.x+(90===this.rotation?this.image.height*this.zoom:0)+(180===this.rotation?this.image.width*this.zoom:0),y:this.offset.y+(180===this.rotation?this.image.height*this.zoom:0)+(270===this.rotation?this.image.width*this.zoom:0)}}},{key:"rotation",set:function(e){this._rotation=e,this.imageLoaded&&this.setupZoomer()},get:function(){return this._rotation}},{key:"imageState",get:function(){return{src:this.image.src,offset:this.offset,zoom:this.zoom}}},{key:"imageSrc",get:function(){return this.image.src},set:function(e){this.loadImage(e)}},{key:"imageWidth",get:function(){return this.rotation%180===0?this.image.width:this.image.height}},{key:"imageHeight",get:function(){return this.rotation%180===0?this.image.height:this.image.width}},{key:"imageSize",get:function(){return{width:this.imageWidth,height:this.imageHeight}}},{key:"initialZoom",get:function(){return this.options.initialZoom},set:function(e){this.options.initialZoom=e,"min"===e?this._initialZoom=0:"image"===e?this._initialZoom=1:this._initialZoom=0}},{key:"exportZoom",get:function(){return this.options.exportZoom},set:function(e){this.options.exportZoom=e,this.setupZoomer()}},{key:"minZoom",get:function(){return this.options.minZoom},set:function(e){this.options.minZoom=e,this.setupZoomer()}},{key:"maxZoom",get:function(){return this.options.maxZoom},set:function(e){this.options.maxZoom=e,this.setupZoomer()}},{key:"previewSize",get:function(){return this._previewSize},set:function(e){!e||e.width<=0||e.height<=0||(this._previewSize={width:e.width,height:e.height},this.$preview.css({width:this.previewSize.width,height:this.previewSize.height}),this.imageLoaded&&this.setupZoomer())}}]),e}();t.default=d,e.exports=t.default},function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){n(this,e),this.minZoom=this.maxZoom=1}return r(e,[{key:"setup",value:function(e){var t=e.imageSize,n=e.previewSize,r=e.exportZoom,i=e.maxZoom,o=e.minZoom,a=e.smallImage,u=n.width/t.width,s=n.height/t.height;"fit"===o?this.minZoom=Math.min(u,s):this.minZoom=Math.max(u,s),"allow"===a&&(this.minZoom=Math.min(this.minZoom,1)),this.maxZoom=Math.max(this.minZoom,i/r)}},{key:"getZoom",value:function(e){return this.minZoom&&this.maxZoom?e*(this.maxZoom-this.minZoom)+this.minZoom:null}},{key:"getSliderPos",value:function(e){return this.minZoom&&this.maxZoom?this.minZoom===this.maxZoom?0:(e-this.minZoom)/(this.maxZoom-this.minZoom):null}},{key:"isZoomable",value:function(){return this.minZoom&&this.maxZoom?this.minZoom!==this.maxZoom:null}},{key:"fixZoom",value:function(e){return Math.max(this.minZoom,Math.min(this.maxZoom,e))}}]),e}();t.default=i,e.exports=t.default},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="cropit";t.PLUGIN_KEY=n;var r={PREVIEW:"cropit-preview",PREVIEW_IMAGE_CONTAINER:"cropit-preview-image-container",PREVIEW_IMAGE:"cropit-preview-image",PREVIEW_BACKGROUND_CONTAINER:"cropit-preview-background-container",PREVIEW_BACKGROUND:"cropit-preview-background",FILE_INPUT:"cropit-image-input",ZOOM_SLIDER:"cropit-image-zoom-input",DRAG_HOVERED:"cropit-drag-hovered",IMAGE_LOADING:"cropit-image-loading",IMAGE_LOADED:"cropit-image-loaded",DISABLED:"cropit-disabled"};t.CLASS_NAMES=r;var i={IMAGE_FAILED_TO_LOAD:{code:0,message:"Image failed to load."},SMALL_IMAGE:{code:1,message:"Image is too small."}};t.ERRORS=i;var o=function(e){return e.map(function(e){return""+e+".cropit"}).join(" ")},a={PREVIEW:o(["mousedown","mouseup","mouseleave","touchstart","touchend","touchcancel","touchleave"]),PREVIEW_MOVE:o(["mousemove","touchmove"]),ZOOM_INPUT:o(["mousemove","touchmove","change"])};t.EVENTS=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i={elements:[{name:"$preview",description:"The HTML element that displays image preview.",defaultSelector:"."+r.CLASS_NAMES.PREVIEW},{name:"$fileInput",description:"File input element.",defaultSelector:"input."+r.CLASS_NAMES.FILE_INPUT},{name:"$zoomSlider",description:"Range input element that controls image zoom.",defaultSelector:"input."+r.CLASS_NAMES.ZOOM_SLIDER}].map(function(e){return e.type="jQuery element",e.default="$imageCropper.find('"+e.defaultSelector+"')",e}),values:[{name:"width",type:"number",description:"Width of image preview in pixels. If set, it will override the CSS property.",default:null},{name:"height",type:"number",description:"Height of image preview in pixels. If set, it will override the CSS property.",default:null},{name:"imageBackground",type:"boolean",description:"Whether or not to display the background image beyond the preview area.",default:!1},{name:"imageBackgroundBorderWidth",type:"array or number",description:"Width of background image border in pixels.\n        The four array elements specify the width of background image width on the top, right, bottom, left side respectively.\n        The background image beyond the width will be hidden.\n        If specified as a number, border with uniform width on all sides will be applied.",default:[0,0,0,0]},{name:"exportZoom",type:"number",description:"The ratio between the desired image size to export and the preview size.\n        For example, if the preview size is `300px * 200px`, and `exportZoom = 2`, then\n        the exported image size will be `600px * 400px`.\n        This also affects the maximum zoom level, since the exported image cannot be zoomed to larger than its original size.",default:1},{name:"allowDragNDrop",type:"boolean",description:"When set to true, you can load an image by dragging it from local file browser onto the preview area.",default:!0},{name:"minZoom",type:"string",description:"This options decides the minimal zoom level of the image.\n        If set to `'fill'`, the image has to fill the preview area, i.e. both width and height must not go smaller than the preview area.\n        If set to `'fit'`, the image can shrink further to fit the preview area, i.e. at least one of its edges must not go smaller than the preview area.",default:"fill"},{name:"maxZoom",type:"number",description:"Determines how big the image can be zoomed. E.g. if set to 1.5, the image can be zoomed to 150% of its original size.",default:1},{name:"initialZoom",type:"string",description:"Determines the zoom when an image is loaded.\n        When set to `'min'`, image is zoomed to the smallest when loaded.\n        When set to `'image'`, image is zoomed to 100% when loaded.",default:"min"},{name:"freeMove",type:"boolean",description:"When set to true, you can freely move the image instead of being bound to the container borders",default:!1},{name:"smallImage",type:"string",description:"When set to `'reject'`, `onImageError` would be called when cropit loads an image that is smaller than the container.\n        When set to `'allow'`, images smaller than the container can be zoomed down to its original size, overiding `minZoom` option.\n        When set to `'stretch'`, the minimum zoom of small images would follow `minZoom` option.",default:"reject"}],callbacks:[{name:"onFileChange",description:"Called when user selects a file in the select file input.",params:[{name:"event",type:"object",description:"File change event object"}]},{name:"onFileReaderError",description:"Called when `FileReader` encounters an error while loading the image file."},{name:"onImageLoading",description:"Called when image starts to be loaded."},{name:"onImageLoaded",description:"Called when image is loaded."},{name:"onImageError",description:"Called when image cannot be loaded.",params:[{name:"error",type:"object",description:"Error object."},{name:"error.code",type:"number",description:"Error code. `0` means generic image loading failure. `1` means image is too small."},{name:"error.message",type:"string",description:"A message explaining the error."}]},{name:"onZoomEnabled",description:"Called when image the zoom slider is enabled."},{name:"onZoomDisabled",description:"Called when image the zoom slider is disabled."},{name:"onZoomChange",description:"Called when zoom changes.",params:[{name:"zoom",type:"number",description:"New zoom."}]},{name:"onOffsetChange",description:"Called when image offset changes.",params:[{name:"offset",type:"object",description:"New offset, with `x` and `y` values."}]}].map(function(e){return e.type="function",e})},o=function(e){var t={};return e&&i.elements.forEach(function(n){t[n.name]=e.find(n.defaultSelector)}),i.values.forEach(function(e){t[e.name]=e.default}),i.callbacks.forEach(function(e){t[e.name]=function(){}}),t};t.loadDefaults=o,t.default=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return"undefined"!=typeof e};t.exists=n;var r=function(e){return+(Math.round(100*e)+"e-2")};t.round=r}])})},function(e,t){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}};e.exports=n}()},function(e,t,n){var r=n(1);e.exports=function(e,t){return r(e,t,".")}},function(e,t,n){var r=n(1),i=n(2);e.exports=function(e,t){return r(e,t,"-").replace(/^.|\-./g,function(e){return i(e,t)})}},function(e,t){t.read=function(e,t,n,r,i){var o,a,u=8*i-r-1,s=(1<<u)-1,l=s>>1,c=-7,f=n?i-1:0,h=n?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=u;c>0;o=256*o+e[t+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===s)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,u,s,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+f>=1?h/s:h*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=c?(u=0,a=c):a+f>=1?(u=(t*s-1)*Math.pow(2,i),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&u,d+=p,u/=256,i-=8);for(a=a<<i|u,l+=i;l>0;e[n+d]=255&a,d+=p,a/=256,l-=8);e[n+d-p]|=128*m}},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}/*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
   * @license  MIT
   */
  e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},function(e,t,n){var r=n(5);e.exports=function(e,t){return r(e,t)===e}},function(e,t,n){var r=n(2);e.exports=function(e,t){return r(e,t)===e}},function(e,t){/*!
   * jQuery Migrate - v3.0.0 - 2016-06-09
   * Copyright jQuery Foundation and other contributors
   */
  !function(e,t){"use strict";function n(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,i){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n(i),r}})}e.migrateVersion="3.0.0",function(){var n=t.console&&t.console.log&&function(){t.console.log.apply(t.console,arguments)},r=/^[12]\./;n&&(e&&!r.test(e.fn.jquery)||n("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&n("JQMIGRATE: Migrate plugin loaded multiple times"),n("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion))}();var i={};e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&n("jQuery is not compatible with Quirks Mode");var o=e.fn.init,a=e.isNumeric,u=e.find,s=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(n("jQuery( '#' ) is not a valid selector"),t[0]=[]),o.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var t=Array.prototype.slice.call(arguments);if("string"==typeof e&&s.test(e))try{document.querySelector(e)}catch(r){e=e.replace(l,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{document.querySelector(e),n("Attribute selector with '#' must be quoted: "+t[0]),t[0]=e}catch(e){n("Attribute selector with '#' was not fixed: "+t[0])}}return u.apply(this,t)};var c;for(c in u)Object.prototype.hasOwnProperty.call(u,c)&&(e.find[c]=u[c]);e.fn.size=function(){return n("jQuery.fn.size() is deprecated; use the .length property"),this.length},e.parseJSON=function(){return n("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){function r(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0}var i=a(t),o=r(t);return i!==o&&n("jQuery.isNumeric() should not be called on constructed objects"),o},r(e,"unique",e.uniqueSort,"jQuery.unique is deprecated, use jQuery.uniqueSort"),r(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is now jQuery.expr.pseudos"),r(e.expr,":",e.expr.pseudos,'jQuery.expr[":"] is now jQuery.expr.pseudos');var f=e.ajax;e.ajax=function(){var e=f.apply(this,arguments);return e.promise&&(r(e,"success",e.done,"jQXHR.success is deprecated and removed"),r(e,"error",e.fail,"jQXHR.error is deprecated and removed"),r(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var h=e.fn.removeAttr,d=e.fn.toggleClass,p=/\S+/g;e.fn.removeAttr=function(t){var r=this;return e.each(t.match(p),function(t,i){e.expr.match.bool.test(i)&&(n("jQuery.fn.removeAttr no longer sets boolean properties: "+i),r.prop(i,!1))}),h.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?d.apply(this,arguments):(n("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||t===!1?"":e.data(this,"__className__")||"")}))};var m=!1;e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return m=!0,e=r.apply(this,arguments),m=!1,e})}),e.swap=function(e,t,r,i){var o,a,u={};m||n("jQuery.swap() is undocumented and deprecated");for(a in t)u[a]=e.style[a],e.style[a]=t[a];o=r.apply(e,i||[]);for(a in t)e.style[a]=u[a];return o};var g=e.data;e.data=function(t,r,i){var o;return r&&r!==e.camelCase(r)&&(o=e.hasData(t)&&g.call(this,t),o&&r in o)?(n("jQuery.data() always sets/gets camelCased names: "+r),arguments.length>2&&(o[r]=i),o[r]):g.apply(this,arguments)};var v=e.Tween.prototype.run;e.Tween.prototype.run=function(t){e.easing[this.easing].length>1&&(n('easing function "jQuery.easing.'+this.easing.toString()+'" should use only first argument'),e.easing[this.easing]=e.easing[this.easing].bind(e.easing,t,this.options.duration*t,0,1,this.options.duration)),v.apply(this,arguments)};var y=e.fn.load,b=e.event.fix;e.event.props=[],e.event.fixHooks={},e.event.fix=function(t){var r,i=t.type,o=this.fixHooks[i],a=e.event.props;if(a.length)for(n("jQuery.event.props are deprecated and removed: "+a.join());a.length;)e.event.addProp(a.pop());if(o&&!o._migrated_&&(o._migrated_=!0,n("jQuery.event.fixHooks are deprecated and removed: "+i),(a=o.props)&&a.length))for(;a.length;)e.event.addProp(a.pop());return r=b.call(this,t),o&&o.filter?o.filter(r,t):r},e.each(["load","unload","error"],function(t,r){e.fn[r]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===r&&"string"==typeof e[0]?y.apply(this,e):(n("jQuery.fn."+r+"() is deprecated"),e.splice(0,0,r),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e(function(){e(document).triggerHandler("ready")}),e.event.special.ready={setup:function(){this===document&&n("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,r){return n("jQuery.fn.bind() is deprecated"),this.on(e,null,t,r)},unbind:function(e,t){return n("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,r,i){return n("jQuery.fn.delegate() is deprecated"),this.on(t,e,r,i)},undelegate:function(e,t,r){return n("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)}});var x=e.fn.offset;e.fn.offset=function(){var t,r=this[0],i={top:0,left:0};return r&&r.nodeType?(t=(r.ownerDocument||document).documentElement,e.contains(t,r)?x.apply(this,arguments):(n("jQuery.fn.offset() requires an element connected to a document"),i)):(n("jQuery.fn.offset() requires a valid DOM element"),i)};var C=e.param;e.param=function(t,r){var i=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===r&&i&&(n("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),r=i),C.call(this,t,r)};var A=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return n("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),A.apply(this,arguments)};var w=e.Deferred,E=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];e.Deferred=function(t){var r=w(),i=r.promise();return r.pipe=i.pipe=function(){var t=arguments;return n("deferred.pipe() is deprecated"),e.Deferred(function(n){e.each(E,function(o,a){var u=e.isFunction(t[o])&&t[o];r[a[1]](function(){var t=u&&u.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===i?n.promise():this,u?[t]:arguments)})}),t=null}).promise()},t&&t.call(r,r),r}}(jQuery,window)},function(e,t,n){!function(e){e(jQuery)}(function(e){e.fn.addBack=e.fn.addBack||e.fn.andSelf,e.fn.extend({actual:function(t,n){if(!this[t])throw'$.actual => The jQuery method "'+t+'" you called does not exist';var r,i,o={absolute:!1,clone:!1,includeMargin:!1,display:"block"},a=e.extend(o,n),u=this.eq(0);if(a.clone===!0)r=function(){var e="position: absolute !important; top: -1000 !important; ";u=u.clone().attr("style",e).appendTo("body")},i=function(){u.remove()};else{var s,l=[],c="";r=function(){s=u.parents().addBack().filter(":hidden"),c+="visibility: hidden !important; display: "+a.display+" !important; ",a.absolute===!0&&(c+="position: absolute !important; "),s.each(function(){var t=e(this),n=t.attr("style");l.push(n),t.attr("style",n?n+";"+c:c)})},i=function(){s.each(function(t){var n=e(this),r=l[t];void 0===r?n.removeAttr("style"):n.attr("style",r)})}}r();var f=/(outer)/.test(t)?u[t](a.includeMargin):u[t]();return i(),f}})})},function(e,t,n){var r=n(5);e.exports=function(e,t){return null==e?"":(e=String(e),r(e.charAt(0),t)+e.substr(1))}},function(e,t,n){!function(){var t=n(54),r=n(12).utf8,i=n(58),o=n(12).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var u=t.bytesToWords(e),s=8*e.length,l=1732584193,c=-271733879,f=-1732584194,h=271733878,d=0;d<u.length;d++)u[d]=16711935&(u[d]<<8|u[d]>>>24)|4278255360&(u[d]<<24|u[d]>>>8);u[s>>>5]|=128<<s%32,u[(s+64>>>9<<4)+14]=s;for(var p=a._ff,m=a._gg,g=a._hh,v=a._ii,d=0;d<u.length;d+=16){var y=l,b=c,x=f,C=h;l=p(l,c,f,h,u[d+0],7,-680876936),h=p(h,l,c,f,u[d+1],12,-389564586),f=p(f,h,l,c,u[d+2],17,606105819),c=p(c,f,h,l,u[d+3],22,-1044525330),l=p(l,c,f,h,u[d+4],7,-176418897),h=p(h,l,c,f,u[d+5],12,1200080426),f=p(f,h,l,c,u[d+6],17,-1473231341),c=p(c,f,h,l,u[d+7],22,-45705983),l=p(l,c,f,h,u[d+8],7,1770035416),h=p(h,l,c,f,u[d+9],12,-1958414417),f=p(f,h,l,c,u[d+10],17,-42063),c=p(c,f,h,l,u[d+11],22,-1990404162),l=p(l,c,f,h,u[d+12],7,1804603682),h=p(h,l,c,f,u[d+13],12,-40341101),f=p(f,h,l,c,u[d+14],17,-1502002290),c=p(c,f,h,l,u[d+15],22,1236535329),l=m(l,c,f,h,u[d+1],5,-165796510),h=m(h,l,c,f,u[d+6],9,-1069501632),f=m(f,h,l,c,u[d+11],14,643717713),c=m(c,f,h,l,u[d+0],20,-373897302),l=m(l,c,f,h,u[d+5],5,-701558691),h=m(h,l,c,f,u[d+10],9,38016083),f=m(f,h,l,c,u[d+15],14,-660478335),c=m(c,f,h,l,u[d+4],20,-405537848),l=m(l,c,f,h,u[d+9],5,568446438),h=m(h,l,c,f,u[d+14],9,-1019803690),f=m(f,h,l,c,u[d+3],14,-187363961),c=m(c,f,h,l,u[d+8],20,1163531501),l=m(l,c,f,h,u[d+13],5,-1444681467),h=m(h,l,c,f,u[d+2],9,-51403784),f=m(f,h,l,c,u[d+7],14,1735328473),c=m(c,f,h,l,u[d+12],20,-1926607734),l=g(l,c,f,h,u[d+5],4,-378558),h=g(h,l,c,f,u[d+8],11,-2022574463),f=g(f,h,l,c,u[d+11],16,1839030562),c=g(c,f,h,l,u[d+14],23,-35309556),l=g(l,c,f,h,u[d+1],4,-1530992060),h=g(h,l,c,f,u[d+4],11,1272893353),f=g(f,h,l,c,u[d+7],16,-155497632),c=g(c,f,h,l,u[d+10],23,-1094730640),l=g(l,c,f,h,u[d+13],4,681279174),h=g(h,l,c,f,u[d+0],11,-358537222),f=g(f,h,l,c,u[d+3],16,-722521979),c=g(c,f,h,l,u[d+6],23,76029189),l=g(l,c,f,h,u[d+9],4,-640364487),h=g(h,l,c,f,u[d+12],11,-421815835),f=g(f,h,l,c,u[d+15],16,530742520),c=g(c,f,h,l,u[d+2],23,-995338651),l=v(l,c,f,h,u[d+0],6,-198630844),h=v(h,l,c,f,u[d+7],10,1126891415),f=v(f,h,l,c,u[d+14],15,-1416354905),c=v(c,f,h,l,u[d+5],21,-57434055),l=v(l,c,f,h,u[d+12],6,1700485571),h=v(h,l,c,f,u[d+3],10,-1894986606),f=v(f,h,l,c,u[d+10],15,-1051523),c=v(c,f,h,l,u[d+1],21,-2054922799),l=v(l,c,f,h,u[d+8],6,1873313359),h=v(h,l,c,f,u[d+15],10,-30611744),f=v(f,h,l,c,u[d+6],15,-1560198380),c=v(c,f,h,l,u[d+13],21,1309151649),l=v(l,c,f,h,u[d+4],6,-145523070),h=v(h,l,c,f,u[d+11],10,-1120210379),f=v(f,h,l,c,u[d+2],15,718787259),c=v(c,f,h,l,u[d+9],21,-343485551),l=l+y>>>0,c=c+b>>>0,f=f+x>>>0,h=h+C>>>0}return t.endian([l,c,f,h])};a._ff=function(e,t,n,r,i,o,a){var u=e+(t&n|~t&r)+(i>>>0)+a;return(u<<o|u>>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var u=e+(t&r|n&~r)+(i>>>0)+a;return(u<<o|u>>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var u=e+(t^n^r)+(i>>>0)+a;return(u<<o|u>>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var u=e+(n^(t|~r))+(i>>>0)+a;return(u<<o|u>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}}()},function(e,t){e.exports=/([a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19])([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A])/g},function(e,t){e.exports=/([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]+)([A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A][a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A])/g;
  },function(e,t){e.exports=/[^A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC0-9\xB2\xB3\xB9\xBC-\xBE\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u09F4-\u09F9\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0B72-\u0B77\u0BE6-\u0BF2\u0C66-\u0C6F\u0C78-\u0C7E\u0CE6-\u0CEF\u0D66-\u0D75\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F33\u1040-\u1049\u1090-\u1099\u1369-\u137C\u16EE-\u16F0\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1946-\u194F\u19D0-\u19DA\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\u2070\u2074-\u2079\u2080-\u2089\u2150-\u2182\u2185-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2CFD\u3007\u3021-\u3029\u3038-\u303A\u3192-\u3195\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\uA620-\uA629\uA6E6-\uA6EF\uA830-\uA835\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]+/g},function(e,t,n){var r=n(1);e.exports=function(e,t){return r(e,t,"-")}},function(e,t,n){var r=n(10),i=n(9);e.exports=function(e,t,n){return i(r(e,t,n),t)}},function(e,t,n){var r=n(1);e.exports=function(e,t){return r(e,t,"/")}},function(e,t,n){"use strict";function r(e,t,n,r){this.object=e,this.keysIterator=new o(Object.keys(e),t,n,r)}var i=n(18),o=n(17);e.exports=r,r.prototype.next=function(){var e=this.keysIterator.next();if(e.done)return e;var t=e.value;return new i(this.object[t],!1,t)}},function(e,t,n){"use strict";function r(e,t,n,r){if(e){if(Array.isArray(e))return new i(e,t,n,r);if("function"==typeof e.next)return e;if("function"==typeof e.iterate)return e.iterate(t,n,r);if("object"==typeof e)return new o(e);throw new TypeError("Can't iterate "+e)}return empty}var i=n(17),o=n(71);e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){m&&d&&(m=!1,d.length?p=d.concat(p):g=-1,p.length&&u())}function u(){if(!m){var e=i(a);m=!0;for(var t=p.length;t;){for(d=p,p=[];++g<t;)d&&d[g].run();g=-1,t=p.length}d=null,m=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,f,h=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,p=[],m=!1,g=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new s(e,t)),1!==p.length||m||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){(function(e,n){!function(r){function i(e){throw new RangeError(M[e])}function o(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function a(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(L,".");var i=e.split("."),a=o(i,t).join(".");return r+a}function u(e){for(var t,n,r=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function s(e){return o(e,function(e){var t="";return e>65535&&(e-=65536,t+=I(e>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:A}function c(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,n){var r=0;for(e=n?N(e/_):e>>1,e+=N(e/t);e>O*E>>1;r+=A)e=N(e/O);return N(r+(O+1)*e/(e+k))}function h(e){var t,n,r,o,a,u,c,h,d,p,m=[],g=e.length,v=0,y=F,b=S;for(n=e.lastIndexOf(D),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&i("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(a=v,u=1,c=A;o>=g&&i("invalid-input"),h=l(e.charCodeAt(o++)),(h>=A||h>N((C-v)/u))&&i("overflow"),v+=h*u,d=c<=b?w:c>=b+E?E:c-b,!(h<d);c+=A)p=A-d,u>N(C/p)&&i("overflow"),u*=p;t=m.length+1,b=f(v-a,t,0==a),N(v/t)>C-y&&i("overflow"),y+=N(v/t),v%=t,m.splice(v++,0,y)}return s(m)}function d(e){var t,n,r,o,a,s,l,h,d,p,m,g,v,y,b,x=[];for(e=u(e),g=e.length,t=F,n=0,a=S,s=0;s<g;++s)m=e[s],m<128&&x.push(I(m));for(r=o=x.length,o&&x.push(D);r<g;){for(l=C,s=0;s<g;++s)m=e[s],m>=t&&m<l&&(l=m);for(v=r+1,l-t>N((C-n)/v)&&i("overflow"),n+=(l-t)*v,t=l,s=0;s<g;++s)if(m=e[s],m<t&&++n>C&&i("overflow"),m==t){for(h=n,d=A;p=d<=a?w:d>=a+E?E:d-a,!(h<p);d+=A)b=h-p,y=A-p,x.push(I(c(p+b%y,0))),h=N(b/y);x.push(I(c(h,0))),a=f(n,v,r==o),n=0,++r}++n,++t}return x.join("")}function p(e){return a(e,function(e){return B.test(e)?h(e.slice(4).toLowerCase()):e})}function m(e){return a(e,function(e){return T.test(e)?"xn--"+d(e):e})}var g="object"==typeof t&&t&&!t.nodeType&&t,v="object"==typeof e&&e&&!e.nodeType&&e,y="object"==typeof n&&n;y.global!==y&&y.window!==y&&y.self!==y||(r=y);var b,x,C=2147483647,A=36,w=1,E=26,k=38,_=700,S=72,F=128,D="-",B=/^xn--/,T=/[^\x20-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,M={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=A-w,N=Math.floor,I=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:u,encode:s},decode:h,encode:d,toASCII:m,toUnicode:p},g&&v)if(e.exports==g)v.exports=b;else for(x in b)b.hasOwnProperty(x)&&(g[x]=b[x]);else r.punycode=b}(this)}).call(t,n(21)(e),n(4))},function(e,t){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,i,o){t=t||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var u=/\+/g;e=e.split(t);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var f,h,d,p,m=e[c].replace(u,"%20"),g=m.indexOf(i);g>=0?(f=m.substr(0,g),h=m.substr(g+1)):(f=m,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),n(a,d)?r(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){"use strict";function n(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,a,u){return t=t||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?n(o(e),function(o){var u=encodeURIComponent(r(o))+a;return i(e[o])?n(e[o],function(e){return u+encodeURIComponent(r(e))}).join(t):u+encodeURIComponent(r(e[o]))}).join(t):u?encodeURIComponent(r(u))+a+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";t.decode=t.parse=n(75),t.encode=t.stringify=n(76)},function(e,t,n){var r=n(1),i=n(9);e.exports=function(e,t){return i(r(e,t),t)}},function(e,t,n){var r=n(0);r.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=r.list!==!1;if(i)return void e.execCommand("indentMore");if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}},r.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=r.list!==!1;if(i)return void e.execCommand("indentLess");if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}}},function(e,t,n){"use strict";function r(e){return e=H?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function i(e,t,n){e=e||{};var r=document.createElement("a");return t=void 0==t||t,e.title&&t&&(r.title=a(e.title,e.action,n),H&&(r.title=r.title.replace("Ctrl","⌘"),r.title=r.title.replace("Alt","⌥"))),r.tabIndex=-1,r.className=e.className,r}function o(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function a(e,t,n){var i,o=e;return t&&(i=V(t),n[i]&&(o+=" ("+r(n[i])+")")),o}function u(e,t){t=t||e.getCursor("start");var n=e.getTokenAt(t);if(!n.type)return{};for(var r,i,o=n.type.split(" "),a={},u=0;u<o.length;u++)r=o[u],"strong"===r?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"===r?a.link=!0:"tag"===r?a.image=!0:r.match(/^header(\-[1-6])?$/)&&(a[r.replace("header","heading")]=!0);return a}function s(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(G=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=G;var n=t.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";var r=e.toolbarElements.fullscreen;/active/.test(r.className)?r.className=r.className.replace(/\s*active\s*/g,""):r.className+=" active";var i=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&F(e)}function l(e){M(e,"bold",e.options.blockStyles.bold)}function c(e){M(e,"italic",e.options.blockStyles.italic)}function f(e){M(e,"strikethrough","~~")}function h(e){function t(e){if("object"!=typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&e.styles[2].indexOf("formatting-code-block")!==-1}function n(e){return e.state.base.base||e.state.base}function r(e,r,i,o,a){i=i||e.getLineHandle(r),o=o||e.getTokenAt({line:r,ch:1}),a=a||!!i.text&&e.getTokenAt({line:r,ch:i.text.length-1});var u=o.type?o.type.split(" "):[];return a&&n(a).indentedCode?"indented":u.indexOf("comment")!==-1&&(n(o).fencedChars||n(a).fencedChars||t(i)?"fenced":"single")}function i(e,t,n,r){var i=t.line+1,o=n.line+1,a=t.line!==n.line,u=r+"\n",s="\n"+r;a&&o++,a&&0===n.ch&&(s=r+"\n",o--),B(e,!1,[u,s]),e.setSelection({line:i,ch:0},{line:o,ch:0})}var o,a,u,s=e.options.blockStyles.code,l=e.codemirror,c=l.getCursor("start"),f=l.getCursor("end"),h=l.getTokenAt({line:c.line,ch:c.ch||1}),d=l.getLineHandle(c.line),p=r(l,c.line,d,h);if("single"===p){var m=d.text.slice(0,c.ch).replace("`",""),g=d.text.slice(c.ch).replace("`","");l.replaceRange(m+g,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),c.ch--,c!==f&&f.ch--,l.setSelection(c,f),l.focus()}else if("fenced"===p)if(c.line!==f.line||c.ch!==f.ch){for(o=c.line;o>=0&&(d=l.getLineHandle(o),!t(d));o--);var v,y,b,x,C=l.getTokenAt({line:o,ch:1}),A=n(C).fencedChars;t(l.getLineHandle(c.line))?(v="",y=c.line):t(l.getLineHandle(c.line-1))?(v="",y=c.line-1):(v=A+"\n",y=c.line),t(l.getLineHandle(f.line))?(b="",x=f.line,0===f.ch&&(x+=1)):0!==f.ch&&t(l.getLineHandle(f.line+1))?(b="",x=f.line+1):(b=A+"\n",x=f.line+1),0===f.ch&&(x-=1),l.operation(function(){l.replaceRange(b,{line:x,ch:0},{line:x+(b?0:1),ch:0}),l.replaceRange(v,{line:y,ch:0},{line:y+(v?0:1),ch:0})}),l.setSelection({line:y+(v?1:0),ch:0},{line:x+(v?1:-1),ch:0}),l.focus()}else{var w=c.line;if(t(l.getLineHandle(c.line))&&("fenced"===r(l,c.line+1)?(o=c.line,w=c.line+1):(a=c.line,w=c.line-1)),void 0===o)for(o=w;o>=0&&(d=l.getLineHandle(o),!t(d));o--);if(void 0===a)for(u=l.lineCount(),a=w;a<u&&(d=l.getLineHandle(a),!t(d));a++);l.operation(function(){l.replaceRange("",{line:o,ch:0},{line:o+1,ch:0}),l.replaceRange("",{line:a-1,ch:0},{line:a,ch:0})}),l.focus()}else if("indented"===p){if(c.line!==f.line||c.ch!==f.ch)o=c.line,a=f.line,0===f.ch&&a--;else{for(o=c.line;o>=0;o--)if(d=l.getLineHandle(o),!d.text.match(/^\s*$/)&&"indented"!==r(l,o,d)){o+=1;break}for(u=l.lineCount(),a=c.line;a<u;a++)if(d=l.getLineHandle(a),!d.text.match(/^\s*$/)&&"indented"!==r(l,a,d)){a-=1;break}}var E=l.getLineHandle(a+1),k=E&&l.getTokenAt({line:a+1,ch:E.text.length-1}),_=k&&n(k).indentedCode;_&&l.replaceRange("\n",{line:a+1,ch:0});for(var S=o;S<=a;S++)l.indentLine(S,"subtract");l.focus()}else{var F=c.line===f.line&&c.ch===f.ch&&0===c.ch,D=c.line!==f.line;F||D?i(l,c,f,s):B(l,!1,["`","`"])}}function d(e){var t=e.codemirror;L(t,"quote")}function p(e){var t=e.codemirror;T(t,"smaller")}function m(e){var t=e.codemirror;T(t,"bigger")}function g(e){var t=e.codemirror;T(t,void 0,1)}function v(e){var t=e.codemirror;T(t,void 0,2)}function y(e){var t=e.codemirror;T(t,void 0,3)}function b(e){var t=e.codemirror;L(t,"unordered-list")}function x(e){var t=e.codemirror;L(t,"ordered-list")}function C(e){var t=e.codemirror;O(t)}function A(e){var t=e.codemirror,n=u(t),r=e.options,i="http://";return!(r.promptURLs&&(i=prompt(r.promptTexts.link),!i))&&void B(t,n.link,r.insertTexts.link,i)}function w(e){var t=e.codemirror,n=u(t),r=e.options,i="http://";return!(r.promptURLs&&(i=prompt(r.promptTexts.image),!i))&&void B(t,n.image,r.insertTexts.image,i)}function E(e){var t=e.codemirror,n=u(t),r=e.options;B(t,n.table,r.insertTexts.table)}function k(e){var t=e.codemirror,n=u(t),r=e.options;B(t,n.image,r.insertTexts.horizontalRule)}function _(e){var t=e.codemirror;t.undo(),t.focus()}function S(e){var t=e.codemirror;t.redo(),t.focus()}function F(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements["side-by-side"],o=!1;/editor-preview-active-side/.test(r.className)?(r.className=r.className.replace(/\s*editor-preview-active-side\s*/g,""),i.className=i.className.replace(/\s*active\s*/g,""),n.className=n.className.replace(/\s*CodeMirror-sided\s*/g," ")):(setTimeout(function(){t.getOption("fullScreen")||s(e),r.className+=" editor-preview-active-side"},1),i.className+=" active",n.className+=" CodeMirror-sided",o=!0);var a=n.lastChild;if(/editor-preview-active/.test(a.className)){a.className=a.className.replace(/\s*editor-preview-active\s*/g,"");var u=e.toolbarElements.preview,l=n.previousSibling;u.className=u.className.replace(/\s*active\s*/g,""),l.className=l.className.replace(/\s*disabled-for-preview*/g,"")}var c=function(){r.innerHTML=e.options.previewRender(e.value(),r)};t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=c),o?(r.innerHTML=e.options.previewRender(e.value(),r),t.on("update",t.sideBySideRenderingFunction)):t.off("update",t.sideBySideRenderingFunction),t.refresh()}function D(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.previousSibling,i=!!e.options.toolbar&&e.toolbarElements.preview,o=n.lastChild;o&&/editor-preview/.test(o.className)||(o=document.createElement("div"),o.className="editor-preview",n.appendChild(o)),/editor-preview-active/.test(o.className)?(o.className=o.className.replace(/\s*editor-preview-active\s*/g,""),i&&(i.className=i.className.replace(/\s*active\s*/g,""),r.className=r.className.replace(/\s*disabled-for-preview*/g,""))):(setTimeout(function(){o.className+=" editor-preview-active"},1),i&&(i.className+=" active",r.className+=" disabled-for-preview")),o.innerHTML=e.options.previewRender(e.value(),o);var a=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(a.className)&&F(e)}function B(e,t,n,r){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){var i,o=n[0],a=n[1],u=e.getCursor("start"),s=e.getCursor("end");r&&(a=a.replace("#url#",r)),t?(i=e.getLine(u.line),o=i.slice(0,u.ch),a=i.slice(u.ch),e.replaceRange(o+a,{line:u.line,ch:0})):(i=e.getSelection(),e.replaceSelection(o+i+a),u.ch+=o.length,u!==s&&(s.ch+=o.length)),e.setSelection(u,s),e.focus()}}function T(e,t,n){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)!function(r){var i=e.getLine(r),o=i.search(/[^#]/);i=void 0!==t?o<=0?"bigger"==t?"###### "+i:"# "+i:6==o&&"smaller"==t?i.substr(7):1==o&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:1==n?o<=0?"# "+i:o==n?i.substr(o+1):"# "+i.substr(o+1):2==n?o<=0?"## "+i:o==n?i.substr(o+1):"## "+i.substr(o+1):o<=0?"### "+i:o==n?i.substr(o+1):"### "+i.substr(o+1),e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})}(o);e.focus()}}function L(e,t){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var n=u(e),r=e.getCursor("start"),i=e.getCursor("end"),o={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},s=r.line;s<=i.line;s++)!function(r){var i=e.getLine(r);i=n[t]?i.replace(o[t],"$1"):a[t]+i,e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})}(s);e.focus()}}function M(e,t,n,r){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){r="undefined"==typeof r?n:r;var i,o=e.codemirror,a=u(o),s=n,l=r,c=o.getCursor("start"),f=o.getCursor("end");a[t]?(i=o.getLine(c.line),s=i.slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),o.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==f&&(f.ch-=2)):"italic"==t&&(c.ch-=1,c!==f&&(f.ch-=1))):(i=o.getSelection(),"bold"==t?(i=i.split("**").join(""),i=i.split("__").join("")):"italic"==t?(i=i.split("*").join(""),i=i.split("_").join("")):"strikethrough"==t&&(i=i.split("~~").join("")),o.replaceSelection(s+i+l),c.ch+=n.length,f.ch=c.ch+i.length),o.setSelection(c,f),o.focus()}}function O(e){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className))for(var t,n=e.getCursor("start"),r=e.getCursor("end"),i=n.line;i<=r.line;i++)t=e.getLine(i),t=t.replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}function N(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"==typeof t[n]&&t[n].constructor===Object?e[n]=N(e[n]||{},t[n]):e[n]=t[n]);return e}function I(e){for(var t=1;t<arguments.length;t++)e=N(e,arguments[t]);return e}function j(e){var t=/[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=e.match(t),r=0;if(null===n)return r;for(var i=0;i<n.length;i++)r+=n[i].charCodeAt(0)>=19968?n[i].length:1;return r}function R(e){e=e||{},e.parent=this;var t=!0;if(e.autoDownloadFontAwesome===!1&&(t=!1),e.autoDownloadFontAwesome!==!0)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar){e.toolbar=[];for(var o in Y)Y.hasOwnProperty(o)&&(o.indexOf("separator-")!=-1&&e.toolbar.push("|"),(Y[o].default===!0||e.showIcons&&e.showIcons.constructor===Array&&e.showIcons.indexOf(o)!=-1)&&e.toolbar.push(o))}e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=I({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=I({},Q,e.insertTexts||{}),e.promptTexts=K,e.blockStyles=I({},X,e.blockStyles||{}),e.shortcuts=I({},q,e.shortcuts||{}),void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&this.options.autosave.foundSavedValue===!0||this.value(e.initialValue)}function P(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}var $=n(0);n(47),n(79),n(45),n(14),n(13),n(46),n(48),n(49),n(15);var z=n(44),W=n(16),H=/Mac/.test(navigator.platform),U={toggleBold:l,toggleItalic:c,drawLink:A,toggleHeadingSmaller:p,toggleHeadingBigger:m,drawImage:w,toggleBlockquote:d,toggleOrderedList:x,toggleUnorderedList:b,toggleCodeBlock:h,togglePreview:D,toggleStrikethrough:f,toggleHeading1:g,toggleHeading2:v,toggleHeading3:y,cleanBlock:C,drawTable:E,drawHorizontalRule:k,undo:_,redo:S,toggleSideBySide:F,toggleFullScreen:s},q={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},V=function(e){for(var t in U)if(U[t]===e)return t;return null},Z=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e},G="",Y={bold:{name:"bold",action:l,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:c,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:f,className:"fa fa-strikethrough",title:"Strikethrough"},heading:{name:"heading",action:p,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:p,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:m,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:g,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:v,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:y,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:h,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:d,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:b,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:x,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:C,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:A,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:w,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:E,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:k,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:D,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:F,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:s,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:_,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:S,className:"fa fa-repeat no-disable",title:"Redo"}},Q={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text     | Text     | Text     |\n\n"],horizontalRule:["","\n\n-----\n\n"]},K={link:"URL for the link:",image:"URL of the image:"},X={bold:"**",code:"```",italic:"*"};R.prototype.markdown=function(e){if(W){var t={};return this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),W.setOptions(t),W(e)}},R.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t=this.options,n=this,i={};for(var o in t.shortcuts)null!==t.shortcuts[o]&&null!==U[o]&&!function(e){i[r(t.shortcuts[e])]=function(){U[e](n)}}(o);i.Enter="newlineAndIndentContinueMarkdownList",i.Tab="tabAndIndentMarkdownList",i["Shift-Tab"]="shiftTabAndUnindentMarkdownList",i.Esc=function(e){e.getOption("fullScreen")&&s(n)},document.addEventListener("keydown",function(e){e=e||window.event,27==e.keyCode&&n.codemirror.getOption("fullScreen")&&s(n)},!1);var a,u;if(t.spellChecker!==!1?(a="spell-checker",u=t.parsingConfig,u.name="gfm",u.gitHubSpice=!1,z({codeMirrorInstance:$})):(a=t.parsingConfig,a.name="gfm",a.gitHubSpice=!1),this.codemirror=$.fromTextArea(e,{mode:a,backdrop:u,theme:"paper",tabSize:void 0!=t.tabSize?t.tabSize:2,indentUnit:void 0!=t.tabSize?t.tabSize:2,
  indentWithTabs:t.indentWithTabs!==!1,lineNumbers:!1,autofocus:t.autofocus===!0,extraKeys:i,lineWrapping:t.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:t.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0==t.styleSelectedText||t.styleSelectedText}),t.forceSync===!0){var l=this.codemirror;l.on("change",function(){l.save()})}this.gui={},t.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),t.status!==!1&&(this.gui.statusbar=this.createStatusbar()),void 0!=t.autosave&&t.autosave.enabled===!0&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var c=this.codemirror;setTimeout(function(){c.refresh()}.bind(c),0)}},R.prototype.autosave=function(){if(P()){var e=this;if(void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&void 0!=e.element.form&&e.element.form.addEventListener("submit",function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)}),this.options.autosave.loaded!==!0&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&void 0!=t&&""!=t){var n=new Date,r=n.getHours(),i=n.getMinutes(),o="am",a=r;a>=12&&(a=r-12,o="pm"),0==a&&(a=12),i=i<10?"0"+i:i,t.innerHTML="Autosaved: "+a+":"+i+" "+o}this.autosaveTimeoutId=setTimeout(function(){e.autosave()},this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},R.prototype.clearAutosavedValue=function(){if(P()){if(void 0==this.options.autosave||void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},R.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;n&&/editor-preview-side/.test(n.className)||(n=document.createElement("div"),n.className="editor-preview-side",t.parentNode.insertBefore(n,t.nextSibling));var r=!1,i=!1;return e.on("scroll",function(e){if(r)return void(r=!1);i=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,o=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*o;n.scrollTop=a}),n.onscroll=function(){if(i)return void(i=!1);r=!0;var t=n.scrollHeight-n.clientHeight,o=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*o;e.scrollTo(0,a)},n},R.prototype.createToolbar=function(e){if(e=e||this.options.toolbar,e&&0!==e.length){var t;for(t=0;t<e.length;t++)void 0!=Y[e[t]]&&(e[t]=Y[e[t]]);var n=document.createElement("div");n.className="editor-toolbar";var r=this,a={};for(r.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||r.options.toolbarGuideIcon!==!1)&&!(r.options.hideIcons&&r.options.hideIcons.indexOf(e[t].name)!=-1||("fullscreen"==e[t].name||"side-by-side"==e[t].name)&&Z())){if("|"===e[t]){for(var s=!1,l=t+1;l<e.length;l++)"|"===e[l]||r.options.hideIcons&&r.options.hideIcons.indexOf(e[l].name)!=-1||(s=!0);if(!s)continue}!function(e){var t;t="|"===e?o():i(e,r.options.toolbarTips,r.options.shortcuts),e.action&&("function"==typeof e.action?t.onclick=function(t){t.preventDefault(),e.action(r)}:"string"==typeof e.action&&(t.href=e.action,t.target="_blank")),a[e.name||e]=t,n.appendChild(t)}(e[t])}r.toolbarElements=a;var c=this.codemirror;c.on("cursorActivity",function(){var e=u(c);for(var t in a)!function(t){var n=a[t];e[t]?n.className+=" active":"fullscreen"!=t&&"side-by-side"!=t&&(n.className=n.className.replace(/\s*active\s*/g,""))}(t)});var f=c.getWrapperElement();return f.parentNode.insertBefore(n,f),n}},R.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,n=this.codemirror;if(e&&0!==e.length){var r,i,o,a=[];for(r=0;r<e.length;r++)if(i=void 0,o=void 0,"object"==typeof e[r])a.push({className:e[r].className,defaultValue:e[r].defaultValue,onUpdate:e[r].onUpdate});else{var u=e[r];"words"===u?(o=function(e){e.innerHTML=j(n.getValue())},i=function(e){e.innerHTML=j(n.getValue())}):"lines"===u?(o=function(e){e.innerHTML=n.lineCount()},i=function(e){e.innerHTML=n.lineCount()}):"cursor"===u?(o=function(e){e.innerHTML="0:0"},i=function(e){var t=n.getCursor();e.innerHTML=t.line+":"+t.ch}):"autosave"===u&&(o=function(e){void 0!=t.autosave&&t.autosave.enabled===!0&&e.setAttribute("id","autosaved")}),a.push({className:u,defaultValue:o,onUpdate:i})}var s=document.createElement("div");for(s.className="editor-statusbar",r=0;r<a.length;r++){var l=a[r],c=document.createElement("span");c.className=l.className,"function"==typeof l.defaultValue&&l.defaultValue(c),"function"==typeof l.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(c,l)),s.appendChild(c)}var f=this.codemirror.getWrapperElement();return f.parentNode.insertBefore(s,f.nextSibling),s}},R.prototype.value=function(e){return void 0===e?this.codemirror.getValue():(this.codemirror.getDoc().setValue(e),this)},R.toggleBold=l,R.toggleItalic=c,R.toggleStrikethrough=f,R.toggleBlockquote=d,R.toggleHeadingSmaller=p,R.toggleHeadingBigger=m,R.toggleHeading1=g,R.toggleHeading2=v,R.toggleHeading3=y,R.toggleCodeBlock=h,R.toggleUnorderedList=b,R.toggleOrderedList=x,R.cleanBlock=C,R.drawLink=A,R.drawImage=w,R.drawTable=E,R.drawHorizontalRule=k,R.undo=_,R.redo=S,R.togglePreview=D,R.toggleSideBySide=F,R.toggleFullScreen=s,R.prototype.toggleBold=function(){l(this)},R.prototype.toggleItalic=function(){c(this)},R.prototype.toggleStrikethrough=function(){f(this)},R.prototype.toggleBlockquote=function(){d(this)},R.prototype.toggleHeadingSmaller=function(){p(this)},R.prototype.toggleHeadingBigger=function(){m(this)},R.prototype.toggleHeading1=function(){g(this)},R.prototype.toggleHeading2=function(){v(this)},R.prototype.toggleHeading3=function(){y(this)},R.prototype.toggleCodeBlock=function(){h(this)},R.prototype.toggleUnorderedList=function(){b(this)},R.prototype.toggleOrderedList=function(){x(this)},R.prototype.cleanBlock=function(){C(this)},R.prototype.drawLink=function(){A(this)},R.prototype.drawImage=function(){w(this)},R.prototype.drawTable=function(){E(this)},R.prototype.drawHorizontalRule=function(){k(this)},R.prototype.undo=function(){_(this)},R.prototype.redo=function(){S(this)},R.prototype.togglePreview=function(){D(this)},R.prototype.toggleSideBySide=function(){F(this)},R.prototype.toggleFullScreen=function(){s(this)},R.prototype.isPreviewActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.lastChild;return/editor-preview-active/.test(n.className)},R.prototype.isSideBySideActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;return/editor-preview-active-side/.test(n.className)},R.prototype.isFullscreenActive=function(){var e=this.codemirror;return e.getOption("fullScreen")},R.prototype.getState=function(){var e=this.codemirror;return u(e)},R.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement();t.parentNode&&(this.gui.toolbar&&t.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&t.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&t.parentNode.removeChild(this.gui.sideBySide)),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},e.exports=R},function(e,t,n){/**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @license MIT
   */
  !function(t){"use strict";"undefined"!=typeof e&&"undefined"!=typeof e.exports?e.exports=t():"undefined"!=typeof Package?Sortable=t():window.Sortable=t()}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=v({},t),e[j]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var r in n)!(r in t)&&(t[r]=n[r]);Z(t);for(var o in this)"_"===o.charAt(0)&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&z,i(e,"mousedown",this._onTapStart),i(e,"touchstart",this._onTapStart),this.nativeDraggable&&(i(e,"dragover",this),i(e,"dragenter",this)),q.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){C&&C.state!==e&&(u(C,"display",e?"none":""),!e&&C.state&&A.insertBefore(C,y),C.state=e)}function n(e,t,n){if(e){n=n||P,t=t.split(".");var r=t.shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");do if(">*"===r&&e.parentNode===n||(""===r||e.nodeName.toUpperCase()==r)&&(!t.length||((" "+e.className+" ").match(i)||[]).length==t.length))return e;while(e!==n&&(e=e.parentNode))}return null}function r(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function i(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}function a(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(I," ")}}function u(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return P.defaultView&&P.defaultView.getComputedStyle?n=P.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function s(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function l(e,t,n,r,i,o,a){var u=P.createEvent("Event"),s=(e||t[j]).options,l="on"+n.charAt(0).toUpperCase()+n.substr(1);u.initEvent(n,!0,!0),u.to=t,u.from=i||t,u.item=r||t,u.clone=C,u.oldIndex=o,u.newIndex=a,t.dispatchEvent(u),s[l]&&s[l].call(e,u)}function c(e,t,n,r,i,o){var a,u,s=e[j],l=s.options.onMove;return a=P.createEvent("Event"),a.initEvent("move",!0,!0),a.to=t,a.from=e,a.dragged=n,a.draggedRect=r,a.related=i||t,a.relatedRect=o||t.getBoundingClientRect(),e.dispatchEvent(a),l&&(u=l.call(s,a)),u}function f(e){e.draggable=!1}function h(){H=!1}function d(e,t){var n=e.lastElementChild,r=n.getBoundingClientRect();return(t.clientY-(r.top+r.height)>5||t.clientX-(r.right+r.width)>5)&&n}function p(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function m(e){var t=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function g(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function v(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var y,b,x,C,A,w,E,k,_,S,F,D,B,T,L,M,O,N={},I=/\s+/g,j="Sortable"+(new Date).getTime(),R=window,P=R.document,$=R.parseInt,z=!!("draggable"in P.createElement("div")),W=function(e){return e=P.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),H=!1,U=Math.abs,q=([].slice,[]),V=g(function(e,t,n){if(n&&t.scroll){var r,i,o,a,u=t.scrollSensitivity,s=t.scrollSpeed,l=e.clientX,c=e.clientY,f=window.innerWidth,h=window.innerHeight;if(k!==n&&(E=t.scroll,k=n,E===!0)){E=n;do if(E.offsetWidth<E.scrollWidth||E.offsetHeight<E.scrollHeight)break;while(E=E.parentNode)}E&&(r=E,i=E.getBoundingClientRect(),o=(U(i.right-l)<=u)-(U(i.left-l)<=u),a=(U(i.bottom-c)<=u)-(U(i.top-c)<=u)),o||a||(o=(f-l<=u)-(l<=u),a=(h-c<=u)-(c<=u),(o||a)&&(r=R)),N.vx===o&&N.vy===a&&N.el===r||(N.el=r,N.vx=o,N.vy=a,clearInterval(N.pid),r&&(N.pid=setInterval(function(){r===R?R.scrollTo(R.pageXOffset+o*s,R.pageYOffset+a*s):(a&&(r.scrollTop+=a*s),o&&(r.scrollLeft+=o*s))},24)))}},30),Z=function(e){var t=e.group;t&&"object"==typeof t||(t=e.group={name:t}),["pull","put"].forEach(function(e){e in t||(t[e]=!0)}),e.groups=" "+t.name+(t.put.join?" "+t.put.join(" "):"")+" "};return e.prototype={constructor:e,_onTapStart:function(e){var t=this,r=this.el,i=this.options,o=e.type,a=e.touches&&e.touches[0],u=(a||e).target,s=u,c=i.filter;if(!("mousedown"===o&&0!==e.button||i.disabled)&&(u=n(u,i.draggable,r))){if(D=m(u),"function"==typeof c){if(c.call(this,e,u,this))return l(t,s,"filter",u,r,D),void e.preventDefault()}else if(c&&(c=c.split(",").some(function(e){if(e=n(s,e.trim(),r))return l(t,e,"filter",u,r,D),!0})))return void e.preventDefault();i.handle&&!n(s,i.handle,r)||this._prepareDragStart(e,a,u)}},_prepareDragStart:function(e,t,n){var r,o=this,u=o.el,l=o.options,c=u.ownerDocument;n&&!y&&n.parentNode===u&&(L=e,A=u,y=n,b=y.parentNode,w=y.nextSibling,T=l.group,r=function(){o._disableDelayedDrag(),y.draggable=!0,a(y,o.options.chosenClass,!0),o._triggerDragStart(t)},l.ignore.split(",").forEach(function(e){s(y,e.trim(),f)}),i(c,"mouseup",o._onDrop),i(c,"touchend",o._onDrop),i(c,"touchcancel",o._onDrop),l.delay?(i(c,"mouseup",o._disableDelayedDrag),i(c,"touchend",o._disableDelayedDrag),i(c,"touchcancel",o._disableDelayedDrag),i(c,"mousemove",o._disableDelayedDrag),i(c,"touchmove",o._disableDelayedDrag),o._dragStartTimer=setTimeout(r,l.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),o(e,"mouseup",this._disableDelayedDrag),o(e,"touchend",this._disableDelayedDrag),o(e,"touchcancel",this._disableDelayedDrag),o(e,"mousemove",this._disableDelayedDrag),o(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(L={target:y,clientX:e.clientX,clientY:e.clientY},this._onDragStart(L,"touch")):this.nativeDraggable?(i(y,"dragend",this),i(A,"dragstart",this._onDragStart)):this._onDragStart(L,!0);try{P.selection?P.selection.empty():window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){A&&y&&(a(y,this.options.ghostClass,!0),e.active=this,l(this,A,"start",y,A,D))},_emulateDragOver:function(){if(M){if(this._lastX===M.clientX&&this._lastY===M.clientY)return;this._lastX=M.clientX,this._lastY=M.clientY,W||u(x,"display","none");var e=P.elementFromPoint(M.clientX,M.clientY),t=e,n=" "+this.options.group.name,r=q.length;if(t)do{if(t[j]&&t[j].options.groups.indexOf(n)>-1){for(;r--;)q[r]({clientX:M.clientX,clientY:M.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);W||u(x,"display","")}},_onTouchMove:function(t){if(L){e.active||this._dragStarted(),this._appendGhost();var n=t.touches?t.touches[0]:t,r=n.clientX-L.clientX,i=n.clientY-L.clientY,o=t.touches?"translate3d("+r+"px,"+i+"px,0)":"translate("+r+"px,"+i+"px)";O=!0,M=n,u(x,"webkitTransform",o),u(x,"mozTransform",o),u(x,"msTransform",o),u(x,"transform",o),t.preventDefault()}},_appendGhost:function(){if(!x){var e,t=y.getBoundingClientRect(),n=u(y),r=this.options;x=y.cloneNode(!0),a(x,r.ghostClass,!1),a(x,r.fallbackClass,!0),u(x,"top",t.top-$(n.marginTop,10)),u(x,"left",t.left-$(n.marginLeft,10)),u(x,"width",t.width),u(x,"height",t.height),u(x,"opacity","0.8"),u(x,"position","fixed"),u(x,"zIndex","100000"),u(x,"pointerEvents","none"),r.fallbackOnBody&&P.body.appendChild(x)||A.appendChild(x),e=x.getBoundingClientRect(),u(x,"width",2*t.width-e.width),u(x,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,r=this.options;this._offUpEvents(),"clone"==T.pull&&(C=y.cloneNode(!0),u(C,"display","none"),A.insertBefore(C,y)),t?("touch"===t?(i(P,"touchmove",this._onTouchMove),i(P,"touchend",this._onDrop),i(P,"touchcancel",this._onDrop)):(i(P,"mousemove",this._onTouchMove),i(P,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",r.setData&&r.setData.call(this,n,y)),i(P,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(e){var r,i,o,a=this.el,s=this.options,l=s.group,f=l.put,p=T===l,m=s.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),!s.dragoverBubble&&e.stopPropagation()),O=!0,T&&!s.disabled&&(p?m||(o=!A.contains(y)):T.pull&&f&&(T.name===l.name||f.indexOf&&~f.indexOf(T.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(V(e,s,this.el),H)return;if(r=n(e.target,s.draggable,a),i=y.getBoundingClientRect(),o)return t(!0),void(C||w?A.insertBefore(y,C||w):m||A.appendChild(y));if(0===a.children.length||a.children[0]===x||a===e.target&&(r=d(a,e))){if(r){if(r.animated)return;v=r.getBoundingClientRect()}t(p),c(A,a,y,i,r,v)!==!1&&(y.contains(a)||(a.appendChild(y),b=a),this._animate(i,y),r&&this._animate(v,r))}else if(r&&!r.animated&&r!==y&&void 0!==r.parentNode[j]){_!==r&&(_=r,S=u(r),F=u(r.parentNode));var g,v=r.getBoundingClientRect(),E=v.right-v.left,k=v.bottom-v.top,D=/left|right|inline/.test(S.cssFloat+S.display)||"flex"==F.display&&0===F["flex-direction"].indexOf("row"),B=r.offsetWidth>y.offsetWidth,L=r.offsetHeight>y.offsetHeight,M=(D?(e.clientX-v.left)/E:(e.clientY-v.top)/k)>.5,N=r.nextElementSibling,I=c(A,a,y,i,r,v);if(I!==!1){if(H=!0,setTimeout(h,30),t(p),1===I||I===-1)g=1===I;else if(D){var R=y.offsetTop,P=r.offsetTop;g=R===P?r.previousElementSibling===y&&!B||M&&B:P>R}else g=N!==y&&!L||M&&L;y.contains(a)||(g&&!N?a.appendChild(y):r.parentNode.insertBefore(y,g?N:r)),b=y.parentNode,this._animate(i,y),this._animate(v,r)}}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();u(t,"transition","none"),u(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),t.offsetWidth,u(t,"transition","all "+n+"ms"),u(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){u(t,"transition",""),u(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;o(P,"touchmove",this._onTouchMove),o(e,"mouseup",this._onDrop),o(e,"touchend",this._onDrop),o(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,r=this.options;clearInterval(this._loopId),clearInterval(N.pid),clearTimeout(this._dragStartTimer),o(P,"mousemove",this._onTouchMove),this.nativeDraggable&&(o(P,"drop",this),o(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(O&&(t.preventDefault(),!r.dropBubble&&t.stopPropagation()),x&&x.parentNode.removeChild(x),y&&(this.nativeDraggable&&o(y,"dragend",this),f(y),a(y,this.options.ghostClass,!1),a(y,this.options.chosenClass,!1),A!==b?(B=m(y),B>=0&&(l(null,b,"sort",y,A,D,B),l(this,A,"sort",y,A,D,B),l(null,b,"add",y,A,D,B),l(this,A,"remove",y,A,D,B))):(C&&C.parentNode.removeChild(C),y.nextSibling!==w&&(B=m(y),B>=0&&(l(this,A,"update",y,A,D,B),l(this,A,"sort",y,A,D,B)))),e.active&&(null!==B&&B!==-1||(B=D),l(this,A,"end",y,A,D,B),this.save())),A=y=b=x=w=C=E=k=L=M=O=B=_=S=T=e.active=null)},handleEvent:function(e){var t=e.type;"dragover"===t||"dragenter"===t?y&&(this._onDragOver(e),r(e)):"drop"!==t&&"dragend"!==t||this._onDrop(e)},toArray:function(){for(var e,t=[],r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)e=r[i],n(e,a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||p(e));return t},sort:function(e){var t={},r=this.el;this.toArray().forEach(function(e,i){var o=r.children[i];n(o,this.options.draggable,r)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(r.removeChild(t[e]),r.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;return void 0===t?n[e]:(n[e]=t,void("group"===e&&Z(n)))},destroy:function(){var e=this.el;e[j]=null,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),q.splice(q.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:i,off:o,css:u,find:s,is:function(e,t){return!!n(e,t,e)},extend:v,throttle:g,closest:n,toggleClass:a,index:m},e.create=function(t,n){return new e(t,n)},e.version="1.4.2",e})},function(e,t,n){var r=n(2),i=n(5);e.exports=function(e,t){if(null==e)return"";for(var n="",o=0;o<e.length;o++){var a=e[o],u=r(a,t);n+=u===a?i(a,t):u}return n}},function(e,t,n){var r=n(1),i=n(2);e.exports=function(e,t){return r(e,t).replace(/^.| ./g,function(e){return i(e,t)})}},function(e,t,n){"use strict";function r(e){return b.indexOf(e.nodeName.toLowerCase())!==-1}function i(e){return x.indexOf(e.nodeName.toLowerCase())!==-1}function o(e){var t=(new v).parseFromString(e,"text/html");return y(t.documentElement,r),t}function a(e){for(var t,n,r,i=[e],o=[];i.length>0;)for(t=i.shift(),o.push(t),n=t.childNodes,r=0;r<n.length;r++)1===n[r].nodeType&&i.push(n[r]);return o.shift(),o}function u(e){for(var t="",n=0;n<e.childNodes.length;n++)if(1===e.childNodes[n].nodeType)t+=e.childNodes[n]._replacement;else{if(3!==e.childNodes[n].nodeType)continue;t+=e.childNodes[n].data}return t}function s(e,t){return e.cloneNode(!1).outerHTML.replace("><",">"+t+"<")}function l(e,t){if("string"==typeof t)return t===e.nodeName.toLowerCase();if(Array.isArray(t))return t.indexOf(e.nodeName.toLowerCase())!==-1;if("function"==typeof t)return t.call(d,e);throw new TypeError("`filter` needs to be a string, array, or function")}function c(e,t){var n,i,o;return"left"===e?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(3===n.nodeType?o=i.test(n.nodeValue):1!==n.nodeType||r(n)||(o=i.test(n.textContent))),o}function f(e,t){var n="",i="";if(!r(e)){var o=/^[ \r\n\t]/.test(t),a=/[ \r\n\t]$/.test(t);o&&!c("left",e)&&(n=" "),a&&!c("right",e)&&(i=" ")}return{leading:n,trailing:i}}function h(e){var t,n=u(e);if(!i(e)&&!/A|TH|TD/.test(e.nodeName)&&/^\s*$/i.test(n))return void(e._replacement="");for(var r=0;r<p.length;r++){var o=p[r];if(l(e,o.filter)){if("function"!=typeof o.replacement)throw new TypeError("`replacement` needs to be a function that returns a string");var a=f(e,n);(a.leading||a.trailing)&&(n=n.trim()),t=a.leading+o.replacement.call(d,n,e)+a.trailing;break}}e._replacement=t}var d,p,m=n(87),g=n(85),v=n(86),y=n(51),b=["address","article","aside","audio","blockquote","body","canvas","center","dd","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frameset","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","isindex","li","main","menu","nav","noframes","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul"],x=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];d=function(e,t){if(t=t||{},"string"!=typeof e)throw new TypeError(e+" is not a string");if(""===e)return"";e=e.replace(/(\d+)\. /g,"$1\\. ");var n,r=o(e).body,i=a(r);p=m.slice(0),t.gfm&&(p=g.concat(p)),t.converters&&(p=t.converters.concat(p));for(var s=i.length-1;s>=0;s--)h(i[s]);return n=u(r),n.replace(/^[\t\r\n]+|[\t\r\n\s]+$/g,"").replace(/\n\s+\n/g,"\n\n").replace(/\n{3,}/g,"\n\n")},d.isBlock=r,d.isVoid=i,d.outer=s,e.exports=d},function(e,t){"use strict";function n(e,t){var n=Array.prototype.indexOf.call(t.parentNode.childNodes,t),r=" ";return 0===n&&(r="| "),r+e+" |"}var r=/highlight highlight-(\S+)/;e.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,t){return(t.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(e,t){return n(e,t)}},{filter:"tr",replacement:function(e,t){var r="",i={left:":--",right:"--:",center:":-:"};if("THEAD"===t.parentNode.nodeName)for(var o=0;o<t.childNodes.length;o++){var a=t.childNodes[o].attributes.align,u="---";a&&(u=i[a.value]||u),r+=n(u,t.childNodes[o])}return"\n"+e+(r?"\n"+r:"")}},{filter:"table",replacement:function(e){return"\n\n"+e+"\n\n"}},{filter:["thead","tbody","tfoot"],replacement:function(e){return e}},{filter:function(e){return"PRE"===e.nodeName&&e.firstChild&&"CODE"===e.firstChild.nodeName},replacement:function(e,t){return"\n\n```\n"+t.firstChild.textContent+"\n```\n\n"}},{filter:function(e){return"PRE"===e.nodeName&&"DIV"===e.parentNode.nodeName&&r.test(e.parentNode.className)},replacement:function(e,t){var n=t.parentNode.className.match(r)[1];return"\n\n```"+n+"\n"+t.textContent+"\n```\n\n"}},{filter:function(e){return"DIV"===e.nodeName&&r.test(e.className)},replacement:function(e){return"\n\n"+e+"\n\n"}}]},function(e,t,n){function r(){var e=a.DOMParser,t=!1;try{(new e).parseFromString("","text/html")&&(t=!0)}catch(e){}return t}function i(){var e=function(){};if("undefined"==typeof document){var t=n(99);e.prototype.parseFromString=function(e){return t.jsdom(e,{features:{FetchExternalResources:[],ProcessExternalResources:!1}})}}else o()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject("htmlfile");return t.designMode="on",t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument("");return t.open(),t.write(e),t.close(),t};return e}function o(){var e=!1;try{document.implementation.createHTMLDocument("").open()}catch(t){window.ActiveXObject&&(e=!0)}return e}var a="undefined"!=typeof window?window:this;e.exports=r()?a.DOMParser:i()},function(e,t){"use strict";e.exports=[{filter:"p",replacement:function(e){return"\n\n"+e+"\n\n"}},{filter:"br",replacement:function(){return"  \n"}},{filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t){for(var n=t.nodeName.charAt(1),r="",i=0;i<n;i++)r+="#";return"\n\n"+r+" "+e+"\n\n"}},{filter:"hr",replacement:function(){return"\n\n* * *\n\n"}},{filter:["em","i"],replacement:function(e){return"_"+e+"_"}},{filter:["strong","b"],replacement:function(e){return"**"+e+"**"}},{filter:function(e){var t=e.previousSibling||e.nextSibling,n="PRE"===e.parentNode.nodeName&&!t;return"CODE"===e.nodeName&&!n},replacement:function(e){return"`"+e+"`"}},{filter:function(e){return"A"===e.nodeName&&e.getAttribute("href")},replacement:function(e,t){var n=t.title?' "'+t.title+'"':"";return"["+e+"]("+t.getAttribute("href")+n+")"}},{filter:"img",replacement:function(e,t){var n=t.alt||"",r=t.getAttribute("src")||"",i=t.title||"",o=i?' "'+i+'"':"";return r?"!["+n+"]("+r+o+")":""}},{filter:function(e){return"PRE"===e.nodeName&&"CODE"===e.firstChild.nodeName},replacement:function(e,t){return"\n\n    "+t.firstChild.textContent.replace(/\n/g,"\n    ")+"\n\n"}},{filter:"blockquote",replacement:function(e){return e=e.trim(),e=e.replace(/\n{3,}/g,"\n\n"),e=e.replace(/^/gm,"> "),"\n\n"+e+"\n\n"}},{filter:"li",replacement:function(e,t){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n    ");var n="*   ",r=t.parentNode,i=Array.prototype.indexOf.call(r.children,t)+1;return n=/ol/i.test(r.nodeName)?i+".  ":"*   ",n+e}},{filter:["ul","ol"],replacement:function(e,t){for(var n=[],r=0;r<t.childNodes.length;r++)n.push(t.childNodes[r]._replacement);return/li/i.test(t.parentNode.nodeName)?"\n"+n.join("\n"):"\n\n"+n.join("\n")+"\n\n"}},{filter:function(e){return this.isBlock(e)},replacement:function(e,t){return"\n\n"+this.outer(t,e)+"\n\n"}},{filter:function(){return!0},replacement:function(e,t){return this.outer(t,e)}}]},function(e,t,n){(function(t,r){var i;!function(){"use strict";i=function(e,n,r,i){function o(e,t){var n=p._readFile(e,null,i.asyncLoad);i.asyncLoad?n.then(function(e){t(e)}):t(n)}function a(e){n=e,r&&s()}function u(e){r=e,n&&s()}function s(){for(p.rules=p._parseAFF(n),p.compoundRuleCodes={},c=0,h=p.compoundRules.length;c<h;c++){var e=p.compoundRules[c];for(f=0,d=e.length;f<d;f++)p.compoundRuleCodes[e[f]]=[]}"ONLYINCOMPOUND"in p.flags&&(p.compoundRuleCodes[p.flags.ONLYINCOMPOUND]=[]),p.dictionaryTable=p._parseDIC(r);for(c in p.compoundRuleCodes)0===p.compoundRuleCodes[c].length&&delete p.compoundRuleCodes[c];for(c=0,h=p.compoundRules.length;c<h;c++){var t=p.compoundRules[c],o="";for(f=0,d=t.length;f<d;f++){var a=t[f];o+=a in p.compoundRuleCodes?"("+p.compoundRuleCodes[a].join("|")+")":a}p.compoundRules[c]=new RegExp(o,"i")}p.loaded=!0,i.asyncLoad&&i.loadedCallback&&i.loadedCallback(p)}i=i||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=i.flags||{},this.memoized={},this.loaded=!1;var l,c,f,h,d,p=this;return e&&(p.dictionary=e,n&&r?s():"undefined"!=typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(l=i.dictionaryPath?i.dictionaryPath:"typo/dictionaries",n||o(chrome.extension.getURL(l+"/"+e+"/"+e+".aff"),a),r||o(chrome.extension.getURL(l+"/"+e+"/"+e+".dic"),u)):(l=i.dictionaryPath?i.dictionaryPath:t+"/dictionaries",n||o(l+"/"+e+"/"+e+".aff",a),r||o(l+"/"+e+"/"+e+".dic",u))),this},i.prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,i){if(t=t||"utf8","undefined"!=typeof XMLHttpRequest){var o,a=new XMLHttpRequest;return a.open("GET",e,i),i&&(o=new Promise(function(e,t){a.onload=function(){200===a.status?e(a.responseText):t(a.statusText)},a.onerror=function(){t(a.statusText)}})),a.overrideMimeType&&a.overrideMimeType("text/plain; charset="+t),a.send(null),i?o:a.responseText}var u=n(100);try{if(u.existsSync(e)){var s=u.statSync(e),l=u.openSync(e,"r"),c=new r(s.size);return u.readSync(l,c,0,c.length,null),c.toString(t,0,c.length)}console.log("Path "+e+" does not exist.")}catch(e){return console.log(e),""}},_parseAFF:function(e){var t,n,r,i,o,a,u,s,l={};e=this._removeAffixComments(e);var c=e.split("\n");for(o=0,u=c.length;o<u;o++){t=c[o];var f=t.split(/\s+/),h=f[0];if("PFX"==h||"SFX"==h){var d=f[1],p=f[2];r=parseInt(f[3],10);var m=[];for(a=o+1,s=o+1+r;a<s;a++){n=c[a],i=n.split(/\s+/);var g=i[2],v=i[3].split("/"),y=v[0];"0"===y&&(y="");var b=this.parseRuleCodes(v[1]),x=i[4],C={};C.add=y,b.length>0&&(C.continuationClasses=b),"."!==x&&("SFX"===h?C.match=new RegExp(x+"$"):C.match=new RegExp("^"+x)),"0"!=g&&("SFX"===h?C.remove=new RegExp(g+"$"):C.remove=g),m.push(C)}l[d]={type:h,combineable:"Y"==p,entries:m},o+=r}else if("COMPOUNDRULE"===h){for(r=parseInt(f[1],10),a=o+1,s=o+1+r;a<s;a++)t=c[a],i=t.split(/\s+/),this.compoundRules.push(i[1]);o+=r}else"REP"===h?(i=t.split(/\s+/),3===i.length&&this.replacementTable.push([i[1],i[2]])):this.flags[h]=f[1]}return l},_removeAffixComments:function(e){return e=e.replace(/#.*$/gm,""),e=e.replace(/^\s\s*/m,"").replace(/\s\s*$/m,""),e=e.replace(/\n{2,}/g,"\n"),e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},_parseDIC:function(e){function t(e,t){r.hasOwnProperty(e)||(r[e]=null),t.length>0&&(null===r[e]&&(r[e]=[]),r[e].push(t))}e=this._removeDicComments(e);for(var n=e.split("\n"),r={},i=1,o=n.length;i<o;i++){var a=n[i],u=a.split("/",2),s=u[0];if(u.length>1){var l=this.parseRuleCodes(u[1]);"NEEDAFFIX"in this.flags&&l.indexOf(this.flags.NEEDAFFIX)!=-1||t(s,l);for(var c=0,f=l.length;c<f;c++){var h=l[c],d=this.rules[h];if(d)for(var p=this._applyRule(s,d),m=0,g=p.length;m<g;m++){var v=p[m];if(t(v,[]),d.combineable)for(var y=c+1;y<f;y++){var b=l[y],x=this.rules[b];if(x&&x.combineable&&d.type!=x.type)for(var C=this._applyRule(v,x),A=0,w=C.length;A<w;A++){var E=C[A];t(E,[])}}}h in this.compoundRuleCodes&&this.compoundRuleCodes[h].push(s)}}else t(s.trim(),[])}return r},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(!e)return[];if(!("FLAG"in this.flags))return e.split("");if("long"===this.flags.FLAG){for(var t=[],n=0,r=e.length;n<r;n+=2)t.push(e.substr(n,2));return t}return"num"===this.flags.FLAG?e.split(","):void 0},_applyRule:function(e,t){for(var n=t.entries,r=[],i=0,o=n.length;i<o;i++){var a=n[i];if(!a.match||e.match(a.match)){var u=e;if(a.remove&&(u=u.replace(a.remove,"")),"SFX"===t.type?u+=a.add:u=a.add+u,r.push(u),"continuationClasses"in a)for(var s=0,l=a.continuationClasses.length;s<l;s++){var c=this.rules[a.continuationClasses[s]];c&&(r=r.concat(this._applyRule(u,c)))}}}return r},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var n=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0}var r=t.toLowerCase();if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,n,r=this.dictionaryTable[e];if("undefined"==typeof r){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t<n;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===r)return!0;if("object"==typeof r)for(t=0,n=r.length;t<n;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",r[t]))return!0}return!1},hasFlag:function(e,t,n){if(!this.loaded)throw"Dictionary not loaded.";return!!(t in this.flags&&("undefined"==typeof n&&(n=Array.prototype.concat.apply([],this.dictionaryTable[e])),n&&n.indexOf(this.flags[t])!==-1))},alphabet:"",suggest:function(e,t){function n(e){var t,n,r,i,o,a,u=[];for(t=0,i=e.length;t<i;t++){var s=e[t];for(n=0,o=s.length+1;n<o;n++){var l=[s.substring(0,n),s.substring(n)];if(l[1]&&u.push(l[0]+l[1].substring(1)),l[1].length>1&&l[1][1]!==l[1][0]&&u.push(l[0]+l[1][1]+l[1][0]+l[1].substring(2)),l[1])for(r=0,a=c.alphabet.length;r<a;r++)c.alphabet[r]!=l[1].substring(0,1)&&u.push(l[0]+c.alphabet[r]+l[1].substring(1));if(l[1])for(r=0,a=c.alphabet.length;r<a;r++)u.push(l[0]+c.alphabet[r]+l[1])}}return u}function r(e){for(var t=[],n=0,r=e.length;n<r;n++)c.check(e[n])&&t.push(e[n]);return t}function i(e){function i(e,t){return e[1]<t[1]?-1:1}var o,a,u=n([e]),s=n(u),l=r(u.concat(s)),f={};for(o=0,a=l.length;o<a;o++)l[o]in f?f[l[o]]+=1:f[l[o]]=1;var h=[];for(o in f)f.hasOwnProperty(o)&&h.push([o,f[o]]);h.sort(i).reverse();var d=[],p="lowercase";for(e.toUpperCase()===e?p="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(p="capitalized"),o=0,a=Math.min(t,h.length);o<a;o++)"uppercase"===p?h[o][0]=h[o][0].toUpperCase():"capitalized"===p&&(h[o][0]=h[o][0].substr(0,1).toUpperCase()+h[o][0].substr(1)),c.hasFlag(h[o][0],"NOSUGGEST")||d.push(h[o][0]);return d}if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var o=this.memoized[e].limit;if(t<=o||this.memoized[e].suggestions.length<o)return this.memoized[e].suggestions.slice(0,t)}if(this.check(e))return[];for(var a=0,u=this.replacementTable.length;a<u;a++){var s=this.replacementTable[a];if(e.indexOf(s[0])!==-1){var l=e.replace(s[0],s[1]);if(this.check(l))return[l]}}var c=this;return c.alphabet="abcdefghijklmnopqrstuvwxyz",this.memoized[e]={suggestions:i(e),limit:t},this.memoized[e].suggestions}}}(),e.exports=i}).call(t,"/",n(42).Buffer)},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function i(e,t,n){if(e&&l.isObject(e)&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function o(e){return l.isString(e)&&(e=i(e)),e instanceof r?e.format():r.prototype.format.call(e)}function a(e,t){return i(e,!1,!0).resolve(t)}function u(e,t){return e?i(e,!1,!0).resolveObject(t):t}var s=n(74),l=n(90);t.parse=i,t.resolve=a,t.resolveObject=u,t.format=o,t.Url=r;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,h=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(d),m=["'"].concat(p),g=["%","/","?",";","#"].concat(m),v=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},A={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=n(77);r.prototype.parse=function(e,t,n){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),e=o.join(i);var u=e;if(u=u.trim(),!n&&1===e.split("#").length){var f=h.exec(u);if(f)return this.path=u,this.href=u,this.pathname=f[1],f[2]?(this.search=f[2],t?this.query=E.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var d=c.exec(u);if(d){d=d[0];var p=d.toLowerCase();this.protocol=p,u=u.substr(d.length)}if(n||d||u.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===u.substr(0,2);!k||d&&A[d]||(u=u.substr(2),this.slashes=!0)}if(!A[d]&&(k||d&&!w[d])){for(var _=-1,S=0;S<v.length;S++){var F=u.indexOf(v[S]);F!==-1&&(_===-1||F<_)&&(_=F)}var D,B;B=_===-1?u.lastIndexOf("@"):u.lastIndexOf("@",_),B!==-1&&(D=u.slice(0,B),u=u.slice(B+1),this.auth=decodeURIComponent(D)),_=-1;for(var S=0;S<g.length;S++){var F=u.indexOf(g[S]);F!==-1&&(_===-1||F<_)&&(_=F)}_===-1&&(_=u.length),this.host=u.slice(0,_),u=u.slice(_),this.parseHost(),this.hostname=this.hostname||"";var T="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!T)for(var L=this.hostname.split(/\./),S=0,M=L.length;S<M;S++){var O=L[S];if(O&&!O.match(b)){for(var N="",I=0,j=O.length;I<j;I++)N+=O.charCodeAt(I)>127?"x":O[I];if(!N.match(b)){var R=L.slice(0,S),P=L.slice(S+1),$=O.match(x);$&&(R.push($[1]),P.unshift($[2])),P.length&&(u="/"+P.join(".")+u),this.hostname=R.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=s.toASCII(this.hostname));var z=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+z,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==u[0]&&(u="/"+u))}if(!C[p])for(var S=0,M=m.length;S<M;S++){var H=m[S];if(u.indexOf(H)!==-1){var U=encodeURIComponent(H);U===H&&(U=escape(H)),u=u.split(H).join(U)}}var q=u.indexOf("#");q!==-1&&(this.hash=u.substr(q),u=u.slice(0,q));var V=u.indexOf("?");if(V!==-1?(this.search=u.substr(V),this.query=u.substr(V+1),t&&(this.query=E.parse(this.query)),u=u.slice(0,V)):t&&(this.search="",this.query={}),u&&(this.pathname=u),w[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var z=this.pathname||"",Z=this.search||"";this.path=z+Z}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(o=E.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||w[t])&&i!==!1?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+i+n+a+r},r.prototype.resolve=function(e){return this.resolveObject(i(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if(l.isString(e)){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var a=i[o];n[a]=this[a]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),s=0;s<u.length;s++){var c=u[s];"protocol"!==c&&(n[c]=e[c])}return w[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!w[e.protocol]){
  for(var f=Object.keys(e),h=0;h<f.length;h++){var d=f[h];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||A[e.protocol])n.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=y||v||n.host&&e.pathname,x=b,C=n.pathname&&n.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],E=n.protocol&&!w[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===C[0]?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),b=b&&(""===p[0]||""===C[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=p;else if(p.length)C||(C=[]),C.pop(),C=C.concat(p),n.search=e.search,n.query=e.query;else if(!l.isNullOrUndefined(e.search)){if(E){n.hostname=n.host=C.shift();var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var _=C.slice(-1)[0],S=(n.host||e.host||C.length>1)&&("."===_||".."===_)||""===_,F=0,D=C.length;D>=0;D--)_=C[D],"."===_?C.splice(D,1):".."===_?(C.splice(D,1),F++):F&&(C.splice(D,1),F--);if(!b&&!x)for(;F--;F)C.unshift("..");!b||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),S&&"/"!==C.join("/").substr(-1)&&C.push("");var B=""===C[0]||C[0]&&"/"===C[0].charAt(0);if(E){n.hostname=n.host=B?"":C.length?C.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&C.length,b&&!B&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t,n){(function(t){/*!
   * Vue.js v2.1.8
   * (c) 2014-2016 Evan You
   * Released under the MIT License.
   */
  !function(t,n){e.exports=n()}(this,function(){"use strict";function e(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function n(e){var t=parseFloat(e,10);return t||0===t?t:e}function r(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}function i(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}function o(e,t){return di.call(e,t)}function a(e){return"string"==typeof e||"number"==typeof e}function u(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}function s(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function l(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function c(e,t){for(var n in t)e[n]=t[n];return e}function f(e){return null!==e&&"object"==typeof e}function h(e){return bi.call(e)===xi}function d(e){for(var t={},n=0;n<e.length;n++)e[n]&&c(t,e[n]);return t}function p(){}function m(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function g(e,t){var n=f(e),r=f(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}function v(e,t){for(var n=0;n<e.length;n++)if(g(e[n],t))return n;return-1}function y(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function b(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function x(e){if(!Ei.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}function C(e){return/native code/.test(e.toString())}function A(e){zi.target&&Wi.push(zi.target),zi.target=e}function w(){zi.target=Wi.pop()}function E(e,t){e.__proto__=t}function k(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];b(e,o,t[o])}}function _(e,t){if(f(e)){var n;return o(e,"__ob__")&&e.__ob__ instanceof Zi?n=e.__ob__:Vi.shouldConvert&&!Mi()&&(Array.isArray(e)||h(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Zi(e)),t&&n&&n.vmCount++,n}}function S(e,t,n,r){var i=new zi,o=Object.getOwnPropertyDescriptor(e,t);if(!o||o.configurable!==!1){var a=o&&o.get,u=o&&o.set,s=_(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return zi.target&&(i.depend(),s&&s.dep.depend(),Array.isArray(t)&&B(t)),t},set:function(t){var o=a?a.call(e):n;t===o||t!==t&&o!==o||(r&&r(),u?u.call(e,t):n=t,s=_(t),i.notify())}})}}function F(e,t,n){if(Array.isArray(e))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(o(e,t))return void(e[t]=n);var r=e.__ob__;return e._isVue||r&&r.vmCount?void ji("Avoid adding reactive properties to a Vue instance or its root $data at runtime - declare it upfront in the data option."):r?(S(r.value,t,n),r.dep.notify(),n):void(e[t]=n)}function D(e,t){var n=e.__ob__;return e._isVue||n&&n.vmCount?void ji("Avoid deleting properties on a Vue instance or its root $data - just set it to null."):void(o(e,t)&&(delete e[t],n&&n.dep.notify()))}function B(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&B(t)}function T(e,t){if(!t)return e;for(var n,r,i,a=Object.keys(t),u=0;u<a.length;u++)n=a[u],r=e[n],i=t[n],o(e,n)?h(r)&&h(i)&&T(r,i):F(e,n,i);return e}function L(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function M(e,t){var n=Object.create(e||null);return t?c(n,t):n}function O(e){for(var t in e.components){var n=t.toLowerCase();(hi(n)||wi.isReservedTag(n))&&ji("Do not use built-in or reserved HTML elements as component id: "+t)}}function N(e){var t=e.props;if(t){var n,r,i,o={};if(Array.isArray(t))for(n=t.length;n--;)r=t[n],"string"==typeof r?(i=mi(r),o[i]={type:null}):ji("props must be strings when using array syntax.");else if(h(t))for(var a in t)r=t[a],i=mi(a),o[i]=h(r)?r:{type:r};e.props=o}}function I(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}function j(e,t,n){function r(r){var i=Gi[r]||Qi;c[r]=i(e[r],t[r],n,r)}O(t),N(t),I(t);var i=t.extends;if(i&&(e="function"==typeof i?j(e,i.options,n):j(e,i,n)),t.mixins)for(var a=0,u=t.mixins.length;a<u;a++){var s=t.mixins[a];s.prototype instanceof Ve&&(s=s.options),e=j(e,s,n)}var l,c={};for(l in e)r(l);for(l in t)o(e,l)||r(l);return c}function R(e,t,n,r){if("string"==typeof n){var i=e[t];if(o(i,n))return i[n];var a=mi(n);if(o(i,a))return i[a];var u=gi(a);if(o(i,u))return i[u];var s=i[n]||i[a]||i[u];return r&&!s&&ji("Failed to resolve "+t.slice(0,-1)+": "+n,e),s}}function P(e,t,n,r){var i=t[e],a=!o(n,e),u=n[e];if(U(Boolean,i.type)&&(a&&!o(i,"default")?u=!1:U(String,i.type)||""!==u&&u!==yi(e)||(u=!0)),void 0===u){u=$(r,i,e);var s=Vi.shouldConvert;Vi.shouldConvert=!0,_(u),Vi.shouldConvert=s}return z(i,e,u,r,a),u}function $(e,t,n){if(o(t,"default")){var r=t.default;return f(r)&&ji('Invalid default value for prop "'+n+'": Props with type Object/Array must use a factory function to return the default value.',e),e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e[n]?e[n]:"function"==typeof r&&t.type!==Function?r.call(e):r}}function z(e,t,n,r,i){if(e.required&&i)return void ji('Missing required prop: "'+t+'"',r);if(null!=n||e.required){var o=e.type,a=!o||o===!0,u=[];if(o){Array.isArray(o)||(o=[o]);for(var s=0;s<o.length&&!a;s++){var l=W(n,o[s]);u.push(l.expectedType||""),a=l.valid}}if(!a)return void ji('Invalid prop: type check failed for prop "'+t+'". Expected '+u.map(gi).join(", ")+", got "+Object.prototype.toString.call(n).slice(8,-1)+".",r);var c=e.validator;c&&(c(n)||ji('Invalid prop: custom validator check failed for prop "'+t+'".',r))}}function W(e,t){var n,r=H(t);return n="String"===r?typeof e==(r="string"):"Number"===r?typeof e==(r="number"):"Boolean"===r?typeof e==(r="boolean"):"Function"===r?typeof e==(r="function"):"Object"===r?h(e):"Array"===r?Array.isArray(e):e instanceof t,{valid:n,expectedType:r}}function H(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t&&t[1]}function U(e,t){if(!Array.isArray(t))return H(t)===H(e);for(var n=0,r=t.length;n<r;n++)if(H(t[n])===H(e))return!0;return!1}function q(){io.length=0,oo={},ao={},uo=so=!1}function V(){for(so=!0,io.sort(function(e,t){return e.id-t.id}),lo=0;lo<io.length;lo++){var e=io[lo],t=e.id;if(oo[t]=null,e.run(),null!=oo[t]&&(ao[t]=(ao[t]||0)+1,ao[t]>wi._maxUpdateCount)){ji("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}}Oi&&wi.devtools&&Oi.emit("flush"),q()}function Z(e){var t=e.id;if(null==oo[t]){if(oo[t]=!0,so){for(var n=io.length-1;n>=0&&io[n].id>e.id;)n--;io.splice(Math.max(n,lo)+1,0,e)}else io.push(e);uo||(uo=!0,Ni(V))}}function G(e){po.clear(),Y(e,po)}function Y(e,t){var n,r,i=Array.isArray(e);if((i||f(e))&&Object.isExtensible(e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i)for(n=e.length;n--;)Y(e[n],t);else for(r=Object.keys(e),n=r.length;n--;)Y(e[r[n]],t)}}function Q(e){e._watchers=[];var t=e.$options;t.props&&K(e,t.props),t.methods&&te(e,t.methods),t.data?X(e):_(e._data={},!0),t.computed&&J(e,t.computed),t.watch&&ne(e,t.watch)}function K(e,t){var n=e.$options.propsData||{},r=e.$options._propKeys=Object.keys(t),i=!e.$parent;Vi.shouldConvert=i;for(var o=function(i){var o=r[i];mo[o]&&ji('"'+o+'" is a reserved attribute and cannot be used as component prop.',e),S(e,o,P(o,t,n,e),function(){e.$parent&&!Vi.isSettingProps&&ji("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',e)})},a=0;a<r.length;a++)o(a);Vi.shouldConvert=!0}function X(e){var t=e.$options.data;t=e._data="function"==typeof t?t.call(e):t||{},h(t)||(t={},ji("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));for(var n=Object.keys(t),r=e.$options.props,i=n.length;i--;)r&&o(r,n[i])?ji('The data property "'+n[i]+'" is already declared as a prop. Use prop default value instead.',e):oe(e,n[i]);_(t,!0)}function J(e,t){for(var n in t){n in e&&ji('existing instance property "'+n+'" will be overwritten by a computed property with the same name.',e);var r=t[n];"function"==typeof r?(go.get=ee(r,e),go.set=p):(go.get=r.get?r.cache!==!1?ee(r.get,e):s(r.get,e):p,go.set=r.set?s(r.set,e):p),Object.defineProperty(e,n,go)}}function ee(e,t){var n=new fo(t,e,p,{lazy:!0});return function(){return n.dirty&&n.evaluate(),zi.target&&n.depend(),n.value}}function te(e,t){for(var n in t)e[n]=null==t[n]?p:s(t[n],e),null==t[n]&&ji('method "'+n+'" has an undefined value in the component definition. Did you reference the function correctly?',e)}function ne(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)re(e,n,r[i]);else re(e,n,r)}}function re(e,t,n){var r;h(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function ie(e){var t={};t.get=function(){return this._data},t.set=function(e){ji("Avoid replacing instance root $data. Use nested data properties instead.",this)},Object.defineProperty(e.prototype,"$data",t),e.prototype.$set=F,e.prototype.$delete=D,e.prototype.$watch=function(e,t,n){var r=this;n=n||{},n.user=!0;var i=new fo(r,e,t,n);return n.immediate&&t.call(r,i.value),function(){i.teardown()}}}function oe(e,t){y(t)||Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(n){e._data[t]=n}})}function ae(e){return new vo(void 0,void 0,void 0,String(e))}function ue(e){var t=new vo(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isCloned=!0,t}function se(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=ue(e[n]);return t}function le(e,t,n,r){r+=t;var i=e.__injected||(e.__injected={});if(!i[r]){i[r]=!0;var o=e[t];o?e[t]=function(){o.apply(this,arguments),n.apply(this,arguments)}:e[t]=n}}function ce(e,t,n,r,i){var o,a,u,s,l,c,f;for(o in e)if(a=e[o],u=t[o],a)if(u){if(a!==u)if(Array.isArray(u)){u.length=a.length;for(var h=0;h<u.length;h++)u[h]=a[h];e[o]=u}else u.fn=a,e[o]=u}else f="~"===o.charAt(0),l=f?o.slice(1):o,c="!"===l.charAt(0),l=c?l.slice(1):l,Array.isArray(a)?n(l,a.invoker=fe(a),f,c):(a.invoker||(s=a,a=e[o]={},a.fn=s,a.invoker=he(a)),n(l,a.invoker,f,c));else ji('Invalid handler for event "'+o+'": got '+String(a),i);for(o in t)e[o]||(f="~"===o.charAt(0),l=f?o.slice(1):o,c="!"===l.charAt(0),l=c?l.slice(1):l,r(l,t[o].invoker,c))}function fe(e){return function(t){for(var n=arguments,r=1===arguments.length,i=0;i<e.length;i++)r?e[i](t):e[i].apply(null,n)}}function he(e){return function(t){var n=1===arguments.length;n?e.fn(t):e.fn.apply(null,arguments)}}function de(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function pe(e){return a(e)?[ae(e)]:Array.isArray(e)?me(e):void 0}function me(e,t){var n,r,i,o=[];for(n=0;n<e.length;n++)r=e[n],null!=r&&"boolean"!=typeof r&&(i=o[o.length-1],Array.isArray(r)?o.push.apply(o,me(r,(t||"")+"_"+n)):a(r)?i&&i.text?i.text+=String(r):""!==r&&o.push(ae(r)):r.text&&i&&i.text?o[o.length-1]=ae(i.text+r.text):(r.tag&&null==r.key&&null!=t&&(r.key="__vlist"+t+"_"+n+"__"),o.push(r)));return o}function ge(e){return e&&e.filter(function(e){return e&&e.componentOptions})[0]}function ve(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&xe(e,t)}function ye(e,t,n){n?ho.$once(e,t):ho.$on(e,t)}function be(e,t){ho.$off(e,t)}function xe(e,t,n){ho=e,ce(t,n||{},ye,be,e)}function Ce(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;return(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0),r},e.prototype.$once=function(e,t){function n(){r.$off(e,n),t.apply(r,arguments)}var r=this;return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;var r=n._events[e];if(!r)return n;if(1===arguments.length)return n._events[e]=null,n;for(var i,o=r.length;o--;)if(i=r[o],i===t||i.fn===t){r.splice(o,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?l(n):n;for(var r=l(arguments,1),i=0,o=n.length;i<o;i++)n[i].apply(t,r)}return t}}function Ae(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function we(e){e.prototype._mount=function(e,t){var n=this;return n.$el=e,n.$options.render||(n.$options.render=yo,n.$options.template&&"#"!==n.$options.template.charAt(0)?ji("You are using the runtime-only build of Vue where the template option is not available. Either pre-compile the templates into render functions, or use the compiler-included build.",n):ji("Failed to mount component: template or render function not defined.",n)),Ee(n,"beforeMount"),n._watcher=new fo(n,function(){n._update(n._render(),t)},p),t=!1,null==n.$vnode&&(n._isMounted=!0,Ee(n,"mounted")),n},e.prototype._update=function(e,t){var n=this;n._isMounted&&Ee(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=bo;bo=n,n._vnode=e,i?n.$el=n.__patch__(i,e):n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),bo=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el),n._isMounted&&Ee(n,"updated")},e.prototype._updateFromParent=function(e,t,n,r){var i=this,o=!(!i.$options._renderChildren&&!r);if(i.$options._parentVnode=n,i.$vnode=n,i._vnode&&(i._vnode.parent=n),i.$options._renderChildren=r,e&&i.$options.props){Vi.shouldConvert=!1,Vi.isSettingProps=!0;for(var a=i.$options._propKeys||[],u=0;u<a.length;u++){var s=a[u];i[s]=P(s,i.$options.props,e,i)}Vi.shouldConvert=!0,Vi.isSettingProps=!1,i.$options.propsData=e}if(t){var l=i.$options._parentListeners;i.$options._parentListeners=t,xe(i,t,l)}o&&(i.$slots=We(r,n.context),i.$forceUpdate())},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Ee(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||i(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,Ee(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.__patch__(e._vnode,null)}}}function Ee(e,t){var n=e.$options[t];if(n)for(var r=0,i=n.length;r<i;r++)n[r].call(e);e._hasHookEvent&&e.$emit("hook:"+t)}function ke(e,t,n,r,i){if(e){var o=n.$options._base;if(f(e)&&(e=o.extend(e)),"function"!=typeof e)return void ji("Invalid Component definition: "+String(e),n);if(!e.cid)if(e.resolved)e=e.resolved;else if(e=Le(e,o,function(){n.$forceUpdate()}),!e)return;qe(e),t=t||{};var a=Me(t,e);if(e.options.functional)return _e(e,a,t,n,r);var u=t.on;t.on=t.nativeOn,e.options.abstract&&(t={}),Ne(t);var s=e.options.name||i,l=new vo("vue-component-"+e.cid+(s?"-"+s:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:a,listeners:u,tag:i,children:r});return l}}function _e(e,t,n,r,i){var o={},a=e.options.props;if(a)for(var u in a)o[u]=P(u,a,t);var s=Object.create(r),l=function(e,t,n,r){return je(s,e,t,n,r,!0)},c=e.options.render.call(null,l,{props:o,data:n,parent:r,children:i,slots:function(){return We(i,r)}});return c instanceof vo&&(c.functionalContext=r,n.slot&&((c.data||(c.data={})).slot=n.slot)),c}function Se(e,t,n,r){var i=e.componentOptions,o={_isComponent:!0,parent:t,propsData:i.propsData,_componentTag:i.tag,_parentVnode:e,_parentListeners:i.listeners,_renderChildren:i.children,_parentElm:n||null,_refElm:r||null},a=e.data.inlineTemplate;return a&&(o.render=a.render,o.staticRenderFns=a.staticRenderFns),new i.Ctor(o)}function Fe(e,t,n,r){if(!e.child||e.child._isDestroyed){var i=e.child=Se(e,bo,n,r);i.$mount(t?e.elm:void 0,t)}else if(e.data.keepAlive){var o=e;De(o,o)}}function De(e,t){var n=t.componentOptions,r=t.child=e.child;r._updateFromParent(n.propsData,n.listeners,t,n.children)}function Be(e){e.child._isMounted||(e.child._isMounted=!0,Ee(e.child,"mounted")),e.data.keepAlive&&(e.child._inactive=!1,Ee(e.child,"activated"))}function Te(e){e.child._isDestroyed||(e.data.keepAlive?(e.child._inactive=!0,Ee(e.child,"deactivated")):e.child.$destroy())}function Le(e,t,n){if(!e.requested){e.requested=!0;var r=e.pendingCallbacks=[n],i=!0,o=function(n){if(f(n)&&(n=t.extend(n)),e.resolved=n,!i)for(var o=0,a=r.length;o<a;o++)r[o](n)},a=function(t){ji("Failed to resolve async component: "+String(e)+(t?"\nReason: "+t:""))},u=e(o,a);return u&&"function"==typeof u.then&&!e.resolved&&u.then(o,a),i=!1,e.resolved}e.pendingCallbacks.push(n)}function Me(e,t){var n=t.options.props;if(n){var r={},i=e.attrs,o=e.props,a=e.domProps;if(i||o||a)for(var u in n){var s=yi(u);Oe(r,o,u,s,!0)||Oe(r,i,u,s)||Oe(r,a,u,s)}return r}}function Oe(e,t,n,r,i){if(t){if(o(t,n))return e[n]=t[n],i||delete t[n],!0;if(o(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function Ne(e){e.hook||(e.hook={});for(var t=0;t<Co.length;t++){var n=Co[t],r=e.hook[n],i=xo[n];e.hook[n]=r?Ie(i,r):i}}function Ie(e,t){return function(n,r,i,o){e(n,r,i,o),t(n,r,i,o)}}function je(e,t,n,r,i,o){return(Array.isArray(n)||a(n))&&(i=r,r=n,n=void 0),o&&(i=wo),Re(e,t,n,r,i)}function Re(e,t,n,r,i){if(n&&n.__ob__)return ji("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\nAlways create fresh vnode data objects in each render!",e),yo();if(!t)return yo();Array.isArray(r)&&"function"==typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),i===wo?r=pe(r):i===Ao&&(r=de(r));var o,a;if("string"==typeof t){var u;a=wi.getTagNamespace(t),o=wi.isReservedTag(t)?new vo(wi.parsePlatformTagName(t),n,r,void 0,void 0,e):(u=R(e.$options,"components",t))?ke(u,n,e,r,t):new vo(t,n,r,void 0,void 0,e)}else o=ke(t,n,e,r);return o?(a&&Pe(o,a),o):yo()}function Pe(e,t){if(e.ns=t,"foreignObject"!==e.tag&&e.children)for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];i.tag&&!i.ns&&Pe(i,t)}}function $e(e){e.$vnode=null,e._vnode=null,e._staticTrees=null;var t=e.$options._parentVnode,n=t&&t.context;e.$slots=We(e.$options._renderChildren,n),e.$scopedSlots={},e._c=function(t,n,r,i){return je(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return je(e,t,n,r,i,!0)},e.$options.el&&e.$mount(e.$options.el)}function ze(t){function r(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&i(e[r],t+"_"+r,n);else i(e,t,n)}function i(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}t.prototype.$nextTick=function(e){return Ni(e,this)},t.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t.staticRenderFns,i=t._parentVnode;if(e._isMounted)for(var o in e.$slots)e.$slots[o]=se(e.$slots[o]);i&&i.data.scopedSlots&&(e.$scopedSlots=i.data.scopedSlots),r&&!e._staticTrees&&(e._staticTrees=[]),e.$vnode=i;var a;try{a=n.call(e._renderProxy,e.$createElement)}catch(t){if(!wi.errorHandler)throw ji("Error when rendering "+Ii(e)+":"),t;wi.errorHandler.call(null,t,e),a=e._vnode}return a instanceof vo||(Array.isArray(a)&&ji("Multiple root nodes returned from render function. Render function should return a single root node.",e),a=yo()),a.parent=i,a},t.prototype._s=e,t.prototype._v=ae,t.prototype._n=n,t.prototype._e=yo,t.prototype._q=g,t.prototype._i=v,t.prototype._m=function(e,t){var n=this._staticTrees[e];return n&&!t?Array.isArray(n)?se(n):ue(n):(n=this._staticTrees[e]=this.$options.staticRenderFns[e].call(this._renderProxy),r(n,"__static__"+e,!1),n)},t.prototype._o=function(e,t,n){return r(e,"__once__"+t+(n?"_"+n:""),!0),e},t.prototype._f=function(e){return R(this.$options,"filters",e,!0)||Ai},t.prototype._l=function(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(f(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return n},t.prototype._t=function(e,t,n,r){var i=this.$scopedSlots[e];if(i)return n=n||{},r&&c(n,r),i(n)||t;var o=this.$slots[e];return o&&(o._rendered&&ji('Duplicate presence of slot "'+e+'" found in the same render tree - this will likely cause render errors.',this),o._rendered=!0),o||t},t.prototype._b=function(e,t,n,r){if(n)if(f(n)){Array.isArray(n)&&(n=d(n));for(var i in n)if("class"===i||"style"===i)e[i]=n[i];else{var o=r||wi.mustUseProp(t,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={});o[i]=n[i]}}else ji("v-bind without argument expects an Object or Array value",this);return e},t.prototype._k=function(e,t,n){var r=wi.keyCodes[t]||n;return Array.isArray(r)?r.indexOf(e)===-1:r!==e}}function We(e,t){var n={};if(!e)return n;for(var r,i,o=[],a=0,u=e.length;a<u;a++)if(i=e[a],(i.context===t||i.functionalContext===t)&&i.data&&(r=i.data.slot)){var s=n[r]||(n[r]=[]);"template"===i.tag?s.push.apply(s,i.children):s.push(i)}else o.push(i);return o.length&&(1!==o.length||" "!==o[0].text&&!o[0].isComment)&&(n.default=o),n}function He(e){e.prototype._init=function(e){var t=this;t._uid=Eo++,t._isVue=!0,e&&e._isComponent?Ue(t,e):t.$options=j(qe(t.constructor),e||{},t),Yi(t),t._self=t,Ae(t),ve(t),Ee(t,"beforeCreate"),Q(t),Ee(t,"created"),$e(t)}}function Ue(e,t){var n=e.$options=Object.create(e.constructor.options);n.parent=t.parent,n.propsData=t.propsData,n._parentVnode=t._parentVnode,n._parentListeners=t._parentListeners,n._renderChildren=t._renderChildren,n._componentTag=t._componentTag,n._parentElm=t._parentElm,n._refElm=t._refElm,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function qe(e){var t=e.options;if(e.super){var n=e.super.options,r=e.superOptions,i=e.extendOptions;n!==r&&(e.superOptions=n,i.render=t.render,i.staticRenderFns=t.staticRenderFns,i._scopeId=t._scopeId,t=e.options=j(n,i),t.name&&(t.components[t.name]=e))}return t}function Ve(e){this instanceof Ve||ji("Vue is a constructor and should be called with the `new` keyword"),this._init(e)}function Ze(e){e.use=function(e){if(!e.installed){var t=l(arguments,1);return t.unshift(this),"function"==typeof e.install?e.install.apply(e,t):e.apply(null,t),e.installed=!0,this}}}function Ge(e){e.mixin=function(e){this.options=j(this.options,e)}}function Ye(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;/^[a-zA-Z][\w-]*$/.test(o)||ji('Invalid component name: "'+o+'". Component names can only contain alphanumeric characters and the hyphen, and must start with a letter.');var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=j(n.options,e),a.super=n,a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,wi._assetTypes.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,i[r]=a,a}}function Qe(e){wi._assetTypes.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&wi.isReservedTag(e)&&ji("Do not use built-in or reserved HTML elements as component id: "+e),"component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Ke(e,t){return"string"==typeof e?e.split(",").indexOf(t)>-1:e.test(t)}function Xe(e){var t={};t.get=function(){return wi},t.set=function(){ji("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(e,"config",t),e.util=Ki,e.set=F,e.delete=D,e.nextTick=Ni,e.options=Object.create(null),wi._assetTypes.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,c(e.options.components,So),Ze(e),Ge(e),Ye(e),Qe(e)}function Je(e){for(var t=e.data,n=e,r=e;r.child;)r=r.child._vnode,r.data&&(t=et(r.data,t));for(;n=n.parent;)n.data&&(t=et(t,n.data));return tt(t)}function et(e,t){return{staticClass:nt(e.staticClass,t.staticClass),class:e.class?[e.class,t.class]:t.class}}function tt(e){var t=e.class,n=e.staticClass;return n||t?nt(n,rt(t)):""}function nt(e,t){return e?t?e+" "+t:e:t||""}function rt(e){var t="";if(!e)return t;if("string"==typeof e)return e;if(Array.isArray(e)){for(var n,r=0,i=e.length;r<i;r++)e[r]&&(n=rt(e[r]))&&(t+=n+" ");return t.slice(0,-1)}if(f(e)){for(var o in e)e[o]&&(t+=o+" ");return t.slice(0,-1)}return t}function it(e){return $o(e)?"svg":"math"===e?"math":void 0}function ot(e){if(!_i)return!0;if(Wo(e))return!1;if(e=e.toLowerCase(),null!=Ho[e])return Ho[e];var t=document.createElement(e);return e.indexOf("-")>-1?Ho[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Ho[e]=/HTMLUnknownElement/.test(t.toString())}function at(e){if("string"==typeof e){var t=e;if(e=document.querySelector(e),!e)return ji("Cannot find element: "+t),document.createElement("div")}return e}function ut(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&"multiple"in t.data.attrs&&n.setAttribute("multiple","multiple"),n)}function st(e,t){return document.createElementNS(Ro[e],t)}function lt(e){return document.createTextNode(e)}function ct(e){return document.createComment(e)}function ft(e,t,n){e.insertBefore(t,n)}function ht(e,t){e.removeChild(t)}function dt(e,t){e.appendChild(t)}function pt(e){return e.parentNode}function mt(e){return e.nextSibling}function gt(e){return e.tagName}function vt(e,t){e.textContent=t}function yt(e,t,n){e.setAttribute(t,n)}function bt(e,t){var n=e.data.ref;if(n){var r=e.context,o=e.child||e.elm,a=r.$refs;t?Array.isArray(a[n])?i(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(o)<0?a[n].push(o):a[n]=[o]:a[n]=o}}function xt(e){return null==e}function Ct(e){return null!=e}function At(e,t){return e.key===t.key&&e.tag===t.tag&&e.isComment===t.isComment&&!e.data==!t.data}function wt(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,Ct(i)&&(o[i]=r);return o}function Et(e){function t(e){return new vo(F.tagName(e).toLowerCase(),{},[],void 0,e)}function n(e,t){function n(){0===--n.listeners&&i(e)}return n.listeners=t,n}function i(e){var t=F.parentNode(e);t&&F.removeChild(t,e)}function o(e,t,n,r,i){if(e.isRootInsert=!i,!u(e,t,n,r)){var o=e.data,a=e.children,s=e.tag;Ct(s)?(o&&o.pre&&D++,D||e.ns||wi.ignoredElements.length&&wi.ignoredElements.indexOf(s)>-1||!wi.isUnknownElement(s)||ji("Unknown custom element: <"+s+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',e.context),e.elm=e.ns?F.createElementNS(e.ns,s):F.createElement(s,e),p(e),c(e,a,t),Ct(o)&&h(e,t),l(n,e.elm,r),o&&o.pre&&D--):e.isComment?(e.elm=F.createComment(e.text),l(n,e.elm,r)):(e.elm=F.createTextNode(e.text),l(n,e.elm,r))}}function u(e,t,n,r){var i=e.data;if(Ct(i)){var o=Ct(e.child)&&i.keepAlive;if(Ct(i=i.hook)&&Ct(i=i.init)&&i(e,!1,n,r),Ct(e.child))return d(e,t),o&&s(e,t,n,r),!0}}function s(e,t,n,r){for(var i,o=e;o.child;)if(o=o.child._vnode,Ct(i=o.data)&&Ct(i=i.transition)){for(i=0;i<_.activate.length;++i)_.activate[i](Vo,o);t.push(o);break}l(n,e.elm,r)}function l(e,t,n){e&&(n?F.insertBefore(e,t,n):F.appendChild(e,t))}function c(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)o(t[r],n,e.elm,null,!0);else a(e.text)&&F.appendChild(e.elm,F.createTextNode(e.text))}function f(e){for(;e.child;)e=e.child._vnode;return Ct(e.tag)}function h(e,t){for(var n=0;n<_.create.length;++n)_.create[n](Vo,e);E=e.data.hook,Ct(E)&&(E.create&&E.create(Vo,e),E.insert&&t.push(e))}function d(e,t){e.data.pendingInsert&&t.push.apply(t,e.data.pendingInsert),e.elm=e.child.$el,f(e)?(h(e,t),p(e)):(bt(e),t.push(e))}function p(e){var t;Ct(t=e.context)&&Ct(t=t.$options._scopeId)&&F.setAttribute(e.elm,t,""),Ct(t=bo)&&t!==e.context&&Ct(t=t.$options._scopeId)&&F.setAttribute(e.elm,t,"")}function m(e,t,n,r,i,a){for(;r<=i;++r)o(n[r],a,e,t)}function g(e){var t,n,r=e.data;if(Ct(r))for(Ct(t=r.hook)&&Ct(t=t.destroy)&&t(e),t=0;t<_.destroy.length;++t)_.destroy[t](e);if(Ct(t=e.children))for(n=0;n<e.children.length;++n)g(e.children[n])}function v(e,t,n,r){for(;n<=r;++n){var o=t[n];Ct(o)&&(Ct(o.tag)?(y(o),g(o)):i(o.elm))}}function y(e,t){if(t||Ct(e.data)){var r=_.remove.length+1;for(t?t.listeners+=r:t=n(e.elm,r),Ct(E=e.child)&&Ct(E=E._vnode)&&Ct(E.data)&&y(E,t),E=0;E<_.remove.length;++E)_.remove[E](e,t);Ct(E=e.data.hook)&&Ct(E=E.remove)?E(e,t):t()}else i(e.elm)}function b(e,t,n,r,i){for(var a,u,s,l,c=0,f=0,h=t.length-1,d=t[0],p=t[h],g=n.length-1,y=n[0],b=n[g],C=!i;c<=h&&f<=g;)xt(d)?d=t[++c]:xt(p)?p=t[--h]:At(d,y)?(x(d,y,r),d=t[++c],y=n[++f]):At(p,b)?(x(p,b,r),p=t[--h],b=n[--g]):At(d,b)?(x(d,b,r),C&&F.insertBefore(e,d.elm,F.nextSibling(p.elm)),d=t[++c],b=n[--g]):At(p,y)?(x(p,y,r),C&&F.insertBefore(e,p.elm,d.elm),p=t[--h],y=n[++f]):(xt(a)&&(a=wt(t,c,h)),u=Ct(y.key)?a[y.key]:null,xt(u)?(o(y,r,e,d.elm),y=n[++f]):(s=t[u],s||ji("It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key."),At(s,y)?(x(s,y,r),t[u]=void 0,C&&F.insertBefore(e,y.elm,d.elm),y=n[++f]):(o(y,r,e,d.elm),y=n[++f])));c>h?(l=xt(n[g+1])?null:n[g+1].elm,m(e,l,n,f,g,r)):f>g&&v(e,t,c,h)}function x(e,t,n,r){if(e!==t){if(t.isStatic&&e.isStatic&&t.key===e.key&&(t.isCloned||t.isOnce))return t.elm=e.elm,void(t.child=e.child);var i,o=t.data,a=Ct(o);a&&Ct(i=o.hook)&&Ct(i=i.prepatch)&&i(e,t);var u=t.elm=e.elm,s=e.children,l=t.children;if(a&&f(t)){for(i=0;i<_.update.length;++i)_.update[i](e,t);Ct(i=o.hook)&&Ct(i=i.update)&&i(e,t)}xt(t.text)?Ct(s)&&Ct(l)?s!==l&&b(u,s,l,n,r):Ct(l)?(Ct(e.text)&&F.setTextContent(u,""),m(u,null,l,0,l.length-1,n)):Ct(s)?v(u,s,0,s.length-1):Ct(e.text)&&F.setTextContent(u,""):e.text!==t.text&&F.setTextContent(u,t.text),a&&Ct(i=o.hook)&&Ct(i=i.postpatch)&&i(e,t)}}function C(e,t,n){if(n&&e.parent)e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}function A(e,t,n){if(!w(e,t))return!1;t.elm=e;var r=t.tag,i=t.data,o=t.children;if(Ct(i)&&(Ct(E=i.hook)&&Ct(E=E.init)&&E(t,!0),Ct(E=t.child)))return d(t,n),!0;if(Ct(r)){if(Ct(o))if(e.hasChildNodes()){for(var a=!0,u=e.firstChild,s=0;s<o.length;s++){if(!u||!A(u,o[s],n)){a=!1;break}u=u.nextSibling}if(!a||u)return"undefined"==typeof console||B||(B=!0,console.warn("Parent: ",e),console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,o)),!1}else c(t,o,n);if(Ct(i))for(var l in i)if(!T(l)){h(t,n);break}}else e.data!==t.text&&(e.data=t.text);return!0}function w(e,t){return t.tag?0===t.tag.indexOf("vue-component")||t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase()):e.nodeType===(t.isComment?8:3)}var E,k,_={},S=e.modules,F=e.nodeOps;for(E=0;E<Zo.length;++E)for(_[Zo[E]]=[],k=0;k<S.length;++k)void 0!==S[k][Zo[E]]&&_[Zo[E]].push(S[k][Zo[E]]);var D=0,B=!1,T=r("attrs,style,class,staticClass,staticStyle,key");return function(e,n,r,i,a,u){if(!n)return void(e&&g(e));var s,l,c=!1,h=[];if(e){var d=Ct(e.nodeType);if(!d&&At(e,n))x(e,n,h,i);else{if(d){if(1===e.nodeType&&e.hasAttribute("server-rendered")&&(e.removeAttribute("server-rendered"),r=!0),r){if(A(e,n,h))return C(n,h,!0),e;ji("The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.")}e=t(e)}if(s=e.elm,l=F.parentNode(s),o(n,h,l,F.nextSibling(s)),n.parent){for(var p=n.parent;p;)p.elm=n.elm,p=p.parent;if(f(n))for(var m=0;m<_.create.length;++m)_.create[m](Vo,n.parent)}null!==l?v(l,[e],0,0):Ct(e.tag)&&g(e)}}else c=!0,o(n,h,a,u);return C(n,h,c),n.elm}}function kt(e,t){(e.data.directives||t.data.directives)&&_t(e,t)}function _t(e,t){var n,r,i,o=e===Vo,a=t===Vo,u=St(e.data.directives,e.context),s=St(t.data.directives,t.context),l=[],c=[];for(n in s)r=u[n],i=s[n],r?(i.oldValue=r.value,Dt(i,"update",t,e),i.def&&i.def.componentUpdated&&c.push(i)):(Dt(i,"bind",t,e),
  i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n<l.length;n++)Dt(l[n],"inserted",t,e)};o?le(t.data.hook||(t.data.hook={}),"insert",f,"dir-insert"):f()}if(c.length&&le(t.data.hook||(t.data.hook={}),"postpatch",function(){for(var n=0;n<c.length;n++)Dt(c[n],"componentUpdated",t,e)},"dir-postpatch"),!o)for(n in u)s[n]||Dt(u[n],"unbind",e,e,a)}function St(e,t){var n=Object.create(null);if(!e)return n;var r,i;for(r=0;r<e.length;r++)i=e[r],i.modifiers||(i.modifiers=Yo),n[Ft(i)]=i,i.def=R(t.$options,"directives",i.name,!0);return n}function Ft(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Dt(e,t,n,r,i){var o=e.def&&e.def[t];o&&o(n.elm,e,n,r,i)}function Bt(e,t){if(e.data.attrs||t.data.attrs){var n,r,i,o=t.elm,a=e.data.attrs||{},u=t.data.attrs||{};u.__ob__&&(u=t.data.attrs=c({},u));for(n in u)r=u[n],i=a[n],i!==r&&Tt(o,n,r);Di&&u.value!==a.value&&Tt(o,"value",u.value);for(n in a)null==u[n]&&(No(n)?o.removeAttributeNS(Oo,Io(n)):Lo(n)||o.removeAttribute(n))}}function Tt(e,t,n){Mo(t)?jo(n)?e.removeAttribute(t):e.setAttribute(t,t):Lo(t)?e.setAttribute(t,jo(n)||"false"===n?"false":"true"):No(t)?jo(n)?e.removeAttributeNS(Oo,Io(t)):e.setAttributeNS(Oo,t,n):jo(n)?e.removeAttribute(t):e.setAttribute(t,n)}function Lt(e,t){var n=t.elm,r=t.data,i=e.data;if(r.staticClass||r.class||i&&(i.staticClass||i.class)){var o=Je(t),a=n._transitionClasses;a&&(o=nt(o,rt(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}function Mt(e,t,n,r){if(n){var i=t;t=function(n){Ot(e,t,r),1===arguments.length?i(n):i.apply(null,arguments)}}Fo.addEventListener(e,t,r)}function Ot(e,t,n){Fo.removeEventListener(e,t,n)}function Nt(e,t){if(e.data.on||t.data.on){var n=t.data.on||{},r=e.data.on||{};Fo=t.elm,ce(n,r,Mt,Ot,t.context)}}function It(e,t){if(e.data.domProps||t.data.domProps){var n,r,i=t.elm,o=e.data.domProps||{},a=t.data.domProps||{};a.__ob__&&(a=t.data.domProps=c({},a));for(n in o)null==a[n]&&(i[n]="");for(n in a)if(r=a[n],("textContent"!==n&&"innerHTML"!==n||(t.children&&(t.children.length=0),r!==o[n]))&&("checked"!==n||Rt(i,r)))if("value"===n){i._value=r;var u=null==r?"":String(r);jt(i,t,u)&&(i.value=u)}else i[n]=r}}function jt(e,t,n){return!(e.composing||"option"!==t.tag&&!Rt(e,n)&&!Pt(t,n))}function Rt(e,t){return document.activeElement!==e&&e.value!==t}function Pt(e,t){var r=e.elm.value,i=e.elm._vModifiers;return i&&i.number||"number"===e.elm.type?n(r)!==n(t):i&&i.trim?r.trim()!==t.trim():r!==t}function $t(e){var t=zt(e.style);return e.staticStyle?c(e.staticStyle,t):t}function zt(e){return Array.isArray(e)?d(e):"string"==typeof e?ta(e):e}function Wt(e,t){var n,r={};if(t)for(var i=e;i.child;)i=i.child._vnode,i.data&&(n=$t(i.data))&&c(r,n);(n=$t(e.data))&&c(r,n);for(var o=e;o=o.parent;)o.data&&(n=$t(o.data))&&c(r,n);return r}function Ht(e,t){var n=t.data,r=e.data;if(n.staticStyle||n.style||r.staticStyle||r.style){var i,o,a=t.elm,u=e.data.staticStyle,s=e.data.style||{},l=u||s,f=zt(t.data.style)||{};t.data.style=f.__ob__?c({},f):f;var h=Wt(t,!0);for(o in l)null==h[o]&&ia(a,o,"");for(o in h)i=h[o],i!==l[o]&&ia(a,o,null==i?"":i)}}function Ut(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+e.getAttribute("class")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function qt(e,t){if(t&&t.trim())if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t);else{for(var n=" "+e.getAttribute("class")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");e.setAttribute("class",n.trim())}}function Vt(e){ma(function(){ma(e)})}function Zt(e,t){(e._transitionClasses||(e._transitionClasses=[])).push(t),Ut(e,t)}function Gt(e,t){e._transitionClasses&&i(e._transitionClasses,t),qt(e,t)}function Yt(e,t,n){var r=Qt(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var u=i===la?ha:pa,s=0,l=function(){e.removeEventListener(u,c),n()},c=function(t){t.target===e&&++s>=a&&l()};setTimeout(function(){s<a&&l()},o+1),e.addEventListener(u,c)}function Qt(e,t){var n,r=window.getComputedStyle(e),i=r[fa+"Delay"].split(", "),o=r[fa+"Duration"].split(", "),a=Kt(i,o),u=r[da+"Delay"].split(", "),s=r[da+"Duration"].split(", "),l=Kt(u,s),c=0,f=0;t===la?a>0&&(n=la,c=a,f=o.length):t===ca?l>0&&(n=ca,c=l,f=s.length):(c=Math.max(a,l),n=c>0?a>l?la:ca:null,f=n?n===la?o.length:s.length:0);var h=n===la&&ga.test(r[fa+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:h}}function Kt(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Xt(t)+Xt(e[n])}))}function Xt(e){return 1e3*Number(e.slice(0,-1))}function Jt(e,t){var n=e.elm;n._leaveCb&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=tn(e.data.transition);if(r&&!n._enterCb&&1===n.nodeType){for(var i=r.css,o=r.type,a=r.enterClass,u=r.enterToClass,s=r.enterActiveClass,l=r.appearClass,c=r.appearToClass,f=r.appearActiveClass,h=r.beforeEnter,d=r.enter,p=r.afterEnter,m=r.enterCancelled,g=r.beforeAppear,v=r.appear,y=r.afterAppear,b=r.appearCancelled,x=bo,C=bo.$vnode;C&&C.parent;)C=C.parent,x=C.context;var A=!x._isMounted||!e.isRootInsert;if(!A||v||""===v){var w=A?l:a,E=A?f:s,k=A?c:u,_=A?g||h:h,S=A&&"function"==typeof v?v:d,F=A?y||p:p,D=A?b||m:m,B=i!==!1&&!Di,T=S&&(S._length||S.length)>1,L=n._enterCb=nn(function(){B&&(Gt(n,k),Gt(n,E)),L.cancelled?(B&&Gt(n,w),D&&D(n)):F&&F(n),n._enterCb=null});e.data.show||le(e.data.hook||(e.data.hook={}),"insert",function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.context===e.context&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),S&&S(n,L)},"transition-insert"),_&&_(n),B&&(Zt(n,w),Zt(n,E),Vt(function(){Zt(n,k),Gt(n,w),L.cancelled||T||Yt(n,o,L)})),e.data.show&&(t&&t(),S&&S(n,L)),B||T||L()}}}function en(e,t){function n(){v.cancelled||(e.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[e.key]=e),c&&c(r),m&&(Zt(r,u),Zt(r,l),Vt(function(){Zt(r,s),Gt(r,u),v.cancelled||g||Yt(r,a,v)})),f&&f(r,v),m||g||v())}var r=e.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=tn(e.data.transition);if(!i)return t();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,u=i.leaveClass,s=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,f=i.leave,h=i.afterLeave,d=i.leaveCancelled,p=i.delayLeave,m=o!==!1&&!Di,g=f&&(f._length||f.length)>1,v=r._leaveCb=nn(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[e.key]=null),m&&(Gt(r,s),Gt(r,l)),v.cancelled?(m&&Gt(r,u),d&&d(r)):(t(),h&&h(r)),r._leaveCb=null});p?p(n):n()}}function tn(e){if(e){if("object"==typeof e){var t={};return e.css!==!1&&c(t,va(e.name||"v")),c(t,e),t}return"string"==typeof e?va(e):void 0}}function nn(e){var t=!1;return function(){t||(t=!0,e())}}function rn(e,t){t.data.show||Jt(t)}function on(e,t,n){var r=t.value,i=e.multiple;if(i&&!Array.isArray(r))return void ji('<select multiple v-model="'+t.expression+'"> expects an Array value for its binding, but got '+Object.prototype.toString.call(r).slice(8,-1),n);for(var o,a,u=0,s=e.options.length;u<s;u++)if(a=e.options[u],i)o=v(r,un(a))>-1,a.selected!==o&&(a.selected=o);else if(g(un(a),r))return void(e.selectedIndex!==u&&(e.selectedIndex=u));i||(e.selectedIndex=-1)}function an(e,t){for(var n=0,r=t.length;n<r;n++)if(g(un(t[n]),e))return!1;return!0}function un(e){return"_value"in e?e._value:e.value}function sn(e){e.target.composing=!0}function ln(e){e.target.composing=!1,cn(e.target,"input")}function cn(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function fn(e){return!e.child||e.data&&e.data.transition?e:fn(e.child._vnode)}function hn(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?hn(ge(t.children)):e}function dn(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[mi(o)]=i[o].fn;return t}function pn(e,t){return/\d-keep-alive$/.test(t.tag)?e("keep-alive"):null}function mn(e){for(;e=e.parent;)if(e.data.transition)return!0}function gn(e,t){return t.key===e.key&&t.tag===e.tag}function vn(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function yn(e){e.data.newPos=e.elm.getBoundingClientRect()}function bn(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function xn(e,t){var n=document.createElement("div");return n.innerHTML='<div a="'+e+'">',n.innerHTML.indexOf(t)>0}function Cn(e){return Ta=Ta||document.createElement("div"),Ta.innerHTML=e,Ta.textContent}function An(e,t){return t&&(e=e.replace(_u,"\n")),e.replace(Eu,"<").replace(ku,">").replace(Su,"&").replace(Fu,'"')}function wn(e,t){function n(t){f+=t,e=e.substring(t)}function r(){var t=e.match(Wa);if(t){var r={tagName:t[1],attrs:[],start:f};n(t[0].length);for(var i,o;!(i=e.match(Ha))&&(o=e.match(Pa));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=f,r}}function i(e){var n=e.tagName,r=e.unarySlash;l&&("p"===u&&Na(n)&&o("",u),Oa(n)&&u===n&&o("",n));for(var i=c(n)||"html"===n&&"head"===u||!!r,a=e.attrs.length,f=new Array(a),h=0;h<a;h++){var d=e.attrs[h];Ga&&d[0].indexOf('""')===-1&&(""===d[3]&&delete d[3],""===d[4]&&delete d[4],""===d[5]&&delete d[5]);var p=d[3]||d[4]||d[5]||"";f[h]={name:d[1],value:An(p,t.shouldDecodeNewlines)}}i||(s.push({tag:n,attrs:f}),u=n,r=""),t.start&&t.start(n,f,i,e.start,e.end)}function o(e,n,r,i){var o;if(null==r&&(r=f),null==i&&(i=f),n){var a=n.toLowerCase();for(o=s.length-1;o>=0&&s[o].tag.toLowerCase()!==a;o--);}else o=0;if(o>=0){for(var l=s.length-1;l>=o;l--)t.end&&t.end(s[l].tag,r,i);s.length=o,u=o&&s[o-1].tag}else"br"===n.toLowerCase()?t.start&&t.start(n,[],!0,r,i):"p"===n.toLowerCase()&&(t.start&&t.start(n,[],!1,r,i),t.end&&t.end(n,r,i))}for(var a,u,s=[],l=t.expectHTML,c=t.isUnaryTag||Ci,f=0;e;){if(a=e,u&&Au(u,t.sfc,s)){var h=u.toLowerCase(),d=wu[h]||(wu[h]=new RegExp("([\\s\\S]*?)(</"+h+"[^>]*>)","i")),p=0,m=e.replace(d,function(e,n,r){return p=r.length,"script"!==h&&"style"!==h&&"noscript"!==h&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),t.chars&&t.chars(n),""});f+=e.length-m.length,e=m,o("</"+h+">",h,f-p,f)}else{var g=e.indexOf("<");if(0===g){if(Va.test(e)){var v=e.indexOf("-->");if(v>=0){n(v+3);continue}}if(Za.test(e)){var y=e.indexOf("]>");if(y>=0){n(y+2);continue}}var b=e.match(qa);if(b){n(b[0].length);continue}var x=e.match(Ua);if(x){var C=f;n(x[0].length),o(x[0],x[1],C,f);continue}var A=r();if(A){i(A);continue}}var w=void 0,E=void 0,k=void 0;if(g>0){for(E=e.slice(g);!(Ua.test(E)||Wa.test(E)||Va.test(E)||Za.test(E)||(k=E.indexOf("<",1),k<0));)g+=k,E=e.slice(g);w=e.substring(0,g),n(g)}g<0&&(w=e,e=""),t.chars&&w&&t.chars(w)}if(e===a&&t.chars){t.chars(e);break}}o()}function En(e){function t(){(a||(a=[])).push(e.slice(p,i).trim()),p=i+1}var n,r,i,o,a,u=!1,s=!1,l=!1,c=!1,f=0,h=0,d=0,p=0;for(i=0;i<e.length;i++)if(r=n,n=e.charCodeAt(i),u)39===n&&92!==r&&(u=!1);else if(s)34===n&&92!==r&&(s=!1);else if(l)96===n&&92!==r&&(l=!1);else if(c)47===n&&92!==r&&(c=!1);else if(124!==n||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||f||h||d){switch(n){case 34:s=!0;break;case 39:u=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:f++;break;case 125:f--}if(47===n){for(var m=i-1,g=void 0;m>=0&&(g=e.charAt(m)," "===g);m--);g&&/[\w$]/.test(g)||(c=!0)}}else void 0===o?(p=i+1,o=e.slice(0,i).trim()):t();if(void 0===o?o=e.slice(0,i).trim():0!==p&&t(),a)for(i=0;i<a.length;i++)o=kn(o,a[i]);return o}function kn(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+","+i}function _n(e,t){var n=t?Tu(t):Du;if(n.test(e)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(e);){i=r.index,i>a&&o.push(JSON.stringify(e.slice(a,i)));var u=En(r[1].trim());o.push("_s("+u+")"),a=i+r[0].length}return a<e.length&&o.push(JSON.stringify(e.slice(a))),o.join("+")}}function Sn(e){console.error("[Vue parser]: "+e)}function Fn(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Dn(e,t,n){(e.props||(e.props=[])).push({name:t,value:n})}function Bn(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n})}function Tn(e,t,n,r,i,o){(e.directives||(e.directives=[])).push({name:t,rawName:n,value:r,arg:i,modifiers:o})}function Ln(e,t,n,r,i){r&&r.capture&&(delete r.capture,t="!"+t),r&&r.once&&(delete r.once,t="~"+t);var o;r&&r.native?(delete r.native,o=e.nativeEvents||(e.nativeEvents={})):o=e.events||(e.events={});var a={value:n,modifiers:r},u=o[t];Array.isArray(u)?i?u.unshift(a):u.push(a):u?o[t]=i?[a,u]:[u,a]:o[t]=a}function Mn(e,t,n){var r=On(e,":"+t)||On(e,"v-bind:"+t);if(null!=r)return En(r);if(n!==!1){var i=On(e,t);if(null!=i)return JSON.stringify(i)}}function On(e,t){var n;if(null!=(n=e.attrsMap[t]))for(var r=e.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===t){r.splice(i,1);break}return n}function Nn(e){if(Qa=e,Ya=Qa.length,Xa=Ja=eu=0,e.indexOf("[")<0||e.lastIndexOf("]")<Ya-1)return{exp:e,idx:null};for(;!jn();)Ka=In(),Rn(Ka)?$n(Ka):91===Ka&&Pn(Ka);return{exp:e.substring(0,Ja),idx:e.substring(Ja+1,eu)}}function In(){return Qa.charCodeAt(++Xa)}function jn(){return Xa>=Ya}function Rn(e){return 34===e||39===e}function Pn(e){var t=1;for(Ja=Xa;!jn();)if(e=In(),Rn(e))$n(e);else if(91===e&&t++,93===e&&t--,0===t){eu=Xa;break}}function $n(e){for(var t=e;!jn()&&(e=In(),e!==t););}function zn(e,t){tu=t.warn||Sn,nu=t.getTagNamespace||Ci,ru=t.mustUseProp||Ci,iu=t.isPreTag||Ci,ou=Fn(t.modules,"preTransformNode"),au=Fn(t.modules,"transformNode"),uu=Fn(t.modules,"postTransformNode"),su=t.delimiters;var n,r,i=[],o=t.preserveWhitespace!==!1,a=!1,u=!1,s=!1;return wn(e,{expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,shouldDecodeNewlines:t.shouldDecodeNewlines,start:function(o,l,c){function f(t){s||("slot"!==t.tag&&"template"!==t.tag||(s=!0,tu("Cannot use <"+t.tag+"> as component root element because it may contain multiple nodes:\n"+e)),t.attrsMap.hasOwnProperty("v-for")&&(s=!0,tu("Cannot use v-for on stateful component root element because it renders multiple elements:\n"+e)))}var h=r&&r.ns||nu(o);Fi&&"svg"===h&&(l=or(l));var d={type:1,tag:o,attrsList:l,attrsMap:rr(l),parent:r,children:[]};h&&(d.ns=h),ir(d)&&!Mi()&&(d.forbidden=!0,tu("Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <"+o+">, as they will not be parsed."));for(var p=0;p<ou.length;p++)ou[p](d,t);if(a||(Wn(d),d.pre&&(a=!0)),iu(d.tag)&&(u=!0),a)Hn(d);else{Vn(d),Zn(d),Kn(d),Un(d),d.plain=!d.key&&!l.length,qn(d),Xn(d),Jn(d);for(var m=0;m<au.length;m++)au[m](d,t);er(d)}if(n?i.length||(n.if&&(d.elseif||d.else)?(f(d),Qn(n,{exp:d.elseif,block:d})):s||(s=!0,tu("Component template should contain exactly one root element:\n\n"+e+"\n\nIf you are using v-if on multiple elements, use v-else-if to chain them instead."))):(n=d,f(n)),r&&!d.forbidden)if(d.elseif||d.else)Gn(d,r);else if(d.slotScope){r.plain=!1;var g=d.slotTarget||"default";(r.scopedSlots||(r.scopedSlots={}))[g]=d}else r.children.push(d),d.parent=r;c||(r=d,i.push(d));for(var v=0;v<uu.length;v++)uu[v](d,t)},end:function(){var e=i[i.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&e.children.pop(),i.length-=1,r=i[i.length-1],e.pre&&(a=!1),iu(e.tag)&&(u=!1)},chars:function(t){if(!r)return void(s||t!==e||(s=!0,tu("Component template requires a root element, rather than just text:\n\n"+e)));if(!Fi||"textarea"!==r.tag||r.attrsMap.placeholder!==t){var n=r.children;if(t=u||t.trim()?Pu(t):o&&n.length?" ":""){var i;!a&&" "!==t&&(i=_n(t,su))?n.push({type:2,expression:i,text:t}):" "===t&&" "===n[n.length-1].text||r.children.push({type:3,text:t})}}}}),n}function Wn(e){null!=On(e,"v-pre")&&(e.pre=!0)}function Hn(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}function Un(e){var t=Mn(e,"key");t&&("template"===e.tag&&tu("<template> cannot be keyed. Place the key on real elements instead."),e.key=t)}function qn(e){var t=Mn(e,"ref");t&&(e.ref=t,e.refInFor=tr(e))}function Vn(e){var t;if(t=On(e,"v-for")){var n=t.match(Mu);if(!n)return void tu("Invalid v-for expression: "+t);e.for=n[2].trim();var r=n[1].trim(),i=r.match(Ou);i?(e.alias=i[1].trim(),e.iterator1=i[2].trim(),i[3]&&(e.iterator2=i[3].trim())):e.alias=r}}function Zn(e){var t=On(e,"v-if");if(t)e.if=t,Qn(e,{exp:t,block:e});else{null!=On(e,"v-else")&&(e.else=!0);var n=On(e,"v-else-if");n&&(e.elseif=n)}}function Gn(e,t){var n=Yn(t.children);n&&n.if?Qn(n,{exp:e.elseif,block:e}):tu("v-"+(e.elseif?'else-if="'+e.elseif+'"':"else")+" used on element <"+e.tag+"> without corresponding v-if.")}function Yn(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];" "!==e[t].text&&tu('text "'+e[t].text.trim()+'" between v-if and v-else(-if) will be ignored.'),e.pop()}}function Qn(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Kn(e){var t=On(e,"v-once");null!=t&&(e.once=!0)}function Xn(e){if("slot"===e.tag)e.slotName=Mn(e,"name"),e.key&&tu("`key` does not work on <slot> because slots are abstract outlets and can possibly expand into multiple elements. Use the key on a wrapping element instead.");else{var t=Mn(e,"slot");t&&(e.slotTarget='""'===t?'"default"':t),"template"===e.tag&&(e.slotScope=On(e,"scope"))}}function Jn(e){var t;(t=Mn(e,"is"))&&(e.component=t),null!=On(e,"inline-template")&&(e.inlineTemplate=!0)}function er(e){var t,n,r,i,o,a,u,s,l=e.attrsList;for(t=0,n=l.length;t<n;t++)if(r=i=l[t].name,o=l[t].value,Lu.test(r))if(e.hasBindings=!0,u=nr(r),u&&(r=r.replace(Ru,"")),Nu.test(r))r=r.replace(Nu,""),o=En(o),s=!1,u&&(u.prop&&(s=!0,r=mi(r),"innerHtml"===r&&(r="innerHTML")),u.camel&&(r=mi(r))),s||ru(e.tag,r)?Dn(e,r,o):Bn(e,r,o);else if(Iu.test(r))r=r.replace(Iu,""),Ln(e,r,o,u);else{r=r.replace(Lu,"");var c=r.match(ju);c&&(a=c[1])&&(r=r.slice(0,-(a.length+1))),Tn(e,r,i,o,a,u),"model"===r&&ar(e,o)}else{var f=_n(o,su);f&&tu(r+'="'+o+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div id="{{ val }}">, use <div :id="val">.'),Bn(e,r,JSON.stringify(o)),ru(e.tag,r)&&("value"===r?Dn(e,r,JSON.stringify(o)):Dn(e,r,"true"))}}function tr(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}function nr(e){var t=e.match(Ru);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function rr(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]&&!Fi&&tu("duplicate attribute: "+e[n].name),t[e[n].name]=e[n].value;return t}function ir(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}function or(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];$u.test(r.name)||(r.name=r.name.replace(zu,""),t.push(r))}return t}function ar(e,t){for(var n=e;n;)n.for&&n.alias===t&&tu("<"+e.tag+' v-model="'+t+'">: You are binding v-model directly to a v-for iteration alias. This will not be able to modify the v-for source array because writing to the alias is like modifying a function local variable. Consider using an array of objects and use v-model on an object property instead.'),n=n.parent}function ur(e,t){e&&(lu=Wu(t.staticKeys||""),cu=t.isReservedTag||Ci,lr(e),cr(e,!1))}function sr(e){return r("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))}function lr(e){if(e.static=hr(e),1===e.type){if(!cu(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];lr(r),r.static||(e.static=!1)}}}function cr(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)cr(e.children[n],t||!!e.for);e.ifConditions&&fr(e.ifConditions,t)}}function fr(e,t){for(var n=1,r=e.length;n<r;n++)cr(e[n].block,t)}function hr(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||hi(e.tag)||!cu(e.tag)||dr(e)||!Object.keys(e).every(lu))))}function dr(e){for(;e.parent;){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}function pr(e,t){var n=t?"nativeOn:{":"on:{";for(var r in e)n+='"'+r+'":'+mr(r,e[r])+",";return n.slice(0,-1)+"}"}function mr(e,t){if(t){if(Array.isArray(t))return"["+t.map(function(t){return mr(e,t)}).join(",")+"]";if(t.modifiers){var n="",r=[];for(var i in t.modifiers)Vu[i]?n+=Vu[i]:r.push(i);r.length&&(n=gr(r)+n);var o=Uu.test(t.value)?t.value+"($event)":t.value;return"function($event){"+n+o+"}"}return Hu.test(t.value)||Uu.test(t.value)?t.value:"function($event){"+t.value+"}"}return"function(){}"}function gr(e){return"if("+e.map(vr).join("&&")+")return;"}function vr(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=qu[e];return"_k($event.keyCode,"+JSON.stringify(e)+(n?","+JSON.stringify(n):"")+")"}function yr(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+(t.modifiers&&t.modifiers.prop?",true":"")+")"}}function br(e,t){var n=gu,r=gu=[],i=vu;vu=0,yu=t,fu=t.warn||Sn,hu=Fn(t.modules,"transformCode"),du=Fn(t.modules,"genData"),pu=t.directives||{},mu=t.isReservedTag||Ci;var o=e?xr(e):'_c("div")';return gu=n,vu=i,{render:"with(this){return "+o+"}",staticRenderFns:r}}function xr(e){if(e.staticRoot&&!e.staticProcessed)return Cr(e);if(e.once&&!e.onceProcessed)return Ar(e);if(e.for&&!e.forProcessed)return kr(e);if(e.if&&!e.ifProcessed)return wr(e);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return jr(e);var t;if(e.component)t=Rr(e.component,e);else{var n=e.plain?void 0:_r(e),r=e.inlineTemplate?null:Tr(e,!0);t="_c('"+e.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var i=0;i<hu.length;i++)t=hu[i](e,t);return t}return Tr(e)||"void 0"}function Cr(e){return e.staticProcessed=!0,gu.push("with(this){return "+xr(e)+"}"),"_m("+(gu.length-1)+(e.staticInFor?",true":"")+")"}function Ar(e){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return wr(e);if(e.staticInFor){for(var t="",n=e.parent;n;){if(n.for){t=n.key;break}n=n.parent}return t?"_o("+xr(e)+","+vu++ +(t?","+t:"")+")":(fu("v-once can only be used inside v-for that is keyed. "),xr(e))}return Cr(e)}function wr(e){return e.ifProcessed=!0,Er(e.ifConditions.slice())}function Er(e){function t(e){return e.once?Ar(e):xr(e)}if(!e.length)return"_e()";var n=e.shift();return n.exp?"("+n.exp+")?"+t(n.block)+":"+Er(e):""+t(n.block)}function kr(e){var t=e.for,n=e.alias,r=e.iterator1?","+e.iterator1:"",i=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+t+"),function("+n+r+i+"){return "+xr(e)+"})"}function _r(e){var t="{",n=Sr(e);n&&(t+=n+","),e.key&&(t+="key:"+e.key+","),e.ref&&(t+="ref:"+e.ref+","),e.refInFor&&(t+="refInFor:true,"),e.pre&&(t+="pre:true,"),e.component&&(t+='tag:"'+e.tag+'",');for(var r=0;r<du.length;r++)t+=du[r](e);if(e.attrs&&(t+="attrs:{"+Pr(e.attrs)+"},"),e.props&&(t+="domProps:{"+Pr(e.props)+"},"),e.events&&(t+=pr(e.events)+","),e.nativeEvents&&(t+=pr(e.nativeEvents,!0)+","),e.slotTarget&&(t+="slot:"+e.slotTarget+","),e.scopedSlots&&(t+=Dr(e.scopedSlots)+","),e.inlineTemplate){var i=Fr(e);i&&(t+=i+",")}return t=t.replace(/,$/,"")+"}",e.wrapData&&(t=e.wrapData(t)),t}function Sr(e){var t=e.directives;if(t){var n,r,i,o,a="directives:[",u=!1;for(n=0,r=t.length;n<r;n++){i=t[n],o=!0;var s=pu[i.name]||Zu[i.name];s&&(o=!!s(e,i,fu)),o&&(u=!0,a+='{name:"'+i.name+'",rawName:"'+i.rawName+'"'+(i.value?",value:("+i.value+"),expression:"+JSON.stringify(i.value):"")+(i.arg?',arg:"'+i.arg+'"':"")+(i.modifiers?",modifiers:"+JSON.stringify(i.modifiers):"")+"},")}return u?a.slice(0,-1)+"]":void 0}}function Fr(e){var t=e.children[0];if((e.children.length>1||1!==t.type)&&fu("Inline-template components must have exactly one child element."),1===t.type){var n=br(t,yu);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function Dr(e){return"scopedSlots:{"+Object.keys(e).map(function(t){return Br(t,e[t])}).join(",")+"}"}function Br(e,t){return e+":function("+String(t.attrsMap.scope)+"){return "+("template"===t.tag?Tr(t)||"void 0":xr(t))+"}"}function Tr(e,t){var n=e.children;if(n.length){var r=n[0];if(1===n.length&&r.for&&"template"!==r.tag&&"slot"!==r.tag)return xr(r);var i=Lr(n);return"["+n.map(Nr).join(",")+"]"+(t&&i?","+i:"")}}function Lr(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];if(Mr(r)||r.if&&r.ifConditions.some(function(e){return Mr(e.block)})){t=2;break}(Or(r)||r.if&&r.ifConditions.some(function(e){return Or(e.block)}))&&(t=1)}return t}function Mr(e){return e.for||"template"===e.tag||"slot"===e.tag}function Or(e){return 1===e.type&&!mu(e.tag)}function Nr(e){return 1===e.type?xr(e):Ir(e)}function Ir(e){return"_v("+(2===e.type?e.expression:$r(JSON.stringify(e.text)))+")"}function jr(e){var t=e.slotName||'"default"',n=Tr(e),r="_t("+t+(n?","+n:""),i=e.attrs&&"{"+e.attrs.map(function(e){return mi(e.name)+":"+e.value}).join(",")+"}",o=e.attrsMap["v-bind"];return!i&&!o||n||(r+=",null"),i&&(r+=","+i),o&&(r+=(i?"":",null")+","+o),r+")"}function Rr(e,t){var n=t.inlineTemplate?null:Tr(t,!0);return"_c("+e+","+_r(t)+(n?","+n:"")+")"}function Pr(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+$r(r.value)+","}return t.slice(0,-1)}function $r(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function zr(e,t){var n=zn(e.trim(),t);ur(n,t);var r=br(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}}function Wr(e){var t=[];return e&&Hr(e,t),t}function Hr(e,t){if(1===e.type){for(var n in e.attrsMap)if(Lu.test(n)){var r=e.attrsMap[n];r&&("v-for"===n?Ur(e,'v-for="'+r+'"',t):Vr(r,n+'="'+r+'"',t))}if(e.children)for(var i=0;i<e.children.length;i++)Hr(e.children[i],t)}else 2===e.type&&Vr(e.expression,e.text,t)}function Ur(e,t,n){Vr(e.for||"",t,n),qr(e.alias,"v-for alias",t,n),qr(e.iterator1,"v-for iterator",t,n),qr(e.iterator2,"v-for iterator",t,n)}function qr(e,t,n,r){"string"!=typeof e||Yu.test(e)||r.push("- invalid "+t+' "'+e+'" in expression: '+n)}function Vr(e,t,n){try{new Function("return "+e)}catch(i){var r=e.replace(Qu,"").match(Gu);r?n.push('- avoid using JavaScript keyword as property name: "'+r[0]+'" in expression '+t):n.push("- invalid expression: "+t)}}function Zr(e,t){var n=t.warn||Sn,r=On(e,"class");if(r){var i=_n(r,t.delimiters);i&&n('class="'+r+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.')}r&&(e.staticClass=JSON.stringify(r));var o=Mn(e,"class",!1);o&&(e.classBinding=o)}function Gr(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}function Yr(e,t){var n=t.warn||Sn,r=On(e,"style");if(r){var i=_n(r,t.delimiters);i&&n('style="'+r+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div style="{{ val }}">, use <div :style="val">.'),e.staticStyle=JSON.stringify(ta(r))}var o=Mn(e,"style",!1);o&&(e.styleBinding=o)}function Qr(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}function Kr(e,t,n){bu=n;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type,u=e.attrsMap["v-bind:type"]||e.attrsMap[":type"];return"input"===o&&u&&bu('<input :type="'+u+'" v-model="'+r+'">:\nv-model does not support dynamic input types. Use v-if branches instead.'),"select"===o?ti(e,r,i):"input"===o&&"checkbox"===a?Xr(e,r,i):"input"===o&&"radio"===a?Jr(e,r,i):ei(e,r,i),!0}function Xr(e,t,n){null!=e.attrsMap.checked&&bu("<"+e.tag+' v-model="'+t+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=Mn(e,"value")||"null",o=Mn(e,"true-value")||"true",a=Mn(e,"false-value")||"false";Dn(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ln(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+t+"=$$a.concat($$v))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+t+"=$$c}",null,!0)}function Jr(e,t,n){null!=e.attrsMap.checked&&bu("<"+e.tag+' v-model="'+t+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=Mn(e,"value")||"null";i=r?"_n("+i+")":i,Dn(e,"checked","_q("+t+","+i+")"),Ln(e,"change",ri(t,i),null,!0)}function ei(e,t,n){"input"===e.tag&&e.attrsMap.value&&bu("<"+e.tag+' v-model="'+t+'" value="'+e.attrsMap.value+"\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."),"textarea"===e.tag&&e.children.length&&bu('<textarea v-model="'+t+"\">:\ninline content inside <textarea> will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,u=i.trim,s=o||Fi&&"range"===r?"change":"input",l=!o&&"range"!==r,c="input"===e.tag||"textarea"===e.tag,f=c?"$event.target.value"+(u?".trim()":""):u?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";f=a||"number"===r?"_n("+f+")":f;var h=ri(t,f);c&&l&&(h="if($event.target.composing)return;"+h),"file"===r&&bu("<"+e.tag+' v-model="'+t+'" type="file">:\nFile inputs are read only. Use a v-on:change listener instead.'),Dn(e,"value",c?"_s("+t+")":"("+t+")"),Ln(e,s,h,null,!0),(u||a||"number"===r)&&Ln(e,"blur","$forceUpdate()")}function ti(e,t,n){e.children.some(ni);var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==e.attrsMap.multiple?"[0]":""),o=ri(t,i);Ln(e,"change",o,null,!0)}function ni(e){return 1===e.type&&"option"===e.tag&&null!=e.attrsMap.selected&&(bu('<select v-model="'+e.parent.attrsMap["v-model"]+"\">:\ninline selected attributes on <option> will be ignored when using v-model. Declare initial values in the component's data option instead."),!0)}function ri(e,t){var n=Nn(e);return null===n.idx?e+"="+t:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+e+"="+t+"}else{$$exp.splice($$idx, 1, "+t+")}"}function ii(e,t){t.value&&Dn(e,"textContent","_s("+t.value+")")}function oi(e,t){t.value&&Dn(e,"innerHTML","_s("+t.value+")")}function ai(e,t){return t=t?c(c({},ns),t):ns,zr(e,t)}function ui(e,t,n){var r=t&&t.warn||ji;try{new Function("return 1")}catch(e){e.toString().match(/unsafe-eval|CSP/)&&r("It seems you are using the standalone build of Vue.js in an environment with Content Security Policy that prohibits unsafe-eval. The template compiler cannot work in this environment. Consider relaxing the policy to allow unsafe-eval or pre-compiling your templates into render functions.")}var i=t&&t.delimiters?String(t.delimiters)+e:e;if(ts[i])return ts[i];var o={},a=ai(e,t);o.render=si(a.render);var u=a.staticRenderFns.length;o.staticRenderFns=new Array(u);for(var s=0;s<u;s++)o.staticRenderFns[s]=si(a.staticRenderFns[s]);return(o.render===p||o.staticRenderFns.some(function(e){return e===p}))&&r("failed to compile template:\n\n"+e+"\n\n"+Wr(a.ast).join("\n")+"\n\n",n),ts[i]=o}function si(e){try{return new Function(e)}catch(e){return p}}function li(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var ci,fi,hi=r("slot,component",!0),di=Object.prototype.hasOwnProperty,pi=/-(\w)/g,mi=u(function(e){return e.replace(pi,function(e,t){return t?t.toUpperCase():""})}),gi=u(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),vi=/([^-])([A-Z])/g,yi=u(function(e){
  return e.replace(vi,"$1-$2").replace(vi,"$1-$2").toLowerCase()}),bi=Object.prototype.toString,xi="[object Object]",Ci=function(){return!1},Ai=function(e){return e},wi={optionMergeStrategies:Object.create(null),silent:!1,devtools:!0,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Ci,isUnknownElement:Ci,getTagNamespace:p,parsePlatformTagName:Ai,mustUseProp:Ci,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100},Ei=/[^\w.$]/,ki="__proto__"in{},_i="undefined"!=typeof window,Si=_i&&window.navigator.userAgent.toLowerCase(),Fi=Si&&/msie|trident/.test(Si),Di=Si&&Si.indexOf("msie 9.0")>0,Bi=Si&&Si.indexOf("edge/")>0,Ti=Si&&Si.indexOf("android")>0,Li=Si&&/iphone|ipad|ipod|ios/.test(Si),Mi=function(){return void 0===ci&&(ci=!_i&&"undefined"!=typeof t&&"server"===t.process.env.VUE_ENV),ci},Oi=_i&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ni=function(){function e(){r=!1;var e=n.slice(0);n.length=0;for(var t=0;t<e.length;t++)e[t]()}var t,n=[],r=!1;if("undefined"!=typeof Promise&&C(Promise)){var i=Promise.resolve(),o=function(e){console.error(e)};t=function(){i.then(e).catch(o),Li&&setTimeout(p)}}else if("undefined"==typeof MutationObserver||!C(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())t=function(){setTimeout(e,0)};else{var a=1,u=new MutationObserver(e),s=document.createTextNode(String(a));u.observe(s,{characterData:!0}),t=function(){a=(a+1)%2,s.data=String(a)}}return function(e,i){var o;if(n.push(function(){e&&e.call(i),o&&o(i)}),r||(r=!0,t()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){o=e})}}();fi="undefined"!=typeof Set&&C(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return this.set[e]===!0},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Ii,ji=p,Ri="undefined"!=typeof console;ji=function(e,t){Ri&&!wi.silent&&console.error("[Vue warn]: "+e+" "+(t?Pi(Ii(t)):""))},Ii=function(e){if(e.$root===e)return"root instance";var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?"component <"+t+">":"anonymous component")+(e._isVue&&e.$options.__file?" at "+e.$options.__file:"")};var Pi=function(e){return"anonymous component"===e&&(e+=' - use the "name" option for better debugging messages.'),"\n(found in "+e+")"},$i=0,zi=function(){this.id=$i++,this.subs=[]};zi.prototype.addSub=function(e){this.subs.push(e)},zi.prototype.removeSub=function(e){i(this.subs,e)},zi.prototype.depend=function(){zi.target&&zi.target.addDep(this)},zi.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},zi.target=null;var Wi=[],Hi=Array.prototype,Ui=Object.create(Hi);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=Hi[e];b(Ui,e,function(){for(var n=arguments,r=arguments.length,i=new Array(r);r--;)i[r]=n[r];var o,a=t.apply(this,i),u=this.__ob__;switch(e){case"push":o=i;break;case"unshift":o=i;break;case"splice":o=i.slice(2)}return o&&u.observeArray(o),u.dep.notify(),a})});var qi=Object.getOwnPropertyNames(Ui),Vi={shouldConvert:!0,isSettingProps:!1},Zi=function(e){if(this.value=e,this.dep=new zi,this.vmCount=0,b(e,"__ob__",this),Array.isArray(e)){var t=ki?E:k;t(e,Ui,qi),this.observeArray(e)}else this.walk(e)};Zi.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)S(e,t[n],e[t[n]])},Zi.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)_(e[t])};var Gi=wi.optionMergeStrategies;Gi.el=Gi.propsData=function(e,t,n,r){return n||ji('option "'+r+'" can only be used during instance creation with the `new` keyword.'),Qi(e,t)},Gi.data=function(e,t,n){return n?e||t?function(){var r="function"==typeof t?t.call(n):t,i="function"==typeof e?e.call(n):void 0;return r?T(r,i):i}:void 0:t?"function"!=typeof t?(ji('The "data" option should be a function that returns a per-instance value in component definitions.',n),e):e?function(){return T(t.call(this),e.call(this))}:t:e},wi._lifecycleHooks.forEach(function(e){Gi[e]=L}),wi._assetTypes.forEach(function(e){Gi[e+"s"]=M}),Gi.watch=function(e,t){if(!t)return e;if(!e)return t;var n={};c(n,e);for(var r in t){var i=n[r],o=t[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):[o]}return n},Gi.props=Gi.methods=Gi.computed=function(e,t){if(!t)return e;if(!e)return t;var n=Object.create(null);return c(n,e),c(n,t),n};var Yi,Qi=function(e,t){return void 0===t?e:t},Ki=Object.freeze({defineReactive:S,_toString:e,toNumber:n,makeMap:r,isBuiltInTag:hi,remove:i,hasOwn:o,isPrimitive:a,cached:u,camelize:mi,capitalize:gi,hyphenate:yi,bind:s,toArray:l,extend:c,isObject:f,isPlainObject:h,toObject:d,noop:p,no:Ci,identity:Ai,genStaticKeys:m,looseEqual:g,looseIndexOf:v,isReserved:y,def:b,parsePath:x,hasProto:ki,inBrowser:_i,UA:Si,isIE:Fi,isIE9:Di,isEdge:Bi,isAndroid:Ti,isIOS:Li,isServerRendering:Mi,devtools:Oi,nextTick:Ni,get _Set(){return fi},mergeOptions:j,resolveAsset:R,get warn(){return ji},get formatComponentName(){return Ii},validateProp:P}),Xi=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,require"),Ji=function(e,t){ji('Property or method "'+t+'" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.',e)},eo="undefined"!=typeof Proxy&&Proxy.toString().match(/native code/);if(eo){var to=r("stop,prevent,self,ctrl,shift,alt,meta");wi.keyCodes=new Proxy(wi.keyCodes,{set:function(e,t,n){return to(t)?(ji("Avoid overwriting built-in modifier in config.keyCodes: ."+t),!1):(e[t]=n,!0)}})}var no={has:function e(t,n){var e=n in t,r=Xi(n)||"_"===n.charAt(0);return e||r||Ji(t,n),e||!r}},ro={get:function(e,t){return"string"!=typeof t||t in e||Ji(e,t),e[t]}};Yi=function(e){if(eo){var t=e.$options,n=t.render&&t.render._withStripped?ro:no;e._renderProxy=new Proxy(e,n)}else e._renderProxy=e};var io=[],oo={},ao={},uo=!1,so=!1,lo=0,co=0,fo=function(e,t,n,r){this.vm=e,e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++co,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fi,this.newDepIds=new fi,this.expression=t.toString(),"function"==typeof t?this.getter=t:(this.getter=x(t),this.getter||(this.getter=function(){},ji('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};fo.prototype.get=function(){A(this);var e=this.getter.call(this.vm,this.vm);return this.deep&&G(e),w(),this.cleanupDeps(),e},fo.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fo.prototype.cleanupDeps=function(){for(var e=this,t=this.deps.length;t--;){var n=e.deps[t];e.newDepIds.has(n.id)||n.removeSub(e)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},fo.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Z(this)},fo.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||f(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){if(!wi.errorHandler)throw ji('Error in watcher "'+this.expression+'"',this.vm),e;wi.errorHandler.call(null,e,this.vm)}else this.cb.call(this.vm,e,t)}}},fo.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fo.prototype.depend=function(){for(var e=this,t=this.deps.length;t--;)e.deps[t].depend()},fo.prototype.teardown=function(){var e=this;if(this.active){this.vm._isBeingDestroyed||i(this.vm._watchers,this);for(var t=this.deps.length;t--;)e.deps[t].removeSub(e);this.active=!1}};var ho,po=new fi,mo={key:1,ref:1,slot:1},go={enumerable:!0,configurable:!0,get:p,set:p},vo=function(e,t,n,r,i,o,a){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=t&&t.key,this.componentOptions=a,this.child=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1},yo=function(){var e=new vo;return e.text="",e.isComment=!0,e},bo=null,xo={init:Fe,prepatch:De,insert:Be,destroy:Te},Co=Object.keys(xo),Ao=1,wo=2,Eo=0;He(Ve),ie(Ve),Ce(Ve),we(Ve),ze(Ve);var ko=[String,RegExp],_o={name:"keep-alive",abstract:!0,props:{include:ko,exclude:ko},created:function(){this.cache=Object.create(null)},render:function(){var e=ge(this.$slots.default);if(e&&e.componentOptions){var t=e.componentOptions,n=t.Ctor.options.name||t.tag;if(n&&(this.include&&!Ke(this.include,n)||this.exclude&&Ke(this.exclude,n)))return e;var r=null==e.key?t.Ctor.cid+(t.tag?"::"+t.tag:""):e.key;this.cache[r]?e.child=this.cache[r].child:this.cache[r]=e,e.data.keepAlive=!0}return e},destroyed:function(){var e=this;for(var t in this.cache){var n=e.cache[t];Ee(n.child,"deactivated"),n.child.$destroy()}}},So={KeepAlive:_o};Xe(Ve),Object.defineProperty(Ve.prototype,"$isServer",{get:Mi}),Ve.version="2.1.8";var Fo,Do,Bo=r("input,textarea,option,select"),To=function(e,t){return"value"===t&&Bo(e)||"selected"===t&&"option"===e||"checked"===t&&"input"===e||"muted"===t&&"video"===e},Lo=r("contenteditable,draggable,spellcheck"),Mo=r("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oo="http://www.w3.org/1999/xlink",No=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Io=function(e){return No(e)?e.slice(6,e.length):""},jo=function(e){return null==e||e===!1},Ro={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Po=r("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template"),$o=r("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),zo=function(e){return"pre"===e},Wo=function(e){return Po(e)||$o(e)},Ho=Object.create(null),Uo=Object.freeze({createElement:ut,createElementNS:st,createTextNode:lt,createComment:ct,insertBefore:ft,removeChild:ht,appendChild:dt,parentNode:pt,nextSibling:mt,tagName:gt,setTextContent:vt,setAttribute:yt}),qo={create:function(e,t){bt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(bt(e,!0),bt(t))},destroy:function(e){bt(e,!0)}},Vo=new vo("",{},[]),Zo=["create","activate","update","remove","destroy"],Go={create:kt,update:kt,destroy:function(e){kt(e,Vo)}},Yo=Object.create(null),Qo=[qo,Go],Ko={create:Bt,update:Bt},Xo={create:Lt,update:Lt},Jo={create:Nt,update:Nt},ea={create:It,update:It},ta=u(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),na=/^--/,ra=/\s*!important$/,ia=function(e,t,n){na.test(t)?e.style.setProperty(t,n):ra.test(n)?e.style.setProperty(t,n.replace(ra,""),"important"):e.style[aa(t)]=n},oa=["Webkit","Moz","ms"],aa=u(function(e){if(Do=Do||document.createElement("div"),e=mi(e),"filter"!==e&&e in Do.style)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<oa.length;n++){var r=oa[n]+t;if(r in Do.style)return r}}),ua={create:Ht,update:Ht},sa=_i&&!Di,la="transition",ca="animation",fa="transition",ha="transitionend",da="animation",pa="animationend";sa&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fa="WebkitTransition",ha="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(da="WebkitAnimation",pa="webkitAnimationEnd"));var ma=_i&&window.requestAnimationFrame||setTimeout,ga=/\b(transform|all)(,|$)/,va=u(function(e){return{enterClass:e+"-enter",leaveClass:e+"-leave",appearClass:e+"-enter",enterToClass:e+"-enter-to",leaveToClass:e+"-leave-to",appearToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveActiveClass:e+"-leave-active",appearActiveClass:e+"-enter-active"}}),ya=_i?{create:rn,activate:rn,remove:function(e,t){e.data.show?t():en(e,t)}}:{},ba=[Ko,Xo,Jo,ea,ua,ya],xa=ba.concat(Qo),Ca=Et({nodeOps:Uo,modules:xa}),Aa=/^input|select|textarea|vue-component-[0-9]+(-[0-9a-zA-Z_-]*)?$/;Di&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&cn(e,"input")});var wa={inserted:function(e,t,n){if(Aa.test(n.tag)||ji("v-model is not supported on element type: <"+n.tag+">. If you are working with contenteditable, it's recommended to wrap a library dedicated for that purpose inside a custom component.",n.context),"select"===n.tag){var r=function(){on(e,t,n.context)};r(),(Fi||Bi)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==e.type||(e._vModifiers=t.modifiers,t.modifiers.lazy||(Ti||(e.addEventListener("compositionstart",sn),e.addEventListener("compositionend",ln)),Di&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){on(e,t,n.context);var r=e.multiple?t.value.some(function(t){return an(t,e.options)}):t.value!==t.oldValue&&an(t.value,e.options);r&&cn(e,"change")}}},Ea={bind:function(e,t,n){var r=t.value;n=fn(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i&&!Di?(n.data.show=!0,Jt(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(r!==i){n=fn(n);var o=n.data&&n.data.transition;o&&!Di?(n.data.show=!0,r?Jt(n,function(){e.style.display=e.__vOriginalDisplay}):en(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},ka={model:wa,show:Ea},_a={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String},Sa={name:"transition",props:_a,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag}),n.length)){n.length>1&&ji("<transition> can only be used on a single element. Use <transition-group> for lists.",this.$parent);var r=this.mode;r&&"in-out"!==r&&"out-in"!==r&&ji("invalid <transition> mode: "+r,this.$parent);var i=n[0];if(mn(this.$vnode))return i;var o=hn(i);if(!o)return i;if(this._leaving)return pn(e,i);var a=o.key=null==o.key||o.isStatic?"__v"+(o.tag+this._uid)+"__":o.key,u=(o.data||(o.data={})).transition=dn(this),s=this._vnode,l=hn(s);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),l&&l.data&&!gn(o,l)){var f=l&&(l.data.transition=c({},u));if("out-in"===r)return this._leaving=!0,le(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()},a),pn(e,i);if("in-out"===r){var h,d=function(){h()};le(u,"afterEnter",d,a),le(u,"enterCancelled",d,a),le(f,"delayLeave",function(e){h=e},a)}}return i}}},Fa=c({tag:String,moveClass:String},_a);delete Fa.mode;var Da={props:Fa,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=dn(this),u=0;u<i.length;u++){var s=i[u];if(s.tag)if(null!=s.key&&0!==String(s.key).indexOf("__vlist"))o.push(s),n[s.key]=s,(s.data||(s.data={})).transition=a;else{var l=s.componentOptions,c=l?l.Ctor.options.name||l.tag:s.tag;ji("<transition-group> children must be keyed: <"+c+">")}}if(r){for(var f=[],h=[],d=0;d<r.length;d++){var p=r[d];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?f.push(p):h.push(p)}this.kept=e(t,null,f),this.removed=h}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";if(e.length&&this.hasMove(e[0].elm,t)){e.forEach(vn),e.forEach(yn),e.forEach(bn);document.body.offsetHeight;e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Zt(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ha,n._moveCb=function e(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ha,e),n._moveCb=null,Gt(n,t))})}})}},methods:{hasMove:function(e,t){if(!sa)return!1;if(null!=this._hasMove)return this._hasMove;Zt(e,t);var n=Qt(e);return Gt(e,t),this._hasMove=n.hasTransform}}},Ba={Transition:Sa,TransitionGroup:Da};Ve.config.isUnknownElement=ot,Ve.config.isReservedTag=Wo,Ve.config.getTagNamespace=it,Ve.config.mustUseProp=To,c(Ve.options.directives,ka),c(Ve.options.components,Ba),Ve.prototype.__patch__=_i?Ca:p,Ve.prototype.$mount=function(e,t){return e=e&&_i?at(e):void 0,this._mount(e,t)},_i&&"undefined"!=typeof console&&console[console.info?"info":"log"]("You are running Vue in development mode.\nMake sure to turn on production mode when deploying for production.\nSee more tips at https://vuejs.org/guide/deployment.html"),setTimeout(function(){wi.devtools&&(Oi?Oi.emit("init",Ve):_i&&!Bi&&/Chrome\/\d+/.test(window.navigator.userAgent)&&console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\nhttps://github.com/vuejs/vue-devtools"))},0);var Ta,La=!!_i&&xn("\n","&#10;"),Ma=r("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),Oa=r("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),Na=r("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),Ia=/([^\s"'<>\/=]+)/,ja=/(?:=)/,Ra=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Pa=new RegExp("^\\s*"+Ia.source+"(?:\\s*("+ja.source+")\\s*(?:"+Ra.join("|")+"))?"),$a="[a-zA-Z_][\\w\\-\\.]*",za="((?:"+$a+"\\:)?"+$a+")",Wa=new RegExp("^<"+za),Ha=/^\s*(\/?)>/,Ua=new RegExp("^<\\/"+za+"[^>]*>"),qa=/^<!DOCTYPE [^>]+>/i,Va=/^<!--/,Za=/^<!\[/,Ga=!1;"x".replace(/x(.)?/g,function(e,t){Ga=""===t});var Ya,Qa,Ka,Xa,Ja,eu,tu,nu,ru,iu,ou,au,uu,su,lu,cu,fu,hu,du,pu,mu,gu,vu,yu,bu,xu=r("script,style",!0),Cu=function(e){return"lang"===e.name&&"html"!==e.value},Au=function(e,t,n){return!!xu(e)||!(!t||1!==n.length)&&!("template"===e&&!n[0].attrs.some(Cu))},wu={},Eu=/&lt;/g,ku=/&gt;/g,_u=/&#10;/g,Su=/&amp;/g,Fu=/&quot;/g,Du=/\{\{((?:.|\n)+?)\}\}/g,Bu=/[-.*+?^${}()|[\]\/\\]/g,Tu=u(function(e){var t=e[0].replace(Bu,"\\$&"),n=e[1].replace(Bu,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),Lu=/^v-|^@|^:/,Mu=/(.*?)\s+(?:in|of)\s+(.*)/,Ou=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,Nu=/^:|^v-bind:/,Iu=/^@|^v-on:/,ju=/:(.*)$/,Ru=/\.[^.]+/g,Pu=u(Cn),$u=/^xmlns:NS\d+/,zu=/^NS\d+:/,Wu=u(sr),Hu=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Uu=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,qu={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Vu={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;",ctrl:"if(!$event.ctrlKey)return;",shift:"if(!$event.shiftKey)return;",alt:"if(!$event.altKey)return;",meta:"if(!$event.metaKey)return;"},Zu={bind:yr,cloak:p},Gu=new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),Yu=/[A-Za-z_$][\w$]*/,Qu=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,Ku={staticKeys:["staticClass"],transformNode:Zr,genData:Gr},Xu={staticKeys:["staticStyle"],transformNode:Yr,genData:Qr},Ju=[Ku,Xu],es={model:Kr,text:ii,html:oi},ts=Object.create(null),ns={expectHTML:!0,modules:Ju,staticKeys:m(Ju),directives:es,isReservedTag:Wo,isUnaryTag:Ma,mustUseProp:To,getTagNamespace:it,isPreTag:zo},rs=u(function(e){var t=at(e);return t&&t.innerHTML}),is=Ve.prototype.$mount;return Ve.prototype.$mount=function(e,t){if(e=e&&at(e),e===document.body||e===document.documentElement)return ji("Do not mount Vue to <html> or <body> - mount to normal elements instead."),this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=rs(r),r||ji("Template element not found or is empty: "+n.template,this));else{if(!r.nodeType)return ji("invalid template option:"+r,this),this;r=r.innerHTML}else e&&(r=li(e));if(r){var i=ui(r,{warn:ji,shouldDecodeNewlines:La,delimiters:n.delimiters},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return is.call(this,e,t)},Ve.compile=ui,Ve})}).call(t,n(4))},function(e,t,n){"use strict";"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function t(e){function t(e){e.parentElement.removeChild(e)}function n(e,t,n){n<e.children.length?e.insertBefore(t,e.children[n]):e.appendChild(t)}function r(e,t){return e.map(function(e){return e.elm}).indexOf(t)}function i(e,t,n){e&&e.splice(n,0,e.splice(t,1)[0])}function o(e,t){return e?Array.prototype.map.call(t,function(t){return r(e,t)}):[]}function a(e,t){var n=Object(e);for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n}function u(e,t){this.$emit(e.toLowerCase(),t)}function s(e){var t=this;return function(n){t["onDrag"+e](n),u.call(t,e,n)}}var l=["Start","Add","Remove","Update","End"],c=["Choose","Sort","Filter","Move","Clone"],f=l.concat(c).map(function(e){return"on"+e}),h={options:Object,list:{type:Array,required:!1,default:null},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"}},d={props:h,data:function(){return{transitionMode:!1}},render:function(e){if(this.$slots.default&&1===this.$slots.default.length){var t=this.$slots.default[0];t.componentOptions&&"transition-group"===t.componentOptions.tag&&(this.transitionMode=!0)}return e(this.element,null,this.$slots.default)},mounted:function(){var t=this,n={};l.forEach(function(e){n["on"+e]=s.call(t,e)}),c.forEach(function(e){n["on"+e]=u.bind(t,e)});var r=a(this.options,n);this._sortable=new e(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},updated:function(){this.computeIndexes()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el}},watch:{options:function(e){for(var t in e)f.indexOf(t)==-1&&this._sortable.option(t,e[t])}},methods:{getChildrenNodes:function(){var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick(function(){e.visibleIndexes=o(e.getChildrenNodes(),e.rootContainer.children)})},onDragStart:function(e){if(this.list){var t=r(this.getChildrenNodes(),e.item),n=this.list[t];this.context={currentIndex:t,element:n},e.item._underlying_vm_=this.clone(n)}},onDragAdd:function(e){var n=e.item._underlying_vm_;if(this.list&&void 0!==n){t(e.item);var r=this.visibleIndexes,i=e.newIndex,o=r.length,a=i>o-1?o:r[i];this.list.splice(a,0,n),this.computeIndexes()}},onDragRemove:function(e){if(this.list){n(this.rootContainer,e.item,e.oldIndex);var r=!!e.clone;if(r)return void t(e.clone);var i=this.context.currentIndex;this.list.splice(i,1)}},onDragUpdate:function(e){if(this.list){t(e.item),n(e.from,e.item,e.oldIndex);var r=this.context.currentIndex,o=this.visibleIndexes[e.newIndex];i(this.list,r,o)}},onDragEnd:function(e){this.computeIndexes()}}};return d}var r=n(81);e.exports=t(r)}()},function(e,t){!function(){"use strict";function t(e){e.permitHostObjects___&&e.permitHostObjects___(t)}function n(e){return!(e.substr(0,d.length)==d&&"___"===e.substr(e.length-3))}function r(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[p];if(t&&t.key===e)return t;if(h(e)){t={key:e};try{return f(e,p,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(e){return}}}function i(e){return e.prototype=null,Object.freeze(e)}function o(){y||"undefined"==typeof console||(y=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}if("undefined"==typeof ses||!ses.ok||ses.ok()){"undefined"!=typeof ses&&(ses.weakMapPermitHostObjects=t);var a=!1;if("function"==typeof WeakMap){var u=WeakMap;if("undefined"!=typeof navigator&&/Firefox/.test(navigator.userAgent));else{var s=new u,l=Object.freeze({});if(s.set(l,1),1===s.get(l))return void(e.exports=WeakMap);a=!0}}var c=(Object.prototype.hasOwnProperty,Object.getOwnPropertyNames),f=Object.defineProperty,h=Object.isExtensible,d="weakmap:",p=d+"ident:"+Math.random()+"___";if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&"function"==typeof ArrayBuffer&&"function"==typeof Uint8Array){var m=new ArrayBuffer(25),g=new Uint8Array(m);crypto.getRandomValues(g),p=d+"rand:"+Array.prototype.map.call(g,function(e){return(e%36).toString(36)}).join("")+"___"}if(f(Object,"getOwnPropertyNames",{value:function(e){return c(e).filter(n)}}),"getPropertyNames"in Object){var v=Object.getPropertyNames;f(Object,"getPropertyNames",{value:function(e){return v(e).filter(n)}})}!function(){var e=Object.freeze;f(Object,"freeze",{value:function(t){return r(t),e(t)}});var t=Object.seal;f(Object,"seal",{value:function(e){return r(e),t(e)}});var n=Object.preventExtensions;f(Object,"preventExtensions",{value:function(e){return r(e),n(e)}})}();var y=!1,b=0,x=function(){function e(e,t){var n,i=r(e);return i?l in i?i[l]:t:(n=u.indexOf(e),n>=0?s[n]:t)}function t(e){var t=r(e);return t?l in t:u.indexOf(e)>=0}function n(e,t){var n,i=r(e);return i?i[l]=t:(n=u.indexOf(e),n>=0?s[n]=t:(n=u.length,s[n]=t,u[n]=e)),this}function a(e){var t,n,i=r(e);return i?l in i&&delete i[l]:(t=u.indexOf(e),!(t<0)&&(n=u.length-1,u[t]=void 0,s[t]=s[n],u[t]=u[n],u.length=n,s.length=n,!0))}this instanceof x||o();var u=[],s=[],l=b++;return Object.create(x.prototype,{get___:{value:i(e)},has___:{value:i(t)},set___:{value:i(n)},delete___:{value:i(a)}})};x.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},delete:{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"==typeof u?!function(){function n(){function e(e,t){return c?l.has(e)?l.get(e):c.get___(e,t):l.get(e,t)}function n(e){return l.has(e)||!!c&&c.has___(e)}function r(e){var t=!!l.delete(e);return c?c.delete___(e)||t:t}this instanceof x||o();var s,l=new u,c=void 0,f=!1;return s=a?function(e,t){return l.set(e,t),l.has(e)||(c||(c=new x),c.set(e,t)),this}:function(e,t){if(f)try{l.set(e,t)}catch(n){c||(c=new x),c.set___(e,t)}else l.set(e,t);return this},Object.create(x.prototype,{get___:{value:i(e)},has___:{value:i(n)},set___:{value:i(s)},delete___:{value:i(r)},permitHostObjects___:{value:i(function(e){if(e!==t)throw new Error("bogus call to permitHostObjects___");f=!0})}})}a&&"undefined"!=typeof Proxy&&(Proxy=void 0),n.prototype=x.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!=typeof Proxy&&(Proxy=void 0),e.exports=x)}}()},function(e,t,n){var r=n(24);"string"==typeof r&&(r=[[e.i,r,""]]);n(7)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(25);"string"==typeof r&&(r=[[e.i,r,""]]);n(7)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);n(7)(r,{});r.locals&&(e.exports=r.locals)},function(e,t){e.exports=jQuery},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(8);n(23);var i=document.getElementsByTagName("script"),o=i[i.length-1].src,a=document.createElement("a");a.href=o;var u=a.href.replace(/\/[^\/]+$/,""),s=n(22);window&&!window.RichArea&&(window.RichArea=s),r.merge(s.options,{mode:"edit",assetRoot:u,layoutUrls:[u+"/layouts/layouts.html"],editors:{}}),e.exports=s}]);