-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverflow-android.min.js
1 lines (1 loc) · 16.7 KB
/
overflow-android.min.js
1
!function(t,e){"use strict";function o(t,e,o,i,r,n){function l(t){function e(t){return 0>t?-1:1}var o,i,r,n,l,a=t[1]/t[0],s=t[2]/t[0],c=t[3]/t[0],p=(3*s-Math.pow(a,2))/9,f=(9*a*s-27*c-2*Math.pow(a,3))/54,u=Math.pow(p,3)+Math.pow(f,2);for(u>=0?(o=e(f+Math.sqrt(u))*Math.pow(Math.abs(f+Math.sqrt(u)),1/3),i=e(f-Math.sqrt(u))*Math.pow(Math.abs(f-Math.sqrt(u)),1/3),r=[-a/3+(o+i),-a/3-(o+i)/2,-a/3-(o+i)/2],0!==Math.abs(Math.sqrt(3)*(o-i)/2)&&(r[1]=r[2]=-1)):(n=Math.acos(f/Math.sqrt(-Math.pow(p,3))),r=[2*Math.sqrt(-p)*Math.cos(n/3)-a/3,2*Math.sqrt(-p)*Math.cos((n+2*Math.PI)/3)-a/3,2*Math.sqrt(-p)*Math.cos((n+4*Math.PI)/3)-a/3]),l=0;2>=l;l++)(r[l]<0||r[l]>1)&&(r[l]=-1);return function(t){var e,o,i,r;do for(e=!1,i=0,r=t.length-1;r>i;i++)(t[i+1]>=0&&t[i]>t[i+1]||t[i]<0&&t[i+1]>=0)&&(o=t[i],t[i]=t[i+1],t[i+1]=o,e=!0);while(e);return t}(r)}function a(t,e,o,i){return[-t+3*e+-3*o+i,3*t-6*e+3*o,-3*t+3*e,t]}var s,c,p=n.y-r.y,f=r.x-n.x;return s=a(t.x,e.x,o.x,i.x),c=a(t.y,e.y,o.y,i.y),l([p*s[0]+f*c[0],p*s[1]+f*c[1],p*s[2]+f*c[2],p*s[3]+f*c[3]+(r.x*(r.y-n.y)+r.y*(n.x-r.x))]).filter(function(t){var e=n.x-r.x!==0?(s[0]*t*t*t+s[1]*t*t+s[2]*t+s[3]-r.x)/(n.x-r.x):(c[0]*t*t*t+c[1]*t*t+c[2]*t+c[3]-r.y)/(n.y-r.y);return t>=0&&1>=t&&e>=0&&1>=e})}function i(t,e,o,i,r){var n=1-r,l=Math.pow(n,3),a=Math.pow(n,2),s=r*r,c=s*r,p=l*t.x+3*a*r*e.x+3*n*r*r*o.x+c*i.x,f=l*t.y+3*a*r*e.y+3*n*r*r*o.y+c*i.y,u=t.x+2*r*(e.x-t.x)+s*(o.x-2*e.x+t.x),h=t.y+2*r*(e.y-t.y)+s*(o.y-2*e.y+t.y),y=e.x+2*r*(o.x-e.x)+s*(i.x-2*o.x+e.x),d=e.y+2*r*(o.y-e.y)+s*(i.y-2*o.y+e.y),x=n*t.x+r*e.x,m=n*t.y+r*e.y,v=n*o.x+r*i.x,g=n*o.y+r*i.y,w=90-180*Math.atan2(u-y,h-d)/Math.PI;return w+=w>180?-180:180,{x:p,y:f,fromP2:{x:u,y:h},toP1:{x:y,y:d},fromP1:{x:x,y:m},toP2:{x:v,y:g},angle:w}}function r(t,e){var o=document.createEvent("UIEvent");o.initUIEvent("scroll",!1,!1,document.defaultView,0),o.inertia=!!e,t.dispatchEvent(o)}function n(t,e){var o,i=t.style;for(o in e)e.hasOwnProperty(o)&&(i[o]=e[o]);return t}function l(t){return L||(L={},L[P("transform",t)]="translateZ(0)",L[P("perspective",t)]="1000px",L[P("backfaceVisibility",t)]="hidden",L[P("tapHighlightColor",t)]="rgba(0, 0, 0, 0)",L[P("boxShadow",t)]="0 0 1px rgba(0, 0, 0, 0)"),n(t,L)}function a(t,e,o,i,n){var l,a=t.scrollValue,s={left:e,top:o};return t.enable?(j.forEach(function(e){"number"!=typeof s[e.lt]&&(s[e.lt]=a[e.lt]),s[e.lt]<0?s[e.lt]=0:s[e.lt]>t.scrollMax[e.lt]&&(s[e.lt]=t.scrollMax[e.lt])}),((l=s.left!==a.left||s.top!==a.top)||i)&&(n||V(t),a.left=s.left,a.top=s.top,B(t,a),M.scrollBar&&t.scrollBars.update(),l&&r(t.elmView,t.inertia.isScrolling)),a):a}function s(t,e,o){return t.positionMax[e]-o[e]-t.positionOffset[e]}function c(t,e,o){return t.positionMax[e]-o[e]-t.positionOffset[e]}function p(t,e){t.elmContent.style[S]="translate3d("+s(t,"left",e)+"px, "+s(t,"top",e)+"px, 0)"}function f(t,e){n(t.elmContent,{left:s(t,"left",e)+"px",top:s(t,"top",e)+"px"})}function u(t,e){var o,i,r=t.inertia,l=t.elmContent,a={};window.clearTimeout(O),r.isScrolling&&(e?e.propertyName===S&&e.target===l&&(r.keyframes.length?n(l,r.keyframes.shift()):r.isScrolling=!1,e.stopPropagation()):r.isScrolling=!1,r.isScrolling||(o=window.getComputedStyle(l,"")[S].match(/(-?[\d\.]+)/g),o&&6===o.length&&(i={left:+o[4],top:+o[5]},t.scrollValue.left=c(t,"left",i),t.scrollValue.top=c(t,"top",i),r.keyframes=[],a[E]="0s",a[S]="translate3d("+i.left+"px, "+i.top+"px, 0)",n(l,a),M.scrollBar&&(t.scrollBars.update(),t.scrollBars.hide(!1)))))}function h(t){function r(t){var e={x:t.p0.x,y:t.p0.y},o={x:t.p1.x,y:t.p1.y},i={x:t.p2.x,y:t.p2.y},r={x:t.p3.x,y:t.p3.y},n={x:e.x,y:e.y},l={x:1/(r.x-e.x),y:1/(r.y-e.y)};return e.x-=n.x,o.x-=n.x,i.x-=n.x,r.x-=n.x,e.y-=n.y,o.y-=n.y,i.y-=n.y,r.y-=n.y,e.x*=l.x,o.x*=l.x,i.x*=l.x,r.x*=l.x,e.y*=l.y,o.y*=l.y,i.y*=l.y,r.y*=l.y,"cubic-bezier("+o.x+", "+o.y+", "+i.x+", "+i.y+")"}var l,a=t.inertia,c={},p=[],f={},h={},y=0,d={p0:D,p1:D,p2:q,p3:I};a.keyframes=[],(a.x.velocity||a.y.velocity)&&(j.forEach(function(e){var o,i,r=a[e.xy],n=1;f[e.xy]=0,r.velocity&&(l=l||r.velocity/r.friction,o=r.velocity*l/2+r.friction*l/2,o>0&&(f[e.xy]=o,i=t.scrollValue[e.lt]+o*r.direction,i>t.scrollMax[e.lt]?(o=t.scrollMax[e.lt]-t.scrollValue[e.lt],n=o/f[e.xy]):0>i&&(o=t.scrollValue[e.lt],n=o/f[e.xy]),c[n]||(c[n]={},p.push(n)),c[n][e.xy]=o))}),p.length&&(M.scrollBar&&t.scrollBars.hide(!0),window.clearTimeout(O),O=window.setTimeout(function(){u(t)},l),p.sort(function(t,e){return t-e}),p.forEach(function(n){var p,u={},x={};1===n?(u[E]=l*(1-y)+"ms",u[F]=r(d)):(p=i(d.p0,d.p1,d.p2,d.p3,o(d.p0,d.p1,d.p2,d.p3,{x:0,y:n},{x:1,y:n})[0]),p&&(u[E]=l*(p.x-y)+"ms",u[F]=r({p0:d.p0,p1:p.fromP1,p2:p.fromP2,p3:p}),d={p0:p,p1:p.toP1,p2:p.toP2,p3:d.p3},y=p.x)),j.forEach(function(o){var i=a[o.xy];c[n][o.xy]!==e?x[o.lt]=t.scrollValue[o.lt]+(h[o.xy]=c[n][o.xy])*i.direction:x[o.lt]=t.scrollValue[o.lt]+(h[o.xy]||f[o.xy]*n)*i.direction}),u[S]="translate3d("+s(t,"left",x)+"px, "+s(t,"top",x)+"px, 0)",a.keyframes.push(u)}),n(t.elmContent,a.keyframes.shift()),a.isScrolling=!0))}function y(t){var o=t.inertia;o.isScrolling=!1,o.timer!==e&&(window.clearInterval(o.timer),delete o.timer)}function d(t){var o,i=t.inertia,r=Date.now(),n=r-i.intervalTime,l={};j.forEach(function(e){var o,r,a,s,c=i[e.xy];c.velocity&&(o=n-1,r=o*c.friction,a=r*o/2+c.friction*o/2,s=c.velocity*n-a,s>0?(l[e.lt]=t.scrollValue[e.lt]+s*c.direction,c.velocity-=c.friction*n,c.velocity<c.friction&&(c.velocity=0)):c.velocity=0)}),o=a(t,l.left,l.top,!1,!0),j.forEach(function(t){var r=i[t.xy];l[t.lt]!==e&&l[t.lt]!==o[t.lt]&&(r.velocity=0)}),i.intervalTime=r,0===i.x.velocity&&0===i.y.velocity&&(y(t),M.scrollBar&&A&&t.scrollBars.show(!1))}function x(t){var e=t.inertia;e.isScrolling=!0,e.intervalTime=Date.now(),e.timer=window.setInterval(function(){d(t)},1e3/M.fps)}function m(t,e){M.cursorScrollable&&(t.elmView.style.cursor=!t.scrollMax.left&&!t.scrollMax.top||e?"":M.cursorScrollable),M.cursorScrolling&&(document.body.style.cursor=(t.scrollMax.left||t.scrollMax.top)&&e?M.cursorScrolling:"")}function v(t){function e(e){function o(t){var o,i,r;if(!t)return null;try{if((o=Object.getOwnPropertyDescriptor(t,e))&&o.get&&o.set)return{get:o.get,set:o.set}}catch(n){}try{if((i=t.__lookupGetter__(e))&&(r=t.__lookupSetter__(e)))return{get:i,set:r}}catch(n){}return null}var i;if(i=o(t))return i;try{if(i=o(Object.getPrototypeOf(t)))return i}catch(r){}try{if(i=o(t.constructor.prototype))return i}catch(r){}try{if(i=o(Element.prototype))return i}catch(r){}try{if(i=o(t.constructor.__proto__))return i}catch(r){}try{if(i=o(t.__proto__))return i}catch(r){}return null}var o,i;return(o=e("scrollLeft"))&&(i=e("scrollTop"))?function(t){var e=t.elmView,r={left:o.get.call(e),top:i.get.call(e)};return r.left&&o.set.call(e,0),r.top&&i.set.call(e,0),r}:function(t){function e(){var e=a.getBoundingClientRect(),o=c.getBoundingClientRect(),i=t.nScrollOffset;return{left:e.left+i.left-o.left,top:e.top+i.top-o.top}}var o,i,r,l,a=t.elmView,s=t.elmContent,c=t.nScrollElmAnc||function(){var e,o,i=window.getComputedStyle(a,""),r=window.getComputedStyle(s,""),l=document.createElement("a");return l.innerHTML="x",l.setAttribute("href","#"),n(s.insertBefore(l,s.firstChild),{position:"relative",left:"-"+(l.offsetWidth+parseFloat(r.paddingLeft)+parseFloat(r.borderLeftWidth)+parseFloat(r.marginLeft)+parseFloat(i.paddingLeft))+"px",top:"-"+(l.offsetHeight+parseFloat(r.paddingTop)+parseFloat(r.borderTopWidth)+parseFloat(r.marginTop)+parseFloat(i.paddingTop))+"px"}),e=a.getBoundingClientRect(),o=l.getBoundingClientRect(),t.nScrollOffset={left:o.left-e.left,top:o.top-e.top},t.nScrollElmAnc=l}(),p=c.style;return p.display="inline",r=e(),(r.left||r.top)&&(o=window.pageXOffset,i=window.pageYOffset,c.focus(),(window.pageXOffset!==o||window.pageYOffset!==i)&&window.scrollTo(o,i),l=e(),r.left-=l.left,r.top-=l.top),p.display="none",r}}function g(t,e){var o,i;if(this.overflowA=t,this.direction=e,this.elmBar=l(document.createElement("div")),this.elmHandle=l(document.createElement("div")),this.value=0,this.maxValue=0,this.valueRate={},!T&&!(T=P("transitionProperty",this.elmBar))||!C&&!(C=P("opacity",this.elmBar)))throw new Error("Not supported");S||(S=P("transform",this.elmHandle)),E||(E=P("transitionDuration",this.elmBar)),F||(F=P("transitionTimingFunction",this.elmBar)),o={display:"none",position:"absolute"},o[C]="0",o[T]=C,o[E]=N+"ms",o[F]="linear",i={backgroundColor:M.scrollBarColor},i[P("borderRadius",this.elmHandle)]=M.scrollBarWidth/2+"px","v"===e?(o.width=M.scrollBarWidth+"px",o.right=X+"px",o.top=X+"px",i.width="100%"):(o.height=M.scrollBarWidth+"px",o.left=X+"px",o.bottom=X+"px",i.height="100%"),n(t.elmView.appendChild(this.elmBar),o).appendChild(n(this.elmHandle,i))}function w(e){try{this.v=new g(e,"v"),this.h=new g(e,"h"),this.shown=!1,this.hidden=!1}catch(o){t.console.error(o)}}var M,B,b,V,S,T,E,F,C,L,O,P,W,H,_=.001,k=!1,z=60,R=100,A="ontouchstart"in window,q={x:.4,y:1},D={x:0,y:0},I={x:1,y:1},j=[{xy:"x",lt:"left"},{xy:"y",lt:"top"}],X=2,Y=5,U="rgba(0,0,0,0.5)",N=200,Z=[];!function(){function t(t){return t.substr(0,1).toUpperCase()+t.substr(1)}function o(t){var e=/[A-Z]/;return"float"===(t=t.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()}).replace(r,function(t,o){return e.test(o)?o.toLowerCase():t})).toLowerCase()?"cssFloat":t}function i(t){return t.replace(n,"")}var r,n,l=["webkit","ms","moz","o"],a=[],s=[],c={},p={};l.forEach(function(e){a.push(e),a.push(t(e)),s.push("-"+e+"-")}),r=new RegExp("^(?:"+l.join("|")+")(.)","i"),n=new RegExp("^(?:"+s.join("|")+")","i"),P=function(i,r){var n,l;return i=o(i),c[i]===e&&(n=r.style,n[i]!==e?c[i]=i:(l=t(i),a.some(function(t){var o=t+l;return n[o]!==e?(c[i]=o,!0):!1})||(c[i]=""))),c[i]},W=function(t,o,r){function n(t,e){return a[t]=e,a[t]===e}var l,a=t.style,c=Array.isArray(r)?r:[r];return(o=P(o,t))?(p[o]=p[o]||{},c.some(function(t){return t=i(t),p[o][t]===e?n(o,t)?(l=p[o][t]=t,!0):s.some(function(e){var i=e+t;return n(o,i)?(l=p[o][t]=i,!0):!1})?!0:(p[o][t]="",!1):p[o][t]?(a[o]=l=p[o][t],!0):!1})||(l=""),l):""}}(),g.prototype.initSize=function(){var t,e,o,i,r,n=this.overflowA;return"v"===this.direction?(o="height",i="Height",r="top"):(o="width",i="Width",r="left"),n.scrollMax[r]?(t=n["client"+i]-2*X-M.scrollBarWidth,e=n["client"+i]*(t/n["scroll"+i]),e<M.scrollBarWidth&&(e=M.scrollBarWidth),this.maxValue=t-e,this.valueRate[r]=this.maxValue/n.scrollMax[r],this.elmBar.style[o]=t+"px",this.elmHandle.style[o]=e+"px",this):(this.maxValue=0,this.elmBar.style.display="none",this.elmBar.style[C]="0",this)},g.prototype.update=function(){var t,e=this.overflowA,o="v"===this.direction?"top":"left";return t=e.scrollValue[o]*this.valueRate[o],t>this.maxValue&&(t=this.maxValue),t!==this.value&&(this.elmHandle.style[S]="v"===this.direction?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",this.value=t),this},w.prototype.initSize=function(){return this.v&&(window.clearTimeout(this.timer),this.v.initSize(),this.h.initSize()),this},w.prototype.update=function(){var t,e;return this.v&&(t=this.v,e=this.h,t.maxValue&&t.update(),e.maxValue&&e.update()),this},w.prototype.show=function(t){var e,o,i=this;return i.v&&t!==i.shown&&(i.hidden||(window.clearTimeout(i.timer),e=i.v,o=i.h,(e.maxValue||o.maxValue)&&(t?([e,o].forEach(function(t){t.maxValue&&(t.elmBar.style.display="block",t.elmBar.offsetWidth)}),window.setTimeout(function(){[e,o].forEach(function(t){t.maxValue&&(t.elmBar.style[C]="1",t.elmBar.offsetWidth)})},0)):(e.maxValue&&(e.elmBar.style[C]="0"),o.maxValue&&(o.elmBar.style[C]="0"),i.timer=window.setTimeout(function(){e.maxValue&&(e.elmBar.style.display="none"),o.maxValue&&(o.elmBar.style.display="none")},N)))),i.shown=t),i},w.prototype.hide=function(t){var e,o,i=this;return i.v&&t!==i.hidden&&(window.clearTimeout(i.timer),e=i.v,o=i.h,(e.maxValue||o.maxValue)&&(t?[e,o].forEach(function(t){t.maxValue&&(t.elmBar.style.display="none",t.elmBar.style[C]="0")}):([e,o].forEach(function(t){t.maxValue&&(t.elmBar.style[T]="none",t.elmBar.style.display="block",t.elmBar.offsetWidth)}),window.setTimeout(function(){[e,o].forEach(function(t){t.maxValue&&(t.elmBar.style[C]=i.shown?"1":"0",t.elmBar.offsetWidth,t.elmBar.style[T]=C)})},50))),i.hidden=t),i},M=function G(t){var o,i,r,n,s,c=this;o=c.elmView=t,G.enable&&Array.prototype.some.call(o.childNodes,function(t){return 1===t.nodeType?(i=c.elmContent=t,!0):!1})&&(!function(){var t=i.style,e=t.width,r=t.height;o.scrollLeft=o.scrollTop=0,o.style.overflow="hidden",o.scrollLeft=o.scrollTop=0,t.width=o.offsetWidth+100+"px",t.height=o.offsetHeight+100+"px",o.scrollLeft=o.scrollTop=0,t.width=e,t.height=r,o.scrollLeft=o.scrollTop=0}(),i.addEventListener("dragstart",function(t){t.preventDefault()},!1),function(){var t=P("userSelect",i);t&&(i.style[t]="none")}(),G.cursorScrollable===e&&(G.cursorScrollable=W(o,"cursor",["grab","all-scroll"]),o.style.cursor=""),G.cursorScrolling===e&&(G.cursorScrolling=W(document.body,"cursor",["grabbing","move"]),document.body.style.cursor=""),B||(B=(S=P("transform",i))?p:f),B!==p&&("static"===window.getComputedStyle(o,"").position&&(o.style.position="relative"),i.style.position="absolute"),b||(G.transition&&B===p&&(T=P("transitionProperty",i))?(E=P("transitionDuration",i),F=P("transitionTimingFunction",i),b=h,V=u):(b=x,V=y)),b===h&&(["transitionend","webkitTransitionEnd","msTransitionEnd","MozTransitionEnd","oTransitionEnd"].forEach(function(t){i.addEventListener(t,function(t){u(c,t)},!1)}),i.style[T]=S),l(o),l(i),H||(H=v(o)),o.addEventListener("scroll",function(t){t.inertia===e&&H(c)},!1),Object.defineProperty(o,"scrollLeft",{get:function(){return c.scrollLeft()},set:function(t){c.scrollLeft(t)}}),Object.defineProperty(o,"scrollTop",{get:function(){return c.scrollTop()},set:function(t){c.scrollTop(t)}}),["scrollMax","positionMin","positionMax","positionOffset","inertia"].forEach(function(t){c[t]={}}),c.scrollValue={left:0,top:0},c.enable=!0,G.scrollBar&&("static"===window.getComputedStyle(o,"").position&&(o.style.position="relative"),c.scrollBars=new w(c),o.addEventListener("mouseenter",function(){c.scrollBars.show(!0)},!1),o.addEventListener("mouseleave",function(){c.scrollBars.show(!1)},!1)),c.hammer=new Hammer.Manager(o,{recognizers:[[Hammer.Pan,{threshold:3}]]}).on("panstart",function(t){var e;c.enable&&(e=t.pointers[0],V(c),r={x:e.clientX,y:e.clientY},n={left:c.scrollValue.left,top:c.scrollValue.top},m(c,!0),G.scrollBar&&A&&c.scrollBars.show(!0),t.preventDefault())}).on("panmove",function(t){var e;c.enable&&(e=t.pointers[0],a(c,n.left+r.x-e.clientX,n.top+r.y-e.clientY),c.inertia={x:{velocity:t.velocityX},y:{velocity:t.velocityY}},s=t.timeStamp,t.preventDefault())}).on("panend",function(t){if(c.enable){var o,i=c.inertia;(t.timeStamp-s>R||i.x===e||i.y===e)&&(i=c.inertia={x:{velocity:t.velocityX},y:{velocity:t.velocityY}}),m(c),i.x.direction=i.x.velocity>0?1:-1,i.x.velocity=Math.abs(i.x.velocity),i.y.direction=i.y.velocity>0?1:-1,i.y.velocity=Math.abs(i.y.velocity),i.x.velocity&&i.y.velocity?(o=Math.atan2(i.y.velocity,i.x.velocity),i.x.friction=Math.cos(o)*G.friction,i.y.friction=Math.sin(o)*G.friction):(i.x.friction=i.x.velocity?G.friction:0,i.y.friction=i.y.velocity?G.friction:0),b(c),t.preventDefault()}}),Z.push(c.initSize()))},M.prototype.initSize=function(t,e){var o,i,r,n,l,s,c=this.elmView,f=this.elmContent;return this.enable?(o=this.clientWidth=c.clientWidth,i=this.clientHeight=c.clientHeight,r=window.getComputedStyle(c,""),n=f.offsetWidth,l=f.offsetHeight,s=window.getComputedStyle(f,""),this.scrollWidth=n+parseFloat(s.marginLeft)+parseFloat(s.marginRight)+parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),this.scrollHeight=l+parseFloat(s.marginTop)+parseFloat(s.marginBottom)+parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),this.positionMin.left=o-n-parseFloat(r.paddingRight)-parseFloat(s.marginRight),this.positionMax.left=B===p?this.positionOffset.left=parseFloat(r.paddingLeft)+parseFloat(s.marginLeft):parseFloat(r.paddingLeft)+(this.positionOffset.left=parseFloat(s.marginLeft)),this.positionMin.left>this.positionMax.left&&(this.positionMin.left=this.positionMax.left),this.scrollMax.left=this.positionMax.left-this.positionMin.left,this.positionMin.top=i-l-parseFloat(r.paddingBottom)-parseFloat(s.marginBottom),this.positionMax.top=B===p?this.positionOffset.top=parseFloat(r.paddingTop)+parseFloat(s.marginTop):parseFloat(r.paddingTop)+(this.positionOffset.top=parseFloat(s.marginTop)),this.positionMin.top>this.positionMax.top&&(this.positionMin.top=this.positionMax.top),this.scrollMax.top=this.positionMax.top-this.positionMin.top,M.scrollBar&&this.scrollBars.initSize(),H(this),a(this,t,e,!0),m(this),this):this},M.prototype.scrollLeft=function(t){return this.scroll(t,e).left},M.prototype.scrollTop=function(t){return this.scroll(e,t).top},M.prototype.scroll=function(t,e){return a(this,t,e)},M.prototype.stop=function(){return V(this),m(this),this},M.enable=A,M.friction=_,M.transition=k,M.fps=z,M.scrollBar=!0,M.scrollBarWidth=Y,M.scrollBarColor=U,window.addEventListener("resize",function(){M.enable&&Z.forEach(function(t){t.enable&&t.initSize()})},!1),t.OverflowAndroid=M}(Function("return this")());