!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,t.SimpleMDE=e()}}(function(){vare;returnfunctione(t,n,r){functioni(a,l){if(!n[a]){if(!t[a]){vars="function"==typeofrequire&&require;if(!l&&s)returns(a,!0);if(o)returno(a,!0);varc=newError("Cannot find module '"+a+"'");throwc.code="MODULE_NOT_FOUND",c}varu=n[a]={exports:{}};t[a][0].call(u.exports,function(e){varn=t[a][1][e];returni(n||e)},u,u.exports,e,t,n,r)}returnn[a].exports}for(varo="function"==typeofrequire&&require,a=0;a<r.length;a++)i(r[a]);returni}({1:[function(e,t,n){"use strict";functionr(e){vart=e.length;if(t%4>0)thrownewError("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}functioni(e){return3*e.length/4-r(e)}functiono(e){vart,n,i,o,a,l,s=e.length;a=r(e),l=newf(3*s/4-a),i=a>0?s-4:s;varc=0;for(t=0,n=0;t<i;t+=4,n+=3)o=u[e.charCodeAt(t)]<<18|u[e.charCodeAt(t+1)]<<12|u[e.charCodeAt(t+2)]<<6|u[e.charCodeAt(t+3)],l[c++]=o>>16&255,l[c++]=o>>8&255,l[c++]=255&o;return2===a?(o=u[e.charCodeAt(t)]<<2|u[e.charCodeAt(t+1)]>>4,l[c++]=255&o):1===a&&(o=u[e.charCodeAt(t)]<<10|u[e.charCodeAt(t+1)]<<4|u[e.charCodeAt(t+2)]>>2,l[c++]=o>>8&255,l[c++]=255&o),l}functiona(e){returnc[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}functionl(e,t,n){for(varr,i=[],o=t;o<n;o+=3)r=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i.push(a(r));returni.join("")}functions(e){for(vart,n=e.length,r=n%3,i="",o=[],a=0,s=n-r;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));return1===r?(t=e[n-1],i+=c[t>>2],i+=c[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=c[t>>10],i+=c[t>>4&63],i+=c[t<<2&63],i+="="),o.push(i),o.join("")}n.byteLength=i,n.toByteArray=o,n.fromByteArray=s;for(varc=[],u=[],f="undefined"!=typeofUint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,p=h.length;d<p;++d)c[d]=h[d],u[h.charCodeAt(d)]=d;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){"use strict";functionr(e){if(e>X)thrownewRangeError("Invalid typed array length");vart=newUint8Array(e);returnt.__proto__=i.prototype,t}functioni(e,t,n){if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returns(e)}returno(e,t,n)}functiono(e,t,n){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');returneinstanceofArrayBuffer?f(e,t,n):"string"==typeofe?c(e,t):h(e)}functiona(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(e<0)thrownewRangeError('"size" argument must not be negative')}functionl(e,t,n){returna(e),e<=0?r(e):void0!==t?"string"==typeofn?r(e).fill(t,n):r(e).fill(t):r(e)}functions(e){returna(e),r(e<0?0:0|d(e))}functionc(e,t){if("string"==typeoft&&""!==t||(t="utf8"),!i.isEncoding(t))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|m(e,t),o=r(n),a=o.write(e,t);returna!==n&&(o=o.slice(0,a)),o}functionu(e){for(vart=e.length<0?0:0|d(e.length),n=r(t),i=0;i<t;i+=1)n[i]=255&e[i];returnn}functionf(e,t,n){if(t<0||e.byteLength<t)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<t+(n||0))thrownewRangeError("'length' is out of bounds");varr;returnr=void0===t&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,t):newUint8Array(e,t,n),r.__proto__=i.prototype,r}functionh(e){if(i.isBuffer(e)){vart=0|d(e.length),n=r(t);return0===n.length?n:(e.copy(n,0,0,t),n)}if(e){if(ArrayBuffer.isView(e)||"length"ine)return"number"!=typeofe.length||$(e.length)?r(0):u(e);if("Buffer"===e.type&&Array.isArray(e.data))returnu(e.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}functiond(e){if(e>=X)thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+X.toString(16)+" bytes");return0|e}functionp(e){retu
o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");vara=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=r("div",[a],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+wa+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),Zo&&Jo<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),Qo||Vo&&sa||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}functionM(e,t){if((t-=e.first)<0||t>=e.size)thrownewError("There is no line "+(t+e.first)+" in the document.");for(varn=e;!n.lines;)for(varr=0;;++r){vari=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}returnn.lines[t]}functionN(e,t,n){varr=[],i=t.line;returne.iter(t.line,n.line+1,function(e){varo=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}functionA(e,t,n){varr=[];returne.iter(t,n,function(e){r.push(e.text)}),r}functionE(e,t){varn=t-e.height;if(n)for(varr=e;r;r=r.parent)r.height+=n}functionO(e){if(null==e.parent)returnnull;for(vart=e.parent,n=h(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(vari=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();returnn+t.first}functionI(e,t){varn=e.first;e:do{for(varr=0;r<e.children.length;++r){vari=e.children[r],o=i.height;if(t<o){e=i;continuee}t-=o,n+=i.chunkSize()}returnn}while(!e.lines);for(vara=0;a<e.lines.length;++a){varl=e.lines[a],s=l.height;if(t<s)break;t-=s}returnn+a}functionD(e,t){returnt>=e.first&&t<e.first+e.size}functionH(e,t){returnString(e.lineNumberFormatter(t+e.firstLineNumber))}functionW(e,t,n){if(void0===n&&(n=null),!(thisinstanceofW))returnnewW(e,t,n);this.line=e,this.ch=t,this.sticky=n}functionB(e,t){returne.line-t.line||e.ch-t.ch}functionP(e,t){returne.sticky==t.sticky&&0==B(e,t)}functionR(e){returnW(e.line,e.ch)}functionF(e,t){returnB(e,t)<0?t:e}functionz(e,t){returnB(e,t)<0?e:t}function_(e,t){returnMath.max(e.first,Math.min(t,e.first+e.size-1))}functionj(e,t){if(t.line<e.first)returnW(e.first,0);varn=e.first+e.size-1;returnt.line>n?W(n,M(e,n).text.length):q(t,M(e,t.line).text.length)}functionq(e,t){varn=e.ch;returnnull==n||n>t?W(e.line,t):n<0?W(e.line,0):e}functionU(e,t){for(varn=[],r=0;r<t.length;r++)n[r]=j(e,t[r]);returnn}functionG(){Aa=!0}function$(){Ea=!0}functionV(e,t,n){this.marker=e,this.from=t,this.to=n}functionK(e,t){if(e)for(varn=0;n<e.length;++n){varr=e[n];if(r.marker==t)returnr}}functionX(e,t){for(varn,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);returnn}functionY(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}functionZ(e,t,n){varr;if(e)for(vari=0;i<e.length;++i){varo=e[i],a=o.marker,l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){vars=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(newV(a,o.from,s?null:o.to))}}returnr}functionJ(e,t,n){varr;if(e)for(vari=0;i<e.length;++i){varo=e[i],a=o.marker,l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){vars=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r
;r||(r="local");varl=ye(t);if("local"==r?l+=Ft(e.display):l-=e.display.viewOffset,"page"==r||"window"==r){vars=e.display.lineSpace.getBoundingClientRect();l+=s.top+("window"==r?0:ln());varc=s.left+("window"==r?0:an());n.left+=c,n.right+=c}returnn.top+=l,n.bottom+=l,n}functioncn(e,t,n){if("div"==n)returnt;varr=t.left,i=t.top;if("page"==n)r-=an(),i-=ln();elseif("local"==n||!n){varo=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}vara=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}functionun(e,t,n,r,i){returnr||(r=M(e.doc,t.line)),sn(e,r,Kt(e,r,t.ch,i),n)}functionfn(e,t,n,r,i,o){functiona(t,a){varl=Zt(e,i,t,a?"right":"left",o);returna?l.left=l.right:l.right=l.left,sn(e,r,l,n)}functionl(e,t,n){varr=s[t],i=r.level%2!=0;returna(n?e-1:e,i!=n)}r=r||M(e.doc,t.line),i||(i=Yt(e,r));vars=Ce(r,e.doc.direction),c=t.ch,u=t.sticky;if(c>=r.text.length?(c=r.text.length,u="before"):c<=0&&(c=0,u="after"),!s)returna("before"==u?c-1:c,"before"==u);varf=ke(s,c,u),h=Oa,d=l(c,f,"before"==u);returnnull!=h&&(d.other=l(c,h,"before"!=u)),d}functionhn(e,t){varn=0;t=j(e.doc,t),e.options.lineWrapping||(n=xn(e.display)*t.ch);varr=M(e.doc,t.line),i=ye(r)+Ft(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}functiondn(e,t,n,r,i){varo=W(e,t,n);returno.xRel=i,r&&(o.outside=!0),o}functionpn(e,t,n){varr=e.doc;if((n+=e.display.viewOffset)<0)returndn(r.first,0,null,!0,-1);vari=I(r,n),o=r.first+r.size-1;if(i>o)returndn(r.first+r.size-1,M(r,o).text.length,null,!0,1);t<0&&(t=0);for(vara=M(r,i);;){varl=vn(e,a,i,t,n),s=ce(a),c=s&&s.find(0,!0);if(!s||!(l.ch>c.from.ch||l.ch==c.from.ch&&l.xRel>0))returnl;i=O(a=c.to.line)}}functionmn(e,t,n,r){vari=function(r){returnsn(e,t,Zt(e,n,r),"line")},o=t.text.length,a=L(function(e){returni(e-1).bottom<=r},o,0);returno=L(function(e){returni(e).top>r},a,o),{begin:a,end:o}}functiongn(e,t,n,r){returnmn(e,t,n,sn(e,t,Zt(e,n,r),"line").top)}functionvn(e,t,n,r,i){i-=ye(t);varo,a=0,l=t.text.length,s=Yt(e,t);if(Ce(t,e.doc.direction)){if(e.options.lineWrapping){varc;c=mn(e,t,s,i),a=c.begin,l=c.end}o=newW(n,a);varu,f,h=fn(e,o,"line",t,s).left,d=h<r?1:-1,p=h-r;do{if(u=p,f=o,null==(o=Me(e,t,o,d))||o.ch<a||l<=("before"==o.sticky?o.ch-1:o.ch)){o=f;break}p=fn(e,o,"line",t,s).left-r}while(d<0!=p<0&&Math.abs(p)<=Math.abs(u));if(Math.abs(p)>Math.abs(u)){if(p<0==u<0)thrownewError("Broke out of infinite loop in coordsCharInner");o=f}}else{varm=L(function(n){varo=sn(e,t,Zt(e,s,n),"line");returno.top>i?(l=Math.min(n,l),!0):!(o.bottom<=i)&&(o.left>r||!(o.right<r)&&r-o.left<o.right-r)},a,l);m=S(t.text,m,1),o=newW(n,m,m==l?"before":"after")}varg=fn(e,o,"line",t,s);return(i<g.top||g.bottom<i)&&(o.outside=!0),o.xRel=r<g.left?-1:r>g.right?1:0,o}functionyn(e){if(null!=e.cachedTextHeight)returne.cachedTextHeight;if(null==Ga){Ga=r("pre");for(vari=0;i<49;++i)Ga.appendChild(document.createTextNode("x")),Ga.appendChild(r("br"));Ga.appendChild(document.createTextNode("x"))}n(e.measure,Ga);varo=Ga.offsetHeight/50;returno>3&&(e.cachedTextHeight=o),t(e.measure),o||1}functionxn(e){if(null!=e.cachedCharWidth)returne.cachedCharWidth;vart=r("span","xxxxxxxxxx"),i=r("pre",[t]);n(e.measure,i);varo=t.getBoundingClientRect(),a=(o.right-o.left)/10;returna>2&&(e.cachedCharWidth=a),a||10}functionbn(e){for(vart=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:wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}functionwn(e){returne.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}functionkn(e){vart=yn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/xn(e.display)-3);returnfunction(i){if(ge(e.doc,i))return0;varo=0;if(i.widgets)for(vara=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);returnn?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}functionCn(e){vart=e.doc,n=kn(e);t.iter(
for(varg=c.previousSibling,v=n;g;g=g.previousSibling){if(h=r(g,g.firstChild,-1))returnzo(W(h.line,h.ch+v),a);v+=g.textContent.length}}functionUo(e,t){functionn(){e.value=s.getValue()}if(t=t?u(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){varr=a();t.autofocus=r==e||null!=e.getAttribute("autofocus")&&r==document.body}vari;if(e.form&&(Ha(e.form,"submit",n),!t.leaveSubmitMethodAlone)){varo=e.form;i=o.submit;try{varl=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=l}}catch(e){}}t.finishInit=function(t){t.save=n,t.getTextArea=function(){returne},t.toTextArea=function(){t.toTextArea=isNaN,n(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Ae(e.form,"submit",n),"function"==typeofe.form.submit&&(e.form.submit=i))}},e.style.display="none";vars=To(function(t){returne.parentNode.insertBefore(t,e.nextSibling)},t);returns}varGo=navigator.userAgent,$o=navigator.platform,Vo=/gecko\/\d/i.test(Go),Ko=/MSIE \d/.test(Go),Xo=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Go),Yo=/Edge\/(\d+)/.exec(Go),Zo=Ko||Xo||Yo,Jo=Zo&&(Ko?document.documentMode||6:+(Yo||Xo)[1]),Qo=!Yo&&/WebKit\//.test(Go),ea=Qo&&/Qt\/\d+\.\d+/.test(Go),ta=!Yo&&/Chrome\//.test(Go),na=/Opera\//.test(Go),ra=/Apple Computer/.test(navigator.vendor),ia=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Go),oa=/PhantomJS/.test(Go),aa=!Yo&&/AppleWebKit/.test(Go)&&/Mobile\/\w+/.test(Go),la=/Android/.test(Go),sa=aa||la||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Go),ca=aa||/Mac/.test($o),ua=/\bCrOS\b/.test(Go),fa=/win/i.test($o),ha=na&&Go.match(/Version\/(\d*\.\d*)/);ha&&(ha=Number(ha[1])),ha&&ha>=15&&(na=!1,Qo=!0);varda,pa=ca&&(ea||na&&(null==ha||ha<12.11)),ma=Vo||Zo&&Jo>=9,ga=function(t,n){varr=t.className,i=e(n).exec(r);if(i){varo=r.slice(i.index+i[0].length);t.className=r.slice(0,i.index)+(o?i[1]+o:"")}};da=document.createRange?function(e,t,n,r){vari=document.createRange();returni.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){varr=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){returnr}returnr.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};varva=function(e){e.select()};aa?va=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:Zo&&(va=function(e){try{e.select()}catch(e){}});varya=function(){this.id=null};ya.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};varxa,ba,wa=30,ka={toString:function(){return"CodeMirror.Pass"}},Ca={scroll:!1},Sa={origin:"*mouse"},La={origin:"+move"},Ta=[""],Ma=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Na=/[\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\u