1!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r=t||window.event,l=s.call(arguments,1),c=0,u=0,h=0,f=0,m=0,_=0;if(t=e.event.fix(r),t.type="mousewheel","detail"in r&&(h=-1*r.detail),"wheelDelta"in r&&(h=r.wheelDelta),"wheelDeltaY"in r&&(h=r.wheelDeltaY),"wheelDeltaX"in r&&(u=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(u=-1*h,h=0),c=0===h?u:h,"deltaY"in r&&(h=-1*r.deltaY,c=h),"deltaX"in r&&(u=r.deltaX,0===h&&(c=-1*u)),0!==h||0!==u){if(1===r.deltaMode){var p=e.data(this,"mousewheel-line-height");c*=p,h*=p,u*=p}else if(2===r.deltaMode){var g=e.data(this,"mousewheel-page-height");c*=g,h*=g,u*=g}if(f=Math.max(Math.abs(h),Math.abs(u)),(!i||i>f)&&(i=f,a(r,f)&&(i/=40)),a(r,f)&&(c/=40,u/=40,h/=40),c=Math[c>=1?"floor":"ceil"](c/i),u=Math[u>=1?"floor":"ceil"](u/i),h=Math[h>=1?"floor":"ceil"](h/i),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,_=t.clientY-v.top}return t.deltaX=u,t.deltaY=h,t.deltaFactor=i,t.offsetX=m,t.offsetY=_,t.deltaMode=0,l.unshift(t,c,u,h),n&&clearTimeout(n),n=setTimeout(o,200),(e.event.dispatch||e.event.handle).apply(this,l)}}function o(){i=null}function a(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var n,i,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],l="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],s=Array.prototype.slice;if(e.event.fixHooks)for(var c=r.length;c;)e.event.fixHooks[r[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.11",setup:function(){if(this.addEventListener)for(var o=l.length;o;)this.addEventListener(l[--o],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var o=l.length;o;)this.removeEventListener(l[--o],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var o=e(t)["offsetParent"in e.fn?"offsetParent":"parent"]();return o.length||(o=e("body")),parseInt(o.css("fontSize"),10)},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e,t,o,a){var n="mCustomScrollbar",i="mCS",r=".mCustomScrollbar",l={setWidth:!1,setHeight:!1,setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,autoHideScrollbar:!1,autoExpandScrollbar:!1,alwaysShowScrollbar:0,snapAmount:null,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1},scrollButtons:{enable:!1,scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoExpandHorizontalScroll:!1,autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0,updateOnSelectorChange:!1},theme:"light",callbacks:{onScrollStart:!1,onScroll:!1,onTotalScroll:!1,onTotalScrollBack:!1,whileScrolling:!1,onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0},live:!1},s=0,c={},d=function(e){c[e]&&(clearTimeout(c[e]),m._delete.call(null,c[e]))},u=t.attachEvent&&!t.addEventListener?1:0,h=!1,f={init:function(t){var t=e.extend(!0,{},l,t),o=m._selector.call(this),a=this.selector||r;if(t.live){var n=e(a);if("off"===t.live)return void d(a);c[a]=setTimeout(function(){n.mCustomScrollbar(t),"once"===t.live&&n.length&&d(a)},500)}else d(a);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":m._findAxis.call(null,t.axis),t.scrollInertia=t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=m._findScrollButtonsType.call(null,t.scrollButtons.scrollType),m._theme.call(null,t),e(o).each(function(){var o=e(this);if(!o.data(i)){o.data(i,{idx:++s,opt:t,scrollRatio:{y:null,x:null},overflowed:null,bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null});var a=o.data(i).opt,n=o.data("mcs-axis"),r=o.data("mcs-scrollbar-position"),l=o.data("mcs-theme");n&&(a.axis=n),r&&(a.scrollbarPosition=r),l&&(a.theme=l,m._theme.call(null,a)),m._pluginMarkup.call(this),f.update.call(null,o)}})},update:function(t){var o=t||m._selector.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),a=o.opt,n=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];o.tweenRunning&&m._stop.call(null,t),t.hasClass("mCS_disabled")&&t.removeClass("mCS_disabled"),t.hasClass("mCS_destroyed")&&t.removeClass("mCS_destroyed"),m._maxHeight.call(this),m._expandContentHorizontally.call(this),"y"===a.axis||a.advanced.autoExpandHorizontalScroll||n.css("width",m._contentWidth(n.children())),o.overflowed=m._overflowed.call(this),m._scrollbarVisibility.call(this),a.autoDraggerLength&&m._setDraggerLength.call(this),m._scrollRatio.call(this),m._bindEvents.call(this);var l=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==a.axis&&(o.overflowed[0]?r[0].height()>r[0].parent().height()?m._resetContentPosition.call(this):m._scrollTo.call(this,t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}):(m._resetContentPosition.call(this),"y"===a.axis?m._unbindEvents.call(this):"yx"===a.axis&&o.overflowed[1]&&m._scrollTo.call(this,t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==a.axis&&(o.overflowed[1]?r[1].width()>r[1].parent().width()?m._resetContentPosition.call(this):m._scrollTo.call(this,t,l[1].toString(),{dir:"x",dur:0,overwrite:"none"}):(m._resetContentPosition.call(this),"x"===a.axis?m._unbindEvents.call(this):"yx"===a.axis&&o.overflowed[0]&&m._scrollTo.call(this,t,l[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),m._autoUpdate.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var a=m._selector.call(this);return e(a).each(function(){var a=e(this);if(a.data(i)){var n=a.data(i),r=n.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=m._arr.call(this,t),d=s.scrollInertia<17?17:s.scrollInertia;
1c[0]=m._to.call(this,c[0],"y"),c[1]=m._to.call(this,c[1],"x"),s.moveDragger&&(c[0]*=n.scrollRatio.y,c[1]*=n.scrollRatio.x),s.dur=d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&n.overflowed[0]&&(s.dir="y",s.overwrite="all",m._scrollTo.call(this,a,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&n.overflowed[1]&&(s.dir="x",s.overwrite="none",m._scrollTo.call(this,a,c[1].toString(),s))},60)}})}},stop:function(){var t=m._selector.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&m._stop.call(null,t)})},disable:function(t){var o=m._selector.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var a=o.data(i);a.opt;m._autoUpdate.call(this,"remove"),m._unbindEvents.call(this),t&&m._resetContentPosition.call(this),m._scrollbarVisibility.call(this,!0),o.addClass("mCS_disabled")}})},destroy:function(){var t=m._selector.call(this);return e(t).each(function(){var o=e(this);if(o.data(i)){var a=o.data(i),r=a.opt,l=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),c=e(".mCSB_"+a.idx+"_scrollbar");r.live&&d(t),m._autoUpdate.call(this,"remove"),m._unbindEvents.call(this),m._resetContentPosition.call(this),o.removeData(i),m._delete.call(null,this.mcs),c.remove(),l.replaceWith(s.contents()),o.removeClass(n+" _"+i+"_"+a.idx+" mCS-autoHide mCS-dir-rtl mCS_no_scrollbar mCS_disabled").addClass("mCS_destroyed")}})}},m={_selector:function(){return"object"!=typeof e(this.selector)||e(this.selector).length<1?r:this.selector},_theme:function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},_findAxis:function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},_findScrollButtonsType:function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},_pluginMarkup:function(){var t=e(this),o=t.data(i),a=o.opt,r=a.autoExpandScrollbar?" mCSB_scrollTools_onDrag_expand":"",l=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_vertical"+r+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+a.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='mCSB_draggerContainer'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===a.axis?"mCSB_vertical_horizontal":"x"===a.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===a.axis?l[0]+l[1]:"x"===a.axis?l[1]:l[0],d="yx"===a.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=a.autoHideScrollbar?" mCS-autoHide":"",h="x"!==a.axis&&"rtl"===o.langDir?" mCS-dir-rtl":"";a.setWidth&&t.css("width",a.setWidth),a.setHeight&&t.css("height",a.setHeight),a.setLeft="y"!==a.axis&&"rtl"===o.langDir?"989999px":a.set
1Left,t.addClass(n+" _"+i+"_"+o.idx+u+h).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+a.theme+" "+s+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+a.setTop+"; left:"+a.setLeft+";' dir="+o.langDir+" /></div>");var f=e("#mCSB_"+o.idx),_=e("#mCSB_"+o.idx+"_container");"y"===a.axis||a.advanced.autoExpandHorizontalScroll||_.css("width",m._contentWidth(_.children())),"outside"===a.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),f.addClass("mCSB_outside").after(c)):(f.addClass("mCSB_inside").append(c),_.wrap(d)),m._scrollButtons.call(this);var p=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},_contentWidth:function(t){return Math.max.apply(Math,t.map(function(){return e(this).outerWidth(!0)}).get())},_expandContentHorizontally:function(){var t=e(this),o=t.data(i),a=o.opt,n=e("#mCSB_"+o.idx+"_container");a.advanced.autoExpandHorizontalScroll&&"y"!==a.axis&&n.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(n[0].getBoundingClientRect().right+.4)-Math.floor(n[0].getBoundingClientRect().left),position:"relative"}).unwrap()},_scrollButtons:function(){var t=e(this),o=t.data(i),a=o.opt,n=e(".mCSB_"+o.idx+"_scrollbar:first"),r=["<a href='#' class='mCSB_buttonUp' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonDown' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonLeft' oncontextmenu='return false;' />","<a href='#' class='mCSB_buttonRight' oncontextmenu='return false;' />"],l=["x"===a.axis?r[2]:r[0],"x"===a.axis?r[3]:r[1],r[2],r[3]];a.scrollButtons.enable&&n.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},_maxHeight:function(){var t=e(this),o=t.data(i),a=(o.opt,e("#mCSB_"+o.idx)),n=t.css("max-height"),r=-1!==n.indexOf("%"),l=t.css("box-sizing");if("none"!==n){var s=r?t.parent().height()*parseInt(n)/100:parseInt(n);"border-box"===l&&(s-=t.innerHeight()-t.height()+(t.outerHeight()-t.innerHeight())),a.css("max-height",Math.round(s))}},_setDraggerLength:function(){var t=e(this),o=t.data(i),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[a.height()/n.outerHeight(!1),a.width()/n.outerWidth(!1)],s=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],c=u&&s[1]<s[0]?s[0]:s[1],d=u&&s[3]<s[2]?s[2]:s[3];r[0].css({height:c,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":s[0]+"px"}),r[1].css({width:d,"max-width":r[1].parent().width()-10})},_scrollRatio:function(){var t=e(this),o=t.data(i),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.outerHeight(!1)-a.height(),n.outerWidth(!1)-a.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},_onDragClasses:function(e,t,o){var a=o?"mCSB_dragger_onDrag_expanded":"",n=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag"],i=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(n[0]+" "+a),i.toggleClass(n[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(n[0]),i.removeClass(n[1])):(e.addClass(n[0]),i.addClass(n[1])))},_overflowed:function(){var t=e(this),o=t.data(i),a=e("#mCSB_"+o.idx),n=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?n.height():n.outerHeight(!1),l=null==o.overflowed?n.width():n.outerWidth(!1);return[r>a.height(),l>a.width()]},_resetContentPosition:function(){var t=e(this),o=t.data(i),a=o.opt,n=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(m._stop(t),("x"!==a.axis&&!o.overflowed[0]||"y"===a.axis&&o.overflowed[0])&&l[0].add(r).css("top",0),"y"!==a.axis&&!o.overflowed[1]||"x"===a.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=n.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx)}},_bindEvents:function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),m._mousewheel.call(o[0])):t()},1e3)}var o=e(this),a=o.data(i),n=a.opt;if(!a.bindEvents){if(m._draggable.call(this),n.contentTouchScroll&&m._contentDraggable.call(this),n.mouseWheel.enable){var r;t()}m._draggerRail.call(this),m._wrapperScroll.call(this),n.advanced.autoScrollOnFocus&&m._focus.call(this),n.scrollButtons.enable&&m._buttons.call(this),n.keyboard.enable&&m._keyboard.call(this),a.bindEvents=!0}},_unbindEvents:function(){var t=e(this),a=t.data(i),n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+r+" .mCSB_draggerContainer,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+a.idx+"_container");a.bindEvents&&(e(o).unbind("."+n),l.each(function(){e(this).unbind("."+n)}),clearTimeout(t[0]._focusTimeout),m._delete.call(null,t[0]._focusTimeout),clearTimeout(a.sequential.step),m._delete.call(null,a.sequential.step),clearTimeout(s[0].onCompleteTimeout),m._delete.call(null,s[0].onCompleteTimeout),a.bindEvents=!1)},_scrollbarVisibility:function(t){var o=e(this),a=o.data(i),n=a.opt,r=e("#mCSB_"+a.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+a.idx+"_container"),s=[e("#mCSB_"+a.idx+"_scrollbar_vertical"),e("#mCSB_"+a.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==n.axis&&(a.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass("mCS_no_scrollbar_y mCS_y_hidden")):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[0].add(s[0].children("a")).css("display","none"),l.removeClass("mCS_y_hidden")):(s[0].css("display","none"),l.addClass("mCS_y_hidden")),l.addClass("mCS_no_scrollbar_y"))),"y"!==n.axis&&(a.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass("mCS_no_scrollbar_x mCS_x_hidden")):(n.alwaysShowScrollbar?(2!==n.alwaysShowScrollbar&&c[1].add(s[1].children("a")).css("display","none"),l.removeClass("mCS_x_hidden")):(s[1].css("display","none"),l.addClass("mCS_x_hidden")),l.addClass("mCS_no_scrollbar_x"))),a.overflowed[0]||a.overflowed[1]?o.removeClass("mCS_no_scrollbar"):o.addClass("mCS_no_scrollbar")},_coordinates:function(e){var t=e.type;switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return[e.originalEvent.pageY,e.originalEvent.pageX];case"touchstart":case"touchmove":case"touchend":var o=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];return[o.pageY,o.pageX];default:return[e.pageY,e.pageX]}},_draggable:function(){function t(e){var t=p.find("iframe");
1if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}}function a(e,t,o,a){if(p[0].idleTimer=d.scrollInertia<233?250:0,n.attr("id")===_[1])var i="x",r=(n[0].offsetLeft-t+a)*c.scrollRatio.x;else var i="y",r=(n[0].offsetTop-e+o)*c.scrollRatio.y;m._scrollTo(s,r.toString(),{dir:i,drag:!0})}var n,r,l,s=e(this),c=s.data(i),d=c.opt,f=i+"_"+c.idx,_=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],p=e("#mCSB_"+c.idx+"_container"),g=e("#"+_[0]+",#"+_[1]);g.bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(a){if(a.stopImmediatePropagation(),a.preventDefault(),m._mouseBtnLeft(a)){h=!0,u&&(o.onselectstart=function(){return!1}),t(!1),m._stop(s),n=e(this);var i=n.offset(),c=m._coordinates(a)[0]-i.top,f=m._coordinates(a)[1]-i.left,_=n.height()+i.top,p=n.width()+i.left;_>c&&c>0&&p>f&&f>0&&(r=c,l=f),m._onDragClasses(n,"active",d.autoExpandScrollbar)}}).bind("touchmove."+f,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=n.offset(),o=m._coordinates(e)[0]-t.top,i=m._coordinates(e)[1]-t.left;a(r,l,o,i)}),e(o).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(e){if(n){var t=n.offset(),o=m._coordinates(e)[0]-t.top,i=m._coordinates(e)[1]-t.left;if(r===o)return;a(r,l,o,i)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(e){n&&(m._onDragClasses(n,"active",d.autoExpandScrollbar),n=null),h=!1,u&&(o.onselectstart=null),t(!0)})},_contentDraggable:function(){function t(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function o(e,t,o,a,n,i){e&&m._scrollTo(g,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var a,n,r,l,s,c,d,u,f,_,p,g=e(this),v=g.data(i),x=v.opt,S=i+"_"+v.idx,C=e("#mCSB_"+v.idx),w=e("#mCSB_"+v.idx+"_container"),b=[e("#mCSB_"+v.idx+"_dragger_vertical"),e("#mCSB_"+v.idx+"_dragger_horizontal")],y=[],B=[],T=0,M="yx"===x.axis?"none":"all";w.bind("touchstart."+S+" pointerdown."+S+" MSPointerDown."+S,function(e){if(m._pointerTouch(e)&&!h){var t=w.offset();a=m._coordinates(e)[0]-t.top,n=m._coordinates(e)[1]-t.left}}).bind("touchmove."+S+" pointermove."+S+" MSPointerMove."+S,function(e){if(m._pointerTouch(e)&&!h){e.stopImmediatePropagation(),c=m._getTime();var t=C.offset(),i=m._coordinates(e)[0]-t.top,r=m._coordinates(e)[1]-t.left,l="mcsLinearOut";if(y.push(i),B.push(r),v.overflowed[0])var s=b[0].parent().height()-b[0].height(),d=a-i>0&&i-a>-(s*v.scrollRatio.y);if(v.overflowed[1])var u=b[1].parent().width()-b[1].width(),f=n-r>0&&r-n>-(u*v.scrollRatio.x);(d||f)&&e.preventDefault(),_="yx"===x.axis?[a-i,n-r]:"x"===x.axis?[null,n-r]:[a-i,null],w[0].idleTimer=250,v.overflowed[0]&&o(_[0],T,l,"y","all",!0),v.overflowed[1]&&o(_[1],T,l,"x",M,!0)}}),C.bind("touchstart."+S+" pointerdown."+S+" MSPointerDown."+S,function(e){if(m._pointerTouch(e)&&!h){e.stopImmediatePropagation(),m._stop(g),s=m._getTime();var t=C.offset();r=m._coordinates(e)[0]-t.top,l=m._coordinates(e)[1]-t.left,y=[],B=[]}}).bind("touchend."+S+" pointerup."+S+" MSPointerUp."+S,function(e){if(m._pointerTouch(e)&&!h){e.stopImmediatePropagation(),d=m._getTime();var a=C.offset(),n=m._coordinates(e)[0]-a.top,i=m._coordinates(e)[1]-a.left;if(!(d-c>30)){f=1e3/(d-s);var g="mcsEaseOut",S=2.5>f,b=S?[y[y.length-2],B[B.length-2]]:[0,0];u=S?[n-b[0],i-b[1]]:[n-r,i-l];var T=[Math.abs(u[0]),Math.abs(u[1])];f=S?[Math.abs(u[0]/4),Math.abs(u[1]/4)]:[f,f];var k=[Math.abs(w[0].offsetTop)-u[0]*t(T[0]/f[0],f[0]),Math.abs(w[0].offsetLeft)-u[1]*t(T[1]/f[1],f[1])];_="yx"===x.axis?[k[0],k[1]]:"x"===x.axis?[null,k[1]]:[k[0],null],p=[4*T[0]+x.scrollInertia,4*T[1]+x.scrollInertia];var D=parseInt(x.contentTouchScroll)||0;_[0]=T[0]>D?_[0]:0,_[1]=T[1]>D?_[1]:0,v.overflowed[0]&&o(_[0],p[0],g,"y",M,!1),v.overflowed[1]&&o(_[1],p[1],g,"x",M,!1)}}})},_mousewheel:function(){var t=e(this),o=t.data(i),a=o.opt,n=i+"_"+o.idx,r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];r.bind("mousewheel."+n,function(n,i){m._stop(t);var s="auto"!==a.mouseWheel.deltaFactor?parseInt(a.mouseWheel.deltaFactor):u&&n.deltaFactor<100?100:n.deltaFactor<40?40:n.deltaFactor||100;
1if("x"===a.axis||"x"===a.mouseWheel.axis)var c="x",d=[Math.round(s*o.scrollRatio.x),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=r.width()?.9*r.width():d[0],f=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),_=l[1][0].offsetLeft,p=l[1].parent().width()-l[1].width(),g=n.deltaX||n.deltaY||i;else var c="y",d=[Math.round(s*o.scrollRatio.y),parseInt(a.mouseWheel.scrollAmount)],h="auto"!==a.mouseWheel.scrollAmount?d[1]:d[0]>=r.height()?.9*r.height():d[0],f=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),_=l[0][0].offsetTop,p=l[0].parent().height()-l[0].height(),g=n.deltaY||i;"y"===c&&!o.overflowed[0]||"x"===c&&!o.overflowed[1]||(a.mouseWheel.invert&&(g=-g),a.mouseWheel.normalizeDelta&&(g=0>g?-1:1),(g>0&&0!==_||0>g&&_!==p||a.mouseWheel.preventDefault)&&(n.stopImmediatePropagation(),n.preventDefault()),m._scrollTo(t,(f-g*h).toString(),{dir:c}))})},_draggerRail:function(){var t=e(this),o=t.data(i),a=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container"),r=n.parent(),l=e(".mCSB_"+o.idx+"_scrollbar .mCSB_draggerContainer");l.bind("touchstart."+a+" pointerdown."+a+" MSPointerDown."+a,function(e){h=!0}).bind("touchend."+a+" pointerup."+a+" MSPointerUp."+a,function(e){h=!1}).bind("click."+a,function(a){if(e(a.target).hasClass("mCSB_draggerContainer")||e(a.target).hasClass("mCSB_draggerRail")){m._stop(t);var i=e(this),l=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var s="x",c=a.pageX>l.offset().left?-1:1,d=Math.abs(n[0].offsetLeft)-c*(.9*r.width())}else{if(!o.overflowed[0])return;var s="y",c=a.pageY>l.offset().top?-1:1,d=Math.abs(n[0].offsetTop)-c*(.9*r.height())}m._scrollTo(t,d.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}})},_focus:function(){var t=e(this),a=t.data(i),n=a.opt,r=i+"_"+a.idx,l=e("#mCSB_"+a.idx+"_container"),s=l.parent();l.bind("focusin."+r,function(a){var i=e(o.activeElement),r=l.find(".mCustomScrollBox").length,c=0;i.is(n.advanced.autoScrollOnFocus)&&(m._stop(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=r?(c+17)*r:0,t[0]._focusTimeout=setTimeout(function(){var e=[i.offset().top-l.offset().top,i.offset().left-l.offset().left],o=[l[0].offsetTop,l[0].offsetLeft],a=[o[0]+e[0]>=0&&o[0]+e[0]<s.height()-i.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<s.width()-i.outerWidth(!1)],r="yx"!==n.axis||a[0]||a[1]?"all":"none";"x"===n.axis||a[0]||m._scrollTo(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:r,dur:c}),"y"===n.axis||a[1]||m._scrollTo(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:r,dur:c})},t[0]._focusTimer))})},_wrapperScroll:function(){var t=e(this),o=t.data(i),a=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container").parent();n.bind("scroll."+a,function(e){n.scrollTop(0).scrollLeft(0)})},_buttons:function(){var t=e(this),o=t.data(i),a=o.opt,n=o.sequential,r=i+"_"+o.idx,l=(e("#mCSB_"+o.idx+"_container"),".mCSB_"+o.idx+"_scrollbar"),s=e(l+">a");s.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(i){function r(e,o){n.scrollAmount=a.snapAmount||a.scrollButtons.scrollAmount,m._sequentialScroll.call(this,t,e,o)}if(i.preventDefault(),m._mouseBtnLeft(i)){var l=e(this).attr("class");switch(n.type=a.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===n.type)return;h=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===n.type)return;h=!1,n.dir&&r("off",l);break;case"click":if("stepped"!==n.type||o.tweenRunning)return;r("on",l)}}})},_keyboard:function(){var t=e(this),a=t.data(i),n=a.opt,r=a.sequential,l=i+"_"+a.idx,s=e("#mCSB_"+a.idx),c=e("#mCSB_"+a.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']";s.attr("tabindex","0").bind("blur."+l+" keydown."+l+" keyup."+l,function(i){function l(e,o){r.type=n.keyboard.scrollType,r.scrollAmount=n.snapAmount||n.keyboard.scrollAmount,"stepped"===r.type&&a.tweenRunning||m._sequentialScroll.call(this,t,e,o)}switch(i.type){case"blur":a.tweenRunning&&r.dir&&l("off",null);break;case"keydown":case"keyup":var s=i.keyCode?i.keyCode:i.which,h="on";if("x"!==n.axis&&(38===s||40===s)||"y"!==n.axis&&(37===s||39===s)){if((38===s||40===s)&&!a.overflowed[0]||(37===s||39===s)&&!a.overflowed[1])return;
1"keyup"===i.type&&(h="off"),e(o.activeElement).is(u)||(i.preventDefault(),i.stopImmediatePropagation(),l(h,s))}else if(33===s||34===s){if((a.overflowed[0]||a.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type){m._stop(t);var f=34===s?-1:1;if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var _="x",p=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var _="y",p=Math.abs(c[0].offsetTop)-f*(.9*d.height());m._scrollTo(t,p.toString(),{dir:_,scrollEasing:"mcsEaseInOut"})}}else if((35===s||36===s)&&!e(o.activeElement).is(u)&&((a.overflowed[0]||a.overflowed[1])&&(i.preventDefault(),i.stopImmediatePropagation()),"keyup"===i.type)){if("x"===n.axis||"yx"===n.axis&&a.overflowed[1]&&!a.overflowed[0])var _="x",p=35===s?Math.abs(d.width()-c.outerWidth(!1)):0;else var _="y",p=35===s?Math.abs(d.height()-c.outerHeight(!1)):0;m._scrollTo(t,p.toString(),{dir:_,scrollEasing:"mcsEaseInOut"})}}})},_sequentialScroll:function(t,o,a){function n(e){var o="stepped"!==c.type,a=e?o?s.scrollInertia/1.5:s.scrollInertia:1e3/60,i=e?o?7.5:40:2.5,r=[Math.abs(d[0].offsetTop),Math.abs(d[0].offsetLeft)],u=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],h="x"===c.dir[0]?r[1]+c.dir[1]*(u[1]*i):r[0]+c.dir[1]*(u[0]*i),f="x"===c.dir[0]?r[1]+c.dir[1]*parseInt(c.scrollAmount):r[0]+c.dir[1]*parseInt(c.scrollAmount),_="auto"!==c.scrollAmount?f:h,p=e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",g=e?!0:!1;return e&&17>a&&(_="x"===c.dir[0]?r[1]:r[0]),m._scrollTo(t,_.toString(),{dir:c.dir[0],scrollEasing:p,dur:a,onComplete:g}),e?void(c.dir=!1):(clearTimeout(c.step),void(c.step=setTimeout(function(){n()},a)))}function r(){clearTimeout(c.step),m._stop(t)}var l=t.data(i),s=l.opt,c=l.sequential,d=e("#mCSB_"+l.idx+"_container"),u="stepped"===c.type?!0:!1;switch(o){case"on":if(c.dir=["mCSB_buttonRight"===a||"mCSB_buttonLeft"===a||39===a||37===a?"x":"y","mCSB_buttonUp"===a||"mCSB_buttonLeft"===a||38===a||37===a?-1:1],m._stop(t),m._isNumeric(a)&&"stepped"===c.type)return;n(u);break;case"off":r(),(u||l.tweenRunning&&c.dir)&&n(!0)}},_arr:function(t){var o=e(this).data(i).opt,a=[];return"function"==typeof t&&(t=t()),t instanceof Array?a=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(a[0]=t.y?t.y:t.x||"x"===o.axis?null:t,a[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof a[0]&&(a[0]=a[0]()),"function"==typeof a[1]&&(a[1]=a[1]()),a},_to:function(t,o){if(null!=t&&"undefined"!=typeof t){var a=e(this),n=a.data(i),r=n.opt,l=e("#mCSB_"+n.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1):l.outerHeight(!1),u="x"===o?l.offset().left:l.offset().top,h="x"===o?l[0].offsetLeft:l[0].offsetTop,_="x"===o?"left":"top";switch(c){case"function":return t();case"object":if(t.nodeType)var p="x"===o?e(t).offset().left:e(t).offset().top;else if(t.jquery){if(!t.length)return;var p="x"===o?t.offset().left:t.offset().top}return p-u;case"string":case"number":if(m._isNumeric.call(null,t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(h-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var g=h+parseInt(t.split("+=")[1]);return g>=0?0:Math.abs(g)}if(-1!==t.indexOf("px")&&m._isNumeric.call(null,t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var v=l.find(":"+t),p="x"===o?e(v).offset().left:e(v).offset().top;return p-u}if(e(t).length){var p="x"===o?e(t).offset().left:e(t).offset().top;return p-u}return l.css(_,t),void f.update.call(null,a[0])}}},_autoUpdate:function(t){function o(){clearTimeout(u[0].autoUpdate),u[0].autoUpdate=setTimeout(function(){return d.advanced.updateOnSelectorChange&&(h=r(),h!==S)?(l(),void(S=h)):(d.advanced.updateOnContentResize&&(_=[u.outerHeight(!1),u.outerWidth(!1),g.height(),g.width(),x()[0],x()[1]],(_[0]!==C[0]||_[1]!==C[1]||_[2]!==C[2]||_[3]!==C[3]||_[4]!==C[4]||_[5]!==C[5])&&(l(),C=_)),d.advanced.updateOnImageLoad&&(p=a(),p!==w&&(u.find("img").each(function(){n(this.src)}),w=p)),void((d.advanced.updateOnSelectorChange||d.advanced.updateOnContentResize||d.advanced.updateOnImageLoad)&&o()))},60)}function a(){var e=0;return d.advanced.updateOnImageLoad&&(e=u.find("img").length),e}function n(e){function t(e,t){return function(){return t.apply(e,arguments)}}function o(){this.onload=null,l()}var a=new Image;a.onload=t(a,o),a.src=e}function r(){d.advanced.updateOnSelectorChange===!0&&(d.advanced.updateOnSelectorChange="*");var t=0,o=u.find(d.advanced.updateOnSelectorChange);return d.advanced.updateOnSelectorChange&&o.length>0&&o.each(function(){t+=e(this).height()+e(this).width()}),t}function l(){clearTimeout(u[0].autoUpdate),f.update.call(null,s[0])}var s=e(this),c=s.data(i),d=c.opt,u=e("#mCSB_"+c.idx+"_container");if(t)return clearTimeout(u[0].autoUpdate),void m._delete.call(null,u[0].autoUpdate);var h,_,p,g=u.parent(),v=[e("#mCSB_"+c.idx+"_scrollbar_vertical"),e("#mCSB_"+c.idx+"_scrollbar_horizontal")],x=function(){return[v[0].is(":visible")?v[0].outerHeight(!0):0,v[1].is(":visible")?v[1].outerWidth(!0):0]},S=r(),C=[u.outerHeight(!1),u.outerWidth(!1),g.height(),g.width(),x()[0],x()[1]],w=a();o()},_snapAmount:function(e,t,o){return Math.round(e/t)*t-o},_stop:function(t){var o=t.data(i),a=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal"); 2a.each(function(){m._stopTween.call(this)})},_scrollTo:function(t,o,a){function n(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||x>=S[0]+w,c.callbacks.alwaysTriggerOffsets||-b>=x]}function l(){var e=[f[0].offsetTop,f[0].offsetLeft],o=[g[0].offsetTop,g[0].offsetLeft],n=[f.outerHeight(!1),f.outerWidth(!1)],i=[h.height(),h.width()];
2t[0].mcs={content:f,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var s=t.data(i),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=e.extend(d,a),u=[a.dur,a.drag?0:a.dur],h=e("#mCSB_"+s.idx),f=e("#mCSB_"+s.idx+"_container"),_=c.callbacks.onTotalScrollOffset?m._arr.call(t,c.callbacks.onTotalScrollOffset):[0,0],p=c.callbacks.onTotalScrollBackOffset?m._arr.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];switch(s.trigger=a.trigger,c.snapAmount&&(o=m._snapAmount(o,c.snapAmount,c.snapOffset)),a.dir){case"x":var g=e("#mCSB_"+s.idx+"_dragger_horizontal"),v="left",x=f[0].offsetLeft,S=[h.width()-f.outerWidth(!1),g.parent().width()-g.width()],C=[o,o/s.scrollRatio.x],w=_[1],b=p[1],y=w>0?w/s.scrollRatio.x:0,B=b>0?b/s.scrollRatio.x:0;break;case"y":var g=e("#mCSB_"+s.idx+"_dragger_vertical"),v="top",x=f[0].offsetTop,S=[h.height()-f.outerHeight(!1),g.parent().height()-g.height()],C=[o,o/s.scrollRatio.y],w=_[0],b=p[0],y=w>0?w/s.scrollRatio.y:0,B=b>0?b/s.scrollRatio.y:0}C[1]<0?C=[0,0]:C[1]>=S[1]?C=[S[0],S[1]]:C[0]=-C[0],clearTimeout(f[0].onCompleteTimeout),(s.tweenRunning||!(0===x&&C[0]>=0||x===S[0]&&C[0]<=S[0]))&&(m._tweenTo.call(null,g[0],v,Math.round(C[1]),u[1],a.scrollEasing),m._tweenTo.call(null,f[0],v,Math.round(C[0]),u[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!s.tweenRunning&&(n("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,m._onDragClasses(g),s.cbOffsets=r())},onUpdate:function(){a.callbacks&&a.onUpdate&&n("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===c.axis&&clearTimeout(f[0].onCompleteTimeout);var e=f[0].idleTimer||0;f[0].onCompleteTimeout=setTimeout(function(){n("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),n("onTotalScroll")&&C[1]>=S[1]-y&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),n("onTotalScrollBack")&&C[1]<=B&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,f[0].idleTimer=0,m._onDragClasses(g,"hide")},e)}}}))},_tweenTo:function(e,o,a,n,i,r,l){function s(){e._mcsstop||(x||_.call(),x=m._getTime()-v,c(),x>=e._mcstime&&(e._mcstime=x>e._mcstime?x+f-(x-e._mcstime):x+f-1,e._mcstime<x+1&&(e._mcstime=x+1)),e._mcstime<n?e._mcsid=_request(s):g.call())}function c(){n>0?(e._mcscurrVal=h(e._mcstime,S,w,n,i),C[o]=Math.round(e._mcscurrVal)+"px"):C[o]=a+"px",p.call()}function d(){f=1e3/60,e._mcstime=x+f,_request=t.requestAnimationFrame?t.requestAnimationFrame:function(e){return c(),setTimeout(e,.01)},e._mcsid=_request(s)}function u(){null!=e._mcsid&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._mcsid):clearTimeout(e._mcsid),e._mcsid=null)}function h(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}var f,l=l||{},_=l.onStart||function(){},p=l.onUpdate||function(){},g=l.onComplete||function(){},v=m._getTime(),x=0,S=e.offsetTop,C=e.style;"left"===o&&(S=e.offsetLeft);var w=a-S;
2e._mcsstop=0,"none"!==r&&u(),d()},_getTime:function(){return t.performance&&t.performance.now?t.performance.now():t.performance&&t.performance.webkitNow?t.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},_stopTween:function(){var e=this;null!=e._mcsid&&(t.requestAnimationFrame?t.cancelAnimationFrame(e._mcsid):clearTimeout(e._mcsid),e._mcsid=null,e._mcsstop=1)},_delete:function(e){try{delete e}catch(t){e=null}},_mouseBtnLeft:function(e){return!(e.which&&1!==e.which)},_pointerTouch:function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},_isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}};e.fn[n]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[n]=function(t){return f[t]?f[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):f.init.apply(this,arguments)},e[n].defaults=l,t[n]=!0,e(t).load(function(){e(r)[n]()})}(jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.