!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.markdownItAnchor=t()}}(function(){var t;return function e(t,r,n){function i(o,u){if(!r[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[o]={exports:{}};t[o][0].call(l.exports,function(e){var r=t[o][1][e];return i(r?r:e)},l,l.exports,e,t,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o=e.level}).forEach(function(i){var s=n[n.indexOf(i)+1].children.filter(function(t){return"text"===t.type}).reduce(function(t,e){return t+e.content},""),o=l(e.slugify(s),r);i.attrPush(["id",o]),e.permalink&&e.renderPermalink(o,e,t,n.indexOf(i)),e.callback&&e.callback(i,{slug:o,title:s})})})};h.defaults={level:1,slugify:u,permalink:!1,renderPermalink:c,permalinkClass:"header-anchor",permalinkSymbol:"¶",permalinkBefore:!1},r["default"]=h,e.exports=r["default"]},{string:5}],2:[function(t,e,r){function n(t,e){for(var r=0,n=t.indexOf(e);n>=0;)r+=1,n=t.indexOf(e,n+1);return r}e.exports=n},{}],3:[function(t,e,r){function n(t,e,r,n){if("undefined"==typeof r)var r=-1;var i=t.split(e),s=i.slice(0,r),o=i.slice(r);return i=0===o.length?s:s.concat(o.join(e)),"undefined"==typeof n?i:0>n?i.slice(n):i.slice(0,n)}e.exports=n},{}],4:[function(t,e,r){function n(t,e,r,n){if("undefined"==typeof r)var r=-1;if("undefined"==typeof n)var n=0;for(var i=[t],s=t.length-1;s>=0;s--)0===i[0].slice(s).indexOf(e)&&(i.length<=r||-1===r)&&(i.splice(1,0,i[0].slice(s+e.length)),i[0]=i[0].slice(0,s));return n>=0?i.slice(-n):i.slice(0,-n)}e.exports=n},{}],5:[function(e,r,n){!function(){"use strict";function n(t,e){null!==e&&void 0!==e?"string"==typeof e?t.s=e:t.s=e.toString():t.s=e,t.orig=e,null!==e&&void 0!==e?t.__defineGetter__?t.__defineGetter__("length",function(){return t.s.length}):t.length=e.length:t.length=-1}function i(t){n(this,t)}function s(){for(var t in m)!function(t){var e=m[t];v.hasOwnProperty(t)||(w.push(t),v[t]=function(){return String.prototype.s=this,e.apply(this,arguments)})}(t)}function o(){for(var t=0;t=0},count:function(t){return e("./_count")(this.s,t)},dasherize:function(){var t=this.trim().s.replace(/[_\s]+/g,"-").replace(/([A-Z])/g,"-$1").replace(/-+/g,"-").toLowerCase();return new this.constructor(t)},latinise:function(){var t=this.replace(/[^A-Za-z0-9\[\] ]/g,function(t){return d[t]||t});return new this.constructor(t)},decodeHtmlEntities:function(){var t=this.s;return t=t.replace(/&#(\d+);?/g,function(t,e){return String.fromCharCode(e)}).replace(/&#[xX]([A-Fa-f0-9]+);?/g,function(t,e){return String.fromCharCode(parseInt(e,16))}).replace(/&([^;\W]+;?)/g,function(t,e){var r=e.replace(/;$/,""),n=g[e]||e.match(/;$/)&&g[r];return"number"==typeof n?String.fromCharCode(n):"string"==typeof n?n:t}),new this.constructor(t)},endsWith:function(){for(var t=Array.prototype.slice.call(arguments,0),e=0;e=0&&this.s.indexOf(t[e],r)===r)return!0}return!1},escapeHTML:function(){return new this.constructor(this.s.replace(/[&<>"']/g,function(t){return"&"+E[t]+";"}))},ensureLeft:function(t){var e=this.s;return 0===e.indexOf(t)?this:new this.constructor(t+e)},ensureRight:function(t){var e=this.s;return this.endsWith(t)?this:new this.constructor(e+t)},humanize:function(){if(null===this.s||void 0===this.s)return new this.constructor("");var t=this.underscore().replace(/_id$/,"").replace(/_/g," ").trim().capitalize();return new this.constructor(t)},isAlpha:function(){return!/[^a-z\xDF-\xFF]|^$/.test(this.s.toLowerCase())},isAlphaNumeric:function(){return!/[^0-9a-z\xDF-\xFF]/.test(this.s.toLowerCase())},isEmpty:function(){return null===this.s||void 0===this.s?!0:/^[\s\xa0]*$/.test(this.s)},isLower:function(){return this.isAlpha()&&this.s.toLowerCase()===this.s},isNumeric:function(){return!/[^0-9]/.test(this.s)},isUpper:function(){return this.isAlpha()&&this.s.toUpperCase()===this.s},left:function(t){if(t>=0){var e=this.s.substr(0,t);return new this.constructor(e)}return this.right(-t)},lines:function(){return this.replaceAll("\r\n","\n").s.split("\n")},pad:function(t,e){if(null==e&&(e=" "),this.s.length>=t)return new this.constructor(this.s);t-=this.s.length;var r=Array(Math.ceil(t/2)+1).join(e),n=Array(Math.floor(t/2)+1).join(e);return new this.constructor(r+this.s+n)},padLeft:function(t,e){return null==e&&(e=" "),this.s.length>=t?new this.constructor(this.s):new this.constructor(Array(t-this.s.length+1).join(e)+this.s)},padRight:function(t,e){return null==e&&(e=" "),this.s.length>=t?new this.constructor(this.s):new this.constructor(this.s+Array(t-this.s.length+1).join(e))},parseCSV:function(t,e,r,n){t=t||",",r=r||"\\","undefined"==typeof e&&(e='"');var i=0,s=[],o=[],u=this.s.length,a=!1,c=!1,l=this,h=function(t){return l.s.charAt(t)};if("undefined"!=typeof n)var f=[];for(e||(a=!0);u>i;){var p=h(i);switch(p){case r:if(a&&(r!==e||h(i+1)===e)){i+=1,s.push(h(i));break}if(r!==e)break;case e:a=!a;break;case t:c&&(a=!1,c=!1),a&&e?s.push(p):(o.push(s.join("")),s.length=0);break;case n:c?(a=!1,c=!1,o.push(s.join("")),f.push(o),o=[],s.length=0):a?s.push(p):f&&(o.push(s.join("")),f.push(o),o=[],s.length=0);break;case" ":a&&s.push(p);break;default:a?s.push(p):p!==e&&(s.push(p),a=!0,c=!0)}i+=1}return o.push(s.join("")),f?(f.push(o),f):o},replaceAll:function(t,e){var r=this.s.split(t).join(e);return new this.constructor(r)},splitLeft:function(t,r,n){return e("./_splitLeft")(this.s,t,r,n)},splitRight:function(t,r,n){return e("./_splitRight")(this.s,t,r,n)},strip:function(){for(var t=this.s,e=0,r=arguments.length;r>e;e++)t=t.split(arguments[e]).join("");return new this.constructor(t)},stripLeft:function(t){var e,r,n=f(this.s);return void 0===t?r=/^\s+/g:(e=h(t),r=new RegExp("^["+e+"]+","g")),new this.constructor(n.replace(r,""))},stripRight:function(t){var e,r,n=f(this.s);return void 0===t?r=/\s+$/g:(e=h(t),r=new RegExp("["+e+"]+$","g")),new this.constructor(n.replace(r,""))},right:function(t){if(t>=0){var e=this.s.substr(this.s.length-t,t);return new this.constructor(e)}return this.left(-t)},setValue:function(t){return n(this,t),this},slugify:function(){var t=new i(new i(this.s).latinise().s.replace(/[^\w\s-]/g,"").toLowerCase()).dasherize().s;return"-"===t.charAt(0)&&(t=t.substr(1)),new this.constructor(t)},startsWith:function(){for(var t=Array.prototype.slice.call(arguments,0),e=0;e0?arguments:[""];return l(e,function(e){t=t.replace(RegExp("]*>","gi"),"")}),new this.constructor(t)},template:function(t,e,r){var n=this.s,e=e||c.TMPL_OPEN,r=r||c.TMPL_CLOSE,i=e.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),s=r.replace(/[-[\]()*\s]/g,"\\$&").replace(/\$/g,"\\$"),o=new RegExp(i+"(.+?)"+s,"g"),u=n.match(o)||[];return u.forEach(function(i){var s=i.substring(e.length,i.length-r.length).trim(),o="undefined"==typeof t[s]?"":t[s];n=n.replace(i,o)}),new this.constructor(n)},times:function(t){return new this.constructor(new Array(t+1).join(this.s))},titleCase:function(){var t=this.s;return t&&(t=t.replace(/(^[a-z]| [a-z]|-[a-z]|_[a-z])/g,function(t){return t.toUpperCase()})),new this.constructor(t)},toBoolean:function(){if("string"==typeof this.orig){var t=this.s.toLowerCase();return"true"===t||"yes"===t||"on"===t||"1"===t}return this.orig===!0||1===this.orig},toFloat:function(t){var e=parseFloat(this.s);return t?parseFloat(e.toFixed(t)):e},toInt:function(){return/^\s*-?0x/i.test(this.s)?parseInt(this.s,16):parseInt(this.s,10)},trim:function(){var t;return t="undefined"==typeof v.trim?this.s.replace(/(^\s*|\s*$)/g,""):this.s.trim(),new this.constructor(t)},trimLeft:function(){var t;return t=v.trimLeft?this.s.trimLeft():this.s.replace(/(^\s*)/g,""),new this.constructor(t)},trimRight:function(){var t;return t=v.trimRight?this.s.trimRight():this.s.replace(/\s+$/,""),new this.constructor(t)},truncate:function(t,e){var r=this.s;if(t=~~t,e=e||"...",r.length<=t)return new this.constructor(r);var n=function(t){return t.toUpperCase()!==t.toLowerCase()?"A":" "},s=r.slice(0,t+1).replace(/.(?=\W*\w*$)/g,n);return s=s.slice(s.length-2).match(/\w\w/)?s.replace(/\s*\S+$/,""):new i(s.slice(0,s.length-1)).trimRight().s,new i((s+e).length>r.length?r:r.slice(0,s.length)+e)},toCSV:function(){function t(t){return null!==t&&""!==t}var e=",",r='"',n="\\",s=!0,o=!1,u=[];if("object"==typeof arguments[0]?(e=arguments[0].delimiter||e,e=arguments[0].separator||e,r=arguments[0].qualifier||r,s=!!arguments[0].encloseNumbers,n=arguments[0].escape||n,o=!!arguments[0].keys):"string"==typeof arguments[0]&&(e=arguments[0]),"string"==typeof arguments[1]&&(r=arguments[1]),null===arguments[1]&&(r=null),this.orig instanceof Array)u=this.orig;else for(var a in this.orig)this.orig.hasOwnProperty(a)&&(o?u.push(a):u.push(this.orig[a]));for(var c=n+r,l=[],h=0;h",this,""),new this.constructor(r)}},w=[],y=u();for(var O in y)!function(t){var e=v[t];"function"==typeof e&&(m[t]||("string"===y[t]?m[t]=function(){return new this.constructor(e.apply(this,arguments))}:m[t]=e))}(O);m.repeat=m.times,m.include=m.contains,m.toInteger=m.toInt,m.toBool=m.toBoolean,m.decodeHTMLEntities=m.decodeHtmlEntities,m.constructor=i,c.extendPrototype=s,c.restorePrototype=o,c.VERSION=p,c.TMPL_OPEN="{{",c.TMPL_CLOSE="}}",c.ENTITIES=g,"undefined"!=typeof r&&"undefined"!=typeof r.exports?r.exports=c:"function"==typeof t&&t.amd?t([],function(){return c}):window.S=c;var A={lt:"<",gt:">",quot:'"',apos:"'",amp:"&"},E={};for(var b in A)E[A[b]]=b;g={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,"OElig;":338,"oelig;":339,"Scaron;":352,"scaron;":353,"Yuml;":376,"fnof;":402,"circ;":710,"tilde;":732,"Alpha;":913,"Beta;":914,"Gamma;":915,"Delta;":916,"Epsilon;":917,"Zeta;":918,"Eta;":919,"Theta;":920,"Iota;":921,"Kappa;":922,"Lambda;":923,"Mu;":924,"Nu;":925,"Xi;":926,"Omicron;":927,"Pi;":928,"Rho;":929,"Sigma;":931,"Tau;":932,"Upsilon;":933,"Phi;":934,"Chi;":935,"Psi;":936,"Omega;":937,"alpha;":945,"beta;":946,"gamma;":947,"delta;":948,"epsilon;":949,"zeta;":950,"eta;":951,"theta;":952,"iota;":953,"kappa;":954,"lambda;":955,"mu;":956,"nu;":957,"xi;":958,"omicron;":959,"pi;":960,"rho;":961,"sigmaf;":962,"sigma;":963,"tau;":964,"upsilon;":965,"phi;":966,"chi;":967,"psi;":968,"omega;":969,"thetasym;":977,"upsih;":978,"piv;":982,"ensp;":8194,"emsp;":8195,"thinsp;":8201,"zwnj;":8204,"zwj;":8205,"lrm;":8206,"rlm;":8207,"ndash;":8211,"mdash;":8212,"lsquo;":8216,"rsquo;":8217,"sbquo;":8218,"ldquo;":8220,"rdquo;":8221,"bdquo;":8222,"dagger;":8224,"Dagger;":8225,"bull;":8226,"hellip;":8230,"permil;":8240,"prime;":8242,"Prime;":8243,"lsaquo;":8249,"rsaquo;":8250,"oline;":8254,"frasl;":8260,"euro;":8364,"image;":8465,"weierp;":8472,"real;":8476,"trade;":8482,"alefsym;":8501,"larr;":8592,"uarr;":8593,"rarr;":8594,"darr;":8595,"harr;":8596,"crarr;":8629,"lArr;":8656,"uArr;":8657,"rArr;":8658,"dArr;":8659,"hArr;":8660,"forall;":8704,"part;":8706,"exist;":8707,"empty;":8709,"nabla;":8711,"isin;":8712,"notin;":8713,"ni;":8715,"prod;":8719,"sum;":8721,"minus;":8722,"lowast;":8727,"radic;":8730,"prop;":8733,"infin;":8734,"ang;":8736,"and;":8743,"or;":8744,"cap;":8745,"cup;":8746,"int;":8747,"there4;":8756,"sim;":8764,"cong;":8773,"asymp;":8776,"ne;":8800,"equiv;":8801,"le;":8804,"ge;":8805,"sub;":8834,"sup;":8835,"nsub;":8836,"sube;":8838,"supe;":8839,"oplus;":8853,"otimes;":8855,"perp;":8869,"sdot;":8901,"lceil;":8968,"rceil;":8969,"lfloor;":8970,"rfloor;":8971,"lang;":9001,"rang;":9002,"loz;":9674,"spades;":9824,"clubs;":9827,"hearts;":9829,"diams;":9830}}.call(this)},{"./_count":2,"./_splitLeft":3,"./_splitRight":4}]},{},[1])(1)});