/*! * OverlayScrollbars * https://github.com/KingSora/OverlayScrollbars * * Version: 1.7.1 * * Copyright KingSora. * https://github.com/KingSora * * Released under the MIT license. * Date: 22.05.2019 */ !function(n,t){"function"==typeof define&&define.amd?define(function(){return t(n,n.document,undefined)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(n,n.document,undefined):t(n,n.document,undefined)}("undefined"!=typeof window?window:this,function(dt,pt,xe){"use strict";var a,e,o,bt="OverlayScrollbars",mt="object",wt="function",gt="array",yt="string",xt="boolean",Ot="number",p="undefined",h="null",St="class",Oe="style",_t="id",zt="length",Se="prototype",_e="offsetHeight",ze="clientHeight",Te="scrollHeight",Ie="offsetWidth",ke="clientWidth",Ce="scrollWidth",Ae={u:{},v:{},m:["-webkit-","-moz-","-o-","-ms-"],g:["WebKit","Moz","O","MS"],O:function(n){var t=this.v;if(t[n])return t[n];for(var r,i,e=this.m,o=this.S(n),u=pt.createElement("div")[Oe],f=0,a=0;f
'),u=_[0],i=Le(_.children("div").eq(0));S.append(_),_.hide().show();var t,r,f,a,c,s,l,v,h,d=z(u),p={x:0===d.x,y:0===d.y};function z(n){return{x:n[_e]-n[ze],y:n[Ie]-n[ke]}}Le.extend(O,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!He.mO(),nativeScrollbarSize:d,nativeScrollbarIsOverlaid:p,nativeScrollbarStyling:(_.addClass("os-viewport-native-scrollbars-invisible"),_.css(e,o).hide().css(e,"scroll").show(),u[_e]-u[ze]==0&&u[Ie]-u[ke]==0),overlayScrollbarDummySize:{x:30,y:30},msie:(r=dt.navigator.userAgent,f="indexOf",a="substring",c=r[f]("MSIE "),s=r[f]("Trident/"),l=r[f]("Edge/"),v=r[f]("rv:"),h=parseInt,0e&&(t.update("auto"),h[a]=new Date(o+=e)),n=Ne.max(1,Ne.min(n,e)));p=n}}else p=33};this.add=function(n){-1===Le.inArray(n,v)&&(v.push(n),h.push(He.now()),0/g,(l?"-":zi)+ki)[v](/px/g,zi)[v](/%/g," * "+c*(s&&At.n?-1:1)/100)[v](/vw/g," * "+li.w)[v](/vh/g," * "+li.h),ve(isNaN(t)?ve(h(t),!0).toFixed():t)):t)!==xe&&!isNaN(i)&&ct(i)==Ot){var d=y&&s,p=a*(d&&At.n?-1:1),b=d&&At.i,m=d&&At.n;switch(p=b?c-p:p,r){case"+=":o=p+i;break;case"-=":o=p-i;break;case"*=":o=p*i;break;case"/=":o=p/i;break;default:o=i}o=b?c-o:o,o*=m?-1:1,o=s&&At.n?Ne.min(0,Ne.max(c,o)):Ne.max(0,Ne.min(c,o))}return o===a?xe:o},U=function(n,t,r,i){var e,o,u=[r,r],f=ct(n);if(f==t)n=[n,n];else if(f==gt){if(2<(e=n[N])||e<1)n=u;else for(1===e&&(n[1]=r),l=0;l=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Yn(),(ti||ri)&&oe(!1)}}function E(n){e=er[k](),e=isNaN(e)?0:e,(Yt&&O&&!At.n||!Yt)&&(e=e<0?0:e),z=ot()[I],_=a(n),Q=!c(u),ge(M,Wn),ge(r.en,o),ge(r.an,o),D.on(J,h).on(K,N).on(en,Gn),!L&&p||He.prvD(n),He.stpP(n)}r.en.on(Li,function(n){H(n)&&E(n)}),r.un.on(Li,function(n){if(H(n)){var h,d=Ne.round(li[r.W]),p=r.un.offset()[r.j],t=n.ctrlKey,b=n.shiftKey,m=b&&t,w=!0,g=function(n){Q&&fe(O,n)},y=function(){g(),E(n)},x=function(){if(!Mt){var n=(_-p)*z,t=T.N,r=T.D,i=T.L,e=T.H,o=T.C,u=270*C,f=w?Ne.max(400,u):u,a=e*((n-i/2)/(r-i)),c=Yt&&O&&(!At.i&&!At.n||Ur),s=c?t"+(n||zi)+""}function at(n,t){for(var r,i=t.split(X),e=0;e