text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-music-Recommend-Recommend~pages-music-index-index"],{"2ea2":function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return s})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"u-wrap",class:"u-lazy-item-"+t.elIndex,style:{opacity:Number(t.opacity),borderRadius:t.borderRadius+"rpx",transition:"opacity "+t.time/1e3+"s ease-in-out"}},[o("v-uni-view",{class:"u-lazy-item-"+t.elIndex},[t.isError?o("v-uni-image",{staticClass:"u-lazy-item error",style:{borderRadius:t.borderRadius+"rpx",height:t.imgHeight},attrs:{src:t.errorImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.errorImgLoaded.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickImg.apply(void 0,arguments)}}}):o("v-uni-image",{staticClass:"u-lazy-item",style:{borderRadius:t.borderRadius+"rpx",height:t.imgHeight},attrs:{src:t.isShow?t.image:t.loadingImg,mode:t.imgMode},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.imgLoaded.apply(void 0,arguments)},error:function(e){arguments[0]=e=t.$handleEvent(e),t.loadError.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickImg.apply(void 0,arguments)}}})],1)],1)},r=[]},3758:function(t,e,o){"use strict";o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-lazy-load",props:{index:{type:[Number,String]},image:{type:String,default:""},imgMode:{type:String,default:"widthFix"},loadingImg:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OUM0QjNBQjkyQUQ2MTFFQTlCNUQ4RTIzNDE5RUIxNjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OUM0QjNBQkEyQUQ2MTFFQTlCNUQ4RTIzNDE5RUIxNjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo5QzRCM0FCNzJBRDYxMUVBOUI1RDhFMjM0MTlFQjE2NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo5QzRCM0FCODJBRDYxMUVBOUI1RDhFMjM0MTlFQjE2NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtRHfPcAAAAzUExURZWVldfX18PDw62trZubm9zc3Li4uKGhoebm5tLS0uHh4c3Nzaenp729vcjIyLKysuvr6141L40AAAcXSURBVHja7NzZlqpGAEBR5lG0//9rIw7IJKJi4or7PGTdtN10wr5SVAEGf/qqArsAiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAIiIAAERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAgAgJEQIAICBABERAg+nmQFMi5Jis+sIniED23jSzIgLTtg2D//iYme/8QBM/9lQ+CAEhbNLM3N9hEHAThX7GPCiBfAxK1b51kD+R7QMLjXg7iCsgWIPUh7pfVozG791oeBPngm48G583uW5GkBvI+SBaM2xXDn1oqum423bX/mgF5FySc2cv93Voug9TdZotsggnkBZB2NzbhrSY5HnoG07jei8dvzsJB/c3W60SALILE46+WCztsbhPR7R2VJq0ukEcT49nyy8QhaKcRa3fYHZD4+ufqOJAcgDz8/59vtw1I3QP5K6JsOG0vm3hce4I8LQp/BaRZGJC3AAn7IKOKXbC+7EdA5vdmmVwOLksgRThqOqiH4XEGsht+peoPUE8U/jJIO5OLH4GEwUslV5G0PTBG5Uiw/Y2jyigO3l9HAHKv9PYb82LloH74dZBoBUgar+l48NsNvtD0fkez9iwrAvIYZDRCl+Xs149Hm/KZmQ+QjUCiO1ei4ru7EsgnQYrkznlQb7thCuRfAzlOAPN72427P4VA/i2Q/DKT/Ls/VR8fvIBsDZIuz7TPF6TCbnk4GJkB2RokejTjuE7/unlgCuSTIO0Cy+Plp6vDfnQlBchy8QtjSHVd3EgmK1bHLm+H6+nXYbz2DuQRSPnqoL7vvq0u70on4zvxgCyWD3b9UyDVdW24PaWaiGTnFZJwPIQAebDpIKheBIm7n124ZthMJipAlkqHO+IZkP1tbfzOJark/A7MgKyvvl60fRqkvXfhuow+t9+q00+0/yyBrK8ZngOtBzldhw2X9tvpNGty0gvkmbPeJ0Cy/r09s/stbmfo0yMWkEdjevgKyOn2t2pxv7UXoibTdCDLje9/Ww1ymqzn87dbp92242ZmMRjI8hASvwKSLq4udqN6ksw8nxXN3tszD9L8Gkg+2mFrQYql5az4tvFj5xOx4VwnSdeBtGdyPwUytxK77pBVlNHdO7OK3rh/eTPUvdutT3fO52tuHMqD4N7llv8pyOQQ//w19YVDfX27+Sfuby9/6nau4pdA8vEdOZuChEH/quHt0Jg+IRJ/5+PrHwKZXfjbDiS73Zo7mu5UkzX7uTsXe0e/7nC3ePf1O69+BUg2XDfZCqSqOu7rGVf8cHBe8zhC2b61dtUHXv0OkGo6ZL4JkpbRYXdUaFevivx2M/1GIOctNh949TtAoumQ+TpIHMX54CJu+8BDd8FkE5BqcZh/59XvAClmTvKfB0nDqIlHo3T70SftyW1eX9dXtgQJqs1f/Q6QaOa/7wmQKtxH8eiGoCRuovODIO3VxOMmruZbHrLyD7z6DSDtGyT7ew1kf9hNn07c986JTovzzem0Id9wUG+Vk/IDr34DSNR7huZJkMFT6vEhqrPx/j5cnlZML8N6/PAzh9Y99Flm5Yde/c9BquDOkvkKkMP58dA4qi9vivE8JOvGz/j8FokfPpr288+pH2ZPOZrLmeGD+7KOh6dqYWJ48ki7yUg0tz0go/fv/LLddfV3sgOLJyaGPY/zrSlh1a36Arkzoue9CyG35ze6E6/dzO2Ga0EGHqdRJIkfn9/8OEjTW8Vq91ZWh39FeehWA7Nu9ft8CpUEk1WWOyDF0OPyEU2Pnzf/bZC0P6IPzmAvu7KauQBVrgKpJ0tG2arHzX8e5Pb3PezNs/PrX+3JMyCLn9XXf37tPFHvt09WfCDDjx+yyn1/p1V11j7GnB/q3leLuVva79S/tzed+db08YpF4uOZtmz/9oXWMq6BCAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAERECACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiACAgQAQEiIEAEBIiAALELvqt/BBgACqVeUBXxcCkAAAAASUVORK5CYII="},errorImg:{type:String,default:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODdDMjhENDYyQUQ2MTFFQTlDQ0VBODgxQjFFOEEyMEMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODdDMjhENDcyQUQ2MTFFQTlDQ0VBODgxQjFFOEEyMEMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4N0MyOEQ0NDJBRDYxMUVBOUNDRUE4ODFCMUU4QTIwQyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4N0MyOEQ0NTJBRDYxMUVBOUNDRUE4ODFCMUU4QTIwQyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhLwhikAAAAzUExURZWVldfX162trcPDw5ubm7i4uNzc3Obm5s3NzaGhoeHh4cjIyKenp9LS0r29vbKysuvr67sDMEkAAAlpSURBVHja7NzpYqMgAIVRUVHc8/5PO66R1WAbOzX97q+ZtDEpR0AWTR7kVyWhCAAhgABCAAGEAAIIAQQQAggBBBACCCAEEEAIIIAQQAgggBBAACGAAEIAAYQAQgABhAACCAEEEAIIIAQQAgggBBBACCCAEEAAIYAQQAAhgABCAAGEAAIIAYQAAggBBBACCCAEEEAIIAQQQAgggBBAACGAAEIAIYAAQgABhAACCAEEEAIIAQQQAgggBBBACCCAEEAAIYAQQAAhgABCAAGEAAIIAYQAAggBBBACCCAEEEAIIAQQQAgggBBAACGAAEIAIYAAQgABhAACCAEEEAIIAQQQAgggBBBACCCAEEAIIIAQQAAhgABCAAGEAEIAAYQAAggBBBACCCAEEAIIIAQQQAgggBBAACGAEEAAIYAAsqeX5QWHKIcs/Ptl03lfL4zDFPWfBGmSpPn+IZzSH5KkCL5B+n+oklwz6Iz//R2QzFOabzhEmiRirAmZt/bl0w/dpMbLqeeo4wEdpC7zR5WAPKziHKtO7ql+ReKvIa9BxgNaL5ZtEkpeAGIVp5jKJa09xVo9vgSSzQcszdYvmOqjQNSQ6pHK6rO1n1Xj32788miwHLaZz1Tl9i/yayDlYJ/60/+lp8GSY7OY1B8E4p55bWmfquFk22GLuUUxi78cX+m+BjL2GLkhMrV+/muS6Sfic0CEp5T1Yu2OQdTzsKV0MJV73KVjroyTffxfuv5Tf3fd6iLT9wz8YdVHgUzF2Is9/Xhi5sYJqP1w/GUpjOiHVbaI0w2L+pg3GZzvtokcgHxWDXHaiy78l3sPke01qphamT5c+dqyeAGSumdL/mkggauTam0e3L/mPEiqtzKDbl0Z1Wn8xOa4ySo8X/7TQIJnY/seEKWf12UmC72CKP9xYjr19RPT7NNA+oMO+R0gwmlotAry+C6I0f59ch8yXVQOr0BKYcXt1IUYRyCt+Ur9HGsrQKI79WY9sY9ARPKlzFOFdb41ioD8b5Bp+mqeeRKAxINkESBFGpOpKhgv9OuYpH8A8l4Qa3qp60Kl2/k+rG2sWafuuyCBafb2j4JkgZUob3nWcmicpkxEgmTLLGejTxnWSWCi8lPmsk6DlIHFJv24ojiYyYoGacwL8zXTLEAVaDI/Ybb3NIgKDSv2oXpmHkvNs+PTpMASEdlk7fOZeRk37fwJ6yGnQarQsGIfqqcvx43rTOXY6jf7uKXdRzdLDRPbjIrx1cIj3Kr4KyBFezzgUGuR5893qkOQ19fR2uVBaU+r16LphJNOiatK7PeBZK/Kb+tUn71rcQjSvARpghfH/yG/D2RetTuI3N5QrMWdP46brP7FmKZ//CGQ9At9SL01DLkzY/Vs8Z97fQZ7gelw7jHqCz+/Wile5J4g3Vc79eb5a6oLSue+Ve83gaSv2jp5PxCzjzwFUm9zw9MllSMil1kS4d2E9SaQ1xNo9wMxx0+nQNLnew/WDHvveMAHYm08mofl3TFI/8pD3Q6kMAv6DIi2jTCwRJUvNdDYrrJum9oHhusCbWALonwxBRk1vXMnEGWuT5wAmfYuVGUYpJ7fUZujCN92hvzwWlrFgxSfANKb10DxIMbShnfrynyZZV30imA7P43ArXXHbvBVkTCIuGy25AdBrHmNeBCpL214QdLp9LZarG3IMWrmW0ehtuO7F2PS09UcgqS3B7FKPhpknrStD0HGF/vQRne37LwLG8EbHT4WxN7/Fg0yD9Yr/3br4nnstA+0Il6QxzdBmg8A6a2/IRbkcK9h/uzV8zywF/oSkOyageCPglRWgcWClHnEzs9q/t/SENVXgFijlsq3VtXdCsRp4qObrLLLgjuzSq3fX89ZZW6AfxNIzF6X9FYgThN/fk093KkvHX/hbWd+DqS/FUhlf+G3gohEXzVs3g9iDluWoaW8fL73QhB34u+tIHIf19nLuF4Q98a09Eynnl56q+ePgEhnX+dbQOp6H5XnJ0ACd8dFgkwf12nTOTcEqd2pom+CFF02TIPw6dKmrLS5qOtBpo8b5quUtrwrSGbuqPkeSJqllTFHO02NPxdMrm+y5LKdWyWXjw4vA5nGEtnjuyCFyHqNYvEolzmASm3zK1Eg5zr13lhqV1tlksnVw8Pkwgri7O07AVKLJkutRYw87bPlRpBpNXE8xGb+fhBlvEGrGPLqViu5sILIx9dAmqF1705sxF4M8+R8P5dOdQwi12fMnATpjJ2JSt/POIvU9wPJEs/jduJAjLvU0yFT0i64Yb1bsVi79dA4pEy3TzoHMq2O7Re4vXm5O9+l290NpE4CU+YRIMNye2iaqbVS2AUnn2fsekthYKReVNutVedA5juttyIXrT38mOds+ps9DWhwL7GWc61/DVKPzVN9UHDarf1icU98IOU8tm6L031Iq63t1tKzj3fe/FCpO4F0/i0Z2+yvA1KeGBjqj1qYx8/zoxpKZ1Yl367I1k+sfcft/QPy9csXy/32qX1qLZsrryG5BGQaRj0vc/b7N54XXq293TCLB5HO42Fy517obW19b+qjl3CHp0fdLJcWvmdy1etESi/uAdJrs1hTaUklHuW8qSDdC3UfXVR5cnD3rAFSSqtFb7z7eapErx7rC739jCXfbK3aWiipjXo8UbmxXPa7QQq9R289j2Gr88N7Ag5AlHPRKc37pNZv0CZtX1tVMG6rm8qW1/KlCgQvcMss933ybwXZz3dReW5yce4ByZtHFIhwT9kmjxg8BzbKDUe1PB9edBJqSN7/KM1LmqyuMZ5BpeTUw1aD/uDI0relPfSHa/Wn8Pxq1BNfxy/h3IdwOJqIKumb9CHvTqMefyY82RoQAgggBBBACCCAEEAAIYAQQAAhgABCAAGEAAIIAYQAAggBBBACCCAEEEAIIAQQQAgggBBAACGAAEIAIYAAQgABhAACCAEEEAIIAQQQAgggBBBACCCAEEAIIIAQQAAhgABCAAGEAEIAAYQAAggBBBACCCAEEAIIIAQQQAgggBBAACGAEEAAIYAAQgABhAACCAEEEAIIAQQQAgggBBBACCCAEEAIIIAQQAAhgABCAAGEAEIAAYQAAggBBBACCCAEEAIIIAQQQAgggBBAACGAEEAAIYAAQgABhAACCAGEAAIIAQQQAgggBBBACCAEEEAIIIAQQAAhgABCACGAAEIAAYQAAggBBBACCAEEEAIIIAQQQAggfyL/BBgA8PgLdH0TBtkAAAAASUVORK5CYII="},threshold:{type:[Number,String],default:100},duration:{type:[Number,String],default:500},effect:{type:String,default:"ease-in-out"},isEffect:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},height:{type:[Number,String],default:"450"}},data:function(){return{isShow:!1,opacity:1,time:this.duration,loadStatus:"",isError:!1,elIndex:this.$u.guid()}},computed:{getThreshold:function(){var t=uni.upx2px(Math.abs(this.threshold));return this.threshold<0?-t:t},imgHeight:function(){return this.$u.addUnit(this.height)}},created:function(){this.observer={}},watch:{isShow:function(t){var e=this;this.isEffect&&(this.time=0,this.opacity=0,setTimeout((function(){e.time=e.duration,e.opacity=1}),30))},image:function(t){t?(this.init(),this.isError=!1):this.isError=!0}},methods:{init:function(){this.isError=!1,this.loadStatus=""},clickImg:function(){0==this.isShow||this.isError,this.$emit("click",this.index)},imgLoaded:function(){""==this.loadStatus?this.loadStatus="lazyed":"lazyed"==this.loadStatus&&(this.loadStatus="loaded",this.$emit("load",this.index))},errorImgLoaded:function(){this.$emit("error",this.index)},loadError:function(){this.isError=!0},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()}},beforeDestroy:function(){},mounted:function(){var t=this;this.$nextTick((function(){uni.$once("uOnReachBottom",(function(){t.isShow||(t.isShow=!0)}))})),setTimeout((function(){t.disconnectObserver("contentObserver");var e=uni.createIntersectionObserver(t);e.relativeToViewport({bottom:t.getThreshold}).observe(".u-lazy-item-"+t.elIndex,(function(e){e.intersectionRatio>0&&(t.isShow=!0,t.disconnectObserver("contentObserver"))})),t.contentObserver=e}),30)}};e.default=i},"3d19":function(t,e,o){"use strict";o("c975"),o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"u-swiper",props:{list:{type:Array,default:function(){return[]}},title:{type:Boolean,default:!1},indicator:{type:Object,default:function(){return{}}},borderRadius:{type:[Number,String],default:8},interval:{type:[String,Number],default:3e3},mode:{type:String,default:"round"},height:{type:[Number,String],default:250},indicatorPos:{type:String,default:"bottomCenter"},effect3d:{type:Boolean,default:!1},effect3dPreviousMargin:{type:[Number,String],default:50},autoplay:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},circular:{type:Boolean,default:!0},imgMode:{type:String,default:"aspectFill"},name:{type:String,default:"image"},bgColor:{type:String,default:"#f3f4f6"},current:{type:[Number,String],default:0},titleStyle:{type:Object,default:function(){return{}}}},watch:{list:function(t,e){t.length!==e.length&&(this.uCurrent=0)},current:function(t){this.uCurrent=t}},data:function(){return{uCurrent:this.current}},computed:{justifyContent:function(){return"topLeft"==this.indicatorPos||"bottomLeft"==this.indicatorPos?"flex-start":"topCenter"==this.indicatorPos||"bottomCenter"==this.indicatorPos?"center":"topRight"==this.indicatorPos||"bottomRight"==this.indicatorPos?"flex-end":void 0},titlePaddingBottom:function(){var t=0;return"none"==this.mode?"12rpx":(t=["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"==this.mode?"60rpx":["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"!=this.mode?"40rpx":"12rpx",t)},elCurrent:function(){return Number(this.current)}},methods:{listClick:function(t){this.$emit("click",t)},change:function(t){var e=t.detail.current;this.uCurrent=e,this.$emit("change",e)},animationfinish:function(t){}}};e.default=i},4125:function(t,e,o){"use strict";o.r(e);var i=o("5cdf"),s=o("7a7d");for(var r in s)"default"!==r&&function(t){o.d(e,t,(function(){return s[t]}))}(r);o("71f1");var n,a=o("f0c5"),l=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"71f0b7e9",null,!1,i["a"],n);e["default"]=l.exports},"59a0":function(t,e,o){"use strict";o.r(e);var i=o("b80f"),s=o("ce44");for(var r in s)"default"!==r&&function(t){o.d(e,t,(function(){return s[t]}))}(r);o("8769");var n,a=o("f0c5"),l=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"578bde3a",null,!1,i["a"],n);e["default"]=l.exports},"5cdf":function(t,e,o){"use strict";var i;o.d(e,"b",(function(){return s})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return i}));var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"u-swiper-wrap",style:{borderRadius:t.borderRadius+"rpx"}},[o("v-uni-swiper",{style:{height:t.height+"rpx",backgroundColor:t.bgColor},attrs:{current:t.elCurrent,interval:t.interval,circular:t.circular,duration:t.duration,autoplay:t.autoplay,"previous-margin":t.effect3d?t.effect3dPreviousMargin+"rpx":"0","next-margin":t.effect3d?t.effect3dPreviousMargin+"rpx":"0"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)},animationfinish:function(e){arguments[0]=e=t.$handleEvent(e),t.animationfinish.apply(void 0,arguments)}}},t._l(t.list,(function(e,i){return o("v-uni-swiper-item",{key:i,staticClass:"u-swiper-item"},[o("v-uni-view",{staticClass:"u-list-image-wrap",class:[t.uCurrent!=i?"u-list-scale":""],style:{borderRadius:t.borderRadius+"rpx",transform:t.effect3d&&t.uCurrent!=i?"scaleY(0.9)":"scaleY(1)",margin:t.effect3d&&t.uCurrent!=i?"0 20rpx":0},on:{click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.listClick(i)}}},[o("v-uni-image",{staticClass:"u-swiper-image",attrs:{src:e[t.name]||e,mode:t.imgMode}}),t.title&&e.title?o("v-uni-view",{staticClass:"u-swiper-title u-line-1",style:[{"padding-bottom":t.titlePaddingBottom},t.titleStyle]},[t._v(t._s(e.title))]):t._e()],1)],1)})),1),o("v-uni-view",{staticClass:"u-swiper-indicator",style:{top:"topLeft"==t.indicatorPos||"topCenter"==t.indicatorPos||"topRight"==t.indicatorPos?"12rpx":"auto",bottom:"bottomLeft"==t.indicatorPos||"bottomCenter"==t.indicatorPos||"bottomRight"==t.indicatorPos?"12rpx":"auto",justifyContent:t.justifyContent,padding:"0 "+(t.effect3d?"74rpx":"24rpx")}},["rect"==t.mode?t._l(t.list,(function(e,i){return o("v-uni-view",{key:i,staticClass:"u-indicator-item-rect",class:{"u-indicator-item-rect-active":i==t.uCurrent}})})):t._e(),"dot"==t.mode?t._l(t.list,(function(e,i){return o("v-uni-view",{key:i,staticClass:"u-indicator-item-dot",class:{"u-indicator-item-dot-active":i==t.uCurrent}})})):t._e(),"round"==t.mode?t._l(t.list,(function(e,i){return o("v-uni-view",{key:i,staticClass:"u-indicator-item-round",class:{"u-indicator-item-round-active":i==t.uCurrent}})})):t._e(),"number"==t.mode?[o("v-uni-view",{staticClass:"u-indicator-item-number"},[t._v(t._s(t.uCurrent+1)+"/"+t._s(t.list.length))])]:t._e()],2)],1)},r=[]},"71cd":function(t,e,o){var i=o("ed95");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("4f06").default;s("7014caca",i,!0,{sourceMap:!1,shadowMode:!1})},"71f1":function(t,e,o){"use strict";var i=o("71cd"),s=o.n(i);s.a},"7a7d":function(t,e,o){"use strict";o.r(e);var i=o("3d19"),s=o.n(i);for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=s.a},8769:function(t,e,o){"use strict";var i=o("b165"),s=o.n(i);s.a},"89ec":function(t,e,o){"use strict";var i=o("dd84"),s=o.n(i);s.a},"9c13":function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.u-wrap[data-v-62a92f18]{background-color:#eee;overflow:hidden}.u-lazy-item[data-v-62a92f18]{width:100%;-webkit-transform:transition3d(0,0,0);transform:transition3d(0,0,0);will-change:transform;display:block}',""]),t.exports=e},"9f98":function(t,e,o){"use strict";o.r(e);var i=o("3758"),s=o.n(i);for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=s.a},b165:function(t,e,o){var i=o("fa1b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("4f06").default;s("ac3595aa",i,!0,{sourceMap:!1,shadowMode:!1})},b80f:function(t,e,o){"use strict";o.d(e,"b",(function(){return s})),o.d(e,"c",(function(){return r})),o.d(e,"a",(function(){return i}));var i={uSwiper:o("4125").default,uLazyLoad:o("e11c").default,uImage:o("0fbd").default},s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"recommend"},[o("v-uni-view",{ref:"scroll",staticClass:"content"},[o("v-uni-view",{},[o("v-uni-view",{staticClass:"banner"},[o("u-swiper",{attrs:{list:t.bannerList,name:"pic","border-radius":"0"}})],1),o("v-uni-view",{staticClass:"listBox"},[o("v-uni-view",{staticClass:"title"},[t._v("推荐歌单")]),t.recommendList?o("v-uni-view",{staticClass:"d-flex justify-between flex-wrap mt-3 "},t._l(t.recommendList,(function(e){return o("v-uni-view",{staticClass:"item",staticStyle:{width:"32%"}},[o("v-uni-view",{staticClass:"w-full",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),function(){return t.handleToDetail(e)}.apply(void 0,arguments)}}},[o("u-lazy-load",{attrs:{image:e.picUrl+"??param=300x300",width:"100%",height:"238upx","border-radius":"6"}})],1),o("v-uni-view",{staticClass:"desc"},[t._v(t._s(e.name))]),o("v-uni-view",{staticClass:"listen d-flex justify-end"},[o("u-image",{attrs:{src:"/static/listen.svg",width:"30upx",mode:"widthFix","border-radius":"6"}}),o("v-uni-text",{staticClass:"ml-1",staticStyle:{"font-size":"24upx"}},[t._v(t._s(t.playCount(e.playCount))+"万")])],1)],1)})),1):t._e()],1)],1)],1)],1)},r=[]},be9f:function(t,e,o){"use strict";var i=o("4ea4");o("99af"),o("b680"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("96cf");var s=i(o("1da1")),r=i(o("f162")),n=i(o("71f8")),a={data:function(){return{bannerList:[],recommendList:null,pageIndex:0}},computed:{playCount:function(){return function(t){return(t/1e5).toFixed(2)}}},onReachBottom:function(){console.log("bottom")},mounted:function(){this.handleGetBanner(),this.handleGetRecomendList()},methods:{handleSelect:function(t){this.curCate=t},handleGetBanner:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http({url:"/music/getBannerList",method:"get"});case 2:o=e.sent,(0,n.default)(o,(function(e){t.bannerList=e.banners}));case 4:case"end":return e.stop()}}),e)})))()},handleGetRecomendList:function(){var t=this;return(0,s.default)(regeneratorRuntime.mark((function e(){var o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.showLoading({title:"加载中...."}),e.next=3,t.$http({url:"/music/getRecommendList",method:"get",data:{pageIndex:t.pageIndex,pageSize:9}});case 3:o=e.sent,(0,n.default)(o,(function(e){uni.hideLoading(),t.recommendList=t.recommendList?t.recommendList.concat(e||[]):e||[]}));case 5:case"end":return e.stop()}}),e)})))()},handleToDetail:function(t){uni.navigateTo({url:"/pages/music/Detail/Detail?id="+t.id,animationType:"pop-in",fail:function(t){console.log(t)}})},initScroll:function(){new r.default(this.$refs.scroll.$el,{scrollX:!1,scrollY:!0,probeType:3})}}};e.default=a},ce44:function(t,e,o){"use strict";o.r(e);var i=o("be9f"),s=o.n(i);for(var r in i)"default"!==r&&function(t){o.d(e,t,(function(){return i[t]}))}(r);e["default"]=s.a},dd84:function(t,e,o){var i=o("9c13");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=o("4f06").default;s("3866647c",i,!0,{sourceMap:!1,shadowMode:!1})},e11c:function(t,e,o){"use strict";o.r(e);var i=o("2ea2"),s=o("9f98");for(var r in s)"default"!==r&&function(t){o.d(e,t,(function(){return s[t]}))}(r);o("89ec");var n,a=o("f0c5"),l=Object(a["a"])(s["default"],i["b"],i["c"],!1,null,"62a92f18",null,!1,i["a"],n);e["default"]=l.exports},ed95:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.u-swiper-wrap[data-v-71f0b7e9]{position:relative;overflow:hidden;-webkit-transform:translateY(0);transform:translateY(0)}.u-swiper-image[data-v-71f0b7e9]{width:100%;will-change:transform;height:100%;display:block;pointer-events:none}.u-swiper-indicator[data-v-71f0b7e9]{padding:0 %?24?%;position:absolute;\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\nwidth:100%;z-index:1}.u-indicator-item-rect[data-v-71f0b7e9]{width:%?26?%;height:%?8?%;margin:0 %?6?%;-webkit-transition:all .5s;transition:all .5s;background-color:rgba(0,0,0,.3)}.u-indicator-item-rect-active[data-v-71f0b7e9]{background-color:hsla(0,0%,100%,.8)}.u-indicator-item-dot[data-v-71f0b7e9]{width:%?14?%;height:%?14?%;margin:0 %?6?%;border-radius:%?20?%;-webkit-transition:all .5s;transition:all .5s;background-color:rgba(0,0,0,.3)}.u-indicator-item-dot-active[data-v-71f0b7e9]{background-color:hsla(0,0%,100%,.8)}.u-indicator-item-round[data-v-71f0b7e9]{width:%?14?%;height:%?14?%;margin:0 %?6?%;border-radius:%?20?%;-webkit-transition:all .5s;transition:all .5s;background-color:rgba(0,0,0,.3)}.u-indicator-item-round-active[data-v-71f0b7e9]{width:%?34?%;background-color:hsla(0,0%,100%,.8)}.u-indicator-item-number[data-v-71f0b7e9]{padding:%?6?% %?16?%;line-height:1;background-color:rgba(0,0,0,.3);border-radius:%?100?%;font-size:%?26?%;color:hsla(0,0%,100%,.8)}.u-list-scale[data-v-71f0b7e9]{-webkit-transform-origin:center center;transform-origin:center center}.u-list-image-wrap[data-v-71f0b7e9]{width:100%;height:100%;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-transition:all .5s;transition:all .5s;overflow:hidden;box-sizing:initial;position:relative}.u-swiper-title[data-v-71f0b7e9]{position:absolute;background-color:rgba(0,0,0,.3);bottom:0;left:0;width:100%;font-size:%?28?%;padding:%?12?% %?24?%;color:hsla(0,0%,100%,.9)}.u-swiper-item[data-v-71f0b7e9]{\r\ndisplay:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;\r\noverflow:hidden;-webkit-box-align:center;-webkit-align-items:center;align-items:center}',""]),t.exports=e},f162:function(t,e,o){"use strict";o("a4d3"),o("e01a"),o("d28b"),o("c740"),o("4160"),o("c975"),o("a15b"),o("d81d"),o("13d5"),o("fb6a"),o("45fc"),o("4e82"),o("a434"),o("b680"),o("b64b"),o("131a"),o("d3b7"),o("e25e"),o("4d63"),o("ac1f"),o("25f0"),o("3ca3"),o("1276"),o("159b"),o("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.createBScroll=Qt,e.Zoom=e.Wheel=e.Slide=e.ScrollBar=e.PullUpLoad=e.PullDownRefresh=e.ObserveImage=e.ObserveDom=e.NestedScroll=e.Movable=e.MouseWheel=e.InfinityScroll=e.Indicators=e.CustomOptions=e.Behavior=e.default=void 0;
  /*!
   * better-scroll / better-scroll
   * (c) 2016-2021 ustbhuangyi
   * Released under the MIT License.
   */
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
  
  Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
  
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */
  var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},i(t,e)};function s(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}var r=function(){return r=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var s in e=arguments[o],e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},r.apply(this,arguments)};function n(t,e,o,i){function s(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,r){function n(t){try{l(i.next(t))}catch(e){r(e)}}function a(t){try{l(i["throw"](t))}catch(e){r(e)}}function l(t){t.done?o(t.value):s(t.value).then(n,a)}l((i=i.apply(t,e||[])).next())}))}function a(t,e){var o,i,s,r,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(t){return function(e){return l([t,e])}}function l(r){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(s=2&r[0]?i["return"]:r[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,i=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=e.call(t,n)}catch(a){r=[6,a],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}}function l(){for(var t=0,e=0,o=arguments.length;e<o;e++)t+=arguments[e].length;var i=Array(t),s=0;for(e=0;e<o;e++)for(var r=arguments[e],n=0,a=r.length;n<a;n++,s++)i[s]=r[n];return i}var h=[{sourceKey:"scroller.scrollBehaviorX.currentPos",key:"x"},{sourceKey:"scroller.scrollBehaviorY.currentPos",key:"y"},{sourceKey:"scroller.scrollBehaviorX.hasScroll",key:"hasHorizontalScroll"},{sourceKey:"scroller.scrollBehaviorY.hasScroll",key:"hasVerticalScroll"},{sourceKey:"scroller.scrollBehaviorX.contentSize",key:"scrollerWidth"},{sourceKey:"scroller.scrollBehaviorY.contentSize",key:"scrollerHeight"},{sourceKey:"scroller.scrollBehaviorX.maxScrollPos",key:"maxScrollX"},{sourceKey:"scroller.scrollBehaviorY.maxScrollPos",key:"maxScrollY"},{sourceKey:"scroller.scrollBehaviorX.minScrollPos",key:"minScrollX"},{sourceKey:"scroller.scrollBehaviorY.minScrollPos",key:"minScrollY"},{sourceKey:"scroller.scrollBehaviorX.movingDirection",key:"movingDirectionX"},{sourceKey:"scroller.scrollBehaviorY.movingDirection",key:"movingDirectionY"},{sourceKey:"scroller.scrollBehaviorX.direction",key:"directionX"},{sourceKey:"scroller.scrollBehaviorY.direction",key:"directionY"},{sourceKey:"scroller.actions.enabled",key:"enabled"},{sourceKey:"scroller.animater.pending",key:"pending"},{sourceKey:"scroller.animater.stop",key:"stop"},{sourceKey:"scroller.scrollTo",key:"scrollTo"},{sourceKey:"scroller.scrollBy",key:"scrollBy"},{sourceKey:"scroller.scrollToElement",key:"scrollToElement"},{sourceKey:"scroller.resetPosition",key:"resetPosition"}];function c(t){console.error("[BScroll warn]: "+t)}function p(t,e){if(!t)throw new Error("[BScroll] "+e)}var u="undefined"!==typeof window,d=u&&navigator.userAgent.toLowerCase(),f=!(!d||!/wechatdevtools/.test(d)),g=d&&d.indexOf("android")>0,v=function(){if("string"===typeof d){var t=/os (\d\d?_\d(_\d)?)/,e=t.exec(d);if(!e)return!1;var o=e[1].split("_").map((function(t){return parseInt(t,10)}));return!!(13===o[0]&&o[1]>=4)}return!1}(),y=!1;if(u){var m="test-passive";try{var k={};Object.defineProperty(k,"passive",{get:function(){y=!0}}),window.addEventListener(m,(function(){}),k)}catch(no){}}function b(){return window.performance&&window.performance.now&&window.performance.timing?window.performance.now()+window.performance.timing.navigationStart:+new Date}var T=function(t,e){for(var o in e)t[o]=e[o];return t};function S(t){return void 0===t||null===t}function A(t,e){return Math.sqrt(t*t+e*e)}function w(t,e,o){return t<e?e:t>o?o:t}function P(t,e){if(t.findIndex)return t.findIndex(e);var o=-1;return t.some((function(t,i,s){var r=e(t,i,s);if(r)return o=i,r})),o}var E=u&&document.createElement("div").style,x=function(){if(!u)return!1;for(var t=[{key:"standard",value:"transform"},{key:"webkit",value:"webkitTransform"},{key:"Moz",value:"MozTransform"},{key:"O",value:"OTransform"},{key:"ms",value:"msTransform"}],e=0,o=t;e<o.length;e++){var i=o[e];if(void 0!==E[i.value])return i.key}return!1}();function B(t){return!1===x?t:"standard"===x?"transitionEnd"===t?"transitionend":t:x+t.charAt(0).toUpperCase()+t.substr(1)}function I(t){return"string"===typeof t?document.querySelector(t):t}function C(t,e,o,i){var s=y?{passive:!1,capture:!!i}:!!i;t.addEventListener(e,o,s)}function M(t,e,o,i){t.removeEventListener(e,o,{capture:!!i})}function Y(t){var e=0,o=0;while(t)e-=t.offsetLeft,o-=t.offsetTop,t=t.offsetParent;return{left:e,top:o}}function D(t){var e=t.getBoundingClientRect();return{left:-(e.left+window.pageXOffset),top:-(e.top+window.pageYOffset)}}var O=x&&"standard"!==x?"-"+x.toLowerCase()+"-":"",X=B("transform"),H=B("transition"),z=u&&B("perspective")in E,L=u&&("ontouchstart"in window||f),R=u&&H in E,Q={transform:X,transition:H,transitionTimingFunction:B("transitionTimingFunction"),transitionDuration:B("transitionDuration"),transitionDelay:B("transitionDelay"),transformOrigin:B("transformOrigin"),transitionEnd:B("transitionEnd"),transitionProperty:B("transitionProperty")},F={touchstart:1,touchmove:1,touchend:1,touchcancel:1,mousedown:2,mousemove:2,mouseup:2};function N(t){if(t instanceof window.SVGElement){var e=t.getBoundingClientRect();return{top:e.top,left:e.left,width:e.width,height:e.height}}return{top:t.offsetTop,left:t.offsetLeft,width:t.offsetWidth,height:t.offsetHeight}}function W(t,e){for(var o in e)if(e[o].test(t[o]))return!0;return!1}var G=W;function j(t,e){var o=document.createEvent("Event");o.initEvent(e,!0,!0),o.pageX=t.pageX,o.pageY=t.pageY,t.target.dispatchEvent(o)}function Z(t,e){var o;void 0===e&&(e="click"),"mouseup"===t.type?o=t:"touchend"!==t.type&&"touchcancel"!==t.type||(o=t.changedTouches[0]);var i,s={};o&&(s.screenX=o.screenX||0,s.screenY=o.screenY||0,s.clientX=o.clientX||0,s.clientY=o.clientY||0);var n=!0,a=!0,l=t.ctrlKey,h=t.shiftKey,c=t.altKey,p=t.metaKey,u={ctrlKey:l,shiftKey:h,altKey:c,metaKey:p};if("undefined"!==typeof MouseEvent)try{i=new MouseEvent(e,T(r({bubbles:n,cancelable:a},u),s))}catch(t){d()}else d();function d(){i=document.createEvent("Event"),i.initEvent(e,n,a),T(i,s)}i.forwardedTouchEvent=!0,i._constructed=!0,t.target.dispatchEvent(i)}function U(t){Z(t,"dblclick")}function V(t,e){var o=e.firstChild;o?K(t,o):e.appendChild(t)}function K(t,e){var o=e.parentNode;o.insertBefore(t,e)}function J(t,e){t.removeChild(e)}function q(t,e){var o=new RegExp("(^|\\s)"+e+"(\\s|$)");return o.test(t.className)}function _(t){return Array.prototype.slice.call(t,0)}function $(t){return{width:t.clientWidth,height:t.clientHeight}}var tt={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(t){return 1+--t*t*t*t*t}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(t){return 1- --t*t*t*t}}},et=1e3/60,ot=u&&window;function it(){}var st=function(){return u?ot.requestAnimationFrame||ot.webkitRequestAnimationFrame||ot.mozRequestAnimationFrame||ot.oRequestAnimationFrame||function(t){return window.setTimeout(t,t.interval||et)}:it}(),rt=function(){return u?ot.cancelAnimationFrame||ot.webkitCancelAnimationFrame||ot.mozCancelAnimationFrame||ot.oCancelAnimationFrame||function(t){window.clearTimeout(t)}:it}(),nt=function(t){},at={enumerable:!0,configurable:!0,get:nt,set:nt},lt=function(t,e){for(var o=e.split("."),i=0;i<o.length-1;i++)if(t=t[o[i]],"object"!==typeof t||!t)return;var s=o.pop();return"function"===typeof t[s]?function(){return t[s].apply(t,arguments)}:t[s]},ht=function(t,e,o){for(var i,s=e.split("."),r=0;r<s.length-1;r++)i=s[r],t[i]||(t[i]={}),t=t[i];t[s.pop()]=o};function ct(t,e,o){at.get=function(){return lt(this,e)},at.set=function(t){ht(this,e,t)},Object.defineProperty(t,o,at)}var pt=function(){function t(t){this.events={},this.eventTypes={},this.registerType(t)}return t.prototype.on=function(t,e,o){return void 0===o&&(o=this),this.hasType(t),this.events[t]||(this.events[t]=[]),this.events[t].push([e,o]),this},t.prototype.once=function(t,e,o){var i=this;void 0===o&&(o=this),this.hasType(t);var s=function s(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];i.off(t,s);var a=e.apply(o,r);if(!0===a)return a};return s.fn=e,this.on(t,s),this},t.prototype.off=function(t,e){if(!t&&!e)return this.events={},this;if(t){if(this.hasType(t),!e)return this.events[t]=[],this;var o=this.events[t];if(!o)return this;var i=o.length;while(i--)(o[i][0]===e||o[i][0]&&o[i][0].fn===e)&&o.splice(i,1);return this}},t.prototype.trigger=function(t){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];this.hasType(t);var i=this.events[t];if(i)for(var s,r=i.length,n=l(i),a=0;a<r;a++){var h=n[a],c=h[0],p=h[1];if(c&&(s=c.apply(p,e),!0===s))return s}},t.prototype.registerType=function(t){var e=this;t.forEach((function(t){e.eventTypes[t]=t}))},t.prototype.destroy=function(){this.events={},this.eventTypes={}},t.prototype.hasType=function(t){var e=this.eventTypes,o=e[t]===t;o||c('EventEmitter has used unknown event type: "'+t+'", should be oneof ['+Object.keys(e).map((function(t){return JSON.stringify(t)}))+"]")},t}(),ut=function(){function t(t,e){this.wrapper=t,this.events=e,this.addDOMEvents()}return t.prototype.destroy=function(){this.removeDOMEvents(),this.events=[]},t.prototype.addDOMEvents=function(){this.handleDOMEvents(C)},t.prototype.removeDOMEvents=function(){this.handleDOMEvents(M)},t.prototype.handleDOMEvents=function(t){var e=this,o=this.wrapper;this.events.forEach((function(i){t(o,i.name,e,!!i.capture)}))},t.prototype.handleEvent=function(t){var e=t.type;this.events.some((function(o){return o.name===e&&(o.handler(t),!0)}))},t}(),dt=function(){function t(){}return t}();e.CustomOptions=dt;var ft=function(t){function e(){var e=t.call(this)||this;return e.startX=0,e.startY=0,e.scrollX=!1,e.scrollY=!0,e.freeScroll=!1,e.directionLockThreshold=0,e.eventPassthrough="",e.click=!1,e.dblclick=!1,e.tap="",e.bounce={top:!0,bottom:!0,left:!0,right:!0},e.bounceTime=800,e.momentum=!0,e.momentumLimitTime=300,e.momentumLimitDistance=15,e.swipeTime=2500,e.swipeBounceTime=500,e.deceleration=.0015,e.flickLimitTime=200,e.flickLimitDistance=100,e.resizePolling=60,e.probeType=0,e.stopPropagation=!1,e.preventDefault=!0,e.preventDefaultException={tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},e.tagException={tagName:/^TEXTAREA$/},e.HWCompositing=!0,e.useTransition=!0,e.bindToWrapper=!1,e.bindToTarget=!1,e.disableMouse=L,e.disableTouch=!L,e.autoBlur=!0,e.autoEndDistance=5,e.outOfBoundaryDampingFactor=1/3,e.specifiedIndexAsContent=0,e.quadrant=1,e}return s(e,t),e.prototype.merge=function(t){if(!t)return this;for(var e in t)"bounce"!==e?this[e]=t[e]:this.bounce=this.resolveBounce(t[e]);return this},e.prototype.process=function(){return this.translateZ=this.HWCompositing&&z?" translateZ(1px)":"",this.useTransition=this.useTransition&&R,this.preventDefault=!this.eventPassthrough&&this.preventDefault,this.scrollX="horizontal"!==this.eventPassthrough&&this.scrollX,this.scrollY="vertical"!==this.eventPassthrough&&this.scrollY,this.freeScroll=this.freeScroll&&!this.eventPassthrough,this.scrollX=!!this.freeScroll||this.scrollX,this.scrollY=!!this.freeScroll||this.scrollY,this.directionLockThreshold=this.eventPassthrough?0:this.directionLockThreshold,this},e.prototype.resolveBounce=function(t){var e,o={top:!0,right:!0,bottom:!0,left:!0},i={top:!1,right:!1,bottom:!1,left:!1};return e="object"===typeof t?T(o,t):t?o:i,e},e}(dt),gt=function(){function t(t,e){this.wrapper=t,this.options=e,this.hooks=new pt(["beforeStart","start","move","end","click"]),this.handleDOMEvents()}return t.prototype.handleDOMEvents=function(){var t=this.options,e=t.bindToWrapper,o=t.disableMouse,i=t.disableTouch,s=t.click,r=this.wrapper,n=e?r:window,a=[],l=[],h=!i,c=!o;s&&a.push({name:"click",handler:this.click.bind(this),capture:!0}),h&&(a.push({name:"touchstart",handler:this.start.bind(this)}),l.push({name:"touchmove",handler:this.move.bind(this)},{name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),c&&(a.push({name:"mousedown",handler:this.start.bind(this)}),l.push({name:"mousemove",handler:this.move.bind(this)},{name:"mouseup",handler:this.end.bind(this)})),this.wrapperEventRegister=new ut(r,a),this.targetEventRegister=new ut(n,l)},t.prototype.beforeHandler=function(t,e){var o=this.options,i=o.preventDefault,s=o.stopPropagation,r=o.preventDefaultException,n={start:function(){return i&&!W(t.target,r)},end:function(){return i&&!W(t.target,r)},move:function(){return i}};n[e]()&&t.preventDefault(),s&&t.stopPropagation()},t.prototype.setInitiated=function(t){void 0===t&&(t=0),this.initiated=t},t.prototype.start=function(t){var e=F[t.type];if(!this.initiated||this.initiated===e)if(this.setInitiated(e),G(t.target,this.options.tagException))this.setInitiated();else if((2!==e||0===t.button)&&!this.hooks.trigger(this.hooks.eventTypes.beforeStart,t)){this.beforeHandler(t,"start");var o=t.touches?t.touches[0]:t;this.pointX=o.pageX,this.pointY=o.pageY,this.hooks.trigger(this.hooks.eventTypes.start,t)}},t.prototype.move=function(t){if(F[t.type]===this.initiated){this.beforeHandler(t,"move");var e=t.touches?t.touches[0]:t,o=e.pageX-this.pointX,i=e.pageY-this.pointY;if(this.pointX=e.pageX,this.pointY=e.pageY,!this.hooks.trigger(this.hooks.eventTypes.move,{deltaX:o,deltaY:i,e:t})){var s=document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft,r=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,n=this.pointX-s,a=this.pointY-r,l=this.options.autoEndDistance;(n>document.documentElement.clientWidth-l||a>document.documentElement.clientHeight-l||n<l||a<l)&&this.end(t)}}},t.prototype.end=function(t){F[t.type]===this.initiated&&(this.setInitiated(),this.beforeHandler(t,"end"),this.hooks.trigger(this.hooks.eventTypes.end,t))},t.prototype.click=function(t){this.hooks.trigger(this.hooks.eventTypes.click,t)},t.prototype.setContent=function(t){t!==this.wrapper&&(this.wrapper=t,this.rebindDOMEvents())},t.prototype.rebindDOMEvents=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.handleDOMEvents()},t.prototype.destroy=function(){this.wrapperEventRegister.destroy(),this.targetEventRegister.destroy(),this.hooks.destroy()},t}(),vt={x:["translateX","px"],y:["translateY","px"]},yt=function(){function t(t){this.setContent(t),this.hooks=new pt(["beforeTranslate","translate"])}return t.prototype.getComputedPosition=function(){var t=window.getComputedStyle(this.content,null),e=t[Q.transform].split(")")[0].split(", "),o=+(e[12]||e[4])||0,i=+(e[13]||e[5])||0;return{x:o,y:i}},t.prototype.translate=function(t){var e=[];Object.keys(t).forEach((function(o){if(vt[o]){var i=vt[o][0];if(i){var s=vt[o][1],r=t[o];e.push(i+"("+r+s+")")}}})),this.hooks.trigger(this.hooks.eventTypes.beforeTranslate,e,t),this.style[Q.transform]=e.join(" "),this.hooks.trigger(this.hooks.eventTypes.translate,t)},t.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style)},t.prototype.destroy=function(){this.hooks.destroy()},t}(),mt=function(){function t(t,e,o){this.translater=e,this.options=o,this.timer=0,this.hooks=new pt(["move","end","beforeForceStop","forceStop","callStop","time","timeFunction"]),this.setContent(t)}return t.prototype.translate=function(t){this.translater.translate(t)},t.prototype.setPending=function(t){this.pending=t},t.prototype.setForceStopped=function(t){this.forceStopped=t},t.prototype.setCallStop=function(t){this.callStopWhenPending=t},t.prototype.setContent=function(t){this.content!==t&&(this.content=t,this.style=t.style,this.stop())},t.prototype.clearTimer=function(){this.timer&&(rt(this.timer),this.timer=0)},t.prototype.destroy=function(){this.hooks.destroy(),rt(this.timer)},t}(),kt=function(t,e,o,i){var s=function(t,e){var o=t-e,i=o>0?-1:o<0?1:0;return i},r=s(e.x,t.x),n=s(e.y,t.y),a=o.x-i.x,l=o.y-i.y;return r*a<=0&&n*l<=0},bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.startProbe=function(t,e){var o=this,i=t,s=function s(){var r=o.translater.getComputedPosition();kt(t,e,r,i)&&o.hooks.trigger(o.hooks.eventTypes.move,r),o.pending||(o.callStopWhenPending?o.callStopWhenPending=!1:o.hooks.trigger(o.hooks.eventTypes.end,r)),i=r,o.pending&&(o.timer=st(s))};this.callStopWhenPending&&this.setCallStop(!1),rt(this.timer),s()},e.prototype.transitionTime=function(t){void 0===t&&(t=0),this.style[Q.transitionDuration]=t+"ms",this.hooks.trigger(this.hooks.eventTypes.time,t)},e.prototype.transitionTimingFunction=function(t){this.style[Q.transitionTimingFunction]=t,this.hooks.trigger(this.hooks.eventTypes.timeFunction,t)},e.prototype.transitionProperty=function(){this.style[Q.transitionProperty]=Q.transform},e.prototype.move=function(t,e,o,i){this.setPending(o>0),this.transitionTimingFunction(i),this.transitionProperty(),this.transitionTime(o),this.translate(e);var s=3===this.options.probeType;o&&s&&this.startProbe(t,e),o||(this._reflow=this.content.offsetHeight,s&&this.hooks.trigger(this.hooks.eventTypes.move,e),this.hooks.trigger(this.hooks.eventTypes.end,e))},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),rt(this.timer);var e=this.translater.getComputedPosition(),o=e.x,i=e.y;this.transitionTime(),this.translate({x:o,y:i}),this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,{x:o,y:i})}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(mt),Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.move=function(t,e,o,i){if(!o)return this.translate(e),3===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.move,e),void this.hooks.trigger(this.hooks.eventTypes.end,e);this.animate(t,e,o,i)},e.prototype.animate=function(t,e,o,i){var s=this,r=b(),n=r+o,a=3===this.options.probeType,l=function l(){var h=b();if(h>=n)return s.translate(e),a&&s.hooks.trigger(s.hooks.eventTypes.move,e),void s.hooks.trigger(s.hooks.eventTypes.end,e);h=(h-r)/o;var c=i(h),p={};Object.keys(e).forEach((function(o){var i=t[o],s=e[o];p[o]=(s-i)*c+i})),s.translate(p),a&&s.hooks.trigger(s.hooks.eventTypes.move,p),s.pending&&(s.timer=st(l)),s.pending||(s.callStopWhenPending?s.callStopWhenPending=!1:s.hooks.trigger(s.hooks.eventTypes.end,e))};this.setPending(!0),this.callStopWhenPending&&this.setCallStop(!1),rt(this.timer),l()},e.prototype.doStop=function(){var t=this.pending;if(this.setForceStopped(!1),this.setCallStop(!1),t){this.setPending(!1),rt(this.timer);var e=this.translater.getComputedPosition();this.setForceStopped(!0),this.setCallStop(!0),this.hooks.trigger(this.hooks.eventTypes.forceStop,e)}return t},e.prototype.stop=function(){var t=this.doStop();t&&this.hooks.trigger(this.hooks.eventTypes.callStop)},e}(mt);function St(t,e,o){var i=o.useTransition,s={};return Object.defineProperty(s,"probeType",{enumerable:!0,configurable:!1,get:function(){return o.probeType}}),i?new bt(t,e,s):new Tt(t,e,s)}var At,wt,Pt,Et,xt=function(){function t(t,e,o){this.wrapper=t,this.options=o,this.hooks=new pt(["beforeComputeBoundary","computeBoundary","momentum","end","ignoreHasScroll"]),this.refresh(e)}return t.prototype.start=function(){this.dist=0,this.setMovingDirection(0),this.setDirection(0)},t.prototype.move=function(t){return t=this.hasScroll?t:0,this.setMovingDirection(t),this.performDampingAlgorithm(t,this.options.outOfBoundaryDampingFactor)},t.prototype.setMovingDirection=function(t){this.movingDirection=t>0?-1:t<0?1:0},t.prototype.setDirection=function(t){this.direction=t>0?-1:t<0?1:0},t.prototype.performDampingAlgorithm=function(t,e){var o=this.currentPos+t;return(o>this.minScrollPos||o<this.maxScrollPos)&&(o=o>this.minScrollPos&&this.options.bounces[0]||o<this.maxScrollPos&&this.options.bounces[1]?this.currentPos+t*e:o>this.minScrollPos?this.minScrollPos:this.maxScrollPos),o},t.prototype.end=function(t){var e={duration:0},o=Math.abs(this.currentPos-this.startPos);if(this.options.momentum&&t<this.options.momentumLimitTime&&o>this.options.momentumLimitDistance){var i=-1===this.direction&&this.options.bounces[0]||1===this.direction&&this.options.bounces[1]?this.wrapperSize:0;e=this.hasScroll?this.momentum(this.currentPos,this.startPos,t,this.maxScrollPos,this.minScrollPos,i,this.options):{destination:this.currentPos,duration:0}}else this.hooks.trigger(this.hooks.eventTypes.end,e);return e},t.prototype.momentum=function(t,e,o,i,s,r,n){void 0===n&&(n=this.options);var a=t-e,l=Math.abs(a)/o,h=n.deceleration,c=n.swipeBounceTime,p=n.swipeTime,u=Math.min(p,2*l/h),d={destination:t+l*l/h*(a<0?-1:1),duration:u,rate:15};return this.hooks.trigger(this.hooks.eventTypes.momentum,d,a),d.destination<i?(d.destination=r?Math.max(i-r/4,i-r/d.rate*l):i,d.duration=c):d.destination>s&&(d.destination=r?Math.min(s+r/4,s+r/d.rate*l):s,d.duration=c),d.destination=Math.round(d.destination),d},t.prototype.updateDirection=function(){var t=this.currentPos-this.absStartPos;this.setDirection(t)},t.prototype.refresh=function(t){var e=this.options.rect,o=e.size,i=e.position,s="static"===window.getComputedStyle(this.wrapper,null).position,r=N(this.wrapper);this.wrapperSize=this.wrapper["width"===o?"clientWidth":"clientHeight"],this.setContent(t);var n=N(this.content);this.contentSize=n[o],this.relativeOffset=n[i],s&&(this.relativeOffset-=r[i]),this.computeBoundary(),this.setDirection(0)},t.prototype.setContent=function(t){t!==this.content&&(this.content=t,this.resetState())},t.prototype.resetState=function(){this.currentPos=0,this.startPos=0,this.dist=0,this.setDirection(0),this.setMovingDirection(0),this.resetStartPos()},t.prototype.computeBoundary=function(){this.hooks.trigger(this.hooks.eventTypes.beforeComputeBoundary);var t={minScrollPos:0,maxScrollPos:this.wrapperSize-this.contentSize};t.maxScrollPos<0&&(t.maxScrollPos-=this.relativeOffset,0===this.options.specifiedIndexAsContent&&(t.minScrollPos=-this.relativeOffset)),this.hooks.trigger(this.hooks.eventTypes.computeBoundary,t),this.minScrollPos=t.minScrollPos,this.maxScrollPos=t.maxScrollPos,this.hasScroll=this.options.scrollable&&this.maxScrollPos<this.minScrollPos,!this.hasScroll&&this.minScrollPos<this.maxScrollPos&&(this.maxScrollPos=this.minScrollPos,this.contentSize=this.wrapperSize)},t.prototype.updatePosition=function(t){this.currentPos=t},t.prototype.getCurrentPos=function(){return this.currentPos},t.prototype.checkInBoundary=function(){var t=this.adjustPosition(this.currentPos),e=t===this.getCurrentPos();return{position:t,inBoundary:e}},t.prototype.adjustPosition=function(t){return this.hasScroll||this.hooks.trigger(this.hooks.eventTypes.ignoreHasScroll)?t>this.minScrollPos?t=this.minScrollPos:t<this.maxScrollPos&&(t=this.maxScrollPos):t=this.minScrollPos,t},t.prototype.updateStartPos=function(){this.startPos=this.currentPos},t.prototype.updateAbsStartPos=function(){this.absStartPos=this.currentPos},t.prototype.resetStartPos=function(){this.updateStartPos(),this.updateAbsStartPos()},t.prototype.getAbsDist=function(t){return this.dist+=t,Math.abs(this.dist)},t.prototype.destroy=function(){this.hooks.destroy()},t}();e.Behavior=xt;var Bt=(At={},At["yes"]=function(t){return!0},At["no"]=function(t){return t.preventDefault(),!1},At),It=(wt={},wt["horizontal"]=(Pt={},Pt["yes"]="horizontal",Pt["no"]="vertical",Pt),wt["vertical"]=(Et={},Et["yes"]="vertical",Et["no"]="horizontal",Et),wt),Ct=function(){function t(t,e,o){this.directionLockThreshold=t,this.freeScroll=e,this.eventPassthrough=o,this.reset()}return t.prototype.reset=function(){this.directionLocked=""},t.prototype.checkMovingDirection=function(t,e,o){return this.computeDirectionLock(t,e),this.handleEventPassthrough(o)},t.prototype.adjustDelta=function(t,e){return"horizontal"===this.directionLocked?e=0:"vertical"===this.directionLocked&&(t=0),{deltaX:t,deltaY:e}},t.prototype.computeDirectionLock=function(t,e){""!==this.directionLocked||this.freeScroll||(t>e+this.directionLockThreshold?this.directionLocked="horizontal":e>=t+this.directionLockThreshold?this.directionLocked="vertical":this.directionLocked="none")},t.prototype.handleEventPassthrough=function(t){var e=It[this.directionLocked];if(e){if(this.eventPassthrough===e["yes"])return Bt["yes"](t);if(this.eventPassthrough===e["no"])return Bt["no"](t)}return!1},t}(),Mt=function(t,e,o){return 2===o?[e,-t]:3===o?[-t,-e]:4===o?[-e,t]:[t,e]},Yt=function(){function t(t,e,o,i,s){this.hooks=new pt(["start","beforeMove","scrollStart","scroll","beforeEnd","end","scrollEnd","contentNotMoved","detectMovingDirection","coordinateTransformation"]),this.scrollBehaviorX=t,this.scrollBehaviorY=e,this.actionsHandler=o,this.animater=i,this.options=s,this.directionLockAction=new Ct(s.directionLockThreshold,s.freeScroll,s.eventPassthrough),this.enabled=!0,this.bindActionsHandler()}return t.prototype.bindActionsHandler=function(){var t=this;this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.start,(function(e){return!t.enabled||t.handleStart(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.move,(function(e){var o=e.deltaX,i=e.deltaY,s=e.e;if(!t.enabled)return!0;var r=Mt(o,i,t.options.quadrant),n=r[0],a=r[1],l={deltaX:n,deltaY:a};return t.hooks.trigger(t.hooks.eventTypes.coordinateTransformation,l),t.handleMove(l.deltaX,l.deltaY,s)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.end,(function(e){return!t.enabled||t.handleEnd(e)})),this.actionsHandler.hooks.on(this.actionsHandler.hooks.eventTypes.click,(function(e){t.enabled&&!e._constructed&&t.handleClick(e)}))},t.prototype.handleStart=function(t){var e=b();this.fingerMoved=!1,this.contentMoved=!1,this.startTime=e,this.directionLockAction.reset(),this.scrollBehaviorX.start(),this.scrollBehaviorY.start(),this.animater.doStop(),this.scrollBehaviorX.resetStartPos(),this.scrollBehaviorY.resetStartPos(),this.hooks.trigger(this.hooks.eventTypes.start,t)},t.prototype.handleMove=function(t,e,o){if(!this.hooks.trigger(this.hooks.eventTypes.beforeMove,o)){var i=this.scrollBehaviorX.getAbsDist(t),s=this.scrollBehaviorY.getAbsDist(e),r=b();if(this.checkMomentum(i,s,r))return!0;if(this.directionLockAction.checkMovingDirection(i,s,o))return this.actionsHandler.setInitiated(),!0;var n=this.directionLockAction.adjustDelta(t,e),a=this.scrollBehaviorX.getCurrentPos(),l=this.scrollBehaviorX.move(n.deltaX),h=this.scrollBehaviorY.getCurrentPos(),c=this.scrollBehaviorY.move(n.deltaY);if(!this.hooks.trigger(this.hooks.eventTypes.detectMovingDirection)){this.fingerMoved||(this.fingerMoved=!0);var p=l!==a||c!==h;this.contentMoved||p||this.hooks.trigger(this.hooks.eventTypes.contentNotMoved),!this.contentMoved&&p&&(this.contentMoved=!0,this.hooks.trigger(this.hooks.eventTypes.scrollStart)),this.contentMoved&&p&&(this.animater.translate({x:l,y:c}),this.dispatchScroll(r))}}},t.prototype.dispatchScroll=function(t){t-this.startTime>this.options.momentumLimitTime&&(this.startTime=t,this.scrollBehaviorX.updateStartPos(),this.scrollBehaviorY.updateStartPos(),1===this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())),this.options.probeType>1&&this.hooks.trigger(this.hooks.eventTypes.scroll,this.getCurrentPos())},t.prototype.checkMomentum=function(t,e,o){return o-this.endTime>this.options.momentumLimitTime&&e<this.options.momentumLimitDistance&&t<this.options.momentumLimitDistance},t.prototype.handleEnd=function(t){if(!this.hooks.trigger(this.hooks.eventTypes.beforeEnd,t)){var e=this.getCurrentPos();if(this.scrollBehaviorX.updateDirection(),this.scrollBehaviorY.updateDirection(),this.hooks.trigger(this.hooks.eventTypes.end,t,e))return!0;e=this.ensureIntegerPos(e),this.animater.translate(e),this.endTime=b();var o=this.endTime-this.startTime;this.hooks.trigger(this.hooks.eventTypes.scrollEnd,e,o)}},t.prototype.ensureIntegerPos=function(t){this.ensuringInteger=!0;var e=t.x,o=t.y,i=this.scrollBehaviorX,s=i.minScrollPos,r=i.maxScrollPos,n=this.scrollBehaviorY,a=n.minScrollPos,l=n.maxScrollPos;return e=e>0?Math.ceil(e):Math.floor(e),o=o>0?Math.ceil(o):Math.floor(o),e=w(e,r,s),o=w(o,l,a),{x:e,y:o}},t.prototype.handleClick=function(t){W(t.target,this.options.preventDefaultException)||(t.preventDefault(),t.stopPropagation())},t.prototype.getCurrentPos=function(){return{x:this.scrollBehaviorX.getCurrentPos(),y:this.scrollBehaviorY.getCurrentPos()}},t.prototype.refresh=function(){this.endTime=0},t.prototype.destroy=function(){this.hooks.destroy()},t}();function Dt(t){var e=["click","bindToWrapper","disableMouse","disableTouch","preventDefault","stopPropagation","tagException","preventDefaultException","autoEndDistance"].reduce((function(e,o){return e[o]=t[o],e}),{});return e}function Ot(t,e,o,i){var s=["momentum","momentumLimitTime","momentumLimitDistance","deceleration","swipeBounceTime","swipeTime","outOfBoundaryDampingFactor","specifiedIndexAsContent"].reduce((function(e,o){return e[o]=t[o],e}),{});return s.scrollable=!!t[e],s.bounces=o,s.rect=i,s}function Xt(t,e,o){o.forEach((function(o){var i,s;"string"===typeof o?i=s=o:(i=o.source,s=o.target),t.on(i,(function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.trigger.apply(e,l([s],t))}))}))}function Ht(t,e){for(var o=Object.keys(t),i=0,s=o;i<s.length;i++){var r=s[i];if(t[r]!==e[r])return!1}return!0}var zt=1,Lt=function(){function t(t,e,o){this.wrapper=t,this.content=e,this.resizeTimeout=0,this.hooks=new pt(["beforeStart","beforeMove","beforeScrollStart","scrollStart","scroll","beforeEnd","scrollEnd","resize","touchEnd","end","flick","scrollCancel","momentum","scrollTo","minDistanceScroll","scrollToElement","beforeRefresh"]),this.options=o;var i=this.options.bounce,s=i.left,r=i.right,n=i.top,a=i.bottom;this.scrollBehaviorX=new xt(t,e,Ot(o,"scrollX",[s,r],{size:"width",position:"left"})),this.scrollBehaviorY=new xt(t,e,Ot(o,"scrollY",[n,a],{size:"height",position:"top"})),this.translater=new yt(this.content),this.animater=St(this.content,this.translater,this.options),this.actionsHandler=new gt(this.options.bindToTarget?this.content:t,Dt(this.options)),this.actions=new Yt(this.scrollBehaviorX,this.scrollBehaviorY,this.actionsHandler,this.animater,this.options);var l=this.resize.bind(this);this.resizeRegister=new ut(window,[{name:"orientationchange",handler:l},{name:"resize",handler:l}]),this.registerTransitionEnd(),this.init()}return t.prototype.init=function(){var t=this;this.bindTranslater(),this.bindAnimater(),this.bindActions(),this.hooks.on(this.hooks.eventTypes.scrollEnd,(function(){t.togglePointerEvents(!0)}))},t.prototype.registerTransitionEnd=function(){this.transitionEndRegister=new ut(this.content,[{name:Q.transitionEnd,handler:this.transitionEnd.bind(this)}])},t.prototype.bindTranslater=function(){var t=this,e=this.translater.hooks;e.on(e.eventTypes.beforeTranslate,(function(e){t.options.translateZ&&e.push(t.options.translateZ)})),e.on(e.eventTypes.translate,(function(e){var o=t.getCurrentPos();t.updatePositions(e),!0!==t.actions.ensuringInteger?e.x===o.x&&e.y===o.y||t.togglePointerEvents(!1):t.actions.ensuringInteger=!1}))},t.prototype.bindAnimater=function(){var t=this;this.animater.hooks.on(this.animater.hooks.eventTypes.end,(function(e){t.resetPosition(t.options.bounceTime)||(t.animater.setPending(!1),t.hooks.trigger(t.hooks.eventTypes.scrollEnd,e))})),Xt(this.animater.hooks,this.hooks,[{source:this.animater.hooks.eventTypes.move,target:this.hooks.eventTypes.scroll},{source:this.animater.hooks.eventTypes.forceStop,target:this.hooks.eventTypes.scrollEnd}])},t.prototype.bindActions=function(){var t=this,e=this.actions;Xt(e.hooks,this.hooks,[{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeStart},{source:e.hooks.eventTypes.start,target:this.hooks.eventTypes.beforeScrollStart},{source:e.hooks.eventTypes.beforeMove,target:this.hooks.eventTypes.beforeMove},{source:e.hooks.eventTypes.scrollStart,target:this.hooks.eventTypes.scrollStart},{source:e.hooks.eventTypes.scroll,target:this.hooks.eventTypes.scroll},{source:e.hooks.eventTypes.beforeEnd,target:this.hooks.eventTypes.beforeEnd}]),e.hooks.on(e.hooks.eventTypes.end,(function(o,i){return t.hooks.trigger(t.hooks.eventTypes.touchEnd,i),!!t.hooks.trigger(t.hooks.eventTypes.end,i)||(!(e.fingerMoved||(t.hooks.trigger(t.hooks.eventTypes.scrollCancel),!t.checkClick(o)))||(t.resetPosition(t.options.bounceTime,tt.bounce)?(t.animater.setForceStopped(!1),!0):void 0))})),e.hooks.on(e.hooks.eventTypes.scrollEnd,(function(o,i){var s=Math.abs(o.x-t.scrollBehaviorX.startPos),r=Math.abs(o.y-t.scrollBehaviorY.startPos);if(t.checkFlick(i,s,r))return t.animater.setForceStopped(!1),void t.hooks.trigger(t.hooks.eventTypes.flick);t.momentum(o,i)?t.animater.setForceStopped(!1):(e.contentMoved&&t.hooks.trigger(t.hooks.eventTypes.scrollEnd,o),t.animater.forceStopped&&t.animater.setForceStopped(!1))}))},t.prototype.checkFlick=function(t,e,o){var i=1;if(this.hooks.events.flick.length>1&&t<this.options.flickLimitTime&&e<this.options.flickLimitDistance&&o<this.options.flickLimitDistance&&(o>i||e>i))return!0},t.prototype.momentum=function(t,e){var o={time:0,easing:tt.swiper,newX:t.x,newY:t.y},i=this.scrollBehaviorX.end(e),s=this.scrollBehaviorY.end(e);if(o.newX=S(i.destination)?o.newX:i.destination,o.newY=S(s.destination)?o.newY:s.destination,o.time=Math.max(i.duration,s.duration),this.hooks.trigger(this.hooks.eventTypes.momentum,o,this),o.newX!==t.x||o.newY!==t.y)return(o.newX>this.scrollBehaviorX.minScrollPos||o.newX<this.scrollBehaviorX.maxScrollPos||o.newY>this.scrollBehaviorY.minScrollPos||o.newY<this.scrollBehaviorY.maxScrollPos)&&(o.easing=tt.swipeBounce),this.scrollTo(o.newX,o.newY,o.time,o.easing),!0},t.prototype.checkClick=function(t){var e={preventClick:this.animater.forceStopped};if(this.hooks.trigger(this.hooks.eventTypes.checkClick))return this.animater.setForceStopped(!1),!0;if(!e.preventClick){var o=this.options.dblclick,i=!1;if(o&&this.lastClickTime){var s=o.delay,r=void 0===s?300:s;b()-this.lastClickTime<r&&(i=!0,U(t))}return this.options.tap&&j(t,this.options.tap),this.options.click&&!W(t.target,this.options.preventDefaultException)&&Z(t),this.lastClickTime=i?null:b(),!0}return!1},t.prototype.resize=function(){var t=this;this.actions.enabled&&(g&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((function(){t.hooks.trigger(t.hooks.eventTypes.resize)}),this.options.resizePolling))},t.prototype.transitionEnd=function(t){if(t.target===this.content&&this.animater.pending){var e=this.animater;e.transitionTime(),this.resetPosition(this.options.bounceTime,tt.bounce)||(this.animater.setPending(!1),3!==this.options.probeType&&this.hooks.trigger(this.hooks.eventTypes.scrollEnd,this.getCurrentPos()))}},t.prototype.togglePointerEvents=function(t){void 0===t&&(t=!0);for(var e=this.content.children.length?this.content.children:[this.content],o=t?"auto":"none",i=0;i<e.length;i++){var s=e[i];s.isBScrollContainer||(s.style.pointerEvents=o)}},t.prototype.refresh=function(t){var e=this.setContent(t);this.hooks.trigger(this.hooks.eventTypes.beforeRefresh),this.scrollBehaviorX.refresh(t),this.scrollBehaviorY.refresh(t),e&&(this.translater.setContent(t),this.animater.setContent(t),this.transitionEndRegister.destroy(),this.registerTransitionEnd(),this.options.bindToTarget&&this.actionsHandler.setContent(t)),this.actions.refresh(),this.wrapperOffset=Y(this.wrapper)},t.prototype.setContent=function(t){var e=t!==this.content;return e&&(this.content=t),e},t.prototype.scrollBy=function(t,e,o,i){void 0===o&&(o=0);var s=this.getCurrentPos(),r=s.x,n=s.y;i=i||tt.bounce,t+=r,e+=n,this.scrollTo(t,e,o,i)},t.prototype.scrollTo=function(t,e,o,i,s){void 0===o&&(o=0),void 0===i&&(i=tt.bounce),void 0===s&&(s={start:{},end:{}});var n=this.options.useTransition?i.style:i.fn,a=this.getCurrentPos(),l=r({x:a.x,y:a.y},s.start),h=r({x:t,y:e},s.end);if(this.hooks.trigger(this.hooks.eventTypes.scrollTo,h),!Ht(l,h)){var c=Math.abs(h.x-l.x),p=Math.abs(h.y-l.y);c<zt&&p<zt&&(o=0,this.hooks.trigger(this.hooks.eventTypes.minDistanceScroll)),this.animater.move(l,h,o,n)}},t.prototype.scrollToElement=function(t,e,o,i,s){var r=I(t),n=Y(r),a=function(t,e,o){return"number"===typeof t?t:t?Math.round(e/2-o/2):0};o=a(o,r.offsetWidth,this.wrapper.offsetWidth),i=a(i,r.offsetHeight,this.wrapper.offsetHeight);var l=function(t,e,o,i){return t-=e,t=i.adjustPosition(t-o),t};n.left=l(n.left,this.wrapperOffset.left,o,this.scrollBehaviorX),n.top=l(n.top,this.wrapperOffset.top,i,this.scrollBehaviorY),this.hooks.trigger(this.hooks.eventTypes.scrollToElement,r,n)||this.scrollTo(n.left,n.top,e,s)},t.prototype.resetPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=tt.bounce);var o=this.scrollBehaviorX.checkInBoundary(),i=o.position,s=o.inBoundary,r=this.scrollBehaviorY.checkInBoundary(),n=r.position,a=r.inBoundary;return(!s||!a)&&(v&&this.reflow(),this.scrollTo(i,n,t,e),!0)},t.prototype.reflow=function(){this._reflow=this.content.offsetHeight},t.prototype.updatePositions=function(t){this.scrollBehaviorX.updatePosition(t.x),this.scrollBehaviorY.updatePosition(t.y)},t.prototype.getCurrentPos=function(){return this.actions.getCurrentPos()},t.prototype.enable=function(){this.actions.enabled=!0},t.prototype.disable=function(){rt(this.animater.timer),this.actions.enabled=!1},t.prototype.destroy=function(){var t=this,e=["resizeRegister","transitionEndRegister","actionsHandler","actions","hooks","animater","translater","scrollBehaviorX","scrollBehaviorY"];e.forEach((function(e){return t[e].destroy()}))},t}(),Rt=function(t){function e(e,o){var i=t.call(this,["refresh","contentChanged","enable","disable","beforeScrollStart","scrollStart","scroll","scrollEnd","scrollCancel","touchEnd","flick","destroy"])||this,s=I(e);return s?(i.plugins={},i.options=(new ft).merge(o).process(),i.setContent(s).valid?(i.hooks=new pt(["refresh","enable","disable","destroy","beforeInitialScrollTo","contentChanged"]),i.init(s),i):i):(c("Can not resolve the wrapper DOM."),i)}return s(e,t),e.use=function(t){var o=t.pluginName,i=e.plugins.some((function(e){return t===e.ctor}));return i?e:S(o)?(c("Plugin Class must specify plugin's name in static property by 'pluginName' field."),e):(e.pluginsMap[o]=!0,e.plugins.push({name:o,applyOrder:t.applyOrder,ctor:t}),e)},e.prototype.setContent=function(t){var e=!1,o=!0,i=t.children[this.options.specifiedIndexAsContent];return i?(e=this.content!==i,e&&(this.content=i)):(c("The wrapper need at least one child element to be content element to scroll."),o=!1),{valid:o,contentChanged:e}},e.prototype.init=function(t){var e=this;this.wrapper=t,t.isBScrollContainer=!0,this.scroller=new Lt(t,this.content,this.options),this.scroller.hooks.on(this.scroller.hooks.eventTypes.resize,(function(){e.refresh()})),this.eventBubbling(),this.handleAutoBlur(),this.enable(),this.proxy(h),this.applyPlugins(),this.refreshWithoutReset(this.content);var o=this.options,i=o.startX,s=o.startY,r={x:i,y:s};this.hooks.trigger(this.hooks.eventTypes.beforeInitialScrollTo,r)||this.scroller.scrollTo(r.x,r.y)},e.prototype.applyPlugins=function(){var t=this,o=this.options;e.plugins.sort((function(t,e){var o,i=(o={},o["pre"]=-1,o["post"]=1,o),s=t.applyOrder?i[t.applyOrder]:0,r=e.applyOrder?i[e.applyOrder]:0;return s-r})).forEach((function(e){var i=e.ctor;o[e.name]&&"function"===typeof i&&(t.plugins[e.name]=new i(t))}))},e.prototype.handleAutoBlur=function(){this.options.autoBlur&&this.on(this.eventTypes.beforeScrollStart,(function(){var t=document.activeElement;!t||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName||t.blur()}))},e.prototype.eventBubbling=function(){Xt(this.scroller.hooks,this,[this.eventTypes.beforeScrollStart,this.eventTypes.scrollStart,this.eventTypes.scroll,this.eventTypes.scrollEnd,this.eventTypes.scrollCancel,this.eventTypes.touchEnd,this.eventTypes.flick])},e.prototype.refreshWithoutReset=function(t){this.scroller.refresh(t),this.hooks.trigger(this.hooks.eventTypes.refresh,t),this.trigger(this.eventTypes.refresh,t)},e.prototype.proxy=function(t){var e=this;t.forEach((function(t){var o=t.key,i=t.sourceKey;ct(e,i,o)}))},e.prototype.refresh=function(){var t=this.setContent(this.wrapper),e=t.contentChanged,o=t.valid;if(o){var i=this.content;this.refreshWithoutReset(i),e&&(this.hooks.trigger(this.hooks.eventTypes.contentChanged,i),this.trigger(this.eventTypes.contentChanged,i)),this.scroller.resetPosition()}},e.prototype.enable=function(){this.scroller.enable(),this.hooks.trigger(this.hooks.eventTypes.enable),this.trigger(this.eventTypes.enable)},e.prototype.disable=function(){this.scroller.disable(),this.hooks.trigger(this.hooks.eventTypes.disable),this.trigger(this.eventTypes.disable)},e.prototype.destroy=function(){this.hooks.trigger(this.hooks.eventTypes.destroy),this.trigger(this.eventTypes.destroy),this.scroller.destroy()},e.prototype.eventRegister=function(t){this.registerType(t)},e.plugins=[],e.pluginsMap={},e}(pt);function Qt(t,e){var o=new Rt(t,e);return o}Qt.use=Rt.use,Qt.plugins=Rt.plugins,Qt.pluginsMap=Rt.pluginsMap;var Ft=Qt,Nt=function(){function t(t){this.scroll=t,this.wheelEndTimer=0,this.wheelMoveTimer=0,this.wheelStart=!1,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.registerEvent()},t.prototype.handleBScroll=function(){this.scroll.registerType(["alterOptions","mousewheelStart","mousewheelMove","mousewheelEnd"])},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.mouseWheel?{}:this.scroll.options.mouseWheel,e={speed:20,invert:!1,easeTime:300,discreteTime:400,throttleTime:0,dampingFactor:.1};this.mouseWheelOpt=T(e,t)},t.prototype.handleHooks=function(){this.hooksFn=[],this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},t.prototype.registerEvent=function(){this.eventRegister=new ut(this.scroll.scroller.wrapper,[{name:"wheel",handler:this.wheelHandler.bind(this)},{name:"mousewheel",handler:this.wheelHandler.bind(this)},{name:"DOMMouseScroll",handler:this.wheelHandler.bind(this)}])},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.wheelHandler=function(t){if(this.scroll.enabled){this.beforeHandler(t),this.wheelStart||(this.wheelStartHandler(t),this.wheelStart=!0);var e=this.getWheelDelta(t);this.wheelMoveHandler(e),this.wheelEndDetector(e)}},t.prototype.wheelStartHandler=function(t){this.cleanCache();var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY;o.setMovingDirection(0),i.setMovingDirection(0),o.setDirection(0),i.setDirection(0),this.scroll.trigger(this.scroll.eventTypes.alterOptions,this.mouseWheelOpt),this.scroll.trigger(this.scroll.eventTypes.mousewheelStart)},t.prototype.cleanCache=function(){this.deltaCache=[]},t.prototype.wheelMoveHandler=function(t){var e=this,o=this.mouseWheelOpt,i=o.throttleTime,s=o.dampingFactor;if(i&&this.wheelMoveTimer)this.deltaCache.push(t);else{var r=this.deltaCache.reduce((function(t,e){return{x:t.x+e.x,y:t.y+e.y}}),{x:0,y:0});this.cleanCache();var n=this.scroll.scroller,a=n.scrollBehaviorX,l=n.scrollBehaviorY;a.setMovingDirection(-t.directionX),l.setMovingDirection(-t.directionY),a.setDirection(t.x),l.setDirection(t.y);var h=a.performDampingAlgorithm(Math.round(t.x)+r.x,s),c=l.performDampingAlgorithm(Math.round(t.y)+r.x,s);if(!this.scroll.trigger(this.scroll.eventTypes.mousewheelMove,{x:h,y:c})){var p=this.getEaseTime();h===this.scroll.x&&c===this.scroll.y||this.scroll.scrollTo(h,c,p)}i&&(this.wheelMoveTimer=window.setTimeout((function(){e.wheelMoveTimer=0}),i))}},t.prototype.wheelEndDetector=function(t){var e=this;window.clearTimeout(this.wheelEndTimer),this.wheelEndTimer=window.setTimeout((function(){e.wheelStart=!1,window.clearTimeout(e.wheelMoveTimer),e.wheelMoveTimer=0,e.scroll.trigger(e.scroll.eventTypes.mousewheelEnd,t)}),this.mouseWheelOpt.discreteTime)},t.prototype.getWheelDelta=function(t){var e=this.mouseWheelOpt,o=e.speed,i=e.invert,s=0,r=0,n=i?-1:1;switch(!0){case"deltaX"in t:1===t.deltaMode?(s=-t.deltaX*o,r=-t.deltaY*o):(s=-t.deltaX,r=-t.deltaY);break;case"wheelDeltaX"in t:s=t.wheelDeltaX/120*o,r=t.wheelDeltaY/120*o;break;case"wheelDelta"in t:s=r=t.wheelDelta/120*o;break;case"detail"in t:s=r=-t.detail/3*o;break}s*=n,r*=n,this.scroll.hasVerticalScroll||(Math.abs(r)>Math.abs(s)&&(s=r),r=0),this.scroll.hasHorizontalScroll||(s=0);var a=s>0?-1:s<0?1:0,l=r>0?-1:r<0?1:0;return{x:s,y:r,directionX:a,directionY:l}},t.prototype.beforeHandler=function(t){var e=this.scroll.options,o=e.preventDefault,i=e.stopPropagation,s=e.preventDefaultException;o&&!W(t.target,s)&&t.preventDefault(),i&&t.stopPropagation()},t.prototype.getEaseTime=function(){var t=100,e=this.mouseWheelOpt.easeTime;return e<t&&c("easeTime should be greater than 100.If mouseWheel easeTime is too small,scrollEnd will be triggered many times."),Math.max(e,t)},t.prototype.destroy=function(){this.eventRegister.destroy(),window.clearTimeout(this.wheelEndTimer),window.clearTimeout(this.wheelMoveTimer),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)}))},t.pluginName="mouseWheel",t.applyOrder="pre",t}();e.MouseWheel=Nt;var Wt=function(){function t(t){this.scroll=t,this.stopObserver=!1,this.init()}return t.prototype.init=function(){this.handleMutationObserver(),this.handleHooks()},t.prototype.handleMutationObserver=function(){var t=this;if("undefined"!==typeof MutationObserver){var e=0;this.observer=new MutationObserver((function(o){t.mutationObserverHandler(o,e)})),this.startObserve(this.observer)}else this.checkDOMUpdate()},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[],this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){t.stopObserve(),t.handleMutationObserver()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.enable,(function(){t.stopObserver&&t.handleMutationObserver()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.disable,(function(){t.stopObserve()})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,(function(){t.destroy()}))},t.prototype.mutationObserverHandler=function(t,e){var o=this;if(!this.shouldNotRefresh()){for(var i=!1,s=!1,r=0;r<t.length;r++){var n=t[r];if("attributes"!==n.type){i=!0;break}if(n.target!==this.scroll.scroller.content){s=!0;break}}i?this.scroll.refresh():s&&(clearTimeout(e),e=window.setTimeout((function(){o.shouldNotRefresh()||o.scroll.refresh()}),60))}},t.prototype.startObserve=function(t){var e={attributes:!0,childList:!0,subtree:!0};t.observe(this.scroll.scroller.content,e)},t.prototype.shouldNotRefresh=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY,i=e.currentPos>e.minScrollPos||e.currentPos<e.maxScrollPos||o.currentPos>o.minScrollPos||o.currentPos<o.maxScrollPos;return t.animater.pending||i},t.prototype.checkDOMUpdate=function(){var t=this,e=this.scroll.scroller.content,o=N(e),i=o.width,s=o.height,r=function(){if(!t.stopObserver){o=N(e);var r=o.width,a=o.height;i===r&&s===a||t.scroll.refresh(),i=r,s=a,n()}},n=function(){setTimeout((function(){r()}),1e3)};n()},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.stopObserve=function(){this.stopObserver=!0,this.observer&&this.observer.disconnect()},t.prototype.destroy=function(){this.stopObserve(),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t.pluginName="observeDOM",t}();e.ObserveDom=Wt;var Gt="plugins.pullDownRefresh",jt=[{key:"finishPullDown",name:"finishPullDown"},{key:"openPullDown",name:"openPullDown"},{key:"closePullDown",name:"closePullDown"},{key:"autoPullDownRefresh",name:"autoPullDownRefresh"}],Zt=jt.map((function(t){return{key:t.key,sourceKey:Gt+"."+t.name}})),Ut="pullingDown",Vt="enterThreshold",Kt="leaveThreshold",Jt=function(){function t(t){this.scroll=t,this.pulling=0,this.thresholdBoundary=0,this.init()}return t.prototype.setPulling=function(t){this.pulling=t},t.prototype.setThresholdBoundary=function(t){this.thresholdBoundary=t},t.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullDownRefresh),this.handleHooks(),this.watch()},t.prototype.handleBScroll=function(){this.scroll.registerType([Ut,Vt,Kt]),this.scroll.proxy(Zt)},t.prototype.handleOptions=function(t){void 0===t&&(t={}),t=!0===t?{}:t;var e={threshold:90,stop:40};this.options=T(e,t),this.scroll.options.probeType=3},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,o=e.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY=o.minScrollPos,this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){t.finishPullDown()})),this.registerHooks(o.hooks,o.hooks.eventTypes.computeBoundary,(function(e){e.maxScrollPos>0&&(e.maxScrollPos=-1),e.minScrollPos=t.currentMinScrollY})),this.hasMouseWheelPlugin()&&(this.registerHooks(this.scroll,this.scroll.eventTypes.alterOptions,(function(t){var e=300,o=350;t.discreteTime=e,t.easeTime=o})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(){e.hooks.trigger(e.hooks.eventTypes.end)})))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.hasMouseWheelPlugin=function(){return!!this.scroll.eventTypes.alterOptions},t.prototype.watch=function(){var t=this.scroll.scroller;this.watching=!0,this.registerHooks(t.hooks,t.hooks.eventTypes.end,this.checkPullDown),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollStart,this.resetStateBeforeScrollStart),this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},t.prototype.resetStateBeforeScrollStart=function(){this.isFetchingStatus()||(this.setPulling(1),this.setThresholdBoundary(0))},t.prototype.checkLocationOfThresholdBoundary=function(){if(1===this.pulling){var t=this.scroll,e=1!==this.thresholdBoundary&&this.locateInsideThresholdBoundary(),o=2!==this.thresholdBoundary&&!this.locateInsideThresholdBoundary();e&&(this.setThresholdBoundary(1),t.trigger(Vt)),o&&(this.setThresholdBoundary(2),t.trigger(Kt))}},t.prototype.locateInsideThresholdBoundary=function(){return this.scroll.y<=this.options.threshold},t.prototype.unwatch=function(){var t=this.scroll,e=t.scroller;this.watching=!1,e.hooks.off(e.hooks.eventTypes.end,this.checkPullDown),t.off(t.eventTypes.scrollStart,this.resetStateBeforeScrollStart),t.off(t.eventTypes.scroll,this.checkLocationOfThresholdBoundary),this.hasMouseWheelPlugin()&&t.off(t.eventTypes.mousewheelStart,this.resetStateBeforeScrollStart)},t.prototype.checkPullDown=function(){var t=this.options,e=t.threshold,o=t.stop;return!(this.scroll.y<e)&&(1===this.pulling&&(this.modifyBehaviorYBoundary(o),this.setPulling(2),this.scroll.trigger(Ut)),this.scroll.scrollTo(this.scroll.x,o,this.scroll.options.bounceTime,tt.bounce),this.isFetchingStatus())},t.prototype.isFetchingStatus=function(){return 2===this.pulling},t.prototype.modifyBehaviorYBoundary=function(t){var e=this.scroll.scroller.scrollBehaviorY;this.cachedOriginanMinScrollY=e.minScrollPos,this.currentMinScrollY=t,e.computeBoundary()},t.prototype.finishPullDown=function(){if(this.isFetchingStatus()){var t=this.scroll.scroller.scrollBehaviorY;this.currentMinScrollY=this.cachedOriginanMinScrollY,t.computeBoundary(),this.setPulling(0),this.scroll.resetPosition(this.scroll.options.bounceTime,tt.bounce)}},t.prototype.openPullDown=function(t){void 0===t&&(t={}),this.handleOptions(t),this.watching||this.watch()},t.prototype.closePullDown=function(){this.unwatch()},t.prototype.autoPullDownRefresh=function(){var t=this.options,e=t.threshold,o=t.stop;!this.isFetchingStatus()&&this.watching&&(this.modifyBehaviorYBoundary(o),this.scroll.trigger(this.scroll.eventTypes.scrollStart),this.scroll.scrollTo(this.scroll.x,e),this.setPulling(2),this.scroll.trigger(Ut),this.scroll.scrollTo(this.scroll.x,o,this.scroll.options.bounceTime,tt.bounce))},t.pluginName="pullDownRefresh",t}();e.PullDownRefresh=Jt;var qt="plugins.pullUpLoad",_t=[{key:"finishPullUp",name:"finishPullUp"},{key:"openPullUp",name:"openPullUp"},{key:"closePullUp",name:"closePullUp"},{key:"autoPullUpLoad",name:"autoPullUpLoad"}],$t=_t.map((function(t){return{key:t.key,sourceKey:qt+"."+t.name}})),te="pullingUp",ee=function(){function t(t){this.scroll=t,this.pulling=!1,this.watching=!1,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(this.scroll.options.pullUpLoad),this.handleHooks(),this.watch()},t.prototype.handleBScroll=function(){this.scroll.registerType([te]),this.scroll.proxy($t)},t.prototype.handleOptions=function(t){void 0===t&&(t={}),t=!0===t?{}:t;var e={threshold:0};this.options=T(e,t),this.scroll.options.probeType=3},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller.scrollBehaviorY;this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.contentChanged,(function(){t.finishPullUp()})),this.registerHooks(e.hooks,e.hooks.eventTypes.computeBoundary,(function(t){t.maxScrollPos>0&&(t.maxScrollPos=-1)}))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.watch=function(){this.watching||(this.watching=!0,this.registerHooks(this.scroll,this.scroll.eventTypes.scroll,this.checkPullUp))},t.prototype.unwatch=function(){this.watching=!1,this.scroll.off(this.scroll.eventTypes.scroll,this.checkPullUp)},t.prototype.checkPullUp=function(t){var e=this,o=this.options.threshold;1===this.scroll.movingDirectionY&&t.y<=this.scroll.maxScrollY+o&&(this.pulling=!0,this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){e.pulling=!1})),this.unwatch(),this.scroll.trigger(te))},t.prototype.finishPullUp=function(){var t=this;this.scroll.scroller.scrollBehaviorY.setMovingDirection(0),this.pulling?this.scroll.once(this.scroll.eventTypes.scrollEnd,(function(){t.watch()})):this.watch()},t.prototype.openPullUp=function(t){void 0===t&&(t={}),this.handleOptions(t),this.watch()},t.prototype.closePullUp=function(){this.unwatch()},t.prototype.autoPullUpLoad=function(){var t=this.options.threshold,e=this.scroll.scroller.scrollBehaviorY;if(!this.pulling&&this.watching){var o=-1,i=e.maxScrollPos+t+o;this.scroll.scroller.scrollBehaviorY.setMovingDirection(o),this.scroll.scrollTo(this.scroll.x,i,this.scroll.options.bounceTime)}},t.pluginName="pullUpLoad",t}();e.PullUpLoad=ee;var oe=function(){function t(t,e){this.indicator=t,this.options=e,this.hooks=new pt(["touchStart","touchMove","touchEnd"]),this.registerEvents()}return t.prototype.registerEvents=function(){var t=this.options,e=t.disableMouse,o=t.disableTouch,i=[],s=[],r=[];e||(i.push({name:"mousedown",handler:this.start.bind(this)}),s.push({name:"mousemove",handler:this.move.bind(this)}),r.push({name:"mouseup",handler:this.end.bind(this)})),o||(i.push({name:"touchstart",handler:this.start.bind(this)}),s.push({name:"touchmove",handler:this.move.bind(this)}),r.push({name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),this.startEventRegister=new ut(this.indicator.indicatorEl,i),this.moveEventRegister=new ut(window,s),this.endEventRegister=new ut(window,r)},t.prototype.BScrollIsDisabled=function(){return!this.indicator.scroll.enabled},t.prototype.start=function(t){if(!this.BScrollIsDisabled()){var e=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.initiated=!0,this.lastPoint=e[this.indicator.keysMap.point],this.hooks.trigger(this.hooks.eventTypes.touchStart)}},t.prototype.move=function(t){if(this.initiated){var e=t.touches?t.touches[0]:t,o=e[this.indicator.keysMap.point];t.preventDefault(),t.stopPropagation();var i=o-this.lastPoint;this.lastPoint=o,this.hooks.trigger(this.hooks.eventTypes.touchMove,i)}},t.prototype.end=function(t){this.initiated&&(this.initiated=!1,t.preventDefault(),t.stopPropagation(),this.hooks.trigger(this.hooks.eventTypes.touchEnd))},t.prototype.destroy=function(){this.startEventRegister.destroy(),this.moveEventRegister.destroy(),this.endEventRegister.destroy()},t}(),ie=function(){function t(t,e){this.scroll=t,this.options=e,this.hooksFn=[],this.wrapper=e.wrapper,this.direction=e.direction,this.indicatorEl=this.wrapper.children[0],this.keysMap=this.getKeysMap(),this.handleFade(),this.handleHooks()}return t.prototype.handleFade=function(){this.options.fade&&(this.wrapper.style.opacity="0")},t.prototype.handleHooks=function(){var t=this,e=this.options,o=e.fade,i=e.interactive,s=e.scrollbarTrackClickable,r=this.scroll,n=r.hooks,a=r.scroller.translater.hooks,l=r.scroller.animater.hooks;if(this.registerHooks(n,n.eventTypes.refresh,this.refresh),this.registerHooks(a,a.eventTypes.translate,(function(e){var o=t.keysMap.hasScroll;t.scroll[o]&&t.updatePosition(e)})),this.registerHooks(l,l.eventTypes.time,this.transitionTime),this.registerHooks(l,l.eventTypes.timeFunction,this.transitionTimingFunction),o&&(this.registerHooks(r,r.eventTypes.scrollEnd,(function(){t.fade()})),this.registerHooks(r,r.eventTypes.scrollStart,(function(){t.fade(!0)})),r.eventTypes.mousewheelStart&&r.eventTypes.mousewheelEnd&&(this.registerHooks(r,r.eventTypes.mousewheelStart,(function(){t.fade(!0)})),this.registerHooks(r,r.eventTypes.mousewheelMove,(function(){t.fade(!0)})),this.registerHooks(r,r.eventTypes.mousewheelEnd,(function(){t.fade()})))),i){var h=this.scroll.options,c=h.disableMouse,p=h.disableTouch;this.eventHandler=new oe(this,{disableMouse:c,disableTouch:p});var u=this.eventHandler.hooks;this.registerHooks(u,u.eventTypes.touchStart,this.startHandler),this.registerHooks(u,u.eventTypes.touchMove,this.moveHandler),this.registerHooks(u,u.eventTypes.touchEnd,this.endHandler)}s&&this.bindClick()},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.bindClick=function(){var t=this.wrapper;this.clickEventRegister=new ut(t,[{name:"click",handler:this.handleClick.bind(this)}])},t.prototype.handleClick=function(t){var e=this.calculateclickOffsetPos(t),o=this.scroll,i=o.x,s=o.y;i="horizontal"===this.direction?e:i,s="vertical"===this.direction?e:s,this.scroll.scrollTo(i,s,this.options.scrollbarTrackOffsetTime)},t.prototype.calculateclickOffsetPos=function(t){var e=this.keysMap,o=e.point,i=e.domRect,s=this.options.scrollbarTrackOffsetType,r=t[o]-this.wrapperRect[i],n=r<this.currentPos?-1:1,a=0,l=this.currentPos;return"step"===s?a=this.scrollInfo.baseSize*n:(a=0,l=r),this.newPos(l,a,this.scrollInfo)},t.prototype.getKeysMap=function(){return"vertical"===this.direction?{hasScroll:"hasVerticalScroll",size:"height",wrapperSize:"clientHeight",scrollerSize:"scrollerHeight",maxScrollPos:"maxScrollY",pos:"y",point:"pageY",translateProperty:"translateY",domRect:"top"}:{hasScroll:"hasHorizontalScroll",size:"width",wrapperSize:"clientWidth",scrollerSize:"scrollerWidth",maxScrollPos:"maxScrollX",pos:"x",point:"pageX",translateProperty:"translateX",domRect:"left"}},t.prototype.fade=function(t){var e=this.options,o=e.fadeInTime,i=e.fadeOutTime,s=t?o:i,r=this.wrapper;r.style[Q.transitionDuration]=s+"ms",r.style.opacity=t?"1":"0"},t.prototype.refresh=function(){var t=this.keysMap.hasScroll,e=this.scroll,o=e.x,i=e.y;if(this.wrapperRect=this.wrapper.getBoundingClientRect(),this.canScroll(e[t])){var s=this.keysMap,r=s.wrapperSize,n=s.scrollerSize,a=s.maxScrollPos;this.scrollInfo=this.refreshScrollInfo(this.wrapper[r],e[n],e[a],this.indicatorEl[r]),this.updatePosition({x:o,y:i})}},t.prototype.transitionTime=function(t){void 0===t&&(t=0),this.indicatorEl.style[Q.transitionDuration]=t+"ms"},t.prototype.transitionTimingFunction=function(t){this.indicatorEl.style[Q.transitionTimingFunction]=t},t.prototype.canScroll=function(t){return this.wrapper.style.display=t?"block":"none",t},t.prototype.refreshScrollInfo=function(t,e,o,i){var s=Math.max(Math.round(t*t/(e||t||1)),this.options.minSize);this.options.isCustom&&(s=i);var r=t-s,n=r/o;return{baseSize:s,maxScrollPos:r,minScrollPos:0,sizeRatio:n}},t.prototype.updatePosition=function(t){var e=this.caculatePosAndSize(t,this.scrollInfo),o=e.pos,i=e.size;this.refreshStyle(i,o),this.currentPos=o},t.prototype.caculatePosAndSize=function(t,e){var o,i=this.keysMap.pos,s=e.sizeRatio,r=e.baseSize,n=e.maxScrollPos,a=e.minScrollPos,l=this.options.minSize,h=Math.round(s*t[i]);return h<a?(o=Math.max(r+3*h,l),h=a):h>n?(o=Math.max(r-3*(h-n),l),h=n+r-o):o=r,{pos:h,size:o}},t.prototype.refreshStyle=function(t,e){var o=this.keysMap,i=o.translateProperty,s=o.size,r=this.scroll.options.translateZ;this.indicatorEl.style[s]=t+"px",this.indicatorEl.style[Q.transform]=i+"("+e+"px)"+r},t.prototype.startHandler=function(){this.moved=!1,this.startTime=b(),this.transitionTime(),this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart)},t.prototype.moveHandler=function(t){if(this.moved||this.indicatorNotMoved(t)||(this.moved=!0,this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)),this.moved){var e=this.newPos(this.currentPos,t,this.scrollInfo);this.syncBScroll(e)}},t.prototype.endHandler=function(){if(this.moved){var t=this.scroll,e=t.x,o=t.y;this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd,{x:e,y:o})}},t.prototype.indicatorNotMoved=function(t){var e=this.currentPos,o=this.scrollInfo,i=o.maxScrollPos,s=o.minScrollPos,r=e===s&&t<=0||e===i&&t>=0;return r},t.prototype.syncBScroll=function(t){var e=b(),o=this.scroll,i=o.x,s=o.y,r=o.options,n=o.scroller,a=o.maxScrollY,l=o.minScrollY,h=o.maxScrollX,c=o.minScrollX,p=r.probeType,u=r.momentumLimitTime,d={x:i,y:s};"vertical"===this.direction?d.y=w(t,a,l):d.x=w(t,h,c),n.translater.translate(d),e-this.startTime>u&&(this.startTime=e,1===p&&n.hooks.trigger(n.hooks.eventTypes.scroll,d)),p>1&&n.hooks.trigger(n.hooks.eventTypes.scroll,d)},t.prototype.newPos=function(t,e,o){var i=o.maxScrollPos,s=o.sizeRatio,r=o.minScrollPos,n=t+e;return n=w(n,r,i),Math.round(n/s)},t.prototype.destroy=function(){var t=this.options,e=t.interactive,o=t.scrollbarTrackClickable,i=t.isCustom;e&&this.eventHandler.destroy(),o&&this.clickEventRegister.destroy(),i||this.wrapper.parentNode.removeChild(this.wrapper),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t}(),se=function(){function t(t){this.scroll=t,this.handleOptions(),this.createIndicators(),this.handleHooks()}return t.prototype.handleHooks=function(){var t=this,e=this.scroll;e.hooks.on(e.hooks.eventTypes.destroy,(function(){for(var e=0,o=t.indicators;e<o.length;e++){var i=o[e];i.destroy()}}))},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.scrollbar?{}:this.scroll.options.scrollbar,e={fade:!0,fadeInTime:250,fadeOutTime:500,interactive:!1,customElements:[],minSize:8,scrollbarTrackClickable:!1,scrollbarTrackOffsetType:"step",scrollbarTrackOffsetTime:300};this.options=T(e,t)},t.prototype.createIndicators=function(){for(var t,e=this.scroll,o=[],i=["scrollX","scrollY"],s=["horizontal","vertical"],n=this.options.customElements,a=0;a<i.length;a++){var l=i[a];if(e.options[l]){var h=n.shift(),c=s[a],p=!1,u=h||this.createScrollbarElement(c);u!==h?e.wrapper.appendChild(u):p=!0,t=r(r({wrapper:u,direction:c},this.options),{isCustom:p}),o.push(new ie(e,t))}}this.indicators=o},t.prototype.createScrollbarElement=function(t,e){void 0===e&&(e=this.options.scrollbarTrackClickable);var o=document.createElement("div"),i=document.createElement("div");return o.style.cssText="position:absolute;z-index:9999;overflow:hidden;",i.style.cssText="box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px;",i.className="bscroll-indicator","horizontal"===t?(o.style.cssText+="height:7px;left:2px;right:2px;bottom:0;",i.style.height="100%",o.className="bscroll-horizontal-scrollbar"):(o.style.cssText+="width:7px;bottom:2px;top:2px;right:1px;",i.style.width="100%",o.className="bscroll-vertical-scrollbar"),e||(o.style.cssText+="pointer-events:none;"),o.appendChild(i),o},t.pluginName="scrollbar",t}();e.ScrollBar=se;var re=function(){function t(t){this.scroll=t,this.init()}return t.prototype.init=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY;this.wrapperWidth=e.wrapperSize,this.wrapperHeight=o.wrapperSize,this.scrollerHeight=o.contentSize,this.scrollerWidth=e.contentSize,this.pages=this.buildPagesMatrix(this.wrapperWidth,this.wrapperHeight),this.pageLengthOfX=this.pages?this.pages.length:0,this.pageLengthOfY=this.pages&&this.pages[0]?this.pages[0].length:0},t.prototype.getPageStats=function(t,e){return this.pages[t][e]},t.prototype.getNearestPageIndex=function(t,e){for(var o=0,i=0,s=this.pages.length;o<s-1;o++)if(t>=this.pages[o][0].cx)break;for(s=this.pages[o].length;i<s-1;i++)if(e>=this.pages[0][i].cy)break;return{pageX:o,pageY:i}},t.prototype.buildPagesMatrix=function(t,e){var o,i,s,r,n=[],a=0,l=0,h=this.scroll.scroller.scrollBehaviorX.maxScrollPos,c=this.scroll.scroller.scrollBehaviorY.maxScrollPos;i=Math.round(t/2),s=Math.round(e/2);while(a>-this.scrollerWidth){n[l]=[],r=0,o=0;while(o>-this.scrollerHeight)n[l][r]={x:Math.max(a,h),y:Math.max(o,c),width:t,height:e,cx:a-i,cy:o-s},o-=e,r++;a-=t,l++}return n},t}(),ne={pageX:0,pageY:0,x:0,y:0},ae=function(){function t(t,e){this.scroll=t,this.slideOptions=e,this.slideX=!1,this.slideY=!1,this.currentPage=T({},ne)}return t.prototype.refresh=function(){this.pagesMatrix=new re(this.scroll),this.checkSlideLoop(),this.currentPage=this.getAdjustedCurrentPage()},t.prototype.getAdjustedCurrentPage=function(){var t=this.currentPage,e=t.pageX,o=t.pageY;e=Math.min(e,this.pagesMatrix.pageLengthOfX-1),o=Math.min(o,this.pagesMatrix.pageLengthOfY-1),this.loopX&&(e=Math.min(e,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(o=Math.min(o,this.pagesMatrix.pageLengthOfY-2));var i=this.pagesMatrix.getPageStats(e,o),s=i.x,r=i.y;return{pageX:e,pageY:o,x:s,y:r}},t.prototype.setCurrentPage=function(t){this.currentPage=t},t.prototype.getInternalPage=function(t,e){t>=this.pagesMatrix.pageLengthOfX?t=this.pagesMatrix.pageLengthOfX-1:t<0&&(t=0),e>=this.pagesMatrix.pageLengthOfY?e=this.pagesMatrix.pageLengthOfY-1:e<0&&(e=0);var o=this.pagesMatrix.getPageStats(t,e),i=o.x,s=o.y;return{pageX:t,pageY:e,x:i,y:s}},t.prototype.getInitialPage=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var o=this.slideOptions,i=o.startPageXIndex,s=o.startPageYIndex,r=this.loopX?1:0,n=this.loopY?1:0,a=t?r:this.currentPage.pageX,l=t?n:this.currentPage.pageY;e?(a=this.loopX?i+1:i,l=this.loopY?s+1:s):(a=t?r:this.currentPage.pageX,l=t?n:this.currentPage.pageY);var h=this.pagesMatrix.getPageStats(a,l),c=h.x,p=h.y;return{pageX:a,pageY:l,x:c,y:p}},t.prototype.getExposedPage=function(t){var e=T({},t);return this.loopX&&(e.pageX=this.fixedPage(e.pageX,this.pagesMatrix.pageLengthOfX-2)),this.loopY&&(e.pageY=this.fixedPage(e.pageY,this.pagesMatrix.pageLengthOfY-2)),e},t.prototype.getExposedPageByPageIndex=function(t,e){var o={pageX:t,pageY:e};this.loopX&&(o.pageX=t+1),this.loopY&&(o.pageY=e+1);var i=this.pagesMatrix.getPageStats(o.pageX,o.pageY),s=i.x,r=i.y;return{x:s,y:r,pageX:t,pageY:e}},t.prototype.getWillChangedPage=function(t){return t=T({},t),this.loopX&&(t.pageX=this.fixedPage(t.pageX,this.pagesMatrix.pageLengthOfX-2),t.x=this.pagesMatrix.getPageStats(t.pageX+1,0).x),this.loopY&&(t.pageY=this.fixedPage(t.pageY,this.pagesMatrix.pageLengthOfY-2),t.y=this.pagesMatrix.getPageStats(0,t.pageY+1).y),t},t.prototype.fixedPage=function(t,e){for(var o=[],i=0;i<e;i++)o.push(i);return o.unshift(e-1),o.push(0),o[t]},t.prototype.getPageStats=function(){return this.pagesMatrix.getPageStats(this.currentPage.pageX,this.currentPage.pageY)},t.prototype.getValidPageIndex=function(t,e){var o=this.pagesMatrix.pageLengthOfX-1,i=this.pagesMatrix.pageLengthOfY-1,s=0,r=0;return this.loopX&&(t+=1,s+=1,o-=1),this.loopY&&(e+=1,r+=1,i-=1),t=w(t,s,o),e=w(e,r,i),{pageX:t,pageY:e}},t.prototype.nextPageIndex=function(){return this.getPageIndexByDirection("positive")},t.prototype.prevPageIndex=function(){return this.getPageIndexByDirection("negative")},t.prototype.getNearestPage=function(t,e){var o=this.pagesMatrix.getNearestPageIndex(t,e),i=o.pageX,s=o.pageY,r=this.pagesMatrix.getPageStats(i,0).x,n=this.pagesMatrix.getPageStats(0,s).y;return{x:r,y:n,pageX:i,pageY:s}},t.prototype.getPageByDirection=function(t,e,o){var i=t.pageX,s=t.pageY;i===this.currentPage.pageX&&(i=w(i+e,0,this.pagesMatrix.pageLengthOfX-1)),s===this.currentPage.pageY&&(s=w(s+o,0,this.pagesMatrix.pageLengthOfY-1));var r=this.pagesMatrix.getPageStats(i,0).x,n=this.pagesMatrix.getPageStats(0,s).y;return{x:r,y:n,pageX:i,pageY:s}},t.prototype.resetLoopPage=function(){if(this.loopX){if(0===this.currentPage.pageX)return{pageX:this.pagesMatrix.pageLengthOfX-2,pageY:this.currentPage.pageY};if(this.currentPage.pageX===this.pagesMatrix.pageLengthOfX-1)return{pageX:1,pageY:this.currentPage.pageY}}if(this.loopY){if(0===this.currentPage.pageY)return{pageX:this.currentPage.pageX,pageY:this.pagesMatrix.pageLengthOfY-2};if(this.currentPage.pageY===this.pagesMatrix.pageLengthOfY-1)return{pageX:this.currentPage.pageX,pageY:1}}},t.prototype.getPageIndexByDirection=function(t){var e=this.currentPage.pageX,o=this.currentPage.pageY;return this.slideX&&(e="negative"===t?e-1:e+1),this.slideY&&(o="negative"===t?o-1:o+1),{pageX:e,pageY:o}},t.prototype.checkSlideLoop=function(){this.wannaLoop=this.slideOptions.loop,this.pagesMatrix.pageLengthOfX>1?this.slideX=!0:this.slideX=!1,this.pagesMatrix.pages[0]&&this.pagesMatrix.pageLengthOfY>1?this.slideY=!0:this.slideY=!1,this.loopX=this.wannaLoop&&this.slideX,this.loopY=this.wannaLoop&&this.slideY,this.slideX&&this.slideY&&c("slide does not support two direction at the same time.")},t}(),le="plugins.slide",he=[{key:"next",name:"next"},{key:"prev",name:"prev"},{key:"goToPage",name:"goToPage"},{key:"getCurrentPage",name:"getCurrentPage"},{key:"startPlay",name:"startPlay"},{key:"pausePlay",name:"pausePlay"}],ce=he.map((function(t){return{key:t.key,sourceKey:le+"."+t.name}})),pe=function(t,e){return t.pageX===e.pageX&&t.pageY===e.pageY},ue=function(){function t(t){this.scroll=t,this.cachedClonedPageDOM=[],this.resetLooping=!1,this.autoplayTimer=0,this.satisfyInitialization()&&this.init()}return t.prototype.satisfyInitialization=function(){return!(this.scroll.scroller.content.children.length<=0)||(c("slide need at least one slide page to be initialised.please check your DOM layout."),!1)},t.prototype.init=function(){this.willChangeToPage=T({},ne),this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.createPages()},t.prototype.createPages=function(){this.pages=new ae(this.scroll,this.options)},t.prototype.handleBScroll=function(){this.scroll.registerType(["slideWillChange","slidePageChanged"]),this.scroll.proxy(ce)},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.slide?{}:this.scroll.options.slide,e={loop:!0,threshold:.1,speed:400,easing:tt.bounce,listenFlick:!0,autoplay:!0,interval:3e3,startPageXIndex:0,startPageYIndex:0};this.options=T(e,t)},t.prototype.handleLoop=function(t){var e=this.options.loop,o=this.scroll.scroller.content,i=o.children.length;e&&(o!==t?(this.resetLoopChangedStatus(),this.removeClonedSlidePage(t),i>1&&this.cloneFirstAndLastSlidePage(o)):3===i&&this.initialised?(this.removeClonedSlidePage(o),this.moreToOnePageInLoop=!0,this.oneToMorePagesInLoop=!1):i>1?(this.initialised&&0===this.cachedClonedPageDOM.length?(this.oneToMorePagesInLoop=!0,this.moreToOnePageInLoop=!1):(this.removeClonedSlidePage(o),this.resetLoopChangedStatus()),this.cloneFirstAndLastSlidePage(o)):this.resetLoopChangedStatus())},t.prototype.resetLoopChangedStatus=function(){this.moreToOnePageInLoop=!1,this.oneToMorePagesInLoop=!1},t.prototype.handleHooks=function(){var t=this,e=this.scroll.hooks,o=this.scroll.scroller.hooks,i=this.options.listenFlick;this.prevContent=this.scroll.scroller.content,this.hooksFn=[],this.registerHooks(this.scroll,this.scroll.eventTypes.beforeScrollStart,this.pausePlay),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.modifyCurrentPage),this.registerHooks(this.scroll,this.scroll.eventTypes.scrollEnd,this.startPlay),this.scroll.eventTypes.mousewheelMove&&(this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelMove,(function(){return!0})),this.registerHooks(this.scroll,this.scroll.eventTypes.mousewheelEnd,(function(e){1!==e.directionX&&1!==e.directionY||t.next(),-1!==e.directionX&&-1!==e.directionY||t.prev()}))),this.registerHooks(e,e.eventTypes.refresh,this.refreshHandler),this.registerHooks(e,e.eventTypes.destroy,this.destroy),this.registerHooks(o,o.eventTypes.beforeRefresh,(function(){t.handleLoop(t.prevContent),t.setSlideInlineStyle()})),this.registerHooks(o,o.eventTypes.momentum,this.modifyScrollMetaHandler),this.registerHooks(o,o.eventTypes.scroll,this.scrollHandler),this.registerHooks(o,o.eventTypes.checkClick,this.startPlay),i&&this.registerHooks(o,o.eventTypes.flick,this.flickHandler)},t.prototype.startPlay=function(){var t=this,e=this.options,o=e.interval,i=e.autoplay;i&&(clearTimeout(this.autoplayTimer),this.autoplayTimer=window.setTimeout((function(){t.next()}),o))},t.prototype.pausePlay=function(){this.options.autoplay&&clearTimeout(this.autoplayTimer)},t.prototype.setSlideInlineStyle=function(){var t=[{direction:"scrollX",sizeType:"offsetWidth",styleType:"width"},{direction:"scrollY",sizeType:"offsetHeight",styleType:"height"}],e=this.scroll.scroller,o=e.content,i=e.wrapper,s=this.scroll.options;t.forEach((function(t){var e=t.direction,r=t.sizeType,n=t.styleType;if(s[e]){for(var a=i[r],l=o.children,h=l.length,c=0;c<h;c++){var p=l[c];p.style[n]=a+"px"}o.style[n]=a*h+"px"}}))},t.prototype.next=function(t,e){var o=this.pages.nextPageIndex(),i=o.pageX,s=o.pageY;this.goTo(i,s,t,e)},t.prototype.prev=function(t,e){var o=this.pages.prevPageIndex(),i=o.pageX,s=o.pageY;this.goTo(i,s,t,e)},t.prototype.goToPage=function(t,e,o,i){var s=this.pages.getValidPageIndex(t,e);this.goTo(s.pageX,s.pageY,o,i)},t.prototype.getCurrentPage=function(){return this.exposedPage||this.pages.getInitialPage(!1,!0)},t.prototype.setCurrentPage=function(t){this.pages.setCurrentPage(t),this.exposedPage=this.pages.getExposedPage(t)},t.prototype.nearestPage=function(t,e){var o=this.scroll.scroller,i=o.scrollBehaviorX,s=o.scrollBehaviorY,r=i.maxScrollPos,n=i.minScrollPos,a=s.maxScrollPos,l=s.minScrollPos;return this.pages.getNearestPage(w(t,r,n),w(e,a,l))},t.prototype.satisfyThreshold=function(t,e){var o=this.scroll.scroller,i=o.scrollBehaviorX,s=o.scrollBehaviorY,r=!0;return Math.abs(t-i.absStartPos)<=this.thresholdX&&Math.abs(e-s.absStartPos)<=this.thresholdY&&(r=!1),r},t.prototype.refreshHandler=function(t){var e=this;if(this.satisfyInitialization()){this.pages.refresh(),this.computeThreshold();var o=this.contentChanged=this.prevContent!==t;o&&(this.prevContent=t);var i=this.pages.getInitialPage(this.oneToMorePagesInLoop||this.moreToOnePageInLoop,o||!this.initialised);this.initialised?this.goTo(i.pageX,i.pageY,0):this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.beforeInitialScrollTo,(function(t){e.initialised=!0,t.x=i.x,t.y=i.y})),this.startPlay()}},t.prototype.computeThreshold=function(){var t=this.options.threshold;if(t%1===0)this.thresholdX=t,this.thresholdY=t;else{var e=this.pages.getPageStats(),o=e.width,i=e.height;this.thresholdX=Math.round(o*t),this.thresholdY=Math.round(i*t)}},t.prototype.cloneFirstAndLastSlidePage=function(t){var e=t.children,o=e[e.length-1].cloneNode(!0),i=e[0].cloneNode(!0);V(o,t),t.appendChild(i),this.cachedClonedPageDOM=[o,i]},t.prototype.removeClonedSlidePage=function(t){var e=t&&t.children||[];e.length&&this.cachedClonedPageDOM.forEach((function(e){J(t,e)})),this.cachedClonedPageDOM=[]},t.prototype.modifyCurrentPage=function(t){var e=this.getCurrentPage(),o=e.pageX,i=e.pageY,s=this.nearestPage(t.x,t.y);if(this.setCurrentPage(s),this.contentChanged)return this.contentChanged=!1,!0;var r=this.getCurrentPage(),n=r.pageX,a=r.pageY;if(this.pageWillChangeTo(s),this.oneToMorePagesInLoop)return this.oneToMorePagesInLoop=!1,!0;if(this.moreToOnePageInLoop&&0===o&&0===i)return this.moreToOnePageInLoop=!1,!0;if(o!==n||i!==a){var l=this.pages.getExposedPageByPageIndex(n,a);this.scroll.trigger(this.scroll.eventTypes.slidePageChanged,l)}if(!this.resetLooping){var h=this.pages.resetLoopPage();return h?(this.resetLooping=!0,this.goTo(h.pageX,h.pageY,0),!0):void 0}this.resetLooping=!1},t.prototype.goTo=function(t,e,o,i){var s=this.pages.getInternalPage(t,e),r=i||this.options.easing||tt.bounce,n=s.x,a=s.y,l=n-this.scroll.scroller.scrollBehaviorX.currentPos,h=a-this.scroll.scroller.scrollBehaviorY.currentPos;l||h?(o=void 0===o?this.getEaseTime(l,h):o,this.scroll.scroller.scrollTo(n,a,o,r)):this.scroll.scroller.togglePointerEvents(!0)},t.prototype.flickHandler=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY,i=e.currentPos,s=e.startPos,r=e.direction,n=o.currentPos,a=o.startPos,l=o.direction,h=this.pages.currentPage,c=h.pageX,p=h.pageY,u=this.getEaseTime(i-s,n-a);this.goTo(c+r,p+l,u)},t.prototype.getEaseTime=function(t,e){return this.options.speed||Math.max(Math.max(Math.min(Math.abs(t),1e3),Math.min(Math.abs(e),1e3)),300)},t.prototype.modifyScrollMetaHandler=function(t){var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY,s=e.animater,r=t.newX,n=t.newY,a=this.satisfyThreshold(r,n)||s.forceStopped?this.pages.getPageByDirection(this.nearestPage(r,n),o.direction,i.direction):this.pages.currentPage;t.time=this.getEaseTime(t.newX-a.x,t.newY-a.y),t.newX=a.x,t.newY=a.y,t.easing=this.options.easing||tt.bounce},t.prototype.scrollHandler=function(t){var e=t.x,o=t.y;if(this.satisfyThreshold(e,o)){var i=this.nearestPage(e,o);this.pageWillChangeTo(i)}},t.prototype.pageWillChangeTo=function(t){var e=this.pages.getWillChangedPage(t);pe(this.willChangeToPage,e)||(this.willChangeToPage=e,this.scroll.trigger(this.scroll.eventTypes.slideWillChange,this.willChangeToPage))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.destroy=function(){var t=this.scroll.scroller.content,e=this.options,o=e.loop,i=e.autoplay;o&&this.removeClonedSlidePage(t),i&&clearTimeout(this.autoplayTimer),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.eventTypes[o]&&e.off(o,i)})),this.hooksFn.length=0},t.pluginName="slide",t}();e.Slide=ue;var de="plugins.wheel",fe=[{key:"wheelTo",name:"wheelTo"},{key:"getSelectedIndex",name:"getSelectedIndex"},{key:"restorePosition",name:"restorePosition"}],ge=fe.map((function(t){return{key:t.key,sourceKey:de+"."+t.name}})),ve="wheelIndexChanged",ye={rate:4},me=function(){function t(t){this.scroll=t,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.refreshBoundary(),this.setSelectedIndex(this.options.selectedIndex)},t.prototype.handleBScroll=function(){this.scroll.proxy(ge),this.scroll.registerType([ve])},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.wheel?{}:this.scroll.options.wheel,e={wheelWrapperClass:"wheel-scroll",wheelItemClass:"wheel-item",rotate:25,adjustTime:400,selectedIndex:0,wheelDisabledItemClass:"wheel-disabled-item"};this.options=T(e,t)},t.prototype.handleHooks=function(){var t=this,e=this.scroll,o=this.scroll.scroller,i=o.actionsHandler,s=o.scrollBehaviorX,r=o.scrollBehaviorY,n=o.animater,a=o.content;e.on(e.eventTypes.scrollEnd,(function(e){var i=t.findNearestValidWheel(e.y).index;if(o.animater.forceStopped&&!t.isAdjustingPosition)return t.target=t.items[i],!0;t.setSelectedIndex(i),t.isAdjustingPosition&&(t.isAdjustingPosition=!1)})),this.scroll.hooks.on(this.scroll.hooks.eventTypes.refresh,(function(e){e!==a&&(a=e,t.setSelectedIndex(t.options.selectedIndex,!0)),t.rotateX(t.scroll.y),t.wheelTo(t.selectedIndex,0)})),this.scroll.hooks.on(this.scroll.hooks.eventTypes.beforeInitialScrollTo,(function(e){e.x=0,e.y=-t.selectedIndex*t.itemHeight})),o.hooks.on(o.hooks.eventTypes.checkClick,(function(){var e=_(t.items).indexOf(t.target);return-1===e||t.wheelTo(e,t.options.adjustTime,tt.swipe),!0})),o.hooks.on(o.hooks.eventTypes.scrollTo,(function(e){e.y=t.findNearestValidWheel(e.y).y})),o.hooks.on(o.hooks.eventTypes.minDistanceScroll,(function(){var t=o.animater;!0===t.forceStopped&&(t.forceStopped=!1)})),o.hooks.on(o.hooks.eventTypes.scrollToElement,(function(e,o){if(!q(e,t.options.wheelItemClass))return!0;o.top=t.findNearestValidWheel(o.top).y})),i.hooks.on(i.hooks.eventTypes.beforeStart,(function(e){t.target=e.target})),s.hooks.on(s.hooks.eventTypes.computeBoundary,(function(t){t.maxScrollPos=0,t.minScrollPos=0})),r.hooks.on(r.hooks.eventTypes.computeBoundary,(function(e){t.items=t.scroll.scroller.content.children,t.checkWheelAllDisabled(),t.itemHeight=t.items.length>0?r.contentSize/t.items.length:0,e.maxScrollPos=-t.itemHeight*(t.items.length-1),e.minScrollPos=0})),r.hooks.on(r.hooks.eventTypes.momentum,(function(e){e.rate=ye.rate,e.destination=t.findNearestValidWheel(e.destination).y})),r.hooks.on(r.hooks.eventTypes.end,(function(e){var o=t.findNearestValidWheel(r.currentPos);e.destination=o.y,e.duration=t.options.adjustTime})),n.hooks.on(n.hooks.eventTypes.time,(function(e){t.transitionDuration(e)})),n.hooks.on(n.hooks.eventTypes.timeFunction,(function(e){t.timeFunction(e)})),n.hooks.on(n.hooks.eventTypes.callStop,(function(){var e=t.findNearestValidWheel(t.scroll.y).index;t.isAdjustingPosition=!0,t.wheelTo(e,0)})),n.translater.hooks.on(n.translater.hooks.eventTypes.translate,(function(e){t.rotateX(e.y)}))},t.prototype.refreshBoundary=function(){var t=this.scroll.scroller,e=t.scrollBehaviorX,o=t.scrollBehaviorY,i=t.content;e.refresh(i),o.refresh(i)},t.prototype.setSelectedIndex=function(t,e){void 0===e&&(e=!1);var o=this.selectedIndex;this.selectedIndex=t,o===t||e||this.scroll.trigger(ve,t)},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.wheelTo=function(t,e,o){void 0===t&&(t=0),void 0===e&&(e=0);var i=-t*this.itemHeight;this.scroll.scrollTo(0,i,e,o)},t.prototype.restorePosition=function(){var t=this.scroll.pending;if(t){var e=this.getSelectedIndex();this.scroll.scroller.animater.clearTimer(),this.wheelTo(e,0)}},t.prototype.transitionDuration=function(t){for(var e=0;e<this.items.length;e++)this.items[e].style[Q.transitionDuration]=t+"ms"},t.prototype.timeFunction=function(t){for(var e=0;e<this.items.length;e++)this.items[e].style[Q.transitionTimingFunction]=t},t.prototype.rotateX=function(t){for(var e=this.options.rotate,o=void 0===e?25:e,i=0;i<this.items.length;i++){var s=o*(t/this.itemHeight+i),r=s.toFixed(3);this.items[i].style[Q.transform]="rotateX("+r+"deg)"}},t.prototype.findNearestValidWheel=function(t){t=t>0?0:t<this.scroll.maxScrollY?this.scroll.maxScrollY:t;var e=Math.abs(Math.round(-t/this.itemHeight)),o=e,i=this.items,s=this.options.wheelDisabledItemClass;while(e>=0){if(!q(i[e],s))break;e--}if(e<0){e=o;while(e<=i.length-1){if(!q(i[e],s))break;e++}}return e===i.length&&(e=o),{index:this.wheelItemsAllDisabled?-1:e,y:-e*this.itemHeight}},t.prototype.checkWheelAllDisabled=function(){var t=this.options.wheelDisabledItemClass,e=this.items;this.wheelItemsAllDisabled=!0;for(var o=0;o<e.length;o++)if(!q(e[o],t)){this.wheelItemsAllDisabled=!1;break}},t.pluginName="wheel",t}();e.Wheel=me;var ke="plugins.zoom",be=[{key:"zoomTo",name:"zoomTo"}],Te=be.map((function(t){return{key:t.key,sourceKey:ke+"."+t.name}})),Se=2,Ae=1,we=function(){function t(t){this.scroll=t,this.scale=Ae,this.prevScale=1,this.init()}return t.prototype.init=function(){this.handleBScroll(),this.handleOptions(),this.handleHooks(),this.tryInitialZoomTo(this.zoomOpt)},t.prototype.zoomTo=function(t,e,o,i){var s=this.resolveOrigin(e,o),r=s.originX,n=s.originY,a={x:r,y:n,baseScale:this.scale};this._doZoomTo(t,a,i,!0)},t.prototype.handleBScroll=function(){this.scroll.proxy(Te),this.scroll.registerType(["beforeZoomStart","zoomStart","zooming","zoomEnd"])},t.prototype.handleOptions=function(){var t=!0===this.scroll.options.zoom?{}:this.scroll.options.zoom,e={start:1,min:1,max:4,initialOrigin:[0,0],minimalZoomDistance:5,bounceTime:800};this.zoomOpt=T(e,t)},t.prototype.handleHooks=function(){var t=this,e=this.scroll,o=this.scroll.scroller;this.wrapper=this.scroll.scroller.wrapper,this.setTransformOrigin(this.scroll.scroller.content);var i=o.scrollBehaviorX,s=o.scrollBehaviorY;this.hooksFn=[],this.registerHooks(e.hooks,e.hooks.eventTypes.contentChanged,(function(e){t.setTransformOrigin(e),t.scale=Ae,t.tryInitialZoomTo(t.zoomOpt)})),this.registerHooks(e.hooks,e.hooks.eventTypes.beforeInitialScrollTo,(function(){if(t.zoomOpt.start!==Ae)return!0})),this.registerHooks(i.hooks,i.hooks.eventTypes.beforeComputeBoundary,(function(){var e=N(t.scroll.scroller.content);i.contentSize=Math.floor(e.width*t.scale)})),this.registerHooks(s.hooks,s.hooks.eventTypes.beforeComputeBoundary,(function(){var e=N(t.scroll.scroller.content);s.contentSize=Math.floor(e.height*t.scale)})),this.registerHooks(o.actions.hooks,o.actions.hooks.eventTypes.start,(function(e){var o=e.touches&&e.touches.length||0;t.fingersOperation(o),o===Se&&t.zoomStart(e)})),this.registerHooks(o.actions.hooks,o.actions.hooks.eventTypes.beforeMove,(function(e){var o=e.touches&&e.touches.length||0;if(t.fingersOperation(o),o===Se)return t.zoom(e),!0})),this.registerHooks(o.actions.hooks,o.actions.hooks.eventTypes.beforeEnd,(function(e){var o=t.fingersOperation();if(o===Se)return t.zoomEnd(),!0})),this.registerHooks(o.translater.hooks,o.translater.hooks.eventTypes.beforeTranslate,(function(e,o){var i=o.scale?o.scale:t.prevScale;t.prevScale=i,e.push("scale("+i+")")})),this.registerHooks(o.hooks,o.hooks.eventTypes.scrollEnd,(function(){t.fingersOperation()===Se&&t.scroll.trigger(t.scroll.eventTypes.zoomEnd,{scale:t.scale})})),this.registerHooks(this.scroll.hooks,"destroy",this.destroy)},t.prototype.setTransformOrigin=function(t){t.style[Q.transformOrigin]="0 0"},t.prototype.tryInitialZoomTo=function(t){var e=t.start,o=t.initialOrigin,i=this.scroll.scroller,s=i.scrollBehaviorX,r=i.scrollBehaviorY;e!==Ae&&(this.resetBoundaries([s,r]),this.zoomTo(e,o[0],o[1],0))},t.prototype.fingersOperation=function(t){if("number"!==typeof t)return this.numberOfFingers;this.numberOfFingers=t},t.prototype._doZoomTo=function(t,e,o,i){var s=this;void 0===o&&(o=this.zoomOpt.bounceTime),void 0===i&&(i=!1);var r=this.zoomOpt,n=r.min,a=r.max,l=this.scale,h=w(t,n,a);(function(){if(0!==o){if(o>0){var t,e=b(),i=e+o,r=function r(){var n=b();if(n>=i)return s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:h}),void rt(t);var a=tt.bounce.fn((n-e)/o),c=a*(h-l)+l;s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:c}),t=st(r)};r()}}else s.scroll.trigger(s.scroll.eventTypes.zooming,{scale:h})})(),this.fingersOperation(2),this._zoomTo(h,l,e,o,i)},t.prototype._zoomTo=function(t,e,o,i,s){void 0===s&&(s=!1);var r=t/o.baseScale;this.setScale(t);var n=this.scroll.scroller,a=n.scrollBehaviorX,l=n.scrollBehaviorY;this.resetBoundaries([a,l]);var h=this.getNewPos(o.x,r,a,!0,s),c=this.getNewPos(o.y,r,l,!0,s);a.currentPos===Math.round(h)&&l.currentPos===Math.round(c)&&t===e||n.scrollTo(h,c,i,tt.bounce,{start:{scale:e},end:{scale:t}})},t.prototype.resolveOrigin=function(t,e){var o=this.scroll.scroller,i=o.scrollBehaviorX,s=o.scrollBehaviorY,r={left:function(){return 0},top:function(){return 0},right:function(){return i.contentSize},bottom:function(){return s.contentSize},center:function(t){var e=0===t?i.contentSize:s.contentSize;return e/2}};return{originX:"number"===typeof t?t:r[t](0),originY:"number"===typeof e?e:r[e](1)}},t.prototype.zoomStart=function(t){var e=t.touches[0],o=t.touches[1];this.startDistance=this.getFingerDistance(t),this.startScale=this.scale;var i=D(this.wrapper),s=i.left,r=i.top;this.origin={x:Math.abs(e.pageX+o.pageX)/2+s-this.scroll.x,y:Math.abs(e.pageY+o.pageY)/2+r-this.scroll.y,baseScale:this.startScale},this.scroll.trigger(this.scroll.eventTypes.beforeZoomStart)},t.prototype.zoom=function(t){var e=this.getFingerDistance(t);if(this.zoomed||!(Math.abs(e-this.startDistance)<this.zoomOpt.minimalZoomDistance)){var o=this.dampingScale(e/this.startDistance*this.startScale),i=o/this.startScale;this.setScale(o),this.zoomed||(this.zoomed=!0,this.scroll.trigger(this.scroll.eventTypes.zoomStart));var s=this.scroll.scroller,r=s.scrollBehaviorX,n=s.scrollBehaviorY,a=this.getNewPos(this.origin.x,i,r,!1,!1),l=this.getNewPos(this.origin.y,i,n,!1,!1);this.scroll.trigger(this.scroll.eventTypes.zooming,{scale:this.scale}),s.translater.translate({x:a,y:l,scale:o})}},t.prototype.zoomEnd=function(){this.zoomed&&(this.shouldRebound()?this._doZoomTo(this.scale,this.origin,this.zoomOpt.bounceTime):this.scroll.trigger(this.scroll.eventTypes.zoomEnd,{scale:this.scale}))},t.prototype.getFingerDistance=function(t){var e=t.touches[0],o=t.touches[1],i=Math.abs(e.pageX-o.pageX),s=Math.abs(e.pageY-o.pageY);return A(i,s)},t.prototype.shouldRebound=function(){var t=this.zoomOpt,e=t.min,o=t.max,i=this.scale;if(i!==w(i,e,o))return!0;var s=this.scroll.scroller,r=s.scrollBehaviorX,n=s.scrollBehaviorY;this.resetBoundaries([r,n]);var a=r.checkInBoundary().inBoundary,l=r.checkInBoundary().inBoundary;return!(a&&l)},t.prototype.dampingScale=function(t){var e=this.zoomOpt,o=e.min,i=e.max;return t<o?t=.5*o*Math.pow(2,t/o):t>i&&(t=2*i*Math.pow(.5,i/t)),t},t.prototype.setScale=function(t){this.scale=t},t.prototype.resetBoundaries=function(t){t.forEach((function(t){return t.computeBoundary()}))},t.prototype.getNewPos=function(t,e,o,i,s){void 0===s&&(s=!1);var r=t-t*e+(s?o.currentPos:o.startPos);return i&&(r=w(r,o.maxScrollPos,o.minScrollPos)),r>0?Math.floor(r):Math.ceil(r)},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t.pluginName="zoom",t}();e.Zoom=we;var Pe=function(){function t(t){this.ancestors=[],this.descendants=[],this.hooksManager=[],this.analyzed=!1,this.selfScroll=t}return t.create=function(e){return new t(e)},t.prototype.hasAncestors=function(t){var e=P(this.ancestors,(function(e){var o=e[0];return o===t}));return e>-1},t.prototype.hasDescendants=function(t){var e=P(this.descendants,(function(e){var o=e[0];return o===t}));return e>-1},t.prototype.addAncestor=function(t,e){var o=this.ancestors;o.push([t,e]),o.sort((function(t,e){return t[1]-e[1]}))},t.prototype.addDescendant=function(t,e){var o=this.descendants;o.push([t,e]),o.sort((function(t,e){return t[1]-e[1]}))},t.prototype.removeAncestor=function(t){var e=this.ancestors;if(e.length){var o=P(this.ancestors,(function(e){var o=e[0];return o===t}));if(o>-1)return e.splice(o,1)}},t.prototype.removeDescendant=function(t){var e=this.descendants;if(e.length){var o=P(this.descendants,(function(e){var o=e[0];return o===t}));if(o>-1)return e.splice(o,1)}},t.prototype.registerHooks=function(t,e,o){t.on(e,o),this.hooksManager.push([t,e,o])},t.prototype.setAnalyzed=function(t){void 0===t&&(t=!1),this.analyzed=t},t.prototype.purge=function(){var t=this;this.ancestors.forEach((function(e){var o=e[0];o.removeDescendant(t)})),this.descendants.forEach((function(e){var o=e[0];o.removeAncestor(t)})),this.hooksManager.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksManager=[]},t}(),Ee="plugins.nestedScroll",xe=[{key:"purgeNestedScroll",name:"purgeNestedScroll"}],Be=xe.map((function(t){return{key:t.key,sourceKey:Ee+"."+t.name}})),Ie="INTERNAL_NESTED_SCROLL",Ce=function(t){t.forEach((function(t){t.pending&&(t.stop(),t.resetPosition())}))},Me=function(t){t.forEach((function(t){t.enable()}))},Ye=function(t,e){t.forEach((function(t){t.hasHorizontalScroll!==e.hasHorizontalScroll&&t.hasVerticalScroll!==e.hasVerticalScroll||t.disable()}))},De=function(t){t.forEach((function(t){var e=t.scroller,o=e.actions,i=e.scrollBehaviorX,s=e.scrollBehaviorY;o.fingerMoved=!0,o.contentMoved=!1,o.directionLockAction.reset(),i.start(),s.start(),i.resetStartPos(),s.resetStartPos(),o.startTime=+new Date}))},Oe=function(t){var e=t.hasHorizontalScroll,o=t.hasVerticalScroll,i=t.x,s=t.y,r=t.minScrollX,n=t.maxScrollX,a=t.minScrollY,l=t.maxScrollY,h=t.movingDirectionX,c=t.movingDirectionY,p=!1,u=i>=r&&-1===h,d=i<=n&&1===h,f=s>=a&&-1===c,g=s<=l&&1===c;return o?p=f||g:e&&(p=u||d),p},Xe=function(t){var e=t.hasHorizontalScroll,o=t.hasVerticalScroll,i=t.x,s=t.y,r=t.minScrollX,n=t.maxScrollX,a=t.minScrollY,l=t.maxScrollY,h=!1,c=i>r,p=i<n,u=s>a,d=s<l;return o?h=u||d:e&&(h=c||p),h},He=function(t){t.scroller.reflow(),t.resetPosition(0)},ze=function(t,e){var o=0,i=t.parentNode;while(i&&i!==e)o++,i=i.parentNode;return o},Le=function(){function t(e){var o=this.handleOptions(e),i=t.instancesMap[o];return i||(i=t.instancesMap[o]=this,i.store=[],i.hooksFn=[]),i.init(e),i}return t.getAllNestedScrolls=function(){var e=t.instancesMap;return Object.keys(e).map((function(t){return e[t]}))},t.purgeAllNestedScrolls=function(){var e=t.getAllNestedScrolls();e.forEach((function(t){return t.purgeNestedScroll()}))},t.prototype.handleOptions=function(t){var e=!0===t.options.nestedScroll?{}:t.options.nestedScroll,o={groupId:Ie};this.options=T(o,e);var i=typeof this.options.groupId;return"string"!==i&&"number"!==i&&c("groupId must be string or number for NestedScroll plugin"),this.options.groupId},t.prototype.init=function(t){t.proxy(Be),this.addBScroll(t),this.buildBScrollGraph(),this.analyzeBScrollGraph(),this.ensureEventInvokeSequence(),this.handleHooks(t)},t.prototype.handleHooks=function(t){var e=this;this.registerHooks(t.hooks,t.hooks.eventTypes.destroy,(function(){e.deleteScroll(t)}))},t.prototype.deleteScroll=function(t){var e=t.wrapper;e.isBScrollContainer=void 0;var o=this.store,i=this.hooksFn,s=P(o,(function(e){return e.selfScroll===t}));if(s>-1){var r=o[s];r.purge(),o.splice(s,1)}var n=P(i,(function(e){var o=e[0];return o===t.hooks}));if(n>-1){var a=i[n],l=a[0],h=a[1],c=a[2];l.off(h,c),i.splice(n,1)}},t.prototype.addBScroll=function(t){this.store.push(Pe.create(t))},t.prototype.buildBScrollGraph=function(){for(var t,e,o,i,s=this.store,r=this.store.length,n=0;n<r;n++){t=s[n],o=t.selfScroll.wrapper;for(var a=0;a<r;a++)if(e=s[a],i=e.selfScroll.wrapper,t!==e&&o.contains(i)){var l=ze(i,o);t.hasDescendants(e)||t.addDescendant(e,l),e.hasAncestors(t)||e.addAncestor(t,l)}}},t.prototype.analyzeBScrollGraph=function(){this.store.forEach((function(t){if(!t.analyzed){var e=t.ancestors,o=t.descendants,i=t.selfScroll,s=function(){var t=e.map((function(t){var e=t[0];return e.selfScroll})),s=o.map((function(t){var e=t[0];return e.selfScroll}));Ce(l(t,s)),Xe(i)&&He(i),De(t),Ye(t,i)},r=function(){var t=e.map((function(t){var e=t[0];return e.selfScroll})),i=o.map((function(t){var e=t[0];return e.selfScroll}));Me(l(t,i))};t.registerHooks(i,i.eventTypes.beforeScrollStart,s),t.registerHooks(i,i.eventTypes.touchEnd,r);var n=i.scroller.actions.hooks;t.registerHooks(n,n.eventTypes.detectMovingDirection,(function(){var t=e.map((function(t){var e=t[0];return e.selfScroll})),o=t[0],s=t.slice(1),r=i.scroller.actions.contentMoved,n=0===t.length;if(r)Ye(t,i);else if(!n&&Oe(i))return Ye([i],i),o&&Me([o]),Ye(s,i),!0})),t.setAnalyzed(!0)}}))},t.prototype.ensureEventInvokeSequence=function(){var t=this.store.slice(),e=t.sort((function(t,e){return t.descendants.length-e.descendants.length}));e.forEach((function(t){var e=t.selfScroll;e.scroller.actionsHandler.rebindDOMEvents()}))},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.purgeNestedScroll=function(){var e=this.options.groupId;this.store.forEach((function(t){t.purge()})),this.store=[],this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn=[],delete t.instancesMap[e]},t.pluginName="nestedScroll",t.instancesMap={},t}();e.NestedScroll=Le;var Re=10,Qe=30,Fe=function(){function t(t,e){this.wrapperHeight=t,this.tombstoneHeight=e,this.lastDirection=1,this.lastPos=0}return t.prototype.calculate=function(t,e){var o=t-this.lastPos;this.lastPos=t;var i=this.getDirection(o),s=this.calculateIndex(0,t,e),r=this.calculateIndex(s,t+this.wrapperHeight,e);return 1===i?(s-=Re,r+=Qe):(s-=Qe,r+=Re),s<0&&(s=0),{start:s,end:r}},t.prototype.getDirection=function(t){var e;if(t>0)e=1;else{if(!(t<0))return this.lastDirection;e=0}return this.lastDirection=e,e},t.prototype.calculateIndex=function(t,e,o){if(e<=0)return t;var i=t,s=o[i]&&-1!==o[i].pos?o[i].pos:0,r=s,n=0;while(i<o.length&&o[i].pos<e)r=o[i].pos,i++;return i===o.length&&(n=Math.floor((e-r)/this.tombstoneHeight)),i+=n,i},t.prototype.resetState=function(){this.lastDirection=1,this.lastPos=0},t}(),Ne=function(){function t(){this.data=null,this.dom=null,this.tombstone=null,this.width=0,this.height=0,this.pos=0}return t}(),We=function(){function t(t,e,o){this.fetchFn=e,this.onFetchFinish=o,this.loadedNum=0,this.fetching=!1,this.hasMore=!0,this.list=t||[]}return t.prototype.update=function(t){return n(this,void 0,void 0,(function(){var e;return a(this,(function(o){return this.hasMore||(t=Math.min(t,this.list.length)),t>this.list.length&&(e=t-this.list.length,this.addEmptyData(e)),[2,this.checkToFetch(t)]}))}))},t.prototype.add=function(t){for(var e=0;e<t.length;e++)this.list[this.loadedNum]?this.list[this.loadedNum]=r(r({},this.list[this.loadedNum]),{data:t[e]}):this.list[this.loadedNum]={data:t[e]},this.loadedNum++;return this.list},t.prototype.addEmptyData=function(t){for(var e=0;e<t;e++)this.list.push(new Ne);return this.list},t.prototype.fetch=function(t){return n(this,void 0,void 0,(function(){var e;return a(this,(function(o){switch(o.label){case 0:return this.fetching?[2,[]]:(this.fetching=!0,[4,this.fetchFn(t)]);case 1:return e=o.sent(),this.fetching=!1,[2,e]}}))}))},t.prototype.checkToFetch=function(t){return n(this,void 0,void 0,(function(){var e,o,i;return a(this,(function(s){switch(s.label){case 0:return this.hasMore?t<=this.loadedNum?[2]:(e=t-this.loadedNum,[4,this.fetch(e)]):[2];case 1:return o=s.sent(),o instanceof Array&&o.length?(this.add(o),i=this.onFetchFinish(this.list,!0),[2,this.checkToFetch(i)]):("boolean"===typeof o&&!1===o&&(this.hasMore=!1,this.list.splice(this.loadedNum),this.onFetchFinish(this.list,!1)),[2])}}))}))},t.prototype.getList=function(){return this.list},t.prototype.resetState=function(){this.loadedNum=0,this.fetching=!1,this.hasMore=!0,this.list=[]},t}(),Ge=function(){function t(t){this.create=t,this.cached=[],this.width=0,this.height=0,this.initialed=!1,this.getSize()}return t.isTombstone=function(t){return!(!t||!t.classList)&&t.classList.contains("tombstone")},t.prototype.getSize=function(){if(!this.initialed){var t=this.create();t.style.position="absolute",document.body.appendChild(t),t.style.display="",this.height=t.offsetHeight,this.width=t.offsetWidth,document.body.removeChild(t),this.cached.push(t)}},t.prototype.getOne=function(){var t=this.cached.pop();if(t){var e=t.style;return e.display="",e.opacity="1",e[Q.transform]="",e[Q.transition]="",t}return this.create()},t.prototype.recycle=function(t){for(var e=0,o=t;e<o.length;e++){var i=o[e];i.style.display="none",this.cached.push(i)}return this.cached},t.prototype.recycleOne=function(t){return this.cached.push(t),this.cached},t}(),je=200,Ze=function(){function t(t,e,o){this.renderFn=e,this.tombstone=o,this.unusedDom=[],this.timers=[],this.setContent(t)}return t.prototype.update=function(t,e,o){e>=t.length&&(e=t.length-1),o>t.length&&(o=t.length),this.collectUnusedDom(t,e,o),this.createDom(t,e,o),this.cacheHeight(t,e,o);var i=this.positionDom(t,e,o),s=i.startPos,r=i.startDelta,n=i.endPos;return{start:e,startPos:s,startDelta:r,end:o,endPos:n}},t.prototype.collectUnusedDom=function(t,e,o){for(var i=0;i<t.length;i++)if(i!==e){if(t[i].dom){var s=t[i].dom;Ge.isTombstone(s)?(this.tombstone.recycleOne(s),s.style.display="none"):this.unusedDom.push(s),t[i].dom=null}}else i=o-1;return t},t.prototype.createDom=function(t,e,o){for(var i=e;i<o;i++){var s=t[i].dom,r=t[i].data;if(s){if(!Ge.isTombstone(s)||!r)continue;t[i].tombstone=s,t[i].dom=null}s=r?this.renderFn(r,this.unusedDom.pop()):this.tombstone.getOne(),s.style.position="absolute",t[i].dom=s,t[i].pos=-1,this.content.appendChild(s)}},t.prototype.cacheHeight=function(t,e,o){for(var i=e;i<o;i++)t[i].data&&!t[i].height&&(t[i].height=t[i].dom.offsetHeight)},t.prototype.positionDom=function(t,e,o){for(var i=this,s=[],r=this.getStartPos(t,e,o),n=r.start,a=r.delta,l=n,h=e;h<o;h++){var c=t[h].tombstone;if(c){var p=c.style;p[Q.transition]=O+"transform "+je+"ms, opacity "+je+"ms",p[Q.transform]="translateY("+l+"px)",p.opacity="0",t[h].tombstone=null,s.push(c)}t[h].dom&&t[h].pos!==l&&(t[h].dom.style[Q.transform]="translateY("+l+"px)",t[h].pos=l),l+=t[h].height||this.tombstone.height}var u=window.setTimeout((function(){i.tombstone.recycle(s)}),je);return this.timers.push(u),{startPos:n,startDelta:a,endPos:l}},t.prototype.getStartPos=function(t,e,o){if(t[e]&&-1!==t[e].pos)return{start:t[e].pos,delta:0};for(var i=-1===t[0].pos?0:t[0].pos,s=0;s<e;s++)i+=t[s].height||this.tombstone.height;var r,n=i;for(r=e;r<o;r++)if(!Ge.isTombstone(t[r].dom)&&-1!==t[r].pos){i=t[r].pos;break}var a=r;if(a<o)while(a>e)i-=t[a-1].height,a--;var l=n-i;return{start:i,delta:l}},t.prototype.removeTombstone=function(){for(var t=this.content.querySelectorAll(".tombstone"),e=t.length-1;e>=0;e--)this.content.removeChild(t[e])},t.prototype.setContent=function(t){t!==this.content&&(this.content=t)},t.prototype.destroy=function(){this.removeTombstone(),this.timers.forEach((function(t){clearTimeout(t)}))},t.prototype.resetState=function(){this.destroy(),this.timers=[],this.unusedDom=[]},t}(),Ue=-2e3,Ve=function(){function t(t){this.scroll=t,this.start=0,this.end=0,this.init()}return t.prototype.init=function(){var t=this;this.handleOptions();var e=this.options,o=e.fetch,i=e.render,s=e.createTombstone;this.tombstone=new Ge(s),this.indexCalculator=new Fe(this.scroll.scroller.scrollBehaviorY.wrapperSize,this.tombstone.height),this.domManager=new Ze(this.scroll.scroller.content,i,this.tombstone),this.dataManager=new We([],o,this.onFetchFinish.bind(this)),this.scroll.on(this.scroll.eventTypes.destroy,this.destroy,this),this.scroll.on(this.scroll.eventTypes.scroll,this.update,this),this.scroll.on(this.scroll.eventTypes.contentChanged,(function(e){t.domManager.setContent(e),t.indexCalculator.resetState(),t.domManager.resetState(),t.dataManager.resetState(),t.update({y:0})}));var r=this.scroll.scroller.scrollBehaviorY;r.hooks.on(r.hooks.eventTypes.computeBoundary,this.modifyBoundary,this),this.update({y:0})},t.prototype.modifyBoundary=function(t){t.maxScrollPos=Ue},t.prototype.handleOptions=function(){var t=this.scroll.options.infinity;t&&("function"!==typeof t.fetch&&c("Infinity plugin need fetch Function to new data."),"function"!==typeof t.render&&c("Infinity plugin need render Function to render each item."),"function"!==typeof t.render&&c("Infinity plugin need createTombstone Function to create tombstone."),this.options=t),this.scroll.options.probeType=3},t.prototype.update=function(t){var e=Math.round(-t.y),o=this.indexCalculator.calculate(e,this.dataManager.getList()),i=o.start,s=o.end;this.start=i,this.end=s,this.dataManager.update(s),this.updateDom(this.dataManager.getList())},t.prototype.onFetchFinish=function(t,e){var o=this.updateDom(t).end;return e||(this.domManager.removeTombstone(),this.scroll.scroller.animater.stop(),this.scroll.resetPosition()),o},t.prototype.updateDom=function(t){var e=this.domManager.update(t,this.start,this.end),o=e.end,i=e.startPos,s=e.endPos,r=e.startDelta;return r&&(this.scroll.minScrollY=r),s>this.scroll.maxScrollY&&(this.scroll.maxScrollY=-(s-this.scroll.scroller.scrollBehaviorY.wrapperSize)),{end:o,startPos:i,endPos:s}},t.prototype.destroy=function(){var t=this.scroll.scroller,e=t.content,o=t.scrollBehaviorY;while(e.firstChild)e.removeChild(e.firstChild);this.domManager.destroy(),this.scroll.off("scroll",this.update),this.scroll.off("destroy",this.destroy),o.hooks.off(o.hooks.eventTypes.computeBoundary)},t.pluginName="infinity",t}();e.InfinityScroll=Ve;var Ke="plugins.movable",Je=[{key:"putAt",name:"putAt"}],qe=Je.map((function(t){return{key:t.key,sourceKey:Ke+"."+t.name}})),_e=function(){function t(t){this.scroll=t,this.handleBScroll(),this.handleHooks()}return t.prototype.handleBScroll=function(){this.scroll.proxy(qe)},t.prototype.handleHooks=function(){var t=this;this.hooksFn=[];var e=this.scroll.scroller,o=e.scrollBehaviorX,i=e.scrollBehaviorY,s=function(t,e){t.maxScrollPos>0&&(t.minScrollPos=e.wrapperSize-e.contentSize,t.maxScrollPos=0)};this.registerHooks(o.hooks,o.hooks.eventTypes.ignoreHasScroll,(function(){return!0})),this.registerHooks(o.hooks,o.hooks.eventTypes.computeBoundary,(function(t){s(t,o)})),this.registerHooks(i.hooks,i.hooks.eventTypes.ignoreHasScroll,(function(){return!0})),this.registerHooks(i.hooks,i.hooks.eventTypes.computeBoundary,(function(t){s(t,i)})),this.registerHooks(this.scroll.hooks,this.scroll.hooks.eventTypes.destroy,(function(){t.destroy()}))},t.prototype.putAt=function(t,e,o,i){void 0===o&&(o=this.scroll.options.bounceTime),void 0===i&&(i=tt.bounce);var s=this.resolvePostion(t,e);this.scroll.scrollTo(s.x,s.y,o,i)},t.prototype.resolvePostion=function(t,e){var o=this.scroll.scroller,i=o.scrollBehaviorX,s=o.scrollBehaviorY,r={left:function(){return 0},top:function(){return 0},right:function(){return i.minScrollPos},bottom:function(){return s.minScrollPos},center:function(t){var e=0===t?i.minScrollPos:s.minScrollPos;return e/2}};return{x:"number"===typeof t?t:r[t](0),y:"number"===typeof e?e:r[e](1)}},t.prototype.destroy=function(){this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.pluginName="movable",t.applyOrder="pre",t}();e.Movable=_e;var $e=function(t){return"img"===t.tagName.toLowerCase()},to=function(){function t(t){this.scroll=t,this.refreshTimer=0,this.init()}return t.prototype.init=function(){this.handleOptions(this.scroll.options.observeImage),this.bindEventsToWrapper()},t.prototype.handleOptions=function(t){void 0===t&&(t={}),t=!0===t?{}:t;var e={debounceTime:100};this.options=T(e,t)},t.prototype.bindEventsToWrapper=function(){var t=this.scroll.scroller.wrapper;this.imageLoadEventRegister=new ut(t,[{name:"load",handler:this.load.bind(this),capture:!0}]),this.imageErrorEventRegister=new ut(t,[{name:"error",handler:this.load.bind(this),capture:!0}])},t.prototype.load=function(t){var e=this,o=t.target,i=this.options.debounceTime;o&&$e(o)&&(0===i?this.scroll.refresh():(clearTimeout(this.refreshTimer),this.refreshTimer=window.setTimeout((function(){e.scroll.refresh()}),this.options.debounceTime)))},t.pluginName="observeImage",t}();e.ObserveImage=to;var eo=function(t){var e={ratioX:0,ratioY:0};return t?("number"===typeof t?e.ratioX=e.ratioY=t:"object"===typeof t&&t&&(e.ratioX=t.x||0,e.ratioY=t.y||0),e):e},oo=function(t){t.preventDefault(),t.stopPropagation()},io=function(){function t(t,e){this.scroll=t,this.options=e,this.currentPos={x:0,y:0},this.hooksFn=[],this.handleDOM(),this.handleHooks(),this.handleInteractive()}return t.prototype.handleDOM=function(){var t=this.options,e=t.relationElement,o=t.relationElementHandleElementIndex,i=void 0===o?0:o;this.wrapper=e,this.indicatorEl=this.wrapper.children[i]},t.prototype.handleHooks=function(){var t=this,e=this.scroll,o=e.hooks,i=e.scroller.translater.hooks,s=e.scroller.animater.hooks;this.registerHooks(o,o.eventTypes.refresh,this.refresh),this.registerHooks(i,i.eventTypes.translate,(function(e){t.updatePosition(e)})),this.registerHooks(s,s.eventTypes.time,this.transitionTime),this.registerHooks(s,s.eventTypes.timeFunction,this.transitionTimingFunction)},t.prototype.transitionTime=function(t){void 0===t&&(t=0),this.indicatorEl.style[Q.transitionDuration]=t+"ms"},t.prototype.transitionTimingFunction=function(t){this.indicatorEl.style[Q.transitionTimingFunction]=t},t.prototype.handleInteractive=function(){!1!==this.options.interactive&&this.registerEvents()},t.prototype.registerHooks=function(t,e,o){t.on(e,o,this),this.hooksFn.push([t,e,o])},t.prototype.registerEvents=function(){var t=this.scroll.options,e=t.disableMouse,o=t.disableTouch,i=[],s=[],r=[];e||(i.push({name:"mousedown",handler:this.start.bind(this)}),s.push({name:"mousemove",handler:this.move.bind(this)}),r.push({name:"mouseup",handler:this.end.bind(this)})),o||(i.push({name:"touchstart",handler:this.start.bind(this)}),s.push({name:"touchmove",handler:this.move.bind(this)}),r.push({name:"touchend",handler:this.end.bind(this)},{name:"touchcancel",handler:this.end.bind(this)})),this.startEventRegister=new ut(this.indicatorEl,i),this.moveEventRegister=new ut(window,s),this.endEventRegister=new ut(window,r)},t.prototype.refresh=function(){var t=this.scroll,e=t.x,o=t.y,i=t.hasHorizontalScroll,s=t.hasVerticalScroll,r=t.maxScrollX,n=t.maxScrollY,a=eo(this.options.ratio),l=a.ratioX,h=a.ratioY,c=$(this.wrapper),p=c.width,u=c.height,d=N(this.indicatorEl),f=d.width,g=d.height;i&&(this.maxScrollX=p-f,this.translateXSign=this.maxScrollX>0?-1:1,this.minScrollX=0,this.ratioX=l||Math.abs(this.maxScrollX/r)),s&&(this.maxScrollY=u-g,this.translateYSign=this.maxScrollY>0?-1:1,this.minScrollY=0,this.ratioY=h||Math.abs(this.maxScrollY/n)),this.updatePosition({x:e,y:o})},t.prototype.start=function(t){if(!this.BScrollIsDisabled()){var e=t.touches?t.touches[0]:t;oo(t),this.initiated=!0,this.moved=!1,this.lastPointX=e.pageX,this.lastPointY=e.pageY,this.startTime=b(),this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.beforeScrollStart)}},t.prototype.BScrollIsDisabled=function(){return!this.scroll.enabled},t.prototype.move=function(t){if(this.initiated){var e=t.touches?t.touches[0]:t,o=e.pageX,i=e.pageY;oo(t);var s=o-this.lastPointX,r=i-this.lastPointY;if(this.lastPointX=o,this.lastPointY=i,this.moved||this.indicatorNotMoved(s,r)||(this.moved=!0,this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollStart)),this.moved){var n=this.getBScrollPosByRatio(this.currentPos,s,r);this.syncBScroll(n)}}},t.prototype.end=function(t){if(this.initiated&&(this.initiated=!1,oo(t),this.moved)){var e=this.scroll,o=e.x,i=e.y;this.scroll.scroller.hooks.trigger(this.scroll.scroller.hooks.eventTypes.scrollEnd,{x:o,y:i})}},t.prototype.getBScrollPosByRatio=function(t,e,o){var i=t.x,s=t.y,r=this.scroll,n=r.hasHorizontalScroll,a=r.hasVerticalScroll,l=r.minScrollX,h=r.maxScrollX,c=r.minScrollY,p=r.maxScrollY,u=this.scroll,d=u.x,f=u.y;if(n){var g=w(i+e,Math.min(this.minScrollX,this.maxScrollX),Math.max(this.minScrollX,this.maxScrollX)),v=Math.round(g/this.ratioX*this.translateXSign);d=w(v,h,l)}if(a){var y=w(s+o,Math.min(this.minScrollY,this.maxScrollY),Math.max(this.minScrollY,this.maxScrollY)),m=Math.round(y/this.ratioY*this.translateYSign);f=w(m,p,c)}return{x:d,y:f}},t.prototype.indicatorNotMoved=function(t,e){var o=this.currentPos,i=o.x,s=o.y,r=i===this.minScrollX&&t<=0||i===this.maxScrollX&&t>=0,n=s===this.minScrollY&&e<=0||s===this.maxScrollY&&e>=0;return r&&n},t.prototype.syncBScroll=function(t){var e=b(),o=this.scroll,i=o.options,s=o.scroller,r=i.probeType,n=i.momentumLimitTime;s.translater.translate(t),e-this.startTime>n&&(this.startTime=e,1===r&&s.hooks.trigger(s.hooks.eventTypes.scroll,t)),r>1&&s.hooks.trigger(s.hooks.eventTypes.scroll,t)},t.prototype.updatePosition=function(t){var e=this.getIndicatorPosByRatio(t);this.applyTransformProperty(e),this.currentPos=r({},e)},t.prototype.applyTransformProperty=function(t){var e=this.scroll.options.translateZ,o=["translateX("+t.x+"px)","translateY("+t.y+"px)",""+e];this.indicatorEl.style[Q.transform]=o.join(" ")},t.prototype.getIndicatorPosByRatio=function(t){var e=t.x,o=t.y,i=this.scroll,s=i.hasHorizontalScroll,n=i.hasVerticalScroll,a=r({},this.currentPos);if(s){var l=Math.round(this.ratioX*e*this.translateXSign);a.x=w(l,Math.min(this.minScrollX,this.maxScrollX),Math.max(this.minScrollX,this.maxScrollX))}if(n){var h=Math.round(this.ratioY*o*this.translateYSign);a.y=w(h,Math.min(this.minScrollY,this.maxScrollY),Math.max(this.minScrollY,this.maxScrollY))}return a},t.prototype.destroy=function(){!1!==this.options.interactive&&(this.startEventRegister.destroy(),this.moveEventRegister.destroy(),this.endEventRegister.destroy()),this.hooksFn.forEach((function(t){var e=t[0],o=t[1],i=t[2];e.off(o,i)})),this.hooksFn.length=0},t}(),so=function(){function t(t){this.scroll=t,this.options=[],this.indicators=[],this.handleOptions(),this.handleHooks()}return t.prototype.handleOptions=function(){var t=this.scroll.options.indicators;p(Array.isArray(t),"'indicators' must be an array.");for(var e=0,o=t;e<o.length;e++){var i=o[e];p(!!i.relationElement,"'relationElement' must be a HTMLElement."),this.createIndicators(i)}},t.prototype.createIndicators=function(t){this.indicators.push(new io(this.scroll,t))},t.prototype.handleHooks=function(){var t=this,e=this.scroll.hooks;e.on(e.eventTypes.destroy,(function(){for(var e=0,o=t.indicators;e<o.length;e++){var i=o[e];i.destroy()}t.indicators=[]}))},t.pluginName="indicators",t}();e.Indicators=so,Ft.use(Nt).use(Wt).use(Jt).use(ee).use(se).use(ue).use(me).use(we).use(Le).use(Ve).use(_e).use(to).use(so);var ro=Ft;e.default=ro},fa1b:function(t,e,o){var i=o("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场（https://ext.dcloud.net.cn）上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者，建议你使用scss预处理，并在插件代码中直接使用这些变量（无需 import 这个文件），方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者（插件使用者），你可以通过修改这些变量来定制自己的插件主题，实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理，你也可以直接在你的 scss 代码中使用如下变量，同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.recommend[data-v-578bde3a]{padding-top:0;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.recommend .header[data-v-578bde3a]{height:8%;width:100%;background:#d81e06;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#fff;font-size:%?30?%;font-weight:700}.recommend .header .cate[data-v-578bde3a]{border-bottom:%?4?% solid transparent}.recommend .header .active[data-v-578bde3a]{border-bottom:%?4?% solid #fff}.recommend .content[data-v-578bde3a]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.recommend .content .listBox[data-v-578bde3a]{padding:%?10?% %?6?%}.recommend .content .listBox .title[data-v-578bde3a]{font-size:%?32?%;font-weight:700}.recommend .content .listBox .desc[data-v-578bde3a]{overflow:hidden;margin-top:2px;padding:0 2px;height:50px;text-align:left;font-size:%?24?%;line-height:1.4;color:#2e3030}.recommend .content .listBox .item[data-v-578bde3a]{position:relative}.recommend .content .listBox .listen[data-v-578bde3a]{position:absolute;top:%?4?%;right:%?10?%;color:#e7e7e7}',""]),t.exports=e}}]);