(()=>{function a(){if(!C&&document.body){C=!0;var o=document.body,e=document.documentElement,n=window.innerHeight,r=o.scrollHeight;if(E=0<=document.compatMode.indexOf("CSS")?e:o,y=o,D.keyboardSupport&&h("keydown",t),top!=self)M=!0;else if(n=D.animationTime,n=o?1:t/D.animationTime;D.pulseAlgorithm&&(n=1<=(c=n)?1:c<=0?0:(1==D.pulseNormalize&&(D.pulseNormalize/=b(1)),b(c)));var c=e.x*n-e.lastX>>0,u=e.y*n-e.lastY>>0;a+=c,l+=u,e.lastX+=c,e.lastY+=u,o&&(L.splice(i,1),i--)}d?window.scrollBy(a,l):(a&&(t.scrollLeft+=a),l&&(t.scrollTop+=l)),(L=o||n?L:[]).length?q(s,t,1e3/D.frameRate+1):X=!1},t,0),X=!0)}function e(e){C||a();var t=e.target,o=m(t);if(!o||e.defaultPrevented||e.ctrlKey)return!0;if(p(y,"embed")||p(t,"embed")&&/\.pdf/i.test(t.src)||p(y,"object")||t.shadowRoot)return!0;let n=-e.wheelDeltaX||e.deltaX||0,r=-e.wheelDeltaY||e.deltaY||0;return K&&(e.wheelDeltaX&&w(e.wheelDeltaX,120)&&(n=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY)&&w(e.wheelDeltaY,120)&&(r=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120),n||(r=r||(-e.wheelDelta||0)),1===e.deltaMode&&(n*=40,r*=40),!(D.touchpadSupport||!(t=r)||(H.length||(H=[t,t,t]),t=Math.abs(t),H.push(t),H.shift(),clearTimeout(x),x=setTimeout(function(){window.localStorage&&(localStorage.SS_deltaBuffer=H.join(","))},1e3),f(120))||f(100))||(1.2{let t=e.target,o=!1;if(-1!=document.URL.indexOf("www.youtube.com/watch"))do{if(o=t.classList&&t.classList.contains("html5-video-controls"))break}while(t=t.parentNode);return o})(e)||t.isContentEditable||o)return!0;if((p(t,"button")||p(t,"input")&&n.test(t.type))&&e.keyCode===z.spacebar)return!0;if(p(t,"input")&&"radio"==t.type&&N[e.keyCode])return!0;let r,a=0,l=0,i=m(y),c=i.clientHeight;switch(i==document.body&&(c=window.innerHeight),e.keyCode){case z.up:l=-D.arrowScroll;break;case z.down:l=D.arrowScroll;break;case z.spacebar:r=e.shiftKey?1:-1,l=-r*c*.9;break;case z.pageup:l=.9*-c;break;case z.pagedown:l=.9*c;break;case z.home:l=-i.scrollTop;break;case z.end:var u=i.scrollHeight-i.scrollTop-c;l=0{let t=0;return function(e){return e.uniqueID||(e.uniqueID=t++)}})(),A={};window.localStorage&&localStorage.SS_deltaBuffer&&(H=localStorage.SS_deltaBuffer.split(","));var B,q=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e,t,o){window.setTimeout(e,o||1e3/60)},P=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,_=(()=>{let o;return function(){var e,t;return o||((e=document.createElement("div")).style.cssText="height:10000px;width:1px;",document.body.appendChild(e),t=document.body.scrollTop,document.documentElement.scrollTop,window.scrollBy(0,3),o=document.body.scrollTop!=t?document.body:document.documentElement,window.scrollBy(0,-3),document.body.removeChild(e)),o}})(),j=window.navigator.userAgent,j=!/mobile/i.test(j);"onwheel"in document.createElement("div")?B="wheel":"onmousewheel"in document.createElement("div")&&(B="mousewheel"),B&&j&&(h(B,e),h("mousedown",o),h("load",a)),r.destroy=function(){g&&g.disconnect(),n(B,e),n("mousedown",o),n("keydown",t),n("resize",v),n("load",a)},window.SmoothScrollOptions&&r(window.SmoothScrollOptions),"function"==typeof define&&define.amd?define(function(){return r}):"object"==typeof exports?module.exports=r:window.SmoothScroll=r})();