mycpen-blog 0.0.0-wjbrdpunvk → 0.0.0-wjdcuicfya

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map((function(e,t){return t})))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,(function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=r(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=r(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=r(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=r(e.artist),t+="</span>\n</li>\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",(function(t){var n=void 0;n="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()}))}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}));var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName("aplayer-list-index")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var n=this.player.container.getElementsByClassName("aplayer-list-light")[0];n&&n.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=r.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=r.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return i(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return i(e,[{key:"init",value:function(){var e=this;this.types.forEach((function(t){e["init"+t+"Checker"]()}))}},{key:"initloadingChecker",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval((function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(0)),r=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",(function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))}));var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",(function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=r.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=r.default.orderList)}))}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",(function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=r.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()})),document.querySelector(".aplayer-lrc").addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n <p",0===n&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=r(e[1]),t+="</p>\n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(10))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+80*-this.index+"px)",this.container.style.webkitTransform="translateY("+80*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a<i;a++){var r=t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),o=t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(r)for(var s=r.length,l=0;l<s;l++){var u=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(r[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+"").length?100:1e3):0);n.push([c,o])}}return(n=n.filter((function(e){return e[1]}))).sort((function(e,t){return e[0]-t[0]})),n}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(0))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(r.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,r.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:"set",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){"use strict";(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var i=n(14),a=Object.create(i?t:window),r=/["&'<>]/;a.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var i="",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=s}return o!==a?i+t.substring(o,a):i}(function e(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t)),t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";var t="",a=(e=e||{}).options,r=e.cover,o=i.$escape,s=e.icons,l=function(e){return t+=e},u=e.getObject;return e.theme,e.audio,e.index,a.fixed?(t+='\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(3)),r=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,n){"use strict";var i,a,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||p||l(y)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var i,a,r,o,s,l=1,u={},c=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){y(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&y(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){y(e.data)},i=function(e){r.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,i=function(e){var t=p.createElement("script");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(y,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[l]=a,i(l),l++},d.clearImmediate=h}function h(e){delete u[e]}function y(e){if(c)setTimeout(y,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){"use strict";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(a);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},r.all=function(e){return new r((function(t,i){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function o(e,s){try{if(s&&("object"===(void 0===s?"undefined":n(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){o(e,t)}),i)}a[e]=s,0==--r&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)o(s,a[s])}))},r.resolve=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},r._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=r}).call(this,n(36).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=v(n(37)),r=v(n(0)),o=v(n(3)),s=v(n(18)),l=v(n(17)),u=v(n(13)),c=v(n(12)),p=v(n(11)),d=v(n(9)),h=v(n(8)),y=v(n(7)),f=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}var m=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode="normal",this.randomOrder=r.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new p.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new y.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new d.default(this),this.timer=new h.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),m.push(this)}return i(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],(function(n){e.events.trigger(e.events.audioEvents[t],n)}))},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",(function(){e.paused&&e.setUIPlaying()})),this.on("pause",(function(){e.paused||e.setUIPaused()})),this.on("timeupdate",(function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=r.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}})),this.on("durationchange",(function(){1!==e.duration&&(e.template.dtime.innerHTML=r.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")}));var t=void 0;this.on("error",(function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())}))}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.pause}),100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<m.length;t++)this!==m[t]&&m[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch((function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()}))}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.play}),100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=(i=n(38))&&i.__esModule?i:{default:i};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=a.default}]).default}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map((function(e,t){return t})))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,(function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=r(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=r(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=r(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=r(e.artist),t+="</span>\n</li>\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",(function(t){var n=void 0;n="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()}))}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}));var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName("aplayer-list-index")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var n=this.player.container.getElementsByClassName("aplayer-list-light")[0];n&&n.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=r.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=r.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return i(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return i(e,[{key:"init",value:function(){var e=this;this.types.forEach((function(t){e["init"+t+"Checker"]()}))}},{key:"initloadingChecker",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval((function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(0)),r=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",(function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))}));var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",(function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=r.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=r.default.orderList)}))}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",(function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=r.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()})),document.querySelector(".aplayer-lrc").addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n <p",0===n&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=r(e[1]),t+="</p>\n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(10))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+80*-this.index+"px)",this.container.style.webkitTransform="translateY("+80*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a<i;a++){var r=t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),o=t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(r)for(var s=r.length,l=0;l<s;l++){var u=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(r[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+"").length?100:1e3):0);n.push([c,o])}}return(n=n.filter((function(e){return e[1]}))).sort((function(e,t){return e[0]-t[0]})),n}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(0))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(r.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,r.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:"set",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){"use strict";(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var i=n(14),a=Object.create(i?t:window),r=/["&'<>]/;a.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var i="",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=s}return o!==a?i+t.substring(o,a):i}(function e(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t)),t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";var t="",a=(e=e||{}).options,r=e.cover,o=i.$escape,s=e.icons,l=function(e){return t+=e},u=e.getObject;return e.theme,e.audio,e.index,a.fixed?(t+='\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(3)),r=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,n){"use strict";var i,a,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||p||l(y)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var i,a,r,o,s,l=1,u={},c=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){y(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&y(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){y(e.data)},i=function(e){r.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,i=function(e){var t=p.createElement("script");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(y,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[l]=a,i(l),l++},d.clearImmediate=h}function h(e){delete u[e]}function y(e){if(c)setTimeout(y,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(undefined,n)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){"use strict";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(a);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},r.all=function(e){return new r((function(t,i){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function o(e,s){try{if(s&&("object"===(void 0===s?"undefined":n(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){o(e,t)}),i)}a[e]=s,0==--r&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)o(s,a[s])}))},r.resolve=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},r._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=r}).call(this,n(36).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=v(n(37)),r=v(n(0)),o=v(n(3)),s=v(n(18)),l=v(n(17)),u=v(n(13)),c=v(n(12)),p=v(n(11)),d=v(n(9)),h=v(n(8)),y=v(n(7)),f=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}var m=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode="normal",this.randomOrder=r.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new p.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new y.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new d.default(this),this.timer=new h.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),m.push(this)}return i(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],(function(n){e.events.trigger(e.events.audioEvents[t],n)}))},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",(function(){e.paused&&e.setUIPlaying()})),this.on("pause",(function(){e.paused||e.setUIPaused()})),this.on("timeupdate",(function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=r.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}})),this.on("durationchange",(function(){1!==e.duration&&(e.template.dtime.innerHTML=r.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")}));var t=void 0;this.on("error",(function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())}))}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.pause}),100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<m.length;t++)this!==m[t]&&m[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch((function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()}))}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.play}),100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=(i=n(38))&&i.__esModule?i:{default:i};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=a.default}]).default}));]?_0x3c0077:{'default':_0x3c0077},_0x1966f2=(function(){var _0xbebb14=_0x467621;function _0x2e06f5(_0x134cf6){var _0x2d8b24=_0x25ee;!function(_0x50a99a,_0x68759c){var _0x49560a=_0x25ee;if(!(_0x50a99a instanceof _0x68759c))throw new TypeError(_0x49560a(0x286));}(this,_0x2e06f5),this[_0x2d8b24(0x30b)]=_0x134cf6[_0x2d8b24(0x30b)],this[_0x2d8b24(0x29d)]=_0x134cf6[_0x2d8b24(0x29d)],this[_0x2d8b24(0x211)]=_0x134cf6[_0x2d8b24(0x211)],this[_0x2d8b24(0x1f3)]=[],this[_0x2d8b24(0x154)]=0x0,this[_0x2d8b24(0x1a4)]=[];}return _0x3023df(_0x2e06f5,[{'key':_0xbebb14(0x1ff),'value':function(){var _0x56efdf=_0xbebb14;this[_0x56efdf(0x211)][_0x56efdf(0x26c)][_0x56efdf(0x20b)](_0x56efdf(0x299)),this[_0x56efdf(0x211)][_0x56efdf(0x1a9)][_0x56efdf(0x16b)]['classList'][_0x56efdf(0x304)](_0x56efdf(0x21a));}},{'key':_0xbebb14(0x31b),'value':function(){var _0xf1cedf=_0xbebb14;this[_0xf1cedf(0x211)]['events'][_0xf1cedf(0x20b)](_0xf1cedf(0x22e)),this[_0xf1cedf(0x211)]['template'][_0xf1cedf(0x16b)][_0xf1cedf(0x314)][_0xf1cedf(0x2db)](_0xf1cedf(0x21a));}},{'key':_0xbebb14(0x244),'value':function(){var _0x4810a1=_0xbebb14;this['player'][_0x4810a1(0x1a9)][_0x4810a1(0x16b)][_0x4810a1(0x314)][_0x4810a1(0x179)](_0x4810a1(0x21a))?this['show']():this[_0x4810a1(0x31b)]();}},{'key':_0xbebb14(0x1ca),'value':function(){var _0x27f6fe=_0xbebb14,_0x1081a1=arguments['length']>0x0&&void 0x0!==arguments[0x0]?arguments[0x0]:this[_0x27f6fe(0x211)][_0x27f6fe(0x181)][_0x27f6fe(0x188)];if(this[_0x27f6fe(0x154)]>this[_0x27f6fe(0x1a4)][_0x27f6fe(0x18f)]-0x1||_0x1081a1<this[_0x27f6fe(0x1a4)][this[_0x27f6fe(0x154)]][0x0]||!this[_0x27f6fe(0x1a4)][this[_0x27f6fe(0x154)]+0x1]||_0x1081a1>=this[_0x27f6fe(0x1a4)][this[_0x27f6fe(0x154)]+0x1][0x0]){for(var _0x5a6a02=0x0;_0x5a6a02<this['current'][_0x27f6fe(0x18f)];_0x5a6a02++)_0x1081a1>=this[_0x27f6fe(0x1a4)][_0x5a6a02][0x0]&&(!this[_0x27f6fe(0x1a4)][_0x5a6a02+0x1]||_0x1081a1<this[_0x27f6fe(0x1a4)][_0x5a6a02+0x1][0x0])&&(this[_0x27f6fe(0x154)]=_0x5a6a02,this[_0x27f6fe(0x30b)][_0x27f6fe(0x205)][_0x27f6fe(0x28b)]=_0x27f6fe(0x320)+0x50*-this[_0x27f6fe(0x154)]+'px)',this[_0x27f6fe(0x30b)][_0x27f6fe(0x205)][_0x27f6fe(0x1b3)]=_0x27f6fe(0x320)+0x50*-this[_0x27f6fe(0x154)]+_0x27f6fe(0x2de),this[_0x27f6fe(0x30b)][_0x27f6fe(0x1b5)]('aplayer-lrc-current')[0x0]['classList'][_0x27f6fe(0x304)](_0x27f6fe(0x258)),this['container'][_0x27f6fe(0x2d5)]('p')[_0x5a6a02]['classList']['add'](_0x27f6fe(0x258)));}}},{'key':_0xbebb14(0x325),'value':function(_0xd63e7c){var _0x3d61ff=_0xbebb14,_0x199f42=this;if(!this['parsed'][_0xd63e7c]){if(this[_0x3d61ff(0x29d)]){this[_0x3d61ff(0x1f3)][_0xd63e7c]=[[_0x3d61ff(0x310),_0x3d61ff(0x2ed)]];var _0x46d348=new XMLHttpRequest();_0x46d348[_0x3d61ff(0x1c6)]=function(){var _0x471a6c=_0x3d61ff;_0xd63e7c===_0x199f42[_0x471a6c(0x211)][_0x471a6c(0x31f)][_0x471a6c(0x154)]&&0x4===_0x46d348['readyState']&&(_0x46d348[_0x471a6c(0x318)]>=0xc8&&_0x46d348[_0x471a6c(0x318)]<0x12c||0x130===_0x46d348[_0x471a6c(0x318)]?_0x199f42['parsed'][_0xd63e7c]=_0x199f42['parse'](_0x46d348[_0x471a6c(0x219)]):(_0x199f42[_0x471a6c(0x211)][_0x471a6c(0x187)](_0x471a6c(0x1de)+_0x46d348['status']),_0x199f42[_0x471a6c(0x1f3)][_0xd63e7c]=[['00:00',_0x471a6c(0x20a)]]),_0x199f42[_0x471a6c(0x30b)][_0x471a6c(0x2f8)]=(0x0,_0x404067[_0x471a6c(0x1dd)])({'lyrics':_0x199f42[_0x471a6c(0x1f3)][_0xd63e7c]}),_0x199f42[_0x471a6c(0x1ca)](0x0),_0x199f42['current']=_0x199f42[_0x471a6c(0x1f3)][_0xd63e7c]);};var _0x5c4428=this[_0x3d61ff(0x211)][_0x3d61ff(0x31f)][_0x3d61ff(0x157)][_0xd63e7c]['lrc'];_0x46d348[_0x3d61ff(0x194)](_0x3d61ff(0x167),_0x5c4428,!0x0),_0x46d348[_0x3d61ff(0x21d)](null);}else this['player'][_0x3d61ff(0x31f)][_0x3d61ff(0x157)][_0xd63e7c]['lrc']?this[_0x3d61ff(0x1f3)][_0xd63e7c]=this[_0x3d61ff(0x275)](this[_0x3d61ff(0x211)]['list']['audios'][_0xd63e7c][_0x3d61ff(0x2fd)]):this[_0x3d61ff(0x1f3)][_0xd63e7c]=[[_0x3d61ff(0x310),_0x3d61ff(0x20a)]];}this[_0x3d61ff(0x30b)][_0x3d61ff(0x2f8)]=(0x0,_0x404067['default'])({'lyrics':this[_0x3d61ff(0x1f3)][_0xd63e7c]}),this[_0x3d61ff(0x1ca)](0x0),this[_0x3d61ff(0x1a4)]=this[_0x3d61ff(0x1f3)][_0xd63e7c];}},{'key':_0xbebb14(0x275),'value':function(_0xf5be03){var _0x4c2268=_0xbebb14;if(_0xf5be03){for(var _0x58c81e=(_0xf5be03=_0xf5be03[_0x4c2268(0x142)](/([^\]^\n])\[/g,function(_0x14ed7f,_0x558182){return _0x558182+'\x0a[';}))[_0x4c2268(0x30a)]('\x0a'),_0x1dcef7=[],_0x3fd55c=_0x58c81e[_0x4c2268(0x18f)],_0x19b342=0x0;_0x19b342<_0x3fd55c;_0x19b342++){var _0x312e0d=_0x58c81e[_0x19b342][_0x4c2268(0x141)](/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),_0x9c6d72=_0x58c81e[_0x19b342]['replace'](/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,'')[_0x4c2268(0x142)](/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,'')[_0x4c2268(0x142)](/^\s+|\s+$/g,'');if(_0x312e0d)for(var _0x1c4b19=_0x312e0d[_0x4c2268(0x18f)],_0x2c764f=0x0;_0x2c764f<_0x1c4b19;_0x2c764f++){var _0x5580d9=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/['exec'](_0x312e0d[_0x2c764f]),_0x284d01=0x3c*_0x5580d9[0x1]+parseInt(_0x5580d9[0x2])+(_0x5580d9[0x4]?parseInt(_0x5580d9[0x4])/(0x2===(_0x5580d9[0x4]+'')[_0x4c2268(0x18f)]?0x64:0x3e8):0x0);_0x1dcef7['push']([_0x284d01,_0x9c6d72]);}}return(_0x1dcef7=_0x1dcef7[_0x4c2268(0x298)](function(_0x4f46cd){return _0x4f46cd[0x1];}))['sort'](function(_0xe3db4a,_0x2d8dc9){return _0xe3db4a[0x0]-_0x2d8dc9[0x0];}),_0x1dcef7;}return[];}},{'key':_0xbebb14(0x304),'value':function(_0x1aee4d){var _0x1e2f98=_0xbebb14;this[_0x1e2f98(0x1f3)][_0x1e2f98(0x31a)](_0x1aee4d,0x1);}},{'key':'clear','value':function(){var _0xd5cbf0=_0xbebb14;this[_0xd5cbf0(0x1f3)]=[],this[_0xd5cbf0(0x30b)][_0xd5cbf0(0x2f8)]='';}}]),_0x2e06f5;}());_0xf45b5e[_0x467621(0x1dd)]=_0x1966f2;},function(_0x8d412d,_0x1f53f3,_0x2351ba){'use strict';var _0x4507a7=_0x25ee;Object['defineProperty'](_0x1f53f3,'__esModule',{'value':!0x0});var _0x588736,_0x1f915c=(function(){function _0x29117c(_0x2e5ac9,_0x34d9f0){var _0x40d809=_0x25ee;for(var _0x248e0c=0x0;_0x248e0c<_0x34d9f0['length'];_0x248e0c++){var _0x3eb08b=_0x34d9f0[_0x248e0c];_0x3eb08b[_0x40d809(0x30f)]=_0x3eb08b[_0x40d809(0x30f)]||!0x1,_0x3eb08b['configurable']=!0x0,_0x40d809(0x292)in _0x3eb08b&&(_0x3eb08b[_0x40d809(0x16d)]=!0x0),Object[_0x40d809(0x227)](_0x2e5ac9,_0x3eb08b[_0x40d809(0x2a2)],_0x3eb08b);}}return function(_0x5ea290,_0x2ba97a,_0x4e9eec){var _0x18260a=_0x25ee;return _0x2ba97a&&_0x29117c(_0x5ea290[_0x18260a(0x2c5)],_0x2ba97a),_0x4e9eec&&_0x29117c(_0x5ea290,_0x4e9eec),_0x5ea290;};}()),_0x3d510a=_0x2351ba(0x0),_0x1bb7f2=(_0x588736=_0x3d510a)&&_0x588736[_0x4507a7(0x14c)]?_0x588736:{'default':_0x588736},_0x2335eb=(function(){var _0x36e291=_0x4507a7;function _0xbce30b(_0x5d020c){var _0x1166b2=_0x25ee;!function(_0x14f449,_0xadd7c){var _0x5818c9=_0x25ee;if(!(_0x14f449 instanceof _0xadd7c))throw new TypeError(_0x5818c9(0x286));}(this,_0xbce30b),this[_0x1166b2(0x151)]=_0x5d020c['options']['storageName'],this['data']=JSON['parse'](_0x1bb7f2[_0x1166b2(0x1dd)][_0x1166b2(0x193)][_0x1166b2(0x167)](this['storageName'])),this['data']||(this[_0x1166b2(0x1b7)]={}),this[_0x1166b2(0x1b7)][_0x1166b2(0x287)]=this[_0x1166b2(0x1b7)][_0x1166b2(0x287)]||_0x5d020c[_0x1166b2(0x15b)]['volume'];}return _0x1f915c(_0xbce30b,[{'key':_0x36e291(0x167),'value':function(_0x4345f6){var _0x44d022=_0x36e291;return this[_0x44d022(0x1b7)][_0x4345f6];}},{'key':_0x36e291(0x2d0),'value':function(_0x2af653,_0x5727e9){var _0x5dd1f3=_0x36e291;this[_0x5dd1f3(0x1b7)][_0x2af653]=_0x5727e9,_0x1bb7f2[_0x5dd1f3(0x1dd)]['storage'][_0x5dd1f3(0x2d0)](this['storageName'],JSON[_0x5dd1f3(0x183)](this[_0x5dd1f3(0x1b7)]));}}]),_0xbce30b;}());_0x1f53f3[_0x4507a7(0x1dd)]=_0x2335eb;},function(_0x38527b,_0x53e5c9,_0x9dd83b){'use strict';var _0x37ece7=_0x25ee;Object[_0x37ece7(0x227)](_0x53e5c9,_0x37ece7(0x14c),{'value':!0x0});var _0x3c6ba0=(function(){function _0x37573f(_0x1e8ff5,_0x45d9f3){var _0x21b92d=_0x25ee;for(var _0x459623=0x0;_0x459623<_0x45d9f3[_0x21b92d(0x18f)];_0x459623++){var _0x2ddddc=_0x45d9f3[_0x459623];_0x2ddddc[_0x21b92d(0x30f)]=_0x2ddddc[_0x21b92d(0x30f)]||!0x1,_0x2ddddc[_0x21b92d(0x1ec)]=!0x0,'value'in _0x2ddddc&&(_0x2ddddc[_0x21b92d(0x16d)]=!0x0),Object[_0x21b92d(0x227)](_0x1e8ff5,_0x2ddddc[_0x21b92d(0x2a2)],_0x2ddddc);}}return function(_0x10eb32,_0x120ae4,_0x6025dd){var _0x1bf9f7=_0x25ee;return _0x120ae4&&_0x37573f(_0x10eb32[_0x1bf9f7(0x2c5)],_0x120ae4),_0x6025dd&&_0x37573f(_0x10eb32,_0x6025dd),_0x10eb32;};}()),_0x29d888=(function(){var _0x2a1bc1=_0x37ece7;function _0x7ad962(_0x411d85){var _0x4fbba0=_0x25ee;!function(_0x5022f4,_0x2c66ec){var _0xccd267=_0x25ee;if(!(_0x5022f4 instanceof _0x2c66ec))throw new TypeError(_0xccd267(0x286));}(this,_0x7ad962),this['elements']={},this[_0x4fbba0(0x144)][_0x4fbba0(0x287)]=_0x411d85[_0x4fbba0(0x287)],this[_0x4fbba0(0x144)][_0x4fbba0(0x1eb)]=_0x411d85[_0x4fbba0(0x1eb)],this['elements']['loaded']=_0x411d85['loaded'];}return _0x3c6ba0(_0x7ad962,[{'key':_0x2a1bc1(0x2d0),'value':function(_0x12f607,_0x55fd24,_0x3c35c9){var _0xe1b5ee=_0x2a1bc1;_0x55fd24=Math[_0xe1b5ee(0x1da)](_0x55fd24,0x0),_0x55fd24=Math[_0xe1b5ee(0x1a7)](_0x55fd24,0x1),this[_0xe1b5ee(0x144)][_0x12f607][_0xe1b5ee(0x205)][_0x3c35c9]=0x64*_0x55fd24+'%';}},{'key':'get','value':function(_0x1b6772,_0x25c7fd){var _0x847756=_0x2a1bc1;return parseFloat(this[_0x847756(0x144)][_0x1b6772][_0x847756(0x205)][_0x25c7fd])/0x64;}}]),_0x7ad962;}());_0x53e5c9[_0x37ece7(0x1dd)]=_0x29d888;},function(_0x50212d,_0x12fc38,_0x5514c7){'use strict';var _0x41c669=_0x25ee;(function(_0x5d17ec){var _0x5081a6=_0x25ee;_0x50212d[_0x5081a6(0x2e9)]=!0x1;try{_0x50212d[_0x5081a6(0x2e9)]=_0x5081a6(0x146)===Object[_0x5081a6(0x2c5)][_0x5081a6(0x1a3)][_0x5081a6(0x2c6)](_0x5d17ec['process']);}catch(_0x552d1d){}}[_0x41c669(0x2c6)](this,_0x5514c7(0x4)));},function(_0x31b1fc,_0x491057,_0x5c246e){'use strict';(function(_0x36af26){var _0x194222=_0x25ee,_0x9651b6=_0x5c246e(0xe),_0x3cbcc7=Object['create'](_0x9651b6?_0x36af26:window),_0x2c1a58=/["&'<>]/;_0x3cbcc7[_0x194222(0x1a0)]=function(_0x1895c1){return function(_0x2e907b){var _0x5167a5=_0x25ee,_0x12f55c=''+_0x2e907b,_0x4f1672=_0x2c1a58['exec'](_0x12f55c);if(!_0x4f1672)return _0x2e907b;var _0x4a7d54='',_0x1042de=void 0x0,_0x5c5cb2=void 0x0,_0x244f26=void 0x0;for(_0x1042de=_0x4f1672[_0x5167a5(0x154)],_0x5c5cb2=0x0;_0x1042de<_0x12f55c[_0x5167a5(0x18f)];_0x1042de++){switch(_0x12f55c[_0x5167a5(0x2fe)](_0x1042de)){case 0x22:_0x244f26='&#34;';break;case 0x26:_0x244f26=_0x5167a5(0x163);break;case 0x27:_0x244f26=_0x5167a5(0x1a1);break;case 0x3c:_0x244f26=_0x5167a5(0x2ce);break;case 0x3e:_0x244f26=_0x5167a5(0x14f);break;default:continue;}_0x5c5cb2!==_0x1042de&&(_0x4a7d54+=_0x12f55c[_0x5167a5(0x279)](_0x5c5cb2,_0x1042de)),_0x5c5cb2=_0x1042de+0x1,_0x4a7d54+=_0x244f26;}return _0x5c5cb2!==_0x1042de?_0x4a7d54+_0x12f55c[_0x5167a5(0x279)](_0x5c5cb2,_0x1042de):_0x4a7d54;}(function _0x158e57(_0x4c4c3b){var _0x18cebe=_0x25ee;return'string'!=typeof _0x4c4c3b&&(_0x4c4c3b=void 0x0===_0x4c4c3b||null===_0x4c4c3b?'':_0x18cebe(0x2f5)==typeof _0x4c4c3b?_0x158e57(_0x4c4c3b[_0x18cebe(0x2c6)](_0x4c4c3b)):JSON[_0x18cebe(0x183)](_0x4c4c3b)),_0x4c4c3b;}(_0x1895c1));},_0x3cbcc7[_0x194222(0x1f9)]=function(_0x2172ce,_0x471550){var _0x3cf67d=_0x194222;if(Array[_0x3cf67d(0x234)](_0x2172ce)){for(var _0x45057e=0x0,_0x372d69=_0x2172ce['length'];_0x45057e<_0x372d69;_0x45057e++)_0x471550(_0x2172ce[_0x45057e],_0x45057e);}else{for(var _0xef1b14 in _0x2172ce)_0x471550(_0x2172ce[_0xef1b14],_0xef1b14);}},_0x31b1fc['exports']=_0x3cbcc7;}['call'](this,_0x5c246e(0x4)));},function(_0x5527b2,_0x1f5d8d,_0x5acc46){var _0x20ccd5=_0x25ee,_0x861a1e=_0x5acc46(0x2);_0x5527b2[_0x20ccd5(0x2e9)]=function(_0x3574d8){'use strict';var _0xd23054=_0x20ccd5;var _0x39607c='',_0x52644d=(_0x3574d8=_0x3574d8||{})[_0xd23054(0x15b)],_0x2a95ee=_0x3574d8[_0xd23054(0x2e2)],_0x8c9734=_0x861a1e['$escape'],_0x59a3d6=_0x3574d8[_0xd23054(0x253)],_0x105bea=(arguments[0x1],function(_0x3bbd87){return _0x39607c+=_0x3bbd87;}),_0x4007c=_0x3574d8[_0xd23054(0x23f)];return _0x3574d8['theme'],_0x3574d8[_0xd23054(0x181)],_0x3574d8[_0xd23054(0x154)],(_0x52644d[_0xd23054(0x2be)]?(_0x39607c+=_0xd23054(0x2d2),_0x52644d[_0xd23054(0x1d3)]&&(_0x39607c+=_0xd23054(0x291)),_0x39607c+='\x22',_0x52644d[_0xd23054(0x1d9)]&&(_0x39607c+=_0xd23054(0x1e1),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x1d9)]),_0x39607c+='\x22'),_0x39607c+=_0xd23054(0x1cb),_0x52644d[_0xd23054(0x1d9)]&&(_0x39607c+=_0xd23054(0x1e1),_0x39607c+=_0x8c9734(_0x52644d['listMaxHeight']),_0x39607c+='\x22'),_0x39607c+=_0xd23054(0x297),_0x105bea(_0x5acc46(0x1)(_0x4007c({'theme':_0x52644d[_0xd23054(0x165)],'audio':_0x52644d['audio'],'index':0x1}))),_0x39607c+=_0xd23054(0x285),_0x2a95ee&&(_0x39607c+=_0xd23054(0x14a),_0x39607c+=_0x8c9734(_0x2a95ee),_0x39607c+=_0xd23054(0x162)),_0x39607c+=_0xd23054(0x1ab),_0x39607c+=_0x8c9734(_0x52644d['theme']),_0x39607c+=';\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-button\x20aplayer-play\x22>',_0x39607c+=_0x59a3d6[_0xd23054(0x26f)],_0x39607c+=_0xd23054(0x2cf),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x165)]),_0x39607c+=_0xd23054(0x2e8),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x165)]),_0x39607c+=_0xd23054(0x24e),_0x39607c+=_0x59a3d6['loading'],_0x39607c+=_0xd23054(0x149),_0x39607c+=_0x59a3d6[_0xd23054(0x254)],_0x39607c+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22aplayer-icon\x20aplayer-icon-play\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x39607c+=_0x59a3d6[_0xd23054(0x26f)],_0x39607c+=_0xd23054(0x1c4),_0x39607c+=_0x59a3d6['skip'],_0x39607c+=_0xd23054(0x1a2),_0x39607c+=_0x59a3d6[_0xd23054(0x315)],_0x39607c+=_0xd23054(0x1d4),_0x39607c+=_0x8c9734(_0x52644d['theme']),_0x39607c+=_0xd23054(0x296),'list'===_0x52644d[_0xd23054(0x282)]?_0x39607c+=_0x59a3d6[_0xd23054(0x21e)]:_0xd23054(0x235)===_0x52644d['order']&&(_0x39607c+=_0x59a3d6[_0xd23054(0x16f)]),_0x39607c+=_0xd23054(0x245),_0xd23054(0x271)===_0x52644d['loop']?_0x39607c+=_0x59a3d6[_0xd23054(0x27e)]:_0xd23054(0x1c0)===_0x52644d[_0xd23054(0x2c3)]?_0x39607c+=_0x59a3d6[_0xd23054(0x2f6)]:_0xd23054(0x203)===_0x52644d[_0xd23054(0x2c3)]&&(_0x39607c+=_0x59a3d6[_0xd23054(0x22f)]),_0x39607c+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<button\x20type=\x22button\x22\x20class=\x22aplayer-icon\x20aplayer-icon-menu\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x39607c+=_0x59a3d6[_0xd23054(0x2fb)],_0x39607c+=_0xd23054(0x1ef),_0x39607c+=_0x59a3d6[_0xd23054(0x2fd)],_0x39607c+=_0xd23054(0x168),_0x39607c+=_0x59a3d6[_0xd23054(0x25f)],_0x39607c+=_0xd23054(0x30c)):(_0x39607c+=_0xd23054(0x1f4),_0x2a95ee&&(_0x39607c+='background-image:\x20url(&quot;',_0x39607c+=_0x8c9734(_0x2a95ee),_0x39607c+=_0xd23054(0x162)),_0x39607c+=_0xd23054(0x1ab),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x165)]),_0x39607c+=';\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-button\x20aplayer-play\x22>',_0x39607c+=_0x59a3d6[_0xd23054(0x26f)],_0x39607c+=_0xd23054(0x27c),_0x39607c+=_0x8c9734(_0x52644d['theme']),_0x39607c+=_0xd23054(0x2e8),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x165)]),_0x39607c+=';\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22aplayer-loading-icon\x22>',_0x39607c+=_0x59a3d6[_0xd23054(0x2aa)],_0x39607c+='</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-time\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22aplayer-time-inner\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22aplayer-ptime\x22>00:00</span>\x20/\x20<span\x20class=\x22aplayer-dtime\x22>00:00</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22aplayer-icon\x20aplayer-icon-back\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x39607c+=_0x59a3d6[_0xd23054(0x254)],_0x39607c+=_0xd23054(0x24f),_0x39607c+=_0x59a3d6['play'],_0x39607c+=_0xd23054(0x1c4),_0x39607c+=_0x59a3d6[_0xd23054(0x254)],_0x39607c+=_0xd23054(0x1a2),_0x39607c+=_0x59a3d6['volumeDown'],_0x39607c+='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</button>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-volume-bar-wrap\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-volume-bar\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22aplayer-volume\x22\x20style=\x22height:\x2080%;\x20background:\x20',_0x39607c+=_0x8c9734(_0x52644d['theme']),_0x39607c+=_0xd23054(0x296),'list'===_0x52644d[_0xd23054(0x282)]?_0x39607c+=_0x59a3d6['orderList']:_0xd23054(0x235)===_0x52644d['order']&&(_0x39607c+=_0x59a3d6['orderRandom']),_0x39607c+=_0xd23054(0x245),_0xd23054(0x271)===_0x52644d[_0xd23054(0x2c3)]?_0x39607c+=_0x59a3d6['loopOne']:_0xd23054(0x1c0)===_0x52644d[_0xd23054(0x2c3)]?_0x39607c+=_0x59a3d6['loopAll']:_0xd23054(0x203)===_0x52644d[_0xd23054(0x2c3)]&&(_0x39607c+=_0x59a3d6[_0xd23054(0x22f)]),_0x39607c+=_0xd23054(0x1d7),_0x39607c+=_0x59a3d6[_0xd23054(0x2fb)],_0x39607c+=_0xd23054(0x1ef),_0x39607c+=_0x59a3d6['lrc'],_0x39607c+=_0xd23054(0x168),_0x39607c+=_0x59a3d6['right'],_0x39607c+=_0xd23054(0x2d1),_0x52644d[_0xd23054(0x1d3)]&&(_0x39607c+='\x20aplayer-list-hide'),_0x39607c+='\x22',_0x52644d[_0xd23054(0x1d9)]&&(_0x39607c+=_0xd23054(0x1e1),_0x39607c+=_0x8c9734(_0x52644d['listMaxHeight']),_0x39607c+='\x22'),_0x39607c+=_0xd23054(0x1cb),_0x52644d['listMaxHeight']&&(_0x39607c+=_0xd23054(0x1e1),_0x39607c+=_0x8c9734(_0x52644d[_0xd23054(0x1d9)]),_0x39607c+='\x22'),_0x39607c+=_0xd23054(0x297),_0x105bea(_0x5acc46(0x1)(_0x4007c({'theme':_0x52644d['theme'],'audio':_0x52644d[_0xd23054(0x181)],'index':0x1}))),_0x39607c+=_0xd23054(0x199)),_0x39607c);};},function(_0x1d6ed2,_0x5f3a36,_0xde6e57){'use strict';var _0x1a916f=_0x25ee;Object[_0x1a916f(0x227)](_0x5f3a36,_0x1a916f(0x14c),{'value':!0x0});var _0x3dfcc0=(function(){function _0x43c4bb(_0x4871fa,_0x1544eb){var _0xa919fd=_0x25ee;for(var _0x529d29=0x0;_0x529d29<_0x1544eb[_0xa919fd(0x18f)];_0x529d29++){var _0x117de4=_0x1544eb[_0x529d29];_0x117de4[_0xa919fd(0x30f)]=_0x117de4['enumerable']||!0x1,_0x117de4[_0xa919fd(0x1ec)]=!0x0,_0xa919fd(0x292)in _0x117de4&&(_0x117de4[_0xa919fd(0x16d)]=!0x0),Object[_0xa919fd(0x227)](_0x4871fa,_0x117de4[_0xa919fd(0x2a2)],_0x117de4);}}return function(_0x6d9c1a,_0x77cee4,_0x5321c0){return _0x77cee4&&_0x43c4bb(_0x6d9c1a['prototype'],_0x77cee4),_0x5321c0&&_0x43c4bb(_0x6d9c1a,_0x5321c0),_0x6d9c1a;};}()),_0x587d6e=_0x82da02(_0xde6e57(0x3)),_0x54496b=_0x82da02(_0xde6e57(0x10));function _0x82da02(_0x23c5d4){return _0x23c5d4&&_0x23c5d4['__esModule']?_0x23c5d4:{'default':_0x23c5d4};}var _0x34b273=(function(){function _0x15e8b6(_0x534999){var _0xb4d5f6=_0x25ee;!function(_0x5f302b,_0x483b71){var _0x59f653=_0x25ee;if(!(_0x5f302b instanceof _0x483b71))throw new TypeError(_0x59f653(0x286));}(this,_0x15e8b6),this[_0xb4d5f6(0x30b)]=_0x534999[_0xb4d5f6(0x30b)],this['options']=_0x534999[_0xb4d5f6(0x15b)],this[_0xb4d5f6(0x29b)]=_0x534999[_0xb4d5f6(0x29b)],this[_0xb4d5f6(0x294)]();}return _0x3dfcc0(_0x15e8b6,[{'key':'init','value':function(){var _0xf99e3=_0x25ee,_0x1a39e4='';this[_0xf99e3(0x15b)]['audio'][_0xf99e3(0x18f)]&&(_0x1a39e4='random'===this['options'][_0xf99e3(0x282)]?this[_0xf99e3(0x15b)][_0xf99e3(0x181)][this[_0xf99e3(0x29b)][0x0]][_0xf99e3(0x2e2)]:this['options'][_0xf99e3(0x181)][0x0][_0xf99e3(0x2e2)]),this[_0xf99e3(0x30b)]['innerHTML']=(0x0,_0x54496b[_0xf99e3(0x1dd)])({'options':this[_0xf99e3(0x15b)],'icons':_0x587d6e[_0xf99e3(0x1dd)],'cover':_0x1a39e4,'getObject':function(_0x1620df){return _0x1620df;}}),this[_0xf99e3(0x2fd)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x184)),this['lrcWrap']=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x17f)),this['ptime']=this[_0xf99e3(0x30b)]['querySelector'](_0xf99e3(0x27a)),this[_0xf99e3(0x16a)]=this['container']['querySelector'](_0xf99e3(0x2af)),this[_0xf99e3(0x2ec)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-time'),this['barWrap']=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x284)),this[_0xf99e3(0x23e)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-button'),this[_0xf99e3(0x2f9)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x2a3)),this[_0xf99e3(0x31f)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-list'),this[_0xf99e3(0x177)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-list\x20ol'),this['listCurs']=this[_0xf99e3(0x30b)][_0xf99e3(0x2b6)](_0xf99e3(0x1b6)),this[_0xf99e3(0x1eb)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x250)),this[_0xf99e3(0x218)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-loaded'),this[_0xf99e3(0x1fe)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x1c3)),this['volume']=this[_0xf99e3(0x30b)]['querySelector'](_0xf99e3(0x1e8)),this[_0xf99e3(0x1b0)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x1e7)),this[_0xf99e3(0x27d)]=this['container'][_0xf99e3(0x16c)](_0xf99e3(0x1c7)),this['volumeBarWrap']=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x1f5)),this[_0xf99e3(0x2c3)]=this['container'][_0xf99e3(0x16c)](_0xf99e3(0x20d)),this[_0xf99e3(0x282)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-icon-order'),this[_0xf99e3(0x2fb)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x178)),this['pic']=this['container'][_0xf99e3(0x16c)]('.aplayer-pic'),this[_0xf99e3(0x312)]=this[_0xf99e3(0x30b)]['querySelector'](_0xf99e3(0x18e)),this[_0xf99e3(0x25b)]=this['container'][_0xf99e3(0x16c)](_0xf99e3(0x237)),this['dtime']=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x1cf)),this['notice']=this['container'][_0xf99e3(0x16c)]('.aplayer-notice'),this[_0xf99e3(0x263)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)]('.aplayer-miniswitcher'),this['skipBackButton']=this['container'][_0xf99e3(0x16c)]('.aplayer-icon-back'),this[_0xf99e3(0x317)]=this[_0xf99e3(0x30b)][_0xf99e3(0x16c)](_0xf99e3(0x1f0)),this[_0xf99e3(0x2d3)]=this[_0xf99e3(0x30b)]['querySelector']('.aplayer-icon-play'),this['lrcButton']=this['container'][_0xf99e3(0x16c)](_0xf99e3(0x321));}}]),_0x15e8b6;}());_0x5f3a36[_0x1a916f(0x1dd)]=_0x34b273;},function(_0xcd0aa3,_0x2da1a0,_0x5708ed){'use strict';var _0x47e8df=_0x25ee;Object[_0x47e8df(0x227)](_0x2da1a0,'__esModule',{'value':!0x0}),_0x2da1a0['default']=function(_0x2e115a){var _0x3b2367=_0x47e8df,_0x389cee={'container':_0x2e115a[_0x3b2367(0x2a6)]||document[_0x3b2367(0x1b5)](_0x3b2367(0x189))[0x0],'mini':_0x2e115a[_0x3b2367(0x1d1)]||_0x2e115a[_0x3b2367(0x2be)]||!0x1,'fixed':!0x1,'autoplay':!0x1,'mutex':!0x0,'lrcType':_0x2e115a[_0x3b2367(0x2bd)]||_0x2e115a[_0x3b2367(0x2fd)]||0x0,'preload':_0x3b2367(0x274),'theme':'#b7daff','loop':_0x3b2367(0x1c0),'order':_0x3b2367(0x31f),'volume':0.7,'listFolded':_0x2e115a['fixed'],'listMaxHeight':_0x2e115a[_0x3b2367(0x2ae)]||_0x3b2367(0x248),'audio':_0x2e115a[_0x3b2367(0x24b)]||[],'storageName':_0x3b2367(0x206)};for(var _0x4cb1a0 in _0x389cee)_0x389cee['hasOwnProperty'](_0x4cb1a0)&&!_0x2e115a[_0x3b2367(0x1df)](_0x4cb1a0)&&(_0x2e115a[_0x4cb1a0]=_0x389cee[_0x4cb1a0]);return'[object\x20Array]'!==Object[_0x3b2367(0x2c5)]['toString'][_0x3b2367(0x2c6)](_0x2e115a['audio'])&&(_0x2e115a['audio']=[_0x2e115a[_0x3b2367(0x181)]]),_0x2e115a[_0x3b2367(0x181)][_0x3b2367(0x241)](function(_0xe07d4){var _0x47544f=_0x3b2367;return _0xe07d4['name']=_0xe07d4[_0x47544f(0x201)]||_0xe07d4['title']||_0x47544f(0x22a),_0xe07d4['artist']=_0xe07d4[_0x47544f(0x257)]||_0xe07d4[_0x47544f(0x25b)]||_0x47544f(0x229),_0xe07d4[_0x47544f(0x2e2)]=_0xe07d4[_0x47544f(0x2e2)]||_0xe07d4[_0x47544f(0x308)],_0xe07d4['type']=_0xe07d4[_0x47544f(0x20c)]||_0x47544f(0x28d),_0xe07d4;}),_0x2e115a[_0x3b2367(0x181)]['length']<=0x1&&_0x3b2367(0x271)===_0x2e115a[_0x3b2367(0x2c3)]&&(_0x2e115a[_0x3b2367(0x2c3)]=_0x3b2367(0x1c0)),_0x2e115a;};},function(_0x220ad7,_0x44dde6){var _0x20d7dd=_0x25ee;_0x220ad7['exports']=_0x20d7dd(0x226);},function(_0x11beed,_0x3cdfe2){var _0x64ef95=_0x25ee;_0x11beed['exports']=_0x64ef95(0x15f);},function(_0x4012be,_0x2d5dc5){var _0x3ab00a=_0x25ee;_0x4012be[_0x3ab00a(0x2e9)]='<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20version=\x221.1\x22\x20viewBox=\x220\x200\x2032\x2032\x22><path\x20d=\x22M22\x2016l-10.105-10.6-1.895\x201.987\x208.211\x208.613-8.211\x208.612\x201.895\x201.988\x208.211-8.613z\x22></path></svg>';},function(_0x23bda9,_0x3e4401){var _0x3f5095=_0x25ee;_0x23bda9['exports']=_0x3f5095(0x232);},function(_0x1e0f80,_0x1b5340){var _0x500afa=_0x25ee;_0x1e0f80[_0x500afa(0x2e9)]='<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20version=\x221.1\x22\x20viewBox=\x220\x200\x2029\x2032\x22><path\x20d=\x22M2.667\x207.027l1.707-1.693\x2022.293\x2022.293-1.693\x201.707-4-4h-11.64v4l-5.333-5.333\x205.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667\x2017.333h2.667v5.573l-2.667-2.667v-2.907zM22.667\x206.667v-4l5.333\x205.333-5.333\x205.333v-4h-10.907l-2.667-2.667h13.573z\x22></path></svg>';},function(_0x568363,_0x3dab71){var _0x111b2b=_0x25ee;_0x568363[_0x111b2b(0x2e9)]=_0x111b2b(0x26e);},function(_0x63ea7f,_0x261b8c){var _0x229b45=_0x25ee;_0x63ea7f[_0x229b45(0x2e9)]='<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20version=\x221.1\x22\x20viewBox=\x220\x200\x2029\x2032\x22><path\x20d=\x22M9.333\x209.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667\x2022.667h-13.333v-4l-5.333\x205.333\x205.333\x205.333v-4h16v-8h-2.667v5.333z\x22></path></svg>';},function(_0x5c7603,_0x540ead){var _0x520c1b=_0x25ee;_0x5c7603[_0x520c1b(0x2e9)]=_0x520c1b(0x1bb);},function(_0x572dd8,_0x1b72d2){var _0x8e146d=_0x25ee;_0x572dd8[_0x8e146d(0x2e9)]=_0x8e146d(0x197);},function(_0x85bd08,_0x56c8e9){var _0x253b1e=_0x25ee;_0x85bd08[_0x253b1e(0x2e9)]='<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20version=\x221.1\x22\x20viewBox=\x220\x200\x2032\x2032\x22><path\x20d=\x22M22.667\x204l7\x206-7\x206\x207\x206-7\x206v-4h-3.653l-3.76-3.76\x202.827-2.827\x202.587\x202.587h2v-8h-2l-12\x2012h-6v-4h4.347l12-12h3.653v-4zM2.667\x208h6l3.76\x203.76-2.827\x202.827-2.587-2.587h-4.347v-4z\x22></path></svg>';},function(_0x38679d,_0x3b95f3){var _0xa24566=_0x25ee;_0x38679d['exports']=_0xa24566(0x264);},function(_0x41a5a5,_0x191481){var _0x2140fc=_0x25ee;_0x41a5a5[_0x2140fc(0x2e9)]=_0x2140fc(0x21c);},function(_0x72182c,_0xa41c51){var _0x4c474e=_0x25ee;_0x72182c[_0x4c474e(0x2e9)]=_0x4c474e(0x22c);},function(_0x1301b5,_0x1e6e3b){var _0x33ffc2=_0x25ee;_0x1301b5['exports']=_0x33ffc2(0x140);},function(_0x281064,_0x37f788){var _0x1e9174=_0x25ee;_0x281064[_0x1e9174(0x2e9)]=_0x1e9174(0x1ac);},function(_0x1f654e,_0xbb4b97,_0x1d87a1){'use strict';var _0x134386=_0x25ee;var _0x1d321b,_0x587926,_0x266a1c=_0x1f654e[_0x134386(0x2e9)]={};function _0x34f4d7(){throw new Error('setTimeout\x20has\x20not\x20been\x20defined');}function _0x5023fe(){throw new Error('clearTimeout\x20has\x20not\x20been\x20defined');}function _0x42943b(_0x166deb){var _0x14721d=_0x134386;if(_0x1d321b===setTimeout)return setTimeout(_0x166deb,0x0);if((_0x1d321b===_0x34f4d7||!_0x1d321b)&&setTimeout)return _0x1d321b=setTimeout,setTimeout(_0x166deb,0x0);try{return _0x1d321b(_0x166deb,0x0);}catch(_0x9a0570){try{return _0x1d321b[_0x14721d(0x2c6)](null,_0x166deb,0x0);}catch(_0x563296){return _0x1d321b[_0x14721d(0x2c6)](this,_0x166deb,0x0);}}}!(function(){var _0x732fbc=_0x134386;try{_0x1d321b=_0x732fbc(0x2f5)==typeof setTimeout?setTimeout:_0x34f4d7;}catch(_0x46973){_0x1d321b=_0x34f4d7;}try{_0x587926='function'==typeof clearTimeout?clearTimeout:_0x5023fe;}catch(_0x5e9ccc){_0x587926=_0x5023fe;}}());var _0x1480e8,_0x420b45=[],_0x550caa=!0x1,_0x421b75=-0x1;function _0x55b3c7(){var _0x919046=_0x134386;_0x550caa&&_0x1480e8&&(_0x550caa=!0x1,_0x1480e8[_0x919046(0x18f)]?_0x420b45=_0x1480e8['concat'](_0x420b45):_0x421b75=-0x1,_0x420b45[_0x919046(0x18f)]&&_0x1ee61e());}function _0x1ee61e(){var _0x5132e7=_0x134386;if(!_0x550caa){var _0x4a883b=_0x42943b(_0x55b3c7);_0x550caa=!0x0;for(var _0x1e5283=_0x420b45[_0x5132e7(0x18f)];_0x1e5283;){for(_0x1480e8=_0x420b45,_0x420b45=[];++_0x421b75<_0x1e5283;)_0x1480e8&&_0x1480e8[_0x421b75][_0x5132e7(0x1d6)]();_0x421b75=-0x1,_0x1e5283=_0x420b45['length'];}_0x1480e8=null,_0x550caa=!0x1,function(_0x6e33b8){var _0x1ca5dc=_0x5132e7;if(_0x587926===clearTimeout)return clearTimeout(_0x6e33b8);if((_0x587926===_0x5023fe||!_0x587926)&&clearTimeout)return _0x587926=clearTimeout,clearTimeout(_0x6e33b8);try{_0x587926(_0x6e33b8);}catch(_0x4cc68c){try{return _0x587926[_0x1ca5dc(0x2c6)](null,_0x6e33b8);}catch(_0x2a6320){return _0x587926[_0x1ca5dc(0x2c6)](this,_0x6e33b8);}}}(_0x4a883b);}}function _0x3e58e1(_0x215ff2,_0x465714){var _0x3d5a46=_0x134386;this['fun']=_0x215ff2,this[_0x3d5a46(0x1f7)]=_0x465714;}function _0x348668(){}_0x266a1c[_0x134386(0x255)]=function(_0x297c9f){var _0x17d383=_0x134386,_0x374510=new Array(arguments[_0x17d383(0x18f)]-0x1);if(arguments[_0x17d383(0x18f)]>0x1){for(var _0x2531c5=0x1;_0x2531c5<arguments[_0x17d383(0x18f)];_0x2531c5++)_0x374510[_0x2531c5-0x1]=arguments[_0x2531c5];}_0x420b45[_0x17d383(0x2cc)](new _0x3e58e1(_0x297c9f,_0x374510)),0x1!==_0x420b45[_0x17d383(0x18f)]||_0x550caa||_0x42943b(_0x1ee61e);},_0x3e58e1[_0x134386(0x2c5)][_0x134386(0x1d6)]=function(){var _0x59e944=_0x134386;this['fun'][_0x59e944(0x19c)](null,this['array']);},_0x266a1c['title']=_0x134386(0x2c0),_0x266a1c[_0x134386(0x2c0)]=!0x0,_0x266a1c[_0x134386(0x1c1)]={},_0x266a1c[_0x134386(0x2ab)]=[],_0x266a1c[_0x134386(0x329)]='',_0x266a1c[_0x134386(0x1e9)]={},_0x266a1c['on']=_0x348668,_0x266a1c[_0x134386(0x1af)]=_0x348668,_0x266a1c[_0x134386(0x311)]=_0x348668,_0x266a1c[_0x134386(0x195)]=_0x348668,_0x266a1c[_0x134386(0x2e6)]=_0x348668,_0x266a1c['removeAllListeners']=_0x348668,_0x266a1c[_0x134386(0x31d)]=_0x348668,_0x266a1c[_0x134386(0x2f2)]=_0x348668,_0x266a1c['prependOnceListener']=_0x348668,_0x266a1c['listeners']=function(_0x551ef7){return[];},_0x266a1c[_0x134386(0x25c)]=function(_0x3b41ea){throw new Error('process.binding\x20is\x20not\x20supported');},_0x266a1c[_0x134386(0x15a)]=function(){return'/';},_0x266a1c[_0x134386(0x290)]=function(_0x3d8f6f){var _0x1e7bb8=_0x134386;throw new Error(_0x1e7bb8(0x160));},_0x266a1c[_0x134386(0x28f)]=function(){return 0x0;};},function(_0x542885,_0x34f5c1,_0x2d5fec){'use strict';var _0x53ab6f=_0x25ee;(function(_0x2e0073,_0x2f7f6c){var _0x4f7d0f=_0x25ee;!function(_0x3fd8ac,_0x85f80a){var _0x2063f1=_0x25ee;if(!_0x3fd8ac[_0x2063f1(0x324)]){var _0x299f0e,_0x127558,_0x5ce47e,_0x112a18,_0x2ab409,_0x3dacf5=0x1,_0x46fb34={},_0x539ceb=!0x1,_0x17c324=_0x3fd8ac[_0x2063f1(0x2e7)],_0x536fba=Object[_0x2063f1(0x24a)]&&Object[_0x2063f1(0x24a)](_0x3fd8ac);_0x536fba=_0x536fba&&_0x536fba[_0x2063f1(0x1b9)]?_0x536fba:_0x3fd8ac,_0x2063f1(0x146)==={}[_0x2063f1(0x1a3)][_0x2063f1(0x2c6)](_0x3fd8ac[_0x2063f1(0x1f2)])?_0x299f0e=function(_0x52133f){var _0x46076b=_0x2063f1;_0x2f7f6c[_0x46076b(0x255)](function(){_0x3bc3a3(_0x52133f);});}:!(function(){var _0x3bdbab=_0x2063f1;if(_0x3fd8ac['postMessage']&&!_0x3fd8ac[_0x3bdbab(0x1bf)]){var _0x816030=!0x0,_0x1f922c=_0x3fd8ac['onmessage'];return _0x3fd8ac[_0x3bdbab(0x2e1)]=function(){_0x816030=!0x1;},_0x3fd8ac[_0x3bdbab(0x280)]('','*'),_0x3fd8ac[_0x3bdbab(0x2e1)]=_0x1f922c,_0x816030;}}())?_0x3fd8ac['MessageChannel']?((_0x5ce47e=new MessageChannel())['port1']['onmessage']=function(_0x42a687){var _0x29e903=_0x2063f1;_0x3bc3a3(_0x42a687[_0x29e903(0x1b7)]);},_0x299f0e=function(_0x458358){var _0x5852e2=_0x2063f1;_0x5ce47e['port2'][_0x5852e2(0x280)](_0x458358);}):_0x17c324&&_0x2063f1(0x1c6)in _0x17c324[_0x2063f1(0x1fa)](_0x2063f1(0x2bf))?(_0x127558=_0x17c324[_0x2063f1(0x21f)],_0x299f0e=function(_0xb40d1c){var _0x565257=_0x2063f1,_0x1f5a20=_0x17c324[_0x565257(0x1fa)]('script');_0x1f5a20[_0x565257(0x1c6)]=function(){var _0x46c486=_0x565257;_0x3bc3a3(_0xb40d1c),_0x1f5a20[_0x46c486(0x1c6)]=null,_0x127558[_0x46c486(0x21b)](_0x1f5a20),_0x1f5a20=null;},_0x127558['appendChild'](_0x1f5a20);}):_0x299f0e=function(_0x3f63ae){setTimeout(_0x3bc3a3,0x0,_0x3f63ae);}:(_0x112a18=_0x2063f1(0x2fa)+Math[_0x2063f1(0x235)]()+'$',_0x2ab409=function(_0x1a4c22){var _0x2519b3=_0x2063f1;_0x1a4c22[_0x2519b3(0x175)]===_0x3fd8ac&&_0x2519b3(0x249)==typeof _0x1a4c22['data']&&0x0===_0x1a4c22[_0x2519b3(0x1b7)][_0x2519b3(0x1d8)](_0x112a18)&&_0x3bc3a3(+_0x1a4c22[_0x2519b3(0x1b7)][_0x2519b3(0x14b)](_0x112a18[_0x2519b3(0x18f)]));},_0x3fd8ac[_0x2063f1(0x1e6)]?_0x3fd8ac[_0x2063f1(0x1e6)](_0x2063f1(0x251),_0x2ab409,!0x1):_0x3fd8ac[_0x2063f1(0x319)](_0x2063f1(0x2e1),_0x2ab409),_0x299f0e=function(_0x2472a3){_0x3fd8ac['postMessage'](_0x112a18+_0x2472a3,'*');}),_0x536fba[_0x2063f1(0x324)]=function(_0x4580e6){var _0x49c428=_0x2063f1;'function'!=typeof _0x4580e6&&(_0x4580e6=new Function(''+_0x4580e6));for(var _0x32257d=new Array(arguments[_0x49c428(0x18f)]-0x1),_0x2c5316=0x0;_0x2c5316<_0x32257d[_0x49c428(0x18f)];_0x2c5316++)_0x32257d[_0x2c5316]=arguments[_0x2c5316+0x1];var _0x5a9799={'callback':_0x4580e6,'args':_0x32257d};return _0x46fb34[_0x3dacf5]=_0x5a9799,_0x299f0e(_0x3dacf5),_0x3dacf5++;},_0x536fba[_0x2063f1(0x26d)]=_0x32b11f;}function _0x32b11f(_0x4e35d1){delete _0x46fb34[_0x4e35d1];}function _0x3bc3a3(_0x8003a7){if(_0x539ceb)setTimeout(_0x3bc3a3,0x0,_0x8003a7);else{var _0x11b172=_0x46fb34[_0x8003a7];if(_0x11b172){_0x539ceb=!0x0;try{!function(_0x2554ec){var _0x2eaca7=_0x25ee,_0x5b7d56=_0x2554ec[_0x2eaca7(0x1e5)],_0x23a190=_0x2554ec[_0x2eaca7(0x272)];switch(_0x23a190['length']){case 0x0:_0x5b7d56();break;case 0x1:_0x5b7d56(_0x23a190[0x0]);break;case 0x2:_0x5b7d56(_0x23a190[0x0],_0x23a190[0x1]);break;case 0x3:_0x5b7d56(_0x23a190[0x0],_0x23a190[0x1],_0x23a190[0x2]);break;default:_0x5b7d56['apply'](_0x85f80a,_0x23a190);}}(_0x11b172);}finally{_0x32b11f(_0x8003a7),_0x539ceb=!0x1;}}}}}(_0x4f7d0f(0x2f4)==typeof self?void 0x0===_0x2e0073?void 0x0:_0x2e0073:self);}[_0x53ab6f(0x2c6)](this,_0x2d5fec(0x4),_0x2d5fec(0x22)));},function(_0x478847,_0x586c99,_0x6d588c){'use strict';var _0x24b76c=_0x25ee;var _0x48823a=Function[_0x24b76c(0x2c5)][_0x24b76c(0x19c)];function _0x41ec47(_0x34348c,_0x3b9121){var _0x22dc70=_0x24b76c;this[_0x22dc70(0x28a)]=_0x34348c,this[_0x22dc70(0x19f)]=_0x3b9121;}_0x586c99[_0x24b76c(0x1b9)]=function(){var _0x4ee9aa=_0x24b76c;return new _0x41ec47(_0x48823a[_0x4ee9aa(0x2c6)](setTimeout,window,arguments),clearTimeout);},_0x586c99[_0x24b76c(0x2f7)]=function(){var _0x26154b=_0x24b76c;return new _0x41ec47(_0x48823a[_0x26154b(0x2c6)](setInterval,window,arguments),clearInterval);},_0x586c99['clearTimeout']=_0x586c99[_0x24b76c(0x302)]=function(_0x487004){_0x487004&&_0x487004['close']();},_0x41ec47[_0x24b76c(0x2c5)][_0x24b76c(0x1d2)]=_0x41ec47['prototype']['ref']=function(){},_0x41ec47['prototype'][_0x24b76c(0x156)]=function(){var _0x1840ea=_0x24b76c;this[_0x1840ea(0x19f)][_0x1840ea(0x2c6)](window,this[_0x1840ea(0x28a)]);},_0x586c99[_0x24b76c(0x2a7)]=function(_0x5cce06,_0xeabca6){var _0x2d88b7=_0x24b76c;clearTimeout(_0x5cce06[_0x2d88b7(0x2a8)]),_0x5cce06[_0x2d88b7(0x2c8)]=_0xeabca6;},_0x586c99[_0x24b76c(0x26a)]=function(_0x5879ae){var _0x5e3d60=_0x24b76c;clearTimeout(_0x5879ae['_idleTimeoutId']),_0x5879ae[_0x5e3d60(0x2c8)]=-0x1;},_0x586c99[_0x24b76c(0x145)]=_0x586c99[_0x24b76c(0x143)]=function(_0x865da2){var _0x1fbaf3=_0x24b76c;clearTimeout(_0x865da2[_0x1fbaf3(0x2a8)]);var _0x3bc81b=_0x865da2[_0x1fbaf3(0x2c8)];_0x3bc81b>=0x0&&(_0x865da2[_0x1fbaf3(0x2a8)]=setTimeout(function(){var _0x441dd8=_0x1fbaf3;_0x865da2[_0x441dd8(0x17e)]&&_0x865da2[_0x441dd8(0x17e)]();},_0x3bc81b));},_0x6d588c(0x23),_0x586c99[_0x24b76c(0x324)]=setImmediate,_0x586c99[_0x24b76c(0x26d)]=clearImmediate;},function(_0x41f344,_0x18f674,_0x7bea2f){'use strict';var _0xeca524=_0x25ee;(function(_0x1f0a29){var _0x17606c=_0x25ee,_0x4e5793='function'==typeof Symbol&&_0x17606c(0x2d4)==typeof Symbol['iterator']?function(_0xc6c6fb){return typeof _0xc6c6fb;}:function(_0x32e22f){var _0x1b9687=_0x17606c;return _0x32e22f&&'function'==typeof Symbol&&_0x32e22f['constructor']===Symbol&&_0x32e22f!==Symbol['prototype']?_0x1b9687(0x2d4):typeof _0x32e22f;},_0x567613=setTimeout;function _0x4030a6(){}function _0x266752(_0x14238a){var _0x2380fc=_0x17606c;if(!(this instanceof _0x266752))throw new TypeError(_0x2380fc(0x150));if('function'!=typeof _0x14238a)throw new TypeError(_0x2380fc(0x269));this[_0x2380fc(0x1d0)]=0x0,this[_0x2380fc(0x173)]=!0x1,this[_0x2380fc(0x1ba)]=void 0x0,this[_0x2380fc(0x23c)]=[],_0x3458c7(_0x14238a,this);}function _0x48a787(_0x3ec3dd,_0x3be2c){var _0x5adf26=_0x17606c;for(;0x3===_0x3ec3dd[_0x5adf26(0x1d0)];)_0x3ec3dd=_0x3ec3dd[_0x5adf26(0x1ba)];0x0!==_0x3ec3dd['_state']?(_0x3ec3dd[_0x5adf26(0x173)]=!0x0,_0x266752[_0x5adf26(0x23d)](function(){var _0x51e14e=_0x5adf26,_0x4dbb68=0x1===_0x3ec3dd[_0x51e14e(0x1d0)]?_0x3be2c[_0x51e14e(0x243)]:_0x3be2c[_0x51e14e(0x13d)];if(null!==_0x4dbb68){var _0x384aeb;try{_0x384aeb=_0x4dbb68(_0x3ec3dd[_0x51e14e(0x1ba)]);}catch(_0x4e6451){return void _0x2eb417(_0x3be2c[_0x51e14e(0x2dd)],_0x4e6451);}_0x540eb3(_0x3be2c[_0x51e14e(0x2dd)],_0x384aeb);}else(0x1===_0x3ec3dd['_state']?_0x540eb3:_0x2eb417)(_0x3be2c[_0x51e14e(0x2dd)],_0x3ec3dd[_0x51e14e(0x1ba)]);})):_0x3ec3dd[_0x5adf26(0x23c)]['push'](_0x3be2c);}function _0x540eb3(_0x29fd6f,_0x355642){var _0x52d92f=_0x17606c;try{if(_0x355642===_0x29fd6f)throw new TypeError(_0x52d92f(0x323));if(_0x355642&&(_0x52d92f(0x1fb)===(void 0x0===_0x355642?'undefined':_0x4e5793(_0x355642))||_0x52d92f(0x2f5)==typeof _0x355642)){var _0x3dc8ed=_0x355642[_0x52d92f(0x278)];if(_0x355642 instanceof _0x266752)return _0x29fd6f[_0x52d92f(0x1d0)]=0x3,_0x29fd6f[_0x52d92f(0x1ba)]=_0x355642,void _0x1df802(_0x29fd6f);if(_0x52d92f(0x2f5)==typeof _0x3dc8ed)return void _0x3458c7((_0x1d4294=_0x3dc8ed,_0x168f38=_0x355642,function(){var _0x5174dd=_0x52d92f;_0x1d4294[_0x5174dd(0x19c)](_0x168f38,arguments);}),_0x29fd6f);}_0x29fd6f[_0x52d92f(0x1d0)]=0x1,_0x29fd6f[_0x52d92f(0x1ba)]=_0x355642,_0x1df802(_0x29fd6f);}catch(_0x347d6e){_0x2eb417(_0x29fd6f,_0x347d6e);}var _0x1d4294,_0x168f38;}function _0x2eb417(_0x2ee626,_0x793b3){var _0xd1ed7=_0x17606c;_0x2ee626[_0xd1ed7(0x1d0)]=0x2,_0x2ee626[_0xd1ed7(0x1ba)]=_0x793b3,_0x1df802(_0x2ee626);}function _0x1df802(_0x273c94){var _0x176974=_0x17606c;0x2===_0x273c94[_0x176974(0x1d0)]&&0x0===_0x273c94[_0x176974(0x23c)][_0x176974(0x18f)]&&_0x266752['_immediateFn'](function(){var _0xe9d5b3=_0x176974;_0x273c94[_0xe9d5b3(0x173)]||_0x266752[_0xe9d5b3(0x1cc)](_0x273c94[_0xe9d5b3(0x1ba)]);});for(var _0x450326=0x0,_0x379393=_0x273c94['_deferreds'][_0x176974(0x18f)];_0x450326<_0x379393;_0x450326++)_0x48a787(_0x273c94,_0x273c94[_0x176974(0x23c)][_0x450326]);_0x273c94['_deferreds']=null;}function _0x3458c7(_0x511469,_0x3f373d){var _0x4f7942=!0x1;try{_0x511469(function(_0x1b6e5e){_0x4f7942||(_0x4f7942=!0x0,_0x540eb3(_0x3f373d,_0x1b6e5e));},function(_0x827628){_0x4f7942||(_0x4f7942=!0x0,_0x2eb417(_0x3f373d,_0x827628));});}catch(_0x5659a3){if(_0x4f7942)return;_0x4f7942=!0x0,_0x2eb417(_0x3f373d,_0x5659a3);}}_0x266752['prototype'][_0x17606c(0x1b2)]=function(_0x15687b){var _0x4d12cf=_0x17606c;return this[_0x4d12cf(0x278)](null,_0x15687b);},_0x266752['prototype'][_0x17606c(0x278)]=function(_0x5e36c3,_0x412c4b){var _0xd80a1b=new this['constructor'](_0x4030a6);return _0x48a787(this,new function(_0x3355bd,_0x1f9f61,_0xfed338){var _0xe04534=_0x25ee;this[_0xe04534(0x243)]='function'==typeof _0x3355bd?_0x3355bd:null,this['onRejected']=_0xe04534(0x2f5)==typeof _0x1f9f61?_0x1f9f61:null,this[_0xe04534(0x2dd)]=_0xfed338;}(_0x5e36c3,_0x412c4b,_0xd80a1b)),_0xd80a1b;},_0x266752[_0x17606c(0x2c5)][_0x17606c(0x2e4)]=function(_0x598819){var _0x586f74=_0x17606c,_0x2b9113=this['constructor'];return this[_0x586f74(0x278)](function(_0x32e7c8){var _0x459e98=_0x586f74;return _0x2b9113[_0x459e98(0x2f3)](_0x598819())['then'](function(){return _0x32e7c8;});},function(_0x4535a6){var _0x25aacf=_0x586f74;return _0x2b9113[_0x25aacf(0x2f3)](_0x598819())[_0x25aacf(0x278)](function(){return _0x2b9113['reject'](_0x4535a6);});});},_0x266752[_0x17606c(0x1c0)]=function(_0x5b869e){return new _0x266752(function(_0x11559f,_0x499947){var _0x23c899=_0x25ee;if(!_0x5b869e||void 0x0===_0x5b869e[_0x23c899(0x18f)])throw new TypeError(_0x23c899(0x1db));var _0x2e4d0f=Array[_0x23c899(0x2c5)]['slice'][_0x23c899(0x2c6)](_0x5b869e);if(0x0===_0x2e4d0f['length'])return _0x11559f([]);var _0x428648=_0x2e4d0f['length'];function _0x33b015(_0x30a2c4,_0x2c5194){var _0x2b35ef=_0x23c899;try{if(_0x2c5194&&(_0x2b35ef(0x1fb)===(void 0x0===_0x2c5194?_0x2b35ef(0x2f4):_0x4e5793(_0x2c5194))||_0x2b35ef(0x2f5)==typeof _0x2c5194)){var _0x24d8e2=_0x2c5194['then'];if('function'==typeof _0x24d8e2)return void _0x24d8e2[_0x2b35ef(0x2c6)](_0x2c5194,function(_0x228432){_0x33b015(_0x30a2c4,_0x228432);},_0x499947);}_0x2e4d0f[_0x30a2c4]=_0x2c5194,0x0==--_0x428648&&_0x11559f(_0x2e4d0f);}catch(_0x4725e9){_0x499947(_0x4725e9);}}for(var _0x517c8e=0x0;_0x517c8e<_0x2e4d0f[_0x23c899(0x18f)];_0x517c8e++)_0x33b015(_0x517c8e,_0x2e4d0f[_0x517c8e]);});},_0x266752[_0x17606c(0x2f3)]=function(_0x221b48){var _0x594ac4=_0x17606c;return _0x221b48&&_0x594ac4(0x1fb)===(void 0x0===_0x221b48?_0x594ac4(0x2f4):_0x4e5793(_0x221b48))&&_0x221b48[_0x594ac4(0x213)]===_0x266752?_0x221b48:new _0x266752(function(_0x1197e8){_0x1197e8(_0x221b48);});},_0x266752[_0x17606c(0x210)]=function(_0x109b98){return new _0x266752(function(_0x586169,_0xcd48ce){_0xcd48ce(_0x109b98);});},_0x266752[_0x17606c(0x170)]=function(_0x1dc519){return new _0x266752(function(_0x30ad17,_0x4b8f71){var _0x5015b4=_0x25ee;for(var _0x32a3fb=0x0,_0x415f1a=_0x1dc519[_0x5015b4(0x18f)];_0x32a3fb<_0x415f1a;_0x32a3fb++)_0x1dc519[_0x32a3fb]['then'](_0x30ad17,_0x4b8f71);});},_0x266752[_0x17606c(0x23d)]=_0x17606c(0x2f5)==typeof _0x1f0a29&&function(_0x17a0b9){_0x1f0a29(_0x17a0b9);}||function(_0x448288){_0x567613(_0x448288,0x0);},_0x266752[_0x17606c(0x1cc)]=function(_0x50d2c6){var _0xdcdb84=_0x17606c;_0xdcdb84(0x2f4)!=typeof console&&console&&console['warn']('Possible\x20Unhandled\x20Promise\x20Rejection:',_0x50d2c6);},_0x41f344['exports']=_0x266752;}[_0xeca524(0x2c6)](this,_0x7bea2f(0x24)[_0xeca524(0x324)]));},function(_0x2f89d,_0x5c934c,_0x6b0056){'use strict';var _0x37ea07=_0x25ee;Object[_0x37ea07(0x227)](_0x5c934c,'__esModule',{'value':!0x0});var _0x5b082f=(function(){function _0x4506fe(_0x1f4563,_0x1fedd2){var _0x22fe19=_0x25ee;for(var _0x3528cb=0x0;_0x3528cb<_0x1fedd2['length'];_0x3528cb++){var _0x249569=_0x1fedd2[_0x3528cb];_0x249569[_0x22fe19(0x30f)]=_0x249569[_0x22fe19(0x30f)]||!0x1,_0x249569[_0x22fe19(0x1ec)]=!0x0,_0x22fe19(0x292)in _0x249569&&(_0x249569[_0x22fe19(0x16d)]=!0x0),Object[_0x22fe19(0x227)](_0x1f4563,_0x249569[_0x22fe19(0x2a2)],_0x249569);}}return function(_0x3c4063,_0xc866af,_0x39fe1a){var _0x53fcb6=_0x25ee;return _0xc866af&&_0x4506fe(_0x3c4063[_0x53fcb6(0x2c5)],_0xc866af),_0x39fe1a&&_0x4506fe(_0x3c4063,_0x39fe1a),_0x3c4063;};}()),_0x5eee52=_0x4c408d(_0x6b0056(0x25)),_0x3d0b16=_0x4c408d(_0x6b0056(0x0)),_0x4b03d3=_0x4c408d(_0x6b0056(0x3)),_0x3d0555=_0x4c408d(_0x6b0056(0x12)),_0x3b68a0=_0x4c408d(_0x6b0056(0x11)),_0x4172ab=_0x4c408d(_0x6b0056(0xd)),_0x118dad=_0x4c408d(_0x6b0056(0xc)),_0x3d54ee=_0x4c408d(_0x6b0056(0xb)),_0x548b3b=_0x4c408d(_0x6b0056(0x9)),_0x4d87b9=_0x4c408d(_0x6b0056(0x8)),_0x49c490=_0x4c408d(_0x6b0056(0x7)),_0x341a6f=_0x4c408d(_0x6b0056(0x6));function _0x4c408d(_0x3110c2){var _0xe6bbbf=_0x37ea07;return _0x3110c2&&_0x3110c2[_0xe6bbbf(0x14c)]?_0x3110c2:{'default':_0x3110c2};}var _0x341bbb=[],_0x519ee6=(function(){var _0x530c6c=_0x37ea07;function _0x5614a9(_0x2d8f62){var _0x591d8e=_0x25ee;if(function(_0x3e3970,_0x2f1f6e){if(!(_0x3e3970 instanceof _0x2f1f6e))throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');}(this,_0x5614a9),this[_0x591d8e(0x15b)]=(0x0,_0x3d0555[_0x591d8e(0x1dd)])(_0x2d8f62),this[_0x591d8e(0x30b)]=this[_0x591d8e(0x15b)][_0x591d8e(0x30b)],this[_0x591d8e(0x1cd)]=!0x0,this[_0x591d8e(0x1c5)]=_0x5eee52[_0x591d8e(0x1dd)][_0x591d8e(0x2f3)](),this['mode']='normal',this[_0x591d8e(0x29b)]=_0x3d0b16[_0x591d8e(0x1dd)][_0x591d8e(0x29b)](this['options']['audio'][_0x591d8e(0x18f)]),this[_0x591d8e(0x30b)][_0x591d8e(0x314)][_0x591d8e(0x2db)]('aplayer'),this[_0x591d8e(0x15b)][_0x591d8e(0x2b9)]&&!this['options'][_0x591d8e(0x2be)]&&this['container'][_0x591d8e(0x314)][_0x591d8e(0x2db)](_0x591d8e(0x20f)),this['options'][_0x591d8e(0x181)]['length']>0x1&&this[_0x591d8e(0x30b)][_0x591d8e(0x314)][_0x591d8e(0x2db)]('aplayer-withlist'),_0x3d0b16[_0x591d8e(0x1dd)][_0x591d8e(0x1aa)]&&this[_0x591d8e(0x30b)][_0x591d8e(0x314)][_0x591d8e(0x2db)](_0x591d8e(0x1b8)),this[_0x591d8e(0x276)]=this['container'][_0x591d8e(0x2d6)]<=0x12c,this[_0x591d8e(0x276)]&&this[_0x591d8e(0x30b)]['classList']['add'](_0x591d8e(0x191)),this[_0x591d8e(0x30b)]=this[_0x591d8e(0x15b)][_0x591d8e(0x30b)],0x2===this[_0x591d8e(0x15b)]['lrcType']||!0x0===this[_0x591d8e(0x15b)][_0x591d8e(0x2b9)]){for(var _0x207bb4=this[_0x591d8e(0x30b)][_0x591d8e(0x1b5)](_0x591d8e(0x30e)),_0x3484f0=0x0;_0x3484f0<_0x207bb4[_0x591d8e(0x18f)];_0x3484f0++)this['options'][_0x591d8e(0x181)][_0x3484f0]&&(this[_0x591d8e(0x15b)][_0x591d8e(0x181)][_0x3484f0][_0x591d8e(0x2fd)]=_0x207bb4[_0x3484f0][_0x591d8e(0x2f8)]);}this['template']=new _0x3b68a0[(_0x591d8e(0x1dd))]({'container':this[_0x591d8e(0x30b)],'options':this[_0x591d8e(0x15b)],'randomOrder':this[_0x591d8e(0x29b)]}),this[_0x591d8e(0x15b)][_0x591d8e(0x2be)]&&(this['container'][_0x591d8e(0x314)][_0x591d8e(0x2db)](_0x591d8e(0x2ad)),this[_0x591d8e(0x1a9)][_0x591d8e(0x2f9)][_0x591d8e(0x205)][_0x591d8e(0x300)]=this[_0x591d8e(0x1a9)][_0x591d8e(0x2f9)][_0x591d8e(0x2d6)]-0x12+'px'),this[_0x591d8e(0x15b)][_0x591d8e(0x24d)]&&(this[_0x591d8e(0x215)](_0x591d8e(0x24d)),this['template'][_0x591d8e(0x16a)]['style'][_0x591d8e(0x1ed)]=_0x591d8e(0x268)),this[_0x591d8e(0x1a9)][_0x591d8e(0x16a)][_0x591d8e(0x2d6)]<0xc8&&this[_0x591d8e(0x1a9)][_0x591d8e(0x2ec)]['classList'][_0x591d8e(0x2db)]('aplayer-time-narrow'),this[_0x591d8e(0x15b)]['lrcType']&&(this[_0x591d8e(0x2fd)]=new _0x3d54ee[(_0x591d8e(0x1dd))]({'container':this[_0x591d8e(0x1a9)][_0x591d8e(0x2fd)],'async':0x3===this[_0x591d8e(0x15b)]['lrcType'],'player':this})),this['events']=new _0x49c490[(_0x591d8e(0x1dd))](),this['storage']=new _0x118dad[(_0x591d8e(0x1dd))](this),this[_0x591d8e(0x1d5)]=new _0x4172ab[(_0x591d8e(0x1dd))](this[_0x591d8e(0x1a9)]),this[_0x591d8e(0x2a9)]=new _0x548b3b[(_0x591d8e(0x1dd))](this),this[_0x591d8e(0x256)]=new _0x4d87b9[(_0x591d8e(0x1dd))](this),this[_0x591d8e(0x31f)]=new _0x341a6f[(_0x591d8e(0x1dd))](this),this[_0x591d8e(0x1f6)](),this[_0x591d8e(0x169)](),_0x591d8e(0x235)===this[_0x591d8e(0x15b)]['order']?this[_0x591d8e(0x31f)][_0x591d8e(0x325)](this[_0x591d8e(0x29b)][0x0]):this[_0x591d8e(0x31f)][_0x591d8e(0x325)](0x0),this['options']['autoplay']&&this[_0x591d8e(0x26f)](),_0x341bbb[_0x591d8e(0x2cc)](this);}return _0x5b082f(_0x5614a9,[{'key':_0x530c6c(0x1f6),'value':function(){var _0x575304=_0x530c6c,_0x496d35=this;this[_0x575304(0x181)]=document[_0x575304(0x1fa)]('audio'),this[_0x575304(0x181)][_0x575304(0x1fd)]=this[_0x575304(0x15b)][_0x575304(0x1fd)];for(var _0x18aa01=function(_0x311c69){var _0x411b73=_0x575304;_0x496d35[_0x411b73(0x181)][_0x411b73(0x1e6)](_0x496d35[_0x411b73(0x26c)][_0x411b73(0x1a6)][_0x311c69],function(_0xa5a348){var _0x17da04=_0x411b73;_0x496d35[_0x17da04(0x26c)][_0x17da04(0x20b)](_0x496d35[_0x17da04(0x26c)]['audioEvents'][_0x311c69],_0xa5a348);});},_0x18168b=0x0;_0x18168b<this[_0x575304(0x26c)][_0x575304(0x1a6)][_0x575304(0x18f)];_0x18168b++)_0x18aa01(_0x18168b);this['volume'](this[_0x575304(0x193)]['get']('volume'),!0x0);}},{'key':_0x530c6c(0x169),'value':function(){var _0x198ee1=_0x530c6c,_0x455f44=this;this['on']('play',function(){var _0x487580=_0x25ee;_0x455f44[_0x487580(0x1cd)]&&_0x455f44[_0x487580(0x164)]();}),this['on'](_0x198ee1(0x2c4),function(){var _0x520aa5=_0x198ee1;_0x455f44[_0x520aa5(0x1cd)]||_0x455f44[_0x520aa5(0x2d7)]();}),this['on']('timeupdate',function(){var _0x53db3c=_0x198ee1;if(!_0x455f44['disableTimeupdate']){_0x455f44[_0x53db3c(0x1d5)][_0x53db3c(0x2d0)]('played',_0x455f44['audio'][_0x53db3c(0x188)]/_0x455f44[_0x53db3c(0x228)],_0x53db3c(0x300)),_0x455f44[_0x53db3c(0x2fd)]&&_0x455f44['lrc'][_0x53db3c(0x1ca)]();var _0x3d5484=_0x3d0b16['default'][_0x53db3c(0x2b7)](_0x455f44['audio']['currentTime']);_0x455f44[_0x53db3c(0x1a9)][_0x53db3c(0x303)][_0x53db3c(0x2f8)]!==_0x3d5484&&(_0x455f44['template'][_0x53db3c(0x303)]['innerHTML']=_0x3d5484);}}),this['on'](_0x198ee1(0x2b5),function(){var _0x382b0b=_0x198ee1;0x1!==_0x455f44[_0x382b0b(0x228)]&&(_0x455f44['template']['dtime'][_0x382b0b(0x2f8)]=_0x3d0b16[_0x382b0b(0x1dd)]['secondToTime'](_0x455f44[_0x382b0b(0x228)]));}),this['on'](_0x198ee1(0x172),function(){var _0x23740d=_0x198ee1,_0x4f3039=_0x455f44['audio'][_0x23740d(0x209)][_0x23740d(0x18f)]?_0x455f44['audio']['buffered'][_0x23740d(0x1ae)](_0x455f44['audio'][_0x23740d(0x209)][_0x23740d(0x18f)]-0x1)/_0x455f44['duration']:0x0;_0x455f44[_0x23740d(0x1d5)][_0x23740d(0x2d0)](_0x23740d(0x218),_0x4f3039,_0x23740d(0x300));});var _0x5a46ca=void 0x0;this['on'](_0x198ee1(0x309),function(){var _0x285f69=_0x198ee1;_0x455f44[_0x285f69(0x31f)][_0x285f69(0x157)][_0x285f69(0x18f)]>0x1?(_0x455f44[_0x285f69(0x187)]('An\x20audio\x20error\x20has\x20occurred,\x20player\x20will\x20skip\x20forward\x20in\x202\x20seconds.'),_0x5a46ca=setTimeout(function(){var _0x42f2fa=_0x285f69;_0x455f44[_0x42f2fa(0x158)](),_0x455f44['paused']||_0x455f44[_0x42f2fa(0x26f)]();},0x7d0)):0x1===_0x455f44['list'][_0x285f69(0x157)][_0x285f69(0x18f)]&&_0x455f44[_0x285f69(0x187)](_0x285f69(0x239));}),this[_0x198ee1(0x26c)]['on']('listswitch',function(){_0x5a46ca&&clearTimeout(_0x5a46ca);}),this['on'](_0x198ee1(0x13b),function(){var _0x41fca6=_0x198ee1;_0x41fca6(0x203)===_0x455f44[_0x41fca6(0x15b)][_0x41fca6(0x2c3)]?_0x41fca6(0x31f)===_0x455f44[_0x41fca6(0x15b)]['order']?_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x154)]<_0x455f44[_0x41fca6(0x31f)]['audios']['length']-0x1?(_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x325)]((_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x154)]+0x1)%_0x455f44['list'][_0x41fca6(0x157)]['length']),_0x455f44[_0x41fca6(0x26f)]()):(_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x325)]((_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x154)]+0x1)%_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x157)][_0x41fca6(0x18f)]),_0x455f44['pause']()):_0x41fca6(0x235)===_0x455f44[_0x41fca6(0x15b)]['order']&&(_0x455f44[_0x41fca6(0x29b)]['indexOf'](_0x455f44[_0x41fca6(0x31f)]['index'])<_0x455f44[_0x41fca6(0x29b)][_0x41fca6(0x18f)]-0x1?(_0x455f44['list'][_0x41fca6(0x325)](_0x455f44['nextIndex']()),_0x455f44[_0x41fca6(0x26f)]()):(_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x325)](_0x455f44[_0x41fca6(0x176)]()),_0x455f44[_0x41fca6(0x2c4)]())):_0x41fca6(0x271)===_0x455f44[_0x41fca6(0x15b)][_0x41fca6(0x2c3)]?(_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x325)](_0x455f44[_0x41fca6(0x31f)][_0x41fca6(0x154)]),_0x455f44[_0x41fca6(0x26f)]()):'all'===_0x455f44[_0x41fca6(0x15b)][_0x41fca6(0x2c3)]&&(_0x455f44['skipForward'](),_0x455f44[_0x41fca6(0x26f)]());});}},{'key':_0x530c6c(0x1a5),'value':function(_0x361ea7){var _0x2f345c=_0x530c6c;this[_0x2f345c(0x15c)]&&(this['hls'][_0x2f345c(0x1bc)](),this[_0x2f345c(0x15c)]=null);var _0x459cd8=_0x361ea7[_0x2f345c(0x20c)];this[_0x2f345c(0x15b)]['customAudioType']&&this[_0x2f345c(0x15b)][_0x2f345c(0x1e4)][_0x459cd8]?_0x2f345c(0x2b3)===Object[_0x2f345c(0x2c5)][_0x2f345c(0x1a3)]['call'](this[_0x2f345c(0x15b)][_0x2f345c(0x1e4)][_0x459cd8])?this[_0x2f345c(0x15b)][_0x2f345c(0x1e4)][_0x459cd8](this[_0x2f345c(0x181)],_0x361ea7,this):console[_0x2f345c(0x309)](_0x2f345c(0x246)+_0x459cd8):(_0x459cd8&&'auto'!==_0x459cd8||(_0x459cd8=/m3u8(#|\?|$)/i[_0x2f345c(0x1f1)](_0x361ea7[_0x2f345c(0x212)])?_0x2f345c(0x15c):_0x2f345c(0x28d)),'hls'===_0x459cd8?Hls[_0x2f345c(0x14d)]()?(this[_0x2f345c(0x15c)]=new Hls(),this[_0x2f345c(0x15c)][_0x2f345c(0x14e)](_0x361ea7[_0x2f345c(0x212)]),this[_0x2f345c(0x15c)][_0x2f345c(0x27f)](this[_0x2f345c(0x181)])):this[_0x2f345c(0x181)][_0x2f345c(0x231)]('application/x-mpegURL')||this['audio'][_0x2f345c(0x231)](_0x2f345c(0x266))?this[_0x2f345c(0x181)][_0x2f345c(0x2c7)]=_0x361ea7[_0x2f345c(0x212)]:this[_0x2f345c(0x187)](_0x2f345c(0x29a)):_0x2f345c(0x28d)===_0x459cd8&&(this[_0x2f345c(0x181)]['src']=_0x361ea7[_0x2f345c(0x212)])),this[_0x2f345c(0x19b)](0x0),this['paused']||this['audio'][_0x2f345c(0x26f)]();}},{'key':_0x530c6c(0x165),'value':function(){var _0x26d61b=_0x530c6c,_0x1db844=arguments[_0x26d61b(0x18f)]>0x0&&void 0x0!==arguments[0x0]?arguments[0x0]:this['list'][_0x26d61b(0x157)][this['list']['index']][_0x26d61b(0x165)]||this[_0x26d61b(0x15b)][_0x26d61b(0x165)],_0x5efe90=arguments[_0x26d61b(0x18f)]>0x1&&void 0x0!==arguments[0x1]?arguments[0x1]:this[_0x26d61b(0x31f)]['index'];(!(arguments[_0x26d61b(0x18f)]>0x2&&void 0x0!==arguments[0x2])||arguments[0x2])&&this[_0x26d61b(0x31f)][_0x26d61b(0x157)][_0x5efe90]&&(this['list']['audios'][_0x5efe90][_0x26d61b(0x165)]=_0x1db844),this[_0x26d61b(0x1a9)][_0x26d61b(0x2e5)][_0x5efe90]&&(this[_0x26d61b(0x1a9)][_0x26d61b(0x2e5)][_0x5efe90][_0x26d61b(0x205)]['backgroundColor']=_0x1db844),_0x5efe90===this['list'][_0x26d61b(0x154)]&&(this[_0x26d61b(0x1a9)][_0x26d61b(0x308)][_0x26d61b(0x205)][_0x26d61b(0x22b)]=_0x1db844,this[_0x26d61b(0x1a9)]['played'][_0x26d61b(0x205)][_0x26d61b(0x260)]=_0x1db844,this[_0x26d61b(0x1a9)][_0x26d61b(0x1fe)][_0x26d61b(0x205)][_0x26d61b(0x260)]=_0x1db844,this[_0x26d61b(0x1a9)][_0x26d61b(0x287)][_0x26d61b(0x205)][_0x26d61b(0x260)]=_0x1db844);}},{'key':_0x530c6c(0x19b),'value':function(_0x333808){var _0x1d47e7=_0x530c6c;_0x333808=Math[_0x1d47e7(0x1da)](_0x333808,0x0),_0x333808=Math[_0x1d47e7(0x1a7)](_0x333808,this[_0x1d47e7(0x228)]),this[_0x1d47e7(0x181)][_0x1d47e7(0x188)]=_0x333808,this[_0x1d47e7(0x1d5)][_0x1d47e7(0x2d0)](_0x1d47e7(0x1eb),_0x333808/this['duration'],_0x1d47e7(0x300)),this[_0x1d47e7(0x1a9)]['ptime'][_0x1d47e7(0x2f8)]=_0x3d0b16[_0x1d47e7(0x1dd)]['secondToTime'](_0x333808);}},{'key':_0x530c6c(0x164),'value':function(){var _0x3b5820=_0x530c6c,_0x5d005d=this;if(this[_0x3b5820(0x1cd)]&&(this[_0x3b5820(0x1cd)]=!0x1,this[_0x3b5820(0x1a9)][_0x3b5820(0x23e)][_0x3b5820(0x314)][_0x3b5820(0x304)](_0x3b5820(0x313)),this[_0x3b5820(0x1a9)]['button'][_0x3b5820(0x314)][_0x3b5820(0x2db)](_0x3b5820(0x2ff)),this[_0x3b5820(0x1a9)][_0x3b5820(0x23e)][_0x3b5820(0x2f8)]='',setTimeout(function(){var _0x28e65c=_0x3b5820;_0x5d005d[_0x28e65c(0x1a9)][_0x28e65c(0x23e)]['innerHTML']=_0x4b03d3['default'][_0x28e65c(0x2c4)];},0x64),this[_0x3b5820(0x1a9)][_0x3b5820(0x2d3)][_0x3b5820(0x2f8)]=_0x4b03d3['default'][_0x3b5820(0x2c4)]),this['timer'][_0x3b5820(0x23b)](_0x3b5820(0x2aa)),this['options']['mutex']){for(var _0x2085ad=0x0;_0x2085ad<_0x341bbb[_0x3b5820(0x18f)];_0x2085ad++)this!==_0x341bbb[_0x2085ad]&&_0x341bbb[_0x2085ad][_0x3b5820(0x2c4)]();}}},{'key':_0x530c6c(0x26f),'value':function(){var _0x23e860=_0x530c6c,_0xc18eda=this;this[_0x23e860(0x164)]();var _0x3dd884=this['audio'][_0x23e860(0x26f)]();_0x3dd884&&_0x3dd884['catch'](function(_0x11408c){var _0x58e780=_0x23e860;console['warn'](_0x11408c),'NotAllowedError'===_0x11408c[_0x58e780(0x201)]&&_0xc18eda['setUIPaused']();});}},{'key':'setUIPaused','value':function(){var _0x11f0c5=_0x530c6c,_0x480c81=this;this[_0x11f0c5(0x1cd)]||(this['paused']=!0x0,this['template'][_0x11f0c5(0x23e)][_0x11f0c5(0x314)][_0x11f0c5(0x304)](_0x11f0c5(0x2ff)),this[_0x11f0c5(0x1a9)][_0x11f0c5(0x23e)][_0x11f0c5(0x314)][_0x11f0c5(0x2db)](_0x11f0c5(0x313)),this[_0x11f0c5(0x1a9)][_0x11f0c5(0x23e)]['innerHTML']='',setTimeout(function(){var _0x3c7134=_0x11f0c5;_0x480c81[_0x3c7134(0x1a9)][_0x3c7134(0x23e)][_0x3c7134(0x2f8)]=_0x4b03d3[_0x3c7134(0x1dd)][_0x3c7134(0x26f)];},0x64),this['template'][_0x11f0c5(0x2d3)][_0x11f0c5(0x2f8)]=_0x4b03d3[_0x11f0c5(0x1dd)][_0x11f0c5(0x26f)]),this['container'][_0x11f0c5(0x314)]['remove'](_0x11f0c5(0x281)),this['timer'][_0x11f0c5(0x13f)](_0x11f0c5(0x2aa));}},{'key':_0x530c6c(0x2c4),'value':function(){var _0x427134=_0x530c6c;this['setUIPaused'](),this[_0x427134(0x181)]['pause']();}},{'key':_0x530c6c(0x147),'value':function(){var _0x13ea60=_0x530c6c;this[_0x13ea60(0x287)]()>=0.95?this['template'][_0x13ea60(0x27d)]['innerHTML']=_0x4b03d3[_0x13ea60(0x1dd)]['volumeUp']:this[_0x13ea60(0x287)]()>0x0?this[_0x13ea60(0x1a9)]['volumeButton'][_0x13ea60(0x2f8)]=_0x4b03d3[_0x13ea60(0x1dd)]['volumeDown']:this['template'][_0x13ea60(0x27d)][_0x13ea60(0x2f8)]=_0x4b03d3['default'][_0x13ea60(0x301)];}},{'key':_0x530c6c(0x287),'value':function(_0x9dfa82,_0x5e673a){var _0x510556=_0x530c6c;return _0x9dfa82=parseFloat(_0x9dfa82),isNaN(_0x9dfa82)||(_0x9dfa82=Math[_0x510556(0x1da)](_0x9dfa82,0x0),_0x9dfa82=Math['min'](_0x9dfa82,0x1),this[_0x510556(0x1d5)][_0x510556(0x2d0)](_0x510556(0x287),_0x9dfa82,_0x510556(0x1b1)),_0x5e673a||this[_0x510556(0x193)][_0x510556(0x2d0)](_0x510556(0x287),_0x9dfa82),this[_0x510556(0x181)][_0x510556(0x287)]=_0x9dfa82,this[_0x510556(0x181)][_0x510556(0x2b0)]&&(this['audio'][_0x510556(0x2b0)]=!0x1),this[_0x510556(0x147)]()),this['audio']['muted']?0x0:this[_0x510556(0x181)][_0x510556(0x287)];}},{'key':'on','value':function(_0x259a77,_0x16c1ad){this['events']['on'](_0x259a77,_0x16c1ad);}},{'key':_0x530c6c(0x244),'value':function(){var _0x4ac3fc=_0x530c6c;this[_0x4ac3fc(0x1a9)][_0x4ac3fc(0x23e)][_0x4ac3fc(0x314)]['contains'](_0x4ac3fc(0x313))?this['play']():this[_0x4ac3fc(0x1a9)][_0x4ac3fc(0x23e)][_0x4ac3fc(0x314)][_0x4ac3fc(0x179)](_0x4ac3fc(0x2ff))&&this[_0x4ac3fc(0x2c4)]();}},{'key':'switchAudio','value':function(_0x471d7d){var _0x48bd50=_0x530c6c;this[_0x48bd50(0x31f)][_0x48bd50(0x325)](_0x471d7d);}},{'key':_0x530c6c(0x25e),'value':function(_0x718019){this['list']['add'](_0x718019);}},{'key':'removeAudio','value':function(_0x42f3c1){var _0x434d5a=_0x530c6c;this[_0x434d5a(0x31f)][_0x434d5a(0x304)](_0x42f3c1);}},{'key':_0x530c6c(0x1bc),'value':function(){var _0x967f4e=_0x530c6c;_0x341bbb[_0x967f4e(0x31a)](_0x341bbb['indexOf'](this),0x1),this[_0x967f4e(0x2c4)](),this[_0x967f4e(0x30b)][_0x967f4e(0x2f8)]='',this[_0x967f4e(0x181)][_0x967f4e(0x2c7)]='',this[_0x967f4e(0x256)][_0x967f4e(0x1bc)](),this[_0x967f4e(0x26c)][_0x967f4e(0x20b)](_0x967f4e(0x1bc));}},{'key':_0x530c6c(0x215),'value':function(){var _0x210020=_0x530c6c,_0x478eee=arguments[_0x210020(0x18f)]>0x0&&void 0x0!==arguments[0x0]?arguments[0x0]:'normal';this[_0x210020(0x196)]=_0x478eee,'mini'===_0x478eee?this[_0x210020(0x30b)][_0x210020(0x314)][_0x210020(0x2db)](_0x210020(0x1ad)):_0x210020(0x28d)===_0x478eee&&this['container'][_0x210020(0x314)][_0x210020(0x304)](_0x210020(0x1ad));}},{'key':_0x530c6c(0x187),'value':function(_0x7d3c3d){var _0x58343a=_0x530c6c,_0x413519=this,_0x400276=arguments[_0x58343a(0x18f)]>0x1&&void 0x0!==arguments[0x1]?arguments[0x1]:0x7d0,_0x54d3e7=arguments[_0x58343a(0x18f)]>0x2&&void 0x0!==arguments[0x2]?arguments[0x2]:0.8;this[_0x58343a(0x1a9)][_0x58343a(0x187)][_0x58343a(0x2f8)]=_0x7d3c3d,this[_0x58343a(0x1a9)]['notice'][_0x58343a(0x205)]['opacity']=_0x54d3e7,this[_0x58343a(0x15d)]&&clearTimeout(this[_0x58343a(0x15d)]),this[_0x58343a(0x26c)]['trigger'](_0x58343a(0x15e),{'text':_0x7d3c3d}),_0x400276&&(this[_0x58343a(0x15d)]=setTimeout(function(){var _0x405a3d=_0x58343a;_0x413519[_0x405a3d(0x1a9)][_0x405a3d(0x187)][_0x405a3d(0x205)][_0x405a3d(0x327)]=0x0,_0x413519[_0x405a3d(0x26c)]['trigger'](_0x405a3d(0x283));},_0x400276));}},{'key':_0x530c6c(0x26b),'value':function(){var _0x4a0f99=_0x530c6c;if(!(this[_0x4a0f99(0x31f)]['audios'][_0x4a0f99(0x18f)]>0x1))return 0x0;if(_0x4a0f99(0x31f)===this['options'][_0x4a0f99(0x282)])return this['list']['index']-0x1<0x0?this[_0x4a0f99(0x31f)]['audios']['length']-0x1:this[_0x4a0f99(0x31f)][_0x4a0f99(0x154)]-0x1;if(_0x4a0f99(0x235)===this['options'][_0x4a0f99(0x282)]){var _0x34146c=this['randomOrder'][_0x4a0f99(0x1d8)](this[_0x4a0f99(0x31f)][_0x4a0f99(0x154)]);return 0x0===_0x34146c?this[_0x4a0f99(0x29b)][this[_0x4a0f99(0x29b)][_0x4a0f99(0x18f)]-0x1]:this[_0x4a0f99(0x29b)][_0x34146c-0x1];}}},{'key':_0x530c6c(0x176),'value':function(){var _0x2489b2=_0x530c6c;if(!(this[_0x2489b2(0x31f)]['audios'][_0x2489b2(0x18f)]>0x1))return 0x0;if('list'===this[_0x2489b2(0x15b)][_0x2489b2(0x282)])return(this[_0x2489b2(0x31f)][_0x2489b2(0x154)]+0x1)%this[_0x2489b2(0x31f)]['audios'][_0x2489b2(0x18f)];if(_0x2489b2(0x235)===this[_0x2489b2(0x15b)][_0x2489b2(0x282)]){var _0x182915=this['randomOrder']['indexOf'](this[_0x2489b2(0x31f)]['index']);return _0x182915===this[_0x2489b2(0x29b)][_0x2489b2(0x18f)]-0x1?this[_0x2489b2(0x29b)][0x0]:this[_0x2489b2(0x29b)][_0x182915+0x1];}}},{'key':_0x530c6c(0x204),'value':function(){var _0xdac595=_0x530c6c;this[_0xdac595(0x31f)][_0xdac595(0x325)](this[_0xdac595(0x26b)]());}},{'key':'skipForward','value':function(){var _0x1126d2=_0x530c6c;this['list'][_0x1126d2(0x325)](this[_0x1126d2(0x176)]());}},{'key':_0x530c6c(0x228),'get':function(){var _0xe64ab8=_0x530c6c;return isNaN(this['audio'][_0xe64ab8(0x228)])?0x0:this['audio']['duration'];}}],[{'key':_0x530c6c(0x329),'get':function(){var _0x3b6916=_0x530c6c;return _0x3b6916(0x242);}}]),_0x5614a9;}());_0x5c934c['default']=_0x519ee6;},,function(_0x577de0,_0x51207d,_0x1ac049){},function(_0x1c36b1,_0x2615e4,_0x4ed50c){'use strict';var _0x69892e=_0x25ee;Object['defineProperty'](_0x2615e4,_0x69892e(0x14c),{'value':!0x0}),_0x4ed50c(0x28);var _0x5d884c,_0x32d1d6=_0x4ed50c(0x26),_0x2ae4c1=(_0x5d884c=_0x32d1d6)&&_0x5d884c[_0x69892e(0x14c)]?_0x5d884c:{'default':_0x5d884c};console[_0x69892e(0x137)](_0x69892e(0x136),_0x69892e(0x1b4),_0x69892e(0x18a)),_0x2615e4['default']=_0x2ae4c1['default'];}])[_0x44684a(0x1dd)];}));
@@ -1 +1 @@
1
- "use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null==arguments[t]?{}:arguments[t],a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),a.forEach((function(t){_defineProperty(e,t,i[t])}))}return e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class MetingJSElement extends HTMLElement{connectedCallback(){window.APlayer&&window.fetch&&(this._init(),this._parse())}disconnectedCallback(){this.lock||this.aplayer.destroy()}_camelize(e){return e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase()))}_init(){let e={};for(let t=0;t<this.attributes.length;t+=1)e[this._camelize(this.attributes[t].name)]=this.attributes[t].value;let t=["server","type","id","api","auth","auto","lock","name","title","artist","author","url","cover","pic","lyric","lrc"];this.meta={};for(var i=0;i<t.length;i++){let a=t[i];this.meta[a]=e[a],delete e[a]}this.config=e,this.api=this.meta.api||window.meting_api||"https://meting.cpen.top/api/?server=:server&type=:type&id=:id&auth=:auth&r=:r",this.meta.auto&&this._parse_link()}_parse_link(){let e=[["music.163.com.*song.*id=(\\d+)","netease","song"],["music.163.com.*album.*id=(\\d+)","netease","album"],["music.163.com.*artist.*id=(\\d+)","netease","artist"],["music.163.com.*playlist.*id=(\\d+)","netease","playlist"],["music.163.com.*discover/toplist.*id=(\\d+)","netease","playlist"],["y.qq.com.*song/(\\w+).html","tencent","song"],["y.qq.com.*album/(\\w+).html","tencent","album"],["y.qq.com.*singer/(\\w+).html","tencent","artist"],["y.qq.com.*playsquare/(\\w+).html","tencent","playlist"],["y.qq.com.*playlist/(\\w+).html","tencent","playlist"],["xiami.com.*song/(\\w+)","xiami","song"],["xiami.com.*album/(\\w+)","xiami","album"],["xiami.com.*artist/(\\w+)","xiami","artist"],["xiami.com.*collect/(\\w+)","xiami","playlist"]];for(var t=0;t<e.length;t++){let i=e[t],a=new RegExp(i[0]).exec(this.meta.auto);if(null!==a)return this.meta.server=i[1],this.meta.type=i[2],void(this.meta.id=a[1])}}_parse(){if(this.meta.url){let e={name:this.meta.name||this.meta.title||"Audio name",artist:this.meta.artist||this.meta.author||"Audio artist",url:this.meta.url,cover:this.meta.cover||this.meta.pic,lrc:this.meta.lrc||this.meta.lyric||"",type:this.meta.type||"auto"};return e.lrc||(this.meta.lrcType=0),this.innerText&&(e.lrc=this.innerText,this.meta.lrcType=2),void this._loadPlayer([e])}let e=this.api.replace(":server",this.meta.server).replace(":type",this.meta.type).replace(":id",this.meta.id).replace(":auth",this.meta.auth).replace(":r",Math.random());fetch(e).then((e=>e.json())).then((e=>this._loadPlayer(e)))}_loadPlayer(e){let t={audio:e,mutex:!0,lrcType:this.meta.lrcType||3,storageName:"metingjs"};if(e.length){let e=_objectSpread({},t,this.config);for(let t in e)("true"===e[t]||"false"===e[t])&&(e[t]="true"===e[t]);let i=document.createElement("div");e.container=i,this.appendChild(i),this.aplayer=new APlayer(e)}}}console.log("\n %c MetingJS v2.0.1 %c https://github.com/metowolf/MetingJS \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),window.customElements&&!window.customElements.get("meting-js")&&(window.MetingJSElement=MetingJSElement,window.customElements.define("meting-js",MetingJSElement));
1
+ "use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null==arguments[t]?{}:arguments[t],a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),a.forEach((function(t){_defineProperty(e,t,i[t])}))}return e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class MetingJSElement extends HTMLElement{connectedCallback(){window.APlayer&&window.fetch&&(this._init(),this._parse())}disconnectedCallback(){this.lock||this.aplayer.destroy()}_camelize(e){return e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,((e,t)=>t.toUpperCase()))}_init(){let e={};for(let t=0;t<this.attributes.length;t+=1)e[this._camelize(this.attributes[t].name)]=this.attributes[t].value;let t=["server","type","id","api","auth","auto","lock","name","title","artist","author","url","cover","pic","lyric","lrc"];this.meta={};for(var i=0;i<t.length;i++){let a=t[i];this.meta[a]=e[a],delete e[a]}this.config=e,this.api=this.meta.api||window.meting_api||"https://meting.cpen.top/api/?server=:server&type=:type&id=:id&auth=:auth&r=:r",this.meta.auto&&this._parse_link()}_parse_link(){let e=[["music.163.com.*song.*id=(\\d+)","netease","song"],["music.163.com.*album.*id=(\\d+)","netease","album"],["music.163.com.*artist.*id=(\\d+)","netease","artist"],["music.163.com.*playlist.*id=(\\d+)","netease","playlist"],["music.163.com.*discover/toplist.*id=(\\d+)","netease","playlist"],["y.qq.com.*song/(\\w+).html","tencent","song"],["y.qq.com.*album/(\\w+).html","tencent","album"],["y.qq.com.*singer/(\\w+).html","tencent","artist"],["y.qq.com.*playsquare/(\\w+).html","tencent","playlist"],["y.qq.com.*playlist/(\\w+).html","tencent","playlist"],["xiami.com.*song/(\\w+)","xiami","song"],["xiami.com.*album/(\\w+)","xiami","album"],["xiami.com.*artist/(\\w+)","xiami","artist"],["xiami.com.*collect/(\\w+)","xiami","playlist"]];for(var t=0;t<e.length;t++){let i=e[t],a=new RegExp(i[0]).exec(this.meta.auto);if(null!==a)return this.meta.server=i[1],this.meta.type=i[2],void(this.meta.id=a[1])}}_parse(){if(this.meta.url){let e={name:this.meta.name||this.meta.title||"Audio name",artist:this.meta.artist||this.meta.author||"Audio artist",url:this.meta.url,cover:this.meta.cover||this.meta.pic,lrc:this.meta.lrc||this.meta.lyric||"",type:this.meta.type||"auto"};return e.lrc||(this.meta.lrcType=0),this.innerText&&(e.lrc=this.innerText,this.meta.lrcType=2),void this._loadPlayer([e])}let e=this.api.replace(":server",this.meta.server).replace(":type",this.meta.type).replace(":id",this.meta.id).replace(":auth",this.meta.auth).replace(":r",Math.random());fetch(e).then((e=>e.json())).then((e=>this._loadPlayer(e)))}_loadPlayer(e){let t={audio:e,mutex:!0,lrcType:this.meta.lrcType||3,storageName:"metingjs"};if(e.length){let e=_objectSpread({},t,this.config);for(let t in e)("true"===e[t]||"false"===e[t])&&(e[t]="true"===e[t]);let i=document.createElement("div");e.container=i,this.appendChild(i),this.aplayer=new APlayer(e)}}}console.log("\n %c MetingJS v2.0.1 %c https://github.com/metowolf/MetingJS \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),window.customElements&&!window.customElements.get("meting-js")&&(window.MetingJSElement=MetingJSElement,window.customElements.define("meting-js",MetingJSElement));1){const _0x2cca2c=_0x1048ad;return _0x4f9c91[_0x2cca2c(0x1fc)](/^[_.\- ]+/,'')[_0x2cca2c(0x1ce)]()[_0x2cca2c(0x1fc)](/[_.\- ]+(\w|$)/g,(_0x131b2b,_0x4bfa61)=>_0x4bfa61['toUpperCase']());}[_0x1048ad(0x1f1)](){const _0x151501=_0x1048ad;let _0x25a998={};for(let _0x3cd883=0x0;_0x3cd883<this[_0x151501(0x1cc)][_0x151501(0x1ee)];_0x3cd883+=0x1)_0x25a998[this[_0x151501(0x20b)](this[_0x151501(0x1cc)][_0x3cd883]['name'])]=this[_0x151501(0x1cc)][_0x3cd883][_0x151501(0x1f7)];let _0x5b4677=[_0x151501(0x1f0),_0x151501(0x1d3),'id',_0x151501(0x20d),_0x151501(0x1ec),'auto',_0x151501(0x1d2),_0x151501(0x1f4),'title','artist',_0x151501(0x1dc),_0x151501(0x1e5),_0x151501(0x1e3),'pic',_0x151501(0x1c1),'lrc'];this[_0x151501(0x1db)]={};for(var _0x30c71b=0x0;_0x30c71b<_0x5b4677['length'];_0x30c71b++){let _0x479406=_0x5b4677[_0x30c71b];this[_0x151501(0x1db)][_0x479406]=_0x25a998[_0x479406],delete _0x25a998[_0x479406];}this[_0x151501(0x215)]=_0x25a998,this[_0x151501(0x20d)]=this[_0x151501(0x1db)][_0x151501(0x20d)]||window[_0x151501(0x1d6)]||_0x151501(0x1e6),this['meta'][_0x151501(0x1ed)]&&this['_parse_link']();}[_0x1048ad(0x208)](){const _0xab16a2=_0x1048ad;let _0x2a3cd8=[[_0xab16a2(0x209),_0xab16a2(0x1c4),_0xab16a2(0x1fa)],[_0xab16a2(0x1e7),_0xab16a2(0x1c4),_0xab16a2(0x1d4)],[_0xab16a2(0x1e2),_0xab16a2(0x1c4),'artist'],['music.163.com.*playlist.*id=(\x5cd+)',_0xab16a2(0x1c4),'playlist'],[_0xab16a2(0x1c7),_0xab16a2(0x1c4),'playlist'],['y.qq.com.*song/(\x5cw+).html',_0xab16a2(0x206),_0xab16a2(0x1fa)],[_0xab16a2(0x1fd),_0xab16a2(0x206),_0xab16a2(0x1d4)],[_0xab16a2(0x201),_0xab16a2(0x206),'artist'],[_0xab16a2(0x217),_0xab16a2(0x206),_0xab16a2(0x1f5)],[_0xab16a2(0x1e8),_0xab16a2(0x206),_0xab16a2(0x1f5)],['xiami.com.*song/(\x5cw+)','xiami',_0xab16a2(0x1fa)],['xiami.com.*album/(\x5cw+)',_0xab16a2(0x1c9),_0xab16a2(0x1d4)],[_0xab16a2(0x1d8),_0xab16a2(0x1c9),_0xab16a2(0x1e9)],['xiami.com.*collect/(\x5cw+)',_0xab16a2(0x1c9),_0xab16a2(0x1f5)]];for(var _0x4005b7=0x0;_0x4005b7<_0x2a3cd8[_0xab16a2(0x1ee)];_0x4005b7++){let _0x3eeeb1=_0x2a3cd8[_0x4005b7],_0x1e25c2=new RegExp(_0x3eeeb1[0x0]),_0x3dffaf=_0x1e25c2['exec'](this[_0xab16a2(0x1db)]['auto']);if(null!==_0x3dffaf)return this[_0xab16a2(0x1db)]['server']=_0x3eeeb1[0x1],this['meta'][_0xab16a2(0x1d3)]=_0x3eeeb1[0x2],void(this[_0xab16a2(0x1db)]['id']=_0x3dffaf[0x1]);}}[_0x1048ad(0x20e)](){const _0x202573=_0x1048ad;if(this[_0x202573(0x1db)][_0x202573(0x1e5)]){let _0x3f39af={'name':this[_0x202573(0x1db)][_0x202573(0x1f4)]||this[_0x202573(0x1db)][_0x202573(0x1fb)]||_0x202573(0x1f9),'artist':this[_0x202573(0x1db)][_0x202573(0x1e9)]||this['meta'][_0x202573(0x1dc)]||_0x202573(0x1d5),'url':this[_0x202573(0x1db)][_0x202573(0x1e5)],'cover':this['meta'][_0x202573(0x1e3)]||this[_0x202573(0x1db)][_0x202573(0x1d7)],'lrc':this[_0x202573(0x1db)][_0x202573(0x1ea)]||this[_0x202573(0x1db)][_0x202573(0x1c1)]||'','type':this[_0x202573(0x1db)][_0x202573(0x1d3)]||_0x202573(0x1ed)};return _0x3f39af['lrc']||(this[_0x202573(0x1db)][_0x202573(0x216)]=0x0),this['innerText']&&(_0x3f39af['lrc']=this[_0x202573(0x1f2)],this[_0x202573(0x1db)]['lrcType']=0x2),void this['_loadPlayer']([_0x3f39af]);}let _0x5df286=this['api']['replace'](_0x202573(0x1e1),this[_0x202573(0x1db)][_0x202573(0x1f0)])[_0x202573(0x1fc)](_0x202573(0x1f3),this[_0x202573(0x1db)][_0x202573(0x1d3)])['replace'](_0x202573(0x1e0),this[_0x202573(0x1db)]['id'])['replace'](':auth',this['meta'][_0x202573(0x1ec)])[_0x202573(0x1fc)](':r',Math[_0x202573(0x1dd)]());fetch(_0x5df286)[_0x202573(0x205)](_0x62b728=>_0x62b728[_0x202573(0x212)]())[_0x202573(0x205)](_0x4866f4=>this[_0x202573(0x1d1)](_0x4866f4));}['_loadPlayer'](_0x3a3f70){const _0x25e9e6=_0x1048ad;let _0x536da0={'audio':_0x3a3f70,'mutex':!0x0,'lrcType':this[_0x25e9e6(0x1db)][_0x25e9e6(0x216)]||0x3,'storageName':_0x25e9e6(0x1c3)};if(_0x3a3f70[_0x25e9e6(0x1ee)]){let _0x254955=_objectSpread({},_0x536da0,this[_0x25e9e6(0x215)]);for(let _0xbcaf25 in _0x254955)('true'===_0x254955[_0xbcaf25]||_0x25e9e6(0x1d9)===_0x254955[_0xbcaf25])&&(_0x254955[_0xbcaf25]=_0x25e9e6(0x20c)===_0x254955[_0xbcaf25]);let _0x22601c=document[_0x25e9e6(0x213)]('div');_0x254955[_0x25e9e6(0x1d0)]=_0x22601c,this[_0x25e9e6(0x1e4)](_0x22601c),this[_0x25e9e6(0x20a)]=new APlayer(_0x254955);}}}console['log']('\x0a\x20%c\x20MetingJS\x20v2.0.1\x20%c\x20https://github.com/metowolf/MetingJS\x20\x0a',_0x1048ad(0x1c2),_0x1048ad(0x1c8)),window[_0x1048ad(0x1eb)]&&!window[_0x1048ad(0x1eb)][_0x1048ad(0x1cb)](_0x1048ad(0x1c5))&&(window[_0x1048ad(0x1f8)]=MetingJSElement,window['customElements']['define'](_0x1048ad(0x1c5),MetingJSElement));
package/music1/js/main.js CHANGED
@@ -1 +1 @@
1
- console.log("\n %c HeoMusic 开源静态音乐播放器 v1.5 %c https://github.com/zhheo/HeoMusic \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");var volume=.8;const params=new URLSearchParams(window.location.search);var heo={changeMusicBg:function(e=!0){const t=document.getElementById("music_bg");if(e){const e=document.querySelector("#heoMusic-page .aplayer-pic");var n=new Image;n.src=extractValue(e.style.backgroundImage),n.onload=function(){t.style.backgroundImage=e.style.backgroundImage}}else{let e=setInterval((()=>{document.querySelector("#heoMusic-page .aplayer-pic")&&(clearInterval(e),document.querySelector("meting-js").aplayer.volume(.8,!0),heo.addEventListenerChangeMusicBg())}),100)}},addEventListenerChangeMusicBg:function(){document.getElementById("heoMusic-page").querySelector("meting-js").aplayer.on("loadeddata",(function(){heo.changeMusicBg()}))},getCustomPlayList:function(){const e=document.getElementById("heoMusic-page"),t=params.get("type")||"playlist";if(params.get("id")&&params.get("server")){var n=params.get("id"),o=params.get("server");e.innerHTML=`<meting-js id="${n}" server="${o}" type="${t}" mutex="true" preload="auto"></meting-js>`}else e.innerHTML=`<meting-js id="${userId}" server="${userServer}" type="${userType}" mutex="true" preload="auto"></meting-js>`;heo.changeMusicBg(!1)}};heo.getCustomPlayList();const vh=1*window.innerHeight;function extractValue(e){return/\("([^\s]+)"\)/g.exec(e)[1]}document.documentElement.style.setProperty("--vh",`${vh}px`),window.addEventListener("resize",(()=>{let e=1*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`)})),document.addEventListener("keydown",(function(e){"Space"===e.code&&(e.preventDefault(),document.querySelector("meting-js").aplayer.toggle()),39===e.keyCode&&(e.preventDefault(),document.querySelector("meting-js").aplayer.skipForward()),37===e.keyCode&&(e.preventDefault(),document.querySelector("meting-js").aplayer.skipBack()),38===e.keyCode&&volume<=1&&(volume+=.1,document.querySelector("meting-js").aplayer.volume(volume,!0)),40===e.keyCode&&volume>=0&&(volume+=-.1,document.querySelector("meting-js").aplayer.volume(volume,!0))}));
1
+ console.log("\n %c HeoMusic 开源静态音乐播放器 v1.5 %c https://github.com/zhheo/HeoMusic \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;");var volume=.8;const params=new URLSearchParams(window.location.search);var heo={changeMusicBg:function(e=!0){const t=document.getElementById("music_bg");if(e){const e=document.querySelector("#heoMusic-page .aplayer-pic");var n=new Image;n.src=extractValue(e.style.backgroundImage),n.onload=function(){t.style.backgroundImage=e.style.backgroundImage}}else{let e=setInterval((()=>{document.querySelector("#heoMusic-page .aplayer-pic")&&(clearInterval(e),document.querySelector("meting-js").aplayer.volume(.8,!0),heo.addEventListenerChangeMusicBg())}),100)}},addEventListenerChangeMusicBg:function(){document.getElementById("heoMusic-page").querySelector("meting-js").aplayer.on("loadeddata",(function(){heo.changeMusicBg()}))},getCustomPlayList:function(){const e=document.getElementById("heoMusic-page"),t=params.get("type")||"playlist";if(params.get("id")&&params.get("server")){var n=params.get("id"),o=params.get("server");e.innerHTML=`<meting-js id="${n}" server="${o}" type="${t}" mutex="true" preload="auto"></meting-js>`}else e.innerHTML=`<meting-js id="${userId}" server="${userServer}" type="${userType}" mutex="true" preload="auto"></meting-js>`;heo.changeMusicBg(!1)}};heo.getCustomPlayList();const vh=1*window.innerHeight;function extractValue(e){return/\("([^\s]+)"\)/g.exec(e)[1]}document.documentElement.style.setProperty("--vh",`${vh}px`),window.addEventListener("resize",(()=>{let e=1*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`)})),document.addEventListener("keydown",(function(e){"Space"===e.code&&(e.preventDefault(),document.querySelector("meting-js").aplayer.toggle()),39===e.keyCode&&(e.preventDefault(),document.querySelector("meting-js").aplayer.skipForward()),37===e.keyCode&&(e.preventDefault(),document.querySelector("meting-js").aplayer.skipBack()),38===e.keyCode&&volume<=1&&(volume+=.1,document.querySelector("meting-js").aplayer.volume(volume,!0)),40===e.keyCode&&volume>=0&&(volume+=-.1,document.querySelector("meting-js").aplayer.volume(volume,!0))}));60c=_0x4883c7;_0x2d9549['style'][_0x45760c(0x19b)]=_0x3e646d[_0x45760c(0x198)][_0x45760c(0x19b)];};}else{let _0x3ed71c=setInterval(()=>{const _0xd0eed0=_0x4883c7,_0x29a37c=document[_0xd0eed0(0x196)](_0xd0eed0(0x18d));_0x29a37c&&(clearInterval(_0x3ed71c),document['querySelector']('meting-js')[_0xd0eed0(0x1a4)][_0xd0eed0(0x190)](0.8,!![]),heo[_0xd0eed0(0x192)]());},0x64);}},'addEventListenerChangeMusicBg':function(){const _0x232fee=_0x3dc13e,_0x2c0c9f=document['getElementById'](_0x232fee(0x195));_0x2c0c9f[_0x232fee(0x196)]('meting-js')['aplayer']['on'](_0x232fee(0x1a8),function(){const _0x2e5ce6=_0x232fee;heo[_0x2e5ce6(0x1a6)]();});},'getCustomPlayList':function(){const _0x8ff2f8=_0x3dc13e,_0x46121d=document[_0x8ff2f8(0x193)](_0x8ff2f8(0x195)),_0x1774e7=params[_0x8ff2f8(0x185)](_0x8ff2f8(0x180))||'playlist';if(params[_0x8ff2f8(0x185)]('id')&&params[_0x8ff2f8(0x185)](_0x8ff2f8(0x1a3))){var _0x1bc5dc=params['get']('id'),_0x80437b=params[_0x8ff2f8(0x185)](_0x8ff2f8(0x1a3));_0x46121d[_0x8ff2f8(0x199)]=_0x8ff2f8(0x188)+_0x1bc5dc+_0x8ff2f8(0x1ae)+_0x80437b+_0x8ff2f8(0x18b)+_0x1774e7+_0x8ff2f8(0x19e);}else _0x46121d['innerHTML']=_0x8ff2f8(0x188)+userId+'\x22\x20server=\x22'+userServer+_0x8ff2f8(0x18b)+userType+'\x22\x20mutex=\x22true\x22\x20preload=\x22auto\x22></meting-js>';heo[_0x8ff2f8(0x1a6)](![]);}};heo[_0x3dc13e(0x1a7)]();const vh=window[_0x3dc13e(0x186)]*0x1;document[_0x3dc13e(0x1b3)][_0x3dc13e(0x198)]['setProperty']('--vh',vh+'px'),window[_0x3dc13e(0x1aa)](_0x3dc13e(0x18a),()=>{const _0x4d5b92=_0x3dc13e;let _0xc9395a=window['innerHeight']*0x1;document[_0x4d5b92(0x1b3)][_0x4d5b92(0x198)]['setProperty'](_0x4d5b92(0x18f),_0xc9395a+'px');});function _0x215c(_0x1ad8c3,_0x5564db){const _0x3f29cb=_0x3f29();return _0x215c=function(_0x215c6b,_0x769216){_0x215c6b=_0x215c6b-0x180;let _0x2b29a6=_0x3f29cb[_0x215c6b];return _0x2b29a6;},_0x215c(_0x1ad8c3,_0x5564db);}function extractValue(_0x459a3b){const _0x48d145=_0x3dc13e;var _0x53438c=/\("([^\s]+)"\)/g,_0x5af249=_0x53438c[_0x48d145(0x1a2)](_0x459a3b);return _0x5af249[0x1];}document[_0x3dc13e(0x1aa)](_0x3dc13e(0x183),function(_0x4b12c2){const _0x183e76=_0x3dc13e;_0x4b12c2[_0x183e76(0x182)]==='Space'&&(_0x4b12c2[_0x183e76(0x1a9)](),document[_0x183e76(0x196)](_0x183e76(0x189))[_0x183e76(0x1a4)][_0x183e76(0x18e)]());;_0x4b12c2[_0x183e76(0x18c)]===0x27&&(_0x4b12c2['preventDefault'](),document[_0x183e76(0x196)]('meting-js')[_0x183e76(0x1a4)][_0x183e76(0x194)]());;_0x4b12c2['keyCode']===0x25&&(_0x4b12c2[_0x183e76(0x1a9)](),document[_0x183e76(0x196)](_0x183e76(0x189))[_0x183e76(0x1a4)][_0x183e76(0x1af)]()),_0x4b12c2[_0x183e76(0x18c)]===0x26&&(volume<=0x1&&(volume+=0.1,document[_0x183e76(0x196)](_0x183e76(0x189))['aplayer'][_0x183e76(0x190)](volume,!![]))),_0x4b12c2[_0x183e76(0x18c)]===0x28&&(volume>=0x0&&(volume+=-0.1,document[_0x183e76(0x196)](_0x183e76(0x189))[_0x183e76(0x1a4)][_0x183e76(0x190)](volume,!![])));});