/* SmoothScroll for websites v1.5.1 (Balazs Galambosi) https://github.com/gblazex/smoothscroll-for-websites Licensed under the terms of the MIT license. */ !function(){var u,l,i,r,o={frameRate:150,animationTime:400,stepSize:100,pulseAlgorithm:!0,pulseScale:4,pulseNormalize:1,accelerationDelta:50,accelerationMax:3,keyboardSupport:!0,arrowScroll:50,fixedBackground:!0,excluded:""},h=o,c=!1,s=!1,n={x:0,y:0},d=!1,m=document.documentElement,a=[],O=/^Mac/.test(navigator.platform);function f(){var e,t,o,n,r,a;!d&&document.body&&(d=!0,e=document.body,t=document.documentElement,o=window.innerHeight,a=e.scrollHeight,m=0<=document.compatMode.indexOf("CSS")?t:e,u=e,h.keyboardSupport&&M("keydown",b),top!=self?s=!0:J&&o=h.animationTime,l=i?1:l/h.animationTime,c=(h.pulseAlgorithm&&(l=function(e){if(1<=e)return 1;if(e<=0)return 0;1==h.pulseNormalize&&(h.pulseNormalize/=_(1));return _(e)}(l)),a.x*l-a.lastX>>0),l=a.y*l-a.lastY>>0;o+=c,n+=l,a.lastX+=c,a.lastY+=l,i&&(w.splice(r,1),r--)}m?window.scrollBy(o,n):(o&&(u.scrollLeft+=o),n&&(u.scrollTop+=n)),(w=s||d?w:[]).length?V(f,u,1e3/h.frameRate+1):(p=!1,null!=u.$scrollBehavior&&(u.style.scrollBehavior=u.$scrollBehavior,u.$scrollBehavior=null))},u,0),p=!0)}function e(e){d||f();var t=g(e);if(e.defaultPrevented||e.ctrlKey)return!0;if(T(u,"embed")||T(t,"embed")&&/\.pdf/i.test(t.src)||T(u,"object"))return!0;var o=-e.wheelDeltaX||e.deltaX||0,n=-e.wheelDeltaY||e.deltaY||0,t=(O&&(e.wheelDeltaX&&A(e.wheelDeltaX,120)&&(o=e.wheelDeltaX/Math.abs(e.wheelDeltaX)*-120),e.wheelDeltaY&&A(e.wheelDeltaY,120)&&(n=e.wheelDeltaY/Math.abs(e.wheelDeltaY)*-120)),o||n||(n=-e.wheelDelta||0),1===e.deltaMode&&(o*=40,n*=40),$(t));return t?!!function(e){var t;if(e)return a.length||(a=[e,e,e]),e=Math.abs(e),a.push(e),a.shift(),clearTimeout(r),r=setTimeout(function(){try{localStorage.SS_deltaBuffer=a.join(",")}catch(e){}},1e3),t=120