From 1633955f60b8b05ed70247b3ca08e3adfaf66130 Mon Sep 17 00:00:00 2001 From: malihu Date: Thu, 8 May 2014 06:10:44 +0300 Subject: [PATCH] Updated plugin to version 2.8.5 --- bower.json | 2 +- jquery.mCustomScrollbar.concat.min.js | 2 +- jquery.mCustomScrollbar.js | 12 ++++++++++-- js/minified/jquery.mCustomScrollbar.min.js | 2 +- js/minified/jquery.mCustomScrollbar.min.js.gz | Bin 5837 -> 5876 bytes js/uncompressed/jquery.mCustomScrollbar.js | 2 +- readme.md | 1 + readme.txt | 1 + 8 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bower.json b/bower.json index 6dc4fe8..842f5c8 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "malihu-custom-scrollbar-plugin", - "version": "2.8.4", + "version": "2.8.5", "title": "malihu custom scrollbar plugin", "description": "Custom scrollbar jQuery plugin that's fully customizable with CSS. Features vertical/horizontal scrolling, mouse-wheel support, scroll easing, adjustable scrollbar height/width, nested scrollbars, user defined callbacks etc.", "main": "./jquery.mCustomScrollbar.js", diff --git a/jquery.mCustomScrollbar.concat.min.js b/jquery.mCustomScrollbar.concat.min.js index 973df35..5f47a06 100644 --- a/jquery.mCustomScrollbar.concat.min.js +++ b/jquery.mCustomScrollbar.concat.min.js @@ -1,4 +1,4 @@ /*mousewheel*/ (function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery); /*custom scrollbar*/ -(function(b){var a={init:function(d){var e={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:950,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,alwaysShowScrollbar:false,snapAmount:null,snapOffset:0,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false,autoScrollOnFocus:true,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},d=b.extend(true,e,d);return this.each(function(){var m=b(this);if(d.set_width){m.css("width",d.set_width)}if(d.set_height){m.css("height",d.set_height)}if(!b(document).data("mCustomScrollbar-index")){b(document).data("mCustomScrollbar-index","1")}else{var u=parseInt(b(document).data("mCustomScrollbar-index"));b(document).data("mCustomScrollbar-index",u+1)}m.wrapInner("
").addClass("mCustomScrollbar _mCS_"+b(document).data("mCustomScrollbar-index"));var f=m.children(".mCustomScrollBox");if(d.horizontalScroll){f.addClass("mCSB_horizontal").wrapInner("
");var k=f.children(".mCSB_h_wrapper");k.wrapInner("
").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{f.wrapInner("
")}var o=f.children(".mCSB_container");if(b.support.touch){o.addClass("mCS_touch")}o.after("
");var l=f.children(".mCSB_scrollTools"),g=l.children(".mCSB_draggerContainer"),q=g.children(".mCSB_dragger");if(d.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(d.scrollButtons.enable){if(d.horizontalScroll){l.prepend("").append("")}else{l.prepend("").append("")}}f.bind("scroll",function(){if(!m.is(".mCS_disabled")){f.scrollTop(0).scrollLeft(0)}});m.data({mCS_Init:true,mCustomScrollbarIndex:b(document).data("mCustomScrollbar-index"),horizontalScroll:d.horizontalScroll,scrollInertia:d.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:d.mouseWheel,mouseWheelPixels:d.mouseWheelPixels,autoDraggerLength:d.autoDraggerLength,autoHideScrollbar:d.autoHideScrollbar,alwaysShowScrollbar:d.alwaysShowScrollbar,snapAmount:d.snapAmount,snapOffset:d.snapOffset,scrollButtons_enable:d.scrollButtons.enable,scrollButtons_scrollType:d.scrollButtons.scrollType,scrollButtons_scrollSpeed:d.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:d.scrollButtons.scrollAmount,autoExpandHorizontalScroll:d.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:d.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:d.advanced.normalizeMouseWheelDelta,contentTouchScroll:d.contentTouchScroll,onScrollStart_Callback:d.callbacks.onScrollStart,onScroll_Callback:d.callbacks.onScroll,onTotalScroll_Callback:d.callbacks.onTotalScroll,onTotalScrollBack_Callback:d.callbacks.onTotalScrollBack,onTotalScroll_Offset:d.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:d.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:d.callbacks.whileScrolling,bindEvent_scrollbar_drag:false,bindEvent_content_touch:false,bindEvent_scrollbar_click:false,bindEvent_mousewheel:false,bindEvent_buttonsContinuous_y:false,bindEvent_buttonsContinuous_x:false,bindEvent_buttonsPixels_y:false,bindEvent_buttonsPixels_x:false,bindEvent_focusin:false,bindEvent_autoHideScrollbar:false,mCSB_buttonScrollRight:false,mCSB_buttonScrollLeft:false,mCSB_buttonScrollDown:false,mCSB_buttonScrollUp:false});if(d.horizontalScroll){if(m.css("max-width")!=="none"){if(!d.advanced.updateOnContentResize){d.advanced.updateOnContentResize=true}}}else{if(m.css("max-height")!=="none"){var t=false,r=parseInt(m.css("max-height"));if(m.css("max-height").indexOf("%")>=0){t=r,r=m.parent().height()*t/100}var j=(m.innerHeight()-m.height());m.css("overflow","hidden");f.css("max-height",r-j)}}m.mCustomScrollbar("update");if(d.advanced.updateOnBrowserResize){var h,i=b(window).width(),v=b(window).height();b(window).bind("resize."+m.data("mCustomScrollbarIndex"),function(){if(h){clearTimeout(h)}h=setTimeout(function(){if(!m.is(".mCS_disabled")&&!m.is(".mCS_destroyed")){var x=b(window).width(),w=b(window).height();if(i!==x||v!==w){if(m.css("max-height")!=="none"){if(t){f.css("max-height",(m.parent().height()*t/100)-j)}else{f.css("max-height",(parseInt(m.css("max-height"))-j))}}m.mCustomScrollbar("update");i=x;v=w}}},150)})}if(d.advanced.updateOnContentResize){var p;if(d.horizontalScroll){var n=o.outerWidth(),s=o.innerWidth()}else{var n=o.outerHeight(),s=o.innerHeight()}p=setInterval(function(){if(d.horizontalScroll){if(d.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("
").css({width:o.outerWidth(),position:"relative"}).unwrap()}var x=o.outerWidth(),w=o.innerWidth()}else{var x=o.outerHeight(),w=o.innerHeight()}if(x!=n||w!=s){m.mCustomScrollbar("update");n=x;s=w}},300)}})},update:function(){var m=b(this),j=m.children(".mCustomScrollBox"),p=j.children(".mCSB_container");p.removeClass("mCS_no_scrollbar");m.removeClass("mCS_disabled mCS_destroyed");j.scrollTop(0).scrollLeft(0);var x=j.children(".mCSB_scrollTools"),n=x.children(".mCSB_draggerContainer"),l=n.children(".mCSB_dragger");if(m.data("horizontalScroll")){var z=x.children(".mCSB_buttonLeft"),s=x.children(".mCSB_buttonRight"),e=j.width();if(m.data("autoExpandHorizontalScroll")){p.css({position:"absolute",width:"auto"}).wrap("
").css({width:p.outerWidth(),position:"relative"}).unwrap()}var y=p.outerWidth()}else{var v=x.children(".mCSB_buttonUp"),f=x.children(".mCSB_buttonDown"),q=j.height(),h=p.outerHeight()}if(h>q&&!m.data("horizontalScroll")){x.css("display","block");var r=n.height();if(m.data("autoDraggerLength")){var t=Math.round(q/h*r),k=l.data("minDraggerHeight");if(t<=k){l.css({height:k})}else{if(t>=r-10){var o=r-10;l.css({height:o})}else{l.css({height:t})}}l.children(".mCSB_dragger_bar").css({"line-height":l.height()+"px"})}var A=l.height(),w=(h-q)/(r-A);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().top);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{if(y>e&&m.data("horizontalScroll")){x.css("display","block");var g=n.width();if(m.data("autoDraggerLength")){var i=Math.round(e/y*g),B=l.data("minDraggerWidth");if(i<=B){l.css({width:B})}else{if(i>=g-10){var d=g-10;l.css({width:d})}else{l.css({width:i})}}}var u=l.width(),w=(y-e)/(g-u);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().left);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{j.unbind("mousewheel focusin");if(m.data("horizontalScroll")){l.add(p).css("left",0)}else{l.add(p).css("top",0)}if(m.data("alwaysShowScrollbar")){if(!m.data("horizontalScroll")){l.css({height:n.height()})}else{if(m.data("horizontalScroll")){l.css({width:n.width()})}}}else{x.css("display","none");p.addClass("mCS_no_scrollbar")}m.data({bindEvent_mousewheel:false,bindEvent_focusin:false})}}},scrolling:function(h,p,m,j,z,e,C,v){var k=b(this);if(!k.data("bindEvent_scrollbar_drag")){var n,o,B,w,d;if(b.support.pointer){B="pointerdown";w="pointermove";d="pointerup"}else{if(b.support.msPointer){B="MSPointerDown";w="MSPointerMove";d="MSPointerUp"}}if(b.support.pointer||b.support.msPointer){j.bind(B,function(J){J.preventDefault();k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");var I=b(this),L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;if(H0&&K0){n=K;o=H}});b(document).bind(w+"."+k.data("mCustomScrollbarIndex"),function(J){J.preventDefault();if(k.data("on_drag")){var I=j,L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;F(n,o,K,H)}}).bind(d+"."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag")})}else{j.bind("mousedown touchstart",function(J){J.preventDefault();J.stopImmediatePropagation();var I=b(this),M=I.offset(),H,L;if(J.type==="touchstart"){var K=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0];H=K.pageX-M.left;L=K.pageY-M.top}else{k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");H=J.pageX-M.left;L=J.pageY-M.top}if(H0&&L0){n=L;o=H}}).bind("touchmove",function(J){J.preventDefault();J.stopImmediatePropagation();var M=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0],I=b(this),L=I.offset(),H=M.pageX-L.left,K=M.pageY-L.top;F(n,o,K,H)});b(document).bind("mousemove."+k.data("mCustomScrollbarIndex"),function(J){if(k.data("on_drag")){var I=j,L=I.offset(),H=J.pageX-L.left,K=J.pageY-L.top;F(n,o,K,H)}}).bind("mouseup."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag")})}k.data({bindEvent_scrollbar_drag:true})}function F(I,J,K,H){if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",(j.position().left-(J))+H,{moveDragger:true,trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",(j.position().top-(I))+K,{moveDragger:true,trigger:"internal"})}}if(b.support.touch&&k.data("contentTouchScroll")){if(!k.data("bindEvent_content_touch")){var l,D,r,s,u,E,G;p.bind("touchstart",function(x){x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this);r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;E=s;G=u});p.bind("touchmove",function(x){x.preventDefault();x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this).parent();r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",G-u,{trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",E-s,{trigger:"internal"})}})}}if(!k.data("bindEvent_scrollbar_click")){m.bind("click",function(H){var x=(H.pageY-m.offset().top)*k.data("scrollAmount"),y=b(H.target);if(k.data("horizontalScroll")){x=(H.pageX-m.offset().left)*k.data("scrollAmount")}if(y.hasClass("mCSB_draggerContainer")||y.hasClass("mCSB_draggerRail")){k.mCustomScrollbar("scrollTo",x,{trigger:"internal",scrollEasing:"draggerRailEase"})}});k.data({bindEvent_scrollbar_click:true})}if(k.data("mouseWheel")){if(!k.data("bindEvent_mousewheel")){h.bind("mousewheel",function(J,L){var I,H=k.data("mouseWheelPixels"),x=Math.abs(p.position().top),K=j.position().top,y=m.height()-j.height();if(k.data("normalizeMouseWheelDelta")){if(L<0){L=-1}else{L=1}}if(H==="auto"){H=100+Math.round(k.data("scrollAmount")/2)}if(k.data("horizontalScroll")){K=j.position().left;y=m.width()-j.width();x=Math.abs(p.position().left)}if((L>0&&K!==0)||(L<0&&K!==y)){J.preventDefault();J.stopImmediatePropagation()}I=x-(L*H);k.mCustomScrollbar("scrollTo",I,{trigger:"internal"})});k.data({bindEvent_mousewheel:true})}}if(k.data("scrollButtons_enable")){if(k.data("scrollButtons_scrollType")==="pixels"){if(k.data("horizontalScroll")){v.add(C).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_x:false});if(!k.data("bindEvent_buttonsPixels_x")){v.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)+k.data("scrollButtons_scrollAmount"))});C.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_x:true})}}else{e.add(z).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_y:false});if(!k.data("bindEvent_buttonsPixels_y")){e.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)+k.data("scrollButtons_scrollAmount"))});z.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_y:true})}}function q(x){if(!j.data("preventAction")){j.data("preventAction",true);k.mCustomScrollbar("scrollTo",x,{trigger:"internal"})}}}else{if(k.data("horizontalScroll")){v.add(C).unbind("click");k.data({bindEvent_buttonsPixels_x:false});if(!k.data("bindEvent_buttonsContinuous_x")){v.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollRight:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var i=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollRight"))};v.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",i);C.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollLeft:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var g=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollLeft"))};C.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g);k.data({bindEvent_buttonsContinuous_x:true})}}else{e.add(z).unbind("click");k.data({bindEvent_buttonsPixels_y:false});if(!k.data("bindEvent_buttonsContinuous_y")){e.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollDown:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var t=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollDown"))};e.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",t);z.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollUp:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollUp"))};z.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",f);k.data({bindEvent_buttonsContinuous_y:true})}}function A(){var x=k.data("scrollButtons_scrollSpeed");if(k.data("scrollButtons_scrollSpeed")==="auto"){x=Math.round((k.data("scrollInertia")+100)/40)}return x}}}if(k.data("autoScrollOnFocus")){if(!k.data("bindEvent_focusin")){h.bind("focusin",function(){h.scrollTop(0).scrollLeft(0);var x=b(document.activeElement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var I=p.position().top,y=x.position().top,H=h.height()-x.outerHeight();if(k.data("horizontalScroll")){I=p.position().left;y=x.position().left;H=h.width()-x.outerWidth()}if(I+y<0||I+y>H){k.mCustomScrollbar("scrollTo",y,{trigger:"internal"})}}});k.data({bindEvent_focusin:true})}}if(k.data("autoHideScrollbar")&&!k.data("alwaysShowScrollbar")){if(!k.data("bindEvent_autoHideScrollbar")){h.bind("mouseenter",function(x){h.addClass("mCS-mouse-over");c.showScrollbar.call(h.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(x){h.removeClass("mCS-mouse-over");if(x.type==="mouseleave"){c.hideScrollbar.call(h.children(".mCSB_scrollTools"))}});k.data({bindEvent_autoHideScrollbar:true})}}},scrollTo:function(d,e){var h=b(this),n={moveDragger:false,trigger:"external",callbacks:true,scrollInertia:h.data("scrollInertia"),scrollEasing:h.data("scrollEasing")},e=b.extend(n,e),o,f=h.children(".mCustomScrollBox"),j=f.children(".mCSB_container"),q=f.children(".mCSB_scrollTools"),i=q.children(".mCSB_draggerContainer"),g=i.children(".mCSB_dragger"),s=draggerSpeed=e.scrollInertia,p,r,l,k;if(!j.hasClass("mCS_no_scrollbar")){h.data({mCS_trigger:e.trigger});if(h.data("mCS_Init")){e.callbacks=false}if(d||d===0){if(typeof(d)==="number"){if(e.moveDragger){o=d;if(h.data("horizontalScroll")){d=g.position().left*h.data("scrollAmount")}else{d=g.position().top*h.data("scrollAmount")}draggerSpeed=0}else{o=d/h.data("scrollAmount")}}else{if(typeof(d)==="string"){var u;if(d==="top"){u=0}else{if(d==="bottom"&&!h.data("horizontalScroll")){u=j.outerHeight()-f.height()}else{if(d==="left"){u=0}else{if(d==="right"&&h.data("horizontalScroll")){u=j.outerWidth()-f.width()}else{if(d==="first"){u=h.find(".mCSB_container").find(":first")}else{if(d==="last"){u=h.find(".mCSB_container").find(":last")}else{u=h.find(d)}}}}}}if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}else{if(typeof(d)==="object"){var u=b(d);if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}}}if(h.data("horizontalScroll")){if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.width()-j.outerWidth()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollLeft"));if(!r){p=true}}else{if(o>=i.width()-g.width()){o=i.width()-g.width();d=f.width()-j.outerWidth();clearInterval(h.data("mCSB_buttonScrollRight"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"left",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"left",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().left>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().left<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}else{if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.height()-j.outerHeight()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollUp"));if(!r){p=true}}else{if(o>=i.height()-g.height()){o=i.height()-g.height();d=f.height()-j.outerHeight();clearInterval(h.data("mCSB_buttonScrollDown"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"top",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"top",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().top>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().top<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}if(h.data("mCS_Init")){h.data({mCS_Init:false})}}}function t(v){if(h.data("mCustomScrollbarIndex")){this.mcs={top:j.position().top,left:j.position().left,draggerTop:g.position().top,draggerLeft:g.position().left,topPct:Math.round((100*Math.abs(j.position().top))/Math.abs(j.outerHeight()-f.height())),leftPct:Math.round((100*Math.abs(j.position().left))/Math.abs(j.outerWidth()-f.width()))};switch(v){case"onScrollStart":h.data("mCS_tweenRunning",true).data("onScrollStart_Callback").call(h,this.mcs);break;case"whileScrolling":h.data("whileScrolling_Callback").call(h,this.mcs);break;case"onScroll":h.data("onScroll_Callback").call(h,this.mcs);break;case"onTotalScrollBack":h.data("onTotalScrollBack_Callback").call(h,this.mcs);break;case"onTotalScroll":h.data("onTotalScroll_Callback").call(h,this.mcs);break}}}},stop:function(){var f=b(this),d=f.children().children(".mCSB_container"),e=f.children().children().children().children(".mCSB_dragger");c.mTweenAxisStop.call(this,d[0]);c.mTweenAxisStop.call(this,e[0])},disable:function(d){var i=b(this),e=i.children(".mCustomScrollBox"),g=e.children(".mCSB_container"),f=e.children(".mCSB_scrollTools"),h=f.children().children(".mCSB_dragger");e.unbind("mousewheel focusin mouseenter mouseleave touchend");g.unbind("touchstart touchmove");if(d){if(i.data("horizontalScroll")){h.add(g).css("left",0)}else{h.add(g).css("top",0)}}f.css("display","none");g.addClass("mCS_no_scrollbar");i.data({bindEvent_mousewheel:false,bindEvent_focusin:false,bindEvent_content_touch:false,bindEvent_autoHideScrollbar:false}).addClass("mCS_disabled")},destroy:function(){var d=b(this);d.removeClass("mCustomScrollbar _mCS_"+d.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();b(document).unbind("mousemove."+d.data("mCustomScrollbarIndex")+" mouseup."+d.data("mCustomScrollbarIndex")+" MSPointerMove."+d.data("mCustomScrollbarIndex")+" MSPointerUp."+d.data("mCustomScrollbarIndex"));b(window).unbind("resize."+d.data("mCustomScrollbarIndex"))}},c={showScrollbar:function(){if(b(this).css("opacity")==0){this.stop().animate({opacity:1},"fast")}},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(f,h,g,e,n,x){var x=x||{},u=x.onStart||function(){},o=x.onUpdate||function(){},v=x.onComplete||function(){};var m=s(),k,i=0,q=f.offsetTop,r=f.style;if(h==="left"){q=f.offsetLeft}var l=g-q;p();d();function s(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}}function w(){if(!i){u.call()}i=s()-m;t();if(i>=f._time){f._time=(i>f._time)?i+k-(i-f._time):i+k-1;if(f._time0){f.currVal=j(f._time,q,l,e,n);r[h]=Math.round(f.currVal)+"px"}else{r[h]=g+"px"}o.call()}function d(){k=1000/60;f._time=i+k;_request=(!window.requestAnimationFrame)?function(y){t();return setTimeout(y,0.01)}:window.requestAnimationFrame;f._id=_request(w)}function p(){if(f._id==null){return}if(!window.requestAnimationFrame){clearTimeout(f._id)}else{window.cancelAnimationFrame(f._id)}f._id=null}function j(A,z,E,D,B){switch(B){case"linear":return E*A/D+z;break;case"easeOutQuad":A/=D;return -E*A*(A-2)+z;break;case"easeInOutQuad":A/=D/2;if(A<1){return E/2*A*A+z}A--;return -E/2*(A*(A-2)-1)+z;break;case"easeOutCubic":A/=D;A--;return E*(A*A*A+1)+z;break;case"easeOutQuart":A/=D;A--;return -E*(A*A*A*A-1)+z;break;case"easeOutQuint":A/=D;A--;return E*(A*A*A*A*A+1)+z;break;case"easeOutCirc":A/=D;A--;return E*Math.sqrt(1-A*A)+z;break;case"easeOutSine":return E*Math.sin(A/D*(Math.PI/2))+z;break;case"easeOutExpo":return E*(-Math.pow(2,-10*A/D)+1)+z;break;case"mcsEaseOut":var C=(A/=D)*A,y=C*A;return z+E*(0.499999999999997*y*C+-2.5*C*C+5.5*y+-6.5*C+4*A);break;case"draggerRailEase":A/=D/2;if(A<1){return E/2*A*A*A+z}A-=2;return E/2*(A*A*A+2)+z;break}}},mTweenAxisStop:function(d){if(d._id==null){return}if(!window.requestAnimationFrame){clearTimeout(d._id)}else{window.cancelAnimationFrame(d._id)}d._id=null},rafPolyfill:function(){var e=["ms","moz","webkit","o"],d=e.length;while(--d>-1&&!window.requestAnimationFrame){window.requestAnimationFrame=window[e[d]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[e[d]+"CancelAnimationFrame"]||window[e[d]+"CancelRequestAnimationFrame"]}}};c.rafPolyfill.call();b.support.touch=!!("ontouchstart" in window);b.support.pointer=window.navigator.pointerEnabled;b.support.msPointer=window.navigator.msPointerEnabled;b.fn.mCustomScrollbar=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{b.error("Method "+d+" does not exist")}}}})(jQuery); \ No newline at end of file +(function(b){var a={init:function(d){var e={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:950,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,alwaysShowScrollbar:false,snapAmount:null,snapOffset:0,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false,autoScrollOnFocus:true,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){},onDragStart:function(){},onDragStop:function(){}},theme:"light"},d=b.extend(true,e,d);return this.each(function(){var m=b(this);if(d.set_width){m.css("width",d.set_width)}if(d.set_height){m.css("height",d.set_height)}if(!b(document).data("mCustomScrollbar-index")){b(document).data("mCustomScrollbar-index","1")}else{var u=parseInt(b(document).data("mCustomScrollbar-index"));b(document).data("mCustomScrollbar-index",u+1)}m.wrapInner("
").addClass("mCustomScrollbar _mCS_"+b(document).data("mCustomScrollbar-index"));var f=m.children(".mCustomScrollBox");if(d.horizontalScroll){f.addClass("mCSB_horizontal").wrapInner("
");var k=f.children(".mCSB_h_wrapper");k.wrapInner("
").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{f.wrapInner("
")}var o=f.children(".mCSB_container");if(b.support.touch){o.addClass("mCS_touch")}o.after("
");var l=f.children(".mCSB_scrollTools"),g=l.children(".mCSB_draggerContainer"),q=g.children(".mCSB_dragger");if(d.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(d.scrollButtons.enable){if(d.horizontalScroll){l.prepend("").append("")}else{l.prepend("").append("")}}f.bind("scroll",function(){if(!m.is(".mCS_disabled")){f.scrollTop(0).scrollLeft(0)}});m.data({mCS_Init:true,mCustomScrollbarIndex:b(document).data("mCustomScrollbar-index"),horizontalScroll:d.horizontalScroll,scrollInertia:d.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:d.mouseWheel,mouseWheelPixels:d.mouseWheelPixels,autoDraggerLength:d.autoDraggerLength,autoHideScrollbar:d.autoHideScrollbar,alwaysShowScrollbar:d.alwaysShowScrollbar,snapAmount:d.snapAmount,snapOffset:d.snapOffset,scrollButtons_enable:d.scrollButtons.enable,scrollButtons_scrollType:d.scrollButtons.scrollType,scrollButtons_scrollSpeed:d.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:d.scrollButtons.scrollAmount,autoExpandHorizontalScroll:d.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:d.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:d.advanced.normalizeMouseWheelDelta,contentTouchScroll:d.contentTouchScroll,onScrollStart_Callback:d.callbacks.onScrollStart,onScroll_Callback:d.callbacks.onScroll,onTotalScroll_Callback:d.callbacks.onTotalScroll,onTotalScrollBack_Callback:d.callbacks.onTotalScrollBack,onTotalScroll_Offset:d.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:d.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:d.callbacks.whileScrolling,onDragStart_Callback:d.callbacks.onDragStart,onDragStop_Callback:d.callbacks.onDragStop,bindEvent_scrollbar_drag:false,bindEvent_content_touch:false,bindEvent_scrollbar_click:false,bindEvent_mousewheel:false,bindEvent_buttonsContinuous_y:false,bindEvent_buttonsContinuous_x:false,bindEvent_buttonsPixels_y:false,bindEvent_buttonsPixels_x:false,bindEvent_focusin:false,bindEvent_autoHideScrollbar:false,mCSB_buttonScrollRight:false,mCSB_buttonScrollLeft:false,mCSB_buttonScrollDown:false,mCSB_buttonScrollUp:false});if(d.horizontalScroll){if(m.css("max-width")!=="none"){if(!d.advanced.updateOnContentResize){d.advanced.updateOnContentResize=true}}}else{if(m.css("max-height")!=="none"){var t=false,r=parseInt(m.css("max-height"));if(m.css("max-height").indexOf("%")>=0){t=r,r=m.parent().height()*t/100}var j=(m.innerHeight()-m.height());m.css("overflow","hidden");f.css("max-height",r-j)}}m.mCustomScrollbar("update");if(d.advanced.updateOnBrowserResize){var h,i=b(window).width(),v=b(window).height();b(window).bind("resize."+m.data("mCustomScrollbarIndex"),function(){if(h){clearTimeout(h)}h=setTimeout(function(){if(!m.is(".mCS_disabled")&&!m.is(".mCS_destroyed")){var x=b(window).width(),w=b(window).height();if(i!==x||v!==w){if(m.css("max-height")!=="none"){if(t){f.css("max-height",(m.parent().height()*t/100)-j)}else{f.css("max-height",(parseInt(m.css("max-height"))-j))}}m.mCustomScrollbar("update");i=x;v=w}}},150)})}if(d.advanced.updateOnContentResize){var p;if(d.horizontalScroll){var n=o.outerWidth(),s=o.innerWidth()}else{var n=o.outerHeight(),s=o.innerHeight()}p=setInterval(function(){if(d.horizontalScroll){if(d.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("
").css({width:o.outerWidth(),position:"relative"}).unwrap()}var x=o.outerWidth(),w=o.innerWidth()}else{var x=o.outerHeight(),w=o.innerHeight()}if(x!=n||w!=s){m.mCustomScrollbar("update");n=x;s=w}},300)}})},update:function(){var m=b(this),j=m.children(".mCustomScrollBox"),p=j.children(".mCSB_container");p.removeClass("mCS_no_scrollbar");m.removeClass("mCS_disabled mCS_destroyed");j.scrollTop(0).scrollLeft(0);var x=j.children(".mCSB_scrollTools"),n=x.children(".mCSB_draggerContainer"),l=n.children(".mCSB_dragger");if(m.data("horizontalScroll")){var z=x.children(".mCSB_buttonLeft"),s=x.children(".mCSB_buttonRight"),e=j.width();if(m.data("autoExpandHorizontalScroll")){p.css({position:"absolute",width:"auto"}).wrap("
").css({width:p.outerWidth(),position:"relative"}).unwrap()}var y=p.outerWidth()}else{var v=x.children(".mCSB_buttonUp"),f=x.children(".mCSB_buttonDown"),q=j.height(),h=p.outerHeight()}if(h>q&&!m.data("horizontalScroll")){x.css("display","block");var r=n.height();if(m.data("autoDraggerLength")){var t=Math.round(q/h*r),k=l.data("minDraggerHeight");if(t<=k){l.css({height:k})}else{if(t>=r-10){var o=r-10;l.css({height:o})}else{l.css({height:t})}}l.children(".mCSB_dragger_bar").css({"line-height":l.height()+"px"})}var A=l.height(),w=(h-q)/(r-A);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().top);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{if(y>e&&m.data("horizontalScroll")){x.css("display","block");var g=n.width();if(m.data("autoDraggerLength")){var i=Math.round(e/y*g),B=l.data("minDraggerWidth");if(i<=B){l.css({width:B})}else{if(i>=g-10){var d=g-10;l.css({width:d})}else{l.css({width:i})}}}var u=l.width(),w=(y-e)/(g-u);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().left);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{j.unbind("mousewheel focusin");if(m.data("horizontalScroll")){l.add(p).css("left",0)}else{l.add(p).css("top",0)}if(m.data("alwaysShowScrollbar")){if(!m.data("horizontalScroll")){l.css({height:n.height()})}else{if(m.data("horizontalScroll")){l.css({width:n.width()})}}}else{x.css("display","none");p.addClass("mCS_no_scrollbar")}m.data({bindEvent_mousewheel:false,bindEvent_focusin:false})}}},scrolling:function(h,p,m,j,z,e,C,v){var k=b(this);if(!k.data("bindEvent_scrollbar_drag")){var n,o,B,w,d;if(b.support.pointer){B="pointerdown";w="pointermove";d="pointerup"}else{if(b.support.msPointer){B="MSPointerDown";w="MSPointerMove";d="MSPointerUp"}}if(b.support.pointer||b.support.msPointer){j.bind(B,function(J){J.preventDefault();k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");k.data("onDragStart_Callback").call(k);var I=b(this),L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;if(H0&&K0){n=K;o=H}});b(document).bind(w+"."+k.data("mCustomScrollbarIndex"),function(J){J.preventDefault();if(k.data("on_drag")){var I=j,L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;F(n,o,K,H)}}).bind(d+"."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag");k.data("onDragStop_Callback").call(k)})}else{j.bind("mousedown touchstart",function(J){J.preventDefault();J.stopImmediatePropagation();var I=b(this),M=I.offset(),H,L;if(J.type==="touchstart"){var K=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0];H=K.pageX-M.left;L=K.pageY-M.top}else{k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");k.data("onDragStart_Callback").call(k);H=J.pageX-M.left;L=J.pageY-M.top}if(H0&&L0){n=L;o=H}}).bind("touchmove",function(J){J.preventDefault();J.stopImmediatePropagation();var M=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0],I=b(this),L=I.offset(),H=M.pageX-L.left,K=M.pageY-L.top;F(n,o,K,H)});b(document).bind("mousemove."+k.data("mCustomScrollbarIndex"),function(J){if(k.data("on_drag")){var I=j,L=I.offset(),H=J.pageX-L.left,K=J.pageY-L.top;F(n,o,K,H)}}).bind("mouseup."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag");k.data("onDragStop_Callback").call(k)})}k.data({bindEvent_scrollbar_drag:true})}function F(I,J,K,H){if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",(j.position().left-(J))+H,{moveDragger:true,trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",(j.position().top-(I))+K,{moveDragger:true,trigger:"internal"})}}if(b.support.touch&&k.data("contentTouchScroll")){if(!k.data("bindEvent_content_touch")){var l,D,r,s,u,E,G;p.bind("touchstart",function(x){x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this);r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;E=s;G=u});p.bind("touchmove",function(x){x.preventDefault();x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this).parent();r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",G-u,{trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",E-s,{trigger:"internal"})}})}}if(!k.data("bindEvent_scrollbar_click")){m.bind("click",function(H){var x=(H.pageY-m.offset().top)*k.data("scrollAmount"),y=b(H.target);if(k.data("horizontalScroll")){x=(H.pageX-m.offset().left)*k.data("scrollAmount")}if(y.hasClass("mCSB_draggerContainer")||y.hasClass("mCSB_draggerRail")){k.mCustomScrollbar("scrollTo",x,{trigger:"internal",scrollEasing:"draggerRailEase"})}});k.data({bindEvent_scrollbar_click:true})}if(k.data("mouseWheel")){if(!k.data("bindEvent_mousewheel")){h.bind("mousewheel",function(J,L){var I,H=k.data("mouseWheelPixels"),x=Math.abs(p.position().top),K=j.position().top,y=m.height()-j.height();if(k.data("normalizeMouseWheelDelta")){if(L<0){L=-1}else{L=1}}if(H==="auto"){H=100+Math.round(k.data("scrollAmount")/2)}if(k.data("horizontalScroll")){K=j.position().left;y=m.width()-j.width();x=Math.abs(p.position().left)}if((L>0&&K!==0)||(L<0&&K!==y)){J.preventDefault();J.stopImmediatePropagation()}I=x-(L*H);k.mCustomScrollbar("scrollTo",I,{trigger:"internal"})});k.data({bindEvent_mousewheel:true})}}if(k.data("scrollButtons_enable")){if(k.data("scrollButtons_scrollType")==="pixels"){if(k.data("horizontalScroll")){v.add(C).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_x:false});if(!k.data("bindEvent_buttonsPixels_x")){v.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)+k.data("scrollButtons_scrollAmount"))});C.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_x:true})}}else{e.add(z).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_y:false});if(!k.data("bindEvent_buttonsPixels_y")){e.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)+k.data("scrollButtons_scrollAmount"))});z.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_y:true})}}function q(x){if(!j.data("preventAction")){j.data("preventAction",true);k.mCustomScrollbar("scrollTo",x,{trigger:"internal"})}}}else{if(k.data("horizontalScroll")){v.add(C).unbind("click");k.data({bindEvent_buttonsPixels_x:false});if(!k.data("bindEvent_buttonsContinuous_x")){v.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollRight:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var i=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollRight"))};v.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",i);C.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollLeft:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var g=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollLeft"))};C.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g);k.data({bindEvent_buttonsContinuous_x:true})}}else{e.add(z).unbind("click");k.data({bindEvent_buttonsPixels_y:false});if(!k.data("bindEvent_buttonsContinuous_y")){e.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollDown:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var t=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollDown"))};e.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",t);z.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollUp:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollUp"))};z.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",f);k.data({bindEvent_buttonsContinuous_y:true})}}function A(){var x=k.data("scrollButtons_scrollSpeed");if(k.data("scrollButtons_scrollSpeed")==="auto"){x=Math.round((k.data("scrollInertia")+100)/40)}return x}}}if(k.data("autoScrollOnFocus")){if(!k.data("bindEvent_focusin")){h.bind("focusin",function(){h.scrollTop(0).scrollLeft(0);var x=b(document.activeElement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var I=p.position().top,y=x.position().top,H=h.height()-x.outerHeight();if(k.data("horizontalScroll")){I=p.position().left;y=x.position().left;H=h.width()-x.outerWidth()}if(I+y<0||I+y>H){k.mCustomScrollbar("scrollTo",y,{trigger:"internal"})}}});k.data({bindEvent_focusin:true})}}if(k.data("autoHideScrollbar")&&!k.data("alwaysShowScrollbar")){if(!k.data("bindEvent_autoHideScrollbar")){h.bind("mouseenter",function(x){h.addClass("mCS-mouse-over");c.showScrollbar.call(h.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(x){h.removeClass("mCS-mouse-over");if(x.type==="mouseleave"){c.hideScrollbar.call(h.children(".mCSB_scrollTools"))}});k.data({bindEvent_autoHideScrollbar:true})}}},scrollTo:function(d,e){var h=b(this),n={moveDragger:false,trigger:"external",callbacks:true,scrollInertia:h.data("scrollInertia"),scrollEasing:h.data("scrollEasing")},e=b.extend(n,e),o,f=h.children(".mCustomScrollBox"),j=f.children(".mCSB_container"),q=f.children(".mCSB_scrollTools"),i=q.children(".mCSB_draggerContainer"),g=i.children(".mCSB_dragger"),s=draggerSpeed=e.scrollInertia,p,r,l,k;if(!j.hasClass("mCS_no_scrollbar")){h.data({mCS_trigger:e.trigger});if(h.data("mCS_Init")){e.callbacks=false}if(d||d===0){if(typeof(d)==="number"){if(e.moveDragger){o=d;if(h.data("horizontalScroll")){d=g.position().left*h.data("scrollAmount")}else{d=g.position().top*h.data("scrollAmount")}draggerSpeed=0}else{o=d/h.data("scrollAmount")}}else{if(typeof(d)==="string"){var u;if(d==="top"){u=0}else{if(d==="bottom"&&!h.data("horizontalScroll")){u=j.outerHeight()-f.height()}else{if(d==="left"){u=0}else{if(d==="right"&&h.data("horizontalScroll")){u=j.outerWidth()-f.width()}else{if(d==="first"){u=h.find(".mCSB_container").find(":first")}else{if(d==="last"){u=h.find(".mCSB_container").find(":last")}else{u=h.find(d)}}}}}}if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}else{if(typeof(d)==="object"){var u=b(d);if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}}}if(h.data("horizontalScroll")){if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.width()-j.outerWidth()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollLeft"));if(!r){p=true}}else{if(o>=i.width()-g.width()){o=i.width()-g.width();d=f.width()-j.outerWidth();clearInterval(h.data("mCSB_buttonScrollRight"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"left",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"left",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().left>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().left<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}else{if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.height()-j.outerHeight()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollUp"));if(!r){p=true}}else{if(o>=i.height()-g.height()){o=i.height()-g.height();d=f.height()-j.outerHeight();clearInterval(h.data("mCSB_buttonScrollDown"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"top",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"top",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().top>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().top<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}if(h.data("mCS_Init")){h.data({mCS_Init:false})}}}function t(v){if(h.data("mCustomScrollbarIndex")){this.mcs={top:j.position().top,left:j.position().left,draggerTop:g.position().top,draggerLeft:g.position().left,topPct:Math.round((100*Math.abs(j.position().top))/Math.abs(j.outerHeight()-f.height())),leftPct:Math.round((100*Math.abs(j.position().left))/Math.abs(j.outerWidth()-f.width()))};switch(v){case"onScrollStart":h.data("mCS_tweenRunning",true).data("onScrollStart_Callback").call(h,this.mcs);break;case"whileScrolling":h.data("whileScrolling_Callback").call(h,this.mcs);break;case"onScroll":h.data("onScroll_Callback").call(h,this.mcs);break;case"onTotalScrollBack":h.data("onTotalScrollBack_Callback").call(h,this.mcs);break;case"onTotalScroll":h.data("onTotalScroll_Callback").call(h,this.mcs);break}}}},stop:function(){var f=b(this),d=f.children().children(".mCSB_container"),e=f.children().children().children().children(".mCSB_dragger");c.mTweenAxisStop.call(this,d[0]);c.mTweenAxisStop.call(this,e[0])},disable:function(d){var i=b(this),e=i.children(".mCustomScrollBox"),g=e.children(".mCSB_container"),f=e.children(".mCSB_scrollTools"),h=f.children().children(".mCSB_dragger");e.unbind("mousewheel focusin mouseenter mouseleave touchend");g.unbind("touchstart touchmove");if(d){if(i.data("horizontalScroll")){h.add(g).css("left",0)}else{h.add(g).css("top",0)}}f.css("display","none");g.addClass("mCS_no_scrollbar");i.data({bindEvent_mousewheel:false,bindEvent_focusin:false,bindEvent_content_touch:false,bindEvent_autoHideScrollbar:false}).addClass("mCS_disabled")},destroy:function(){var d=b(this);d.removeClass("mCustomScrollbar _mCS_"+d.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();b(document).unbind("mousemove."+d.data("mCustomScrollbarIndex")+" mouseup."+d.data("mCustomScrollbarIndex")+" MSPointerMove."+d.data("mCustomScrollbarIndex")+" MSPointerUp."+d.data("mCustomScrollbarIndex"));b(window).unbind("resize."+d.data("mCustomScrollbarIndex"))}},c={showScrollbar:function(){if(b(this).css("opacity")==0){this.stop().animate({opacity:1},"fast")}},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(f,h,g,e,n,x){var x=x||{},u=x.onStart||function(){},o=x.onUpdate||function(){},v=x.onComplete||function(){};var m=s(),k,i=0,q=f.offsetTop,r=f.style;if(h==="left"){q=f.offsetLeft}var l=g-q;p();d();function s(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}}function w(){if(!i){u.call()}i=s()-m;t();if(i>=f._time){f._time=(i>f._time)?i+k-(i-f._time):i+k-1;if(f._time0){f.currVal=j(f._time,q,l,e,n);r[h]=Math.round(f.currVal)+"px"}else{r[h]=g+"px"}o.call()}function d(){k=1000/60;f._time=i+k;_request=(!window.requestAnimationFrame)?function(y){t();return setTimeout(y,0.01)}:window.requestAnimationFrame;f._id=_request(w)}function p(){if(f._id==null){return}if(!window.requestAnimationFrame){clearTimeout(f._id)}else{window.cancelAnimationFrame(f._id)}f._id=null}function j(A,z,E,D,B){switch(B){case"linear":return E*A/D+z;break;case"easeOutQuad":A/=D;return -E*A*(A-2)+z;break;case"easeInOutQuad":A/=D/2;if(A<1){return E/2*A*A+z}A--;return -E/2*(A*(A-2)-1)+z;break;case"easeOutCubic":A/=D;A--;return E*(A*A*A+1)+z;break;case"easeOutQuart":A/=D;A--;return -E*(A*A*A*A-1)+z;break;case"easeOutQuint":A/=D;A--;return E*(A*A*A*A*A+1)+z;break;case"easeOutCirc":A/=D;A--;return E*Math.sqrt(1-A*A)+z;break;case"easeOutSine":return E*Math.sin(A/D*(Math.PI/2))+z;break;case"easeOutExpo":return E*(-Math.pow(2,-10*A/D)+1)+z;break;case"mcsEaseOut":var C=(A/=D)*A,y=C*A;return z+E*(0.499999999999997*y*C+-2.5*C*C+5.5*y+-6.5*C+4*A);break;case"draggerRailEase":A/=D/2;if(A<1){return E/2*A*A*A+z}A-=2;return E/2*(A*A*A+2)+z;break}}},mTweenAxisStop:function(d){if(d._id==null){return}if(!window.requestAnimationFrame){clearTimeout(d._id)}else{window.cancelAnimationFrame(d._id)}d._id=null},rafPolyfill:function(){var e=["ms","moz","webkit","o"],d=e.length;while(--d>-1&&!window.requestAnimationFrame){window.requestAnimationFrame=window[e[d]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[e[d]+"CancelAnimationFrame"]||window[e[d]+"CancelRequestAnimationFrame"]}}};c.rafPolyfill.call();b.support.touch=!!("ontouchstart" in window);b.support.pointer=window.navigator.pointerEnabled;b.support.msPointer=window.navigator.msPointerEnabled;b.fn.mCustomScrollbar=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{b.error("Method "+d+" does not exist")}}}})(jQuery); \ No newline at end of file diff --git a/jquery.mCustomScrollbar.js b/jquery.mCustomScrollbar.js index 3993012..0dd8b0c 100644 --- a/jquery.mCustomScrollbar.js +++ b/jquery.mCustomScrollbar.js @@ -1,6 +1,6 @@ /* == malihu jquery custom scrollbars plugin == -version: 2.8.4 +version: 2.8.5 author: malihu (http://manos.malihu.gr) plugin home: http://manos.malihu.gr/jquery-custom-content-scroller */ @@ -58,7 +58,9 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. onTotalScrollBack:function(){}, /*user custom callback function on scroll begin reached event*/ onTotalScrollOffset:0, /*scroll end reached offset: integer (pixels)*/ onTotalScrollBackOffset:0, /*scroll begin reached offset: integer (pixels)*/ - whileScrolling:function(){} /*user custom callback function on scrolling event*/ + whileScrolling:function(){}, /*user custom callback function on scrolling event*/ + onDragStart:function(){}, /*user custom callback function on drag start event*/ + onDragStop:function(){} /*user custom callback function on drag stop event*/ }, theme:"light" /*"light", "dark", "light-2", "dark-2", "light-thick", "dark-thick", "light-thin", "dark-thin"*/ }, @@ -145,6 +147,8 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. "onTotalScroll_Offset":options.callbacks.onTotalScrollOffset, "onTotalScrollBack_Offset":options.callbacks.onTotalScrollBackOffset, "whileScrolling_Callback":options.callbacks.whileScrolling, + "onDragStart_Callback":options.callbacks.onDragStart, + "onDragStop_Callback":options.callbacks.onDragStop, /*events binding state*/ "bindEvent_scrollbar_drag":false, "bindEvent_content_touch":false, @@ -344,6 +348,7 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. mCSB_dragger.bind(mCSB_dragger_downEvent,function(e){ e.preventDefault(); $this.data({"on_drag":true}); mCSB_dragger.addClass("mCSB_dragger_onDrag"); + $this.data("onDragStart_Callback").call($this); var elem=$(this), elemOffset=elem.offset(), x=e.originalEvent.pageX-elemOffset.left, @@ -364,6 +369,7 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. } }).bind(mCSB_dragger_upEvent+"."+$this.data("mCustomScrollbarIndex"),function(e){ $this.data({"on_drag":false}); mCSB_dragger.removeClass("mCSB_dragger_onDrag"); + $this.data("onDragStop_Callback").call($this); }); }else{ /*mouse/touch*/ mCSB_dragger.bind("mousedown touchstart",function(e){ @@ -374,6 +380,7 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. x=touch.pageX-elemOffset.left; y=touch.pageY-elemOffset.top; }else{ $this.data({"on_drag":true}); mCSB_dragger.addClass("mCSB_dragger_onDrag"); + $this.data("onDragStart_Callback").call($this); x=e.pageX-elemOffset.left; y=e.pageY-elemOffset.top; } if(x0 && y0){ @@ -398,6 +405,7 @@ along with this program. If not, see http://www.gnu.org/licenses/lgpl.html. } }).bind("mouseup."+$this.data("mCustomScrollbarIndex"),function(e){ $this.data({"on_drag":false}); mCSB_dragger.removeClass("mCSB_dragger_onDrag"); + $this.data("onDragStop_Callback").call($this); }); } $this.data({"bindEvent_scrollbar_drag":true}); diff --git a/js/minified/jquery.mCustomScrollbar.min.js b/js/minified/jquery.mCustomScrollbar.min.js index e8405d2..7768764 100644 --- a/js/minified/jquery.mCustomScrollbar.min.js +++ b/js/minified/jquery.mCustomScrollbar.min.js @@ -1 +1 @@ -(function(b){var a={init:function(d){var e={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:950,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,alwaysShowScrollbar:false,snapAmount:null,snapOffset:0,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false,autoScrollOnFocus:true,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},d=b.extend(true,e,d);return this.each(function(){var m=b(this);if(d.set_width){m.css("width",d.set_width)}if(d.set_height){m.css("height",d.set_height)}if(!b(document).data("mCustomScrollbar-index")){b(document).data("mCustomScrollbar-index","1")}else{var u=parseInt(b(document).data("mCustomScrollbar-index"));b(document).data("mCustomScrollbar-index",u+1)}m.wrapInner("
").addClass("mCustomScrollbar _mCS_"+b(document).data("mCustomScrollbar-index"));var f=m.children(".mCustomScrollBox");if(d.horizontalScroll){f.addClass("mCSB_horizontal").wrapInner("
");var k=f.children(".mCSB_h_wrapper");k.wrapInner("
").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{f.wrapInner("
")}var o=f.children(".mCSB_container");if(b.support.touch){o.addClass("mCS_touch")}o.after("
");var l=f.children(".mCSB_scrollTools"),g=l.children(".mCSB_draggerContainer"),q=g.children(".mCSB_dragger");if(d.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(d.scrollButtons.enable){if(d.horizontalScroll){l.prepend("").append("")}else{l.prepend("").append("")}}f.bind("scroll",function(){if(!m.is(".mCS_disabled")){f.scrollTop(0).scrollLeft(0)}});m.data({mCS_Init:true,mCustomScrollbarIndex:b(document).data("mCustomScrollbar-index"),horizontalScroll:d.horizontalScroll,scrollInertia:d.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:d.mouseWheel,mouseWheelPixels:d.mouseWheelPixels,autoDraggerLength:d.autoDraggerLength,autoHideScrollbar:d.autoHideScrollbar,alwaysShowScrollbar:d.alwaysShowScrollbar,snapAmount:d.snapAmount,snapOffset:d.snapOffset,scrollButtons_enable:d.scrollButtons.enable,scrollButtons_scrollType:d.scrollButtons.scrollType,scrollButtons_scrollSpeed:d.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:d.scrollButtons.scrollAmount,autoExpandHorizontalScroll:d.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:d.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:d.advanced.normalizeMouseWheelDelta,contentTouchScroll:d.contentTouchScroll,onScrollStart_Callback:d.callbacks.onScrollStart,onScroll_Callback:d.callbacks.onScroll,onTotalScroll_Callback:d.callbacks.onTotalScroll,onTotalScrollBack_Callback:d.callbacks.onTotalScrollBack,onTotalScroll_Offset:d.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:d.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:d.callbacks.whileScrolling,bindEvent_scrollbar_drag:false,bindEvent_content_touch:false,bindEvent_scrollbar_click:false,bindEvent_mousewheel:false,bindEvent_buttonsContinuous_y:false,bindEvent_buttonsContinuous_x:false,bindEvent_buttonsPixels_y:false,bindEvent_buttonsPixels_x:false,bindEvent_focusin:false,bindEvent_autoHideScrollbar:false,mCSB_buttonScrollRight:false,mCSB_buttonScrollLeft:false,mCSB_buttonScrollDown:false,mCSB_buttonScrollUp:false});if(d.horizontalScroll){if(m.css("max-width")!=="none"){if(!d.advanced.updateOnContentResize){d.advanced.updateOnContentResize=true}}}else{if(m.css("max-height")!=="none"){var t=false,r=parseInt(m.css("max-height"));if(m.css("max-height").indexOf("%")>=0){t=r,r=m.parent().height()*t/100}var j=(m.innerHeight()-m.height());m.css("overflow","hidden");f.css("max-height",r-j)}}m.mCustomScrollbar("update");if(d.advanced.updateOnBrowserResize){var h,i=b(window).width(),v=b(window).height();b(window).bind("resize."+m.data("mCustomScrollbarIndex"),function(){if(h){clearTimeout(h)}h=setTimeout(function(){if(!m.is(".mCS_disabled")&&!m.is(".mCS_destroyed")){var x=b(window).width(),w=b(window).height();if(i!==x||v!==w){if(m.css("max-height")!=="none"){if(t){f.css("max-height",(m.parent().height()*t/100)-j)}else{f.css("max-height",(parseInt(m.css("max-height"))-j))}}m.mCustomScrollbar("update");i=x;v=w}}},150)})}if(d.advanced.updateOnContentResize){var p;if(d.horizontalScroll){var n=o.outerWidth(),s=o.innerWidth()}else{var n=o.outerHeight(),s=o.innerHeight()}p=setInterval(function(){if(d.horizontalScroll){if(d.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("
").css({width:o.outerWidth(),position:"relative"}).unwrap()}var x=o.outerWidth(),w=o.innerWidth()}else{var x=o.outerHeight(),w=o.innerHeight()}if(x!=n||w!=s){m.mCustomScrollbar("update");n=x;s=w}},300)}})},update:function(){var m=b(this),j=m.children(".mCustomScrollBox"),p=j.children(".mCSB_container");p.removeClass("mCS_no_scrollbar");m.removeClass("mCS_disabled mCS_destroyed");j.scrollTop(0).scrollLeft(0);var x=j.children(".mCSB_scrollTools"),n=x.children(".mCSB_draggerContainer"),l=n.children(".mCSB_dragger");if(m.data("horizontalScroll")){var z=x.children(".mCSB_buttonLeft"),s=x.children(".mCSB_buttonRight"),e=j.width();if(m.data("autoExpandHorizontalScroll")){p.css({position:"absolute",width:"auto"}).wrap("
").css({width:p.outerWidth(),position:"relative"}).unwrap()}var y=p.outerWidth()}else{var v=x.children(".mCSB_buttonUp"),f=x.children(".mCSB_buttonDown"),q=j.height(),h=p.outerHeight()}if(h>q&&!m.data("horizontalScroll")){x.css("display","block");var r=n.height();if(m.data("autoDraggerLength")){var t=Math.round(q/h*r),k=l.data("minDraggerHeight");if(t<=k){l.css({height:k})}else{if(t>=r-10){var o=r-10;l.css({height:o})}else{l.css({height:t})}}l.children(".mCSB_dragger_bar").css({"line-height":l.height()+"px"})}var A=l.height(),w=(h-q)/(r-A);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().top);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{if(y>e&&m.data("horizontalScroll")){x.css("display","block");var g=n.width();if(m.data("autoDraggerLength")){var i=Math.round(e/y*g),B=l.data("minDraggerWidth");if(i<=B){l.css({width:B})}else{if(i>=g-10){var d=g-10;l.css({width:d})}else{l.css({width:i})}}}var u=l.width(),w=(y-e)/(g-u);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().left);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{j.unbind("mousewheel focusin");if(m.data("horizontalScroll")){l.add(p).css("left",0)}else{l.add(p).css("top",0)}if(m.data("alwaysShowScrollbar")){if(!m.data("horizontalScroll")){l.css({height:n.height()})}else{if(m.data("horizontalScroll")){l.css({width:n.width()})}}}else{x.css("display","none");p.addClass("mCS_no_scrollbar")}m.data({bindEvent_mousewheel:false,bindEvent_focusin:false})}}},scrolling:function(h,p,m,j,z,e,C,v){var k=b(this);if(!k.data("bindEvent_scrollbar_drag")){var n,o,B,w,d;if(b.support.pointer){B="pointerdown";w="pointermove";d="pointerup"}else{if(b.support.msPointer){B="MSPointerDown";w="MSPointerMove";d="MSPointerUp"}}if(b.support.pointer||b.support.msPointer){j.bind(B,function(J){J.preventDefault();k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");var I=b(this),L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;if(H0&&K0){n=K;o=H}});b(document).bind(w+"."+k.data("mCustomScrollbarIndex"),function(J){J.preventDefault();if(k.data("on_drag")){var I=j,L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;F(n,o,K,H)}}).bind(d+"."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag")})}else{j.bind("mousedown touchstart",function(J){J.preventDefault();J.stopImmediatePropagation();var I=b(this),M=I.offset(),H,L;if(J.type==="touchstart"){var K=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0];H=K.pageX-M.left;L=K.pageY-M.top}else{k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");H=J.pageX-M.left;L=J.pageY-M.top}if(H0&&L0){n=L;o=H}}).bind("touchmove",function(J){J.preventDefault();J.stopImmediatePropagation();var M=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0],I=b(this),L=I.offset(),H=M.pageX-L.left,K=M.pageY-L.top;F(n,o,K,H)});b(document).bind("mousemove."+k.data("mCustomScrollbarIndex"),function(J){if(k.data("on_drag")){var I=j,L=I.offset(),H=J.pageX-L.left,K=J.pageY-L.top;F(n,o,K,H)}}).bind("mouseup."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag")})}k.data({bindEvent_scrollbar_drag:true})}function F(I,J,K,H){if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",(j.position().left-(J))+H,{moveDragger:true,trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",(j.position().top-(I))+K,{moveDragger:true,trigger:"internal"})}}if(b.support.touch&&k.data("contentTouchScroll")){if(!k.data("bindEvent_content_touch")){var l,D,r,s,u,E,G;p.bind("touchstart",function(x){x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this);r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;E=s;G=u});p.bind("touchmove",function(x){x.preventDefault();x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this).parent();r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",G-u,{trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",E-s,{trigger:"internal"})}})}}if(!k.data("bindEvent_scrollbar_click")){m.bind("click",function(H){var x=(H.pageY-m.offset().top)*k.data("scrollAmount"),y=b(H.target);if(k.data("horizontalScroll")){x=(H.pageX-m.offset().left)*k.data("scrollAmount")}if(y.hasClass("mCSB_draggerContainer")||y.hasClass("mCSB_draggerRail")){k.mCustomScrollbar("scrollTo",x,{trigger:"internal",scrollEasing:"draggerRailEase"})}});k.data({bindEvent_scrollbar_click:true})}if(k.data("mouseWheel")){if(!k.data("bindEvent_mousewheel")){h.bind("mousewheel",function(J,L){var I,H=k.data("mouseWheelPixels"),x=Math.abs(p.position().top),K=j.position().top,y=m.height()-j.height();if(k.data("normalizeMouseWheelDelta")){if(L<0){L=-1}else{L=1}}if(H==="auto"){H=100+Math.round(k.data("scrollAmount")/2)}if(k.data("horizontalScroll")){K=j.position().left;y=m.width()-j.width();x=Math.abs(p.position().left)}if((L>0&&K!==0)||(L<0&&K!==y)){J.preventDefault();J.stopImmediatePropagation()}I=x-(L*H);k.mCustomScrollbar("scrollTo",I,{trigger:"internal"})});k.data({bindEvent_mousewheel:true})}}if(k.data("scrollButtons_enable")){if(k.data("scrollButtons_scrollType")==="pixels"){if(k.data("horizontalScroll")){v.add(C).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_x:false});if(!k.data("bindEvent_buttonsPixels_x")){v.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)+k.data("scrollButtons_scrollAmount"))});C.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_x:true})}}else{e.add(z).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_y:false});if(!k.data("bindEvent_buttonsPixels_y")){e.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)+k.data("scrollButtons_scrollAmount"))});z.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_y:true})}}function q(x){if(!j.data("preventAction")){j.data("preventAction",true);k.mCustomScrollbar("scrollTo",x,{trigger:"internal"})}}}else{if(k.data("horizontalScroll")){v.add(C).unbind("click");k.data({bindEvent_buttonsPixels_x:false});if(!k.data("bindEvent_buttonsContinuous_x")){v.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollRight:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var i=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollRight"))};v.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",i);C.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollLeft:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var g=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollLeft"))};C.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g);k.data({bindEvent_buttonsContinuous_x:true})}}else{e.add(z).unbind("click");k.data({bindEvent_buttonsPixels_y:false});if(!k.data("bindEvent_buttonsContinuous_y")){e.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollDown:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var t=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollDown"))};e.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",t);z.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollUp:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollUp"))};z.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",f);k.data({bindEvent_buttonsContinuous_y:true})}}function A(){var x=k.data("scrollButtons_scrollSpeed");if(k.data("scrollButtons_scrollSpeed")==="auto"){x=Math.round((k.data("scrollInertia")+100)/40)}return x}}}if(k.data("autoScrollOnFocus")){if(!k.data("bindEvent_focusin")){h.bind("focusin",function(){h.scrollTop(0).scrollLeft(0);var x=b(document.activeElement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var I=p.position().top,y=x.position().top,H=h.height()-x.outerHeight();if(k.data("horizontalScroll")){I=p.position().left;y=x.position().left;H=h.width()-x.outerWidth()}if(I+y<0||I+y>H){k.mCustomScrollbar("scrollTo",y,{trigger:"internal"})}}});k.data({bindEvent_focusin:true})}}if(k.data("autoHideScrollbar")&&!k.data("alwaysShowScrollbar")){if(!k.data("bindEvent_autoHideScrollbar")){h.bind("mouseenter",function(x){h.addClass("mCS-mouse-over");c.showScrollbar.call(h.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(x){h.removeClass("mCS-mouse-over");if(x.type==="mouseleave"){c.hideScrollbar.call(h.children(".mCSB_scrollTools"))}});k.data({bindEvent_autoHideScrollbar:true})}}},scrollTo:function(d,e){var h=b(this),n={moveDragger:false,trigger:"external",callbacks:true,scrollInertia:h.data("scrollInertia"),scrollEasing:h.data("scrollEasing")},e=b.extend(n,e),o,f=h.children(".mCustomScrollBox"),j=f.children(".mCSB_container"),q=f.children(".mCSB_scrollTools"),i=q.children(".mCSB_draggerContainer"),g=i.children(".mCSB_dragger"),s=draggerSpeed=e.scrollInertia,p,r,l,k;if(!j.hasClass("mCS_no_scrollbar")){h.data({mCS_trigger:e.trigger});if(h.data("mCS_Init")){e.callbacks=false}if(d||d===0){if(typeof(d)==="number"){if(e.moveDragger){o=d;if(h.data("horizontalScroll")){d=g.position().left*h.data("scrollAmount")}else{d=g.position().top*h.data("scrollAmount")}draggerSpeed=0}else{o=d/h.data("scrollAmount")}}else{if(typeof(d)==="string"){var u;if(d==="top"){u=0}else{if(d==="bottom"&&!h.data("horizontalScroll")){u=j.outerHeight()-f.height()}else{if(d==="left"){u=0}else{if(d==="right"&&h.data("horizontalScroll")){u=j.outerWidth()-f.width()}else{if(d==="first"){u=h.find(".mCSB_container").find(":first")}else{if(d==="last"){u=h.find(".mCSB_container").find(":last")}else{u=h.find(d)}}}}}}if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}else{if(typeof(d)==="object"){var u=b(d);if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}}}if(h.data("horizontalScroll")){if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.width()-j.outerWidth()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollLeft"));if(!r){p=true}}else{if(o>=i.width()-g.width()){o=i.width()-g.width();d=f.width()-j.outerWidth();clearInterval(h.data("mCSB_buttonScrollRight"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"left",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"left",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().left>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().left<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}else{if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.height()-j.outerHeight()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollUp"));if(!r){p=true}}else{if(o>=i.height()-g.height()){o=i.height()-g.height();d=f.height()-j.outerHeight();clearInterval(h.data("mCSB_buttonScrollDown"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"top",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"top",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().top>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().top<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}if(h.data("mCS_Init")){h.data({mCS_Init:false})}}}function t(v){if(h.data("mCustomScrollbarIndex")){this.mcs={top:j.position().top,left:j.position().left,draggerTop:g.position().top,draggerLeft:g.position().left,topPct:Math.round((100*Math.abs(j.position().top))/Math.abs(j.outerHeight()-f.height())),leftPct:Math.round((100*Math.abs(j.position().left))/Math.abs(j.outerWidth()-f.width()))};switch(v){case"onScrollStart":h.data("mCS_tweenRunning",true).data("onScrollStart_Callback").call(h,this.mcs);break;case"whileScrolling":h.data("whileScrolling_Callback").call(h,this.mcs);break;case"onScroll":h.data("onScroll_Callback").call(h,this.mcs);break;case"onTotalScrollBack":h.data("onTotalScrollBack_Callback").call(h,this.mcs);break;case"onTotalScroll":h.data("onTotalScroll_Callback").call(h,this.mcs);break}}}},stop:function(){var f=b(this),d=f.children().children(".mCSB_container"),e=f.children().children().children().children(".mCSB_dragger");c.mTweenAxisStop.call(this,d[0]);c.mTweenAxisStop.call(this,e[0])},disable:function(d){var i=b(this),e=i.children(".mCustomScrollBox"),g=e.children(".mCSB_container"),f=e.children(".mCSB_scrollTools"),h=f.children().children(".mCSB_dragger");e.unbind("mousewheel focusin mouseenter mouseleave touchend");g.unbind("touchstart touchmove");if(d){if(i.data("horizontalScroll")){h.add(g).css("left",0)}else{h.add(g).css("top",0)}}f.css("display","none");g.addClass("mCS_no_scrollbar");i.data({bindEvent_mousewheel:false,bindEvent_focusin:false,bindEvent_content_touch:false,bindEvent_autoHideScrollbar:false}).addClass("mCS_disabled")},destroy:function(){var d=b(this);d.removeClass("mCustomScrollbar _mCS_"+d.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();b(document).unbind("mousemove."+d.data("mCustomScrollbarIndex")+" mouseup."+d.data("mCustomScrollbarIndex")+" MSPointerMove."+d.data("mCustomScrollbarIndex")+" MSPointerUp."+d.data("mCustomScrollbarIndex"));b(window).unbind("resize."+d.data("mCustomScrollbarIndex"))}},c={showScrollbar:function(){if(b(this).css("opacity")==0){this.stop().animate({opacity:1},"fast")}},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(f,h,g,e,n,x){var x=x||{},u=x.onStart||function(){},o=x.onUpdate||function(){},v=x.onComplete||function(){};var m=s(),k,i=0,q=f.offsetTop,r=f.style;if(h==="left"){q=f.offsetLeft}var l=g-q;p();d();function s(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}}function w(){if(!i){u.call()}i=s()-m;t();if(i>=f._time){f._time=(i>f._time)?i+k-(i-f._time):i+k-1;if(f._time0){f.currVal=j(f._time,q,l,e,n);r[h]=Math.round(f.currVal)+"px"}else{r[h]=g+"px"}o.call()}function d(){k=1000/60;f._time=i+k;_request=(!window.requestAnimationFrame)?function(y){t();return setTimeout(y,0.01)}:window.requestAnimationFrame;f._id=_request(w)}function p(){if(f._id==null){return}if(!window.requestAnimationFrame){clearTimeout(f._id)}else{window.cancelAnimationFrame(f._id)}f._id=null}function j(A,z,E,D,B){switch(B){case"linear":return E*A/D+z;break;case"easeOutQuad":A/=D;return -E*A*(A-2)+z;break;case"easeInOutQuad":A/=D/2;if(A<1){return E/2*A*A+z}A--;return -E/2*(A*(A-2)-1)+z;break;case"easeOutCubic":A/=D;A--;return E*(A*A*A+1)+z;break;case"easeOutQuart":A/=D;A--;return -E*(A*A*A*A-1)+z;break;case"easeOutQuint":A/=D;A--;return E*(A*A*A*A*A+1)+z;break;case"easeOutCirc":A/=D;A--;return E*Math.sqrt(1-A*A)+z;break;case"easeOutSine":return E*Math.sin(A/D*(Math.PI/2))+z;break;case"easeOutExpo":return E*(-Math.pow(2,-10*A/D)+1)+z;break;case"mcsEaseOut":var C=(A/=D)*A,y=C*A;return z+E*(0.499999999999997*y*C+-2.5*C*C+5.5*y+-6.5*C+4*A);break;case"draggerRailEase":A/=D/2;if(A<1){return E/2*A*A*A+z}A-=2;return E/2*(A*A*A+2)+z;break}}},mTweenAxisStop:function(d){if(d._id==null){return}if(!window.requestAnimationFrame){clearTimeout(d._id)}else{window.cancelAnimationFrame(d._id)}d._id=null},rafPolyfill:function(){var e=["ms","moz","webkit","o"],d=e.length;while(--d>-1&&!window.requestAnimationFrame){window.requestAnimationFrame=window[e[d]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[e[d]+"CancelAnimationFrame"]||window[e[d]+"CancelRequestAnimationFrame"]}}};c.rafPolyfill.call();b.support.touch=!!("ontouchstart" in window);b.support.pointer=window.navigator.pointerEnabled;b.support.msPointer=window.navigator.msPointerEnabled;b.fn.mCustomScrollbar=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{b.error("Method "+d+" does not exist")}}}})(jQuery); \ No newline at end of file +(function(b){var a={init:function(d){var e={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:950,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,alwaysShowScrollbar:false,snapAmount:null,snapOffset:0,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false,autoScrollOnFocus:true,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){},onDragStart:function(){},onDragStop:function(){}},theme:"light"},d=b.extend(true,e,d);return this.each(function(){var m=b(this);if(d.set_width){m.css("width",d.set_width)}if(d.set_height){m.css("height",d.set_height)}if(!b(document).data("mCustomScrollbar-index")){b(document).data("mCustomScrollbar-index","1")}else{var u=parseInt(b(document).data("mCustomScrollbar-index"));b(document).data("mCustomScrollbar-index",u+1)}m.wrapInner("
").addClass("mCustomScrollbar _mCS_"+b(document).data("mCustomScrollbar-index"));var f=m.children(".mCustomScrollBox");if(d.horizontalScroll){f.addClass("mCSB_horizontal").wrapInner("
");var k=f.children(".mCSB_h_wrapper");k.wrapInner("
").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{f.wrapInner("
")}var o=f.children(".mCSB_container");if(b.support.touch){o.addClass("mCS_touch")}o.after("
");var l=f.children(".mCSB_scrollTools"),g=l.children(".mCSB_draggerContainer"),q=g.children(".mCSB_dragger");if(d.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(d.scrollButtons.enable){if(d.horizontalScroll){l.prepend("").append("")}else{l.prepend("").append("")}}f.bind("scroll",function(){if(!m.is(".mCS_disabled")){f.scrollTop(0).scrollLeft(0)}});m.data({mCS_Init:true,mCustomScrollbarIndex:b(document).data("mCustomScrollbar-index"),horizontalScroll:d.horizontalScroll,scrollInertia:d.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:d.mouseWheel,mouseWheelPixels:d.mouseWheelPixels,autoDraggerLength:d.autoDraggerLength,autoHideScrollbar:d.autoHideScrollbar,alwaysShowScrollbar:d.alwaysShowScrollbar,snapAmount:d.snapAmount,snapOffset:d.snapOffset,scrollButtons_enable:d.scrollButtons.enable,scrollButtons_scrollType:d.scrollButtons.scrollType,scrollButtons_scrollSpeed:d.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:d.scrollButtons.scrollAmount,autoExpandHorizontalScroll:d.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:d.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:d.advanced.normalizeMouseWheelDelta,contentTouchScroll:d.contentTouchScroll,onScrollStart_Callback:d.callbacks.onScrollStart,onScroll_Callback:d.callbacks.onScroll,onTotalScroll_Callback:d.callbacks.onTotalScroll,onTotalScrollBack_Callback:d.callbacks.onTotalScrollBack,onTotalScroll_Offset:d.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:d.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:d.callbacks.whileScrolling,onDragStart_Callback:d.callbacks.onDragStart,onDragStop_Callback:d.callbacks.onDragStop,bindEvent_scrollbar_drag:false,bindEvent_content_touch:false,bindEvent_scrollbar_click:false,bindEvent_mousewheel:false,bindEvent_buttonsContinuous_y:false,bindEvent_buttonsContinuous_x:false,bindEvent_buttonsPixels_y:false,bindEvent_buttonsPixels_x:false,bindEvent_focusin:false,bindEvent_autoHideScrollbar:false,mCSB_buttonScrollRight:false,mCSB_buttonScrollLeft:false,mCSB_buttonScrollDown:false,mCSB_buttonScrollUp:false});if(d.horizontalScroll){if(m.css("max-width")!=="none"){if(!d.advanced.updateOnContentResize){d.advanced.updateOnContentResize=true}}}else{if(m.css("max-height")!=="none"){var t=false,r=parseInt(m.css("max-height"));if(m.css("max-height").indexOf("%")>=0){t=r,r=m.parent().height()*t/100}var j=(m.innerHeight()-m.height());m.css("overflow","hidden");f.css("max-height",r-j)}}m.mCustomScrollbar("update");if(d.advanced.updateOnBrowserResize){var h,i=b(window).width(),v=b(window).height();b(window).bind("resize."+m.data("mCustomScrollbarIndex"),function(){if(h){clearTimeout(h)}h=setTimeout(function(){if(!m.is(".mCS_disabled")&&!m.is(".mCS_destroyed")){var x=b(window).width(),w=b(window).height();if(i!==x||v!==w){if(m.css("max-height")!=="none"){if(t){f.css("max-height",(m.parent().height()*t/100)-j)}else{f.css("max-height",(parseInt(m.css("max-height"))-j))}}m.mCustomScrollbar("update");i=x;v=w}}},150)})}if(d.advanced.updateOnContentResize){var p;if(d.horizontalScroll){var n=o.outerWidth(),s=o.innerWidth()}else{var n=o.outerHeight(),s=o.innerHeight()}p=setInterval(function(){if(d.horizontalScroll){if(d.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("
").css({width:o.outerWidth(),position:"relative"}).unwrap()}var x=o.outerWidth(),w=o.innerWidth()}else{var x=o.outerHeight(),w=o.innerHeight()}if(x!=n||w!=s){m.mCustomScrollbar("update");n=x;s=w}},300)}})},update:function(){var m=b(this),j=m.children(".mCustomScrollBox"),p=j.children(".mCSB_container");p.removeClass("mCS_no_scrollbar");m.removeClass("mCS_disabled mCS_destroyed");j.scrollTop(0).scrollLeft(0);var x=j.children(".mCSB_scrollTools"),n=x.children(".mCSB_draggerContainer"),l=n.children(".mCSB_dragger");if(m.data("horizontalScroll")){var z=x.children(".mCSB_buttonLeft"),s=x.children(".mCSB_buttonRight"),e=j.width();if(m.data("autoExpandHorizontalScroll")){p.css({position:"absolute",width:"auto"}).wrap("
").css({width:p.outerWidth(),position:"relative"}).unwrap()}var y=p.outerWidth()}else{var v=x.children(".mCSB_buttonUp"),f=x.children(".mCSB_buttonDown"),q=j.height(),h=p.outerHeight()}if(h>q&&!m.data("horizontalScroll")){x.css("display","block");var r=n.height();if(m.data("autoDraggerLength")){var t=Math.round(q/h*r),k=l.data("minDraggerHeight");if(t<=k){l.css({height:k})}else{if(t>=r-10){var o=r-10;l.css({height:o})}else{l.css({height:t})}}l.children(".mCSB_dragger_bar").css({"line-height":l.height()+"px"})}var A=l.height(),w=(h-q)/(r-A);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().top);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{if(y>e&&m.data("horizontalScroll")){x.css("display","block");var g=n.width();if(m.data("autoDraggerLength")){var i=Math.round(e/y*g),B=l.data("minDraggerWidth");if(i<=B){l.css({width:B})}else{if(i>=g-10){var d=g-10;l.css({width:d})}else{l.css({width:i})}}}var u=l.width(),w=(y-e)/(g-u);m.data("scrollAmount",w).mCustomScrollbar("scrolling",j,p,n,l,v,f,z,s);var C=Math.abs(p.position().left);m.mCustomScrollbar("scrollTo",C,{scrollInertia:0,trigger:"internal"})}else{j.unbind("mousewheel focusin");if(m.data("horizontalScroll")){l.add(p).css("left",0)}else{l.add(p).css("top",0)}if(m.data("alwaysShowScrollbar")){if(!m.data("horizontalScroll")){l.css({height:n.height()})}else{if(m.data("horizontalScroll")){l.css({width:n.width()})}}}else{x.css("display","none");p.addClass("mCS_no_scrollbar")}m.data({bindEvent_mousewheel:false,bindEvent_focusin:false})}}},scrolling:function(h,p,m,j,z,e,C,v){var k=b(this);if(!k.data("bindEvent_scrollbar_drag")){var n,o,B,w,d;if(b.support.pointer){B="pointerdown";w="pointermove";d="pointerup"}else{if(b.support.msPointer){B="MSPointerDown";w="MSPointerMove";d="MSPointerUp"}}if(b.support.pointer||b.support.msPointer){j.bind(B,function(J){J.preventDefault();k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");k.data("onDragStart_Callback").call(k);var I=b(this),L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;if(H0&&K0){n=K;o=H}});b(document).bind(w+"."+k.data("mCustomScrollbarIndex"),function(J){J.preventDefault();if(k.data("on_drag")){var I=j,L=I.offset(),H=J.originalEvent.pageX-L.left,K=J.originalEvent.pageY-L.top;F(n,o,K,H)}}).bind(d+"."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag");k.data("onDragStop_Callback").call(k)})}else{j.bind("mousedown touchstart",function(J){J.preventDefault();J.stopImmediatePropagation();var I=b(this),M=I.offset(),H,L;if(J.type==="touchstart"){var K=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0];H=K.pageX-M.left;L=K.pageY-M.top}else{k.data({on_drag:true});j.addClass("mCSB_dragger_onDrag");k.data("onDragStart_Callback").call(k);H=J.pageX-M.left;L=J.pageY-M.top}if(H0&&L0){n=L;o=H}}).bind("touchmove",function(J){J.preventDefault();J.stopImmediatePropagation();var M=J.originalEvent.touches[0]||J.originalEvent.changedTouches[0],I=b(this),L=I.offset(),H=M.pageX-L.left,K=M.pageY-L.top;F(n,o,K,H)});b(document).bind("mousemove."+k.data("mCustomScrollbarIndex"),function(J){if(k.data("on_drag")){var I=j,L=I.offset(),H=J.pageX-L.left,K=J.pageY-L.top;F(n,o,K,H)}}).bind("mouseup."+k.data("mCustomScrollbarIndex"),function(x){k.data({on_drag:false});j.removeClass("mCSB_dragger_onDrag");k.data("onDragStop_Callback").call(k)})}k.data({bindEvent_scrollbar_drag:true})}function F(I,J,K,H){if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",(j.position().left-(J))+H,{moveDragger:true,trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",(j.position().top-(I))+K,{moveDragger:true,trigger:"internal"})}}if(b.support.touch&&k.data("contentTouchScroll")){if(!k.data("bindEvent_content_touch")){var l,D,r,s,u,E,G;p.bind("touchstart",function(x){x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this);r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;E=s;G=u});p.bind("touchmove",function(x){x.preventDefault();x.stopImmediatePropagation();l=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];D=b(this).parent();r=D.offset();u=l.pageX-r.left;s=l.pageY-r.top;if(k.data("horizontalScroll")){k.mCustomScrollbar("scrollTo",G-u,{trigger:"internal"})}else{k.mCustomScrollbar("scrollTo",E-s,{trigger:"internal"})}})}}if(!k.data("bindEvent_scrollbar_click")){m.bind("click",function(H){var x=(H.pageY-m.offset().top)*k.data("scrollAmount"),y=b(H.target);if(k.data("horizontalScroll")){x=(H.pageX-m.offset().left)*k.data("scrollAmount")}if(y.hasClass("mCSB_draggerContainer")||y.hasClass("mCSB_draggerRail")){k.mCustomScrollbar("scrollTo",x,{trigger:"internal",scrollEasing:"draggerRailEase"})}});k.data({bindEvent_scrollbar_click:true})}if(k.data("mouseWheel")){if(!k.data("bindEvent_mousewheel")){h.bind("mousewheel",function(J,L){var I,H=k.data("mouseWheelPixels"),x=Math.abs(p.position().top),K=j.position().top,y=m.height()-j.height();if(k.data("normalizeMouseWheelDelta")){if(L<0){L=-1}else{L=1}}if(H==="auto"){H=100+Math.round(k.data("scrollAmount")/2)}if(k.data("horizontalScroll")){K=j.position().left;y=m.width()-j.width();x=Math.abs(p.position().left)}if((L>0&&K!==0)||(L<0&&K!==y)){J.preventDefault();J.stopImmediatePropagation()}I=x-(L*H);k.mCustomScrollbar("scrollTo",I,{trigger:"internal"})});k.data({bindEvent_mousewheel:true})}}if(k.data("scrollButtons_enable")){if(k.data("scrollButtons_scrollType")==="pixels"){if(k.data("horizontalScroll")){v.add(C).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_x:false});if(!k.data("bindEvent_buttonsPixels_x")){v.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)+k.data("scrollButtons_scrollAmount"))});C.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().left)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_x:true})}}else{e.add(z).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",i,g);k.data({bindEvent_buttonsContinuous_y:false});if(!k.data("bindEvent_buttonsPixels_y")){e.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)+k.data("scrollButtons_scrollAmount"))});z.bind("click",function(x){x.preventDefault();q(Math.abs(p.position().top)-k.data("scrollButtons_scrollAmount"))});k.data({bindEvent_buttonsPixels_y:true})}}function q(x){if(!j.data("preventAction")){j.data("preventAction",true);k.mCustomScrollbar("scrollTo",x,{trigger:"internal"})}}}else{if(k.data("horizontalScroll")){v.add(C).unbind("click");k.data({bindEvent_buttonsPixels_x:false});if(!k.data("bindEvent_buttonsContinuous_x")){v.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollRight:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var i=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollRight"))};v.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",i);C.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollLeft:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().left)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var g=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollLeft"))};C.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g);k.data({bindEvent_buttonsContinuous_x:true})}}else{e.add(z).unbind("click");k.data({bindEvent_buttonsPixels_y:false});if(!k.data("bindEvent_buttonsContinuous_y")){e.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollDown:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var t=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollDown"))};e.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",t);z.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=A();k.data({mCSB_buttonScrollUp:setInterval(function(){k.mCustomScrollbar("scrollTo",Math.abs(p.position().top)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var f=function(x){x.preventDefault();clearInterval(k.data("mCSB_buttonScrollUp"))};z.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",f);k.data({bindEvent_buttonsContinuous_y:true})}}function A(){var x=k.data("scrollButtons_scrollSpeed");if(k.data("scrollButtons_scrollSpeed")==="auto"){x=Math.round((k.data("scrollInertia")+100)/40)}return x}}}if(k.data("autoScrollOnFocus")){if(!k.data("bindEvent_focusin")){h.bind("focusin",function(){h.scrollTop(0).scrollLeft(0);var x=b(document.activeElement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var I=p.position().top,y=x.position().top,H=h.height()-x.outerHeight();if(k.data("horizontalScroll")){I=p.position().left;y=x.position().left;H=h.width()-x.outerWidth()}if(I+y<0||I+y>H){k.mCustomScrollbar("scrollTo",y,{trigger:"internal"})}}});k.data({bindEvent_focusin:true})}}if(k.data("autoHideScrollbar")&&!k.data("alwaysShowScrollbar")){if(!k.data("bindEvent_autoHideScrollbar")){h.bind("mouseenter",function(x){h.addClass("mCS-mouse-over");c.showScrollbar.call(h.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(x){h.removeClass("mCS-mouse-over");if(x.type==="mouseleave"){c.hideScrollbar.call(h.children(".mCSB_scrollTools"))}});k.data({bindEvent_autoHideScrollbar:true})}}},scrollTo:function(d,e){var h=b(this),n={moveDragger:false,trigger:"external",callbacks:true,scrollInertia:h.data("scrollInertia"),scrollEasing:h.data("scrollEasing")},e=b.extend(n,e),o,f=h.children(".mCustomScrollBox"),j=f.children(".mCSB_container"),q=f.children(".mCSB_scrollTools"),i=q.children(".mCSB_draggerContainer"),g=i.children(".mCSB_dragger"),s=draggerSpeed=e.scrollInertia,p,r,l,k;if(!j.hasClass("mCS_no_scrollbar")){h.data({mCS_trigger:e.trigger});if(h.data("mCS_Init")){e.callbacks=false}if(d||d===0){if(typeof(d)==="number"){if(e.moveDragger){o=d;if(h.data("horizontalScroll")){d=g.position().left*h.data("scrollAmount")}else{d=g.position().top*h.data("scrollAmount")}draggerSpeed=0}else{o=d/h.data("scrollAmount")}}else{if(typeof(d)==="string"){var u;if(d==="top"){u=0}else{if(d==="bottom"&&!h.data("horizontalScroll")){u=j.outerHeight()-f.height()}else{if(d==="left"){u=0}else{if(d==="right"&&h.data("horizontalScroll")){u=j.outerWidth()-f.width()}else{if(d==="first"){u=h.find(".mCSB_container").find(":first")}else{if(d==="last"){u=h.find(".mCSB_container").find(":last")}else{u=h.find(d)}}}}}}if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}else{if(typeof(d)==="object"){var u=b(d);if(u.length===1){if(h.data("horizontalScroll")){d=u.position().left}else{d=u.position().top}o=d/h.data("scrollAmount")}else{o=d=u}}}}if(h.data("horizontalScroll")){if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.width()-j.outerWidth()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollLeft"));if(!r){p=true}}else{if(o>=i.width()-g.width()){o=i.width()-g.width();d=f.width()-j.outerWidth();clearInterval(h.data("mCSB_buttonScrollRight"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"left",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"left",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().left>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().left<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}else{if(h.data("onTotalScrollBack_Offset")){r=-h.data("onTotalScrollBack_Offset")}if(h.data("onTotalScroll_Offset")){k=f.height()-j.outerHeight()+h.data("onTotalScroll_Offset")}if(o<0){o=d=0;clearInterval(h.data("mCSB_buttonScrollUp"));if(!r){p=true}}else{if(o>=i.height()-g.height()){o=i.height()-g.height();d=f.height()-j.outerHeight();clearInterval(h.data("mCSB_buttonScrollDown"));if(!k){l=true}}else{d=-d}}var m=h.data("snapAmount");if(m){d=Math.round(d/m)*m-h.data("snapOffset")}c.mTweenAxis.call(this,g[0],"top",Math.round(o),draggerSpeed,e.scrollEasing);c.mTweenAxis.call(this,j[0],"top",Math.round(d),s,e.scrollEasing,{onStart:function(){if(e.callbacks&&!h.data("mCS_tweenRunning")){t("onScrollStart")}if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){c.showScrollbar.call(q)}},onUpdate:function(){if(e.callbacks){t("whileScrolling")}},onComplete:function(){if(e.callbacks){t("onScroll");if(p||(r&&j.position().top>=r)){t("onTotalScrollBack")}if(l||(k&&j.position().top<=k)){t("onTotalScroll")}}g.data("preventAction",false);h.data("mCS_tweenRunning",false);if(h.data("autoHideScrollbar")&&!h.data("alwaysShowScrollbar")){if(!f.hasClass("mCS-mouse-over")){c.hideScrollbar.call(q)}}}})}if(h.data("mCS_Init")){h.data({mCS_Init:false})}}}function t(v){if(h.data("mCustomScrollbarIndex")){this.mcs={top:j.position().top,left:j.position().left,draggerTop:g.position().top,draggerLeft:g.position().left,topPct:Math.round((100*Math.abs(j.position().top))/Math.abs(j.outerHeight()-f.height())),leftPct:Math.round((100*Math.abs(j.position().left))/Math.abs(j.outerWidth()-f.width()))};switch(v){case"onScrollStart":h.data("mCS_tweenRunning",true).data("onScrollStart_Callback").call(h,this.mcs);break;case"whileScrolling":h.data("whileScrolling_Callback").call(h,this.mcs);break;case"onScroll":h.data("onScroll_Callback").call(h,this.mcs);break;case"onTotalScrollBack":h.data("onTotalScrollBack_Callback").call(h,this.mcs);break;case"onTotalScroll":h.data("onTotalScroll_Callback").call(h,this.mcs);break}}}},stop:function(){var f=b(this),d=f.children().children(".mCSB_container"),e=f.children().children().children().children(".mCSB_dragger");c.mTweenAxisStop.call(this,d[0]);c.mTweenAxisStop.call(this,e[0])},disable:function(d){var i=b(this),e=i.children(".mCustomScrollBox"),g=e.children(".mCSB_container"),f=e.children(".mCSB_scrollTools"),h=f.children().children(".mCSB_dragger");e.unbind("mousewheel focusin mouseenter mouseleave touchend");g.unbind("touchstart touchmove");if(d){if(i.data("horizontalScroll")){h.add(g).css("left",0)}else{h.add(g).css("top",0)}}f.css("display","none");g.addClass("mCS_no_scrollbar");i.data({bindEvent_mousewheel:false,bindEvent_focusin:false,bindEvent_content_touch:false,bindEvent_autoHideScrollbar:false}).addClass("mCS_disabled")},destroy:function(){var d=b(this);d.removeClass("mCustomScrollbar _mCS_"+d.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();b(document).unbind("mousemove."+d.data("mCustomScrollbarIndex")+" mouseup."+d.data("mCustomScrollbarIndex")+" MSPointerMove."+d.data("mCustomScrollbarIndex")+" MSPointerUp."+d.data("mCustomScrollbarIndex"));b(window).unbind("resize."+d.data("mCustomScrollbarIndex"))}},c={showScrollbar:function(){if(b(this).css("opacity")==0){this.stop().animate({opacity:1},"fast")}},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(f,h,g,e,n,x){var x=x||{},u=x.onStart||function(){},o=x.onUpdate||function(){},v=x.onComplete||function(){};var m=s(),k,i=0,q=f.offsetTop,r=f.style;if(h==="left"){q=f.offsetLeft}var l=g-q;p();d();function s(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}}function w(){if(!i){u.call()}i=s()-m;t();if(i>=f._time){f._time=(i>f._time)?i+k-(i-f._time):i+k-1;if(f._time0){f.currVal=j(f._time,q,l,e,n);r[h]=Math.round(f.currVal)+"px"}else{r[h]=g+"px"}o.call()}function d(){k=1000/60;f._time=i+k;_request=(!window.requestAnimationFrame)?function(y){t();return setTimeout(y,0.01)}:window.requestAnimationFrame;f._id=_request(w)}function p(){if(f._id==null){return}if(!window.requestAnimationFrame){clearTimeout(f._id)}else{window.cancelAnimationFrame(f._id)}f._id=null}function j(A,z,E,D,B){switch(B){case"linear":return E*A/D+z;break;case"easeOutQuad":A/=D;return -E*A*(A-2)+z;break;case"easeInOutQuad":A/=D/2;if(A<1){return E/2*A*A+z}A--;return -E/2*(A*(A-2)-1)+z;break;case"easeOutCubic":A/=D;A--;return E*(A*A*A+1)+z;break;case"easeOutQuart":A/=D;A--;return -E*(A*A*A*A-1)+z;break;case"easeOutQuint":A/=D;A--;return E*(A*A*A*A*A+1)+z;break;case"easeOutCirc":A/=D;A--;return E*Math.sqrt(1-A*A)+z;break;case"easeOutSine":return E*Math.sin(A/D*(Math.PI/2))+z;break;case"easeOutExpo":return E*(-Math.pow(2,-10*A/D)+1)+z;break;case"mcsEaseOut":var C=(A/=D)*A,y=C*A;return z+E*(0.499999999999997*y*C+-2.5*C*C+5.5*y+-6.5*C+4*A);break;case"draggerRailEase":A/=D/2;if(A<1){return E/2*A*A*A+z}A-=2;return E/2*(A*A*A+2)+z;break}}},mTweenAxisStop:function(d){if(d._id==null){return}if(!window.requestAnimationFrame){clearTimeout(d._id)}else{window.cancelAnimationFrame(d._id)}d._id=null},rafPolyfill:function(){var e=["ms","moz","webkit","o"],d=e.length;while(--d>-1&&!window.requestAnimationFrame){window.requestAnimationFrame=window[e[d]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[e[d]+"CancelAnimationFrame"]||window[e[d]+"CancelRequestAnimationFrame"]}}};c.rafPolyfill.call();b.support.touch=!!("ontouchstart" in window);b.support.pointer=window.navigator.pointerEnabled;b.support.msPointer=window.navigator.msPointerEnabled;b.fn.mCustomScrollbar=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments)}else{b.error("Method "+d+" does not exist")}}}})(jQuery); \ No newline at end of file diff --git a/js/minified/jquery.mCustomScrollbar.min.js.gz b/js/minified/jquery.mCustomScrollbar.min.js.gz index 07c53a1163b87b8ae604201267b2ec4c1aebe2a7..e1b921483c1f3fbfd5bc73aabd98fd01fb147aff 100644 GIT binary patch literal 5876 zcmV1_V{&h7Y+_+@E^TRUE^2cC?LCWf z+c=WHqOfWm(uQa`H?vzKg}(A@#!j3|Hp$%VRx0J9MM$DWku*tJk|qB8b>l&TPsxcV zyLWY|nnVN|K%=|SFFZyc&HZ8G2EKl4tRL*CV_R$2cawfr?(lMItz(+pELW(LgD3}D1`xy9%?R^?Xf#*p$_HpIYC~@unFF*IlESSgij|rt-KZ)j4`TpQ8 zsTcP(d!7Uu!N1QVdpxGmHTB0ZG6TorOV^=%lv_Iz1KHlfUd5j#!J=Ff`*wH&qxebR zpL-trem@$)4EjBR-|0L_0zdArsc+wUw1E5PRY?2V5T@q(bHG&-<)1=I9f>S25~KXo zONs3~*!~az*7MM@6Z+mijept^V`l5bSkKI19P1kU z(ui7>W}titWw88H0*gw7esQZiz~dQk&M-k}Y+ak3&Eq7PWzybteTObJ!&vVOOSB`+ zNMX%UHkG**+EGle{6v4kaD&~4n;#q*>C9Y2c6jB3O3<~}j{DFVdUhOJFAJ?sgJoxS z_Nl8KI3{D$f%dZFItcaY^hP__9YJguCo7LyFT)^qk#+rudUoPI&_PG&u%lk@FN03- zK%8K&(xXNYoj%+3v<_ay9$0aAWsfdGJLI}!DD z%`8(w6T(&2vBr8-Kn5t2g8-t9ghs#{tPN?@MjeliVATyeoCd$JKjBi)fnh$iMn%lk zt^sD+iUcYn+x6>^uy5nQnxhKl3Lt^ z%?bi9ZlUSR<4Qw^o7%H%ZjB&q{dNMM8JJ}P!auiO3hl{kPs^w`up(NB2@MaSrTn|0 zlaIFRl_1&QLQ=gN`YY7Z3^KO73PhPK0CsPUo4}eE>b=wht}mRLKe%1EHy2zmh3HiQ zFNIOKH@UJxP;Nj}-^Jvvi?MD%z%#>$hG^Tg*LHz?x2%I}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