Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeofthis)thrownewTypeError("Function.prototype.bind - what is trying to be bound is not callable");vart=Array.prototype.slice.call(arguments,1),n=this;returnfNOP=function(){},fBound=function(){returnn.apply(thisinstanceoffNOP&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))},fNOP.prototype=this.prototype,fBound.prototype=newfNOP,fBound}),!function(e,t){"function"==typeofdefine&&define.amd?define("smoothScroll",t(e)):"object"==typeofexports?module.exports=t(e):e.smoothScroll=t(e)}(this,function(e){"use strict";vart,n={},r=!!document.querySelector&&!!e.addEventListener,o={speed:500,easing:"easeInOutCubic",offset:0,updateURL:!0,callbackBefore:function(){},callbackAfter:function(){}},i=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(varrine)Object.prototype.hasOwnProperty.call(e,r)&&t.call(n,e[r],r,e);elsefor(varo=0,i=e.length;i>o;o++)t.call(n,e[o],o,e)},a=function(e,t){varn={};returni(e,function(t,r){n[r]=e[r]}),i(t,function(e,r){n[r]=t[r]}),n},u=function(e){for(vart,n=String(e),r=n.length,o=-1,i="",a=n.charCodeAt(0);++o<r;){if(t=n.charCodeAt(o),0===t)thrownewInvalidCharacterError("Invalid character: the input contains U+0000.");i+=t>=1&&31>=t||127==t||0===o&&t>=48&&57>=t||1===o&&t>=48&&57>=t&&45===a?"\\"+t.toString(16)+" ":t>=128||45===t||95===t||t>=48&&57>=t||t>=65&&90>=t||t>=97&&122>=t?n.charAt(o):"\\"+n.charAt(o)}returni},c=function(e,t){varn;return"easeInQuad"===e&&(n=t*t),"easeOutQuad"===e&&(n=t*(2-t)),"easeInOutQuad"===e&&(n=.5>t?2*t*t:-1+(4-2*t)*t),"easeInCubic"===e&&(n=t*t*t),"easeOutCubic"===e&&(n=--t*t*t+1),"easeInOutCubic"===e&&(n=.5>t?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e&&(n=t*t*t*t),"easeOutQuart"===e&&(n=1---t*t*t*t),"easeInOutQuart"===e&&(n=.5>t?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e&&(n=t*t*t*t*t),"easeOutQuint"===e&&(n=1+--t*t*t*t*t),"easeInOutQuint"===e&&(n=.5>t?16*t*t*t*t*t:1+16*--t*t*t*t*t),n||t},s=function(e,t,n){varr=0;if(e.offsetParent)dor+=e.offsetTop,e=e.offsetParent;while(e);returnr=r-t-n,r>=0?r:0},l=function(){returnMath.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},f=function(e){returne&&"object"==typeofJSON&&"function"==typeofJSON.parse?JSON.parse(e):{}},p=function(e,t){history.pushState&&(t||"true"===t)&&history.pushState({pos:e.id},"",window.location.pathname+e)};returnn.animateScroll=function(t,n,r,i){varg=a(g||o,r||{}),d=f(t?t.getAttribute("data-options"):null);g=a(g,d),n="#"+u(n.substr(1));varh,y,m,v=document.querySelector("[data-scroll-header]"),b=null===v?0:v.offsetHeight+v.offsetTop,w=e.pageYOffset,x=s(document.querySelector(n),b,parseInt(g.offset,10)),E=x-w,j=l(),k=0;t&&"a"===t.tagName.toLowerCase()&&i&&i.preventDefault(),p(n,g.updateURL);varO=function(r,o,i){vara=e.pageYOffset;(r==o||a==o||e.innerHeight+a>=j)&&(clearInterval(i),g.callbackAfter(t,n))},S=function(){k+=16,y=k/parseInt(g.speed,10),y=y>1?1:y,m=w+E*c(g.easing,y),e.scrollTo(0,Math.floor(m)),O(m,x,h)},A=function(){g.callbackBefore(t,n),h=setInterval(S,16)};0===e.pageYOffset&&e.scrollTo(0,0),A()},n.init=function(e){if(r){t=a(o,e||{});varu=document.querySelectorAll("[data-scroll]");i(u,function(e){e.addEventListener("click",n.animateScroll.bind(null,e,e.hash,t),!1)})}},n}),self="undefined"!=typeofwindow?window:"undefined"!=typeofWorkerGlobalScope&&selfinstanceofWorkerGlobalScope?self:{};varPrism=function(){vare=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{encode:function(e){returneinstanceofn?newn(e.type,t.util.encode(e.content)):"Array"===t.util.type(e)?e.map(t.util.encode):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){returnObject.prototype.toString.call(e).match(/\[object (\w+)\]/)[1]},clone:function(e){varn=t.util.type(e);switch(n){case"Object":varr={};for(varoine)e.hasOwnProperty(o)&&(r[o]=t.util.clone(e[o]));returnr;case"Array":return