(function(e){"use strict";(function(){function e(){var e=!1;e&&c("keydown",n),y.keyboardSupport&&!e&&u("keydown",n)}function t(){if(document.body){var t=document.body,a=document.documentElement,r=window.innerHeight,n=t.scrollHeight;if(x=document.compatMode.indexOf("CSS")>=0?a:t,w=t,e(),S=!0,top!=self)b=!0;else if(n>r&&(t.offsetHeight<=r||a.offsetHeight<=r)&&(a.style.height="auto",x.offsetHeight<=r)){var o=document.createElement("div");o.style.clear="both",t.appendChild(o)}y.fixedBackground||v||(t.style.backgroundAttachment="scroll",a.style.backgroundAttachment="scroll")}}function a(e,t,a,r){if(r||(r=1e3),d(t,a),1!=y.accelerationMax){var n=+new Date,o=n-T;if(o1&&(i=Math.min(i,y.accelerationMax),t*=i,a*=i)}T=+new Date}if(M.push({x:t,y:a,lastX:t<0?.99:-.99,lastY:a<0?.99:-.99,start:+new Date}),!C){var l=e===document.body,u=function(n){for(var o=+new Date,i=0,c=0,s=0;s=y.animationTime,m=p?1:f/y.animationTime;y.pulseAlgorithm&&(m=h(m));var w=d.x*m-d.lastX>>0,g=d.y*m-d.lastY>>0;i+=w,c+=g,d.lastX+=w,d.lastY+=g,p&&(M.splice(s,1),s--)}l?window.scrollBy(i,c):(i&&(e.scrollLeft+=i),c&&(e.scrollTop+=c)),t||a||(M=[]),M.length?E(u,e,r/y.frameRate+1):C=!1};E(u,e,0),C=!0}}function r(e){S||t();var r=e.target,n=l(r);if(!n||e.defaultPrevented||s(w,"embed")||s(r,"embed")&&/\.pdf/i.test(r.src))return!0;var o=e.wheelDeltaX||0,i=e.wheelDeltaY||0;return o||i||(i=e.wheelDelta||0),!(y.touchpadSupport||!f(i))||(Math.abs(o)>1.2&&(o*=y.stepSize/120),Math.abs(i)>1.2&&(i*=y.stepSize/120),a(n,-o,-i))}function n(e){var t=e.target,r=e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&e.keyCode!==H.spacebar;if(/input|textarea|select|embed/i.test(t.nodeName)||t.isContentEditable||e.defaultPrevented||r)return!0;if(s(t,"button")&&e.keyCode===H.spacebar)return!0;var n,o=0,i=0,u=l(w),c=u.clientHeight;switch(u==document.body&&(c=window.innerHeight),e.keyCode){case H.up:i=-y.arrowScroll;break;case H.down:i=y.arrowScroll;break;case H.spacebar:n=e.shiftKey?1:-1,i=-n*c*.9;break;case H.pageup:i=.9*-c;break;case H.pagedown:i=.9*c;break;case H.home:i=-u.scrollTop;break;case H.end:var d=u.scrollHeight-u.scrollTop-c;i=d>0?d+10:0;break;case H.left:o=-y.arrowScroll;break;case H.right:o=y.arrowScroll;break;default:return!0}a(u,o,i),e.preventDefault()}function o(e){w=e.target}function i(e,t){for(var a=e.length;a--;)z[N(e[a])]=t;return t}function l(e){var t=[],a=null,r=x.scrollHeight;do{var n=z[N(e)];if(n)return i(t,n);if(t.push(e),r===e.scrollHeight){if(!b||x.clientHeight+100?1:-1,t=t>0?1:-1,k.x===e&&k.y===t||(k.x=e,k.y=t,M=[],T=0)}function f(e){if(e){e=Math.abs(e),D.push(e),D.shift(),clearTimeout(A);var t=D[0]==D[1]&&D[1]==D[2],a=p(D[0],120)&&p(D[1],120)&&p(D[2],120);return!(t||a)}}function p(e,t){return Math.floor(e/t)==e/t}function m(e){var t,a,r;return e*=y.pulseScale,e<1?t=e-(1-Math.exp(-e)):(a=Math.exp(-1),e-=1,r=1-Math.exp(-e),t=a+r*(1-a)),t*y.pulseNormalize}function h(e){return e>=1?1:e<=0?0:(1==y.pulseNormalize&&(y.pulseNormalize/=m(1)),m(e))}var w,g={frameRate:150,animationTime:1800,stepSize:85,pulseAlgorithm:!0,pulseScale:8,pulseNormalize:1,accelerationDelta:20,accelerationMax:1,keyboardSupport:!0,arrowScroll:50,touchpadSupport:!0,fixedBackground:!0,excluded:""},y=g,v=!1,b=!1,k={x:0,y:0},S=!1,x=document.documentElement,D=[120,120,120],H={left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36},M=(y=g,[]),C=!1,T=+new Date,z={};setInterval(function(){z={}},1e4);var A,N=function(){var e=0;return function(t){return t.uniqueID||(t.uniqueID=e++)}}(),E=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(e,t,a){window.setTimeout(e,a||1e3/60)},K=/chrome/i.test(window.navigator.userAgent),L="onmousewheel"in document;L&&K&&(u("mousedown",o),u("mousewheel",r),u("load",t))})()})(jQuery);