functionaddAnchors(a){"use strict";if(a){if("string"!=typeofa)thrownewError("AnchorJS accepts only strings; you used a "+typeofa)}elsea="h1, h2, h3, h4, h5, h6";for(varb=document.querySelectorAll(a),c=0;c<b.length;c++){vard;if(b[c].hasAttribute("id"))d=b[c].getAttribute("id");else{vare=document.body.textContent?"textContent":"innerText",f=b[c][e],g=f.replace(/\s+/g,"-").toLowerCase();b[c].setAttribute("id",g),d=g}varh='<a class="anchorjs-link" href="#'+d+'"><span class="anchorjs-icon"></span></a>';b[c].innerHTML+=h}}!function(a,b){"object"==typeofexports&&"object"==typeofmodule?module.exports=b():"function"==typeofdefine&&define.amd?define(b):"object"==typeofexports?exports.Holder=b():a.Holder=b()}(this,function(){returnfunction(a){functionb(d){if(c[d])returnc[d].exports;vare=c[d]={exports:{},id:d,loaded:!1};returna[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}varc={};returnb.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){(function(b){functiond(a,b,c,d){varg=e(c.substr(c.lastIndexOf(a.domain)),a);g&&f({mode:null,el:d,flags:g,engineSettings:b})}functione(a,b){for(varc={theme:y(K.settings.themes.gray,null),stylesheets:b.stylesheets,holderURL:[]},d=!1,e=String.fromCharCode(11),f=a.replace(/([^\\])\//g,"$1"+e).split(e),g=/%[0-9a-f]{2}/gi,h=f.length,i=0;h>i;i++){varj=f[i];if(j.match(g))try{j=decodeURIComponent(j)}catch(k){j=f[i]}varl=!1;if(K.flags.dimensions.match(j))d=!0,c.dimensions=K.flags.dimensions.output(j),l=!0;elseif(K.flags.fluid.match(j))d=!0,c.dimensions=K.flags.fluid.output(j),c.fluid=!0,l=!0;elseif(K.flags.textmode.match(j))c.textmode=K.flags.textmode.output(j),l=!0;elseif(K.flags.colors.match(j)){varm=K.flags.colors.output(j);c.theme=y(c.theme,m),l=!0}elseif(b.themes[j])b.themes.hasOwnProperty(j)&&(c.theme=y(b.themes[j],null)),l=!0;elseif(K.flags.font.match(j))c.font=K.flags.font.output(j),l=!0;elseif(K.flags.auto.match(j))c.auto=!0,l=!0;elseif(K.flags.text.match(j))c.text=K.flags.text.output(j),l=!0;elseif(K.flags.size.match(j))c.size=K.flags.size.output(j),l=!0;elseif(K.flags.random.match(j)){null==K.vars.cache.themeKeys&&(K.vars.cache.themeKeys=Object.keys(b.themes));varn=K.vars.cache.themeKeys[0|Math.random()*K.vars.cache.themeKeys.length];c.theme=y(b.themes[n],null),l=!0}l&&c.holderURL.push(j)}returnc.holderURL.unshift(b.domain),c.holderURL=c.holderURL.join("/"),d?c:!1}functionf(a){varb=a.mode,c=a.el,d=a.flags,e=a.engineSettings,f=d.dimensions,h=d.theme,i=f.width+"x"+f.height;if(b=null==b?d.fluid?"fluid":"image":b,null!=d.text&&(h.text=d.text,"object"===c.nodeName.toLowerCase())){for(varl=h.text.split("\\n"),m=0;m<l.length;m++)l[m]=A(l[m]);h.text=l.join("\\n")}varn=d.holderURL,o=y(e,null);if(d.font&&(h.font=d.font,!o.noFontFallback&&"img"===c.nodeName.toLowerCase()&&K.setup.supportsCanvas&&"svg"===o.renderer&&(o=y(o,{renderer:"canvas"}))),d.font&&"canvas"==o.renderer&&(o.reRender=!0),"background"==b)null==c.getAttribute("data-background-src")&&p(c,{"data-background-src":n});else{varq={};q[K.vars.dataAttr]=n,p(c,q)}d.theme=h,c.holderData={flags:d,engineSettings:o},("image"==b||"fluid"==b)&&p(c,{alt:h.text?h.text+" ["+i+"]":i});varr={mode:b,el:c,holderSettings:{dimensions:f,theme:h,flags:d},engineSettings:o};"image"==b?("html"!=o.renderer&&d.auto||(c.style.width=f.width+"px",c.style.height=f.height+"px"),"html"==o.renderer?c.style.backgroundColor=h.background:(g(r),"exact"==d.textmode&&(c.holderData.resizeUpdate=!0,K.vars.resizableImages.push(c),j(c)))):"background"==b&&"html"!=o.renderer?g(r):"fluid"==b&&(c.holderData.resizeUpdate=!0,"%"==f.height.slice(-1)?c.style.height=f.height:null!=d.auto&&d.auto||(c.style.height=f.height+"px"),"%"==f.width.slice(-1)?c.style.width=f.width:null!=d.auto&&d.auto||(c.style.width=f.width+"px"),("inline"==c.style.display||""===c.style.display||"none"==c.style.display)&&(c.style.display="block"),k(c),"html"==o.renderer?c.style.backgroundColor=h.background:(K.vars.resizableImages.push(c),j(c)))}functiong(a){functionc(){varb=null;switch(i.renderer){case"canvas":b=M(k,a);break;case"svg":b=N(k,a);break;default:throw"Holder:inval