j1-template 2024.3.13 → 2024.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
- data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -4
- data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +24 -23
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +4 -3
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +37 -6
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +31 -95
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +51 -29
- data/assets/data/amplitude.28.html +887 -0
- data/assets/data/amplitude.29.html +923 -0
- data/assets/data/amplitude.html +311 -46
- data/assets/data/banner.html +9 -7
- data/assets/data/masterslider.html +128 -7
- data/assets/data/panel.html +16 -65
- data/assets/theme/j1/adapter/js/amplitude.23.js +1165 -0
- data/assets/theme/j1/adapter/js/amplitude.24.js +1164 -0
- data/assets/theme/j1/adapter/js/amplitude.25.js +1268 -0
- data/assets/theme/j1/adapter/js/amplitude.js +294 -117
- data/assets/theme/j1/adapter/js/attic.js +14 -11
- data/assets/theme/j1/adapter/js/docsearch.js +2 -2
- data/assets/theme/j1/adapter/js/fab.js +2 -2
- data/assets/theme/j1/adapter/js/j1.js +8 -8
- data/assets/theme/j1/adapter/js/lazyLoader.js +60 -10
- data/assets/theme/j1/adapter/js/masonry.js +1 -1
- data/assets/theme/j1/adapter/js/masterslider.js +2 -2
- data/assets/theme/j1/adapter/js/particles.js +2 -2
- data/assets/theme/j1/adapter/js/scroller.js +2 -2
- data/assets/theme/j1/adapter/js/slick.js +2 -2
- data/assets/theme/j1/adapter/js/themes.js +1 -1
- data/assets/theme/j1/adapter/js/translator.js +2 -2
- data/assets/theme/j1/adapter/js/waves.js +1 -1
- data/assets/theme/j1/core/css/animate.css +1634 -1070
- data/assets/theme/j1/core/css/animate.css.map +1 -0
- data/assets/theme/j1/core/css/animate.min.css +2 -1
- data/assets/theme/j1/core/css/animate.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.css +3060 -1538
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/iconify.css +2308 -1153
- data/assets/theme/j1/core/css/icon-fonts/iconify.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/iconify.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/iconify.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdi.css +16716 -8423
- data/assets/theme/j1/core/css/icon-fonts/mdi.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdi.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdi.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdib.css +5554 -2766
- data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdil.css +742 -441
- data/assets/theme/j1/core/css/icon-fonts/mdil.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdil.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdil.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css +6552 -3980
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -5
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.css +6818 -4131
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css +2 -5
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +18568 -11577
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +2 -35
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/vendor.css +1771 -1043
- data/assets/theme/j1/core/css/vendor.css.map +1 -0
- data/assets/theme/j1/core/css/vendor.min.css +2 -1
- data/assets/theme/j1/core/css/vendor.min.css.map +1 -0
- data/assets/theme/j1/core/js/template.js +399 -447
- data/assets/theme/j1/core/js/template.min.js +7 -7
- data/assets/theme/j1/core/js/template.min.js.map +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +4 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +39 -4
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +57 -17
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/pause.png +0 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.png +0 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.svg +87 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +60 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +59 -0
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.js +65 -21
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.min.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +113 -0
- data/assets/theme/j1/modules/iconPicker/js/universal-icon-picker.js +471 -471
- data/assets/theme/j1/modules/j1LazyLoader/LICENSE +21 -0
- data/assets/theme/j1/modules/j1LazyLoader/js/j1Lazy.js +870 -0
- data/assets/theme/j1/modules/js-cookies/js/js.cookie.js +3 -3
- data/assets/theme/j1/modules/lazyCssLoader/js/main.0.js +166 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/main.1.js +65 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/main.js +66 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/examplePlugin.js +13 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/my-plugin.js +25 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/plugin-interface.js +9 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/pluginA.js +46 -0
- data/assets/theme/j1/modules/lazyLoader/js/plugins/README.md +324 -0
- data/assets/theme/j1/modules/lazyLoader/js/plugins/jquery.lazy.picture.js +188 -0
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +794 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +151 -67
- data/assets/theme/j1/modules/slimSelect/js/select.js +1 -1
- data/assets/theme/j1/modules/slimSelect/js/select.min.js +3 -3
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +2 -1
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/icon/scalable/dailymotion.svg +62 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.js +832 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.min.js +17 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/video.js +2 -2
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +577 -560
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/blocks/footer.yml +10 -5
- data/lib/starter_web/_data/blocks/panel.yml +2 -2
- data/lib/starter_web/_data/layouts/default.yml +14 -3
- data/lib/starter_web/_data/modules/amplitude.yml +145 -0
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +29 -7
- data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +2 -2
- data/lib/starter_web/_data/modules/gallery.yml +136 -0
- data/lib/starter_web/_data/modules/lazyLoader.0.yml +118 -0
- data/lib/starter_web/_data/modules/lazyLoader.yml +68 -31
- data/lib/starter_web/_data/modules/masonry.yml +4 -4
- data/lib/starter_web/_data/modules/masterslider.yml +118 -12
- data/lib/starter_web/_data/modules/navigator_menu.yml +831 -803
- data/lib/starter_web/_data/resources.yml +154 -190
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +1 -0
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +4 -2
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +58 -46
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +26 -19
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +30 -40
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/image/icons/lanus/favicon.ico +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus-512x512.png +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus.ico +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus.png +0 -0
- data/lib/starter_web/assets/image/icons/lanus/scalable/lanus.svg +76 -0
- data/lib/starter_web/assets/image/icons/lanus/scalable/lanus_sw.svg +62 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28 - social.svg +86 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28.svg +64 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x.svg +1 -0
- data/lib/starter_web/assets/image/modules/icons/social/twitter_x.png +0 -0
- data/lib/starter_web/package.json +7 -18
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +218 -0
- data/lib/starter_web/pages/public/features/template.adoc +18 -8
- data/lib/starter_web/pages/public/features/template.asciidoc +758 -0
- data/lib/starter_web/pages/public/lazy_loader_tester.adoc +402 -0
- data/lib/starter_web/pages/public/manuals/ytdl/man.adoc +3020 -0
- data/lib/starter_web/pages/public/manuals/ytdl/man.md +2378 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +0 -16
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc +505 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +69 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +75 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +57 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +112 -0
- data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +172 -0
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/tour/_includes/documents/419_advanced_modals_demo.asciidoc +16 -16
- data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +13 -3
- data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +12 -3
- data/lib/starter_web/pages/public/tour/highlghter_rouge.adoc +13 -3
- data/lib/starter_web/pages/public/tour/icon_fonts.adoc +12 -3
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -6
- data/lib/starter_web/pages/public/tour/{playback_audio.adoc → play_audio.adoc} +207 -188
- data/lib/starter_web/pages/public/tour/{playback_video.adoc → play_video.adoc} +49 -51
- data/lib/starter_web/pages/public/tour/present_images.adoc +27 -5
- data/lib/starter_web/pages/public/tour/quicksearch.adoc +13 -3
- data/lib/starter_web/pages/public/tour/responsive_tables.adoc +13 -4
- data/lib/starter_web/pages/public/tour/typography.adoc +12 -3
- metadata +90 -22
- /data/assets/theme/j1/modules/{lazyLoader → j1LazyLoader/js}/plugins/README.md +0 -0
- /data/assets/theme/j1/modules/{lazyLoader/plugins/jquery.lazy.picture.js → j1LazyLoader/js/plugins/picture.js} +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.picture.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.min.js +0 -0
@@ -17,4 +17,4 @@
|
|
17
17
|
# -----------------------------------------------------------------------------
|
18
18
|
*/
|
19
19
|
|
20
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Amplitude",[],t):"object"==typeof exports?exports.Amplitude=t():e.Amplitude=t()}(this,function(){return function(e){function t(l){if(a[l])return a[l].exports;var u=a[l]={i:l,l:!1,exports:{}};return e[l].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,l){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:l})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=47)}([function(e,t,a){"use strict";var l=a(59);e.exports={version:l.version,audio:new Audio,active_metadata:{},active_album:"",active_index:0,active_playlist:null,playback_speed:1,callbacks:{},songs:[],playlists:{},start_song:"",starting_playlist:"",starting_playlist_song:"",repeat:!1,repeat_song:!1,shuffle_list:{},shuffle_on:!1,default_album_art:"",default_playlist_art:"",debug:!1,volume:.5,pre_mute_volume:.5,volume_increment:5,volume_decrement:5,soundcloud_client:"",soundcloud_use_art:!1,soundcloud_song_count:0,soundcloud_songs_ready:0,is_touch_moving:!1,buffered:0,bindings:{},continue_next:!0,delay:0,player_state:"stopped",web_audio_api_available:!1,context:null,source:null,analyser:null,visualizations:{available:[],active:[],backup:""},waveforms:{sample_rate:100,built:[]}}},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(5),d=(l(i),a(3)),s=(l(d),a(2)),o=(l(s),a(7)),f=(l(o),a(9)),r=l(f),c=a(4),p=l(c),v=a(16),y=l(v),g=a(6),m=l(g),_=function(){function e(){y.default.stop(),y.default.run(),n.default.active_metadata.live&&s(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&!n.default.paused&&s();var e=n.default.audio.play();void 0!==e&&e.then(function(e){}).catch(function(e){}),n.default.audio.play(),n.default.audio.playbackRate=n.default.playback_speed,m.default.setPlayerState()}function t(){y.default.stop(),n.default.audio.pause(),n.default.paused=!0,n.default.active_metadata.live&&d(),m.default.setPlayerState()}function a(){y.default.stop(),0!=n.default.audio.currentTime&&(n.default.audio.currentTime=0),n.default.audio.pause(),n.default.active_metadata.live&&d(),m.default.setPlayerState(),r.default.run("stop")}function l(e){n.default.audio.muted=0==e,n.default.volume=e,n.default.audio.volume=e/100}function u(e){n.default.active_metadata.live||(n.default.audio.currentTime=n.default.audio.duration*(e/100))}function i(e){n.default.audio.addEventListener("canplaythrough",function(){n.default.audio.duration>=e&&e>0?n.default.audio.currentTime=e:p.default.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0")},{once:!0})}function d(){n.default.audio.src="",n.default.audio.load()}function s(){n.default.audio.src=n.default.active_metadata.url,n.default.audio.load()}function o(e){n.default.playback_speed=e,n.default.audio.playbackRate=n.default.playback_speed}return{play:e,pause:t,stop:a,setVolume:l,setSongLocation:u,skipToLocation:i,disconnectStream:d,reconnectStream:s,setPlaybackSpeed:o}}();t.default=_,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){t(),a(),l(),n()}function t(){for(var e=u.default.audio.paused?"paused":"playing",t=document.querySelectorAll(".amplitude-play-pause"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),n=t[a].getAttribute("data-amplitude-song-index");if(null==l&&null==n)switch(e){case"playing":d(t[a]);break;case"paused":s(t[a])}}}function a(){for(var e=u.default.audio.paused?"paused":"playing",t=document.querySelectorAll('.amplitude-play-pause[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){if(null==t[a].getAttribute("data-amplitude-song-index"))switch(e){case"playing":d(t[a]);break;case"paused":s(t[a])}}}function l(){for(var e=u.default.audio.paused?"paused":"playing",t=document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){if(null==t[a].getAttribute("data-amplitude-playlist"))switch(e){case"playing":d(t[a]);break;case"paused":s(t[a])}}}function n(){for(var e=u.default.audio.paused?"paused":"playing",t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="'+t+'"][data-amplitude-playlist="'+u.default.active_playlist+'"]'),l=0;l<a.length;l++)switch(e){case"playing":d(a[l]);break;case"paused":s(a[l])}}function i(){for(var e=document.querySelectorAll(".amplitude-play-pause"),t=0;t<e.length;t++)s(e[t])}function d(e){e.classList.add("amplitude-playing"),e.classList.remove("amplitude-paused")}function s(e){e.classList.remove("amplitude-playing"),e.classList.add("amplitude-paused")}return{sync:e,syncGlobal:t,syncPlaylist:a,syncSong:l,syncSongInPlaylist:n,syncToPause:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(9),o=l(s),f=a(5),r=l(f),c=a(2),p=l(c),v=a(14),y=l(v),g=a(20),m=l(g),_=a(15),h=l(_),b=a(7),A=l(b),x=a(49),M=l(x),P=function(){function e(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null,a={},l=!1;n.default.repeat_song?n.default.shuffle_on?(t=n.default.shuffle_list[n.default.active_index].index,a=n.default.shuffle_list[t]):(t=n.default.active_index,a=n.default.songs[t]):n.default.shuffle_on?(parseInt(n.default.active_index)+1<n.default.shuffle_list.length?t=parseInt(n.default.active_index)+1:(t=0,l=!0),a=n.default.shuffle_list[t]):(parseInt(n.default.active_index)+1<n.default.songs.length?t=parseInt(n.default.active_index)+1:(t=0,l=!0),a=n.default.songs[t]),u(a,t),l&&!n.default.repeat||e&&!n.default.repeat&&l||d.default.play(),p.default.sync(),o.default.run("next"),n.default.repeat_song&&o.default.run("song_repeated")}function t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=null,l={},u=!1;n.default.repeat_song?n.default.playlists[e].shuffle?(a=n.default.playlists[e].active_index,l=n.default.playlists[e].shuffle_list[a]):(a=n.default.playlists[e].active_index,l=n.default.playlists[e].songs[a]):n.default.playlists[e].shuffle?(parseInt(n.default.playlists[e].active_index)+1<n.default.playlists[e].shuffle_list.length?a=n.default.playlists[e].active_index+1:(a=0,u=!0),l=n.default.playlists[e].shuffle_list[a]):(parseInt(n.default.playlists[e].active_index)+1<n.default.playlists[e].songs.length?a=parseInt(n.default.playlists[e].active_index)+1:(a=0,u=!0),l=n.default.playlists[e].songs[a]),c(e),i(e,l,a),u&&!n.default.repeat||t&&!n.default.repeat&&u||d.default.play(),p.default.sync(),o.default.run("next"),n.default.repeat_song&&o.default.run("song_repeated")}function a(){var e=null,t={};n.default.repeat_song?n.default.shuffle_on?(e=n.default.active_index,t=n.default.shuffle_list[e]):(e=n.default.active_index,t=n.default.songs[e]):(e=parseInt(n.default.active_index)-1>=0?parseInt(n.default.active_index-1):parseInt(n.default.songs.length-1),t=n.default.shuffle_on?n.default.shuffle_list[e]:n.default.songs[e]),u(t,e),d.default.play(),p.default.sync(),o.default.run("prev"),n.default.repeat_song&&o.default.run("song_repeated")}function l(e){var t=null,a={};n.default.repeat_song?n.default.playlists[e].shuffle?(t=n.default.playlists[e].active_index,a=n.default.playlists[e].shuffle_list[t]):(t=n.default.playlists[e].active_index,a=n.default.playlists[e].songs[t]):(t=parseInt(n.default.playlists[e].active_index)-1>=0?parseInt(n.default.playlists[e].active_index-1):parseInt(n.default.playlists[e].songs.length-1),a=n.default.playlists[e].shuffle?n.default.playlists[e].shuffle_list[t]:n.default.playlists[e].songs[t]),c(e),i(e,a,t),d.default.play(),p.default.sync(),o.default.run("prev"),n.default.repeat_song&&o.default.run("song_repeated")}function u(e,t){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(e),n.default.audio.src=e.url,n.default.active_metadata=e,n.default.active_album=e.album,n.default.active_index=parseInt(t),f(a)}function i(e,t,a){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s(t),n.default.audio.src=t.url,n.default.active_metadata=t,n.default.active_album=t.album,n.default.active_index=null,n.default.playlists[e].active_index=parseInt(a),f(l)}function s(e){d.default.stop(),p.default.syncToPause(),y.default.resetElements(),m.default.resetElements(),h.default.resetCurrentTimes(),r.default.newAlbum(e)&&o.default.run("album_change")}function f(e){A.default.displayMetaData(),M.default.setActive(e),h.default.resetDurationTimes(),o.default.run("song_change")}function c(e){n.default.active_playlist!=e&&(o.default.run("playlist_changed"),n.default.active_playlist=e,null!=e&&(n.default.playlists[e].active_index=0))}return{setNext:e,setNextPlaylist:t,setPrevious:a,setPreviousPlaylist:l,changeSong:u,changeSongPlaylist:i,setActivePlaylist:c}}();t.default=P,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){u.default.debug&&console.log(e)}return{writeMessage:e}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e,t){return u.default.active_playlist!=e||(null==u.default.active_playlist&&null==e?u.default.active_index!=t:u.default.active_playlist==e&&u.default.playlists[e].active_index!=t)}function t(e){return u.default.active_album!=e}function a(e){return u.default.active_playlist!=e}function l(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)}function n(e){return!isNaN(e)&&parseInt(Number(e))==e&&!isNaN(parseInt(e,10))}return{newSong:e,newAlbum:t,newPlaylist:a,isURL:l,isInt:n}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){u.default.audio=new Audio,u.default.active_metadata={},u.default.active_album="",u.default.active_index=0,u.default.active_playlist=null,u.default.playback_speed=1,u.default.callbacks={},u.default.songs=[],u.default.playlists={},u.default.start_song="",u.default.starting_playlist="",u.default.starting_playlist_song="",u.default.repeat=!1,u.default.shuffle_list={},u.default.shuffle_on=!1,u.default.default_album_art="",u.default.default_playlist_art="",u.default.debug=!1,u.default.volume=.5,u.default.pre_mute_volume=.5,u.default.volume_increment=5,u.default.volume_decrement=5,u.default.soundcloud_client="",u.default.soundcloud_use_art=!1,u.default.soundcloud_song_count=0,u.default.soundcloud_songs_ready=0,u.default.continue_next=!0}function t(){u.default.audio.paused&&0==u.default.audio.currentTime&&(u.default.player_state="stopped"),u.default.audio.paused&&u.default.audio.currentTime>0&&(u.default.player_state="paused"),u.default.audio.paused||(u.default.player_state="playing")}return{resetConfig:e,setPlayerState:t}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){for(var e=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],t=document.querySelectorAll("[data-amplitude-song-info]"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-song-info"),n=t[a].getAttribute("data-amplitude-playlist"),i=t[a].getAttribute("data-amplitude-song-index");if(null==i&&(u.default.active_playlist==n||null==n&&null==i)){var d=void 0!=u.default.active_metadata[l]?u.default.active_metadata[l]:null;e.indexOf(l)>=0?(d=d||u.default.default_album_art,t[a].setAttribute("src",d)):(d=d||"",t[a].innerHTML=d)}}}function t(){for(var e=["image_url"],t=document.querySelectorAll("[data-amplitude-playlist-info]"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist-info"),n=t[a].getAttribute("data-amplitude-playlist");void 0!=u.default.playlists[n][l]?e.indexOf(l)>=0?t[a].setAttribute("src",u.default.playlists[n][l]):t[a].innerHTML=u.default.playlists[n][l]:e.indexOf(l)>=0?""!=u.default.default_playlist_art?t[a].setAttribute("src",u.default.default_playlist_art):t[a].setAttribute("src",""):t[a].innerHTML=""}}function a(e,t){for(var a=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],l=document.querySelectorAll('[data-amplitude-song-info][data-amplitude-playlist="'+t+'"]'),u=0;u<l.length;u++){var n=l[u].getAttribute("data-amplitude-song-info");l[u].getAttribute("data-amplitude-playlist")==t&&(void 0!=e[n]?a.indexOf(n)>=0?l[u].setAttribute("src",e[n]):l[u].innerHTML=e[n]:a.indexOf(n)>=0?""!=e.default_album_art?l[u].setAttribute("src",e.default_album_art):l[u].setAttribute("src",""):l[u].innerHTML="")}}function l(){for(var e=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],a=document.querySelectorAll("[data-amplitude-song-info]"),l=0;l<a.length;l++){var n=a[l].getAttribute("data-amplitude-song-index"),i=a[l].getAttribute("data-amplitude-playlist");if(null!=n&&null==i){var d=a[l].getAttribute("data-amplitude-song-info"),s=void 0!=u.default.songs[n][d]?u.default.songs[n][d]:null;e.indexOf(d)>=0?(s=s||u.default.default_album_art,a[l].setAttribute("src",s)):a[l].innerHTML=s}if(null!=n&&null!=i){var o=a[l].getAttribute("data-amplitude-song-info");void 0!=u.default.playlists[i].songs[n][o]&&(e.indexOf(o)>=0?a[l].setAttribute("src",u.default.playlists[i].songs[n][o]):a[l].innerHTML=u.default.playlists[i].songs[n][o])}}t()}return{displayMetaData:e,setFirstSongInPlaylist:a,syncMetaData:l,displayPlaylistMetaData:t}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){for(var e=document.getElementsByClassName("amplitude-repeat"),t=0;t<e.length;t++)u.default.repeat?(e[t].classList.add("amplitude-repeat-on"),e[t].classList.remove("amplitude-repeat-off")):(e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"))}function t(e){for(var t=document.getElementsByClassName("amplitude-repeat"),a=0;a<t.length;a++)t[a].getAttribute("data-amplitude-playlist")==e&&(u.default.playlists[e].repeat?(t[a].classList.add("amplitude-repeat-on"),t[a].classList.remove("amplitude-repeat-off")):(t[a].classList.add("amplitude-repeat-off"),t[a].classList.remove("amplitude-repeat-on")))}function a(){for(var e=document.getElementsByClassName("amplitude-repeat-song"),t=0;t<e.length;t++)u.default.repeat_song?(e[t].classList.add("amplitude-repeat-song-on"),e[t].classList.remove("amplitude-repeat-song-off")):(e[t].classList.remove("amplitude-repeat-song-on"),e[t].classList.add("amplitude-repeat-song-off"))}return{syncRepeat:e,syncRepeatPlaylist:t,syncRepeatSong:a}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(4),d=l(i),s=function(){function e(){n.default.audio.addEventListener("abort",function(){t("abort")}),n.default.audio.addEventListener("error",function(){t("error")}),n.default.audio.addEventListener("loadeddata",function(){t("loadeddata")}),n.default.audio.addEventListener("loadedmetadata",function(){t("loadedmetadata")}),n.default.audio.addEventListener("loadstart",function(){t("loadstart")}),n.default.audio.addEventListener("pause",function(){t("pause")}),n.default.audio.addEventListener("playing",function(){t("playing")}),n.default.audio.addEventListener("play",function(){t("play")}),n.default.audio.addEventListener("progress",function(){t("progress")}),n.default.audio.addEventListener("ratechange",function(){t("ratechange")}),n.default.audio.addEventListener("seeked",function(){t("seeked")}),n.default.audio.addEventListener("seeking",function(){t("seeking")}),n.default.audio.addEventListener("stalled",function(){t("stalled")}),n.default.audio.addEventListener("suspend",function(){t("suspend")}),n.default.audio.addEventListener("timeupdate",function(){t("timeupdate")}),n.default.audio.addEventListener("volumechange",function(){t("volumechange")}),n.default.audio.addEventListener("waiting",function(){t("waiting")}),n.default.audio.addEventListener("canplay",function(){t("canplay")}),n.default.audio.addEventListener("canplaythrough",function(){t("canplaythrough")}),n.default.audio.addEventListener("durationchange",function(){t("durationchange")}),n.default.audio.addEventListener("ended",function(){t("ended")})}function t(e){if(n.default.callbacks[e]){var t=n.default.callbacks[e];d.default.writeMessage("Running Callback: "+e);try{t()}catch(e){if("CANCEL EVENT"==e.message)throw e;d.default.writeMessage("Callback error: "+e.message)}}}return{initialize:e,run:t}}();t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){for(var t=document.getElementsByClassName("amplitude-mute"),a=0;a<t.length;a++)e?(t[a].classList.remove("amplitude-not-muted"),t[a].classList.add("amplitude-muted")):(t[a].classList.add("amplitude-not-muted"),t[a].classList.remove("amplitude-muted"))}return{setMuted:e}}();t.default=l,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){for(var e=document.getElementsByClassName("amplitude-volume-slider"),t=0;t<e.length;t++)e[t].value=100*u.default.audio.volume}return{sync:e}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){u.default.repeat=e}function t(e,t){u.default.playlists[t].repeat=e}function a(e){u.default.repeat_song=e}return{setRepeat:e,setRepeatPlaylist:t,setRepeatSong:a}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){u.default.shuffle_on=e,e?n():u.default.shuffle_list=[]}function t(){u.default.shuffle_on?(u.default.shuffle_on=!1,u.default.shuffle_list=[]):(u.default.shuffle_on=!0,n())}function a(e,t){u.default.playlists[e].shuffle=t,u.default.playlists[e].shuffle?i(e):u.default.playlists[e].shuffle_list=[]}function l(e){u.default.playlists[e].shuffle?(u.default.playlists[e].shuffle=!1,u.default.playlists[e].shuffle_list=[]):(u.default.playlists[e].shuffle=!0,i(e))}function n(){for(var e=new Array(u.default.songs.length),t=0;t<u.default.songs.length;t++)e[t]=u.default.songs[t];for(var a=u.default.songs.length-1;a>0;a--){d(e,a,Math.floor(Math.random()*u.default.songs.length+1)-1)}u.default.shuffle_list=e}function i(e){for(var t=new Array(u.default.playlists[e].songs.length),a=0;a<u.default.playlists[e].songs.length;a++)t[a]=u.default.playlists[e].songs[a];for(var l=u.default.playlists[e].songs.length-1;l>0;l--){d(t,l,Math.floor(Math.random()*u.default.playlists[e].songs.length+1)-1)}u.default.playlists[e].shuffle_list=t}function d(e,t,a){var l=e[t];e[t]=e[a],e[a]=l}return{setShuffle:e,toggleShuffle:t,setShufflePlaylist:a,toggleShufflePlaylist:l,shuffleSongs:n,shufflePlaylistSongs:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e,u,i){t(e),a(e,u),l(e,i),n(e,u)}function t(e){e=isNaN(e)?0:e;for(var t=document.querySelectorAll(".amplitude-song-slider"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].value=e)}}function a(e,t){e=isNaN(e)?0:e;for(var a=document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="'+t+'"]'),l=0;l<a.length;l++){var u=a[l].getAttribute("data-amplitude-playlist"),n=a[l].getAttribute("data-amplitude-song-index");u==t&&null==n&&(a[l].value=e)}}function l(e,t){if(null==u.default.active_playlist){e=isNaN(e)?0:e;for(var a=document.querySelectorAll('.amplitude-song-slider[data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++){var n=a[l].getAttribute("data-amplitude-playlist"),i=a[l].getAttribute("data-amplitude-song-index");null==n&&i==t&&(a[l].value=e)}}}function n(e,t){e=isNaN(e)?0:e;for(var a=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,l=document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="'+t+'"][data-amplitude-song-index="'+a+'"]'),n=0;n<l.length;n++)l[n].value=e}function i(){for(var e=document.getElementsByClassName("amplitude-song-slider"),t=0;t<e.length;t++)e[t].value=0}return{sync:e,syncMain:t,syncPlaylist:a,syncSong:l,syncSongInPlaylist:n,resetElements:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(53),n=l(u),i=a(50),d=l(i),s=a(51),o=l(s),f=a(52),r=l(f),c=a(54),p=l(c),v=a(55),y=l(v),g=a(56),m=l(g),_=a(57),h=l(_),b=a(58),A=l(b),x=function(){function e(){n.default.resetTimes(),d.default.resetTimes(),o.default.resetTimes(),r.default.resetTimes()}function t(e){n.default.sync(e),d.default.sync(e.hours),o.default.sync(e.minutes),r.default.sync(e.seconds)}function a(){p.default.resetTimes(),y.default.resetTimes(),m.default.resetTimes(),h.default.resetTimes(),A.default.resetTimes()}function l(e,t){p.default.sync(e,t),A.default.sync(t),y.default.sync(t.hours),m.default.sync(t.minutes),h.default.sync(t.seconds)}return{resetCurrentTimes:e,syncCurrentTimes:t,resetDurationTimes:a,syncDurationTimes:l}}();t.default=x,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(4),d=(l(i),function(){function e(){var e=document.querySelectorAll(".amplitude-visualization");if(n.default.web_audio_api_available){if(Object.keys(n.default.visualizations.available).length>0&&e.length>0)for(var i=0;i<e.length;i++){var d=e[i].getAttribute("data-amplitude-playlist"),s=e[i].getAttribute("data-amplitude-song-index");null==d&&null==s&&t(e[i]),null!=d&&null==s&&a(e[i],d),null==d&&null!=s&&l(e[i],s),null!=d&&null!=s&&u(e[i],d,s)}}else o()}function t(e){var t=n.default.visualization,a=null!=n.default.active_index?n.default.songs[n.default.active_index].visualization:n.default.playlists[n.default.active_playlist].songs[n.default.playlists[n.default.active_playlist].active_index].visualization;if(void 0!=a&&void 0!=n.default.visualizations.available[a])i(a,e);else if(void 0!=t&&void 0!=n.default.visualizations.available[t])i(t,e);else{var l=Object.keys(n.default.visualizations.available).length>0?Object.keys(n.default.visualizations.available)[0]:null;null!=l&&i(l,e)}}function a(e,t){if(t==n.default.active_playlist){var a=n.default.playlists[n.default.active_playlist].songs[n.default.playlists[n.default.active_playlist].active_index].visualization,l=n.default.playlists[n.default.active_playlist].visualization,u=n.default.visualization;if(void 0!=a&&void 0!=n.default.visualizations.available[a])i(a,e);else if(void 0!=l&&void 0!=n.default.visualizations.available[l])i(l,e);else if(void 0!=u&&void 0!=n.default.visualizations.available[u])i(u,e);else{var d=Object.keys(n.default.visualizations.available).length>0?Object.keys(n.default.visualizations.available)[0]:null;null!=d&&i(d,e)}}}function l(e,t){if(t==n.default.active_index){var a=n.default.songs[n.default.active_index].visualization,l=n.default.visualization;if(void 0!=a&&void 0!=n.default.visualizations.available[a])i(a,e);else if(void 0!=l&&void 0!=n.default.visualizations.available[l])i(l,e);else{var u=Object.keys(n.default.visualizations.available).length>0?Object.keys(n.default.visualizations.available)[0]:null;null!=u&&i(u,e)}}}function u(e,t,a){if(t==n.default.active_playlist&&n.default.playlists[t].active_index==a){var l=n.default.playlists[n.default.active_playlist].songs[n.default.playlists[n.default.active_playlist].active_index].visualization,u=n.default.playlists[n.default.active_playlist].visualization,d=n.default.visualization;if(void 0!=l&&void 0!=n.default.visualizations.available[l])i(l,e);else if(void 0!=u&&void 0!=n.default.visualizations.available[u])i(u,e);else if(void 0!=d&&void 0!=n.default.visualizations.available[d])i(d,e);else{var s=Object.keys(n.default.visualizations.available).length>0?Object.keys(n.default.visualizations.available)[0]:null;null!=s&&i(s,e)}}}function i(e,t){var a=new n.default.visualizations.available[e].object;a.setPreferences(n.default.visualizations.available[e].preferences),a.startVisualization(t),n.default.visualizations.active.push(a)}function d(){for(var e=0;e<n.default.visualizations.active.length;e++)n.default.visualizations.active[e].stopVisualization();n.default.visualizations.active=[]}function s(e,t){var a=new e;n.default.visualizations.available[a.getID()]=new Array,n.default.visualizations.available[a.getID()].object=e,n.default.visualizations.available[a.getID()].preferences=t}function o(){var e=document.querySelectorAll(".amplitude-visualization");if(e.length>0)for(var t=0;t<e.length;t++){var a=e[t].getAttribute("data-amplitude-playlist"),l=e[t].getAttribute("data-amplitude-song-index");null==a&&null==l&&f(e[t]),null!=a&&null==l&&r(e[t],a),null==a&&null!=l&&c(e[t],l),null!=a&&null!=l&&p(e[t],a,l)}}function f(e){e.style.backgroundImage="url("+n.default.active_metadata.cover_art_url+")"}function r(e,t){n.default.active_playlist==t&&(e.style.backgroundImage="url("+n.default.active_metadata.cover_art_url+")")}function c(e,t){n.default.active_index==t&&(e.style.backgroundImage="url("+n.default.active_metadata.cover_art_url+")")}function p(e,t,a){n.default.active_playlist==t&&n.default.playlists[active_playlist].active_index==a&&(e.style.backgroundImage="url("+n.default.active_metadata.cover_art_url+")")}return{run:e,stop:d,register:s}}());t.default=d,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(21),d=l(i),s=function(){function e(e){s=e;var a=document.getElementsByTagName("head")[0],l=document.createElement("script");l.type="text/javascript",l.src="https://connect.soundcloud.com/sdk.js",l.onreadystatechange=t,l.onload=t,a.appendChild(l)}function t(){SC.initialize({client_id:n.default.soundcloud_client}),a()}function a(){for(var e=/^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/,t=0;t<n.default.songs.length;t++)n.default.songs[t].url.match(e)&&(n.default.soundcloud_song_count++,u(n.default.songs[t].url,t))}function l(e,t,a){var l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];SC.get("/resolve/?url="+e,function(e){e.streamable?null!=t?(n.default.playlists[t].songs[a].url=e.stream_url+"?client_id="+n.default.soundcloud_client,l&&(n.default.playlists[t].shuffle_list[a].url=e.stream_url+"?client_id="+n.default.soundcloud_client),n.default.soundcloud_use_art&&(n.default.playlists[t].songs[a].cover_art_url=e.artwork_url,l&&(n.default.playlists[t].shuffle_list[a].cover_art_url=e.artwork_url)),n.default.playlists[t].songs[a].soundcloud_data=e,l&&(n.default.playlists[t].shuffle_list[a].soundcloud_data=e)):(n.default.songs[a].url=e.stream_url+"?client_id="+n.default.soundcloud_client,l&&(n.default.shuffle_list[a].stream_url,n.default.soundcloud_client),n.default.soundcloud_use_art&&(n.default.songs[a].cover_art_url=e.artwork_url,l&&(n.default.shuffle_list[a].cover_art_url=e.artwork_url)),n.default.songs[a].soundcloud_data=e,l&&(n.default.shuffle_list[a].soundcloud_data=e)):null!=t?AmplitudeHelpers.writeDebugMessage(n.default.playlists[t].songs[a].name+" by "+n.default.playlists[t].songs[a].artist+" is not streamable by the Soundcloud API"):AmplitudeHelpers.writeDebugMessage(n.default.songs[a].name+" by "+n.default.songs[a].artist+" is not streamable by the Soundcloud API")})}function u(e,t){SC.get("/resolve/?url="+e,function(e){e.streamable?(n.default.songs[t].url=e.stream_url+"?client_id="+n.default.soundcloud_client,n.default.soundcloud_use_art&&(n.default.songs[t].cover_art_url=e.artwork_url),n.default.songs[t].soundcloud_data=e):AmplitudeHelpers.writeDebugMessage(n.default.songs[t].name+" by "+n.default.songs[t].artist+" is not streamable by the Soundcloud API"),++n.default.soundcloud_songs_ready==n.default.soundcloud_song_count&&d.default.setConfig(s)})}function i(e){var t=/^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/;return e.match(t)}var s={};return{loadSoundCloud:e,resolveIndividualStreamableURL:l,isSoundCloudURL:i}}();t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){for(var e=document.getElementsByClassName("amplitude-playback-speed"),t=0;t<e.length;t++)switch(e[t].classList.remove("amplitude-playback-speed-10"),e[t].classList.remove("amplitude-playback-speed-15"),e[t].classList.remove("amplitude-playback-speed-20"),u.default.playback_speed){case 1:e[t].classList.add("amplitude-playback-speed-10");break;case 1.5:e[t].classList.add("amplitude-playback-speed-15");break;case 2:e[t].classList.add("amplitude-playback-speed-20")}}return{sync:e}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){for(var e=document.getElementsByClassName("amplitude-shuffle"),t=0;t<e.length;t++)null==e[t].getAttribute("data-amplitude-playlist")&&(u.default.shuffle_on?(e[t].classList.add("amplitude-shuffle-on"),e[t].classList.remove("amplitude-shuffle-off")):(e[t].classList.add("amplitude-shuffle-off"),e[t].classList.remove("amplitude-shuffle-on")))}function t(e){for(var t=document.querySelectorAll('.amplitude-shuffle[data-amplitude-playlist="'+e+'"]'),a=0;a<t.length;a++)u.default.playlists[e].shuffle?(t[a].classList.add("amplitude-shuffle-on"),t[a].classList.remove("amplitude-shuffle-off")):(t[a].classList.add("amplitude-shuffle-off"),t[a].classList.remove("amplitude-shuffle-on"))}return{syncMain:e,syncPlaylist:t}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){if(!isNaN(e))for(var t=document.querySelectorAll(".amplitude-song-played-progress"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");if(null==l&&null==u){var n=t[a].max;t[a].value=e/100*n}}}function a(e){if(!isNaN(e))for(var t=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-song-index");if(null==l){var n=t[a].max;t[a].value=e/100*n}}}function l(e){if(null==u.default.active_playlist&&!isNaN(e))for(var t=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");if(null==l){var n=t[a].max;t[a].value=e/100*n}}}function n(e){if(!isNaN(e))for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++){var n=a[l].getAttribute("data-amplitude-playlist"),i=a[l].getAttribute("data-amplitude-song-index");if(null!=n&&null!=i){var d=a[l].max;a[l].value=e/100*d}}}function i(){for(var e=document.getElementsByClassName("amplitude-song-played-progress"),t=0;t<e.length;t++)e[t].value=0}return{sync:e,resetElements:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u="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},n=a(0),i=l(n),d=a(1),s=l(d),o=a(17),f=l(o),r=a(6),c=l(r),p=a(4),v=l(p),y=a(5),g=l(y),m=a(13),_=l(m),h=a(26),b=l(h),A=a(46),x=l(A),M=a(16),P=l(M),S=a(22),L=l(S),w=a(3),E=l(w),k=a(9),T=l(k),O=a(48),C=l(O),N=a(19),j=l(N),I=a(10),q=l(I),z=a(11),H=l(z),B=a(15),D=l(B),R=a(2),V=l(R),U=a(7),F=l(U),W=a(18),G=l(W),Y=a(8),X=l(Y),J=function(){function e(e){var t=!1;if(c.default.resetConfig(),b.default.initialize(),T.default.initialize(),i.default.debug=void 0!=e.debug&&e.debug,l(e),e.songs?0!=e.songs.length?(i.default.songs=e.songs,t=!0):v.default.writeMessage("Please add some songs, to your songs object!"):v.default.writeMessage("Please provide a songs object for AmplitudeJS to run!"),x.default.webAudioAPIAvailable()){if(x.default.determineUsingAnyFX()&&(x.default.configureWebAudioAPI(),document.documentElement.addEventListener("mousedown",function(){"running"!==i.default.context.state&&i.default.context.resume()}),document.documentElement.addEventListener("keydown",function(){"running"!==i.default.context.state&&i.default.context.resume()}),document.documentElement.addEventListener("keyup",function(){"running"!==i.default.context.state&&i.default.context.resume()}),void 0!=e.waveforms&&void 0!=e.waveforms.sample_rate&&(i.default.waveforms.sample_rate=e.waveforms.sample_rate),L.default.init(),void 0!=e.visualizations&&e.visualizations.length>0))for(var u=0;u<e.visualizations.length;u++)P.default.register(e.visualizations[u].object,e.visualizations[u].params)}else v.default.writeMessage("The Web Audio API is not available on this platform. We are using your defined backups!");if(o(),r(),t){i.default.soundcloud_client=void 0!=e.soundcloud_client?e.soundcloud_client:"",i.default.soundcloud_use_art=void 0!=e.soundcloud_use_art?e.soundcloud_use_art:"";var n={};""!=i.default.soundcloud_client?(n=e,f.default.loadSoundCloud(n)):a(e)}v.default.writeMessage("Initialized With: "),v.default.writeMessage(i.default)}function t(){b.default.initialize(),F.default.displayMetaData()}function a(e){e.playlists&&d(e.playlists)>0&&C.default.initialize(e.playlists),void 0==e.start_song||e.starting_playlist?E.default.changeSong(i.default.songs[0],0):g.default.isInt(e.start_song)?E.default.changeSong(i.default.songs[e.start_song],e.start_song):v.default.writeMessage("You must enter an integer index for the start song."),void 0!=e.shuffle_on&&e.shuffle_on&&(i.default.shuffle_on=!0,_.default.shuffleSongs(),E.default.changeSong(i.default.shuffle_list[0],0)),i.default.continue_next=void 0==e.continue_next||e.continue_next,i.default.playback_speed=void 0!=e.playback_speed?e.playback_speed:1,s.default.setPlaybackSpeed(i.default.playback_speed),i.default.audio.preload=void 0!=e.preload?e.preload:"auto",i.default.callbacks=void 0!=e.callbacks?e.callbacks:{},i.default.bindings=void 0!=e.bindings?e.bindings:{},i.default.volume=void 0!=e.volume?e.volume:50,i.default.delay=void 0!=e.delay?e.delay:0,i.default.volume_increment=void 0!=e.volume_increment?e.volume_increment:5,i.default.volume_decrement=void 0!=e.volume_decrement?e.volume_decrement:5,s.default.setVolume(i.default.volume),l(e),n(),void 0!=e.starting_playlist&&""!=e.starting_playlist&&(i.default.active_playlist=e.starting_playlist,void 0!=e.starting_playlist_song&&""!=e.starting_playlist_song?void 0!=u(e.playlists[e.starting_playlist].songs[parseInt(e.starting_playlist_song)])?E.default.changeSongPlaylist(i.default.active_playlist,e.playlists[e.starting_playlist].songs[parseInt(e.starting_playlist_song)],parseInt(e.starting_playlist_song)):(E.default.changeSongPlaylist(i.default.active_playlist,e.playlists[e.starting_playlist].songs[0],0),v.default.writeMessage("The index of "+e.starting_playlist_song+" does not exist in the playlist "+e.starting_playlist)):E.default.changeSong(i.default.active_playlist,e.playlists[e.starting_playlist].songs[0],0),V.default.sync()),T.default.run("initialized")}function l(e){void 0!=e.default_album_art?i.default.default_album_art=e.default_album_art:i.default.default_album_art="",void 0!=e.default_playlist_art?i.default.default_playlist_art=e.default_playlist_art:i.default.default_playlist_art=""}function n(){j.default.syncMain(),q.default.setMuted(0==i.default.volume),H.default.sync(),G.default.sync(),D.default.resetCurrentTimes(),V.default.syncToPause(),F.default.syncMetaData(),X.default.syncRepeatSong()}function d(e){var t=0,a=void 0;for(a in e)e.hasOwnProperty(a)&&t++;return v.default.writeMessage("You have "+t+" playlist(s) in your config"),t}function o(){for(var e=0;e<i.default.songs.length;e++)void 0==i.default.songs[e].live&&(i.default.songs[e].live=!1)}function r(){for(var e=0;e<i.default.songs.length;e++)i.default.songs[e].index=e}return{initialize:e,setConfig:a,rebindDisplay:t}}();t.default=J,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){c=u.default.waveforms.sample_rate;var e=document.querySelectorAll(".amplitude-wave-form");if(e.length>0)for(var t=0;t<e.length;t++){e[t].innerHTML="";var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("viewBox","0 -1 "+c+" 2"),a.setAttribute("preserveAspectRatio","none");var l=document.createElementNS("http://www.w3.org/2000/svg","g");a.appendChild(l);var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d",""),n.setAttribute("id","waveform"),l.appendChild(n),e[t].appendChild(a)}}function t(){if(u.default.web_audio_api_available)if(void 0==u.default.waveforms.built[Math.abs(u.default.audio.src.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))]){var e=new XMLHttpRequest;e.open("GET",u.default.audio.src,!0),e.responseType="arraybuffer",e.onreadystatechange=function(t){4==e.readyState&&200==e.status&&u.default.context.decodeAudioData(e.response,function(e){r=e,p=l(c,r),a(c,r,p)})},e.send()}else n(u.default.waveforms.built[Math.abs(u.default.audio.src.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))])}function a(e,t,a){if(t){for(var l=a.length,i="",d=0;d<l;d++)i+=d%2==0?" M"+~~(d/2)+", "+a.shift():" L"+~~(d/2)+", "+a.shift();u.default.waveforms.built[Math.abs(u.default.audio.src.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))]=i,n(u.default.waveforms.built[Math.abs(u.default.audio.src.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0))])}}function l(e,t){for(var a=t.length/e,l=~~(a/10)||1,u=t.numberOfChannels,n=[],i=0;i<u;i++)for(var d=[],s=t.getChannelData(i),o=0;o<e;o++){for(var f=~~(o*a),r=~~(f+a),c=s[0],p=s[0],v=f;v<r;v+=l){var y=s[v];y>p&&(p=y),y<c&&(c=y)}d[2*o]=p,d[2*o+1]=c,(0===i||p>n[2*o])&&(n[2*o]=p),(0===i||c<n[2*o+1])&&(n[2*o+1]=c)}return n}function n(e){for(var t=document.querySelectorAll(".amplitude-wave-form"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&i(t[a],e),null!=l&&null==u&&d(t[a],e,l),null==l&&null!=u&&s(t[a],e,u),null!=l&&null!=u&&o(t[a],e,l,u)}}function i(e,t){e.querySelector("svg g path").setAttribute("d",t)}function d(e,t,a){if(u.default.active_playlist==a){e.querySelector("svg g path").setAttribute("d",t)}}function s(e,t,a){if(u.default.active_index==a){e.querySelector("svg g path").setAttribute("d",t)}}function o(e,t,a,l){if(u.default.active_playlist==a&&u.default.playlists[u.default.active_playlist].active_index==l){e.querySelector("svg g path").setAttribute("d",t)}}function f(){return document.querySelectorAll(".amplitude-wave-form").length>0}var r="",c="",p="";return{init:e,build:t,determineIfUsingWaveforms:f}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){var e={},t=(Math.floor(u.default.audio.currentTime%60)<10?"0":"")+Math.floor(u.default.audio.currentTime%60),a=Math.floor(u.default.audio.currentTime/60),l="00";return a<10&&(a="0"+a),a>=60&&(l=Math.floor(a/60),(a%=60)<10&&(a="0"+a)),e.seconds=t,e.minutes=a,e.hours=l,e}function t(){var e={},t=(Math.floor(u.default.audio.duration%60)<10?"0":"")+Math.floor(u.default.audio.duration%60),a=Math.floor(u.default.audio.duration/60),l="00";return a<10&&(a="0"+a),a>=60&&(l=Math.floor(a/60),(a%=60)<10&&(a="0"+a)),e.seconds=isNaN(t)?"00":t,e.minutes=isNaN(a)?"00":a,e.hours=isNaN(l)?"00":l.toString(),e}function a(){return u.default.audio.currentTime/u.default.audio.duration*100}function l(e){u.default.active_metadata.live||isFinite(e)&&(u.default.audio.currentTime=e)}return{computeCurrentTimes:e,computeSongDuration:t,computeSongCompletionPercentage:a,setCurrentTime:l}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){t(),a(),l(),n()}function t(){for(var e=document.getElementsByClassName("amplitude-buffered-progress"),t=0;t<e.length;t++){var a=e[t].getAttribute("data-amplitude-playlist"),l=e[t].getAttribute("data-amplitude-song-index");null!=a||null!=l||isNaN(u.default.buffered)||(e[t].value=parseFloat(parseFloat(u.default.buffered)/100))}}function a(){for(var e=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-playlist="'+u.default.active_playlist+'"]'),t=0;t<e.length;t++){null!=e[t].getAttribute("data-amplitude-song-index")||isNaN(u.default.buffered)||(e[t].value=parseFloat(parseFloat(u.default.buffered)/100))}}function l(){for(var e=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="'+u.default.active_index+'"]'),t=0;t<e.length;t++){null!=e[t].getAttribute("data-amplitude-playlist")||isNaN(u.default.buffered)||(e[t].value=parseFloat(parseFloat(u.default.buffered)/100))}}function n(){for(var e=null!=u.default.active_playlist&&""!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,t=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="'+e+'"][data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++)isNaN(u.default.buffered)||(t[a].value=parseFloat(parseFloat(u.default.buffered)/100))}function i(){for(var e=document.getElementsByClassName("amplitude-buffered-progress"),t=0;t<e.length;t++)e[t].value=0}return{sync:e,reset:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(3),d=l(i),s=a(1),o=l(s),f=a(2),r=l(f),c=function(){function e(){setTimeout(function(){n.default.continue_next?""==n.default.active_playlist||null==n.default.active_playlist?d.default.setNext(!0):d.default.setNextPlaylist(n.default.active_playlist,!0):n.default.is_touch_moving||(o.default.stop(),r.default.sync())},n.default.delay)}return{handle:e}}();t.default=c,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(27),d=l(i),s=a(42),o=l(s),f=a(25),r=l(f),c=a(35),p=l(c),v=a(31),y=l(v),g=a(30),m=l(g),_=a(32),h=l(_),b=a(41),A=l(b),x=a(28),M=l(x),P=a(45),S=l(P),L=a(43),w=l(L),E=a(40),k=l(E),T=a(44),O=l(T),C=a(29),N=l(C),j=a(34),I=l(j),q=a(36),z=l(q),H=a(37),B=l(H),D=a(33),R=l(D),V=a(38),U=l(V),F=a(39),W=l(F),G=a(22),Y=l(G),X=a(4),J=l(X),$=function(){function e(){J.default.writeMessage("Beginning initialization of event handlers.."),document.addEventListener("touchmove",function(){n.default.is_touch_moving=!0}),document.addEventListener("touchend",function(){n.default.is_touch_moving&&(n.default.is_touch_moving=!1)}),t(),a(),l(),u(),i(),s(),f(),c(),v(),g(),_(),b(),x(),P(),L(),E(),T(),C(),j(),q(),H()}function t(){n.default.audio.removeEventListener("timeupdate",o.default.handle),n.default.audio.addEventListener("timeupdate",o.default.handle),n.default.audio.removeEventListener("durationchange",o.default.handle),n.default.audio.addEventListener("durationchange",o.default.handle)}function a(){document.removeEventListener("keydown",d.default.handle),document.addEventListener("keydown",d.default.handle)}function l(){n.default.audio.removeEventListener("ended",r.default.handle),n.default.audio.addEventListener("ended",r.default.handle)}function u(){n.default.audio.removeEventListener("progress",p.default.handle),n.default.audio.addEventListener("progress",p.default.handle)}function i(){for(var e=document.getElementsByClassName("amplitude-play"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",y.default.handle),e[t].addEventListener("touchend",y.default.handle)):(e[t].removeEventListener("click",y.default.handle),e[t].addEventListener("click",y.default.handle))}function s(){for(var e=document.getElementsByClassName("amplitude-pause"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",m.default.handle),e[t].addEventListener("touchend",m.default.handle)):(e[t].removeEventListener("click",m.default.handle),e[t].addEventListener("click",m.default.handle))}function f(){for(var e=document.getElementsByClassName("amplitude-play-pause"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",h.default.handle),e[t].addEventListener("touchend",h.default.handle)):(e[t].removeEventListener("click",h.default.handle),e[t].addEventListener("click",h.default.handle))}function c(){for(var e=document.getElementsByClassName("amplitude-stop"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",A.default.handle),e[t].addEventListener("touchend",A.default.handle)):(e[t].removeEventListener("click",A.default.handle),e[t].addEventListener("click",A.default.handle))}function v(){for(var e=document.getElementsByClassName("amplitude-mute"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?J.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",M.default.handle),e[t].addEventListener("touchend",M.default.handle)):(e[t].removeEventListener("click",M.default.handle),e[t].addEventListener("click",M.default.handle))}function g(){for(var e=document.getElementsByClassName("amplitude-volume-up"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?J.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",S.default.handle),e[t].addEventListener("touchend",S.default.handle)):(e[t].removeEventListener("click",S.default.handle),e[t].addEventListener("click",S.default.handle))}function _(){for(var e=document.getElementsByClassName("amplitude-volume-down"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?J.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",w.default.handle),e[t].addEventListener("touchend",w.default.handle)):(e[t].removeEventListener("click",w.default.handle),e[t].addEventListener("click",w.default.handle))}function b(){for(var e=window.navigator.userAgent,t=e.indexOf("MSIE "),a=document.getElementsByClassName("amplitude-song-slider"),l=0;l<a.length;l++)t>0||navigator.userAgent.match(/Trident.*rv\:11\./)?(a[l].removeEventListener("change",k.default.handle),a[l].addEventListener("change",k.default.handle)):(a[l].removeEventListener("input",k.default.handle),a[l].addEventListener("input",k.default.handle))}function x(){for(var e=window.navigator.userAgent,t=e.indexOf("MSIE "),a=document.getElementsByClassName("amplitude-volume-slider"),l=0;l<a.length;l++)/iPhone|iPad|iPod/i.test(navigator.userAgent)?J.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):t>0||navigator.userAgent.match(/Trident.*rv\:11\./)?(a[l].removeEventListener("change",O.default.handle),a[l].addEventListener("change",O.default.handle)):(a[l].removeEventListener("input",O.default.handle),a[l].addEventListener("input",O.default.handle))}function P(){for(var e=document.getElementsByClassName("amplitude-next"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",N.default.handle),e[t].addEventListener("touchend",N.default.handle)):(e[t].removeEventListener("click",N.default.handle),e[t].addEventListener("click",N.default.handle))}function L(){for(var e=document.getElementsByClassName("amplitude-prev"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",I.default.handle),e[t].addEventListener("touchend",I.default.handle)):(e[t].removeEventListener("click",I.default.handle),e[t].addEventListener("click",I.default.handle))}function E(){for(var e=document.getElementsByClassName("amplitude-shuffle"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-shuffle-on"),e[t].classList.add("amplitude-shuffle-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",U.default.handle),e[t].addEventListener("touchend",U.default.handle)):(e[t].removeEventListener("click",U.default.handle),e[t].addEventListener("click",U.default.handle))}function T(){for(var e=document.getElementsByClassName("amplitude-repeat"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",z.default.handle),e[t].addEventListener("touchend",z.default.handle)):(e[t].removeEventListener("click",z.default.handle),e[t].addEventListener("click",z.default.handle))}function C(){for(var e=document.getElementsByClassName("amplitude-repeat-song"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",B.default.handle),e[t].addEventListener("touchend",B.default.handle)):(e[t].removeEventListener("click",B.default.handle),e[t].addEventListener("click",B.default.handle))}function j(){for(var e=document.getElementsByClassName("amplitude-playback-speed"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",R.default.handle),e[t].addEventListener("touchend",R.default.handle)):(e[t].removeEventListener("click",R.default.handle),e[t].addEventListener("click",R.default.handle))}function q(){for(var e=document.getElementsByClassName("amplitude-skip-to"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",W.default.handle),e[t].addEventListener("touchend",W.default.handle)):(e[t].removeEventListener("click",W.default.handle),e[t].addEventListener("click",W.default.handle))}function H(){Y.default.determineIfUsingWaveforms()&&(n.default.audio.removeEventListener("canplaythrough",Y.default.build),n.default.audio.addEventListener("canplaythrough",Y.default.build))}return{initialize:e}}();t.default=$,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(13),o=l(s),f=a(12),r=l(f),c=a(3),p=l(c),v=a(8),y=l(v),g=a(2),m=l(g),_=function(){function e(e){t(e.which)}function t(e){if(void 0!=n.default.bindings[e])switch(n.default.bindings[e]){case"play_pause":a();break;case"next":l();break;case"prev":u();break;case"stop":i();break;case"shuffle":s();break;case"repeat":f()}}function a(){n.default.audio.paused?d.default.play():d.default.pause(),m.default.sync()}function l(){""==n.default.active_playlist||null==n.default.active_playlist?p.default.setNext():p.default.setNextPlaylist(n.default.active_playlist)}function u(){""==n.default.active_playlist||null==n.default.active_playlist?p.default.setPrevious():p.default.setPreviousPlaylist(n.default.active_playlist)}function i(){m.default.syncToPause(),d.default.stop()}function s(){""==n.default.active_playlist||null==n.default.active_playlist?o.default.toggleShuffle():o.default.toggleShufflePlaylist(n.default.active_playlist)}function f(){r.default.setRepeat(!n.default.repeat),y.default.syncRepeat()}return{handle:e}}();t.default=_,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(10),o=l(s),f=a(11),r=l(f),c=function(){function e(){n.default.is_touch_moving||(0==n.default.volume?d.default.setVolume(n.default.pre_mute_volume):(n.default.pre_mute_volume=n.default.volume,d.default.setVolume(0)),o.default.setMuted(0==n.default.volume),r.default.sync())}return{handle:e}}();t.default=c,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=(l(i),a(2)),s=(l(d),a(9)),o=(l(s),a(3)),f=l(o),r=a(4),c=l(r),p=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist");null==e&&t(),null!=e&&a(e)}}function t(){""==n.default.active_playlist||null==n.default.active_playlist?f.default.setNext():f.default.setNextPlaylist(n.default.active_playlist)}function a(e){e==n.default.active_playlist?f.default.setNextPlaylist(e):c.default.writeMessage("You can not go to the next song on a playlist that is not being played!")}return{handle:e}}();t.default=p,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(6),d=(l(i),a(1)),s=l(d),o=a(2),f=l(o),r=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-song-index"),i=this.getAttribute("data-amplitude-playlist");null==i&&null==e&&t(),null!=i&&null==e&&a(i),null==i&&null!=e&&l(e),null!=i&&null!=e&&u(i,e)}}function t(){s.default.pause(),f.default.sync()}function a(e){n.default.active_playlist==e&&(s.default.pause(),f.default.sync())}function l(e){""!=n.default.active_playlist&&null!=n.default.active_playlist||n.default.active_index!=e||(s.default.pause(),f.default.sync())}function u(e,t){n.default.active_playlist==e&&n.default.playlists[e].active_index==t&&(s.default.pause(),f.default.sync())}return{handle:e}}();t.default=r,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(6),d=(l(i),a(1)),s=l(d),o=a(5),f=l(o),r=a(3),c=l(r),p=a(2),v=l(p),y=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-song-index"),i=this.getAttribute("data-amplitude-playlist");null==i&&null==e&&t(),null!=i&&null==e&&a(i),null==i&&null!=e&&l(e),null!=i&&null!=e&&u(i,e)}}function t(){s.default.play(),v.default.sync()}function a(e){f.default.newPlaylist(e)&&(c.default.setActivePlaylist(e),n.default.playlists[e].shuffle?c.default.changeSongPlaylist(e,n.default.playlists[e].shuffle_list[0],0):c.default.changeSongPlaylist(e,n.default.playlists[e].songs[0],0)),s.default.play(),v.default.sync()}function l(e){f.default.newPlaylist(null)&&(c.default.setActivePlaylist(null),c.default.changeSong(n.default.songs[e],e)),f.default.newSong(null,e)&&c.default.changeSong(n.default.songs[e],e),s.default.play(),v.default.sync()}function u(e,t){f.default.newPlaylist(e)&&(c.default.setActivePlaylist(e),c.default.changeSongPlaylist(e,n.default.playlists[e].songs[t],t)),f.default.newSong(e,t)&&c.default.changeSongPlaylist(e,n.default.playlists[e].songs[t],t),s.default.play(),v.default.sync()}return{handle:e}}();t.default=y,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(6),d=(l(i),a(1)),s=l(d),o=a(5),f=l(o),r=a(3),c=l(r),p=a(2),v=l(p),y=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),i=this.getAttribute("data-amplitude-song-index");null==e&&null==i&&t(),null!=e&&null==i&&a(e),null==e&&null!=i&&l(i),null!=e&&null!=i&&u(e,i)}}function t(){n.default.audio.paused?s.default.play():s.default.pause(),v.default.sync()}function a(e){f.default.newPlaylist(e)&&(c.default.setActivePlaylist(e),n.default.playlists[e].shuffle?c.default.changeSongPlaylist(e,n.default.playlists[e].shuffle_list[0],0,!0):c.default.changeSongPlaylist(e,n.default.playlists[e].songs[0],0)),n.default.audio.paused?s.default.play():s.default.pause(),v.default.sync()}function l(e){f.default.newPlaylist(null)&&(c.default.setActivePlaylist(null),c.default.changeSong(n.default.songs[e],e,!0)),f.default.newSong(null,e)&&c.default.changeSong(n.default.songs[e],e,!0),n.default.audio.paused?s.default.play():s.default.pause(),v.default.sync()}function u(e,t){f.default.newPlaylist(e)&&(c.default.setActivePlaylist(e),c.default.changeSongPlaylist(e,n.default.playlists[e].songs[t],t,!0)),f.default.newSong(e,t)&&c.default.changeSongPlaylist(e,n.default.playlists[e].songs[t],t,!0),n.default.audio.paused?s.default.play():s.default.pause(),v.default.sync()}return{handle:e}}();t.default=y,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(18),o=l(s),f=function(){function e(){if(!n.default.is_touch_moving){switch(n.default.playback_speed){case 1:d.default.setPlaybackSpeed(1.5);break;case 1.5:d.default.setPlaybackSpeed(2);break;case 2:d.default.setPlaybackSpeed(1)}o.default.sync()}}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(3),d=l(i),s=a(4),o=l(s),f=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist");null==e&&t(),null!=e&&a(e)}}function t(){""==n.default.active_playlist||null==n.default.active_playlist?d.default.setPrevious():d.default.setPreviousPlaylist(n.default.active_playlist)}function a(e){e==n.default.active_playlist?d.default.setPreviousPlaylist(n.default.active_playlist):o.default.writeMessage("You can not go to the previous song on a playlist that is not being played!")}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(24),d=l(i),s=function(){function e(){if(n.default.audio.buffered.length-1>=0){var e=n.default.audio.buffered.end(n.default.audio.buffered.length-1),t=n.default.audio.duration;n.default.buffered=e/t*100}d.default.sync()}return{handle:e}}();t.default=s,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(12),d=l(i),s=a(8),o=l(s),f=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist");null==e&&t(),null!=e&&a(e)}}function t(){d.default.setRepeat(!n.default.repeat),o.default.syncRepeat()}function a(e){d.default.setRepeatPlaylist(!n.default.playlists[e].repeat,e),o.default.syncRepeatPlaylist(e)}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(12),d=l(i),s=a(8),o=l(s),f=function(){function e(){n.default.is_touch_moving||(d.default.setRepeatSong(!n.default.repeat_song),o.default.syncRepeatSong())}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(13),d=l(i),s=a(19),o=l(s),f=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist");null==e?t():a(e)}}function t(){d.default.toggleShuffle(),o.default.syncMain(n.default.shuffle_on)}function a(e){d.default.toggleShufflePlaylist(e),o.default.syncPlaylist(e)}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(4),d=l(i),s=a(3),o=l(s),f=a(5),r=l(f),c=a(1),p=l(c),v=a(2),y=l(v),g=function(){function e(){if(!n.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),l=this.getAttribute("data-amplitude-song-index"),u=this.getAttribute("data-amplitude-location");null==u&&d.default.writeMessage("You must add an 'data-amplitude-location' attribute in seconds to your 'amplitude-skip-to' element."),null==l&&d.default.writeMessage("You must add an 'data-amplitude-song-index' attribute to your 'amplitude-skip-to' element."),null!=u&&null!=l&&(null==e?t(parseInt(l),parseInt(u)):a(e,parseInt(l),parseInt(u)))}}function t(e,t){o.default.changeSong(n.default.songs[e],e),p.default.play(),y.default.syncGlobal(),y.default.syncSong(),p.default.skipToLocation(t)}function a(e,t,a){r.default.newPlaylist(e)&&o.default.setActivePlaylist(e),o.default.changeSongPlaylist(e,n.default.playlists[e].songs[t],t),p.default.play(),y.default.syncGlobal(),y.default.syncPlaylist(),y.default.syncSong(),p.default.skipToLocation(a)}return{handle:e}}();t.default=g,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(23),d=l(i),s=a(14),o=l(s),f=function(){function e(){var e=this.value,i=n.default.audio.duration*(e/100),d=this.getAttribute("data-amplitude-playlist"),s=this.getAttribute("data-amplitude-song-index");null==d&&null==s&&t(i,e),null!=d&&null==s&&a(i,e,d),null==d&&null!=s&&l(i,e,s),null!=d&&null!=s&&u(i,e,d,s)}function t(e,t){n.default.active_metadata.live||(d.default.setCurrentTime(e),o.default.sync(t,n.default.active_playlist,n.default.active_index))}function a(e,t,a){n.default.active_playlist==a&&(n.default.active_metadata.live||(d.default.setCurrentTime(e),o.default.sync(t,a,n.default.active_index)))}function l(e,t,a){n.default.active_index==a&&null==n.default.active_playlist&&(n.default.active_metadata.live||(d.default.setCurrentTime(e),o.default.sync(t,n.default.active_playlist,a)))}function u(e,t,a,l){n.default.playlists[a].active_index==l&&n.default.active_playlist==a&&(n.default.active_metadata.live||(d.default.setCurrentTime(e),o.default.sync(t,a,l)))}return{handle:e}}();t.default=f,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(6),d=(l(i),a(2)),s=l(d),o=a(1),f=l(o),r=function(){function e(){n.default.is_touch_moving||(s.default.syncToPause(),f.default.stop())}return{handle:e}}();t.default=r,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(24),d=l(i),s=a(15),o=l(s),f=a(14),r=l(f),c=a(20),p=l(c),v=a(23),y=l(v),g=a(9),m=(l(g),function(){function e(){t(),d.default.sync(),a(),l()}function t(){if(n.default.audio.buffered.length-1>=0){var e=n.default.audio.buffered.end(n.default.audio.buffered.length-1),t=n.default.audio.duration;n.default.buffered=e/t*100}}function a(){if(!n.default.active_metadata.live){var e=y.default.computeCurrentTimes(),t=y.default.computeSongCompletionPercentage(),a=y.default.computeSongDuration();o.default.syncCurrentTimes(e),r.default.sync(t,n.default.active_playlist,n.default.active_index),p.default.sync(t),o.default.syncDurationTimes(e,a)}}function l(){var e=Math.floor(n.default.audio.currentTime);if(void 0!=n.default.active_metadata.time_callbacks&&void 0!=n.default.active_metadata.time_callbacks[e])n.default.active_metadata.time_callbacks[e].run||(n.default.active_metadata.time_callbacks[e].run=!0,n.default.active_metadata.time_callbacks[e]());else for(var t in n.default.active_metadata.time_callbacks)n.default.active_metadata.time_callbacks.hasOwnProperty(t)&&(n.default.active_metadata.time_callbacks[t].run=!1)}return{handle:e}}());t.default=m,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(10),o=l(s),f=a(11),r=l(f),c=function(){function e(){if(!n.default.is_touch_moving){var e=null;e=n.default.volume-n.default.volume_increment>0?n.default.volume-n.default.volume_increment:0,d.default.setVolume(e),o.default.setMuted(0==n.default.volume),r.default.sync()}}return{handle:e}}();t.default=c,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(10),o=l(s),f=a(11),r=l(f),c=function(){function e(){d.default.setVolume(this.value),o.default.setMuted(0==n.default.volume),r.default.sync()}return{handle:e}}();t.default=c,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(1),d=l(i),s=a(10),o=l(s),f=a(11),r=l(f),c=function(){function e(){if(!n.default.is_touch_moving){var e=null;e=n.default.volume+n.default.volume_increment<=100?n.default.volume+n.default.volume_increment:100,d.default.setVolume(e),o.default.setMuted(0==n.default.volume),r.default.sync()}}return{handle:e}}();t.default=c,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(){var e=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext;e?(u.default.context=new e,u.default.analyser=u.default.context.createAnalyser(),u.default.audio.crossOrigin="anonymous",u.default.source=u.default.context.createMediaElementSource(u.default.audio),u.default.source.connect(u.default.analyser),u.default.analyser.connect(u.default.context.destination)):AmplitudeHelpers.writeDebugMessage("Web Audio API is unavailable! We will set any of your visualizations with your back up definition!")}function t(){var e=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext;return u.default.web_audio_api_available=!1,e?(u.default.web_audio_api_available=!0,!0):(u.default.web_audio_api_available=!1,!1)}function a(){var e=document.querySelectorAll(".amplitude-wave-form"),t=document.querySelectorAll(".amplitude-visualization");return e.length>0||t.length>0}return{configureWebAudioAPI:e,webAudioAPIAvailable:t,determineUsingAnyFX:a}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(21),n=l(u),i=a(0),d=l(i),s=a(1),o=l(s),f=a(13),r=l(f),c=a(6),p=(l(c),a(3)),v=l(p),y=a(12),g=l(y),m=a(5),_=l(m),h=a(16),b=l(h),A=a(19),x=l(A),M=a(8),P=l(M),S=a(14),L=l(S),w=a(20),E=l(w),k=a(15),T=l(k),O=a(2),C=l(O),N=a(7),j=l(N),I=a(18),q=l(I),z=a(4),H=l(z),B=a(17),D=l(B),R=function(){function e(e){n.default.initialize(e)}function t(){return d.default}function a(){n.default.rebindDisplay()}function l(){return d.default.active_playlist}function u(){return d.default.playback_speed}function i(e){o.default.setPlaybackSpeed(e),q.default.sync()}function s(){return d.default.repeat}function f(e){return d.default.playlists[e].repeat}function c(){return d.default.shuffle_on}function p(e){return d.default.playlists[e].shuffle}function y(e){r.default.setShuffle(e),x.default.syncMain()}function m(e,t){r.default.setShufflePlaylist(e,t),x.default.syncMain(),x.default.syncPlaylist(e)}function h(e){g.default.setRepeat(e),P.default.syncRepeat()}function A(e,t){g.default.setRepeatPlaylist(t,e),P.default.syncRepeatPlaylist(e)}function M(e){d.default.is_touch_moving||(g.default.setRepeatSong(!d.default.repeat_song),P.default.syncRepeatSong())}function S(){return d.default.default_album_art}function w(){return d.default.default_playlist_art}function k(e){d.default.default_album_art=e}function O(e){d.default.default_plalist_art=e}function N(){return d.default.audio.currentTime/d.default.audio.duration*100}function I(){return d.default.audio.currentTime}function z(){return d.default.audio.duration}function B(e){"number"==typeof e&&e>0&&e<100&&(d.default.audio.currentTime=d.default.audio.duration*(e/100))}function R(e){d.default.debug=e}function V(){return d.default.active_metadata}function U(){return d.default.playlists[d.default.active_playlist]}function F(e){return d.default.songs[e]}function W(e,t){return d.default.playlists[e].songs[t]}function G(e){return void 0==d.default.songs&&(d.default.songs=[]),d.default.songs.push(e),d.default.shuffle_on&&d.default.shuffle_list.push(e),D.default.isSoundCloudURL(e.url)&&D.default.resolveIndividualStreamableURL(e.url,null,d.default.songs.length-1,d.default.shuffle_on),d.default.songs.length-1}function Y(e){return void 0==d.default.songs&&(d.default.songs=[]),d.default.songs.unshift(e),d.default.shuffle_on&&d.default.shuffle_list.unshift(e),D.default.isSoundCloudURL(e.url)&&D.default.resolveIndividualStreamableURL(e.url,null,d.default.songs.length-1,d.default.shuffle_on),0}function X(e,t){return void 0!=d.default.playlists[t]?(d.default.playlists[t].songs.push(e),d.default.playlists[t].shuffle&&d.default.playlists[t].shuffle_list.push(e),D.default.isSoundCloudURL(e.url)&&D.default.resolveIndividualStreamableURL(e.url,t,d.default.playlists[t].songs.length-1,d.default.playlists[t].shuffle),d.default.playlists[t].songs.length-1):(H.default.writeMessage("Playlist doesn't exist!"),null)}function J(e,t,a){if(void 0==d.default.playlists[e]){d.default.playlists[e]={};var l=["repeat","shuffle","shuffle_list","songs","src"];for(var u in t)l.indexOf(u)<0&&(d.default.playlists[e][u]=t[u]);return d.default.playlists[e].songs=a,d.default.playlists[e].active_index=null,d.default.playlists[e].repeat=!1,d.default.playlists[e].shuffle=!1,d.default.playlists[e].shuffle_list=[],d.default.playlists[e]}return H.default.writeMessage("A playlist already exists with that key!"),null}function $(e){d.default.songs.splice(e,1)}function Q(e,t){void 0!=d.default.playlists[t]&&d.default.playlists[t].songs.splice(e,1)}function K(e){e.url?(d.default.audio.src=e.url,d.default.active_metadata=e,d.default.active_album=e.album):H.default.writeMessage("The song needs to have a URL!"),o.default.play(),C.default.sync(),j.default.displayMetaData(),L.default.resetElements(),E.default.resetElements(),T.default.resetCurrentTimes(),T.default.resetDurationTimes()}function Z(e){o.default.stop(),_.default.newPlaylist(null)&&(v.default.setActivePlaylist(null),v.default.changeSong(d.default.songs[e],e)),_.default.newSong(null,e)&&v.default.changeSong(d.default.songs[e],e),o.default.play(),C.default.sync()}function ee(e,t){o.default.stop(),_.default.newPlaylist(t)&&(v.default.setActivePlaylist(t),v.default.changeSongPlaylist(t,d.default.playlists[t].songs[e],e)),_.default.newSong(t,e)&&v.default.changeSongPlaylist(t,d.default.playlists[t].songs[e],e),C.default.sync(),o.default.play()}function te(){o.default.play()}function ae(){o.default.pause()}function le(){o.default.stop()}function ue(){return d.default.audio}function ne(){return d.default.analyser}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;""==e||null==e?null==d.default.active_playlist||""==d.default.active_playlist?v.default.setNext():v.default.setNextPlaylist(d.default.active_playlist):v.default.setNextPlaylist(e)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;""==e||null==e?null==d.default.active_playlist||""==d.default.active_playlist?v.default.setPrevious():v.default.setPreviousPlaylist(d.default.active_playlist):v.default.setPreviousPlaylist(e)}function se(){return d.default.songs}function oe(e){return d.default.playlists[e].songs}function fe(){return d.default.shuffle_on?d.default.shuffle_list:d.default.songs}function re(e){return d.default.playlists[e].shuffle?d.default.playlists[e].shuffle_list:d.default.playlists[e].songs}function ce(){return parseInt(d.default.active_index)}function pe(){return d.default.version}function ve(){return d.default.buffered}function ye(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e=parseInt(e),null!=a?(_.default.newPlaylist(a)&&v.default.setActivePlaylist(a),v.default.changeSongPlaylist(a,d.default.playlists[a].songs[t],t),o.default.play(),C.default.syncGlobal(),C.default.syncPlaylist(),C.default.syncSong(),o.default.skipToLocation(e)):(v.default.changeSong(d.default.songs[t],t),o.default.play(),C.default.syncGlobal(),C.default.syncSong(),o.default.skipToLocation(e))}function ge(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(""!=a&&null!=a&&void 0!=d.default.playlists[a])for(var l in t)t.hasOwnProperty(l)&&"url"!=l&&"URL"!=l&&"live"!=l&&"LIVE"!=l&&(d.default.playlists[a].songs[e][l]=t[l]);else for(var l in t)t.hasOwnProperty(l)&&"url"!=l&&"URL"!=l&&"live"!=l&&"LIVE"!=l&&(d.default.songs[e][l]=t[l]);j.default.displayMetaData(),j.default.syncMetaData()}function me(e,t){if(void 0!=d.default.playlists[e]){var a=["repeat","shuffle","shuffle_list","songs","src"];for(var l in t)t.hasOwnProperty(l)&&a.indexOf(l)<0&&(d.default.playlists[e][l]=t[l]);j.default.displayPlaylistMetaData()}else H.default.writeMessage("You must provide a valid playlist key!")}function _e(e){d.default.delay=e}function he(){return d.default.delay}function be(){return d.default.player_state}function Ae(e,t){b.default.register(e,t)}function xe(e,t){void 0!=d.default.playlists[e]?void 0!=d.default.visualizations.available[t]?d.default.playlists[e].visualization=t:H.default.writeMessage("A visualization does not exist for the key provided."):H.default.writeMessage("The playlist for the key provided does not exist")}function Me(e,t){d.default.songs[e]?void 0!=d.default.visualizations.available[t]?d.default.songs[e].visualization=t:H.default.writeMessage("A visualization does not exist for the key provided."):H.default.writeMessage("A song at that index is undefined")}function Pe(e,t,a){void 0!=d.default.playlists[e].songs[t]?void 0!=d.default.visualizations.available[a]?d.default.playlists[e].songs[t].visualization=a:H.default.writeMessage("A visualization does not exist for the key provided."):H.default.writeMessage("The song in the playlist at that key is not defined")}function Se(e){void 0!=d.default.visualizations.available[e]?d.default.visualization=e:H.default.writeMessage("A visualization does not exist for the key provided.")}function Le(e){o.default.setVolume(e)}function we(){return d.default.volume}return{init:e,getConfig:t,bindNewElements:a,getActivePlaylist:l,getPlaybackSpeed:u,setPlaybackSpeed:i,getRepeat:s,getRepeatPlaylist:f,getShuffle:c,getShufflePlaylist:p,setShuffle:y,setShufflePlaylist:m,setRepeat:h,setRepeatSong:M,setRepeatPlaylist:A,getDefaultAlbumArt:S,setDefaultAlbumArt:k,getDefaultPlaylistArt:w,setDefaultPlaylistArt:O,getSongPlayedPercentage:N,setSongPlayedPercentage:B,getSongPlayedSeconds:I,getSongDuration:z,setDebug:R,getActiveSongMetadata:V,getActivePlaylistMetadata:U,getSongAtIndex:F,getSongAtPlaylistIndex:W,addSong:G,prependSong:Y,addSongToPlaylist:X,removeSong:$,removeSongFromPlaylist:Q,playNow:K,playSongAtIndex:Z,playPlaylistSongAtIndex:ee,play:te,pause:ae,stop:le,getAudio:ue,getAnalyser:ne,next:ie,prev:de,getSongs:se,getSongsInPlaylist:oe,getSongsState:fe,getSongsStatePlaylist:re,getActiveIndex:ce,getVersion:pe,getBuffered:ve,skipTo:ye,setSongMetaData:ge,setPlaylistMetaData:me,setDelay:_e,getDelay:he,getPlayerState:be,addPlaylist:J,registerVisualization:Ae,setPlaylistVisualization:xe,setSongVisualization:Me,setSongInPlaylistVisualization:Pe,setGlobalVisualization:Se,getVolume:we,setVolume:Le}}();t.default=R,e.exports=t.default},function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var u=a(0),n=l(u),i=a(4),d=l(i),s=a(5),o=l(s),f=a(7),r=l(f),c=a(17),p=l(c),v=function(){function e(e){n.default.playlists=e,a(),l(),t(),u(),i(),s(),f()}function t(){for(var e in n.default.playlists)n.default.playlists[e].active_index=null}function a(){for(var e in n.default.playlists)if(n.default.playlists.hasOwnProperty(e)&&n.default.playlists[e].songs)for(var t=0;t<n.default.playlists[e].songs.length;t++)o.default.isInt(n.default.playlists[e].songs[t])&&(n.default.playlists[e].songs[t]=n.default.songs[n.default.playlists[e].songs[t]],n.default.playlists[e].songs[t].index=t),o.default.isInt(n.default.playlists[e].songs[t])&&!n.default.songs[n.default.playlists[e].songs[t]]&&d.default.writeMessage("The song index: "+n.default.playlists[e].songs[t]+" in playlist with key: "+e+" is not defined in your songs array!"),o.default.isInt(n.default.playlists[e].songs[t])||(n.default.playlists[e].songs[t].index=t)}function l(){for(var e in n.default.playlists)if(n.default.playlists.hasOwnProperty(e))for(var t=0;t<n.default.playlists[e].songs.length;t++)p.default.isSoundCloudURL(n.default.playlists[e].songs[t].url)&&void 0==n.default.playlists[e].songs[t].soundcloud_data&&p.default.resolveIndividualStreamableURL(n.default.playlists[e].songs[t].url,e,t)}function u(){for(var e in n.default.playlists)n.default.playlists[e].shuffle=!1}function i(){for(var e in n.default.playlists)n.default.playlists[e].repeat=!1}function s(){for(var e in n.default.playlists)n.default.playlists[e].shuffle_list=[]}function f(){for(var e in n.default.playlists)r.default.setFirstSongInPlaylist(n.default.playlists[e].songs[0],e)}return{initialize:e}}();t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){for(var t=document.getElementsByClassName("amplitude-song-container"),a=0;a<t.length;a++)t[a].classList.remove("amplitude-active-song-container");if(""==u.default.active_playlist||null==u.default.active_playlist){var l="";if(l=e?u.default.active_index:u.default.shuffle_on?u.default.shuffle_list[u.default.active_index].index:u.default.active_index,document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+l+'"]'))for(var n=document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+l+'"]'),i=0;i<n.length;i++)n[i].hasAttribute("data-amplitude-playlist")||n[i].classList.add("amplitude-active-song-container")}else{if(null!=u.default.active_playlist&&""!=u.default.active_playlist||e)var d=u.default.playlists[u.default.active_playlist].active_index;else{var d="";d=u.default.playlists[u.default.active_playlist].shuffle?u.default.playlists[u.default.active_playlist].shuffle_list[u.default.playlists[u.default.active_playlist].active_index].index:u.default.playlists[u.default.active_playlist].active_index}if(document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+d+'"][data-amplitude-playlist="'+u.default.active_playlist+'"]'))for(var s=document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+d+'"][data-amplitude-playlist="'+u.default.active_playlist+'"]'),o=0;o<s.length;o++)s[o].classList.add("amplitude-active-song-container")}}return{setActive:e}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-current-hours"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-hours[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-current-hours"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-current-minutes"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-current-minutes"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-current-seconds"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-current-seconds"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){var t=document.querySelectorAll(".amplitude-current-time"),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++){var u=t[l].getAttribute("data-amplitude-playlist"),n=t[l].getAttribute("data-amplitude-song-index");null==u&&null==n&&(t[l].innerHTML=a)}}function a(e){var t=document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++){null==t[l].getAttribute("data-amplitude-song-index")&&(t[l].innerHTML=a)}}function l(e){if(null==u.default.active_playlist){var t=document.querySelectorAll('.amplitude-current-time[data-amplitude-song-index="'+u.default.active_index+'"]'),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++){null==t[l].getAttribute("data-amplitude-playlist")&&(t[l].innerHTML=a)}}}function n(e){var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=e.minutes+":"+e.seconds;e.hours>0&&(l=e.hours+":"+l);for(var n=0;n<a.length;n++)a[n].innerHTML=l}function i(){for(var e=document.querySelectorAll(".amplitude-current-time"),t=0;t<e.length;t++)e[t].innerHTML="00:00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e,u){var i=d(e,u);t(i),a(i),l(i),n(i)}function t(e){for(var t=document.querySelectorAll(".amplitude-time-remaining"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-time-remaining"),t=0;t<e.length;t++)e[t].innerHTML="00"}function d(e,t){var a="00:00",l=parseInt(e.seconds)+60*parseInt(e.minutes)+60*parseInt(e.hours)*60,u=parseInt(t.seconds)+60*parseInt(t.minutes)+60*parseInt(t.hours)*60;if(!isNaN(l)&&!isNaN(u)){var n=u-l,i=Math.floor(n/3600),d=Math.floor((n-3600*i)/60),s=n-3600*i-60*d;a=(d<10?"0"+d:d)+":"+(s<10?"0"+s:s),i>0&&(a=i+":"+a)}return a}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-duration-hours"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-duration-hours"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-duration-minutes"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-duration-minutes"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){t(e),a(e),l(e),n(e)}function t(e){for(var t=document.querySelectorAll(".amplitude-duration-seconds"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data--amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-duration-seconds"),t=0;t<e.length;t++)e[t].innerHTML="00"}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(0),u=function(e){return e&&e.__esModule?e:{default:e}}(l),n=function(){function e(e){var u=d(e);t(u),a(u),l(u),n(u)}function t(e){for(var t=document.querySelectorAll(".amplitude-duration-time"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}function a(e){for(var t=document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="'+u.default.active_playlist+'"]'),a=0;a<t.length;a++){null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}}function l(e){if(null==u.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-time[data-amplitude-song-index="'+u.default.active_index+'"]'),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist");null==l&&(t[a].innerHTML=e)}}function n(e){for(var t=""!=u.default.active_playlist&&null!=u.default.active_playlist?u.default.playlists[u.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="'+u.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}function i(){for(var e=document.querySelectorAll(".amplitude-duration-time"),t=0;t<e.length;t++)e[t].innerHTML="00:00"}function d(e){var t="00:00";return isNaN(e.minutes)||isNaN(e.seconds)||(t=e.minutes+":"+e.seconds,!isNaN(e.hours)&&e.hours>0&&(t=e.hours+":"+t)),t}return{sync:e,resetTimes:i}}();t.default=n,e.exports=t.default},function(e,t){e.exports={name:"amplitudejs",version:"5.3.2",description:"A JavaScript library that allows you to control the design of your media controls in your webpage -- not the browser. No dependencies (jQuery not required) https://521dimensions.com/open-source/amplitudejs",main:"dist/amplitude.js",devDependencies:{"babel-core":"^6.26.3","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"0.2.1","babel-polyfill":"^6.26.0","babel-preset-es2015":"^6.18.0",husky:"^1.3.1",jest:"^23.6.0",prettier:"1.15.1","pretty-quick":"^1.11.1",watch:"^1.0.2",webpack:"^2.7.0"},directories:{doc:"docs"},files:["dist"],funding:{type:"opencollective",url:"https://opencollective.com/amplitudejs"},scripts:{build:"node_modules/.bin/webpack",prettier:"npx pretty-quick",preversion:"npx pretty-quick && npm run test",postversion:"git push && git push --tags",test:"jest",version:"npm run build && git add -A dist"},repository:{type:"git",url:"git+https://github.com/521dimensions/amplitudejs.git"},keywords:["webaudio","html5","javascript","audio-player"],author:"521 Dimensions (https://521dimensions.com)",license:"MIT",bugs:{url:"https://github.com/521dimensions/amplitudejs/issues"},homepage:"https://github.com/521dimensions/amplitudejs#readme"}}])});
|
20
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Amplitude",[],t):"object"==typeof exports?exports.Amplitude=t():e.Amplitude=t()}(this,(function(){return function(e){var t={};function a(l){if(t[l])return t[l].exports;var u=t[l]={i:l,l:!1,exports:{}};return e[l].call(u.exports,u,u.exports,a),u.l=!0,u.exports}return a.m=e,a.c=t,a.i=function(e){return e},a.d=function(e,t,l){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:l})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=47)}([function(e,t,a){"use strict";var l=a(59);e.exports={version:l.version,audio:new Audio,active_metadata:{},active_album:"",active_index:0,active_playlist:null,playback_speed:1,callbacks:{},songs:[],playlists:{},start_song:"",starting_playlist:"",starting_playlist_song:"",repeat:!1,repeat_song:!1,shuffle_list:{},shuffle_on:!1,default_album_art:"",default_playlist_art:"",debug:!1,volume:.5,pre_mute_volume:.5,volume_increment:5,volume_decrement:5,soundcloud_client:"",soundcloud_use_art:!1,soundcloud_song_count:0,soundcloud_songs_ready:0,is_touch_moving:!1,buffered:0,bindings:{},continue_next:!0,delay:0,player_state:"stopped",web_audio_api_available:!1,context:null,source:null,analyser:null,visualizations:{available:[],active:[],backup:""},waveforms:{sample_rate:100,built:[]}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=s(a(0)),u=(s(a(5)),s(a(3)),s(a(2)),s(a(7)),s(a(9))),n=s(a(4)),i=s(a(16)),d=s(a(6));function s(e){return e&&e.__esModule?e:{default:e}}var o=function(){function e(){l.default.audio.src="",l.default.audio.load()}function t(){l.default.audio.src=l.default.active_metadata.url,l.default.audio.load()}return{play:function(){i.default.stop(),i.default.run(),l.default.active_metadata.live&&t(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&!l.default.paused&&t();var e=l.default.audio.play();void 0!==e&&e.then((function(e){})).catch((function(e){})),l.default.audio.play(),l.default.audio.playbackRate=l.default.playback_speed,d.default.setPlayerState()},pause:function(){i.default.stop(),l.default.audio.pause(),l.default.paused=!0,l.default.active_metadata.live&&e(),d.default.setPlayerState()},stop:function(){i.default.stop(),0!=l.default.audio.currentTime&&(l.default.audio.currentTime=0),l.default.audio.pause(),l.default.active_metadata.live&&e(),d.default.setPlayerState(),u.default.run("stop")},setVolume:function(e){l.default.audio.muted=0==e,l.default.volume=e,l.default.audio.volume=e/100},setSongLocation:function(e){l.default.active_metadata.live||(l.default.audio.currentTime=l.default.audio.duration*(e/100))},skipToLocation:function(e){l.default.audio.addEventListener("canplaythrough",(function(){l.default.audio.duration>=e&&e>0?l.default.audio.currentTime=e:n.default.writeMessage("Amplitude can't skip to a location greater than the duration of the audio or less than 0")}),{once:!0})},disconnectStream:e,reconnectStream:t,setPlaybackSpeed:function(e){l.default.playback_speed=e,l.default.audio.playbackRate=l.default.playback_speed}}}();t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i=function(){function e(){for(var e=n.default.audio.paused?"paused":"playing",t=document.querySelectorAll(".amplitude-play-pause"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),d=t[a].getAttribute("data-amplitude-song-index");if(null==l&&null==d)switch(e){case"playing":u(t[a]);break;case"paused":i(t[a])}}}function t(){for(var e=n.default.audio.paused?"paused":"playing",t=document.querySelectorAll('.amplitude-play-pause[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++){if(null==t[a].getAttribute("data-amplitude-song-index"))switch(e){case"playing":u(t[a]);break;case"paused":i(t[a])}}}function a(){for(var e=n.default.audio.paused?"paused":"playing",t=document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++){if(null==t[a].getAttribute("data-amplitude-playlist"))switch(e){case"playing":u(t[a]);break;case"paused":i(t[a])}}}function l(){for(var e=n.default.audio.paused?"paused":"playing",t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-play-pause[data-amplitude-song-index="'+t+'"][data-amplitude-playlist="'+n.default.active_playlist+'"]'),l=0;l<a.length;l++)switch(e){case"playing":u(a[l]);break;case"paused":i(a[l])}}function u(e){e.classList.add("amplitude-playing"),e.classList.remove("amplitude-paused")}function i(e){e.classList.remove("amplitude-playing"),e.classList.add("amplitude-paused")}return{sync:function(){e(),t(),a(),l()},syncGlobal:e,syncPlaylist:t,syncSong:a,syncSongInPlaylist:l,syncToPause:function(){for(var e=document.querySelectorAll(".amplitude-play-pause"),t=0;t<e.length;t++)i(e[t])}}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=p(a(0)),u=p(a(1)),n=p(a(9)),i=p(a(5)),d=p(a(2)),s=p(a(14)),o=p(a(20)),f=p(a(15)),r=p(a(7)),c=p(a(49));function p(e){return e&&e.__esModule?e:{default:e}}var v=function(){function e(e,t){var u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];a(e),l.default.audio.src=e.url,l.default.active_metadata=e,l.default.active_album=e.album,l.default.active_index=parseInt(t),p(u)}function t(e,t,u){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];a(t),l.default.audio.src=t.url,l.default.active_metadata=t,l.default.active_album=t.album,l.default.active_index=null,l.default.playlists[e].active_index=parseInt(u),p(n)}function a(e){u.default.stop(),d.default.syncToPause(),s.default.resetElements(),o.default.resetElements(),f.default.resetCurrentTimes(),i.default.newAlbum(e)&&n.default.run("album_change")}function p(e){r.default.displayMetaData(),c.default.setActive(e),f.default.resetDurationTimes(),n.default.run("song_change")}function v(e){l.default.active_playlist!=e&&(n.default.run("playlist_changed"),l.default.active_playlist=e,null!=e&&(l.default.playlists[e].active_index=0))}return{setNext:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=null,i={},s=!1;l.default.repeat_song?l.default.shuffle_on?(a=l.default.shuffle_list[l.default.active_index].index,i=l.default.shuffle_list[a]):(a=l.default.active_index,i=l.default.songs[a]):l.default.shuffle_on?(parseInt(l.default.active_index)+1<l.default.shuffle_list.length?a=parseInt(l.default.active_index)+1:(a=0,s=!0),i=l.default.shuffle_list[a]):(parseInt(l.default.active_index)+1<l.default.songs.length?a=parseInt(l.default.active_index)+1:(a=0,s=!0),i=l.default.songs[a]),e(i,a),s&&!l.default.repeat||t&&!l.default.repeat&&s||u.default.play(),d.default.sync(),n.default.run("next"),l.default.repeat_song&&n.default.run("song_repeated")},setNextPlaylist:function(e){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=null,s={},o=!1;l.default.repeat_song?l.default.playlists[e].shuffle?(i=l.default.playlists[e].active_index,s=l.default.playlists[e].shuffle_list[i]):(i=l.default.playlists[e].active_index,s=l.default.playlists[e].songs[i]):l.default.playlists[e].shuffle?(parseInt(l.default.playlists[e].active_index)+1<l.default.playlists[e].shuffle_list.length?i=l.default.playlists[e].active_index+1:(i=0,o=!0),s=l.default.playlists[e].shuffle_list[i]):(parseInt(l.default.playlists[e].active_index)+1<l.default.playlists[e].songs.length?i=parseInt(l.default.playlists[e].active_index)+1:(i=0,o=!0),s=l.default.playlists[e].songs[i]),v(e),t(e,s,i),o&&!l.default.repeat||a&&!l.default.repeat&&o||u.default.play(),d.default.sync(),n.default.run("next"),l.default.repeat_song&&n.default.run("song_repeated")},setPrevious:function(){var t=null,a={};l.default.repeat_song?l.default.shuffle_on?(t=l.default.active_index,a=l.default.shuffle_list[t]):(t=l.default.active_index,a=l.default.songs[t]):(t=parseInt(l.default.active_index)-1>=0?parseInt(l.default.active_index-1):parseInt(l.default.songs.length-1),a=l.default.shuffle_on?l.default.shuffle_list[t]:l.default.songs[t]),e(a,t),u.default.play(),d.default.sync(),n.default.run("prev"),l.default.repeat_song&&n.default.run("song_repeated")},setPreviousPlaylist:function(e){var a=null,i={};l.default.repeat_song?l.default.playlists[e].shuffle?(a=l.default.playlists[e].active_index,i=l.default.playlists[e].shuffle_list[a]):(a=l.default.playlists[e].active_index,i=l.default.playlists[e].songs[a]):(a=parseInt(l.default.playlists[e].active_index)-1>=0?parseInt(l.default.playlists[e].active_index-1):parseInt(l.default.playlists[e].songs.length-1),i=l.default.playlists[e].shuffle?l.default.playlists[e].shuffle_list[a]:l.default.playlists[e].songs[a]),v(e),t(e,i,a),u.default.play(),d.default.sync(),n.default.run("prev"),l.default.repeat_song&&n.default.run("song_repeated")},changeSong:e,changeSongPlaylist:t,setActivePlaylist:v}}();t.default=v,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={writeMessage:function(e){n.default.debug&&console.log(e)}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={newSong:function(e,t){return n.default.active_playlist!=e||(null==n.default.active_playlist&&null==e?n.default.active_index!=t:n.default.active_playlist==e&&n.default.playlists[e].active_index!=t)},newAlbum:function(e){return n.default.active_album!=e},newPlaylist:function(e){return n.default.active_playlist!=e},isURL:function(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)},isInt:function(e){return!isNaN(e)&&parseInt(Number(e))==e&&!isNaN(parseInt(e,10))}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={resetConfig:function(){n.default.audio=new Audio,n.default.active_metadata={},n.default.active_album="",n.default.active_index=0,n.default.active_playlist=null,n.default.playback_speed=1,n.default.callbacks={},n.default.songs=[],n.default.playlists={},n.default.start_song="",n.default.starting_playlist="",n.default.starting_playlist_song="",n.default.repeat=!1,n.default.shuffle_list={},n.default.shuffle_on=!1,n.default.default_album_art="",n.default.default_playlist_art="",n.default.debug=!1,n.default.volume=.5,n.default.pre_mute_volume=.5,n.default.volume_increment=5,n.default.volume_decrement=5,n.default.soundcloud_client="",n.default.soundcloud_use_art=!1,n.default.soundcloud_song_count=0,n.default.soundcloud_songs_ready=0,n.default.continue_next=!0},setPlayerState:function(){n.default.audio.paused&&0==n.default.audio.currentTime&&(n.default.player_state="stopped"),n.default.audio.paused&&n.default.audio.currentTime>0&&(n.default.player_state="paused"),n.default.audio.paused||(n.default.player_state="playing")}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i=function(){function e(){for(var e=["image_url"],t=document.querySelectorAll("[data-amplitude-playlist-info]"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist-info"),u=t[a].getAttribute("data-amplitude-playlist");null!=n.default.playlists[u][l]?e.indexOf(l)>=0?t[a].setAttribute("src",n.default.playlists[u][l]):t[a].innerHTML=n.default.playlists[u][l]:e.indexOf(l)>=0?""!=n.default.default_playlist_art?t[a].setAttribute("src",n.default.default_playlist_art):t[a].setAttribute("src",""):t[a].innerHTML=""}}return{displayMetaData:function(){for(var e=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],t=document.querySelectorAll("[data-amplitude-song-info]"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-song-info"),u=t[a].getAttribute("data-amplitude-playlist"),i=t[a].getAttribute("data-amplitude-song-index");if(null==i&&(n.default.active_playlist==u||null==u&&null==i)){var d=null!=n.default.active_metadata[l]?n.default.active_metadata[l]:null;e.indexOf(l)>=0?(d=d||n.default.default_album_art,t[a].setAttribute("src",d)):(d=d||"",t[a].innerHTML=d)}}},setFirstSongInPlaylist:function(e,t){for(var a=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],l=document.querySelectorAll('[data-amplitude-song-info][data-amplitude-playlist="'+t+'"]'),u=0;u<l.length;u++){var n=l[u].getAttribute("data-amplitude-song-info");l[u].getAttribute("data-amplitude-playlist")==t&&(null!=e[n]?a.indexOf(n)>=0?l[u].setAttribute("src",e[n]):l[u].innerHTML=e[n]:a.indexOf(n)>=0?""!=e.default_album_art?l[u].setAttribute("src",e.default_album_art):l[u].setAttribute("src",""):l[u].innerHTML="")}},syncMetaData:function(){for(var t=["cover_art_url","station_art_url","podcast_episode_cover_art_url"],a=document.querySelectorAll("[data-amplitude-song-info]"),l=0;l<a.length;l++){var u=a[l].getAttribute("data-amplitude-song-index"),i=a[l].getAttribute("data-amplitude-playlist");if(null!=u&&null==i){var d=a[l].getAttribute("data-amplitude-song-info"),s=null!=n.default.songs[u][d]?n.default.songs[u][d]:null;t.indexOf(d)>=0?(s=s||n.default.default_album_art,a[l].setAttribute("src",s)):a[l].innerHTML=s}if(null!=u&&null!=i){var o=a[l].getAttribute("data-amplitude-song-info");null!=n.default.playlists[i].songs[u][o]&&(t.indexOf(o)>=0?a[l].setAttribute("src",n.default.playlists[i].songs[u][o]):a[l].innerHTML=n.default.playlists[i].songs[u][o])}}e()},displayPlaylistMetaData:e}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={syncRepeat:function(){for(var e=document.getElementsByClassName("amplitude-repeat"),t=0;t<e.length;t++)n.default.repeat?(e[t].classList.add("amplitude-repeat-on"),e[t].classList.remove("amplitude-repeat-off")):(e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"))},syncRepeatPlaylist:function(e){for(var t=document.getElementsByClassName("amplitude-repeat"),a=0;a<t.length;a++)t[a].getAttribute("data-amplitude-playlist")==e&&(n.default.playlists[e].repeat?(t[a].classList.add("amplitude-repeat-on"),t[a].classList.remove("amplitude-repeat-off")):(t[a].classList.add("amplitude-repeat-off"),t[a].classList.remove("amplitude-repeat-on")))},syncRepeatSong:function(){for(var e=document.getElementsByClassName("amplitude-repeat-song"),t=0;t<e.length;t++)n.default.repeat_song?(e[t].classList.add("amplitude-repeat-song-on"),e[t].classList.remove("amplitude-repeat-song-off")):(e[t].classList.remove("amplitude-repeat-song-on"),e[t].classList.add("amplitude-repeat-song-off"))}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(a(0)),u=n(a(4));function n(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e){if(l.default.callbacks[e]){var t=l.default.callbacks[e];u.default.writeMessage("Running Callback: "+e);try{t()}catch(e){if("CANCEL EVENT"==e.message)throw e;u.default.writeMessage("Callback error: "+e.message)}}}return{initialize:function(){l.default.audio.addEventListener("abort",(function(){e("abort")})),l.default.audio.addEventListener("error",(function(){e("error")})),l.default.audio.addEventListener("loadeddata",(function(){e("loadeddata")})),l.default.audio.addEventListener("loadedmetadata",(function(){e("loadedmetadata")})),l.default.audio.addEventListener("loadstart",(function(){e("loadstart")})),l.default.audio.addEventListener("pause",(function(){e("pause")})),l.default.audio.addEventListener("playing",(function(){e("playing")})),l.default.audio.addEventListener("play",(function(){e("play")})),l.default.audio.addEventListener("progress",(function(){e("progress")})),l.default.audio.addEventListener("ratechange",(function(){e("ratechange")})),l.default.audio.addEventListener("seeked",(function(){e("seeked")})),l.default.audio.addEventListener("seeking",(function(){e("seeking")})),l.default.audio.addEventListener("stalled",(function(){e("stalled")})),l.default.audio.addEventListener("suspend",(function(){e("suspend")})),l.default.audio.addEventListener("timeupdate",(function(){e("timeupdate")})),l.default.audio.addEventListener("volumechange",(function(){e("volumechange")})),l.default.audio.addEventListener("waiting",(function(){e("waiting")})),l.default.audio.addEventListener("canplay",(function(){e("canplay")})),l.default.audio.addEventListener("canplaythrough",(function(){e("canplaythrough")})),l.default.audio.addEventListener("durationchange",(function(){e("durationchange")})),l.default.audio.addEventListener("ended",(function(){e("ended")}))},run:e}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={setMuted:function(e){for(var t=document.getElementsByClassName("amplitude-mute"),a=0;a<t.length;a++)e?(t[a].classList.remove("amplitude-not-muted"),t[a].classList.add("amplitude-muted")):(t[a].classList.add("amplitude-not-muted"),t[a].classList.remove("amplitude-muted"))}};t.default=l,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(){for(var e=document.getElementsByClassName("amplitude-volume-slider"),t=0;t<e.length;t++)e[t].value=100*n.default.audio.volume}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={setRepeat:function(e){n.default.repeat=e},setRepeatPlaylist:function(e,t){n.default.playlists[t].repeat=e},setRepeatSong:function(e){n.default.repeat_song=e}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i=function(){function e(){for(var e=new Array(n.default.songs.length),t=0;t<n.default.songs.length;t++)e[t]=n.default.songs[t];for(var l=n.default.songs.length-1;l>0;l--){a(e,l,Math.floor(Math.random()*n.default.songs.length+1)-1)}n.default.shuffle_list=e}function t(e){for(var t=new Array(n.default.playlists[e].songs.length),l=0;l<n.default.playlists[e].songs.length;l++)t[l]=n.default.playlists[e].songs[l];for(var u=n.default.playlists[e].songs.length-1;u>0;u--){a(t,u,Math.floor(Math.random()*n.default.playlists[e].songs.length+1)-1)}n.default.playlists[e].shuffle_list=t}function a(e,t,a){var l=e[t];e[t]=e[a],e[a]=l}return{setShuffle:function(t){n.default.shuffle_on=t,t?e():n.default.shuffle_list=[]},toggleShuffle:function(){n.default.shuffle_on?(n.default.shuffle_on=!1,n.default.shuffle_list=[]):(n.default.shuffle_on=!0,e())},setShufflePlaylist:function(e,a){n.default.playlists[e].shuffle=a,n.default.playlists[e].shuffle?t(e):n.default.playlists[e].shuffle_list=[]},toggleShufflePlaylist:function(e){n.default.playlists[e].shuffle?(n.default.playlists[e].shuffle=!1,n.default.playlists[e].shuffle_list=[]):(n.default.playlists[e].shuffle=!0,t(e))},shuffleSongs:e,shufflePlaylistSongs:t}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i=function(){function e(e){e=isNaN(e)?0:e;for(var t=document.querySelectorAll(".amplitude-song-slider"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].value=e)}}function t(e,t){e=isNaN(e)?0:e;for(var a=document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="'+t+'"]'),l=0;l<a.length;l++){var u=a[l].getAttribute("data-amplitude-playlist"),n=a[l].getAttribute("data-amplitude-song-index");u==t&&null==n&&(a[l].value=e)}}function a(e,t){if(null==n.default.active_playlist){e=isNaN(e)?0:e;for(var a=document.querySelectorAll('.amplitude-song-slider[data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++){var u=a[l].getAttribute("data-amplitude-playlist"),i=a[l].getAttribute("data-amplitude-song-index");null==u&&i==t&&(a[l].value=e)}}}function l(e,t){e=isNaN(e)?0:e;for(var a=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,l=document.querySelectorAll('.amplitude-song-slider[data-amplitude-playlist="'+t+'"][data-amplitude-song-index="'+a+'"]'),u=0;u<l.length;u++)l[u].value=e}return{sync:function(u,n,i){e(u),t(u,n),a(u,i),l(u,n)},syncMain:e,syncPlaylist:t,syncSong:a,syncSongInPlaylist:l,resetElements:function(){for(var e=document.getElementsByClassName("amplitude-song-slider"),t=0;t<e.length;t++)e[t].value=0}}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=c(a(53)),u=c(a(50)),n=c(a(51)),i=c(a(52)),d=c(a(54)),s=c(a(55)),o=c(a(56)),f=c(a(57)),r=c(a(58));function c(e){return e&&e.__esModule?e:{default:e}}var p={resetCurrentTimes:function(){l.default.resetTimes(),u.default.resetTimes(),n.default.resetTimes(),i.default.resetTimes()},syncCurrentTimes:function(e){l.default.sync(e),u.default.sync(e.hours),n.default.sync(e.minutes),i.default.sync(e.seconds)},resetDurationTimes:function(){d.default.resetTimes(),s.default.resetTimes(),o.default.resetTimes(),f.default.resetTimes(),r.default.resetTimes()},syncDurationTimes:function(e,t){d.default.sync(e,t),r.default.sync(t),s.default.sync(t.hours),o.default.sync(t.minutes),f.default.sync(t.seconds)}};t.default=p,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=u(a(0));u(a(4));function u(e){return e&&e.__esModule?e:{default:e}}var n=function(){function e(e){var t=l.default.visualization,a=null!=l.default.active_index?l.default.songs[l.default.active_index].visualization:l.default.playlists[l.default.active_playlist].songs[l.default.playlists[l.default.active_playlist].active_index].visualization;if(null!=a&&null!=l.default.visualizations.available[a])n(a,e);else if(null!=t&&null!=l.default.visualizations.available[t])n(t,e);else{var u=Object.keys(l.default.visualizations.available).length>0?Object.keys(l.default.visualizations.available)[0]:null;null!=u&&n(u,e)}}function t(e,t){if(t==l.default.active_playlist){var a=l.default.playlists[l.default.active_playlist].songs[l.default.playlists[l.default.active_playlist].active_index].visualization,u=l.default.playlists[l.default.active_playlist].visualization,i=l.default.visualization;if(null!=a&&null!=l.default.visualizations.available[a])n(a,e);else if(null!=u&&null!=l.default.visualizations.available[u])n(u,e);else if(null!=i&&null!=l.default.visualizations.available[i])n(i,e);else{var d=Object.keys(l.default.visualizations.available).length>0?Object.keys(l.default.visualizations.available)[0]:null;null!=d&&n(d,e)}}}function a(e,t){if(t==l.default.active_index){var a=l.default.songs[l.default.active_index].visualization,u=l.default.visualization;if(null!=a&&null!=l.default.visualizations.available[a])n(a,e);else if(null!=u&&null!=l.default.visualizations.available[u])n(u,e);else{var i=Object.keys(l.default.visualizations.available).length>0?Object.keys(l.default.visualizations.available)[0]:null;null!=i&&n(i,e)}}}function u(e,t,a){if(t==l.default.active_playlist&&l.default.playlists[t].active_index==a){var u=l.default.playlists[l.default.active_playlist].songs[l.default.playlists[l.default.active_playlist].active_index].visualization,i=l.default.playlists[l.default.active_playlist].visualization,d=l.default.visualization;if(null!=u&&null!=l.default.visualizations.available[u])n(u,e);else if(null!=i&&null!=l.default.visualizations.available[i])n(i,e);else if(null!=d&&null!=l.default.visualizations.available[d])n(d,e);else{var s=Object.keys(l.default.visualizations.available).length>0?Object.keys(l.default.visualizations.available)[0]:null;null!=s&&n(s,e)}}}function n(e,t){var a=new l.default.visualizations.available[e].object;a.setPreferences(l.default.visualizations.available[e].preferences),a.startVisualization(t),l.default.visualizations.active.push(a)}function i(e){e.style.backgroundImage="url("+l.default.active_metadata.cover_art_url+")"}function d(e,t){l.default.active_playlist==t&&(e.style.backgroundImage="url("+l.default.active_metadata.cover_art_url+")")}function s(e,t){l.default.active_index==t&&(e.style.backgroundImage="url("+l.default.active_metadata.cover_art_url+")")}function o(e,t,a){l.default.active_playlist==t&&l.default.playlists[active_playlist].active_index==a&&(e.style.backgroundImage="url("+l.default.active_metadata.cover_art_url+")")}return{run:function(){var n=document.querySelectorAll(".amplitude-visualization");if(l.default.web_audio_api_available){if(Object.keys(l.default.visualizations.available).length>0&&n.length>0)for(var f=0;f<n.length;f++){var r=n[f].getAttribute("data-amplitude-playlist"),c=n[f].getAttribute("data-amplitude-song-index");null==r&&null==c&&e(n[f]),null!=r&&null==c&&t(n[f],r),null==r&&null!=c&&a(n[f],c),null!=r&&null!=c&&u(n[f],r,c)}}else!function(){var e=document.querySelectorAll(".amplitude-visualization");if(e.length>0)for(var t=0;t<e.length;t++){var a=e[t].getAttribute("data-amplitude-playlist"),l=e[t].getAttribute("data-amplitude-song-index");null==a&&null==l&&i(e[t]),null!=a&&null==l&&d(e[t],a),null==a&&null!=l&&s(e[t],l),null!=a&&null!=l&&o(e[t],a,l)}}()},stop:function(){for(var e=0;e<l.default.visualizations.active.length;e++)l.default.visualizations.active[e].stopVisualization();l.default.visualizations.active=[]},register:function(e,t){var a=new e;l.default.visualizations.available[a.getID()]=new Array,l.default.visualizations.available[a.getID()].object=e,l.default.visualizations.available[a.getID()].preferences=t}}}();t.default=n,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(a(0)),u=n(a(21));function n(e){return e&&e.__esModule?e:{default:e}}var i=function(){var e={};function t(){SC.initialize({client_id:l.default.soundcloud_client}),function(){for(var e=/^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/,t=0;t<l.default.songs.length;t++)l.default.songs[t].url.match(e)&&(l.default.soundcloud_song_count++,a(l.default.songs[t].url,t))}()}function a(t,a){SC.get("/resolve/?url="+t,(function(t){t.streamable?(l.default.songs[a].url=t.stream_url+"?client_id="+l.default.soundcloud_client,l.default.soundcloud_use_art&&(l.default.songs[a].cover_art_url=t.artwork_url),l.default.songs[a].soundcloud_data=t):AmplitudeHelpers.writeDebugMessage(l.default.songs[a].name+" by "+l.default.songs[a].artist+" is not streamable by the Soundcloud API"),l.default.soundcloud_songs_ready++,l.default.soundcloud_songs_ready==l.default.soundcloud_song_count&&u.default.setConfig(e)}))}return{loadSoundCloud:function(a){e=a;var l=document.getElementsByTagName("head")[0],u=document.createElement("script");u.type="text/javascript",u.src="https://connect.soundcloud.com/sdk.js",u.onreadystatechange=t,u.onload=t,l.appendChild(u)},resolveIndividualStreamableURL:function(e,t,a){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];SC.get("/resolve/?url="+e,(function(e){e.streamable?null!=t?(l.default.playlists[t].songs[a].url=e.stream_url+"?client_id="+l.default.soundcloud_client,u&&(l.default.playlists[t].shuffle_list[a].url=e.stream_url+"?client_id="+l.default.soundcloud_client),l.default.soundcloud_use_art&&(l.default.playlists[t].songs[a].cover_art_url=e.artwork_url,u&&(l.default.playlists[t].shuffle_list[a].cover_art_url=e.artwork_url)),l.default.playlists[t].songs[a].soundcloud_data=e,u&&(l.default.playlists[t].shuffle_list[a].soundcloud_data=e)):(l.default.songs[a].url=e.stream_url+"?client_id="+l.default.soundcloud_client,u&&(l.default.shuffle_list[a].stream_url,l.default.soundcloud_client),l.default.soundcloud_use_art&&(l.default.songs[a].cover_art_url=e.artwork_url,u&&(l.default.shuffle_list[a].cover_art_url=e.artwork_url)),l.default.songs[a].soundcloud_data=e,u&&(l.default.shuffle_list[a].soundcloud_data=e)):null!=t?AmplitudeHelpers.writeDebugMessage(l.default.playlists[t].songs[a].name+" by "+l.default.playlists[t].songs[a].artist+" is not streamable by the Soundcloud API"):AmplitudeHelpers.writeDebugMessage(l.default.songs[a].name+" by "+l.default.songs[a].artist+" is not streamable by the Soundcloud API")}))},isSoundCloudURL:function(e){return e.match(/^https?:\/\/(soundcloud.com|snd.sc)\/(.*)$/)}}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(){for(var e=document.getElementsByClassName("amplitude-playback-speed"),t=0;t<e.length;t++)switch(e[t].classList.remove("amplitude-playback-speed-10"),e[t].classList.remove("amplitude-playback-speed-15"),e[t].classList.remove("amplitude-playback-speed-20"),n.default.playback_speed){case 1:e[t].classList.add("amplitude-playback-speed-10");break;case 1.5:e[t].classList.add("amplitude-playback-speed-15");break;case 2:e[t].classList.add("amplitude-playback-speed-20")}}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={syncMain:function(){for(var e=document.getElementsByClassName("amplitude-shuffle"),t=0;t<e.length;t++)null==e[t].getAttribute("data-amplitude-playlist")&&(n.default.shuffle_on?(e[t].classList.add("amplitude-shuffle-on"),e[t].classList.remove("amplitude-shuffle-off")):(e[t].classList.add("amplitude-shuffle-off"),e[t].classList.remove("amplitude-shuffle-on")))},syncPlaylist:function(e){for(var t=document.querySelectorAll('.amplitude-shuffle[data-amplitude-playlist="'+e+'"]'),a=0;a<t.length;a++)n.default.playlists[e].shuffle?(t[a].classList.add("amplitude-shuffle-on"),t[a].classList.remove("amplitude-shuffle-off")):(t[a].classList.add("amplitude-shuffle-off"),t[a].classList.remove("amplitude-shuffle-on"))}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){if(!isNaN(e))for(var t=document.querySelectorAll(".amplitude-song-played-progress"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");if(null==l&&null==u){var n=t[a].max;t[a].value=e/100*n}}}(e),function(e){if(!isNaN(e))for(var t=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)if(null==t[a].getAttribute("data-amplitude-song-index")){var l=t[a].max;t[a].value=e/100*l}}(e),function(e){if(null==n.default.active_playlist&&!isNaN(e))for(var t=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)if(null==t[a].getAttribute("data-amplitude-playlist")){var l=t[a].max;t[a].value=e/100*l}}(e),function(e){if(!isNaN(e))for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-song-played-progress[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++){var u=a[l].getAttribute("data-amplitude-playlist"),i=a[l].getAttribute("data-amplitude-song-index");if(null!=u&&null!=i){var d=a[l].max;a[l].value=e/100*d}}}(e)},resetElements:function(){for(var e=document.getElementsByClassName("amplitude-song-played-progress"),t=0;t<e.length;t++)e[t].value=0}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l="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},u=L(a(0)),n=L(a(1)),i=L(a(17)),d=L(a(6)),s=L(a(4)),o=L(a(5)),f=L(a(13)),r=L(a(26)),c=L(a(46)),p=L(a(16)),v=L(a(22)),y=L(a(3)),g=L(a(9)),m=L(a(48)),_=L(a(19)),h=L(a(10)),b=L(a(11)),A=L(a(15)),x=L(a(2)),M=L(a(7)),P=L(a(18)),S=L(a(8));function L(e){return e&&e.__esModule?e:{default:e}}var w=function(){function e(e){e.playlists&&function(e){var t=0,a=void 0;for(a in e)e.hasOwnProperty(a)&&t++;return s.default.writeMessage("You have "+t+" playlist(s) in your config"),t}(e.playlists)>0&&m.default.initialize(e.playlists),null==e.start_song||e.starting_playlist?y.default.changeSong(u.default.songs[0],0):o.default.isInt(e.start_song)?y.default.changeSong(u.default.songs[e.start_song],e.start_song):s.default.writeMessage("You must enter an integer index for the start song."),null!=e.shuffle_on&&e.shuffle_on&&(u.default.shuffle_on=!0,f.default.shuffleSongs(),y.default.changeSong(u.default.shuffle_list[0],0)),u.default.continue_next=null==e.continue_next||e.continue_next,u.default.playback_speed=null!=e.playback_speed?e.playback_speed:1,n.default.setPlaybackSpeed(u.default.playback_speed),u.default.audio.preload=null!=e.preload?e.preload:"auto",u.default.callbacks=null!=e.callbacks?e.callbacks:{},u.default.bindings=null!=e.bindings?e.bindings:{},u.default.volume=null!=e.volume?e.volume:50,u.default.delay=null!=e.delay?e.delay:0,u.default.volume_increment=null!=e.volume_increment?e.volume_increment:5,u.default.volume_decrement=null!=e.volume_decrement?e.volume_decrement:5,n.default.setVolume(u.default.volume),t(e),_.default.syncMain(),h.default.setMuted(0==u.default.volume),b.default.sync(),P.default.sync(),A.default.resetCurrentTimes(),x.default.syncToPause(),M.default.syncMetaData(),S.default.syncRepeatSong(),null!=e.starting_playlist&&""!=e.starting_playlist&&(u.default.active_playlist=e.starting_playlist,null!=e.starting_playlist_song&&""!=e.starting_playlist_song?null!=l(e.playlists[e.starting_playlist].songs[parseInt(e.starting_playlist_song)])?y.default.changeSongPlaylist(u.default.active_playlist,e.playlists[e.starting_playlist].songs[parseInt(e.starting_playlist_song)],parseInt(e.starting_playlist_song)):(y.default.changeSongPlaylist(u.default.active_playlist,e.playlists[e.starting_playlist].songs[0],0),s.default.writeMessage("The index of "+e.starting_playlist_song+" does not exist in the playlist "+e.starting_playlist)):y.default.changeSong(u.default.active_playlist,e.playlists[e.starting_playlist].songs[0],0),x.default.sync()),g.default.run("initialized")}function t(e){null!=e.default_album_art?u.default.default_album_art=e.default_album_art:u.default.default_album_art="",null!=e.default_playlist_art?u.default.default_playlist_art=e.default_playlist_art:u.default.default_playlist_art=""}return{initialize:function(a){var l=!1;if(d.default.resetConfig(),r.default.initialize(),g.default.initialize(),u.default.debug=null!=a.debug&&a.debug,t(a),a.songs?0!=a.songs.length?(u.default.songs=a.songs,l=!0):s.default.writeMessage("Please add some songs, to your songs object!"):s.default.writeMessage("Please provide a songs object for AmplitudeJS to run!"),c.default.webAudioAPIAvailable()){if(c.default.determineUsingAnyFX()&&(c.default.configureWebAudioAPI(),document.documentElement.addEventListener("mousedown",(function(){"running"!==u.default.context.state&&u.default.context.resume()})),document.documentElement.addEventListener("keydown",(function(){"running"!==u.default.context.state&&u.default.context.resume()})),document.documentElement.addEventListener("keyup",(function(){"running"!==u.default.context.state&&u.default.context.resume()})),null!=a.waveforms&&null!=a.waveforms.sample_rate&&(u.default.waveforms.sample_rate=a.waveforms.sample_rate),v.default.init(),null!=a.visualizations&&a.visualizations.length>0))for(var n=0;n<a.visualizations.length;n++)p.default.register(a.visualizations[n].object,a.visualizations[n].params)}else s.default.writeMessage("The Web Audio API is not available on this platform. We are using your defined backups!");if(function(){for(var e=0;e<u.default.songs.length;e++)null==u.default.songs[e].live&&(u.default.songs[e].live=!1)}(),function(){for(var e=0;e<u.default.songs.length;e++)u.default.songs[e].index=e}(),l){u.default.soundcloud_client=null!=a.soundcloud_client?a.soundcloud_client:"",u.default.soundcloud_use_art=null!=a.soundcloud_use_art?a.soundcloud_use_art:"";var o={};""!=u.default.soundcloud_client?(o=a,i.default.loadSoundCloud(o)):e(a)}s.default.writeMessage("Initialized With: "),s.default.writeMessage(u.default)},setConfig:e,rebindDisplay:function(){r.default.initialize(),M.default.displayMetaData()}}}();t.default=w,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i=function(){var e="",t="",a="";function l(e){for(var t=document.querySelectorAll(".amplitude-wave-form"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),n=t[a].getAttribute("data-amplitude-song-index");null==l&&null==n&&u(t[a],e),null!=l&&null==n&&i(t[a],e,l),null==l&&null!=n&&d(t[a],e,n),null!=l&&null!=n&&s(t[a],e,l,n)}}function u(e,t){e.querySelector("svg g path").setAttribute("d",t)}function i(e,t,a){n.default.active_playlist==a&&e.querySelector("svg g path").setAttribute("d",t)}function d(e,t,a){n.default.active_index==a&&e.querySelector("svg g path").setAttribute("d",t)}function s(e,t,a,l){n.default.active_playlist==a&&n.default.playlists[n.default.active_playlist].active_index==l&&e.querySelector("svg g path").setAttribute("d",t)}return{init:function(){t=n.default.waveforms.sample_rate;var e=document.querySelectorAll(".amplitude-wave-form");if(e.length>0)for(var a=0;a<e.length;a++){e[a].innerHTML="";var l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("viewBox","0 -1 "+t+" 2"),l.setAttribute("preserveAspectRatio","none");var u=document.createElementNS("http://www.w3.org/2000/svg","g");l.appendChild(u);var i=document.createElementNS("http://www.w3.org/2000/svg","path");i.setAttribute("d",""),i.setAttribute("id","waveform"),u.appendChild(i),e[a].appendChild(l)}},build:function(){if(n.default.web_audio_api_available)if(null==n.default.waveforms.built[Math.abs(n.default.audio.src.split("").reduce((function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e}),0))]){var u=new XMLHttpRequest;u.open("GET",n.default.audio.src,!0),u.responseType="arraybuffer",u.onreadystatechange=function(i){4==u.readyState&&200==u.status&&n.default.context.decodeAudioData(u.response,(function(u){a=function(e,t){for(var a=t.length/e,l=~~(a/10)||1,u=t.numberOfChannels,n=[],i=0;i<u;i++)for(var d=[],s=t.getChannelData(i),o=0;o<e;o++){for(var f=~~(o*a),r=~~(f+a),c=s[0],p=s[0],v=f;v<r;v+=l){var y=s[v];y>p&&(p=y),y<c&&(c=y)}d[2*o]=p,d[2*o+1]=c,(0===i||p>n[2*o])&&(n[2*o]=p),(0===i||c<n[2*o+1])&&(n[2*o+1]=c)}return n}(t,e=u),function(e,t,a){if(t){for(var u=a.length,i="",d=0;d<u;d++)i+=d%2==0?" M"+~~(d/2)+", "+a.shift():" L"+~~(d/2)+", "+a.shift();n.default.waveforms.built[Math.abs(n.default.audio.src.split("").reduce((function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e}),0))]=i,l(n.default.waveforms.built[Math.abs(n.default.audio.src.split("").reduce((function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e}),0))])}}(0,e,a)}))},u.send()}else l(n.default.waveforms.built[Math.abs(n.default.audio.src.split("").reduce((function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e}),0))])},determineIfUsingWaveforms:function(){return document.querySelectorAll(".amplitude-wave-form").length>0}}}();t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={computeCurrentTimes:function(){var e={},t=(Math.floor(n.default.audio.currentTime%60)<10?"0":"")+Math.floor(n.default.audio.currentTime%60),a=Math.floor(n.default.audio.currentTime/60),l="00";return a<10&&(a="0"+a),a>=60&&(l=Math.floor(a/60),(a%=60)<10&&(a="0"+a)),e.seconds=t,e.minutes=a,e.hours=l,e},computeSongDuration:function(){var e={},t=(Math.floor(n.default.audio.duration%60)<10?"0":"")+Math.floor(n.default.audio.duration%60),a=Math.floor(n.default.audio.duration/60),l="00";return a<10&&(a="0"+a),a>=60&&(l=Math.floor(a/60),(a%=60)<10&&(a="0"+a)),e.seconds=isNaN(t)?"00":t,e.minutes=isNaN(a)?"00":a,e.hours=isNaN(l)?"00":l.toString(),e},computeSongCompletionPercentage:function(){return n.default.audio.currentTime/n.default.audio.duration*100},setCurrentTime:function(e){n.default.active_metadata.live||isFinite(e)&&(n.default.audio.currentTime=e)}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(){!function(){for(var e=document.getElementsByClassName("amplitude-buffered-progress"),t=0;t<e.length;t++){var a=e[t].getAttribute("data-amplitude-playlist"),l=e[t].getAttribute("data-amplitude-song-index");null!=a||null!=l||isNaN(n.default.buffered)||(e[t].value=parseFloat(parseFloat(n.default.buffered)/100))}}(),function(){for(var e=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-playlist="'+n.default.active_playlist+'"]'),t=0;t<e.length;t++)null!=e[t].getAttribute("data-amplitude-song-index")||isNaN(n.default.buffered)||(e[t].value=parseFloat(parseFloat(n.default.buffered)/100))}(),function(){for(var e=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="'+n.default.active_index+'"]'),t=0;t<e.length;t++)null!=e[t].getAttribute("data-amplitude-playlist")||isNaN(n.default.buffered)||(e[t].value=parseFloat(parseFloat(n.default.buffered)/100))}(),function(){for(var e=null!=n.default.active_playlist&&""!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,t=document.querySelectorAll('.amplitude-buffered-progress[data-amplitude-song-index="'+e+'"][data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)isNaN(n.default.buffered)||(t[a].value=parseFloat(parseFloat(n.default.buffered)/100))}()},reset:function(){for(var e=document.getElementsByClassName("amplitude-buffered-progress"),t=0;t<e.length;t++)e[t].value=0}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=d(a(0)),u=d(a(3)),n=d(a(1)),i=d(a(2));function d(e){return e&&e.__esModule?e:{default:e}}var s={handle:function(){setTimeout((function(){l.default.continue_next?""==l.default.active_playlist||null==l.default.active_playlist?u.default.setNext(!0):u.default.setNextPlaylist(l.default.active_playlist,!0):l.default.is_touch_moving||(n.default.stop(),i.default.sync())}),l.default.delay)}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=L(a(0)),u=L(a(27)),n=L(a(42)),i=L(a(25)),d=L(a(35)),s=L(a(31)),o=L(a(30)),f=L(a(32)),r=L(a(41)),c=L(a(28)),p=L(a(45)),v=L(a(43)),y=L(a(40)),g=L(a(44)),m=L(a(29)),_=L(a(34)),h=L(a(36)),b=L(a(37)),A=L(a(33)),x=L(a(38)),M=L(a(39)),P=L(a(22)),S=L(a(4));function L(e){return e&&e.__esModule?e:{default:e}}var w={initialize:function(){S.default.writeMessage("Beginning initialization of event handlers.."),document.addEventListener("touchmove",(function(){l.default.is_touch_moving=!0})),document.addEventListener("touchend",(function(){l.default.is_touch_moving&&(l.default.is_touch_moving=!1)})),l.default.audio.removeEventListener("timeupdate",n.default.handle),l.default.audio.addEventListener("timeupdate",n.default.handle),l.default.audio.removeEventListener("durationchange",n.default.handle),l.default.audio.addEventListener("durationchange",n.default.handle),document.removeEventListener("keydown",u.default.handle),document.addEventListener("keydown",u.default.handle),l.default.audio.removeEventListener("ended",i.default.handle),l.default.audio.addEventListener("ended",i.default.handle),l.default.audio.removeEventListener("progress",d.default.handle),l.default.audio.addEventListener("progress",d.default.handle),function(){for(var e=document.getElementsByClassName("amplitude-play"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",s.default.handle),e[t].addEventListener("touchend",s.default.handle)):(e[t].removeEventListener("click",s.default.handle),e[t].addEventListener("click",s.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-pause"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",o.default.handle),e[t].addEventListener("touchend",o.default.handle)):(e[t].removeEventListener("click",o.default.handle),e[t].addEventListener("click",o.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-play-pause"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",f.default.handle),e[t].addEventListener("touchend",f.default.handle)):(e[t].removeEventListener("click",f.default.handle),e[t].addEventListener("click",f.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-stop"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",r.default.handle),e[t].addEventListener("touchend",r.default.handle)):(e[t].removeEventListener("click",r.default.handle),e[t].addEventListener("click",r.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-mute"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?S.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",c.default.handle),e[t].addEventListener("touchend",c.default.handle)):(e[t].removeEventListener("click",c.default.handle),e[t].addEventListener("click",c.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-volume-up"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?S.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",p.default.handle),e[t].addEventListener("touchend",p.default.handle)):(e[t].removeEventListener("click",p.default.handle),e[t].addEventListener("click",p.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-volume-down"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?/iPhone|iPad|iPod/i.test(navigator.userAgent)?S.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):(e[t].removeEventListener("touchend",v.default.handle),e[t].addEventListener("touchend",v.default.handle)):(e[t].removeEventListener("click",v.default.handle),e[t].addEventListener("click",v.default.handle))}(),function(){for(var e=window.navigator.userAgent.indexOf("MSIE "),t=document.getElementsByClassName("amplitude-song-slider"),a=0;a<t.length;a++)e>0||navigator.userAgent.match(/Trident.*rv\:11\./)?(t[a].removeEventListener("change",y.default.handle),t[a].addEventListener("change",y.default.handle)):(t[a].removeEventListener("input",y.default.handle),t[a].addEventListener("input",y.default.handle))}(),function(){for(var e=window.navigator.userAgent.indexOf("MSIE "),t=document.getElementsByClassName("amplitude-volume-slider"),a=0;a<t.length;a++)/iPhone|iPad|iPod/i.test(navigator.userAgent)?S.default.writeMessage("iOS does NOT allow volume to be set through javascript: https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW4"):e>0||navigator.userAgent.match(/Trident.*rv\:11\./)?(t[a].removeEventListener("change",g.default.handle),t[a].addEventListener("change",g.default.handle)):(t[a].removeEventListener("input",g.default.handle),t[a].addEventListener("input",g.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-next"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",m.default.handle),e[t].addEventListener("touchend",m.default.handle)):(e[t].removeEventListener("click",m.default.handle),e[t].addEventListener("click",m.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-prev"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",_.default.handle),e[t].addEventListener("touchend",_.default.handle)):(e[t].removeEventListener("click",_.default.handle),e[t].addEventListener("click",_.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-shuffle"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-shuffle-on"),e[t].classList.add("amplitude-shuffle-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",x.default.handle),e[t].addEventListener("touchend",x.default.handle)):(e[t].removeEventListener("click",x.default.handle),e[t].addEventListener("click",x.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-repeat"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",h.default.handle),e[t].addEventListener("touchend",h.default.handle)):(e[t].removeEventListener("click",h.default.handle),e[t].addEventListener("click",h.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-repeat-song"),t=0;t<e.length;t++)e[t].classList.remove("amplitude-repeat-on"),e[t].classList.add("amplitude-repeat-off"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",b.default.handle),e[t].addEventListener("touchend",b.default.handle)):(e[t].removeEventListener("click",b.default.handle),e[t].addEventListener("click",b.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-playback-speed"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",A.default.handle),e[t].addEventListener("touchend",A.default.handle)):(e[t].removeEventListener("click",A.default.handle),e[t].addEventListener("click",A.default.handle))}(),function(){for(var e=document.getElementsByClassName("amplitude-skip-to"),t=0;t<e.length;t++)/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(e[t].removeEventListener("touchend",M.default.handle),e[t].addEventListener("touchend",M.default.handle)):(e[t].removeEventListener("click",M.default.handle),e[t].addEventListener("click",M.default.handle))}(),P.default.determineIfUsingWaveforms()&&(l.default.audio.removeEventListener("canplaythrough",P.default.build),l.default.audio.addEventListener("canplaythrough",P.default.build))}};t.default=w,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=f(a(0)),u=f(a(1)),n=f(a(13)),i=f(a(12)),d=f(a(3)),s=f(a(8)),o=f(a(2));function f(e){return e&&e.__esModule?e:{default:e}}var r={handle:function(e){!function(e){if(null!=l.default.bindings[e])switch(l.default.bindings[e]){case"play_pause":l.default.audio.paused?u.default.play():u.default.pause(),o.default.sync();break;case"next":""==l.default.active_playlist||null==l.default.active_playlist?d.default.setNext():d.default.setNextPlaylist(l.default.active_playlist);break;case"prev":""==l.default.active_playlist||null==l.default.active_playlist?d.default.setPrevious():d.default.setPreviousPlaylist(l.default.active_playlist);break;case"stop":o.default.syncToPause(),u.default.stop();break;case"shuffle":""==l.default.active_playlist||null==l.default.active_playlist?n.default.toggleShuffle():n.default.toggleShufflePlaylist(l.default.active_playlist);break;case"repeat":i.default.setRepeat(!l.default.repeat),s.default.syncRepeat()}}(e.which)}};t.default=r,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=d(a(0)),u=d(a(1)),n=d(a(10)),i=d(a(11));function d(e){return e&&e.__esModule?e:{default:e}}var s={handle:function(){l.default.is_touch_moving||(0==l.default.volume?u.default.setVolume(l.default.pre_mute_volume):(l.default.pre_mute_volume=l.default.volume,u.default.setVolume(0)),n.default.setMuted(0==l.default.volume),i.default.sync())}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=(i(a(1)),i(a(2)),i(a(9)),i(a(3))),n=i(a(4));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source");if(null==e&&(""==l.default.active_playlist||null==l.default.active_playlist?u.default.setNext():u.default.setNextPlaylist(l.default.active_playlist)),null!=e){if("youtube"===t)return!1;!function(e){e==l.default.active_playlist?u.default.setNextPlaylist(e):n.default.writeMessage("You can not go to the next song on a playlist that is not being played!")}(e)}}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=(i(a(6)),i(a(1))),n=i(a(2));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-song-index"),t=this.getAttribute("data-amplitude-playlist");null==t&&null==e&&(u.default.pause(),n.default.sync()),null!=t&&null==e&&(i=t,l.default.active_playlist==i&&(u.default.pause(),n.default.sync())),null==t&&null!=e&&(a=e,""!=l.default.active_playlist&&null!=l.default.active_playlist||l.default.active_index!=a||(u.default.pause(),n.default.sync())),null!=t&&null!=e&&function(e,t){l.default.active_playlist==e&&l.default.playlists[e].active_index==t&&(u.default.pause(),n.default.sync())}(t,e)}var a,i}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=s(a(0)),u=(s(a(6)),s(a(1))),n=s(a(5)),i=s(a(3)),d=s(a(2));function s(e){return e&&e.__esModule?e:{default:e}}var o={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-song-index"),t=this.getAttribute("data-amplitude-playlist");null==t&&null==e&&(u.default.play(),d.default.sync()),null!=t&&null==e&&(s=t,n.default.newPlaylist(s)&&(i.default.setActivePlaylist(s),l.default.playlists[s].shuffle?i.default.changeSongPlaylist(s,l.default.playlists[s].shuffle_list[0],0):i.default.changeSongPlaylist(s,l.default.playlists[s].songs[0],0)),u.default.play(),d.default.sync()),null==t&&null!=e&&(a=e,n.default.newPlaylist(null)&&(i.default.setActivePlaylist(null),i.default.changeSong(l.default.songs[a],a)),n.default.newSong(null,a)&&i.default.changeSong(l.default.songs[a],a),u.default.play(),d.default.sync()),null!=t&&null!=e&&function(e,t){n.default.newPlaylist(e)&&(i.default.setActivePlaylist(e),i.default.changeSongPlaylist(e,l.default.playlists[e].songs[t],t)),n.default.newSong(e,t)&&i.default.changeSongPlaylist(e,l.default.playlists[e].songs[t],t),u.default.play(),d.default.sync()}(t,e)}var a,s}};t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=s(a(0)),u=(s(a(6)),s(a(1))),n=s(a(5)),i=s(a(3)),d=s(a(2));function s(e){return e&&e.__esModule?e:{default:e}}var o={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source"),a=this.getAttribute("data-amplitude-song-index");if(null==e&&null==a&&(l.default.audio.paused?u.default.play():u.default.pause(),d.default.sync()),null!=e&&null==a){if("youtube"===t)return!1;!function(e){n.default.newPlaylist(e)&&(i.default.setActivePlaylist(e),l.default.playlists[e].shuffle?i.default.changeSongPlaylist(e,l.default.playlists[e].shuffle_list[0],0,!0):i.default.changeSongPlaylist(e,l.default.playlists[e].songs[0],0)),l.default.audio.paused?u.default.play():u.default.pause(),d.default.sync()}(e)}if(null==e&&null!=a&&function(e){n.default.newPlaylist(null)&&(i.default.setActivePlaylist(null),i.default.changeSong(l.default.songs[e],e,!0)),n.default.newSong(null,e)&&i.default.changeSong(l.default.songs[e],e,!0),l.default.audio.paused?u.default.play():u.default.pause(),d.default.sync()}(a),null!=e&&null!=a){if("youtube"===t)return!1;!function(e,t){n.default.newPlaylist(e)&&(i.default.setActivePlaylist(e),i.default.changeSongPlaylist(e,l.default.playlists[e].songs[t],t,!0)),n.default.newSong(e,t)&&i.default.changeSongPlaylist(e,l.default.playlists[e].songs[t],t,!0),l.default.audio.paused?u.default.play():u.default.pause(),d.default.sync()}(e,a)}}}};t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(1)),n=i(a(18));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){switch(l.default.playback_speed){case 1:u.default.setPlaybackSpeed(1.5);break;case 1.5:u.default.setPlaybackSpeed(2);break;case 2:u.default.setPlaybackSpeed(1)}n.default.sync()}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(3)),n=i(a(4));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source");if(null==e&&(""==l.default.active_playlist||null==l.default.active_playlist?u.default.setPrevious():u.default.setPreviousPlaylist(l.default.active_playlist)),null!=e){if("youtube"===t)return!1;!function(e){e==l.default.active_playlist?u.default.setPreviousPlaylist(l.default.active_playlist):n.default.writeMessage("You can not go to the previous song on a playlist that is not being played!")}(e)}}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(a(0)),u=n(a(24));function n(e){return e&&e.__esModule?e:{default:e}}var i={handle:function(){if(l.default.audio.buffered.length-1>=0){var e=l.default.audio.buffered.end(l.default.audio.buffered.length-1),t=l.default.audio.duration;l.default.buffered=e/t*100}u.default.sync()}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(12)),n=i(a(8));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source");if(null==e&&(u.default.setRepeat(!l.default.repeat),n.default.syncRepeat()),null!=e){if("youtube"===t)return!1;!function(e){u.default.setRepeatPlaylist(!l.default.playlists[e].repeat,e),n.default.syncRepeatPlaylist(e)}(e)}}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(12)),n=i(a(8));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){l.default.is_touch_moving||(u.default.setRepeatSong(!l.default.repeat_song),n.default.syncRepeatSong())}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(13)),n=i(a(19));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source");if(null==e)u.default.toggleShuffle(),n.default.syncMain(l.default.shuffle_on);else{if("youtube"===t)return!1;!function(e){u.default.toggleShufflePlaylist(e),n.default.syncPlaylist(e)}(e)}}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o(a(0)),u=o(a(4)),n=o(a(3)),i=o(a(5)),d=o(a(1)),s=o(a(2));function o(e){return e&&e.__esModule?e:{default:e}}var f={handle:function(){if(!l.default.is_touch_moving){var e=this.getAttribute("data-amplitude-playlist"),t=this.getAttribute("data-amplitude-source"),a=this.getAttribute("data-amplitude-song-index"),o=this.getAttribute("data-amplitude-location");if(null==o&&u.default.writeMessage("You must add an 'data-amplitude-location' attribute in seconds to your 'amplitude-skip-to' element."),null==a&&u.default.writeMessage("You must add an 'data-amplitude-song-index' attribute to your 'amplitude-skip-to' element."),null!=o&&null!=a)if(null==e)!function(e,t){n.default.changeSong(l.default.songs[e],e),d.default.play(),s.default.syncGlobal(),s.default.syncSong(),d.default.skipToLocation(t)}(parseInt(a),parseInt(o));else{if("youtube"===t)return!1;!function(e,t,a){i.default.newPlaylist(e)&&n.default.setActivePlaylist(e),n.default.changeSongPlaylist(e,l.default.playlists[e].songs[t],t),d.default.play(),s.default.syncGlobal(),s.default.syncPlaylist(),s.default.syncSong(),d.default.skipToLocation(a)}(e,parseInt(a),parseInt(o))}}}};t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=i(a(23)),n=i(a(14));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){var e=this.value,t=l.default.audio.duration*(e/100),a=this.getAttribute("data-amplitude-playlist"),i=this.getAttribute("data-amplitude-source"),d=this.getAttribute("data-amplitude-song-index");if(null==a&&null==d&&function(e,t){l.default.active_metadata.live||(u.default.setCurrentTime(e),n.default.sync(t,l.default.active_playlist,l.default.active_index))}(t,e),null!=a&&null==d){if("youtube"===i)return!1;!function(e,t,a){l.default.active_playlist==a&&(l.default.active_metadata.live||(u.default.setCurrentTime(e),n.default.sync(t,a,l.default.active_index)))}(t,e,a)}if(null==a&&null!=d&&function(e,t,a){l.default.active_index==a&&null==l.default.active_playlist&&(l.default.active_metadata.live||(u.default.setCurrentTime(e),n.default.sync(t,l.default.active_playlist,a)))}(t,e,d),null!=a&&null!=d){if("youtube"===i)return!1;!function(e,t,a,i){l.default.playlists[a].active_index==i&&l.default.active_playlist==a&&(l.default.active_metadata.live||(u.default.setCurrentTime(e),n.default.sync(t,a,i)))}(t,e,a,d)}}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a(0)),u=(i(a(6)),i(a(2))),n=i(a(1));function i(e){return e&&e.__esModule?e:{default:e}}var d={handle:function(){l.default.is_touch_moving||(u.default.syncToPause(),n.default.stop())}};t.default=d,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o(a(0)),u=o(a(24)),n=o(a(15)),i=o(a(14)),d=o(a(20)),s=o(a(23));o(a(9));function o(e){return e&&e.__esModule?e:{default:e}}var f={handle:function(){!function(){if(l.default.audio.buffered.length-1>=0){var e=l.default.audio.buffered.end(l.default.audio.buffered.length-1),t=l.default.audio.duration;l.default.buffered=e/t*100}}(),u.default.sync(),function(){if(!l.default.active_metadata.live){var e=s.default.computeCurrentTimes(),t=s.default.computeSongCompletionPercentage(),a=s.default.computeSongDuration();n.default.syncCurrentTimes(e),i.default.sync(t,l.default.active_playlist,l.default.active_index),d.default.sync(t),n.default.syncDurationTimes(e,a)}}(),function(){var e=Math.floor(l.default.audio.currentTime);if(null!=l.default.active_metadata.time_callbacks&&null!=l.default.active_metadata.time_callbacks[e])l.default.active_metadata.time_callbacks[e].run||(l.default.active_metadata.time_callbacks[e].run=!0,l.default.active_metadata.time_callbacks[e]());else for(var t in l.default.active_metadata.time_callbacks)l.default.active_metadata.time_callbacks.hasOwnProperty(t)&&(l.default.active_metadata.time_callbacks[t].run=!1)}()}};t.default=f,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=d(a(0)),u=d(a(1)),n=d(a(10)),i=d(a(11));function d(e){return e&&e.__esModule?e:{default:e}}var s={handle:function(){if(!l.default.is_touch_moving){var e=null;e=l.default.volume-l.default.volume_increment>0?l.default.volume-l.default.volume_increment:0,u.default.setVolume(e),n.default.setMuted(0==l.default.volume),i.default.sync()}}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=d(a(0)),u=d(a(1)),n=d(a(10)),i=d(a(11));function d(e){return e&&e.__esModule?e:{default:e}}var s={handle:function(){u.default.setVolume(this.value),n.default.setMuted(0==l.default.volume),i.default.sync()}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=d(a(0)),u=d(a(1)),n=d(a(10)),i=d(a(11));function d(e){return e&&e.__esModule?e:{default:e}}var s={handle:function(){if(!l.default.is_touch_moving){var e=null;e=l.default.volume+l.default.volume_increment<=100?l.default.volume+l.default.volume_increment:100,u.default.setVolume(e),n.default.setMuted(0==l.default.volume),i.default.sync()}}};t.default=s,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={configureWebAudioAPI:function(){var e=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext;e?(n.default.context=new e,n.default.analyser=n.default.context.createAnalyser(),n.default.audio.crossOrigin="anonymous",n.default.source=n.default.context.createMediaElementSource(n.default.audio),n.default.source.connect(n.default.analyser),n.default.analyser.connect(n.default.context.destination)):AmplitudeHelpers.writeDebugMessage("Web Audio API is unavailable! We will set any of your visualizations with your back up definition!")},webAudioAPIAvailable:function(){var e=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext;return n.default.web_audio_api_available=!1,e?(n.default.web_audio_api_available=!0,!0):(n.default.web_audio_api_available=!1,!1)},determineUsingAnyFX:function(){var e=document.querySelectorAll(".amplitude-wave-form"),t=document.querySelectorAll(".amplitude-visualization");return e.length>0||t.length>0}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=A(a(21)),u=A(a(0)),n=A(a(1)),i=A(a(13)),d=(A(a(6)),A(a(3))),s=A(a(12)),o=A(a(5)),f=A(a(16)),r=A(a(19)),c=A(a(8)),p=A(a(14)),v=A(a(20)),y=A(a(15)),g=A(a(2)),m=A(a(7)),_=A(a(18)),h=A(a(4)),b=A(a(17));function A(e){return e&&e.__esModule?e:{default:e}}var x={init:function(e){l.default.initialize(e)},getConfig:function(){return u.default},bindNewElements:function(){l.default.rebindDisplay()},getActivePlaylist:function(){return u.default.active_playlist},getPlaybackSpeed:function(){return u.default.playback_speed},setPlaybackSpeed:function(e){n.default.setPlaybackSpeed(e),_.default.sync()},getRepeat:function(){return u.default.repeat},getRepeatPlaylist:function(e){return u.default.playlists[e].repeat},getShuffle:function(){return u.default.shuffle_on},getShufflePlaylist:function(e){return u.default.playlists[e].shuffle},setShuffle:function(e){i.default.setShuffle(e),r.default.syncMain()},setShufflePlaylist:function(e,t){i.default.setShufflePlaylist(e,t),r.default.syncMain(),r.default.syncPlaylist(e)},setRepeat:function(e){s.default.setRepeat(e),c.default.syncRepeat()},setRepeatSong:function(e){u.default.is_touch_moving||(s.default.setRepeatSong(!u.default.repeat_song),c.default.syncRepeatSong())},setRepeatPlaylist:function(e,t){s.default.setRepeatPlaylist(t,e),c.default.syncRepeatPlaylist(e)},getDefaultAlbumArt:function(){return u.default.default_album_art},setDefaultAlbumArt:function(e){u.default.default_album_art=e},getDefaultPlaylistArt:function(){return u.default.default_playlist_art},setDefaultPlaylistArt:function(e){u.default.default_plalist_art=e},getSongPlayedPercentage:function(){return u.default.audio.currentTime/u.default.audio.duration*100},setSongPlayedPercentage:function(e){"number"==typeof e&&e>0&&e<100&&(u.default.audio.currentTime=u.default.audio.duration*(e/100))},getSongPlayedSeconds:function(){return u.default.audio.currentTime},getSongDuration:function(){return u.default.audio.duration},setDebug:function(e){u.default.debug=e},getActiveSongMetadata:function(){return u.default.active_metadata},getActivePlaylistMetadata:function(){return u.default.playlists[u.default.active_playlist]},getSongAtIndex:function(e){return u.default.songs[e]},getSongAtPlaylistIndex:function(e,t){return u.default.playlists[e].songs[t]},addSong:function(e){return null==u.default.songs&&(u.default.songs=[]),u.default.songs.push(e),u.default.shuffle_on&&u.default.shuffle_list.push(e),b.default.isSoundCloudURL(e.url)&&b.default.resolveIndividualStreamableURL(e.url,null,u.default.songs.length-1,u.default.shuffle_on),u.default.songs.length-1},prependSong:function(e){return null==u.default.songs&&(u.default.songs=[]),u.default.songs.unshift(e),u.default.shuffle_on&&u.default.shuffle_list.unshift(e),b.default.isSoundCloudURL(e.url)&&b.default.resolveIndividualStreamableURL(e.url,null,u.default.songs.length-1,u.default.shuffle_on),0},addSongToPlaylist:function(e,t){return null!=u.default.playlists[t]?(u.default.playlists[t].songs.push(e),u.default.playlists[t].shuffle&&u.default.playlists[t].shuffle_list.push(e),b.default.isSoundCloudURL(e.url)&&b.default.resolveIndividualStreamableURL(e.url,t,u.default.playlists[t].songs.length-1,u.default.playlists[t].shuffle),u.default.playlists[t].songs.length-1):(h.default.writeMessage("Playlist doesn't exist!"),null)},removeSong:function(e){u.default.songs.splice(e,1)},removeSongFromPlaylist:function(e,t){null!=u.default.playlists[t]&&u.default.playlists[t].songs.splice(e,1)},playNow:function(e){e.url?(u.default.audio.src=e.url,u.default.active_metadata=e,u.default.active_album=e.album):h.default.writeMessage("The song needs to have a URL!"),n.default.play(),g.default.sync(),m.default.displayMetaData(),p.default.resetElements(),v.default.resetElements(),y.default.resetCurrentTimes(),y.default.resetDurationTimes()},playSongAtIndex:function(e){n.default.stop(),o.default.newPlaylist(null)&&(d.default.setActivePlaylist(null),d.default.changeSong(u.default.songs[e],e)),o.default.newSong(null,e)&&d.default.changeSong(u.default.songs[e],e),n.default.play(),g.default.sync()},playPlaylistSongAtIndex:function(e,t){n.default.stop(),o.default.newPlaylist(t)&&(d.default.setActivePlaylist(t),d.default.changeSongPlaylist(t,u.default.playlists[t].songs[e],e)),o.default.newSong(t,e)&&d.default.changeSongPlaylist(t,u.default.playlists[t].songs[e],e),g.default.sync(),n.default.play()},play:function(){n.default.play()},pause:function(){n.default.pause()},stop:function(){n.default.stop()},getAudio:function(){return u.default.audio},getAnalyser:function(){return u.default.analyser},next:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;""==e||null==e?null==u.default.active_playlist||""==u.default.active_playlist?d.default.setNext():d.default.setNextPlaylist(u.default.active_playlist):d.default.setNextPlaylist(e)},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;""==e||null==e?null==u.default.active_playlist||""==u.default.active_playlist?d.default.setPrevious():d.default.setPreviousPlaylist(u.default.active_playlist):d.default.setPreviousPlaylist(e)},getSongs:function(){return u.default.songs},getSongsInPlaylist:function(e){return u.default.playlists[e].songs},getSongsState:function(){return u.default.shuffle_on?u.default.shuffle_list:u.default.songs},getSongsStatePlaylist:function(e){return u.default.playlists[e].shuffle?u.default.playlists[e].shuffle_list:u.default.playlists[e].songs},getActiveIndex:function(){return parseInt(u.default.active_index)},getVersion:function(){return u.default.version},getBuffered:function(){return u.default.buffered},skipTo:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e=parseInt(e),null!=a?(o.default.newPlaylist(a)&&d.default.setActivePlaylist(a),d.default.changeSongPlaylist(a,u.default.playlists[a].songs[t],t),n.default.play(),g.default.syncGlobal(),g.default.syncPlaylist(),g.default.syncSong(),n.default.skipToLocation(e)):(d.default.changeSong(u.default.songs[t],t),n.default.play(),g.default.syncGlobal(),g.default.syncSong(),n.default.skipToLocation(e))},setSongMetaData:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(""!=a&&null!=a&&null!=u.default.playlists[a])for(var l in t)t.hasOwnProperty(l)&&"url"!=l&&"URL"!=l&&"live"!=l&&"LIVE"!=l&&(u.default.playlists[a].songs[e][l]=t[l]);else for(var l in t)t.hasOwnProperty(l)&&"url"!=l&&"URL"!=l&&"live"!=l&&"LIVE"!=l&&(u.default.songs[e][l]=t[l]);m.default.displayMetaData(),m.default.syncMetaData()},setPlaylistMetaData:function(e,t){if(null!=u.default.playlists[e]){var a=["repeat","shuffle","shuffle_list","songs","src"];for(var l in t)t.hasOwnProperty(l)&&a.indexOf(l)<0&&(u.default.playlists[e][l]=t[l]);m.default.displayPlaylistMetaData()}else h.default.writeMessage("You must provide a valid playlist key!")},setDelay:function(e){u.default.delay=e},getDelay:function(){return u.default.delay},getPlayerState:function(){return u.default.player_state},addPlaylist:function(e,t,a){if(null==u.default.playlists[e]){u.default.playlists[e]={};var l=["repeat","shuffle","shuffle_list","songs","src"];for(var n in t)l.indexOf(n)<0&&(u.default.playlists[e][n]=t[n]);return u.default.playlists[e].songs=a,u.default.playlists[e].active_index=null,u.default.playlists[e].repeat=!1,u.default.playlists[e].shuffle=!1,u.default.playlists[e].shuffle_list=[],u.default.playlists[e]}return h.default.writeMessage("A playlist already exists with that key!"),null},registerVisualization:function(e,t){f.default.register(e,t)},setPlaylistVisualization:function(e,t){null!=u.default.playlists[e]?null!=u.default.visualizations.available[t]?u.default.playlists[e].visualization=t:h.default.writeMessage("A visualization does not exist for the key provided."):h.default.writeMessage("The playlist for the key provided does not exist")},setSongVisualization:function(e,t){u.default.songs[e]?null!=u.default.visualizations.available[t]?u.default.songs[e].visualization=t:h.default.writeMessage("A visualization does not exist for the key provided."):h.default.writeMessage("A song at that index is undefined")},setSongInPlaylistVisualization:function(e,t,a){null!=u.default.playlists[e].songs[t]?null!=u.default.visualizations.available[a]?u.default.playlists[e].songs[t].visualization=a:h.default.writeMessage("A visualization does not exist for the key provided."):h.default.writeMessage("The song in the playlist at that key is not defined")},setGlobalVisualization:function(e){null!=u.default.visualizations.available[e]?u.default.visualization=e:h.default.writeMessage("A visualization does not exist for the key provided.")},getVolume:function(){return u.default.volume},setVolume:function(e){n.default.setVolume(e)}};t.default=x,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=s(a(0)),u=s(a(4)),n=s(a(5)),i=s(a(7)),d=s(a(17));function s(e){return e&&e.__esModule?e:{default:e}}var o={initialize:function(e){l.default.playlists=e,function(){for(var e in l.default.playlists)if(l.default.playlists.hasOwnProperty(e)&&l.default.playlists[e].songs)for(var t=0;t<l.default.playlists[e].songs.length;t++)n.default.isInt(l.default.playlists[e].songs[t])&&(l.default.playlists[e].songs[t]=l.default.songs[l.default.playlists[e].songs[t]],l.default.playlists[e].songs[t].index=t),n.default.isInt(l.default.playlists[e].songs[t])&&!l.default.songs[l.default.playlists[e].songs[t]]&&u.default.writeMessage("The song index: "+l.default.playlists[e].songs[t]+" in playlist with key: "+e+" is not defined in your songs array!"),n.default.isInt(l.default.playlists[e].songs[t])||(l.default.playlists[e].songs[t].index=t)}(),function(){for(var e in l.default.playlists)if(l.default.playlists.hasOwnProperty(e))for(var t=0;t<l.default.playlists[e].songs.length;t++)d.default.isSoundCloudURL(l.default.playlists[e].songs[t].url)&&null==l.default.playlists[e].songs[t].soundcloud_data&&d.default.resolveIndividualStreamableURL(l.default.playlists[e].songs[t].url,e,t)}(),function(){for(var e in l.default.playlists)l.default.playlists[e].active_index=null}(),function(){for(var e in l.default.playlists)l.default.playlists[e].shuffle=!1}(),function(){for(var e in l.default.playlists)l.default.playlists[e].repeat=!1}(),function(){for(var e in l.default.playlists)l.default.playlists[e].shuffle_list=[]}(),function(){for(var e in l.default.playlists)i.default.setFirstSongInPlaylist(l.default.playlists[e].songs[0],e)}()}};t.default=o,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={setActive:function(e){for(var t=document.getElementsByClassName("amplitude-song-container"),a=0;a<t.length;a++)t[a].classList.remove("amplitude-active-song-container");if(""==n.default.active_playlist||null==n.default.active_playlist){var l="";if(l=e?n.default.active_index:n.default.shuffle_on?n.default.shuffle_list[n.default.active_index].index:n.default.active_index,document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+l+'"]'))for(var u=document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+l+'"]'),i=0;i<u.length;i++)u[i].hasAttribute("data-amplitude-playlist")||u[i].classList.add("amplitude-active-song-container")}else{if(null!=n.default.active_playlist&&""!=n.default.active_playlist||e)var d=n.default.playlists[n.default.active_playlist].active_index;else d="",d=n.default.playlists[n.default.active_playlist].shuffle?n.default.playlists[n.default.active_playlist].shuffle_list[n.default.playlists[n.default.active_playlist].active_index].index:n.default.playlists[n.default.active_playlist].active_index;if(document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+d+'"][data-amplitude-playlist="'+n.default.active_playlist+'"]'))for(var s=document.querySelectorAll('.amplitude-song-container[data-amplitude-song-index="'+d+'"][data-amplitude-playlist="'+n.default.active_playlist+'"]'),o=0;o<s.length;o++)s[o].classList.add("amplitude-active-song-container")}}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-current-hours"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-hours[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-hours[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-current-hours"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-current-minutes"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-minutes[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-current-minutes"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-current-seconds"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-seconds[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-current-seconds"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){var t=document.querySelectorAll(".amplitude-current-time"),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++){var u=t[l].getAttribute("data-amplitude-playlist"),n=t[l].getAttribute("data-amplitude-song-index");null==u&&null==n&&(t[l].innerHTML=a)}}(e),function(e){var t=document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++)null==t[l].getAttribute("data-amplitude-song-index")&&(t[l].innerHTML=a)}(e),function(e){if(null==n.default.active_playlist){var t=document.querySelectorAll('.amplitude-current-time[data-amplitude-song-index="'+n.default.active_index+'"]'),a=e.minutes+":"+e.seconds;e.hours>0&&(a=e.hours+":"+a);for(var l=0;l<t.length;l++)null==t[l].getAttribute("data-amplitude-playlist")&&(t[l].innerHTML=a)}}(e),function(e){var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-current-time[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=e.minutes+":"+e.seconds;e.hours>0&&(l=e.hours+":"+l);for(var u=0;u<a.length;u++)a[u].innerHTML=l}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-current-time"),t=0;t<e.length;t++)e[t].innerHTML="00:00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e,t){var a=function(e,t){var a="00:00",l=parseInt(e.seconds)+60*parseInt(e.minutes)+60*parseInt(e.hours)*60,u=parseInt(t.seconds)+60*parseInt(t.minutes)+60*parseInt(t.hours)*60;if(!isNaN(l)&&!isNaN(u)){var n=u-l,i=Math.floor(n/3600),d=Math.floor((n-3600*i)/60),s=n-3600*i-60*d;a=(d<10?"0"+d:d)+":"+(s<10?"0"+s:s),i>0&&(a=i+":"+a)}return a}(e,t);!function(e){for(var t=document.querySelectorAll(".amplitude-time-remaining"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(a),function(e){for(var t=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(a),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(a),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-time-remaining[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(a)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-time-remaining"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-duration-hours"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-hours[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-duration-hours"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-duration-minutes"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-minutes[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-duration-minutes"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){!function(e){for(var t=document.querySelectorAll(".amplitude-duration-seconds"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(e),function(e){for(var t=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(e),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data--amplitude-playlist")&&(t[a].innerHTML=e)}(e),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-seconds[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(e)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-duration-seconds"),t=0;t<e.length;t++)e[t].innerHTML="00"}};t.default=i,e.exports=t.default},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l,u=a(0),n=(l=u)&&l.__esModule?l:{default:l};var i={sync:function(e){var t=function(e){var t="00:00";return isNaN(e.minutes)||isNaN(e.seconds)||(t=e.minutes+":"+e.seconds,!isNaN(e.hours)&&e.hours>0&&(t=e.hours+":"+t)),t}(e);!function(e){for(var t=document.querySelectorAll(".amplitude-duration-time"),a=0;a<t.length;a++){var l=t[a].getAttribute("data-amplitude-playlist"),u=t[a].getAttribute("data-amplitude-song-index");null==l&&null==u&&(t[a].innerHTML=e)}}(t),function(e){for(var t=document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="'+n.default.active_playlist+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-song-index")&&(t[a].innerHTML=e)}(t),function(e){if(null==n.default.active_playlist)for(var t=document.querySelectorAll('.amplitude-duration-time[data-amplitude-song-index="'+n.default.active_index+'"]'),a=0;a<t.length;a++)null==t[a].getAttribute("data-amplitude-playlist")&&(t[a].innerHTML=e)}(t),function(e){for(var t=""!=n.default.active_playlist&&null!=n.default.active_playlist?n.default.playlists[n.default.active_playlist].active_index:null,a=document.querySelectorAll('.amplitude-duration-time[data-amplitude-playlist="'+n.default.active_playlist+'"][data-amplitude-song-index="'+t+'"]'),l=0;l<a.length;l++)a[l].innerHTML=e}(t)},resetTimes:function(){for(var e=document.querySelectorAll(".amplitude-duration-time"),t=0;t<e.length;t++)e[t].innerHTML="00:00"}};t.default=i,e.exports=t.default},function(e,t){e.exports={name:"amplitudejs",version:"5.3.2",description:"A JavaScript library that allows you to control the design of your media controls in your webpage -- not the browser. No dependencies (jQuery not required) https://521dimensions.com/open-source/amplitudejs",main:"dist/amplitude.js",devDependencies:{"babel-core":"^6.26.3","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"0.2.1","babel-polyfill":"^6.26.0","babel-preset-es2015":"^6.18.0",husky:"^1.3.1",jest:"^23.6.0",prettier:"1.15.1","pretty-quick":"^1.11.1",watch:"^1.0.2",webpack:"^2.7.0"},directories:{doc:"docs"},files:["dist"],funding:{type:"opencollective",url:"https://opencollective.com/amplitudejs"},scripts:{build:"node_modules/.bin/webpack",prettier:"npx pretty-quick",preversion:"npx pretty-quick && npm run test",postversion:"git push && git push --tags",test:"jest",version:"npm run build && git add -A dist"},repository:{type:"git",url:"git+https://github.com/521dimensions/amplitudejs.git"},keywords:["webaudio","html5","javascript","audio-player"],author:"521 Dimensions (https://521dimensions.com)",license:"MIT",bugs:{url:"https://github.com/521dimensions/amplitudejs/issues"},homepage:"https://github.com/521dimensions/amplitudejs#readme"}}])}));
|