1 |
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e=e||self).vuescroll=t(e.Vue)}(this,function(e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e};function i(e,t){for(var o=0;o<t.length;o++){var i=t[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}var m=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},$=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e};function s(){if(a())return!1;var e=navigator.userAgent.toLowerCase();return-1!==e.indexOf("msie")||-1!==e.indexOf("trident")||-1!==e.indexOf(" edge/")}var l=function(){return!a()&&!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)},a=function(){return e.prototype.$isServer},g=(o(r,[{key:"getEventObject",value:function(e){return this.touchObject?this.isTouch?e.touches:[e]:null}},{key:"getTouchObject",value:function(){if(a())return null;this.isTouch=!1;var e=navigator.userAgent,t=navigator.platform,o={};switch(o.touch=!!("ontouchstart"in window&&!window.opera||"msmaxtouchpoints"in window.navigator||"maxtouchpoints"in window.navigator||0<navigator.maxTouchPoints||0<navigator.msMaxTouchPoints),o.nonDeskTouch=o.touch&&!/win32/i.test(t)||o.touch&&/win32/i.test(t)&&/mobile/i.test(e),o.eventType="onmousedown"in window&&!o.nonDeskTouch?"mouse":"ontouchstart"in window?"touch":"msmaxtouchpoints"in window.navigator||0<navigator.msMaxTouchPoints?"mstouchpoints":"maxtouchpoints"in window.navigator||0<navigator.maxTouchPoints?"touchpoints":"mouse",o.eventType){case"mouse":o.touchstart="mousedown",o.touchend="mouseup",o.touchmove="mousemove",o.touchenter="mouseenter",o.touchmove="mousemove",o.touchleave="mouseleave";break;case"touch":o.touchstart="touchstart",o.touchend="touchend",o.touchmove="touchmove",o.touchcancel="touchcancel",o.touchenter="touchstart",o.touchmove="touchmove",o.touchleave="touchend",this.isTouch=!0;break;case"mstouchpoints":o.touchstart="MSPointerDown",o.touchend="MSPointerUp",o.touchmove="MSPointerMove",o.touchcancel="MSPointerCancel",o.touchenter="MSPointerDown",o.touchmove="MSPointerMove",o.touchleave="MSPointerUp";break;case"touchpoints":o.touchstart="pointerdown",o.touchend="pointerup",o.touchmove="pointermove",o.touchcancel="pointercancel",o.touchenter="pointerdown",o.touchmove="pointermove",o.touchleave="pointerup"}return this.touchObject=o}}]),r);function r(){t(this,r)}o(c,[{key:"getRatio",value:function(){var e=0,t=window.screen,o=navigator.userAgent.toLowerCase();return void 0!==window.devicePixelRatio?e=window.devicePixelRatio:~o.indexOf("msie")?t.deviceXDPI&&t.logicalXDPI&&(e=t.deviceXDPI/t.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(e=window.outerWidth/window.innerWidth),e=e&&Math.round(100*e)}},{key:"getRatioBetweenPreAndCurrent",value:function(){return this.originPixelRatio/this.lastPixelRatio}}]);function c(){var e=this;t(this,c),this.originPixelRatio=this.getRatio(),this.lastPixelRatio=this.originPixelRatio,window.addEventListener("resize",function(){e.lastPixelRatio=e.getRatio()})}function h(e,o,t){if(t&&w(o))return e;if(u(e))o=[],e.forEach(function(e,t){o[t]=h(e,o[t])});else if(e){if(!T(e))return e;for(var i in o={},e)o[i]="object"===n(e[i])?h(e[i],o[i]):e[i]}return o}function f(e,o,i,r){if(r&&w(o))return e;if(o=o||{},u(e))!u(o)&&i&&(o=[]),u(o)&&e.forEach(function(e,t){o[t]=f(e,o[t],i,r)});else if(e)if(T(e))for(var t in e)"object"===n(e[t])?w(o[t])?o[t]=h(e[t],o[t],r):f(e[t],o[t],i,r):(w(o[t])||i)&&(o[t]=e[t]);else i&&(o=e);return o}function b(e,t,o,i,r){var n=3<arguments.length&&void 0!==i&&i;"on"==(4<arguments.length&&void 0!==r?r:"on")?e.addEventListener(t,o,n):e.removeEventListener(t,o,n)}function v(e){console.warn("[vuescroll] "+e)}function d(e,t){var o=!1;if(!e||!t)return o;for(;e.parentNode!==t&&9!==e.parentNode.nodeType&&!e.parentNode._isVuescroll;)e=e.parentNode;return e.parentNode==t&&(o=!0),o}function V(e){var t,o=document.documentElement.style;return e.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?t="presto":"MozAppearance"in o?t="gecko":"WebkitAppearance"in o?t="webkit":"string"==typeof navigator.cpuClass&&(t="trident"),{trident:"ms",gecko:"moz",webkit:"webkit",presto:"O"}[t]}function p(e,t,o,i,r){var n=1<arguments.length&&void 0!==t?t:[],s=2<arguments.length&&void 0!==o?o:[],l=3<arguments.length&&void 0!==i?i:{},a=r;if(n&&1<n.length)return a?[].concat(_(s),_(n)):[].concat(_(n),_(s));var c=S(n=n[0]),h=c.ch,u=c.tag;return c.isComponent&&(n.data=f({attrs:n.componentOptions.propsData},n.data,!1,!0)),h=a?[].concat(_(s),_(h)):[].concat(_(h),_(s)),delete n.data.slot,e(u,f(l,n.data,!1,!0),h)}function S(e){if(!e||1<e.length)return{};var t=!!(e=e[0]?e[0]:e).componentOptions,o=void 0,i=void 0;return i=t?(o=e.componentOptions.children||[],e.componentOptions.tag):(o=e.children||[],e.tag),{isComponent:t,ch:o,tag:i}}function y(e){var t=e.$parent;return!t._isVuescrollRoot&&t&&(t=t.$parent),t}var u=function(e){return Array.isArray(e)},T=function(e){return"[object Object]"==Object.prototype.toString.call(e)},w=function(e){return void 0===e};function D(e,t){var o=void 0;return o=(o=/(-?\d+(?:\.\d+?)?)%$/.exec(e))?t*(o=o[1]-0)/100:e-0}var x={mounted:function(){L[this._uid]=this},beforeDestroy:function(){delete L[this._uid]},methods:{scrollTo:function(e,t,o){var i=e.x,r=e.y;!0!==t&&void 0!==t||(t=this.mergedOptions.scrollPanel.speed),this.internalScrollTo(i,r,t,o)},scrollBy:function(e,t,o){var i=e.dx,r=void 0===i?0:i,n=e.dy,s=void 0===n?0:n,l=this.getPosition(),a=l.scrollLeft,c=void 0===a?0:a,h=l.scrollTop,u=void 0===h?0:h;r&&(c+=D(r,this.scrollPanelElm.scrollWidth-this.$el.clientWidth)),s&&(u+=D(s,this.scrollPanelElm.scrollHeight-this.$el.clientHeight)),this.internalScrollTo(c,u,t,o)},scrollIntoView:function(e,t){var o=!(1<arguments.length&&void 0!==t)||t,i=this.$el;if("string"==typeof e&&(e=i.querySelector(e)),d(e,i)){var r=this.$el.getBoundingClientRect(),n=r.left,s=r.top,l=e.getBoundingClientRect(),a=n-l.left,c=s-l.top;this.scrollBy({dx:-a,dy:-c},o)}else v("The element or selector you passed is not the element of Vuescroll, please pass the element that is in Vuescroll to scrollIntoView API. ")},refresh:function(){this.refreshInternalStatus(),this.$nextTick(this.refreshInternalStatus)}}},L={};var B={vuescroll:{sizeStrategy:"percent",detectResize:!0,locking:!0},scrollPanel:{initialScrollY:!1,initialScrollX:!1,scrollingX:!0,scrollingY:!0,speed:300,easing:void 0,verticalNativeBarPos:"right",maxHeight:void 0,maxWidth:void 0},rail:{background:"#01a99a",opacity:0,border:"none",size:"6px",specifyBorderRadius:!1,gutterOfEnds:null,gutterOfSide:"2px",keepShow:!1},bar:{showDelay:500,specifyBorderRadius:!1,onlyShowBarOnScroll:!0,keepShow:!1,background:"rgb(3, 185, 118)",opacity:1,size:"6px",minSize:0,disable:!1},scrollButton:{enable:!1,background:"rgb(3, 185, 118)",opacity:1,step:180,mousedownStep:30}};var k=null,z=function(){},O=["mergedOptions.vuescroll.pullRefresh.tips","mergedOptions.vuescroll.pushLoad.tips","mergedOptions.vuescroll.scroller.disable","mergedOptions.rail","mergedOptions.bar"],M="refreshDom",P="loadDom",E={vertical:{size:"height",opsSize:"width",posName:"top",opposName:"bottom",sidePosName:"right",page:"pageY",scroll:"scrollTop",scrollSize:"scrollHeight",offset:"offsetHeight",client:"clientY",axis:"Y",scrollButton:{start:"top",end:"bottom"}},horizontal:{size:"width",opsSize:"height",posName:"left",opposName:"right",sidePosName:"bottom",page:"pageX",scroll:"scrollLeft",scrollSize:"scrollWidth",offset:"offsetWidth",client:"clientX",axis:"X",scrollButton:{start:"left",end:"right"}}};function A(e){var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame,t=!!o;if(o&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(o.toString())&&(t=!1),t)return function(e,t){o(e,t)};var i={},r=1,n=null,s=+new Date;return function(e){var t=r++;return i[t]=e,null===n&&(n=setInterval(function(){var e=+new Date,t=i;for(var o in i={},t)t.hasOwnProperty(o)&&(t[o](e),s=e);2500<e-s&&(clearInterval(n),n=null)},1e3/60)),t}}var C={},R=/rgb\(/,H=/rgb\((.*)\)/;function X(e,t){var o=e+"&"+t;if(C[o])return C[o];var i=document.createElement("div");i.style.background=e,document.body.appendChild(i);var r=window.getComputedStyle(i).backgroundColor;return document.body.removeChild(i),R.test(r)?C[o]="rgba("+H.exec(r)[1]+", "+t+")":e}var Y={name:"bar",props:{ops:Object,state:Object,hideBar:Boolean,otherBarHide:Boolean,type:String},computed:{bar:function(){return E[this.type]},barSize:function(){return Math.max(this.state.size,this.ops.bar.minSize)},barRatio:function(){return(1-this.barSize)/(1-this.state.size)}},render:function(e){var t,o,i,r=this,n=X(r.ops.rail.background,r.ops.rail.opacity);this.touchManager||(this.touchManager=new g);var s,l=r.ops.rail.size,a=r.otherBarHide?0:l,c=r.touchManager.getTouchObject(),h={class:"__rail-is-"+r.type,style:(t={position:"absolute","z-index":"1",borderRadius:r.ops.rail.specifyBorderRadius||l,background:n,border:r.ops.rail.border},m(t,r.bar.opsSize,l),m(t,r.bar.posName,r.ops.rail.gutterOfEnds||0),m(t,r.bar.opposName,r.ops.rail.gutterOfEnds||a),m(t,r.bar.sidePosName,r.ops.rail.gutterOfSide),t)};c&&(h.on=(m(s={},c.touchenter,function(){r.setRailHover()}),m(s,c.touchleave,function(){r.setRailLeave()}),s));var u=r.ops.scrollButton.enable?l:0,_={class:"__bar-wrap-is-"+r.type,style:(o={position:"absolute",borderRadius:r.ops.rail.specifyBorderRadius||l},m(o,r.bar.posName,u),m(o,r.bar.opposName,u),o),on:{}},d=r.state.posValue*r.state.size*r.barRatio/r.barSize,f=r.state.opacity;y(this).setClassHook("vertical"==this.type?"vBarVisible":"hBarVisible",!!f);var p={style:(m(i={cursor:"pointer",position:"absolute",margin:"auto",transition:"opacity 0.5s","user-select":"none","border-radius":"inherit"},r.bar.size,100*r.barSize+"%"),m(i,"background",r.ops.bar.background),m(i,r.bar.opsSize,r.ops.bar.size),m(i,"opacity",f),m(i,"transform","translate"+E[r.type].axis+"("+d+"%)"),i),class:"__bar-is-"+r.type,ref:"thumb",on:{}};"vertical"==r.type?(_.style.width="100%",p.style.left=0,p.style.right=0):(_.style.height="100%",p.style.top=0,p.style.bottom=0);var v=this.touchManager.getTouchObject();return p.on[v.touchstart]=this.createBarEvent(),_.on[v.touchstart]=this.createTrackEvent(),e("div",h,[this.createScrollbarButton(e,"start"),this.hideBar?null:e("div",_,[e("div",p)]),this.createScrollbarButton(e,"end")])},data:function(){return{isBarDragging:!1}},methods:{setRailHover:function(){var e=y(this),t=e.vuescroll.state;t.isRailHover||(t.isRailHover=!0,e.showBar())},setRailLeave:function(){var e=y(this);e.vuescroll.state.isRailHover=!1,e.hideBar()},setBarDrag:function(e){this.$emit("setBarDrag",this.isBarDragging=e),y(this).setClassHook("vertical"==this.type?"vBarDragging":"hBarDragging",!!e)},createBarEvent:function(){var n=this,s=y(n),o=n.touchManager.getTouchObject();function i(e){if(n.axisStartPos){var t=n.touchManager.getEventObject(e);if(t){t=t[0];var o=n.$refs.thumb.parentNode,i=t[n.bar.client]-o.getBoundingClientRect()[n.bar.posName],r=((i/=n.barRatio)-n.axisStartPos)/o[n.bar.offset];s.scrollTo(m({},n.bar.axis.toLowerCase(),s.scrollPanelElm[n.bar.scrollSize]*r),!1)}}}function r(){n.setBarDrag(!1),s.hideBar(),document.onselectstart=null,n.axisStartPos=0,b(document,o.touchmove,i,!1,"off"),b(document,o.touchend,r,!1,"off")}return function(e){var t=n.touchManager.getEventObject(e);t&&(e.stopImmediatePropagation(),e.preventDefault(),t=t[0],document.onselectstart=function(){return!1},n.axisStartPos=t[n.bar.client]-n.$refs.thumb.getBoundingClientRect()[n.bar.posName],n.setBarDrag(!0),b(document,o.touchmove,i),b(document,o.touchend,r))}},createTrackEvent:function(){var h=this;return function(e){var t=y(h),o=h.bar,i=o.client,r=o.offset,n=o.posName,s=o.axis,l=h.$refs.thumb;if(e.preventDefault(),e.stopImmediatePropagation(),l){var a=l[r],c=(h.touchManager.getEventObject(e)[0][i]-e.currentTarget.getBoundingClientRect()[n]-a/2)/(e.currentTarget[r]-a);t.scrollTo(m({},s.toLowerCase(),100*c+"%"))}}},createScrollbarButton:function(e,t){var o,i=this;if(!i.ops.scrollButton.enable)return null;var r=i.ops.rail.size,n=i.ops.scrollButton,s=n.opacity,l=X(n.background,s),a={class:["__bar-button","__bar-button-is-"+i.type+"-"+t],style:(m(o={},i.bar.scrollButton[t],0),m(o,"width",r),m(o,"height",r),m(o,"position","absolute"),m(o,"cursor","pointer"),m(o,"display","table"),o),ref:t},c={class:"__bar-button-inner",style:{border:"calc("+r+" / 2.5) solid transparent",width:"0",height:"0",margin:"auto",position:"absolute",top:"0",bottom:"0",right:"0",left:"0"},on:{}};"vertical"==i.type?"start"==t?(c.style["border-bottom-color"]=l,c.style.transform="translateY(-25%)"):(c.style["border-top-color"]=l,c.style.transform="translateY(25%)"):"start"==t?(c.style["border-right-color"]=l,c.style.transform="translateX(-25%)"):(c.style["border-left-color"]=l,c.style.transform="translateX(25%)");var h=this.touchManager.getTouchObject();return c.on[h.touchstart]=this.createScrollButtonEvent(t,h),e("div",a,[e("div",c)])},createScrollButtonEvent:function(o,i){var r=this,n=y(r),e=r.ops.scrollButton,t=e.step,s=e.mousedownStep,l="start"==o?-t:t,a="start"==o?-s:s,c=A(window),h=r.type,u=!1,_=!0,d=void 0;function f(){u&&!_&&(n.scrollBy(m({},"d"+r.bar.axis.toLowerCase(),a),!1),c(f,window))}function p(){if(clearTimeout(d),u=!1,b(document,i.touchend,p,!1,"off"),"mousedown"==i.touchstart){var e=r.$refs[o];b(e,"mouseenter",v,!1,"off"),b(e,"mouseleave",g,!1,"off")}n.setClassHook("cliking"+h+o+"Button",!1)}function v(){_=!1,f()}function g(){_=!0}return function(e){if(3!=e.which){if(n.setClassHook("cliking"+h+o+"Button",!0),e.stopImmediatePropagation(),e.preventDefault(),_=!1,n.scrollBy(m({},"d"+r.bar.axis.toLowerCase(),l)),b(document,i.touchend,p,!1),"mousedown"==i.touchstart){var t=r.$refs[o];b(t,"mouseenter",v,!1),b(t,"mouseleave",g,!1)}clearTimeout(d),d=setTimeout(function(){u=!0,c(f,window)},500)}}}}};function W(e,t){var o=E[t].axis,i=t.charAt(0)+"Bar",r=!e.bar[i].state.size||!e.mergedOptions.scrollPanel["scrolling"+o]||e.refreshLoad&&"vertical"!==t||e.mergedOptions.bar.disable,n=e.mergedOptions.rail.keepShow;return r&&!n?null:{hideBar:r,props:{type:t,ops:{bar:e.mergedOptions.bar,rail:e.mergedOptions.rail,scrollButton:e.mergedOptions.scrollButton},state:e.bar[i].state,hideBar:r},on:{setBarDrag:e.setBarDrag},ref:t+"Bar",key:t}}function I(e){var u=e.render,t=e.components,o=e.mixins;return{name:"vueScroll",props:{ops:{type:Object}},components:t,mixins:[x].concat(_([].concat(o))),created:function(){var t,o,e,i,r,n,s,l,a,c,h,u=this,_=f(this.$vuescrollConfig||{},{}),d=f(B,_);this.$options.propsData.ops=this.$options.propsData.ops||{},Object.keys(this.$options.propsData.ops).forEach(function(e){var t,o,i,r;t=u.mergedOptions,o=e,!(i=u.$options.propsData.ops)[o]&&"function"!=typeof i||(r=r||o,Object.defineProperty(t,o,{get:function(){return i[r]},configurable:!0}))}),f(d,this.mergedOptions),this._isVuescrollRoot=!0,this.renderError=(t=this.mergedOptions,o=!1,e=t.scrollPanel,i=t.bar,r=i.vBar,n=i.hBar,s=t.rail,l=s.vRail,a=s.hRail,c=e.initialScrollY,h=e.initialScrollX,c&&!String(c).match(/^\d+(\.\d+)?(%)?$/)&&v("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),h&&!String(h).match(/^\d+(\.\d+)?(%)?$/)&&v("The prop `initialScrollY` or `initialScrollX` should be a percent number like `10%` or an exact number that greater than or equal to 0 like `100`."),(r||n||l||a)&&v("The options: vRail, hRail, vBar, hBar have been deprecated since v4.7.0,please use corresponing rail/bar instead!"),k&&(k=[].concat(k)).forEach(function(e){e(t)&&(o=!0)}),o)},render:function(e){var t=this;if(t.renderError)return e("div",[[t.$slots.default]]);t.touchManager||(t.touchManager=new g);var o,i={style:{height:t.vuescroll.state.height,width:t.vuescroll.state.width,padding:0,position:"relative",overflow:"hidden"},class:$({__vuescroll:!0},t.classHooks)},r=t.touchManager.getTouchObject();r&&(i.on=(m(o={},r.touchenter,function(){t.vuescroll.state.pointerLeave=!1,t.updateBarStateAndEmitEvent(),t.setClassHook("mouseEnter",!0)}),m(o,r.touchleave,function(){t.vuescroll.state.pointerLeave=!0,t.hideBar(),t.setClassHook("mouseEnter",!1)}),m(o,r.touchmove,function(){t.vuescroll.state.pointerLeave=!1,t.updateBarStateAndEmitEvent()}),o));var n,s,l,a,c=[u(e,t)].concat(_((n=e,l=W(s=t,"vertical"),a=W(s,"horizontal"),s.setClassHook("hasVBar",!(!l||l.hideBar)),s.setClassHook("hasHBar",!(!a||a.hideBar)),[l?n("bar",$({},l,{props:$({otherBarHide:!a},l.props)})):null,a?n("bar",$({},a,{props:$({otherBarHide:!l},a.props)})):null]))),h=this.$slots["scroll-container"];return h?p(e,h,c,i):e("div",i,[c])},mounted:function(){var e=this;this.renderError||(this.initVariables(),this.initWatchOpsChange(),this.refreshInternalStatus(),this.updatedCbs.push(function(){e.scrollToAnchor(),e.updateBarStateAndEmitEvent()}))},updated:function(){var t=this;this.updatedCbs.forEach(function(e){e.call(t)}),this.updatedCbs=[]},beforeDestroy:function(){this.destroy&&this.destroy()},computed:{scrollPanelElm:function(){return this.$refs.scrollPanel._isVue?this.$refs.scrollPanel.$el:this.$refs.scrollPanel}},data:function(){return{vuescroll:{state:{isDragging:!1,pointerLeave:!0,isRailHover:!1,height:"100%",width:"100%",currentSizeStrategy:"percent",currentScrollState:null,currentScrollInfo:null}},bar:{vBar:{state:{posValue:0,size:0,opacity:0}},hBar:{state:{posValue:0,size:0,opacity:0}}},mergedOptions:{vuescroll:{},scrollPanel:{},scrollContent:{},rail:{},bar:{}},updatedCbs:[],renderError:!1,classHooks:{hasVBar:!1,hasHBar:!1,vBarVisible:!1,hBarVisible:!1,vBarDragging:!1,hBarDragging:!1,clikingVerticalStartButton:!1,clikingVerticalEndButton:!1,clikingHorizontalStartButton:!1,clikingHorizontalEndButton:!1,mouseEnter:!1}}},methods:{scrollingComplete:function(){this.updateBarStateAndEmitEvent("handle-scroll-complete")},setBarDrag:function(e){this.vuescroll.state.isDragging=e},setClassHook:function(e,t){this.classHooks[e]=t},showAndDefferedHideBar:function(e){var t=this;this.showBar(),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0),this.timeoutId=setTimeout(function(){t.timeoutId=0,t.hideBar(e)},this.mergedOptions.bar.showDelay)},showBar:function(){var e=this.mergedOptions.bar.opacity;this.bar.vBar.state.opacity=e,this.bar.hBar.state.opacity=e},hideBar:function(e){var t=this.vuescroll.state,o=t.isDragging,i=t.isRailHover;o||i||(e&&!this.mergedOptions.bar.keepShow&&(this.bar.hBar.state.opacity=0,this.bar.vBar.state.opacity=0),this.mergedOptions.bar.keepShow||this.vuescroll.state.isDragging||(this.bar.vBar.state.opacity=0,this.bar.hBar.state.opacity=0))},useNumbericSize:function(){this.vuescroll.state.currentSizeStrategy="number";var e=this.mergedOptions.scrollPanel,t=e.maxHeight,o=e.maxWidth,i=this.$el.parentNode,r=i.clientHeight,n=i.clientWidth,s=this.scrollPanelElm,l=s.scrollHeight,a=s.scrollWidth,c=void 0,h=void 0;c=t||o?(h=l<=t?void 0:t,a<=o?void 0:o):(h=r,n),this.vuescroll.state.height=h?h+"px":void 0,this.vuescroll.state.width=c?c+"px":void 0},usePercentSize:function(){this.vuescroll.state.currentSizeStrategy="percent",this.vuescroll.state.height="100%",this.vuescroll.state.width="100%"},setVsSize:function(){var e=this.mergedOptions.vuescroll.sizeStrategy,t=this.mergedOptions.scrollPanel,o=t.maxHeight,i=t.maxWidth,r=this.scrollPanelElm,n=r.clientHeight,s=r.clientWidth;"number"==e||o&&o<n||i&&i<s?this.useNumbericSize():"percent"==e&&n!=o&&s!=i&&this.usePercentSize()},initWatchOpsChange:function(){var t=this,o={deep:!0,sync:!0};this.$watch("mergedOptions",function(){setTimeout(function(){if(t.isSmallChangeThisTick)return t.isSmallChangeThisTick=!1,void t.updateBarStateAndEmitEvent("options-change");t.refreshInternalStatus()},0)},o),O.forEach(function(e){t.$watch(e,function(){t.isSmallChangeThisTick=!0},o)})},scrollToAnchor:function(){var e=window.location.hash;if(e&&(!(e=e.slice(e.lastIndexOf("#")))||/^#[a-zA-Z_]\d*$/.test(e))){var t=document.querySelector(e);!d(t,this.$el)||this.mergedOptions.scrollPanel.initialScrollY||this.mergedOptions.scrollPanel.initialScrollX||this.scrollIntoView(t)}}}}}var N={name:"scrollPanel",props:{ops:{type:Object,required:!0}},methods:{updateInitialScroll:function(){var e=0,t=0,o=y(this);this.ops.initialScrollX&&(e=this.ops.initialScrollX),this.ops.initialScrollY&&(t=this.ops.initialScrollY),(e||t)&&o.scrollTo({x:e,y:t})}},mounted:function(){var e=this;setTimeout(function(){e._isDestroyed||e.updateInitialScroll()},0)},render:function(e){var t={class:["__panel"],style:{position:"relative",boxSizing:"border-box"}},o=y(this).$slots["scroll-panel"];return o?p(e,o,this.$slots.default,t):e("div",t,[[this.$slots.default]])}};function j(t,o){return function(e){return o(t,e)}}function Z(e,t){var o=null;return"easeInQuad"===e&&(o=t*t),"easeOutQuad"===e&&(o=t*(2-t)),"easeInOutQuad"===e&&(o=t<.5?2*t*t:(4-2*t)*t-1),"easeInCubic"===e&&(o=t*t*t),"easeOutCubic"===e&&(o=--t*t*t+1),"easeInOutCubic"===e&&(o=t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1),"easeInQuart"===e&&(o=t*t*t*t),"easeOutQuart"===e&&(o=1- --t*t*t*t),"easeInOutQuart"===e&&(o=t<.5?8*t*t*t*t:1-8*--t*t*t*t),"easeInQuint"===e&&(o=t*t*t*t*t),"easeOutQuint"===e&&(o=1+--t*t*t*t*t),"easeInOutQuint"===e&&(o=t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t),o||t}function q(){return!0}var F=Date.now||function(){return(new Date).getTime()},Q=(o(U,[{key:"pause",value:function(){this.isRunning&&(this.isPaused=!0)}},{key:"stop",value:function(){this.isStopped=!0}},{key:"continue",value:function(){this.isPaused&&(this.isPaused=!1,this.ts=F()-this.percent*this.spd,this.execScroll())}},{key:"startScroll",value:function(e,t,o,i,r,n,s){var l=3<arguments.length&&void 0!==i?i:q,a=4<arguments.length&&void 0!==r?r:q,c=5<arguments.length&&void 0!==n?n:q,h=6<arguments.length&&void 0!==s?s:q,u=t-e,_=0<u?-1:1,d=F();this.isRunning||this.init(),_!=this.dir||200<d-this.ts?(this.ts=d,this.dir=_,this.st=e,this.ed=t,this.df=u):this.df+=u,this.spd=o,this.completeCb=a,this.vertifyCb=c,this.stepCb=l,this.easingMethod=h,this.isRunning||this.execScroll()}},{key:"execScroll",value:function(){var o=this;if(this.df){var i=this.percent||0;this.percent=0,this.isRunning=!0,this.ref(function e(){if(o.isRunning&&o.vertifyCb(i)&&!o.isStopped){if(i=(F()-o.ts)/o.spd,o.isPaused)return o.percent=i,void(o.isRunning=!1);if(i<1){var t=o.st+o.df*o.easingMethod(i);o.stepCb(t),o.ref(e)}else o.stepCb(o.st+o.df),o.completeCb(),o.isRunning=!1}else o.isRunning=!1})}}},{key:"init",value:function(){this.st=0,this.ed=0,this.df=0,this.spd=0,this.ts=0,this.dir=0,this.ref=A(window),this.isPaused=!1,this.isStopped=!1}}]),U);function U(){t(this,U),this.init(),this.isRunning=!1}function G(e){var t={ref:"scrollPanel",style:{"user-select":"none","-webkit-user-select":"none","min-width":"100%","min-height":"100%"},class:[],props:{ops:e.mergedOptions.scrollPanel}};t.class.push("__slide"),l()&&(t.style=m({},"-webkit-overflow-scrolling","touch")),"transform"==e.mergedOptions.vuescroll.renderMethod&&(t.style["transform-origin"]="left top 0px");var o=e.mergedOptions.scrollPanel,i=o.scrollingX,r=o.scrollingY,n=o.padding;if(i&&!e.refreshLoad){var s=function(e,t){if(a())return!1;var o="-"+V(window)+"-"+t,i=document.createElement("div");return i.style[e]=o,i.style[e]==o&&o}("width","fit-content");s?t.style.width=s:t.display="inline-block"}return i||t.class.push("x-hidden"),r||t.class.push("y-hidden"),n&&(t.style.paddingRight=e.mergedOptions.rail.size),t}function J(e,t,o,i){var r=t.vuescroll.state[o+"Stage"],n=null;if(n=t.$slots[o+"-"+r])return n;switch(r){case"deactive":case"active":var s="active";"deactive"==r&&(s+=" deactive"),n=e("svg",{class:s,attrs:{version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000",xmlSpace:"preserve"}},[e("metadata",[" Svg Vector Icons : http://www.sfont.cn "]),e("g",[e("g",{attrs:{transform:"matrix(1 0 0 -1 0 1008)"}},[e("path",{attrs:{d:"M10,543l490,455l490-455L885,438L570,735.5V18H430v717.5L115,438L10,543z"}})])])]);break;case"start":n=e("svg",{attrs:{viewBox:"0 0 50 50"},class:"start"},[e("circle",{attrs:{stroke:"true",cx:"25",cy:"25",r:"20"},class:"bg-path"}),e("circle",{attrs:{cx:"25",cy:"25",r:"20"},class:"active-path"})]);break;case"beforeDeactive":n=e("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3562"}},[e("path",{attrs:{d:"M512 0C229.706831 0 0 229.667446 0 512s229.667446 512 512 512c282.293169 0 512-229.667446 512-512S794.332554 0 512 0z m282.994215 353.406031L433.2544 715.145846a31.484062 31.484062 0 0 1-22.275938 9.231754h-0.4096a31.586462 31.586462 0 0 1-22.449231-9.814646L228.430769 546.327631a31.507692 31.507692 0 0 1 45.701908-43.386093l137.4208 144.785724L750.442338 308.854154a31.507692 31.507692 0 1 1 44.551877 44.551877z",fill:"","p-id":"3563"}})])}return[n,i]}function K(e,t){return function(e,t){if(e.hasResized)return;var o="display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; padding: 0; margin: 0; opacity: 0; z-index: -1000; pointer-events: none;",i=document.createElement("div");i.style.cssText=o;var r=document.createElement("object");r.style.cssText=o,r.type="text/html",r.tabIndex=-1,r.onload=function(){b(r.contentDocument.defaultView,"resize",t)},s()||(r.data="about:blank");i.isResizeElm=!0,i.appendChild(r),e.appendChild(i),s()&&(r.data="about:blank");return function(){r.contentDocument&&b(r.contentDocument.defaultView,"resize",t,"off"),e.removeChild(i),e.hasResized=!1}}(e,t)}var ee={methods:{slideScrollTo:function(e,t,o,i){var r=this.getPosition(),n=r.scrollLeft,s=r.scrollTop;e=D(e||n,this.scroller.__maxScrollLeft),t=D(t||s,this.scroller.__maxScrollTop),this.scroller.scrollTo(e,t,0<o,void 0,!1,o,i)},zoomBy:function(e,t,o,i,r){this.scroller?this.scroller.zoomBy(e,t,o,i,r):v("zoomBy and zoomTo are only for slide mode!")},zoomTo:function(e,t,o,i,r){var n=1<arguments.length&&void 0!==t&&t,s=o,l=i,a=r;this.scroller?this.scroller.zoomTo(e,n,s,l,a):v("zoomBy and zoomTo are only for slide mode!")},getCurrentPage:function(){if(this.scroller&&this.mergedOptions.vuescroll.paging)return this.scroller.getCurrentPage();v("getCurrentPage and goToPage are only for slide mode and paging is enble!")},goToPage:function(e,t){var o=1<arguments.length&&void 0!==t&&t;this.scroller&&this.mergedOptions.vuescroll.paging?this.scroller.goToPage(e,o):v("getCurrentPage and goToPage are only for slide mode and paging is enble!")},triggerRefreshOrLoad:function(e){if(this.scroller){var t=this.mergedOptions.vuescroll.pullRefresh.enable,o=this.mergedOptions.vuescroll.pushLoad.enable;if("refresh"!=e||t)if("load"!=e||o)if("refresh"===e||"load"===e){if("start"!=this.vuescroll.state[e+"Stage"])return this.scroller.triggerRefreshOrLoad(e),!0}else v("param must be one of load and refresh!");else v("load must be enabled and content's height > container's height!");else v("refresh must be enabled!")}else v("You can only use triggerRefreshOrLoad in slide mode!")},getCurrentviewDomSlide:function(){return function(e,t){for(var o,i,r,n,s,l,a,c,h,u,_=e.children,d=[],f=0;f<_.length;f++){var p=_.item(f);void 0,o=p.getBoundingClientRect(),i=o.left,r=o.top,n=o.width,s=o.height,l=t.getBoundingClientRect(),a=l.left,c=l.top,h=l.height,u=l.width,0<i-a+n&&i-a<u&&0<r-c+s&&r-c<h&&!p.isResizeElm&&d.push(p)}return d}(this.scrollPanelElm,this.$el)}}},te=Date.now||function(){return+new Date},oe={},ie=1,re={effect:{}},ne=null;ne="undefined"!=typeof window?window:{},re.effect.Animate={requestAnimationFrame:A(ne),stop:function(e){var t=null!=oe[e];return t&&(oe[e]=null),t},isRunning:function(e){return null!=oe[e]},start:function(l,a,c,h,u,_){var d=te(),f=d,p=0,v=0,g=ie++;if(_=_||document.body,g%20==0){var e={};for(var t in oe)e[t]=!0;oe=e}return oe[g]=!0,re.effect.Animate.requestAnimationFrame(function e(t){var o=!0!==t,i=te();if(!oe[g]||a&&!a(g))return oe[g]=null,void(c&&c(60-v/((i-d)/1e3),g,!1));if(o)for(var r=Math.round((i-f)/(1e3/60))-1,n=0;n<Math.min(r,4);n++)e(!0),v++;if(oe[g]){h&&1<(p=(i-d)/h)&&(p=1);var s=u?u(p):p;!1!==l(s,i,o)&&1!==p||!o?o&&(f=i,re.effect.Animate.requestAnimationFrame(e,_)):(oe[g]=null,c&&c(60-v/((i-d)/1e3),g,1===p||null==h))}},_),g}};var se=null,le=null;function ae(e,t){for(var o in this.__callback=e,this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:{top:100,bottom:100,left:100,right:100},locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3,speedMultiplier:1,scrollingComplete:z,animatingEasing:"easeOutCubic",noAnimatingEasing:"easeInOutCubic",penetrationDeceleration:.03,penetrationAcceleration:.08},t)this.options[o]=t[o];se=j(this.options.animatingEasing,Z),le=j(this.options.noAnimatingEasing,Z)}var ce={__isSingleTouch:!1,__isTracking:!1,__didDecelerationComplete:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__loadHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshBeforeDeactivate:null,__refreshDeactivate:null,__refreshStart:null,__loadActive:null,__loadActivate:null,__loadBeforeDeactivate:null,__loadDeactivate:null,__loadStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__currentPageX:null,__currentPageY:null,__totalXPage:null,__totalYPage:null,__disable:!1,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(e,t,o,i,r,n){var s=5<arguments.length&&void 0!==n&&n,l=this;e===+e&&(l.__clientWidth=e),t===+t&&(l.__clientHeight=t),o===+o&&(l.__contentWidth=o),i===+i&&(l.__contentHeight=i),l.__computeScrollMax(),s||l.scrollTo(l.__scrollLeft,l.__scrollTop,r)},setPosition:function(e,t){this.__clientLeft=e||0,this.__clientTop=t||0},setSnapSize:function(e,t){this.__snapWidth=e,this.__snapHeight=t},activatePullToRefresh:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,s=t.beforeDeactiveEnd,l=this;l.__refreshHeight=e,l.__refreshActivate=o,l.__refreshBeforeDeactivate=n,l.__refreshBeforeDeactiveEnd=s,l.__refreshDeactivate=i,l.__refreshStart=r},activatePushToLoad:function(e,t){var o=t.activateCallback,i=t.deactivateCallback,r=t.startCallback,n=t.beforeDeactivateCallback,s=t.beforeDeactiveEnd,l=this;l.__loadHeight=e,l.__loadActivate=o,l.__loadBeforeDeactivate=n,l.__loadBeforeDeactiveEnd=s,l.__loadDeactivate=i,l.__loadStart=r},triggerRefreshOrLoad:function(e){var t=0<arguments.length&&void 0!==e?e:"refresh",o=this.__isDecelerating;if(o&&(re.effect.Animate.stop(o),this.__isDecelerating=!1),"refresh"==t){if(this.__refreshActive||this.__refreshBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&(this.__refreshStart(),this.__refreshActive=!0)}else if("load"==t){if(this.__loadActive||this.__loadBeforeDeactiveStarted)return;this.__publish(this.__scrollLeft,this.__maxScrollTop+this.__loadHeight,this.__zoomLevel,!0),this.__loadStart&&(this.__loadStart(),this.__loadActive=!0)}},finishRefreshOrLoad:function(){var e=this;if(e.__refreshActive){e.__refreshActive=!1;var t=function(){e.__refreshBeforeDeactiveEnd&&e.__refreshBeforeDeactiveEnd(),e.__refreshBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__refreshBeforeDeactivate?e.__refreshBeforeDeactivate(t):t()}if(e.__loadActive){e.__loadActive=!1;var o=function(){e.__loadBeforeDeactiveEnd&&e.__loadBeforeDeactiveEnd(),e.__loadBeforeDeactiveStarted=!0,e.scrollTo(e.__scrollLeft,e.__scrollTop,!0)};e.__loadBeforeDeactivate?e.__loadBeforeDeactivate(o):o()}},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(e,t,o,i,r){var n=this;if(!n.options.zooming)throw new Error("Zooming is not enabled!");r&&(n.__zoomComplete=r),n.__isDecelerating&&(re.effect.Animate.stop(n.__isDecelerating),n.__isDecelerating=!1);var s=n.__zoomLevel;null==o&&(o=n.__clientWidth/2),null==i&&(i=n.__clientHeight/2),e=Math.max(Math.min(e,n.options.maxZoom),n.options.minZoom),n.__computeScrollMax(e);var l=(o+n.__scrollLeft)*e/s-o,a=(i+n.__scrollTop)*e/s-i;l>n.__maxScrollLeft?l=n.__maxScrollLeft:l<0&&(l=0),a>n.__maxScrollTop?a=n.__maxScrollTop:a<0&&(a=0),n.__publish(l,a,e,t)},zoomBy:function(e,t,o,i,r){this.zoomTo(this.__zoomLevel*e,t,o,i,r)},scrollTo:function(e,t,o,i,r,n,s){var l=this;if(l.__isDecelerating&&(re.effect.Animate.stop(l.__isDecelerating),l.__isDecelerating=!1),null!=i&&i!==l.__zoomLevel){if(!l.options.zooming)throw new Error("Zooming is not enabled!");e*=i,t*=i,l.__computeScrollMax(i)}else i=l.__zoomLevel;l.options.scrollingX||r?l.options.paging?e=Math.round(e/l.__clientWidth)*l.__clientWidth:l.options.snapping&&(e=Math.round(e/l.__snapWidth)*l.__snapWidth):e=l.__scrollLeft,l.options.scrollingY||r?l.options.paging?t=Math.round(t/l.__clientHeight)*l.__clientHeight:l.options.snapping&&(t=Math.round(t/l.__snapHeight)*l.__snapHeight):t=l.__scrollTop,r||(e=Math.max(Math.min(l.__maxScrollLeft,e),0),t=Math.max(Math.min(l.__maxScrollTop,t),0)),e===l.__scrollLeft&&t===l.__scrollTop&&(o=!1),l.__isTracking||l.__publish(e,t,i,o,n,s)},scrollBy:function(e,t,o){var i=this,r=i.__isAnimating?i.__scheduledLeft:i.__scrollLeft,n=i.__isAnimating?i.__scheduledTop:i.__scrollTop;i.scrollTo(r+(e||0),n+(t||0),o)},getCurrentPage:function(){return this.__computePage(),{x:this.__currentPageX,y:this.__currentPageY}},goToPage:function(e,t){var o=e.x,i=e.y;isNaN(o)&&(o=1),isNaN(i)&&(i=1),this.scrollTo((o-1)*this.__clientWidth,(i-1)*this.__clientHeight,t)},doMouseZoom:function(e,t,o,i){var r=0<e?.97:1.03;return this.zoomTo(this.__zoomLevel*r,!1,o-this.__clientLeft,i-this.__clientTop)},doTouchStart:function(e,t){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var o,i,r=this;r.__interruptedAnimation=!0,r.__isDecelerating&&(re.effect.Animate.stop(r.__isDecelerating),r.__isDecelerating=!1,r.__interruptedAnimation=!0),r.__isAnimating&&(re.effect.Animate.stop(r.__isAnimating),r.__isAnimating=!1,r.__interruptedAnimation=!0);var n=1===e.length;i=n?(o=e[0].pageX,e[0].pageY):(o=Math.abs(e[0].pageX+e[1].pageX)/2,Math.abs(e[0].pageY+e[1].pageY)/2),r.__initialTouchLeft=o,r.__initialTouchTop=i,r.__zoomLevelStart=r.__zoomLevel,r.__lastTouchLeft=o,r.__lastTouchTop=i,r.__lastTouchMove=t,r.__lastScale=1,r.__enableScrollX=!n&&r.options.scrollingX,r.__enableScrollY=!n&&r.options.scrollingY,r.__isTracking=!0,r.__didDecelerationComplete=!1,r.__isDragging=!n,r.__isSingleTouch=n,r.__positions=[]},doTouchMove:function(e,t,o){if(null==e.length)throw new Error("Invalid touch list: "+e);if(t instanceof Date&&(t=t.valueOf()),"number"!=typeof t)throw new Error("Invalid timestamp value: "+t);var i=this;if(i.__isTracking){var r,n;n=2===e.length?(r=Math.abs(e[0].pageX+e[1].pageX)/2,Math.abs(e[0].pageY+e[1].pageY)/2):(r=e[0].pageX,e[0].pageY);var s=i.__positions;if(i.__isDragging){var l=r-i.__lastTouchLeft,a=n-i.__lastTouchTop,c=i.__scrollLeft,h=i.__scrollTop,u=i.__zoomLevel;if(null!=o&&i.options.zooming){var _=u;if(u=u/i.__lastScale*o,_!==(u=Math.max(Math.min(u,i.options.maxZoom),i.options.minZoom))){var d=r-i.__clientLeft,f=n-i.__clientTop;c=(d+c)*u/_-d,h=(f+h)*u/_-f,i.__computeScrollMax(u)}}var p=i.options.bouncing;if(i.__enableScrollX){c-=l*this.options.speedMultiplier;var v=i.__maxScrollLeft;(v<c||c<0)&&(c+=l/2*this.options.speedMultiplier,c=Math.min(Math.max(-p.left,c),v+p.right))}if(i.__enableScrollY){h-=a*this.options.speedMultiplier;var g=i.__maxScrollTop;(g<h||h<0)&&(h+=a/2*this.options.speedMultiplier,h=Math.min(Math.max(-p.top,h),g+p.bottom),i.__enableScrollX||null==i.__refreshHeight&&null==i.__loadHeight||(!i.__refreshActive&&h<=-i.__refreshHeight?(i.__refreshActive=!0,i.__refreshActivate&&i.__refreshActivate()):i.__refreshActive&&h>-i.__refreshHeight?(i.__refreshActive=!1,i.__refreshDeactivate&&i.__refreshDeactivate()):!i.__loadActive&&h>=i.__maxScrollTop+i.__loadHeight&&0<i.__loadHeight?(i.__loadActive=!0,i.__loadActivate&&i.__loadActivate()):i.__loadActive&&h<i.__maxScrollTop+i.__loadHeight&&(i.__loadActive=!1,i.__loadDeactivate&&i.__loadDeactivate())))}60<s.length&&s.splice(0,30),s.push(c,h,t),i.__publish(c,h,u)}else{var m=i.options.locking?3:0,b=Math.abs(r-i.__initialTouchLeft),S=Math.abs(n-i.__initialTouchTop);i.__enableScrollX=i.options.scrollingX&&m<=b,i.__enableScrollY=i.options.scrollingY&&m<=S,s.push(i.__scrollLeft,i.__scrollTop,t),i.__isDragging=(i.__enableScrollX||i.__enableScrollY)&&(5<=b||5<=S),i.__isDragging&&(i.__interruptedAnimation=!1)}i.__lastTouchLeft=r,i.__lastTouchTop=n,i.__lastTouchMove=t,i.__lastScale=o}},doTouchEnd:function(e){if(e instanceof Date&&(e=e.valueOf()),"number"!=typeof e)throw new Error("Invalid timestamp value: "+e);var t=this;if(t.__isTracking){if(t.__isTracking=!1,t.__isDragging)if(t.__isDragging=!1,t.__isSingleTouch&&t.options.animating&&e-t.__lastTouchMove<=100){for(var o=t.__positions,i=o.length-1,r=i,n=i;0<n&&o[n]>t.__lastTouchMove-100;n-=3)r=n;if(r!==i){var s=o[i]-o[r],l=t.__scrollLeft-o[r-2],a=t.__scrollTop-o[r-1];t.__decelerationVelocityX=l/s*(1e3/60),t.__decelerationVelocityY=a/s*(1e3/60);var c=t.options.paging||t.options.snapping?4:1;Math.abs(t.__decelerationVelocityX)>c||Math.abs(t.__decelerationVelocityY)>c?t.__refreshActive||t.__loadActive||t.__startDeceleration(e):t.__scrollComplete()}else t.__scrollComplete()}else 100<e-t.__lastTouchMove&&t.__scrollComplete();t.__isDecelerating||(t.__refreshActive&&t.__refreshStart?(t.__publish(t.__scrollLeft,-t.__refreshHeight,t.__zoomLevel,!0),t.__refreshStart&&t.__refreshStart()):t.__loadActive&&t.__loadStart?(t.__publish(t.__scrollLeft,t.__maxScrollTop+t.__loadHeight,t.__zoomLevel,!0),t.__loadStart&&t.__loadStart()):((t.__interruptedAnimation||t.__isDragging)&&t.__scrollComplete(),t.scrollTo(t.__scrollLeft,t.__scrollTop,!0,t.__zoomLevel),t.__refreshActive?(t.__refreshActive=!1,t.__refreshDeactivate&&t.__refreshDeactivate()):t.__loadActive&&(t.__loadActive=!1,t.__loadDeactivate&&t.__loadDeactivate()))),t.__positions.length=0}},onScroll:z,stop:function(){this.__disable=!0},start:function(){this.__disable=!0},__publish:function(e,t,o,i,r,n){var s=this;if(!s.__disable){isNaN(e)&&(e=this.__scrollLeft),isNaN(t)&&(t=this.__scrollTop);var l=s.__isAnimating;if(l&&(re.effect.Animate.stop(l),s.__isAnimating=!1),i&&(s.options.animating||r)){s.__scheduledLeft=e,s.__scheduledTop=t,s.__scheduledZoom=o;var a=s.__scrollLeft,c=s.__scrollTop,h=s.__zoomLevel,u=e-a,_=t-c,d=o-h,f=se;n&&(f=j(n,Z)),s.__isAnimating=re.effect.Animate.start(function(e,t,o){o&&(s.__scrollLeft=a+u*e,s.__scrollTop=c+_*e,s.__zoomLevel=h+d*e,s.__callback&&(s.__callback(s.__scrollLeft,s.__scrollTop,s.__zoomLevel),s.onScroll()))},function(e){return s.__isAnimating===e},function(e,t,o){t===s.__isAnimating&&(s.__isAnimating=!1),(s.__didDecelerationComplete||o)&&s.__scrollComplete(),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null)),s.__refreshBeforeDeactiveStarted&&(s.__refreshBeforeDeactiveStarted=!1,s.__refreshDeactivate&&s.__refreshDeactivate()),s.__loadBeforeDeactiveStarted&&(s.__loadBeforeDeactiveStarted=!1,s.__loadDeactivate&&s.__loadDeactivate())},r||s.options.animationDuration,l?f:le)}else s.__scheduledLeft=s.__scrollLeft=e,s.__scheduledTop=s.__scrollTop=t,s.__scheduledZoom=s.__zoomLevel=o,s.__callback&&(s.__callback(e,t,o),s.onScroll()),s.options.zooming&&(s.__computeScrollMax(),s.__zoomComplete&&(s.__zoomComplete(),s.__zoomComplete=null)),s.__refreshBeforeDeactiveStarted&&(s.__refreshBeforeDeactiveStarted=!1,s.__refreshDeactivate&&s.__refreshDeactivate()),s.__loadBeforeDeactiveStarted&&(s.__loadBeforeDeactiveStarted=!1,s.__loadDeactivate&&s.__loadDeactivate())}},__computeScrollMax:function(e){var t=this;null==e&&(e=t.__zoomLevel),t.__maxScrollLeft=Math.max(t.__contentWidth*e-t.__clientWidth,0),t.__maxScrollTop=Math.max(t.__contentHeight*e-t.__clientHeight,0)},__computePage:function(){var e=this,t=e.__clientWidth,o=e.__clientHeight,i=e.__scrollLeft,r=e.__scrollTop;e.__totalXPage=Math.ceil(e.__contentWidth/t),e.__currentPageX=Math.ceil(i/t+1),e.__totalYPage=Math.ceil(e.__contentHeight/o),e.__currentPageY=Math.ceil(r/o+1)},__scrollComplete:function(){this.options.scrollingComplete()},__startDeceleration:function(){var i=this;if(i.options.paging){var e=Math.max(Math.min(i.__scrollLeft,i.__maxScrollLeft),0),t=Math.max(Math.min(i.__scrollTop,i.__maxScrollTop),0),o=i.__clientWidth,r=i.__clientHeight;i.__minDecelerationScrollLeft=Math.floor(e/o)*o,i.__minDecelerationScrollTop=Math.floor(t/r)*r,i.__maxDecelerationScrollLeft=Math.ceil(e/o)*o,i.__maxDecelerationScrollTop=Math.ceil(t/r)*r}else i.__minDecelerationScrollLeft=0,i.__minDecelerationScrollTop=0,i.__maxDecelerationScrollLeft=i.__maxScrollLeft,i.__maxDecelerationScrollTop=i.__maxScrollTop;var n=i.options.snapping?4:.001;i.__isDecelerating=re.effect.Animate.start(function(e,t,o){i.__stepThroughDeceleration(o)},function(){var e=Math.abs(i.__decelerationVelocityX)>=n||Math.abs(i.__decelerationVelocityY)>=n;return e||(i.__didDecelerationComplete=!0),e},function(){i.__isDecelerating&&(i.__isDecelerating=!1,i.__didDecelerationComplete&&i.__scrollComplete(),i.scrollTo(i.__scrollLeft,i.__scrollTop,i.options.snapping))})},__stepThroughDeceleration:function(e){var t=this,o=t.options.bouncing,i=t.__minDecelerationScrollLeft,r=t.__maxDecelerationScrollLeft,n=t.__minDecelerationScrollTop,s=t.__maxDecelerationScrollTop,l=t.__scrollLeft+t.__decelerationVelocityX,a=t.__scrollTop+t.__decelerationVelocityY,c=l<i||r<l,h=a<n||s<a,u=Math.min(Math.max(i-o.left,l),r+o.right),_=Math.min(Math.max(n-o.top,a),s+o.bottom);if(e?t.__publish(u,_,t.__zoomLevel):(t.__scrollLeft=l,t.__scrollTop=a),!t.options.paging){t.__decelerationVelocityX*=.95,t.__decelerationVelocityY*=.95}var d=0,f=0,p=t.options.penetrationDeceleration,v=t.options.penetrationAcceleration;c&&(l<t.__minDecelerationScrollLeft?d=t.__minDecelerationScrollLeft-l:l>t.__maxDecelerationScrollLeft&&(d=t.__maxDecelerationScrollLeft-l)),h&&(a<t.__minDecelerationScrollTop?f=t.__minDecelerationScrollTop-a:a>t.__maxDecelerationScrollTop&&(f=t.__maxDecelerationScrollTop-a)),0!==d&&(d*t.__decelerationVelocityX<=0?(t.__decelerationVelocityX+=d*p,d<0&&-d>=o.right&&0<t.__decelerationVelocityX&&(t.__decelerationVelocityX=-o.right/2),0<d&&d>=o.left&&t.__decelerationVelocityX<0&&(t.__decelerationVelocityX=o.left/2)):t.__decelerationVelocityX=d*v),0!==f&&(f*t.__decelerationVelocityY<=0?(t.__decelerationVelocityY+=f*p,f<0&&-f>=o.bottom&&0<t.__decelerationVelocityY&&(t.__decelerationVelocityY=-o.bottom/2),0<f&&f>=o.top&&t.__decelerationVelocityY<0&&(t.__decelerationVelocityY=o.top/2)):t.__decelerationVelocityY=f*v/2)}};for(var he in ce)ae.prototype[he]=ce[he];var ue=new g;!function(e,t){if(!a()&&!document.getElementById(e)){var o=document.head||doc.getElementsByTagName("head")[0],i=document.createElement("style");i.id=e,i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),o.appendChild(i)}}("vuescroll-silde-mode-style","\n @-webkit-keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @keyframes loading-rotate {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n }\n\n @-webkit-keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n @keyframes loading-wipe {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -40px;\n }\n to {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -120px;\n }\n }\n\n .__vuescroll .__refresh,\n .__vuescroll .__load {\n position: absolute;\n width: 100%;\n color: black;\n height: 50px;\n line-height: 50px;\n text-align: center;\n font-size: 16px;\n }\n .__vuescroll .__refresh svg,\n .__vuescroll .__load svg {\n margin-right: 10px;\n width: 25px;\n height: 25px;\n vertical-align: sub;\n }\n .__vuescroll .__refresh svg.active,\n .__vuescroll .__load svg.active {\n transition: all 0.2s;\n }\n .__vuescroll .__refresh svg.active.deactive,\n .__vuescroll .__load svg.active.deactive {\n transform: rotateZ(180deg);\n }\n .__vuescroll .__refresh svg path,\n .__vuescroll .__refresh svg rect,\n .__vuescroll .__load svg path,\n .__vuescroll .__load svg rect {\n fill: #20a0ff;\n }\n .__vuescroll .__refresh svg.start,\n .__vuescroll .__load svg.start {\n stroke: #343640;\n stroke-width: 4;\n stroke-linecap: round;\n -webkit-animation: loading-rotate 2s linear infinite;\n animation: loading-rotate 2s linear infinite;\n }\n .__vuescroll .__refresh svg.start .bg-path,\n .__vuescroll .__load svg.start .bg-path {\n stroke: #f2f2f2;\n fill: none;\n }\n .__vuescroll .__refresh svg.start .active-path,\n .__vuescroll .__load svg.start .active-path {\n stroke: #20a0ff;\n fill: none;\n stroke-dasharray: 90, 150;\n stroke-dashoffset: 0;\n -webkit-animation: loading-wipe 1.5s ease-in-out infinite;\n animation: loading-wipe 1.5s ease-in-out infinite;\n }\n ");var _e=function(e,t,o,i){var r,n=2<arguments.length&&void 0!==o?o:[],s=3<arguments.length&&void 0!==i?i:[],l=(m(r={},N.name,N),m(r,Y.name,Y),r),a={};a.components=l,a.render=t,a.mixins=e;var c,h=I(a);return c=s,[].concat(n).forEach(function(e){f(e,B)}),k=c,h}({mixins:[ee,{mounted:function(){this.vsMounted=!0},computed:{pullRefreshTip:function(){return this.mergedOptions.vuescroll.pullRefresh.tips[this.vuescroll.state.refreshStage]},pushLoadTip:function(){return this.mergedOptions.vuescroll.pushLoad.tips[this.vuescroll.state.loadStage]},refreshLoad:function(){return this.mergedOptions.vuescroll.pullRefresh.enable||this.mergedOptions.vuescroll.pushLoad.enable},refrehDomVisiable:function(){return this.vsMounted&&this.outTheTopBoundary},loadDomVisiable:function(){return this.vsMounted&&this.outTheBottomBoundary}},data:function(){return{vuescroll:{state:{refreshStage:"deactive",loadStage:"deactive"}},vsMounted:!1,outTheTopBoundary:!1,outTheBottomBoundary:!1}},methods:{updateScroller:function(){this.updateDimesion(),this.registryRefreshLoad()},updateDimesion:function(){var e=this.$el.clientWidth,t=this.$el.clientHeight,o=this.scrollPanelElm.scrollWidth,i=this.scrollPanelElm.scrollHeight,r=0,n=0;if(this.mergedOptions.vuescroll.pullRefresh.enable&&this.vsMounted){var s=this.$refs[M].elm||this.$refs[M];r=s.offsetHeight,s.style.marginTop=-r+"px"}if(this.mergedOptions.vuescroll.pushLoad.enable&&this.vsMounted){var l=this.$refs[P].elm||this.$refs[P];i-=n=l.offsetHeight,l.style.bottom="-"+n+"px"}this.scroller&&this.scroller.setDimensions(e,t,o,i,!1)},registryRefreshLoad:function(){this.mergedOptions.vuescroll.pullRefresh.enable&&this.registryEvent("refresh"),this.mergedOptions.vuescroll.pushLoad.enable&&this.registryEvent("load")},registryScroller:function(e){var c=this,t=0<arguments.length&&void 0!==e?e:{},o=t.left,i=void 0===o?0:o,r=t.top,n=void 0===r?0:r,s=t.zoom,l=void 0===s?1:s,a=this.mergedOptions.vuescroll.scroller,h=a.preventDefault,u=a.preventDefaultOnMove,_=this.mergedOptions.vuescroll,d=_.paging,f=_.snapping.enable,p=_.renderMethod,v=_.zooming,g=_.locking;v=!this.refreshLoad&&!d&&!f&&v;var m=this.mergedOptions.scrollPanel,b=m.scrollingY,S=m.scrollingX,y=this.scrollingComplete.bind(this);this.scroller=new ae(function(i,e,r,t){if("position"==t)return function(e,t){i.style.left=-e+"px",i.style.top=-t+"px"};var o=V(e),n=document.createElement("div"),s=o+"Perspective",l="transform";return void 0!==n.style[s]?function(e,t,o){i.style[l]="translate3d("+-e+r+","+-t+r+",0) scale("+o+")"}:void 0!==n.style[l]?function(e,t,o){i.style[l]="translate("+-e+r+","+-t+r+") scale("+o+")"}:void 0}(this.scrollPanelElm,window,"px",p),$({},this.mergedOptions.vuescroll.scroller,{zooming:v,scrollingY:b,scrollingX:S&&!this.refreshLoad,animationDuration:this.mergedOptions.scrollPanel.speed,paging:d,snapping:f,scrollingComplete:y,locking:g})),this.scroller.__disable=this.mergedOptions.vuescroll.scroller.disable,this.scroller.__scrollLeft=i,this.scroller.__scrollTop=n,this.scroller.__zoomLevel=l,f&&this.scroller.setSnapSize(this.mergedOptions.vuescroll.snapping.width,this.mergedOptions.vuescroll.snapping.height);var T=this.$el.getBoundingClientRect();this.scroller.setPosition(T.left+this.$el.clientLeft,T.top+this.$el.clientTop);var w,D,x,L,B,k,z,O,M,P=(w=this.$el,D=this.scroller,L=v,B=h,k=u,O=!(x=function(e){switch(e){case"mousedown":c.vuescroll.state.isDragging=!0;break;case"onscroll":var t=c.vuescroll.state.loadStage,o=c.mergedOptions.vuescroll.pushLoad,i=o.enable,r=o.auto,n=o.autoLoadDistance,s=c.scroller,l=s.__scrollTop,a=s.__maxScrollTop;"start"!=t&&i&&r&&!c.lockAutoLoad&&a-l<=n&&0<l&&(c.lockAutoLoad=!0,c.triggerRefreshOrLoad("load")),n<a-l&&(c.lockAutoLoad=!1),c.handleScroll(!1);break;case"mouseup":c.vuescroll.state.isDragging=!1}}),M=ue.getTouchObject(),w.addEventListener(M.touchstart,E,!1),document.addEventListener(M.touchend,C,!1),document.addEventListener(M.touchcancel,R,!1),L&&!ue.isTouch&&w.addEventListener(-1<navigator.userAgent.indexOf("Firefox")?"DOMMouseScroll":"mousewheel",H,!1),z=function(){w.removeEventListener(M.touchstart,E,!1),document.removeEventListener(M.touchend,C,!1),document.removeEventListener(M.touchcancel,R,!1),w.removeEventListener(-1<navigator.userAgent.indexOf("Firefox")?"DOMMouseScroll":"mousewheel",H,!1)},D.onScroll=function(){x("onscroll")},z);function E(e){var t=ue.getEventObject(e);t[0]&&t[0].target&&t[0].target.tagName.match(/input|textarea|select/i)||D.__disable||(x("mousedown"),O=!0,D.doTouchStart(t,e.timeStamp),B&&e.preventDefault(),e.stopPropagation(),document.addEventListener(M.touchmove,A,{passive:!1}))}function A(e){if(!D.__disable&&O){var t=ue.getEventObject(e);x("mousemove"),D.doTouchMove(t,e.timeStamp,e.scale),k&&e.preventDefault()}}function C(e){x("mouseup"),O=!1,D.doTouchEnd(e.timeStamp),document.removeEventListener(M.touchmove,A)}function R(e){D.doTouchEnd(e.timeStamp)}function H(e){D.doMouseZoom(e.detail?-120*e.detail:e.wheelDelta,e.timeStamp,e.pageX,e.pageY)}return this.updateScroller(),P},updateSlideModeBarState:function(){var e,t,o=this.$el,i=this.scroller,r=0,n=0,s=this.$el,l=s.clientWidth,a=s.clientHeight,c=l+this.scroller.__maxScrollLeft,h=a+this.scroller.__maxScrollTop;i.__scrollLeft<0?r=-i.__scrollLeft:i.__scrollLeft>i.__maxScrollLeft&&(r=i.__scrollLeft-i.__maxScrollLeft),i.__scrollTop<0?(n=-i.__scrollTop,this.outTheBottomBoundary=!1,this.outTheTopBoundary=!0):i.__scrollTop>i.__maxScrollTop?(n=i.__scrollTop-i.__maxScrollTop,this.outTheTopBoundary=!1,this.outTheBottomBoundary=!0):this.outTheTopBoundary=this.outTheBottomBoundary=!1,e=a/(h+n),t=l/(c+r);var u=Math.min(Math.max(0,i.__scrollTop),i.__maxScrollTop),_=Math.min(Math.max(0,i.__scrollLeft),i.__maxScrollLeft);this.bar.vBar.state.posValue=100*(u+n)/o.clientHeight,this.bar.hBar.state.posValue=100*(_+r)/o.clientWidth,i.__scrollLeft<0&&(this.bar.hBar.state.posValue=0),i.__scrollTop<0&&(this.bar.vBar.state.posValue=0),this.bar.vBar.state.size=e<1?e:0,this.bar.hBar.state.size=t<1?t:0},registryEvent:function(e){var t,o,i,r,n,s,l,a="refresh"==e?M:P,c="refresh"==e?this.scroller.activatePullToRefresh:this.scroller.activatePushToLoad,h="refresh"==e?"refreshStage":"loadStage",u=this.$refs[a].elm||this.$refs[a],_=(t=e,o=h,r=u,n=(i=this).$listeners,s=function(){i.vuescroll.state[o]="start",setTimeout(function(){i.scroller.finishRefreshOrLoad()},2e3)},l=void 0,n[t+"-before-deactivate"]&&(l=function(e){i.vuescroll.state[o]="beforeDeactive",i.$emit(t+"-before-deactivate",i,r,e.bind(i.scroller))}),n[t+"-start"]&&(s=function(){i.vuescroll.state[o]="start",i.$emit(t+"-start",i,r,i.scroller.finishRefreshOrLoad.bind(i.scroller))}),{activateCallback:function(){i.vuescroll.state[o]="active",i.$emit(t+"-activate",i,r)},deactivateCallback:function(){i.vuescroll.state[o]="deactive",i.$emit(t+"-deactivate",i,r)},startCallback:s,beforeDeactivateCallback:l,beforeDeactiveEnd:function(){i.vuescroll.state[o]="beforeDeactiveEnd",i.$emit(t+"-before-deactivate-end",i,r)}}),d=u.offsetHeight;c.bind(this.scroller)(d,_)},getSlidePosition:function(){return{scrollLeft:this.scroller.__scrollLeft,scrollTop:this.scroller.__scrollTop}}}}],mounted:function(){var e=this;this.$nextTick(function(){e._isDestroyed||e.renderError||(e.updatedCbs.push(function(){e.updateScroller()}),e.$watch("mergedOptions.vuescroll.scroller.disable",{sync:!0,handler:function(e){this.scroller&&(this.scroller.__disable=e)}}))})},methods:{destroy:function(){this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyResize&&this.destroyResize()},getCurrentviewDom:function(){return this.getCurrentviewDomSlide()},internalScrollTo:function(e,t,o,i){this.slideScrollTo(e,t,o,i)},handleScroll:function(e){this.updateBarStateAndEmitEvent("handle-scroll",e)},updateBarStateAndEmitEvent:function(e,t){var o=1<arguments.length&&void 0!==t?t:null;this.scroller&&(this.updateSlideModeBarState(),e&&this.emitEvent(e,o),this.mergedOptions.bar.onlyShowBarOnScroll?"handle-scroll"!=e&&"handle-resize"!=e&&"refresh-status"!=e&&"window-resize"!=e&&"options-change"!=e||this.showAndDefferedHideBar(!0):this.showAndDefferedHideBar())},getScrollProcess:function(){var e=this.scrollPanelElm,t=e.scrollHeight,o=e.scrollWidth,i=e.clientHeight,r=e.clientWidth,n=e.scrollTop,s=e.scrollLeft;return t=this.scroller.__contentHeight,o=this.scroller.__contentWidth,n=this.scroller.__scrollTop,s=this.scroller.__scrollLeft,i=this.$el.clientHeight,r=this.$el.clientWidth,{v:Math.min(n/(t-i||1),1),h:Math.min(s/(o-r||1),1)}},emitEvent:function(e,t){var o=1<arguments.length&&void 0!==t?t:null,i={type:"vertical"},r={type:"horizontal"},n=this.getPosition(),s=n.scrollTop,l=n.scrollLeft,a=this.getScrollProcess(),c=a.v,h=a.h;i.process=c,r.process=h,i.barSize=this.bar.vBar.state.size,r.barSize=this.bar.hBar.state.size,i.scrollTop=s,r.scrollLeft=l,this.$emit(e,i,r,o)},initVariables:function(){this.$el._isVuescroll=!0},refreshMode:function(){var e=void 0;this.scroller&&(e=this.scroller.getValues()),this.destroyScroller&&(this.scroller.stop(),this.destroyScroller(),this.destroyScroller=null),this.destroyScroller=this.registryScroller(e)},refreshInternalStatus:function(){this.setVsSize(),this.registryResize(),this.refreshMode(),this.updateBarStateAndEmitEvent("refresh-status")},registryResize:function(){var t=this,e=this.mergedOptions.vuescroll.detectResize;if((!this.destroyResize||!e)&&(this.destroyResize&&this.destroyResize(),e)){var o=this.scrollPanelElm,i=this,r=function(){i.updateBarStateAndEmitEvent("window-resize"),i.updatedCbs.push(i.updateScroller),i.$forceUpdate()};window.addEventListener("resize",r,!1);var n=e?K(o,function(){var e={};e.width=t.scroller.__contentWidth,e.height=t.scroller.__contentHeight,t.updateBarStateAndEmitEvent("handle-resize",e),t.updatedCbs.push(t.updateScroller),t.$forceUpdate(),t.setVsSize()}):NOOP;this.destroyResize=function(){window.removeEventListener("resize",r,!1),n(),t.destroyResize=null}}},getPosition:function(){return this.getSlidePosition()}}},function(e,t){var o,i,r,n;return e("scrollPanel",G(t),[(o=e,r=S((i=t).$slots["scroll-panel"]).ch||i.$slots.default,n=[],r||(i.$slots.default=r=[]),i.mergedOptions.vuescroll.pullRefresh.enable&&n.push(o("div",{class:"__refresh",style:{visibility:i.refrehDomVisiable?"":"hidden"},ref:M,key:M},[J(o,i,"refresh",i.pullRefreshTip)])),n.push(r),i.mergedOptions.vuescroll.pushLoad.enable&&n.push(o("div",{ref:P,key:P,class:"__load",style:{visibility:i.loadDomVisiable?"":"hidden"}},[J(o,i,"load",i.pushLoadTip)])),n)])},[{vuescroll:{renderMethod:"transform",pullRefresh:{enable:!1,tips:{deactive:"Pull to Refresh",active:"Release to Refresh",start:"Refreshing...",beforeDeactive:"Refresh Successfully!"}},pushLoad:{enable:!1,tips:{deactive:"Push to Load",active:"Release to Load",start:"Loading...",beforeDeactive:"Load Successfully!"},auto:!1,autoLoadDistance:0},paging:!1,zooming:!0,snapping:{enable:!1,width:100,height:100},scroller:{bouncing:{top:100,bottom:100,left:100,right:100},minZoom:.5,maxZoom:3,speedMultiplier:1,penetrationDeceleration:.03,penetrationAcceleration:.08,preventDefault:!1,preventDefaultOnMove:!0,disable:!1}}}],[function(e){var t,o=e.vuescroll;return o.paging==o.snapping.enable&&o.paging&&(o.pullRefresh||o.pushLoad)&&(t="paging, snapping, (pullRefresh with pushLoad) can only one of them to be true.",console.error("[vuescroll] "+t)),!1}]);var de=$({install:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e.component(t.name||_e.name,_e),e.prototype.$vuescrollConfig=t.ops||{}},version:"4.18.1",refreshAll:function(){for(var e in L)L[e].refresh()},scrollTo:function(t,e,o){var i,r,n,s,l,a,c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:300,h=arguments[4],u=arguments[5],_=t.nodeType,d=new Q,f=new Q;if(_){9==_&&(t=t.scrollingElement);i=t.scrollLeft,r=t.scrollTop,n=t.scrollHeight,s=t.scrollWidth,l=t.clientWidth,a=t.clientHeight,e=void 0===e?i:D(e,s-l),o=void 0===o?r:D(o,n-a);var p=j(h,Z);d.startScroll(i,e,c,function(e){t.scrollLeft=e},u,void 0,p),f.startScroll(r,o,c,function(e){t.scrollTop=e},u,void 0,p)}else v("You must pass a dom for the first param, for window scrolling, you can pass document as the first param.")}},_e);return"undefined"!=typeof window&&window.Vue&&window.Vue.use(de),de});
|