(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-304422ca"],{"0f7d":function(t,e,o){!function(e,i){t.exports=i(o("8bbf"),function(){try{return o(!function(){var t=new Error("Cannot find module 'hls.js'");throw t.code="MODULE_NOT_FOUND",t}())}catch(e){}}())}("undefined"!=typeof self&&self,(function(t,e){return function(t){function e(i){if(o[i])return o[i].exports;var n=o[i]={i:i,l:!1,exports:{}};return t[i].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var o={};return e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=15)}([function(t,e,o){"use strict";function i(t,e,o,i,n,a,r,s){t=t||{};var l=typeof t.default;"object"!==l&&"function"!==l||(t=t.default);var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=o,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId=a),r?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):n&&(c=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),c)if(u.functional){u._injectStyles=c;var p=u.render;u.render=function(t,e){return c.call(e),p(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:t,options:u}}e.a=i},function(t,e){function o(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var a=i(n);return[o].concat(n.sources.map((function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"}))).concat([a]).join("\n")}return[o].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=o(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},n=0;no.parts.length&&(i.parts.length=o.parts.length)}else{var a=[];for(n=0;n/g,"").replace(/^\s+|\s+$/g,"");if(a)for(var s=a.length,l=0;lu)return 1;if(n===u){if(a>p)return 1;if(a===p&&r>d)return 1}return-1}function a(t){return console.warn("[Vue-APlayer] "+t)}function r(t,e,o){return a("'"+t+"' is deprecated since v"+e+", and will be removed in future releases, use '"+o+"' instead")}function s(t){for(var e=t.offsetLeft,o=t.offsetParent,i=void 0;null!==o;)e+=o.offsetLeft,o=o.offsetParent;return i=document.body.scrollLeft+document.documentElement.scrollLeft,e-i}function l(t){for(var e=t.offsetTop,o=t.offsetParent,i=void 0;null!==o;)e+=o.offsetTop,o=o.offsetParent;return i=document.body.scrollTop+document.documentElement.scrollTop,e-i}e.d=i,e.e=n,e.f=a,e.a=r,e.b=s,e.c=l;var c=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,o){"use strict";function i(t){o(25)}var n=o(7),a=o(44),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);e=0,f={},m=null,g={NONE:"none",MUSIC:"music",LIST:"list",NO_REPEAT:"no-repeat",REPEAT_ONE:"repeat-one",REPEAT_ALL:"repeat-all"},v={name:"APlayer",disableVersionBadge:!1,components:{Thumbnail:r.a,Controls:l.a,MusicList:s.a,Lyrics:c.a},props:{music:{type:Object,required:!0,validator:function(t){return t.url&&Object(u.a)("music.url","1.4.0","music.src"),t.author&&Object(u.a)("music.author","1.4.1","music.artist"),t.src||t.url}},list:{type:Array,default:function(){return[]}},mini:{type:Boolean,default:!1},showLrc:{type:Boolean,default:!1},mutex:{type:Boolean,default:!0},theme:{type:String,default:"#41b883"},listMaxHeight:String,listFolded:{type:Boolean,default:!1},float:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},controls:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},preload:String,volume:{type:Number,default:.8,validator:function(t){return t>=0&&t<=1}},shuffle:{type:Boolean,default:!1},repeat:{type:String,default:g.NO_REPEAT},listmaxheight:{type:String,validator:function(t){return t&&Object(u.a)("listmaxheight","1.1.2","listMaxHeight"),!0}},narrow:{type:Boolean,default:!1,validator:function(t){return t&&Object(u.a)("narrow","1.1.2","mini"),!0}},showlrc:{type:Boolean,default:!1,validator:function(t){return t&&Object(u.a)("showlrc","1.2.2","showLrc"),!0}}},data:function(){return{internalMusic:this.music,isPlaying:!1,isSeeking:!1,wasPlayingBeforeSeeking:!1,isMobile:/mobile/i.test(window.navigator.userAgent),playStat:{duration:0,loadedTime:0,playedTime:0},showList:!this.listFolded,audioPlayPromise:Promise.resolve(),floatOriginX:0,floatOriginY:0,floatOffsetLeft:0,floatOffsetTop:0,selfAdaptingTheme:null,internalMuted:this.muted,internalVolume:this.volume,isLoading:!1,internalShuffle:this.shuffle,internalRepeat:this.repeat,shuffledList:[]}},computed:{audio:function(){return this.$refs.audio},currentMusic:{get:function(){return this.internalMusic},set:function(t){h&&this.$emit("update:music",t),this.internalMusic=t}},isMiniMode:function(){return this.mini||this.narrow},shouldShowLrc:function(){return this.showLrc||this.showlrc},currentTheme:function(){return this.selfAdaptingTheme||this.currentMusic.theme||this.theme},isFloatMode:function(){return this.float&&!this.isMobile},shouldAutoplay:function(){return!this.isMobile&&this.autoplay},musicList:function(){return this.list},shouldShowNativeControls:function(){return!1},floatStyleObj:function(){return{transform:"translate("+this.floatOffsetLeft+"px, "+this.floatOffsetTop+"px)",webkitTransform:"translate("+this.floatOffsetLeft+"px, "+this.floatOffsetTop+"px)"}},currentPicStyleObj:function(){return this.currentMusic&&this.currentMusic.pic?{backgroundImage:"url("+this.currentMusic.pic+")"}:{}},loadProgress:function(){return 0===this.playStat.duration?0:this.playStat.loadedTime/this.playStat.duration},playProgress:function(){return 0===this.playStat.duration?0:this.playStat.playedTime/this.playStat.duration},playIndex:{get:function(){return this.shuffledList.indexOf(this.currentMusic)},set:function(t){this.currentMusic=this.shuffledList[t%this.shuffledList.length]}},shouldRepeat:function(){return this.repeatMode!==g.NO_REPEAT},isAudioMuted:{get:function(){return this.internalMuted},set:function(t){h&&this.$emit("update:muted",t),this.internalMuted=t}},audioVolume:{get:function(){return this.internalVolume},set:function(t){h&&this.$emit("update:volume",t),this.internalVolume=t}},shouldShuffle:{get:function(){return this.internalShuffle},set:function(t){h&&this.$emit("update:shuffle",t),this.internalShuffle=t}},repeatMode:{get:function(){switch(this.internalRepeat){case g.NONE:case g.NO_REPEAT:return g.NO_REPEAT;case g.MUSIC:case g.REPEAT_ONE:return g.REPEAT_ONE;default:return g.REPEAT_ALL}},set:function(t){h&&this.$emit("update:repeat",t),this.internalRepeat=t}}},methods:{onDragBegin:function(){this.floatOriginX=this.floatOffsetLeft,this.floatOriginY=this.floatOffsetTop},onDragAround:function(t){var e=t.offsetLeft,o=t.offsetTop;this.floatOffsetLeft=this.floatOriginX+e,this.floatOffsetTop=this.floatOriginY+o},setNextMode:function(){this.repeatMode===g.REPEAT_ALL?this.repeatMode=g.REPEAT_ONE:this.repeatMode===g.REPEAT_ONE?this.repeatMode=g.NO_REPEAT:this.repeatMode=g.REPEAT_ALL},thenPlay:function(){var t=this;this.$nextTick((function(){t.play()}))},toggle:function(){this.audio.paused?this.play():this.pause()},play:function(){var t=this;this.mutex&&(m&&m!==this&&m.pause(),m=this);var e=this.audio.play();if(e)return this.audioPlayPromise=new Promise((function(o,i){t.rejectPlayPromise=i,e.then((function(e){t.rejectPlayPromise=null,o(e)})).catch(u.f)}))},pause:function(){var t=this;this.audioPlayPromise.then((function(){t.audio.pause()})).catch((function(){t.audio.pause()})),this.rejectPlayPromise&&(this.rejectPlayPromise(),this.rejectPlayPromise=null)},onProgressDragBegin:function(t){this.wasPlayingBeforeSeeking=this.isPlaying,this.pause(),this.isSeeking=!0,isNaN(this.audio.duration)||(this.audio.currentTime=this.audio.duration*t)},onProgressDragging:function(t){isNaN(this.audio.duration)?this.playStat.playedTime=0:this.audio.currentTime=this.audio.duration*t},onProgressDragEnd:function(t){this.isSeeking=!1,this.wasPlayingBeforeSeeking&&this.thenPlay()},toggleMute:function(){this.setAudioMuted(!this.audio.muted)},setAudioMuted:function(t){this.audio.muted=t},setAudioVolume:function(t){this.audio.volume=t,t>0&&this.setAudioMuted(!1)},getShuffledList:function(){if(!this.list.length)return[this.internalMusic];var t=[].concat(i(this.list));if(!this.internalShuffle||t.length<=1)return t;var e=t.indexOf(this.internalMusic);if(2===t.length&&-1!==e)return 0===e?t:[this.internalMusic,t[0]];for(var o=t.length-1;o>0;o--){var n=Math.floor(Math.random()*(o+1)),a=t[o];t[o]=t[n],t[n]=a}if(-1!==e&&0!==(e=t.indexOf(this.internalMusic))){var r=[t[e],t[0]];t[0]=r[0],t[e]=r[1]}return t},onSelectSong:function(t){this.currentMusic===t?this.toggle():(this.currentMusic=t,this.thenPlay())},onAudioPlay:function(){this.isPlaying=!0},onAudioPause:function(){this.isPlaying=!1},onAudioWaiting:function(){this.isLoading=!0},onAudioCanplay:function(){this.isLoading=!1},onAudioDurationChange:function(){1!==this.audio.duration&&(this.playStat.duration=this.audio.duration)},onAudioProgress:function(){this.audio.buffered.length?this.playStat.loadedTime=this.audio.buffered.end(this.audio.buffered.length-1):this.playStat.loadedTime=0},onAudioTimeUpdate:function(){this.playStat.playedTime=this.audio.currentTime},onAudioSeeking:function(){this.playStat.playedTime=this.audio.currentTime},onAudioSeeked:function(){this.playStat.playedTime=this.audio.currentTime},onAudioVolumeChange:function(){this.audioVolume=this.audio.volume,this.isAudioMuted=this.audio.muted},onAudioEnded:function(){this.repeatMode===g.REPEAT_ALL?(this.shouldShuffle&&this.playIndex===this.shuffledList.length-1&&(this.shuffledList=this.getShuffledList()),this.playIndex++,this.thenPlay()):this.repeatMode===g.REPEAT_ONE?this.thenPlay():(this.playIndex++,0!==this.playIndex?this.thenPlay():1===this.shuffledList.length&&(this.audio.currentTime=0))},initAudio:function(){var t=this;this.audio.controls=this.shouldShowNativeControls,this.audio.muted=this.muted,this.audio.preload=this.preload,this.audio.volume=this.volume,["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","interruptbegin","interruptend","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"].forEach((function(e){t.audio.addEventListener(e,(function(o){return t.$emit(e,o)}))})),this.audio.addEventListener("play",this.onAudioPlay),this.audio.addEventListener("pause",this.onAudioPause),this.audio.addEventListener("abort",this.onAudioPause),this.audio.addEventListener("waiting",this.onAudioWaiting),this.audio.addEventListener("canplay",this.onAudioCanplay),this.audio.addEventListener("progress",this.onAudioProgress),this.audio.addEventListener("durationchange",this.onAudioDurationChange),this.audio.addEventListener("seeking",this.onAudioSeeking),this.audio.addEventListener("seeked",this.onAudioSeeked),this.audio.addEventListener("timeupdate",this.onAudioTimeUpdate),this.audio.addEventListener("volumechange",this.onAudioVolumeChange),this.audio.addEventListener("ended",this.onAudioEnded),this.currentMusic&&(this.audio.src=this.currentMusic.src||this.currentMusic.url)},setSelfAdaptingTheme:function(){var t=this;if("pic"===(this.currentMusic.theme||this.theme)){var e=this.currentMusic.pic;if(f[e])this.selfAdaptingTheme=f[e];else try{(new ColorThief).getColorAsync(e,(function(o){var i=p(o,3),n=i[0],a=i[1],r=i[2];f[e]="rgb("+n+", "+a+", "+r+")",t.selfAdaptingTheme="rgb("+n+", "+a+", "+r+")"}))}catch(t){Object(u.f)("color-thief is required to support self-adapting theme")}}else this.selfAdaptingTheme=null}},watch:{music:function(t){this.internalMusic=t},currentMusic:{handler:function(t){this.setSelfAdaptingTheme();var e=t.src||t.url;if(/\.m3u8(?=(#|\?|$))/.test(e))if(this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL"))this.audio.src=e;else try{var i=o(66);i.isSupported()?(this.hls||(this.hls=new i),this.hls.loadSource(e),this.hls.attachMedia(this.audio)):(Object(u.f)("HLS is not supported on your browser"),this.audio.src=e)}catch(t){Object(u.f)("hls.js is required to support m3u8"),this.audio.src=e}else this.audio.src=e}},shouldShowNativeControls:function(t){this.audio.controls=t},isAudioMuted:function(t){this.audio.muted=t},preload:function(t){this.audio.preload=t},audioVolume:function(t){this.audio.volume=t},muted:function(t){this.internalMuted=t},volume:function(t){this.internalVolume=t},shuffle:function(t){this.internalShuffle=t},repeat:function(t){this.internalRepeat=t}},beforeCreate:function(){v.disableVersionBadge||d||(console.log("\n\n %c Vue-APlayer 1.6.1 %c vue-aplayer.js.org \n","color: #fff; background:#41b883; padding:5px 0;","color: #fff; background: #35495e; padding:5px 0;"),d=!0)},created:function(){this.shuffledList=this.getShuffledList()},mounted:function(){this.initAudio(),this.setSelfAdaptingTheme(),this.autoplay&&this.play()},beforeDestroy:function(){m===this&&(m=null),this.hls&&this.hls.destroy()}};e.a=v},function(t,e,o){"use strict";var i=o(4);e.a={components:{IconButton:i.a},props:{pic:String,theme:String,playing:{type:Boolean,default:!1},enableDrag:{type:Boolean,default:!1}},data:function(){return{hasMovedSinceMouseDown:!1,dragStartX:0,dragStartY:0}},computed:{currentPicStyleObj:function(){return this.pic?{backgroundImage:"url("+this.pic+")",backgroundColor:this.theme}:{}}},methods:{onDragBegin:function(t){this.enableDrag&&(this.hasMovedSinceMouseDown=!1,this.$emit("dragbegin"),this.dragStartX=t.clientX,this.dragStartY=t.clientY,document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp))},onDocumentMouseMove:function(t){this.hasMovedSinceMouseDown=!0,this.$emit("dragging",{offsetLeft:t.clientX-this.dragStartX,offsetTop:t.clientY-this.dragStartY})},onDocumentMouseUp:function(t){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousemove",this.onDocumentMouseMove),this.$emit("dragend")},onClick:function(){this.hasMovedSinceMouseDown||this.$emit("toggleplay")}}}},function(t,e,o){"use strict";var i=o(8);e.a={components:{Icon:i.a},props:["icon"]}},function(t,e,o){"use strict";var i=o(9),n=o(43),a=o(0),r=Object(a.a)(i.a,n.a,n.b,!1,null,null,null);e.a=r.exports},function(t,e,o){"use strict";var i=function(){function t(t,e){var o=[],i=!0,n=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(i=(r=s.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){n=!0,a=t}finally{try{!i&&s.return&&s.return()}finally{if(n)throw a}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=o(27),a=n.keys().reduce((function(t,e){var o=n(e),a=o.match(/^<\/path><\/svg>$/),r=i(a,3),s=(r[0],r[1]),l=r[2];return t[e.match(/^.*\/(.+?)\.svg$/)[1]]={viewBox:s,d:l},t}),{});e.a={props:["type"],computed:{svg:function(){return this.type,"prev"!==this.type&&this.type,a[this.type]||{}},style:function(){if("next"===this.type)return{transform:"rotate(180deg)"}}}}},function(t,e,o){"use strict";e.a={props:{show:{type:Boolean,default:!0},currentMusic:Object,musicList:{type:Array,default:function(){return[]}},playIndex:{type:Number,default:0},theme:String,listmaxheight:String},computed:{listHeightStyle:function(){return{height:33*this.musicList.length-1+"px",maxHeight:this.listmaxheight||""}}}}},function(t,e,o){"use strict";var i=o(4),n=o(53),a=o(57);e.a={components:{IconButton:i.a,VProgress:n.a,Volume:a.a},props:["shuffle","repeat","stat","theme","volume","muted"],computed:{loadProgress:function(){return 0===this.stat.duration?0:this.stat.loadedTime/this.stat.duration},playProgress:function(){return 0===this.stat.duration?0:this.stat.playedTime/this.stat.duration}},methods:{secondToTime:function(t){if(isNaN(t))return"00:00";var e=function(t){return t<10?"0"+t:""+t},o=Math.trunc(t/60),i=Math.trunc(t-60*o),n=Math.trunc(o/60),a=Math.trunc(t/60-60*Math.trunc(t/60/60));return t>=3600?e(n)+":"+e(a)+":"+e(i):e(o)+":"+e(i)}}}},function(t,e,o){"use strict";var i=o(3),n=o(8);e.a={components:{Icon:n.a},props:["loadProgress","playProgress","theme"],data:function(){return{thumbHovered:!1}},methods:{onThumbMouseDown:function(t){var e=this.$refs.barWrap.clientWidth,o=(t.clientX-Object(i.b)(this.$refs.barWrap))/e;o=o>0?o:0,o=o<1?o:1,this.$emit("dragbegin",o),document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp)},onDocumentMouseMove:function(t){var e=this.$refs.barWrap.clientWidth,o=(t.clientX-Object(i.b)(this.$refs.barWrap))/e;o=o>0?o:0,o=o<1?o:1,this.$emit("dragging",o)},onDocumentMouseUp:function(t){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousemove",this.onDocumentMouseMove);var e=this.$refs.barWrap.clientWidth,o=(t.clientX-Object(i.b)(this.$refs.barWrap))/e;o=o>0?o:0,o=o<1?o:1,this.$emit("dragend",o)},onThumbTouchStart:function(t){var e=this.$refs.barWrap.clientWidth,o=(t.clientX-Object(i.b)(this.$refs.barWrap))/e;o=o>0?o:0,o=o<1?o:1,this.$emit("dragbegin",o),document.addEventListener("touchmove",this.onDocumentTouchMove),document.addEventListener("touchend",this.onDocumentTouchEnd)},onDocumentTouchMove:function(t){var e=t.changedTouches[0],o=this.$refs.barWrap.clientWidth,n=(e.clientX-Object(i.b)(this.$refs.barWrap))/o;n=n>0?n:0,n=n<1?n:1,this.$emit("dragging",n)},onDocumentTouchEnd:function(t){document.removeEventListener("touchend",this.onDocumentTouchEnd),document.removeEventListener("touchmove",this.onDocumentTouchMove);var e=t.changedTouches[0],o=this.$refs.barWrap.clientWidth,n=(e.clientX-Object(i.b)(this.$refs.barWrap))/o;n=n>0?n:0,n=n<1?n:1,this.$emit("dragend",n)}}}},function(t,e,o){"use strict";var i=o(4),n=o(3);e.a={components:{IconButton:i.a},props:["volume","muted","theme"],computed:{volumeIcon:function(){return this.muted||this.volume<=0?"volume-off":this.volume>=1?"volume-up":"volume-down"}},methods:{adjustVolume:function(t){var e=(40-t.clientY+Object(n.c)(this.$refs.bar))/40;e=e>0?e:0,e=e<1?e:1,this.$emit("setvolume",e)},onBarMouseDown:function(){document.addEventListener("mousemove",this.onDocumentMouseMove),document.addEventListener("mouseup",this.onDocumentMouseUp)},onDocumentMouseMove:function(t){var e=(40-t.clientY+Object(n.c)(this.$refs.bar))/40;e=e>0?e:0,e=e<1?e:1,this.$emit("setvolume",e)},onDocumentMouseUp:function(t){document.removeEventListener("mouseup",this.onDocumentMouseUp),document.removeEventListener("mousemove",this.onDocumentMouseMove);var e=(40-t.clientY+Object(n.c)(this.$refs.bar))/40;e=e>0?e:0,e=e<1?e:1,this.$emit("setvolume",e)}}}},function(t,e,o){"use strict";var i=o(3);e.a={props:{currentMusic:{type:Object,required:!0},playStat:{type:Object,required:!0}},data:function(){return{displayLrc:"",currentLineIndex:0}},computed:{lrcLines:function(){return Object(i.d)(this.displayLrc)},currentLine:function(){return this.currentLineIndex>this.lrcLines.length-1?null:this.lrcLines[this.currentLineIndex]},transformStyle:function(){return{transform:"translateY("+16*-this.currentLineIndex+"px)",webkitTransform:"translateY("+16*-this.currentLineIndex+"px)"}}},methods:{applyLrc:function(t){/^https?:\/\//.test(t)?this.fetchLrc(t):this.displayLrc=t},fetchLrc:function(t){var e=this;fetch(t).then((function(t){return t.text()})).then((function(t){e.displayLrc=t}))},hideLrc:function(){this.displayLrc=""}},watch:{currentMusic:{immediate:!0,handler:function(t){this.currentLineIndex=0,t.lrc?this.applyLrc(t.lrc):this.hideLrc()}},"playStat.playedTime":function(t){for(var e=0;e=o[0]&&(!i||t'},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e){t.exports=''},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("svg",{style:t.style,attrs:{"xmlns:xlink":"http://www.w3.org/1999/xlink",height:"100%",version:"1.1",viewBox:t.svg.viewBox,width:"100%"}},[o("use",{attrs:{"xlink:href":"#aplayer-${type}"}}),t._v(" "),o("path",{staticClass:"aplayer-fill",attrs:{d:t.svg.d}})])},n=[]},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("button",{staticClass:"aplayer-icon",attrs:{type:"button"}},[o("icon",{attrs:{type:t.icon}})],1)},n=[]},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aplayer-pic",style:t.currentPicStyleObj,on:{mousedown:t.onDragBegin,click:t.onClick}},[o("div",{staticClass:"aplayer-button",class:t.playing?"aplayer-pause":"aplayer-play"},[o("icon-button",{class:t.playing?"aplayer-icon-pause":"aplayer-icon-play",attrs:{icon:t.playing?"pause":"play"}})],1)])},n=[]},function(t,e,o){"use strict";function i(t){o(47)}var n=o(10),a=o(49),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){var i=o(48);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o(2).default;n("7b9d1402",i,!0,{})},function(t,e,o){e=t.exports=o(1)(!1),e.push([t.i,".aplayer-list{overflow:hidden}.aplayer-list.slide-v-enter-active,.aplayer-list.slide-v-leave-active{-webkit-transition:height .5s ease;transition:height .5s ease;will-change:height}.aplayer-list.slide-v-enter,.aplayer-list.slide-v-leave-to{height:0!important}.aplayer-list ol{list-style-type:none;margin:0;padding:0;overflow-y:auto}.aplayer-list ol::-webkit-scrollbar{width:5px}.aplayer-list ol::-webkit-scrollbar-track{background-color:#f9f9f9}.aplayer-list ol::-webkit-scrollbar-thumb{border-radius:3px;background-color:#eee}.aplayer-list ol::-webkit-scrollbar-thumb:hover{background-color:#ccc}.aplayer-list ol:hover li.aplayer-list-light:not(:hover){background-color:inherit;-webkit-transition:inherit;transition:inherit}.aplayer-list ol:not(:hover) li.aplayer-list-light{-webkit-transition:background-color .6s ease;transition:background-color .6s ease}.aplayer-list ol li{position:relative;height:32px;line-height:32px;padding:0 15px;font-size:12px;border-top:1px solid #e9e9e9;cursor:pointer;-webkit-transition:all .2s ease;transition:all .2s ease;overflow:hidden;margin:0;text-align:start;display:-webkit-box;display:-ms-flexbox;display:flex}.aplayer-list ol li:first-child{border-top:none}.aplayer-list ol li.aplayer-list-light,.aplayer-list ol li:hover{background:#efefef}.aplayer-list ol li.aplayer-list-light .aplayer-list-cur{display:inline-block}.aplayer-list ol li .aplayer-list-cur{display:none;width:3px;height:22px;position:absolute;left:0;top:5px;-webkit-transition:background-color .3s;transition:background-color .3s}.aplayer-list ol li .aplayer-list-index{color:#666;margin-right:12px}.aplayer-list ol li .aplayer-list-title{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.aplayer-list ol li .aplayer-list-author{-ms-flex-negative:0;flex-shrink:0;color:#666;float:right}",""])},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("transition",{attrs:{name:"slide-v"}},[o("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"list",staticClass:"aplayer-list",style:t.listHeightStyle},[o("ol",{ref:"ol",style:t.listHeightStyle},t._l(t.musicList,(function(e,i){return o("li",{key:i,class:{"aplayer-list-light":e===t.currentMusic},on:{click:function(o){t.$emit("selectsong",e)}}},[o("span",{staticClass:"aplayer-list-cur",style:{background:t.theme}}),t._v(" "),o("span",{staticClass:"aplayer-list-index"},[t._v(t._s(i+1))]),t._v(" "),o("span",{staticClass:"aplayer-list-title"},[t._v(t._s(e.title||"Untitled"))]),t._v(" "),o("span",{staticClass:"aplayer-list-author"},[t._v(t._s(e.artist||e.author||"Unknown"))])])})))])])},n=[]},function(t,e,o){"use strict";function i(t){o(51)}var n=o(11),a=o(61),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){var i=o(52);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o(2).default;n("c97c1d8a",i,!0,{})},function(t,e,o){e=t.exports=o(1)(!1),e.push([t.i,".aplayer-controller,.aplayer-controller .aplayer-time{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.aplayer-controller .aplayer-time{height:17px;color:#999;font-size:11px;padding-left:7px}.aplayer-controller .aplayer-time .aplayer-volume-wrap{margin-left:4px;margin-right:4px}.aplayer-controller .aplayer-time .aplayer-icon{cursor:pointer;-webkit-transition:all .2s ease;transition:all .2s ease;margin-left:4px}.aplayer-controller .aplayer-time .aplayer-icon.inactive{opacity:.3}.aplayer-controller .aplayer-time .aplayer-icon .aplayer-fill{fill:#666}.aplayer-controller .aplayer-time .aplayer-icon:hover .aplayer-fill{fill:#000}.aplayer-controller .aplayer-time .aplayer-icon.aplayer-icon-menu{display:none}.aplayer-controller .aplayer-time .aplayer-volume-wrap+.aplayer-icon{margin-left:0}.aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-menu,.aplayer-controller .aplayer-time.aplayer-time-narrow .aplayer-icon-mode{display:none}",""])},function(t,e,o){"use strict";function i(t){o(54)}var n=o(12),a=o(56),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){var i=o(55);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o(2).default;n("6f66d8c5",i,!0,{})},function(t,e,o){e=t.exports=o(1)(!1),e.push([t.i,".aplayer-bar-wrap{margin:0 0 0 5px;padding:4px 0;cursor:pointer;-webkit-box-flex:1;-ms-flex:1;flex:1}.aplayer-bar-wrap .aplayer-bar{position:relative;height:2px;width:100%;background:#cdcdcd}.aplayer-bar-wrap .aplayer-bar .aplayer-loaded{position:absolute;left:0;top:0;bottom:0;background:#aaa;height:2px;-webkit-transition:all .5s ease;transition:all .5s ease;will-change:width}.aplayer-bar-wrap .aplayer-bar .aplayer-played{position:absolute;left:0;top:0;bottom:0;height:2px;-webkit-transition:background-color .3s;transition:background-color .3s;will-change:width}.aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{position:absolute;top:0;right:5px;margin-top:-5px;margin-right:-10px;width:10px;height:10px;border:1px solid;-webkit-transform:scale(.8);transform:scale(.8);will-change:transform;-webkit-transition:background-color .3s,border-color .3s,-webkit-transform .3s;transition:background-color .3s,border-color .3s,-webkit-transform .3s;transition:transform .3s,background-color .3s,border-color .3s;transition:transform .3s,background-color .3s,border-color .3s,-webkit-transform .3s;border-radius:50%;background:#fff;cursor:pointer;overflow:hidden}.aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb:hover{-webkit-transform:scale(1);transform:scale(1)}.aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb .aplayer-loading-icon{display:none;width:100%;height:100%}.aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb .aplayer-loading-icon svg{position:absolute;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;fill:#fff}.aplayer-loading .aplayer-bar-wrap .aplayer-bar .aplayer-thumb .aplayer-loading-icon{display:block}.aplayer-loading .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb{-webkit-transform:scale(1);transform:scale(1)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}",""])},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"barWrap",staticClass:"aplayer-bar-wrap",on:{mousedown:t.onThumbMouseDown,touchstart:t.onThumbTouchStart}},[o("div",{staticClass:"aplayer-bar"},[o("div",{staticClass:"aplayer-loaded",style:{width:100*t.loadProgress+"%"}}),t._v(" "),o("div",{staticClass:"aplayer-played",style:{width:100*t.playProgress+"%",background:t.theme}},[o("span",{ref:"thumb",staticClass:"aplayer-thumb",style:{borderColor:t.theme,backgroundColor:t.thumbHovered?t.theme:"#fff"},on:{mouseover:function(e){t.thumbHovered=!0},mouseout:function(e){t.thumbHovered=!1}}},[o("span",{staticClass:"aplayer-loading-icon",style:{backgroundColor:t.theme}},[o("icon",{attrs:{type:"loading"}})],1)])])])])},n=[]},function(t,e,o){"use strict";function i(t){o(58)}var n=o(13),a=o(60),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){var i=o(59);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o(2).default;n("28c86b36",i,!0,{})},function(t,e,o){e=t.exports=o(1)(!1),e.push([t.i,'.aplayer-volume-wrap{position:relative;cursor:pointer;z-index:0}.aplayer-volume-wrap:hover .aplayer-volume-bar-wrap{display:block}.aplayer-volume-wrap .aplayer-volume-bar-wrap{display:none;position:absolute;bottom:15px;left:-4px;right:-4px;height:40px;z-index:-1;-webkit-transition:all .2s ease;transition:all .2s ease}.aplayer-volume-wrap .aplayer-volume-bar-wrap:after{content:"";position:absolute;bottom:-16px;left:0;right:0;height:62px;background-color:#fff;-webkit-box-shadow:0 0 2px 0 rgba(0,0,0,.07),0 0 5px 0 rgba(0,0,0,.1);box-shadow:0 0 2px 0 rgba(0,0,0,.07),0 0 5px 0 rgba(0,0,0,.1)}.aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar{position:absolute;bottom:0;left:11px;width:5px;height:40px;background:#aaa;border-radius:2.5px;overflow:hidden;z-index:1}.aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume{position:absolute;bottom:0;left:0;right:0;-webkit-transition:height .1s ease,background-color .3s;transition:height .1s ease,background-color .3s;will-change:height}',""])},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aplayer-volume-wrap"},[o("icon-button",{class:"aplayer-icon-"+t.volumeIcon,attrs:{icon:t.volumeIcon},nativeOn:{click:function(e){t.$emit("togglemute")}}}),t._v(" "),o("div",{staticClass:"aplayer-volume-bar-wrap",on:{mousedown:t.onBarMouseDown}},[o("div",{ref:"bar",staticClass:"aplayer-volume-bar"},[o("div",{staticClass:"aplayer-volume",style:{height:t.muted?0:Math.trunc(100*t.volume)+"%",background:t.theme}})])])],1)},n=[]},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aplayer-controller"},[o("v-progress",{attrs:{loadProgress:t.loadProgress,playProgress:t.playProgress,theme:t.theme},on:{dragbegin:function(e){return t.$emit("dragbegin",e)},dragend:function(e){return t.$emit("dragend",e)},dragging:function(e){return t.$emit("dragging",e)}}}),t._v(" "),o("div",{staticClass:"aplayer-time"},[o("div",{staticClass:"aplayer-time-inner"},[t._v("\n - "),o("span",{staticClass:"aplayer-ptime"},[t._v(t._s(t.secondToTime(t.stat.playedTime)))]),t._v(" / "),o("span",{staticClass:"aplayer-dtime"},[t._v(t._s(t.secondToTime(t.stat.duration)))])]),t._v(" "),t.$parent.isMobile?t._e():o("volume",{attrs:{volume:t.volume,theme:t.theme,muted:t.muted},on:{togglemute:function(e){t.$emit("togglemute")},setvolume:function(e){return t.$emit("setvolume",e)}}}),t._v(" "),o("icon-button",{staticClass:"aplayer-icon-mode",class:{inactive:!t.shuffle},attrs:{icon:"shuffle"},nativeOn:{click:function(e){t.$emit("toggleshuffle")}}}),t._v(" "),o("icon-button",{staticClass:"aplayer-icon-mode",class:{inactive:"no-repeat"===t.repeat},attrs:{icon:"repeat-one"===t.repeat?"repeat-one":"repeat-all"},nativeOn:{click:function(e){t.$emit("nextmode")}}}),t._v(" "),o("icon-button",{staticClass:"aplayer-icon-menu",class:{inactive:!t.$parent.showList},attrs:{icon:"menu"},nativeOn:{click:function(e){t.$emit("togglelist")}}})],1)],1)},n=[]},function(t,e,o){"use strict";function i(t){o(63)}var n=o(14),a=o(65),r=o(0),s=i,l=Object(r.a)(n.a,a.a,a.b,!1,s,null,null);e.a=l.exports},function(t,e,o){var i=o(64);"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o(2).default;n("229083b6",i,!0,{})},function(t,e,o){e=t.exports=o(1)(!1),e.push([t.i,'.aplayer-lrc{position:relative;height:30px;text-align:center;overflow:hidden;margin-bottom:7px}.aplayer-lrc:before{top:0;height:10%;background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(hsla(0,0%,100%,0)));background:linear-gradient(180deg,#fff 0,hsla(0,0%,100%,0));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#00ffffff",GradientType=0)}.aplayer-lrc:after,.aplayer-lrc:before{position:absolute;z-index:1;display:block;overflow:hidden;width:100%;content:" "}.aplayer-lrc:after{bottom:0;height:33%;background:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,0)),to(hsla(0,0%,100%,.8)));background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,hsla(0,0%,100%,.8));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#00ffffff",endColorstr="#ccffffff",GradientType=0)}.aplayer-lrc p{font-size:12px;color:#666;line-height:16px;height:16px;padding:0;margin:0;-webkit-transition:all .5s ease-out;transition:all .5s ease-out;opacity:.4;overflow:hidden}.aplayer-lrc p.aplayer-lrc-current{opacity:1;overflow:visible;height:auto}.aplayer-lrc .aplayer-lrc-contents{width:100%;-webkit-transition:all .5s ease-out;transition:all .5s ease-out;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text;cursor:default}',""])},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aplayer-lrc"},[o("div",{staticClass:"aplayer-lrc-contents",style:t.transformStyle},t._l(t.lrcLines,(function(e,i){return o("p",{key:i,class:{"aplayer-lrc-current":i===t.currentLineIndex}},[t._v("\n "+t._s(e[1])+"\n ")])})))])},n=[]},function(t,o){if(void 0===e){var i=new Error('Cannot find module "undefined"');throw i.code="MODULE_NOT_FOUND",i}t.exports=e},function(t,e,o){"use strict";o.d(e,"a",(function(){return i})),o.d(e,"b",(function(){return n}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"aplayer",class:{"aplayer-narrow":t.isMiniMode,"aplayer-withlist":!t.isMiniMode&&t.musicList.length>0,"aplayer-withlrc":!t.isMiniMode&&(!!t.$slots.display||t.shouldShowLrc),"aplayer-float":t.isFloatMode,"aplayer-loading":t.isPlaying&&t.isLoading},style:t.floatStyleObj},[o("div",{staticClass:"aplayer-body"},[o("thumbnail",{attrs:{pic:t.currentMusic.pic,playing:t.isPlaying,"enable-drag":t.isFloatMode,theme:t.currentTheme},on:{toggleplay:t.toggle,dragbegin:t.onDragBegin,dragging:t.onDragAround}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:!t.isMiniMode,expression:"!isMiniMode"}],staticClass:"aplayer-info"},[o("div",{staticClass:"aplayer-music"},[o("span",{staticClass:"aplayer-title"},[t._v(t._s(t.currentMusic.title||"Untitled"))]),t._v(" "),o("span",{staticClass:"aplayer-author"},[t._v(t._s(t.currentMusic.artist||t.currentMusic.author||"Unknown"))])]),t._v(" "),t._t("display",[t.shouldShowLrc?o("lyrics",{attrs:{"current-music":t.currentMusic,"play-stat":t.playStat}}):t._e()],{currentMusic:t.currentMusic,playStat:t.playStat}),t._v(" "),o("controls",{attrs:{shuffle:t.shouldShuffle,repeat:t.repeatMode,stat:t.playStat,volume:t.audioVolume,muted:t.isAudioMuted,theme:t.currentTheme},on:{toggleshuffle:function(e){t.shouldShuffle=!t.shouldShuffle},togglelist:function(e){t.showList=!t.showList},togglemute:t.toggleMute,setvolume:t.setAudioVolume,dragbegin:t.onProgressDragBegin,dragend:t.onProgressDragEnd,dragging:t.onProgressDragging,nextmode:t.setNextMode}})],2)],1),t._v(" "),o("audio",{ref:"audio"}),t._v(" "),o("music-list",{attrs:{show:t.showList&&!t.isMiniMode,"current-music":t.currentMusic,"music-list":t.musicList,"play-index":t.playIndex,listmaxheight:t.listmaxheight||t.listMaxHeight,theme:t.currentTheme},on:{selectsong:t.onSelectSong}})],1)},n=[]}]).default}))},"12a5":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAvJJREFUaEPVl09rE0EUwN8bu5iAECooNl5zSaBNd76A4kWlF2tBxdabtgdvYr+BQqs9qOBBj82h4kfwpqIgZHeSInvKzdaLijkIE3WdJwMJhNg0u8ns7Jprht33m/d7fxYhI79SqXS0UCgoz/N+xwkJ4xxO6iznfBERF4ioo5TaaTQa76K+K3UAzvkaIt4HgOPdoD8qpS4IIT5HgUgTgLmuu4KIjxBxuhcsEX0nokUhxOtMA7iue4MxtgkAM/2BElEQhuH53d3dvcwCcM5XAWCj/+a7wX5FxEv1ej2zNaC1WUbExwPaECLuEdGy7/tvo9x874zVGhimDQB8UkqtCSFeAcCfTAIcpg0RXfZ9/33c4DWojQwY16Y/Q4kDdLXZAIDigBpja2MNgHN+CwA2D+o2k2hjAyBRbRIHSFqbRAEO00YptSSE0EMqVqs8rK2aLGLGOb8OAE8OGlJKqRUhxJs4PT7KWWMAnHO9mOndJpFuMwzGCIBtbUzWQCraGANISxsjAPPz8zcZYw8OGlJJdBuTNZC6NhNlQGvTXQ+sdhsjGciKNmNlYHZ2dtpxnJcAcA4R2cCN7EgpV4Mg+BFl+Jg8E2sOuK5bZIxtAcAVADjSFwgBwIswDNebzea+yQBHPSsWgH7Y3NzcScdxnup1eCATIRHVlFJ3Go1Ge9SLTf0fG0C/uFqtnp6amqoR0ZkBCJ2JZ1LKdVs6jQWgIcrl8kwul9tijF1NU6exAbKi00QAWdBpYoC0dTICkKZOxgD6dNomorO2upNRgDR0Mg5gW6dEAGzqlBiALZ0SBbChU+IAo3QiouedTufuuLuTFYCeTvl8/iEiXjO5O1kD0BCu655gjOlVfMnUKm4VoAuhP4r0Kv7PsBtHJ+sAGqJSqZzSq/gQnWpSyttRayIVgBE6fQOABc/zPkT5aksNYJhORPQFAC76vu9lHqCnUz6fv6eDBgAJANtSyo0gCH79FwBdiGOO4xQdxwnb7fZ+q9X6GSV4feYvuOApT/iv6JUAAAAASUVORK5CYII="},"80a5":function(t,e,o){},8580:function(t,e,o){t.exports=o.p+"img/ordericon.2d2b8865.png"},"8d6b":function(t,e,o){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",{ref:"mescroll",staticClass:"mescroll"},[e("div",[t._t("default")],2)])},n=[],a=o("f868"),r=o.n(a),s=(o("f2fd"),{name:"MeScrollVue",data:function(){return{mescroll:null,lastScrollTop:0,lastBounce:null}},props:{up:Object,down:Object},mounted:function(){this.mescroll=new r.a(this.$refs.mescroll,{up:this.up,down:this.down}),this.$emit("init",this.mescroll)},methods:{beforeRouteEnter(){this.mescroll&&(this.lastScrollTop&&(this.mescroll.setScrollTop(this.lastScrollTop),setTimeout(()=>{this.mescroll.setTopBtnFadeDuration(0)},16)),null!=this.lastBounce&&this.mescroll.setBounce(this.lastBounce))},beforeRouteLeave(){this.mescroll&&(this.lastScrollTop=this.mescroll.getScrollTop(),this.mescroll.hideTopBtn(0),this.lastBounce=this.mescroll.optUp.isBounce,this.mescroll.setBounce(!0))}}}),l=s,c=o("2877"),u=Object(c["a"])(l,i,n,!1,null,null,null);e["a"]=u.exports},aef2:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAApBJREFUOE+dlN9Lk1EYx7/PefcOQgutGHTRoqBCCKLf4b9gQVfrbhCaY76wZJEJgrxQKCEksbc5efVC6CJ2EVkUhBfrQgqCuugiBcW6EO3HjHAOcWfnPPGGg5m6Oc/VC+d7PjzvOZ/nIZSt4eHhswAyzLyHiGYBPGhsbEyHQqHV8lylbyrfdBznhGmaj5n5DBHtA/BFCJEoFosvo9HoLwBcDbwBaNu2LxAIBIUQN4ionZkPEtEfAB40ZVnW95qApfDIyMj+YrF4E0A7ER0FkAXwBMDA4uLiD9u29XbgDRWWh4aGhgI+n++qUqpTCHGSmZeVUs+11slsNvvZtu3iVtBtgV44k8n4ZmZmLjJzPzM3E5F3h+8B9EQikcmagaUDiUTivGmaXUTUAsDUWn9USt0rFAqZeDy+wYCKFZaA6XTaWFpaahJC3ALQsv5Y00qp3vr6+olwOJwvZXcELIVHR0f3SikjRNTFzA3MPA7gTjQa/bYroHfIdd0mpZRLRJe11p+EEOFIJDK9K+DY2NgBKeV1pdRdAIeY+bXWOt7R0TFXM9DTyDCMTiJq8+6QmX9qrb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M25H9nsjWoUzN+Zwan1lP9DqNo9GDzi8Va6on/VxEn0ybc3kedJeJDNSsxM+8gFtD9JacslaPdP+6/MC9D/YQ5+oQmEeuVCH6UEi3ZQCHGmGpK8K6QDGz5GtJY5f8QyECwN0Q+K9rcw+k3aYRJ9Oq436VTBc6ev+kJ+vb66doC3IG5l1v0RlZ5ueeMeTKgdW4d7fpmGt3Afeln1F2tvAe9sXtzh6yHMc1g/Idh/diDcz4xGtw07/Ss/uO3ah+34UZUn3xG93eG97D+t7msfCtFXxkCq/h3XKxf3wbJ7HCPwa2fPE+Rc5Udjzuxp99wH00H39rCq6mEZOszFVE1nlxbZ6Lu6sSvhpaZV68OTxQ8RqJV/xJk/tPPa72kiNrDjfMHwf/w+K1gycvp8lLQAAAABJRU5ErkJggg=="},bae3:function(t,e,o){"use strict";o("80a5")},be7ff:function(t,e,o){"use strict";o.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"coursebox"},[e("mescroll-vue",{staticClass:"coursemescroll",attrs:{down:t.mescrollDown,up:t.mescrollUp},on:{init:t.mescrollInit}},[e("div",{staticClass:"topimgbox relative"},["image"==t.type||"video"==t.type||"pdf"==t.type?e("div",{staticClass:"topcover",class:{bgopacity02:t.topscroll>250,bgopacity05:t.topscroll>300,bgopacity07:t.topscroll>400,bgopacity1:t.topscroll>450},style:{paddingTop:`calc(0.48rem + ${t.$store.state.safeHeight}px)`}},[e("img",{attrs:{src:o("ec85")},on:{click:t.backFunc}})]):t._e(),"audio"==t.type?e("div",{staticClass:"topcover",staticStyle:{background:"#fff"},style:{paddingTop:`calc(0.48rem + ${t.$store.state.safeHeight}px)`}},[e("img",{attrs:{src:o("12a5")},on:{click:t.backFunc}})]):t._e(),"image"==t.type&&t.courseobj?e("img",{staticClass:"mainimg",attrs:{src:t.courseobj.file}}):t._e(),"video"==t.type?e("div",{staticClass:"videobox"},[e("video",{ref:"videoPlayer",staticClass:"video-js vjs-default-skin vjs-big-play-centered",staticStyle:{width:"100%",height:"100%","object-fit":"contain"},attrs:{"x5-video-player-type":"h5-page",playsinline:"","webkit-playsinline":""}})]):t._e(),"audio"==t.type&&t.courseobj?e("div",{staticClass:"audiobox"},[e("aplayer",{attrs:{autoplay:"",music:{mini:!0,title:"音频",artist:" ",src:t.courseobj.file,theme:"#fff",pic:"none"}}})],1):t._e(),"pdf"==t.type?e("div",{staticClass:"pdfbox"},[e("div",{attrs:{id:"pdfdemo"}})]):t._e()]),e("div",{staticClass:"coursemsgbox"},[e("div",{staticClass:"clearfix coursetitbox"},[e("div",{staticClass:"pull-left coursetit lh40 font33 color333"},[t._v(t._s(t.courseobj?t.courseobj.title:""))]),e("div",{staticClass:"pull-left labelbox"},[t._v(t._s(t.courseobj?t.courseobj.type_id:""))])]),e("div",{staticClass:"studypersonbox clearfix"},[e("div",{staticClass:"pull-left width33_3 left"},[t._v("学习人数:"+t._s(t.courseobj.train_count))]),e("div",{staticClass:"pull-left width33_3 center"},[t._v("完成人数:"+t._s(t.courseobj.complete_count))]),e("div",{staticClass:"pull-left width33_3 right"},[t._v("未开始人数:"+t._s(t.courseobj.no_count))])])]),e("div",{staticClass:"clearfix catalogue"},[e("div",{staticClass:"pull-left leftcata"},[t._v("目录")]),e("div",{staticClass:"pull-right rightcata",on:{click:t.backFunc}},[e("span",{staticClass:"pull-left"},[t._v("共"+t._s(t.courselist.length)+"节")]),e("img",{staticClass:"pull-left",attrs:{src:o("aef2")}})])]),e("div",{staticClass:"cataloguebox clearfix"},[e("div",{staticClass:"cataloguediv"},t._l(t.courselist,(function(i,n){return e("div",{key:i.id,staticClass:"everycatalogue",class:{nowcata:i.is_now},on:{click:function(e){return t.setcoursetap(i)}}},[e("div",{staticClass:"catatext ellipsisTwo"},[t._v(t._s(1*n+1)+"."+t._s(i.title))]),e("div",{staticClass:"catatype"},[t._v(" "+t._s("image"==i.type?"图文":"video"==i.type?"视频":"audio"==i.type?"音频":"PDF")+"课程"+t._s(i.is_now?"| 正在学习":"")+" "),e("img",{directives:[{name:"show",rawName:"v-show",value:!i.is_now&&0==i.lastlooked&&"order"==t.courseobj.class_type,expression:"!item.is_now&&item.lastlooked == 0&&courseobj.class_type=='order'"}],staticClass:"orderimg",attrs:{src:o("8580")}})])])})),0)]),e("div",{staticClass:"htmlbox",domProps:{innerHTML:t._s(t.courseobj.content)}}),e("div",{staticClass:"commentbox"},[e("div",{staticClass:"commentit"},[t._v("文章评论"),e("span",[t._v("("+t._s(t.courseobj.comment_count)+"条)")])]),e("div",{staticClass:"comment"},[t._l(t.commentarr,(function(i,n){return e("div",{key:"s"+i.id,staticClass:"everycomment clearfix"},[e("img",{directives:[{name:"show",rawName:"v-show",value:!i.headimg,expression:"!item.headimg"}],staticClass:"pull-left headimg",attrs:{src:o("ee87")}}),e("img",{directives:[{name:"show",rawName:"v-show",value:i.headimg,expression:"item.headimg"}],staticClass:"pull-left headimg",attrs:{src:i.headimg}}),e("div",{staticClass:"pull-left commentperson"},[e("div",{staticClass:"personbox relative"},[e("div",{staticClass:"persontit ellipsis"},[t._v(t._s(i.nickname))]),e("div",{staticClass:"sendtimebox"},[t._v(t._s(i.addtime))]),e("div",{staticClass:"likebox",on:{click:function(e){return t.liketap(i.id,n)}}},[i.thumblog?e("img",{staticClass:"pull-left",attrs:{src:o("b74a")}}):t._e(),i.thumblog?t._e():e("img",{staticClass:"pull-left",attrs:{src:o("e538")}}),e("span",{staticClass:"pull-left"},[t._v(t._s(i.thumb))])])]),e("div",{staticClass:"commentcontent"},[t._v(t._s(i.content))])])])})),e("nonedata",{attrs:{len:t.commentarr.length,datashow:t.datashow}})],2)])]),e("div",{staticClass:"setcommentbox",on:{click:t.setcommentap}},[e("div",{staticClass:"ellipsisThree"},[t._v(t._s(t.commentmsg?t.commentmsg:"我要评论~"))])]),e("xqloading",{directives:[{name:"show",rawName:"v-show",value:t.loadFlag,expression:"loadFlag"}]}),t.commentflag?e("div",{staticClass:"footcomment",on:{click:function(e){t.commentflag=!1}}},[e("div",{staticClass:"footer",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"relative clearfix"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentmsg,expression:"commentmsg"}],ref:"textarea",staticClass:"pull-left",attrs:{rows:t.rownum},domProps:{value:t.commentmsg},on:{input:function(e){e.target.composing||(t.commentmsg=e.target.value)}}}),e("button",{staticClass:"pull-left",on:{click:t.sendtap}},[t._v("发送")])])])]):t._e()],1)},n=[],a=o("f0b1"),r=o("0f7d"),s=o.n(r),l=o("8d6b"),c=o("5880"),u=o("edb5");let p=0,d=null;var h={data(){return{loadFlag:!0,datashow:!1,type:"image",cid:"",zid:"",player:null,courseobj:{},courselist:[],topscroll:0,mescroll:null,mescrollDown:{},mescrollUp:{auto:!1,callback:this.commentfun,onScroll:this.onScroll,page:{num:0,size:20},htmlLoading:"",htmlNodata:"",noMoreSize:0},commentarr:[],commentmsg:"",rownum:1,commentflag:!1,timeout:"",time:0,isBoutique:""}},components:{MescrollVue:l["a"],nonedata:u["a"],Aplayer:s.a},watch:{commentmsg(t){let e=this.$refs.textarea.clientHeight,o=this.$refs.textarea.scrollHeight;o>e&&this.rownum<=2&&(this.rownum=1*this.rownum+1)}},methods:{...Object(c["mapMutations"])(["setToken","setSafeHeight"]),readfun:function(){let t=this;clearInterval(t.timeout);let e={course_id:t.zid,class_id:t.cid,alertshow:1524,study_time:p};Object(a["f"])(e).then(e=>{t.trainlistfun()})},detailfun(){const t=this;let e={class_id:this.cid,course_id:this.zid};Object(a["e"])(e).then(e=>{0==e.data.code&&(t.type=e.data.data.type,t.courseobj=e.data.data,t.trainlistfun(),t.$nextTick(o=>{"video"==t.type?t.videoinit():"pdf"==t.type&&(this.pdfh5=new Pdfh5("#pdfdemo",{pdfurl:t.courseobj.file,renderType:"svg",maxZoom:2,zoomEnable:!0})),0!=e.data.data.study_time&&0==t.time&&(t.time=60*e.data.data.study_time,t.timeout=setInterval((function(){t.time--,t.time<=0&&(clearInterval(t.timeout),t.readfun(),t.time=0)}),1e3))}))})},trainlistfun(){const t=this;let e={class_id:this.cid,course_id:this.zid,page:1};Object(a["m"])(e).then(e=>{if(0==e.data.code&&(this.courselist=e.data.data,"order"==t.courseobj.class_type)){let t=e.data.data;for(let e=0;e2&&1==t[e-1].done_state&&1==t[e-2].done_state||0==t[e-1].done_state&&1==t[e].done_state?t[e].lastlooked=1:e>2&&0==t[e-2].done_state&&1==t[e-1].done_state?t[e].lastlooked=0:1==t[e-1].done_state?t[e].lastlooked=1:t[e].lastlooked=0;this.courselist=t}})},mescrollInit(t){this.mescroll=t},commentfun(t,e){const o=this;let i={page:t.num,course_id:o.zid,class_id:o.cid};Object(a["o"])(i).then(i=>{0==i.data.code&&(1==t.num&&(o.commentarr=[]),o.commentarr=o.commentarr.concat(i.data.data),o.datashow=!0,o.$nextTick(()=>{e.endSuccess(i.data.data.length)})),setTimeout(t=>{o.loadFlag=!1},600)})},videoinit(){const t=this;this.player=videojs(this.$refs.videoPlayer,{autoplay:!0,controls:!0,width:window.innerWidth,poster:t.courseobj.video_img?t.courseobj.video_img:t.courseobj.file+"?x-oss-process=video/snapshot,t_100,f_jpg,w_500,m_fast",height:250,preload:"auto",src:t.courseobj.file,sources:[{src:t.courseobj.file}]},()=>{this.player.log("onPlayerReady",this)})},onScroll(t,e,o){this.topscroll=e},setcommentap(){this.commentflag=!0,this.$nextTick(t=>{this.$refs.textarea.focus()})},sendtap(){const t=this;if(!t.commentmsg)return t.$toast("总结不能为空!"),!1;const e=t.$toast.loading({duration:0,message:"加载中...",forbidClick:!0});let o={course_id:t.zid,class_id:t.cid,content:t.commentmsg,read_status:0!=t.courseobj.comment_word_num&&(0==t.courseobj.study_time||t.time<=0),study_time:p};this.isBoutique?Object(a["a"])(o).then(o=>{e.clear(),"0"==o.data.code&&(t.commentmsg="",t.$toast("总结添加成功!"),t.mescroll.resetUpScroll())}):Object(a["c"])(o).then(o=>{e.clear(),"0"==o.data.code&&(t.commentmsg="",t.$toast("总结添加成功!"),t.mescroll.resetUpScroll())})},liketap(t,e){const o=this;let i={sumup_id:t};Object(a["l"])(i).then(t=>{if("0"==t.data.code){let i=o.commentarr;t.data.msg.includes("取消点赞")?(i[e].thumb--,i[e].thumblog=!1):(i[e].thumb++,i[e].thumblog=!0),o.commentarr=i}})},setcoursetap(t){if(!t.is_now){if(0==t.lastlooked)return this.$toast("请先阅读上一章节!"),!1;const e=this;this.zid=t.id,this.loadFlag=!0,this.type="",e.courseobj={},this.detailfun(),this.trainlistfun(),p=0,this.topscroll=0,e.mescroll.resetUpScroll()}},coureseView(){Object(a["d"])({course_id:this.zid,time:p}).then(t=>{}),Object(a["b"])({class_id:this.cid,course_id:this.zid,time:p}).then(t=>{})},backFunc(){window.android?window.android.backPageVC():window.webkit.messageHandlers.backPageVC.postMessage("nil")}},created(){p=0,this.isBoutique=this.$route.query.type?this.$route.query.type:"",window.android?(window.android.loadUserTrain(),window.android.safeArea()):window.webkit&&window.webkit.messageHandlers&&(window.webkit.messageHandlers.loadUser||window.webkit.messageHandlers.safeArea)&&(window.webkit.messageHandlers.loadUser.postMessage("nil"),window.webkit.messageHandlers.safeArea.postMessage("safeArea"))},mounted(){const t=this;this.$route.query.cid&&(t.cid=this.$route.query.cid),this.$route.query.zid&&(t.zid=this.$route.query.zid,t.detailfun(),t.mescroll.resetUpScroll()),window.LoadtrainData=function(e,o,i){t.cid=e,t.zid=o,t.setToken(i),t.detailfun(),t.mescroll.resetUpScroll()},window.safeAreaHeight=function(e,o){t.setSafeHeight(parseInt(e))},window.viewDidAppear=function(){},window.viewDidDisappear=function(){clearTimeout(t.timeout),clearInterval(d),t.coureseView(),p=0},p=0,d=setInterval(()=>{p=1*p+1},1e3),setTimeout(()=>{window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.loadfinish?window.webkit.messageHandlers.loadfinish.postMessage("nil"):window.android&&window.android.loadVRfinish()},1e3)},destroyed(){clearTimeout(this.timeout),clearInterval(d),this.coureseView(),p=0}},f=h,m=(o("bae3"),o("2877")),g=Object(m["a"])(f,i,n,!1,null,"55384c12",null);e["default"]=g.exports},e538:function(t,e,o){t.exports=o.p+"img/likeicon.d7f6583d.png"},ec85:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAnxJREFUaEPVmT2vDVEUhp83QiI0aPArdCoFIhrCbVS+b4NEq/AHfFQoKRRCg0LlSjQiIVHdKIUECRLRKXwkLFnJvsnOyTB75uyPMdUp5px5nzXPXrP2GdH4MLNVwA7gBPAVuCbpVWospZ5Y4jwzWwMcBy4CG8I1XgALkj6mXLMZQKj8InAB2BiF/QwckvRksgAh/AJwPar8St6XwH5J7ycJELQ5BlzqCP8aOC3pcUp4P6eqQqHyJ4PzsTaexcMflfQ8NXxVgB5t3obKLw0JXw0gQZuzwCNJNjmAEtrEkEXXQAh/ELjRsWDfAackDdamCkCPNm8A12ZpjDbFAXq08fBHhnabv62N7AolaON9/uHQxVoFIGhzFLjc4Xw2bYooFGnjs82mmYpl1SY7QKSNzzazT1jvNlm1yQoQaeOzzWz4ItpkA0jQxmebZ7kWbNfvjO5CIfyB8JCqqs3cd8DMVgMrI3F1beYCCJX3/atvA7u6TXFtRgNMRZtRAFPSZizAWuC2/2PQ0Q2eAnsk/SjZcebuQma2HrgP7AR8IcfHXeCMpC81IQa3UTPbClwBfM6PIX6GO3SuJsRgAK+umW0BbgJ7Z6rtEA+Aw5L8c/FjFECAWBd02tVSp9EA0Z242lKnuQCmoNPcAK11ygLQUqdsAK10ygrQQqfsANGd8Iedjx1FH3ZFAGrqVAyglk5FAWroVBygtE5VAErqVA0gQGwGfHbK1p2qApTQqTpApNM9YHfHKH4HWJT0PWUz0QSgR6dPPp5L8jf2vUczgH/o9AHYJ2m5N33t98RdgczMd3auzXbgF3ALOC/p938BEK2JbcA3YDk1vH+3qUIpFe475w+z8S1A0olT9gAAAABJRU5ErkJggg=="},ee87:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhE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0sozInyfpNEcvsdLCDRf7vt3cQ9/Ed97WMRdUC2xunovuJ1YrRPelsvlft7Y2Ngn7uYWE9/OA9b9fiwt9fDs7Ow/RdQPZZArht2qsWqELufTGxZxo3BnfX39dnkYW4TXCrvk/wvCpmw26w+sFyQlnhGOiZij0lKPCweE/eISPhd+Mb+IVNj3PwEGAPMht4jVQg6GAAAAAElFTkSuQmCC"},f0b1:function(t,e,o){"use strict";o.d(e,"e",(function(){return n})),o.d(e,"m",(function(){return a})),o.d(e,"o",(function(){return r})),o.d(e,"l",(function(){return s})),o.d(e,"c",(function(){return l})),o.d(e,"a",(function(){return c})),o.d(e,"f",(function(){return u})),o.d(e,"d",(function(){return p})),o.d(e,"g",(function(){return d})),o.d(e,"b",(function(){return h})),o.d(e,"n",(function(){return f})),o.d(e,"i",(function(){return m})),o.d(e,"h",(function(){return g})),o.d(e,"k",(function(){return v})),o.d(e,"j",(function(){return y}));var i=o("b775");function n(t){return Object(i["a"])({url:"/mobile/train/courseDetail",method:"post",data:t})}function a(t){return Object(i["a"])({url:"/mobile/train/trainCourseList",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/mobile/train/watchFeel",method:"post",data:t})}function s(t){return Object(i["a"])({url:"/mobile/train/thumbing",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/mobile/train/commentAdd",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/mobile/train/boutiqueCommentAdd",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/mobile/train/doneLogging",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/mobile/train/coureseView",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/mobile/train/getCourseEmployee",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/mobile/train/classView",method:"post",data:t})}function f(t){return Object(i["a"])({url:"/mobile/train/all_org",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/mobile/lecturer/read",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/mobile/lecturer/collor",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/mobile/lecturer/trainList",method:"post",data:t})}function y(t){return Object(i["a"])({url:"/mobile/lecturer/recommendList",method:"post",data:t})}},f2fd:function(t,e,o){},f868:function(t,e,o){var i,n;(function(a,r){i=r,n="function"===typeof i?i.call(e,o,e,t):i,void 0===n||(t.exports=n)})(0,(function(){var t=function(t,e){var o=this;if(o.version="1.4.0",o.isScrollBody=!t||"body"===t,o.scrollDom=o.isScrollBody?document.body:o.getDomById(t),o.scrollDom){o.options=e||{};var i=navigator.userAgent,n=!!i.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),a="undefined"===typeof window.orientation,r=i.indexOf("Android")>-1||i.indexOf("Adr")>-1;o.os={ios:n,pc:a,android:r},o.isDownScrolling=!1,o.isUpScrolling=!1;var s=o.options.down&&o.options.down.callback;o.initDownScroll(),o.initUpScroll(),setTimeout((function(){o.optDown.use&&o.optDown.auto&&s&&(o.optDown.autoShowLoading?o.triggerDownScroll():o.optDown.callback&&o.optDown.callback(o)),o.optUp.use&&o.optUp.auto&&!o.isUpAutoLoad&&o.triggerUpScroll()}),30)}};return t.prototype.extendDownScroll=function(e){t.extend(e,{use:!0,auto:!0,autoShowLoading:!1,isLock:!1,isBoth:!1,offset:80,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,hardwareClass:"mescroll-hardware",mustToTop:!1,warpId:null,warpClass:"mescroll-downwarp",resetClass:"mescroll-downwarp-reset",textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",htmlContent:'

',inited:function(t,e){t.downTipDom=e.getElementsByClassName("downwarp-tip")[0],t.downProgressDom=e.getElementsByClassName("downwarp-progress")[0]},inOffset:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textInOffset),t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},outOffset:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textOutOffset)},onMoving:function(t,e,o){if(t.downProgressDom){var i=360*e;t.downProgressDom.style.webkitTransform="rotate("+i+"deg)",t.downProgressDom.style.transform="rotate("+i+"deg)"}},beforeLoading:function(t,e){return!1},showLoading:function(t){t.downTipDom&&(t.downTipDom.innerHTML=t.optDown.textLoading),t.downProgressDom&&t.downProgressDom.classList.add("mescroll-rotate")},afterLoading:function(t){return 0},callback:function(t){t.resetUpScroll()}})},t.prototype.extendUpScroll=function(e){var o=this.os.pc;t.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!1,isBounce:!0,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:100,toTop:{warpId:null,src:null,html:null,offset:1e3,warpClass:"mescroll-totop",showClass:"mescroll-fade-in",hideClass:"mescroll-fade-out",fadeDuration:.5,duration:300,supportTap:!1,btnClick:null},loadFull:{use:!1,delay:500},empty:{warpId:null,icon:null,tip:"暂无相关数据~",btntext:"",btnClick:null,supportTap:!1},clearId:null,clearEmptyId:null,hardwareClass:"mescroll-hardware",warpId:null,warpClass:"mescroll-upwarp",htmlLoading:'

加载中..

',htmlNodata:'

-- END --

',inited:function(t,e){},showLoading:function(t,e){e.innerHTML=t.optUp.htmlLoading},showNoMore:function(t,e){e.innerHTML=t.optUp.htmlNodata},onScroll:null,scrollbar:{use:o,barClass:"mescroll-bar"},lazyLoad:{use:!1,attr:"imgurl",showClass:"mescroll-lazy-in",delay:500,offset:200}})},t.extend=function(e,o){if(!e)return o;for(var i in o)null==e[i]?e[i]=o[i]:"object"===typeof e[i]&&t.extend(e[i],o[i]);return e},t.prototype.initDownScroll=function(){var t=this;if(t.optDown=t.options.down||{},t.extendDownScroll(t.optDown),t.touchstartEvent=function(e){t.isScrollTo&&t.preventDefault(e),t.startPoint=t.getPoint(e),t.lastPoint=t.startPoint,t.maxTouchmoveY=t.getBodyHeight()-t.optDown.bottomOffset,t.inTouchend=!1;var o=t.getScrollTop();t.isKeepTop=0===o,t.os.pc&&o<=0&&(t.scrollDom.addEventListener("mousemove",t.touchmoveEvent,{passive:!1}),document.ondragstart=function(){return!1})},t.scrollDom.addEventListener("mousedown",t.touchstartEvent),t.scrollDom.addEventListener("touchstart",t.touchstartEvent),t.touchmoveEvent=function(e){if(t.startPoint){var o=t.getScrollTop();o>0&&(t.isKeepTop=!1);var i=t.getPoint(e),n=i.y-t.startPoint.y;if(n>0){if(o<=0&&(t.preventDefault(e),t.optDown.use&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth))){if(t.optDown.mustToTop&&!t.isKeepTop)return;var a=Math.abs(t.lastPoint.x-i.x),r=Math.abs(t.lastPoint.y-i.y),s=Math.sqrt(a*a+r*r);if(0!==s){var l=Math.asin(r/s)/Math.PI*180;if(l0&&i.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();var c=i.y-t.lastPoint.y;t.downHight||(t.downHight=0),t.downHight0?c*t.optDown.outOffsetRate:c),t.downwarp.style.height=t.downHight+"px";var u=t.downHight/t.optDown.offset;t.optDown.onMoving(t,u,t.downHight)}}else if(n<0){var p=t.getScrollHeight(),d=t.getClientHeight(),h=p-d-o;!t.optUp.isBounce&&h<=0&&t.preventDefault(e),t.optUp.use&&!t.optUp.isLock&&t.optUp.hasNext&&!t.isUpScrolling&&(!t.isDownScrolling||t.isDownScrolling&&t.optDown.isBoth)&&(d+t.optUp.offset>=p||h<=0)&&t.triggerUpScroll()}t.lastPoint=i}},t.scrollDom.addEventListener("touchmove",t.touchmoveEvent,{passive:!1}),t.touchendEvent=function(){t.optDown.use&&t.isMoveDown&&(t.downHight>=t.optDown.offset?t.triggerDownScroll():(t.downwarp.classList.add(t.optDown.resetClass),t.downHight=0,t.downwarp.style.height=0),t.isSetScrollAuto&&(t.scrollDom.style.webkitOverflowScrolling="touch",t.scrollDom.classList.remove(t.optDown.hardwareClass),t.isSetScrollAuto=!1),t.movetype=0,t.isMoveDown=!1),t.os.pc&&(t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),document.ondragstart=function(){return!0})},t.scrollDom.addEventListener("mouseup",t.touchendEvent),t.scrollDom.addEventListener("mouseleave",t.touchendEvent),t.scrollDom.addEventListener("touchend",t.touchendEvent),t.scrollDom.addEventListener("touchcancel",t.touchendEvent),t.optDown.use){t.downwarp=document.createElement("div"),t.downwarp.className=t.optDown.warpClass,t.downwarp.innerHTML='
'+t.optDown.htmlContent+"
";var e=t.optDown.warpId?t.getDomById(t.optDown.warpId):t.scrollDom;t.optDown.warpId&&e?e.appendChild(t.downwarp):(e||(e=t.scrollDom),e.insertBefore(t.downwarp,t.scrollDom.firstChild)),setTimeout((function(){t.optDown.inited(t,t.downwarp)}),0)}},t.prototype.preventDefault=function(t){t&&t.cancelable&&!t.defaultPrevented&&t.preventDefault()},t.prototype.getPoint=function(t){return{x:t.touches?t.touches[0].pageX:t.clientX,y:t.touches?t.touches[0].pageY:t.clientY}},t.prototype.triggerDownScroll=function(){this.optDown.beforeLoading(this,this.downwarp)||(this.showDownScroll(),this.optDown.callback&&this.optDown.callback(this))},t.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.showLoading(this),this.downHight=this.optDown.offset,this.downwarp.classList.add(this.optDown.resetClass),this.downwarp.style.height=this.optDown.offset+"px"},t.prototype.endDownScroll=function(){var t=this,e=function(){t.downHight=0,t.downwarp.style.height=0,t.isDownScrolling=!1,t.downProgressDom&&t.downProgressDom.classList.remove("mescroll-rotate")},o=t.optDown.afterLoading(t);"number"===typeof o&&o>0?setTimeout(e,o):e()},t.prototype.lockDownScroll=function(t){null==t&&(t=!0),this.optDown.isLock=t},t.prototype.initUpScroll=function(){var t,e=this;(e.optUp=e.options.up||{use:!1},e.extendUpScroll(e.optUp),e.optUp.scrollbar.use&&e.scrollDom.classList.add(e.optUp.scrollbar.barClass),e.optUp.isBounce||e.setBounce(!1),!1!==e.optUp.use)&&(e.optUp.hasNext=!0,e.upwarp=document.createElement("div"),e.upwarp.className=e.optUp.warpClass,e.optUp.warpId&&(t=e.getDomById(e.optUp.warpId)),t||(t=e.scrollDom),t.appendChild(e.upwarp),e.preScrollY=0,e.lazyStartTime=(new Date).getTime(),e.lazyTag="mescroll-lazying",e.scrollEvent=function(){var t=e.getScrollTop(),o=t-e.preScrollY>0;if(e.preScrollY=t,!e.isUpScrolling&&(!e.isDownScrolling||e.isDownScrolling&&e.optDown.isBoth)&&!e.optUp.isLock&&e.optUp.hasNext){var i=e.getScrollHeight()-e.getClientHeight()-t;i<=e.optUp.offset&&o&&e.triggerUpScroll()}var n=e.optUp.toTop;if((n.src||n.html)&&(t>=n.offset?e.showTopBtn():e.hideTopBtn()),e.optUp.lazyLoad.use){var a=(new Date).getTime();e.lazyTimer&&clearTimeout(e.lazyTimer),a-e.lazyStartTime>=e.optUp.lazyLoad.delay?(e.lazyStartTime=a,e.lazyLoad(0)):e.lazyTimer=e.lazyLoad()}e.optUp.onScroll&&e.optUp.onScroll(e,t,o)},e.isScrollBody?window.addEventListener("scroll",e.scrollEvent):e.scrollDom.addEventListener("scroll",e.scrollEvent),setTimeout((function(){e.optUp.inited(e,e.upwarp)}),0))},t.prototype.setBounce=function(t){!this.isScrollBody&&this.os.ios&&(!1===t?(this.optUp.isBounce=!1,window.addEventListener("touchmove",this.bounceTouchmove,{passive:!1})):(this.optUp.isBounce=!0,window.removeEventListener("touchmove",this.bounceTouchmove)))},t.prototype.bounceTouchmove=function(t){var e=this,o=t.target,i=!0;while(o!==document.body&&o!==document){var n=o.classList;if(n){if(n.contains("mescroll")||n.contains("mescroll-touch")){i=!1;break}if(n.contains("mescroll-touch-x")||n.contains("mescroll-touch-y")){var a=t.touches?t.touches[0].pageX:t.clientX,r=t.touches?t.touches[0].pageY:t.clientY;e.preWinX||(e.preWinX=a),e.preWinY||(e.preWinY=r);var s=Math.abs(e.preWinX-a),l=Math.abs(e.preWinY-r),c=Math.sqrt(s*s+l*l);if(e.preWinX=a,e.preWinY=r,0!==c){var u=Math.asin(l/c)/Math.PI*180;if(u<=45&&n.contains("mescroll-touch-x")||u>45&&n.contains("mescroll-touch-y")){i=!1;break}}}}o=o.parentNode}i&&t.cancelable&&!t.defaultPrevented&&"function"===typeof t.preventDefault&&t.preventDefault()},t.prototype.triggerUpScroll=function(){this.optUp.callback&&!this.isUpScrolling&&(this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.optUp.callback(this.optUp.page,this))},t.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.upwarp.classList.add(this.optUp.hardwareClass),this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.showLoading(this,this.upwarp)},t.prototype.showNoMore=function(){this.upwarp.style.visibility="visible",this.upwarp.style.display="block",this.optUp.hasNext=!1,this.optUp.showNoMore(this,this.upwarp)},t.prototype.hideUpScroll=function(t){t?this.upwarp.style.display="none":this.upwarp.style.visibility="hidden",this.upwarp.classList.remove(this.optUp.hardwareClass);var e=this.upwarp.getElementsByClassName("upwarp-progress")[0];e&&e.classList.remove("mescroll-rotate")},t.prototype.endUpScroll=function(t,e){null!=t&&(t?this.showNoMore():this.hideUpScroll(e)),this.isUpScrolling=!1},t.prototype.resetUpScroll=function(t){if(this.optUp&&this.optUp.use){var e=this.optUp.page;this.prePageNum=e.num,this.prePageTime=e.time,e.num=1,e.time=null,this.isDownScrolling||!1===t||(null==t?(this.removeEmpty(),this.clearDataList(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.optUp.callback&&this.optUp.callback(e,this)}},t.prototype.setPageNum=function(t){this.optUp.page.num=t-1},t.prototype.setPageSize=function(t){this.optUp.page.size=t},t.prototype.clearDataList=function(){var t=this.optUp.clearId||this.optUp.clearEmptyId;if(t){var e=this.getDomById(t);e&&(e.innerHTML="")}},t.prototype.endByPage=function(t,e,o){var i;this.optUp.use&&null!=e&&(i=this.optUp.page.num'),e.tip&&(n+='

'+e.tip+"

"),e.btntext&&(n+='

'+e.btntext+"

"),t.emptyDom=document.createElement("div"),t.emptyDom.className="mescroll-empty",t.emptyDom.innerHTML=n,i.appendChild(t.emptyDom),e.btnClick){var a=t.emptyDom.getElementsByClassName("empty-btn")[0];e.supportTap?a.addEventListener("tap",(function(o){o.stopPropagation(),t.preventDefault(o),e.btnClick()})):a.onclick=function(){e.btnClick()}}}}},t.prototype.removeEmpty=function(){this.removeChild(this.emptyDom)},t.prototype.showTopBtn=function(t){if(!this.topBtnShow){this.topBtnShow=!0;var e,o=this,i=o.optUp.toTop;if(null==o.toTopBtn)i.html?(o.toTopBtn=document.createElement("div"),o.toTopBtn.innerHTML=i.html):(o.toTopBtn=document.createElement("img"),o.toTopBtn.src=i.src),o.toTopBtn.className=i.warpClass,i.supportTap?o.toTopBtn.addEventListener("tap",(function(t){t.stopPropagation(),o.preventDefault(t);var e=i.btnClick&&i.btnClick();!0!==e&&o.scrollTo(0,o.optUp.toTop.duration)})):o.toTopBtn.onclick=function(){var t=i.btnClick&&i.btnClick();!0!==t&&o.scrollTo(0,o.optUp.toTop.duration)},i.warpId&&(e=o.getDomById(i.warpId)),e||(e=document.body),e.appendChild(o.toTopBtn);o.toTopBtn.classList.remove(i.hideClass),o.toTopBtn.classList.add(i.showClass),o.setTopBtnFadeDuration(t)}},t.prototype.hideTopBtn=function(t){this.topBtnShow&&this.toTopBtn&&(this.topBtnShow=!1,this.toTopBtn.classList.remove(this.optUp.toTop.showClass),this.toTopBtn.classList.add(this.optUp.toTop.hideClass),this.setTopBtnFadeDuration(t))},t.prototype.setTopBtnFadeDuration=function(t){if(this.toTopBtn){var e=(null!=t?t:this.optUp.toTop.fadeDuration)+"s";this.toTopBtn.style.animationDuration=e,this.toTopBtn.style.webkitAnimationDuration=e}},t.prototype.scrollTo=function(t,e){var o=this,i=o.getScrollTop(),n=t;if(n>0){var a=o.getScrollHeight()-o.getClientHeight();n>a&&(n=a)}else n=0;o.isScrollTo=!0,o.scrollDom.style.webkitOverflowScrolling="auto",o.getStep(i,n,(function(t){o.setScrollTop(t),t===n&&(o.scrollDom.style.webkitOverflowScrolling="touch",o.isScrollTo=!1)}),e)},t.prototype.getStep=function(t,e,o,i,n){var a=e-t;if(0!==i&&0!==a){i=i||300,n=n||30;var r=i/n,s=a/r,l=0,c=window.setInterval((function(){l=i||n<=a&&n>i},t.prototype.getOffsetTop=function(t){var e=t.offsetTop,o=t.offsetParent;while(null!=o&&o!==this.scrollDom)e+=o.offsetTop+o.clientTop,o=o.offsetParent;return e},t.prototype.getScrollHeight=function(){return this.scrollDom.scrollHeight},t.prototype.getClientHeight=function(){return this.isScrollBody&&"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:this.scrollDom.clientHeight},t.prototype.getBodyHeight=function(){return document.body.clientHeight||document.documentElement.clientHeight},t.prototype.getScrollTop=function(){return this.isScrollBody?document.documentElement.scrollTop||document.body.scrollTop:this.scrollDom.scrollTop},t.prototype.getToBottom=function(){return this.getScrollHeight()-this.getClientHeight()-this.getScrollTop()},t.prototype.setScrollTop=function(t){"number"===typeof t&&(this.isScrollBody?(document.documentElement.scrollTop=t,document.body.scrollTop=t):this.scrollDom.scrollTop=t)},t.prototype.getDomById=function(t){var e;return t&&("string"===typeof t?e=document.getElementById(t):t.nodeType&&(e=t)),e||console.error('the element with id as "'+t+'" can not be found: document.getElementById("'+t+'")==null'),e},t.prototype.removeChild=function(t){if(t){var e=t.parentNode;e&&e.removeChild(t),t=null}},t.prototype.destroy=function(){var t=this;t.scrollDom.removeEventListener("touchstart",t.touchstartEvent),t.scrollDom.removeEventListener("touchmove",t.touchmoveEvent),t.scrollDom.removeEventListener("touchend",t.touchendEvent),t.scrollDom.removeEventListener("touchcancel",t.touchendEvent),t.scrollDom.removeEventListener("mousedown",t.touchstartEvent),t.scrollDom.removeEventListener("mousemove",t.touchmoveEvent),t.scrollDom.removeEventListener("mouseup",t.touchendEvent),t.scrollDom.removeEventListener("mouseleave",t.touchendEvent),t.removeChild(t.downwarp),t.isScrollBody?window.removeEventListener("scroll",t.scrollEvent):t.scrollDom.removeEventListener("scroll",t.scrollEvent),t.removeChild(t.upwarp),t.removeChild(t.toTopBtn),t.setBounce(!0)},t}))}}]);