!function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):t.jQuery?e(t.jQuery):e(t.Zepto)}(this,function(h,r){h.fn.jPlayerAudio=function(s){var i="jPlayerAudio",t="string"==typeof s,a=Array.prototype.slice.call(arguments,1),o=this;return s=!t&&a.length?h.extend.apply(null,[!0,s].concat(a)):s,t&&"_"===s.charAt(0)||(t?this.each(function(){var t=h(this).data(i),e=t&&h.isFunction(t[s])?t[s].apply(t,a):t;if(e!==t&&e!==r)return o=e,!1}):this.each(function(){var t=h(this).data(i);t?t.option(s||{}):h(this).data(i,new h.jPlayerAudio(s,this))})),o},h.jPlayerAudio=function(t,e){if(arguments.length){this.element=h(e),this.options=h.extend(!0,{},this.options,t);var s=this;this.element.bind("remove.jPlayerAudio",function(){s.destroy()}),this._init()}},"function"!=typeof h.fn.stop&&(h.fn.stop=function(){}),h.jPlayerAudio.emulateMethods="load play pause",h.jPlayerAudio.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate",h.jPlayerAudio.emulateOptions="muted volume",h.jPlayerAudio.reservedEvent="ready flashreset resize repeat error warning",h.jPlayerAudio.event={},h.each(["ready","setmedia","flashreset","resize","repeat","click","error","warning","loadstart","progress","suspend","abort","emptied","stalled","play","pause","loadedmetadata","loadeddata","waiting","playing","canplay","canplaythrough","seeking","seeked","timeupdate","ended","ratechange","durationchange","volumechange"],function(){h.jPlayerAudio.event[this]="jPlayerAudio_"+this}),h.jPlayerAudio.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","canplay","canplaythrough"],h.jPlayerAudio.pause=function(){h.jPlayerAudio.prototype.destroyRemoved(),h.each(h.jPlayerAudio.prototype.instances,function(t,e){e.data("jPlayerAudio").status.srcSet&&e.jPlayerAudio("pause")})},h.jPlayerAudio.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0,sepHour:":",sepMin:":",sepSec:""};var t=function(){this.init()};t.prototype={init:function(){this.options={timeFormat:h.jPlayerAudio.timeFormat}},time:function(t){t=t&&"number"==typeof t?t:0;var e=new Date(1e3*t),s=e.getUTCHours(),i=this.options.timeFormat.showHour?e.getUTCMinutes():e.getUTCMinutes()+60*s,a=this.options.timeFormat.showMin?e.getUTCSeconds():e.getUTCSeconds()+60*i,o=this.options.timeFormat.padHour&&s<10?"0"+s:s,l=this.options.timeFormat.padMin&&i<10?"0"+i:i,n=this.options.timeFormat.padSec&&a<10?"0"+a:a,r="";return r+=this.options.timeFormat.showHour?o+this.options.timeFormat.sepHour:"",r+=this.options.timeFormat.showMin?l+this.options.timeFormat.sepMin:"",r+=this.options.timeFormat.showSec?n+this.options.timeFormat.sepSec:""}};var e=new t;h.jPlayerAudio.convertTime=function(t){return e.time(t)},h.jPlayerAudio.uaBrowser=function(t){var e=t.toLowerCase(),s=/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||[];return{browser:s[1]||"",version:s[2]||"0"}},h.jPlayerAudio.uaPlatform=function(t){var e=t.toLowerCase(),s=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(e)||[],i=/(ipad|playbook)/.exec(e)||!/(mobile)/.exec(e)&&/(android)/.exec(e)||[];return s[1]&&(s[1]=s[1].replace(/\s/g,"_")),{platform:s[1]||"",tablet:i[1]||""}},h.jPlayerAudio.browser={},h.jPlayerAudio.platform={};var s=h.jPlayerAudio.uaBrowser(navigator.userAgent);s.browser&&(h.jPlayerAudio.browser[s.browser]=!0,h.jPlayerAudio.browser.version=s.version);var i=h.jPlayerAudio.uaPlatform(navigator.userAgent);i.platform&&(h.jPlayerAudio.platform[i.platform]=!0,h.jPlayerAudio.platform.mobile=!i.tablet,h.jPlayerAudio.platform.tablet=!!i.tablet),h.jPlayerAudio.getDocMode=function(){var t;return h.jPlayerAudio.browser.msie&&(document.documentMode?t=document.documentMode:(t=5,document.compatMode&&"CSS1Compat"===document.compatMode&&(t=7))),t},h.jPlayerAudio.browser.documentMode=h.jPlayerAudio.getDocMode(),h.jPlayerAudio.nativeFeatures={init:function(){var t,e,s,i=document,a=i.createElement("video"),o={w3c:["fullscreenEnabled","fullscreenElement","requestFullscreen","exitFullscreen","fullscreenchange","fullscreenerror"],moz:["mozFullScreenEnabled","mozFullScreenElement","mozRequestFullScreen","mozCancelFullScreen","mozfullscreenchange","mozfullscreenerror"],webkit:["","webkitCurrentFullScreenElement","webkitRequestFullScreen","webkitCancelFullScreen","webkitfullscreenchange",""],webkitVideo:["webkitSupportsFullscreen","webkitDisplayingFullscreen","webkitEnterFullscreen","webkitExitFullscreen","",""],ms:["","msFullscreenElement","msRequestFullscreen","msExitFullscreen","MSFullscreenChange","MSFullscreenError"]},l=["w3c","moz","webkit","webkitVideo","ms"];for(this.fullscreen=t={support:{w3c:!!i[o.w3c[0]],moz:!!i[o.moz[0]],webkit:"function"==typeof i[o.webkit[3]],webkitVideo:"function"==typeof a[o.webkitVideo[2]],ms:"function"==typeof a[o.ms[2]]},used:{}},e=0,s=l.length;e',i=['','','','',''];t=document.createElement(s);for(var o=0;o").join(">").split('"').join(""")},_qualifyURL:function(t){var e=document.createElement("div");return e.innerHTML='x',e.firstChild.href},_absoluteMediaUrls:function(s){var i=this;return h.each(s,function(t,e){e&&i.format[t]&&"data:"!==e.substr(0,5)&&(s[t]=i._qualifyURL(e))}),s},addStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.addClass(this.options.stateClass[t])},removeStateClass:function(t){this.ancestorJq.length&&this.ancestorJq.removeClass(this.options.stateClass[t])},setMedia:function(l){var n=this,r=!1,t=this.status.media.poster!==l.poster;this._resetMedia(),this._resetGate(),this._resetActive(),this.androidFix.setMedia=!1,this.androidFix.play=!1,this.androidFix.pause=!1,l=this._absoluteMediaUrls(l),h.each(this.formats,function(t,a){var o="video"===n.format[a].media;if(h.each(n.solutions,function(t,e){if(n[e].support[a]&&n._validString(l[a])){var s="html"===e,i="aurora"===e;return o?(s?(n.html.video.gate=!0,n._html_setVideo(l),n.html.active=!0):(n.flash.gate=!0,n._flash_setVideo(l),n.flash.active=!0),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.show(),n.status.video=!0):(s?(n.html.audio.gate=!0,n._html_setAudio(l),n.html.active=!0,h.jPlayerAudio.platform.android&&(n.androidFix.setMedia=!0)):i?(n.aurora.gate=!0,n._aurora_setAudio(l),n.aurora.active=!0):(n.flash.gate=!0,n._flash_setAudio(l),n.flash.active=!0),n.css.jq.videoPlay.length&&n.css.jq.videoPlay.hide(),n.status.video=!1),!(r=!0)}}),r)return!1}),r?(this.status.nativeVideoControls&&this.html.video.gate||this._validString(l.poster)&&(t?this.htmlElement.poster.src=l.poster:this.internal.poster.jq.show()),"string"==typeof l.title&&(this.css.jq.title.length&&this.css.jq.title.html(l.title),this.htmlElement.audio&&this.htmlElement.audio.setAttribute("title",l.title),this.htmlElement.video&&this.htmlElement.video.setAttribute("title",l.title)),this.status.srcSet=!0,this.status.media=h.extend({},l),this._updateButtons(!1),this._updateInterface(),this._trigger(h.jPlayerAudio.event.setmedia)):this._error({type:h.jPlayerAudio.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:h.jPlayerAudio.errorMsg.NO_SUPPORT,hint:h.jPlayerAudio.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus(),this._updateButtons(!1),this._updateInterface(),this._seeked(),this.internal.poster.jq.hide(),clearTimeout(this.internal.htmlDlyCmdId),this.html.active?this._html_resetMedia():this.aurora.active?this._aurora_resetMedia():this.flash.active&&this._flash_resetMedia()},clearMedia:function(){this._resetMedia(),this.html.active?this._html_clearMedia():this.aurora.active?this._aurora_clearMedia():this.flash.active&&this._flash_clearMedia(),this._resetGate(),this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.aurora.active?this._aurora_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},focus:function(){this.options.keyEnabled&&(h.jPlayerAudio.focus=this)},play:function(t){"object"==typeof t&&this.options.useStateClassSkin&&!this.status.paused?this.pause(t):(t="number"==typeof t?t:NaN,this.status.srcSet?(this.focus(),this.html.active?this._html_play(t):this.aurora.active?this._aurora_play(t):this.flash.active&&this._flash_play(t)):this._urlNotSetError("play"))},videoPlay:function(){this.play()},pause:function(t){t="number"==typeof t?t:NaN,this.status.srcSet?this.html.active?this._html_pause(t):this.aurora.active?this._aurora_pause(t):this.flash.active&&this._flash_pause(t):this._urlNotSetError("pause")},tellOthers:function(t,e){var s=this,i="function"==typeof e,a=Array.prototype.slice.call(arguments);"string"==typeof t&&(i&&a.splice(1,1),h.jPlayerAudio.prototype.destroyRemoved(),h.each(this.instances,function(){s.element!==this&&(i&&!e.call(this.data("jPlayerAudio"),s)||this.jPlayerAudio.apply(this,a))}))},pauseOthers:function(t){this.tellOthers("pause",function(){return this.status.srcSet},t)},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.aurora.active?this._aurora_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(t){t=this._limitValue(t,0,100),this.status.srcSet?this.html.active?this._html_playHead(t):this.aurora.active?this._aurora_playHead(t):this.flash.active&&this._flash_playHead(t):this._urlNotSetError("playHead")},_muted:function(t){this.mutedWorker(t),this.options.globalVolume&&this.tellOthers("mutedWorker",function(){return this.options.globalVolume},t)},mutedWorker:function(t){this.options.muted=t,this.html.used&&this._html_setProperty("muted",t),this.aurora.used&&this._aurora_mute(t),this.flash.used&&this._flash_mute(t),this.html.video.gate||this.html.audio.gate||(this._updateMute(t),this._updateVolume(this.options.volume),this._trigger(h.jPlayerAudio.event.volumechange))},mute:function(t){"object"==typeof t&&this.options.useStateClassSkin&&this.options.muted?this._muted(!1):(t=t===r||!!t,this._muted(t))},unmute:function(t){t=t===r||!!t,this._muted(!t)},_updateMute:function(t){t===r&&(t=this.options.muted),t?this.addStateClass("muted"):this.removeStateClass("muted"),this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):t?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(t){this.volumeWorker(t),this.options.globalVolume&&this.tellOthers("volumeWorker",function(){return this.options.globalVolume},t)},volumeWorker:function(t){t=this._limitValue(t,0,1),this.options.volume=t,this.html.used&&this._html_setProperty("volume",t),this.aurora.used&&this._aurora_volume(t),this.flash.used&&this._flash_volume(t),this.html.video.gate||this.html.audio.gate||(this._updateVolume(t),this._trigger(h.jPlayerAudio.event.volumechange))},volumeBar:function(t){if(this.css.jq.volumeBar.length){var e=h(t.currentTarget),s=e.offset(),i=t.pageX-s.left,a=e.width(),o=e.height()-t.pageY+s.top,l=e.height();this.options.verticalVolume?this.volume(o/l):this.volume(i/a)}this.options.muted&&this._muted(!1)},_updateVolume:function(t){t===r&&(t=this.options.volume),t=this.options.muted?0:t,this.status.noVolume?(this.addStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(),this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.removeStateClass("noVolume"),this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](100*t+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1),this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(t){var s=this;this.options.cssSelectorAncestor=t,this._removeUiClass(),this.ancestorJq=t?h(t):[],t&&1!==this.ancestorJq.length&&this._warning({type:h.jPlayerAudio.warning.CSS_SELECTOR_COUNT,context:t,message:h.jPlayerAudio.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:h.jPlayerAudio.warningHint.CSS_SELECTOR_COUNT}),this._addUiClass(),h.each(this.options.cssSelector,function(t,e){s._cssSelector(t,e)}),this._updateInterface(),this._updateButtons(),this._updateAutohide(),this._updateVolume(),this._updateMute()},_cssSelector:function(e,t){var s=this;if("string"==typeof t)if(h.jPlayerAudio.prototype.options.cssSelector[e]){if(this.css.jq[e]&&this.css.jq[e].length&&this.css.jq[e].unbind(".jPlayerAudio"),this.options.cssSelector[e]=t,this.css.cs[e]=this.options.cssSelectorAncestor+" "+t,this.css.jq[e]=t?h(this.css.cs[e]):[],this.css.jq[e].length&&this[e]){this.css.jq[e].bind("click.jPlayerAudio",function(t){t.preventDefault(),s[e](t),s.options.autoBlur?h(this).blur():h(this).focus()})}t&&1!==this.css.jq[e].length&&this._warning({type:h.jPlayerAudio.warning.CSS_SELECTOR_COUNT,context:this.css.cs[e],message:h.jPlayerAudio.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[e].length+" found for "+e+" method.",hint:h.jPlayerAudio.warningHint.CSS_SELECTOR_COUNT})}else this._warning({type:h.jPlayerAudio.warning.CSS_SELECTOR_METHOD,context:e,message:h.jPlayerAudio.warningMsg.CSS_SELECTOR_METHOD,hint:h.jPlayerAudio.warningHint.CSS_SELECTOR_METHOD});else this._warning({type:h.jPlayerAudio.warning.CSS_SELECTOR_STRING,context:t,message:h.jPlayerAudio.warningMsg.CSS_SELECTOR_STRING,hint:h.jPlayerAudio.warningHint.CSS_SELECTOR_STRING})},duration:function(t){this.options.toggleDuration&&(this.options.captureDuration&&t.stopPropagation(),this._setOption("remainingDuration",!this.options.remainingDuration))},seekBar:function(t){if(this.css.jq.seekBar.length){var e=h(t.currentTarget),s=e.offset(),i=100*(t.pageX-s.left)/e.width();this.playHead(i)}},playbackRate:function(t){this._setOption("playbackRate",t)},playbackRateBar:function(t){if(this.css.jq.playbackRateBar.length){var e,s=h(t.currentTarget),i=s.offset(),a=t.pageX-i.left,o=s.width(),l=s.height()-t.pageY+i.top,n=s.height();e=(this.options.verticalPlaybackRate?l/n:a/o)*(this.options.maxPlaybackRate-this.options.minPlaybackRate)+this.options.minPlaybackRate,this.playbackRate(e)}},_updatePlaybackRate:function(){var t=(this.options.playbackRate-this.options.minPlaybackRate)/(this.options.maxPlaybackRate-this.options.minPlaybackRate);this.status.playbackRateEnabled?(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.show(),this.css.jq.playbackRateBarValue.length&&(this.css.jq.playbackRateBarValue.show(),this.css.jq.playbackRateBarValue[this.options.verticalPlaybackRate?"height":"width"](100*t+"%"))):(this.css.jq.playbackRateBar.length&&this.css.jq.playbackRateBar.hide(),this.css.jq.playbackRateBarValue.length&&this.css.jq.playbackRateBarValue.hide())},repeat:function(t){"object"==typeof t&&this.options.useStateClassSkin&&this.options.loop?this._loop(!1):this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(t){this.options.loop!==t&&(this.options.loop=t,this._updateButtons(),this._trigger(h.jPlayerAudio.event.repeat))},option:function(t,e){var s=t;if(0===arguments.length)return h.extend(!0,{},this.options);if("string"==typeof t){var i=t.split(".");if(e===r){for(var a=h.extend(!0,{},this.options),o=0;o=t&&(e=!0),e},_validString:function(t){return t&&"string"==typeof t},_limitValue:function(t,e,s){return t
";if(i+="×",t.free){var a=!0;i+="(",o.each(t,function(t,e){o.jPlayerAudio.prototype.format[t]&&(a?a=!1:i+=" | ",i+=""+t+"")}),i+=")"}return i+=""+t.title+(t.artist?" by "+t.artist+"":"")+"",i+="
"},_createItemHandlers:function(){var s=this;o(this.cssSelector.playlist).off("click","span."+this.options.playlistOptions.itemClass).on("click","span."+this.options.playlistOptions.itemClass,function(t){t.preventDefault();var e=o(this).parent().parent().index();s.current!==e?s.play(e):o(s.cssSelector.jPlayerAudio).jPlayerAudio("play"),s.blur(this)}),o(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.freeItemClass).on("click","a."+this.options.playlistOptions.freeItemClass,function(t){t.preventDefault(),o(this).parent().parent().find("."+s.options.playlistOptions.itemClass).click(),s.blur(this)}),o(this.cssSelector.playlist).off("click","a."+this.options.playlistOptions.removeItemClass).on("click","a."+this.options.playlistOptions.removeItemClass,function(t){t.preventDefault();var e=o(this).parent().parent().index();s.remove(e),s.blur(this)})},_updateControls:function(){this.options.playlistOptions.enableRemoveControls?o(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).show():o(this.cssSelector.playlist+" ."+this.options.playlistOptions.removeItemClass).hide(),this.shuffled?o(this.cssSelector.jPlayerAudio).jPlayerAudio("addStateClass","shuffled"):o(this.cssSelector.jPlayerAudio).jPlayerAudio("removeStateClass","shuffled"),o(this.cssSelector.shuffle).length&&o(this.cssSelector.shuffleOff).length&&(this.shuffled?(o(this.cssSelector.shuffleOff).show(),o(this.cssSelector.shuffle).hide()):(o(this.cssSelector.shuffleOff).hide(),o(this.cssSelector.shuffle).show()))},_highlight:function(t){this.playlist.length&&t!==i&&(o(this.cssSelector.playlist+" .mdtc-clnplra-playlist-current").removeClass("mdtc-clnplra-playlist-current"),o(this.cssSelector.playlist+" li:nth-child("+(t+1)+")").addClass("mdtc-clnplra-playlist-current").find(".mdtc-clnplra-playlist-item").addClass("mdtc-clnplra-playlist-current"))},setPlaylist:function(t){this._initPlaylist(t),this._init()},add:function(t,e){o(this.cssSelector.playlist+" ul").append(this._createListItem(t)).find("li:last-child").hide().show(this.options.playlistOptions.addTime),this._updateControls(),this.original.push(t),this.playlist.push(t),e?this.play(this.playlist.length-1):1===this.original.length&&this.select(0)},remove:function(t){var s=this;return t===i?(this._initPlaylist([]),this._refresh(function(){o(s.cssSelector.jPlayerAudio).jPlayerAudio("clearMedia")}),!0):!this.removing&&(0<=(t=t<0?s.original.length+t:t)&&t ul").length){var a=h(this).find("> ul");if(a.data("theme")&&(i.theme=a.data("theme")),a.data("supplied")&&(i.supplied=a.data("supplied")),a.data("disable-controls")&&(i.disableControls=a.data("disable-controls")),a.data("autoplay")&&(i.autoplay=a.data("autoplay")),a.data("playlist-height")&&(i.playlistHeight=a.data("playlist-height")),0 ul li").length){var o=[];h(this).find("> ul li").each(function(){var t=h(this),e=!!t.data("free"),s=t.data("type"),i={title:t.data("title"),artist:t.data("artist"),free:e};i[s]=t.data("url"),o.push(i)}),1==h(this).find("> ul li").length&&h(this).find("> ul li").data("free")&&(e=!0,s=h(this).find("> ul li").data("url")),i.playlist=o}}var l=function(){for(var t="",e="abcdefghijklmnopqrstuvwxyz0123456789",s=0;s<15;s++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}();if(h(this).html('
\x3c!-- --\x3e
00:00
\x3c!-- --\x3e
\x3c!-- --\x3e
\x3c!-- --\x3e
\x3c!-- --\x3e
    '),h(this).find(".mdtc-clnplra-main-player").addClass("mdtc-clnplra-cleanaudioplayer-id-"+l),e&&(h(this).find(".mdtc-clnplra-main-player").addClass("mdtc-clnplra-solo-download"),h(this).find(".mdtc-clnplra-download-one").attr("href",s)),"dark"==i.theme&&h(this).find(".mdtc-clnplra-main-player").addClass("mdtc-clnplra-dark-theme"),i.disableControls&&h(this).find(".mdtc-clnplra-main-player").addClass("mdtc-clnplra-disabled-controls"),i.playlistHeight&&h(this).find(".mdtc-clnplra-playlist > ul").css({maxHeight:i.playlistHeight,overflowY:"auto"}),1