!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).SimpleMDE=e()}}(function(){returnfunctione(t,n,r){functioni(a,s){if(!n[a]){if(!t[a]){varl="function"==typeofrequire&&require;if(!s&&l)returnl(a,!0);if(o)returno(a,!0);varu=newError("Cannot find module '"+a+"'");throwu.code="MODULE_NOT_FOUND",u}varc=n[a]={exports:{}};t[a][0].call(c.exports,function(e){varn=t[a][1][e];returni(n||e)},c,c.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){returna[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}functiono(e,t,n){for(varr,o=[],a=t;a<n;a+=3)r=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(i(r));returno.join("")}n.byteLength=function(e){return3*e.length/4-r(e)},n.toByteArray=function(e){vart,n,i,o,a,u=e.length;o=r(e),a=newl(3*u/4-o),n=o>0?u-4:u;varc=0;for(t=0;t<n;t+=4)i=s[e.charCodeAt(t)]<<18|s[e.charCodeAt(t+1)]<<12|s[e.charCodeAt(t+2)]<<6|s[e.charCodeAt(t+3)],a[c++]=i>>16&255,a[c++]=i>>8&255,a[c++]=255&i;return2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[c++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[c++]=i>>8&255,a[c++]=255&i),a},n.fromByteArray=function(e){for(vart,n=e.length,r=n%3,i="",s=[],l=0,u=n-r;l<u;l+=16383)s.push(o(e,l,l+16383>u?u:l+16383));return1===r?(t=e[n-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(vara=[],s=[],l="undefined"!=typeofUint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=u.length;c<f;++c)a[c]=u[c],s[u.charCodeAt(c)]=c;s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],2:[function(e,t,n){},{}],3:[function(e,t,n){"use strict";functionr(e){if(!e)return"utf8";for(vart;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":returne;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}functioni(e){vart=r(e);if("string"!=typeoft&&(m.isEncoding===v||!v(e)))thrownewError("Unknown encoding: "+e);returnt||e}functiono(e){this.encoding=i(e);vart;switch(this.encoding){case"utf16le":this.text=c,this.end=f,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=h,this.end=d,t=3;break;default:returnthis.write=p,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=m.allocUnsafe(t)}functiona(e){returne<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}functions(e,t,n){varr=t.length-1;if(r<n)return0;vari=a(t[r]);returni>=0?(i>0&&(e.lastNeed=i-1),i):--r<n?0:(i=a(t[r]))>=0?(i>0&&(e.lastNeed=i-2),i):--r<n?0:(i=a(t[r]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}functionl(e,t,n){if(128!=(192&t[0]))returne.lastNeed=0,"<22>".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))returne.lastNeed=1,"<22>".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))returne.lastNeed=2,"<22>".repeat(n+2)}}functionu(e){vart=this.lastTotal-this.lastNeed,n=l(this,e,t);returnvoid0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}functionc(e,t){if((e.length-t)%2==0){varn=e.toString("utf16le",t);if(n){varr=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)returnthis.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}returnn}returnthis.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}functionf(e){vart=e&&e.length?this.write(e):"";if(this.lastNeed){varn=this