debundle
Version:

1,758 lines (1,757 loc) • 1.5 MB
JavaScript
!function(e) {
function t(r) {
if (n[r])
return n[r].exports;
var o = n[r] = {
exports: {},
id: r,
loaded: !1
};
return e[r].call(o.exports, o, o.exports, t),
o.loaded = !0,
o.exports
}
var n = {};
return t.m = e,
t.c = n,
t.p = "/static/",
t(0)
}(function(e) {
for (var t in e)
if (Object.prototype.hasOwnProperty.call(e, t))
switch (typeof e[t]) {
case "function":
break;
case "object":
e[t] = function(t) {
var n = t.slice(1)
, r = e[t[0]];
return function(e, t, o) {
r.apply(this, [e, t, o].concat(n))
}
}(e[t]);
break;
default:
e[t] = e[e[t]]
}
return e
}([function(e, t, n) {
e.exports = n(322)
}
, function(e, t, n) {
"use strict";
e.exports = n(39)
}
, function(e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : {
default: e
}
}
function o(e, t) {
if (!(e instanceof t))
throw new TypeError("Cannot call a class as a function")
}
Object.defineProperty(t, "__esModule", {
value: !0
}),
t._ = t.I18n = void 0;
var i = "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
}
, a = function() {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n];
r.enumerable = r.enumerable || !1,
r.configurable = !0,
"value"in r && (r.writable = !0),
Object.defineProperty(e, r.key, r)
}
}
return function(t, n, r) {
return n && e(t.prototype, n),
r && e(t, r),
t
}
}()
, s = n(324)
, u = r(s)
, l = null
, c = t.I18n = function() {
function e() {
o(this, e),
this._dictionary = new Map,
this._locale = "en"
}
return a(e, [{
key: "setDictionary",
value: function(e, t) {
var n = e;
t && (this._locale = t),
null !== e && "function" != typeof e[Symbol.iterator] && (n = Object.keys(e).map(function(t) {
return [t, e[t]]
})),
this._dictionary = new Map(n)
}
}, {
key: "translate",
value: function(e) {
for (var t = this._dictionary.has(e) ? this._dictionary.get(e) : e, n = arguments.length, r = Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
r[o - 1] = arguments[o];
if ("object" === ("undefined" == typeof t ? "undefined" : i(t)) && 1 === r.length) {
var a = r[0]
, s = u.default[this._locale]
, l = s(a);
if (t[l])
return t[l];
if (t.other)
return t.other
}
if (r && r.length > 0)
for (var c = 0; c < r.length; c++)
t = t.replace("{" + c + "}", r[c]);
if (r && "object" === i(r[0])) {
var p = !0
, f = !1
, d = void 0;
try {
for (var h, y = Object.keys(r[0])[Symbol.iterator](); !(p = (h = y.next()).done); p = !0) {
var _ = h.value
, m = r[0][_];
t = t.replace("%" + _ + "%", m)
}
} catch (e) {
f = !0,
d = e
} finally {
try {
!p && y.return && y.return()
} finally {
if (f)
throw d
}
}
}
return t
}
}, {
key: "locale",
get: function() {
return this._locale
}
}], [{
key: "getInstance",
value: function() {
return l || (l = new e),
l
}
}, {
key: "destroy",
value: function() {
l = null
}
}, {
key: "getTranslationFunction",
value: function() {
var e = this.getInstance();
return e.translate.bind(e)
}
}]),
e
}()
, p = c.getTranslationFunction();
t._ = p
}
, function(e, t, n) {
"use strict";
function r(e) {
return e && e.__esModule ? e : {
default: e
}
}
t.__esModule = !0,
t.connect = t.connectAdvanced = t.Provider = void 0;
var o = n(515)
, i = r(o)
, a = n(186)
, s = r(a)
, u = n(516)
, l = r(u);
t.Provider = i.default,
t.connectAdvanced = s.default,
t.connect = l.default
}
, function(e, t, n) {
"use strict";
function r(e, t, n, r, o, i, a, s) {
if (!e) {
var u;
if (void 0 === t)
u = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
else {
var l = [n, r, o, i, a, s]
, c = 0;
u = new Error(t.replace(/%s/g, function() {
return l[c++]
})),
u.name = "Invariant Violation"
}
throw u.framesToPop = 1,
u
}
}
e.exports = r
}
, function(e, t) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var n = t.types = {
REQUEST_ALBUM: "REQUEST_ALBUM",
REQUEST_ALBUM_FAILURE: "REQUEST_ALBUM_FAILURE",
REQUEST_ALBUM_SUCCESS: "REQUEST_ALBUM_SUCCESS",
REQUEST_ALBUM_TRACKS: "REQUEST_ALBUM_TRACKS",
REQUEST_ALBUM_TRACKS_FAILURE: "REQUEST_ALBUM_TRACKS_FAILURE",
REQUEST_ALBUM_TRACKS_SUCCESS: "REQUEST_ALBUM_TRACKS_SUCCESS",
REQUEST_ARTIST: "REQUEST_ARTIST",
REQUEST_ARTIST_ALBUMS: "REQUEST_ARTIST_ALBUMS",
REQUEST_ARTIST_ALBUMS_FAILURE: "REQUEST_ARTIST_ALBUMS_FAILURE",
REQUEST_ARTIST_ALBUMS_SUCCESS: "REQUEST_ARTIST_ALBUMS_SUCCESS",
REQUEST_ARTIST_COMPLEMENTARY_DATA: "REQUEST_ARTIST_COMPLEMENTARY_DATA",
REQUEST_ARTIST_FAILURE: "REQUEST_ARTIST_FAILURE",
REQUEST_ARTIST_METADATA: "REQUEST_ARTIST_METADATA",
REQUEST_ARTIST_METADATA_FAILURE: "REQUEST_ARTIST_METADATA_FAILURE",
REQUEST_ARTIST_METADATA_SUCCESS: "REQUEST_ARTIST_METADATA_SUCCESS",
REQUEST_ARTIST_RELATED_ARTISTS: "REQUEST_ARTIST_RELATED_ARTISTS",
REQUEST_ARTIST_RELATED_ARTISTS_FAILURE: "REQUEST_ARTIST_RELATED_ARTISTS_FAILURE",
REQUEST_ARTIST_RELATED_ARTISTS_SUCCESS: "REQUEST_ARTIST_RELATED_ARTISTS_SUCCESS",
REQUEST_ARTIST_SUCCESS: "REQUEST_ARTIST_SUCCESS",
REQUEST_ARTIST_TOP_TRACKS: "REQUEST_ARTIST_TOP_TRACKS",
REQUEST_ARTIST_TOP_TRACKS_FAILURE: "REQUEST_ARTIST_TOP_TRACKS_FAILURE",
REQUEST_ARTIST_TOP_TRACKS_SUCCESS: "REQUEST_ARTIST_TOP_TRACKS_SUCCESS",
REQUEST_CURRENT_USER_PLAYLISTS: "REQUEST_CURRENT_USER_PLAYLISTS",
REQUEST_CURRENT_USER_PLAYLISTS_FAILURE: "REQUEST_CURRENT_USER_PLAYLISTS_FAILURE",
REQUEST_CURRENT_USER_PLAYLISTS_SUCCESS: "REQUEST_CURRENT_USER_PLAYLISTS_SUCCESS",
REQUEST_CURRENT_USER_PLAYLISTS_MORE: "REQUEST_CURRENT_USER_PLAYLISTS_MORE",
REQUEST_CURRENT_USER_PLAYLISTS_MORE_SUCCESS: "REQUEST_CURRENT_USER_PLAYLISTS_MORE_SUCCESS",
REQUEST_PLAYLIST: "REQUEST_PLAYLIST",
REQUEST_PLAYLIST_FAILURE: "REQUEST_PLAYLIST_FAILURE",
REQUEST_PLAYLIST_SUCCESS: "REQUEST_PLAYLIST_SUCCESS",
REQUEST_PLAYLIST_TRACKS: "REQUEST_PLAYLIST_TRACKS",
REQUEST_PLAYLIST_TRACKS_FAILURE: "REQUEST_PLAYLIST_TRACKS_FAILURE",
REQUEST_PLAYLIST_TRACKS_SUCCESS: "REQUEST_PLAYLIST_TRACKS_SUCCESS",
REQUEST_SEARCH: "REQUEST_SEARCH",
REQUEST_SEARCH_SUCCESS: "REQUEST_SEARCH_SUCCESS",
REQUEST_SEARCH_FAILURE: "REQUEST_SEARCH_FAILURE",
REQUEST_SEARCH_TRACKS_MORE: "REQUEST_SEARCH_TRACKS_MORE",
REQUEST_SEARCH_TRACKS_MORE_SUCCESS: "REQUEST_SEARCH_TRACKS_MORE_SUCCESS",
REQUEST_SEARCH_ALBUMS_MORE: "REQUEST_SEARCH_ALBUMS_MORE",
REQUEST_SEARCH_ALBUMS_MORE_SUCCESS: "REQUEST_SEARCH_ALBUMS_MORE_SUCCESS",
REQUEST_SEARCH_ARTISTS_MORE: "REQUEST_SEARCH_ARTISTS_MORE",
REQUEST_SEARCH_ARTISTS_MORE_SUCCESS: "REQUEST_SEARCH_ARTISTS_MORE_SUCCESS",
REQUEST_SEARCH_PLAYLISTS_MORE: "REQUEST_SEARCH_PLAYLISTS_MORE",
REQUEST_SEARCH_PLAYLISTS_MORE_SUCCESS: "REQUEST_SEARCH_PLAYLISTS_MORE_SUCCESS",
REQUEST_TRACK: "REQUEST_TRACK",
REQUEST_TRACK_SUCCESS: "REQUEST_TRACK_SUCCESS",
REQUEST_TRACK_FAILURE: "REQUEST_TRACK_FAILURE",
REQUEST_ME: "REQUEST_ME",
REQUEST_ME_FAILURE: "REQUEST_ME_FAILURE",
REQUEST_ME_SUCCESS: "REQUEST_ME_SUCCESS",
REQUEST_USER: "REQUEST_USER",
REQUEST_USER_SUCCESS: "REQUEST_USER_SUCCESS",
REQUEST_USER_FAILURE: "REQUEST_USER_FAILURE",
REQUEST_USER_PLAYLISTS: "REQUEST_USER_PLAYLISTS",
REQUEST_USER_PLAYLISTS_SUCCESS: "REQUEST_USER_PLAYLISTS_SUCCESS",
REQUEST_USER_PLAYLISTS_FAILURE: "REQUEST_USER_PLAYLISTS_FAILURE",
REQUEST_USER_PLAYLISTS_MORE: "REQUEST_USER_PLAYLISTS_MORE",
REQUEST_USER_PLAYLISTS_MORE_SUCCESS: "REQUEST_USER_PLAYLISTS_MORE_SUCCESS",
REQUEST_USER_PLAYLISTS_MORE_FAILURE: "REQUEST_USER_PLAYLISTS_MORE_FAILURE",
REQUEST_COLLECTION_TRACKS: "REQUEST_COLLECTION_TRACKS",
REQUEST_COLLECTION_TRACKS_FAILURE: "REQUEST_COLLECTION_TRACKS_FAILURE",
REQUEST_COLLECTION_TRACKS_SUCCESS: "REQUEST_COLLECTION_TRACKS_SUCCESS",
REQUEST_COLLECTION_TRACKS_MORE: "REQUEST_COLLECTION_TRACKS_MORE",
REQUEST_COLLECTION_TRACKS_MORE_SUCCESS: "REQUEST_COLLECTION_TRACKS_MORE_SUCCESS",
REQUEST_COLLECTION_ALBUMS: "REQUEST_COLLECTION_ALBUMS",
REQUEST_COLLECTION_ALBUMS_FAILURE: "REQUEST_COLLECTION_ALBUMS_FAILURE",
REQUEST_COLLECTION_ALBUMS_SUCCESS: "REQUEST_COLLECTION_ALBUMS_SUCCESS",
REQUEST_COLLECTION_ALBUMS_MORE: "REQUEST_COLLECTION_ALBUMS_MORE",
REQUEST_COLLECTION_ALBUMS_MORE_SUCCESS: "REQUEST_COLLECTION_ALBUMS_MORE_SUCCESS",
REQUEST_COLLECTION_ARTISTS: "REQUEST_COLLECTION_ARTISTS",
REQUEST_COLLECTION_ARTISTS_FAILURE: "REQUEST_COLLECTION_ARTISTS_FAILURE",
REQUEST_COLLECTION_ARTISTS_SUCCESS: "REQUEST_COLLECTION_ARTISTS_SUCCESS",
REQUEST_COLLECTION_ARTISTS_MORE: "REQUEST_COLLECTION_ARTISTS_MORE",
REQUEST_COLLECTION_ARTISTS_MORE_SUCCESS: "REQUEST_COLLECTION_ARTISTS_MORE_SUCCESS",
REQUEST_COLLECTION_CONTAINS_TRACK: "REQEUST_COLLECTION_CONTAINS_TRACK",
REQUEST_COLLECTION_CONTAINS_TRACK_SUCCESS: "REQEUST_COLLECTION_CONTAINS_TRACK_SUCCESS",
REQUEST_FEATURED_PLAYLISTS: "REQUEST_FEATURED_PLAYLISTS",
REQUEST_FEATURED_PLAYLISTS_SUCCESS: "REQUEST_FEATURED_PLAYLISTS_SUCCESS",
REQUEST_FEATURED_PLAYLISTS_FAILURE: "REQUEST_FEATURED_PLAYLISTS_FAILURE",
REQUEST_FEATURED_PLAYLISTS_MORE: "REQUEST_FEATURED_PLAYLISTS_MORE",
REQUEST_FEATURED_PLAYLISTS_MORE_SUCCESS: "REQUEST_FEATURED_PLAYLISTS_MORE_SUCCESS",
REQUEST_BROWSE_NEW_RELEASES: "REQUEST_BROWSE_NEW_RELEASES",
REQUEST_BROWSE_NEW_RELEASES_SUCCESS: "REQUEST_BROWSE_NEW_RELEASES_SUCCESS",
REQUEST_BROWSE_NEW_RELEASES_FAILURE: "REQUEST_BROWSE_NEW_RELEASES_FAILURE",
REQUEST_BROWSE_NEW_RELEASES_MORE: "REQUEST_BROWSE_NEW_RELEASES_MORE",
REQUEST_BROWSE_NEW_RELEASES_MORE_SUCCESS: "REQUEST_BROWSE_NEW_RELEASES_MORE_SUCCESS",
REQUEST_BROWSE_CATEGORIES: "REQUEST_BROWSE_CATEGORIES",
REQUEST_BROWSE_CATEGORIES_SUCCESS: "REQUEST_BROWSE_CATEGORIES_SUCCESS",
REQUEST_BROWSE_CATEGORIES_FAILURE: "REQUEST_BROWSE_CATEGORIES_FAILURE",
REQUEST_BROWSE_CATEGORIES_MORE: "REQUEST_BROWSE_CATEGORIES_MORE",
REQUEST_BROWSE_CATEGORIES_MORE_SUCCESS: "REQUEST_BROWSE_CATEGORIES_MORE_SUCCESS",
REQUEST_BROWSE_CATEGORIES_MORE_FAILURE: "REQUEST_BROWSE_CATEGORIES_MORE_FAILURE",
REQUEST_BROWSE_CATEGORY: "REQUEST_BROWSE_CATEGORY",
REQUEST_BROWSE_CATEGORY_SUCCESS: "REQUEST_BROWSE_CATEGORY_SUCCESS",
REQUEST_BROWSE_CATEGORY_FAILURE: "REQUEST_BROWSE_CATEGORY_FAILURE",
REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE: "REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE",
REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_SUCCESS: "REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_SUCCESS",
REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_FAILURE: "REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_FAILURE",
REQUEST_IS_FOLLOWING_PLAYLIST: "REQUEST_IS_FOLLOWING_PLAYLIST",
REQUEST_IS_FOLLOWING_PLAYLIST_SUCCESS: "REQUEST_IS_FOLLOWING_PLAYLIST_SUCCESS",
REQUEST_IS_FOLLOWING_PLAYLIST_FAILURE: "REQUEST_IS_FOLLOWING_PLAYLIST_FAILURE",
REQUEST_IS_FOLLOWING_ARTIST: "REQUEST_IS_FOLLOWING_ARTIST",
REQUEST_IS_FOLLOWING_ARTIST_SUCCESS: "REQUEST_IS_FOLLOWING_ARTIST_SUCCESS",
REQUEST_IS_FOLLOWING_ARTIST_FAILURE: "REQUEST_IS_FOLLOWING_ARTIST_FAILURE",
REQUEST_IS_ALBUM_SAVED: "REQUEST_IS_ALBUM_SAVED",
REQUEST_IS_ALBUM_SAVED_SUCCESS: "REQUEST_IS_ALBUM_SAVED_SUCCESS",
REQUEST_IS_ALBUM_SAVED_FAILURE: "REQUEST_IS_ALBUM_SAVED_FAILURE",
REQUEST_CONNECT_DEVICES: "REQUEST_CONNECT_DEVICES",
REQUEST_CONNECT_DEVICES_SUCCESS: "REQUEST_CONNECT_DEVICES_SUCCESS",
REQUEST_CONNECT_DEVICES_FAILURE: "REQUEST_CONNECT_DEVICES_FAILURE",
REQUEST_CLEAR_DATA: "REQUEST_CLEAR_DATA",
REQUEST_VIEW: "REQUEST_VIEW",
REQUEST_VIEW_SUCCESS: "REQUEST_VIEW_SUCCESS",
REQUEST_VIEW_FAILURE: "REQUEST_VIEW_FAILURE",
REQUEST_VIEW_MORE: "REQUEST_VIEW_MORE",
REQUEST_VIEW_MORE_SUCCESS: "REQUEST_VIEW_MORE_SUCCESS",
REQUEST_VIEW_MORE_FAILURE: "REQUEST_VIEW_MORE_FAILURE",
REQUEST_RADIO: "REQUEST_RADIO",
REQUEST_RADIO_SUCCESS: "REQUEST_RADIO_SUCCESS",
REQUEST_RADIO_FAILURE: "REQUEST_RADIO_FAILURE"
};
t.requestRadio = function() {
return {
type: n.REQUEST_RADIO
}
}
,
t.requestRadioSuccess = function(e) {
return {
type: n.REQUEST_RADIO_SUCCESS,
data: e
}
}
,
t.requestRadioFailure = function(e) {
return {
type: n.REQUEST_RADIO_FAILURE,
err: e
}
}
,
t.requestSearch = function(e) {
return {
type: n.REQUEST_SEARCH,
query: e
}
}
,
t.requestSearchSuccess = function(e, t) {
return {
type: n.REQUEST_SEARCH_SUCCESS,
query: e,
data: t
}
}
,
t.requestSearchFailure = function(e) {
return {
type: n.REQUEST_SEARCH_FAILURE,
err: e
}
}
,
t.requestSearchTracksMore = function(e) {
return {
type: n.REQUEST_SEARCH_TRACKS_MORE,
query: e
}
}
,
t.requestSearchTracksMoreSuccess = function(e, t) {
return {
type: n.REQUEST_SEARCH_TRACKS_MORE_SUCCESS,
query: e,
data: t
}
}
,
t.requestSearchAlbumsMore = function(e) {
return {
type: n.REQUEST_SEARCH_ALBUMS_MORE,
query: e
}
}
,
t.requestSearchAlbumsMoreSuccess = function(e, t) {
return {
type: n.REQUEST_SEARCH_ALBUMS_MORE_SUCCESS,
query: e,
data: t
}
}
,
t.requestSearchArtistsMore = function(e) {
return {
type: n.REQUEST_SEARCH_ARTISTS_MORE,
query: e
}
}
,
t.requestSearchArtistsMoreSuccess = function(e, t) {
return {
type: n.REQUEST_SEARCH_ARTISTS_MORE_SUCCESS,
query: e,
data: t
}
}
,
t.requestSearchPlaylistsMore = function(e) {
return {
type: n.REQUEST_SEARCH_PLAYLISTS_MORE,
query: e
}
}
,
t.requestSearchPlaylistsMoreSuccess = function(e, t) {
return {
type: n.REQUEST_SEARCH_PLAYLISTS_MORE_SUCCESS,
query: e,
data: t
}
}
,
t.requestConnectDevices = function() {
return {
type: n.REQUEST_CONNECT_DEVICES
}
}
,
t.requestConnectDevicesSuccess = function(e) {
return {
type: n.REQUEST_CONNECT_DEVICES_SUCCESS,
devices: e.devices
}
}
,
t.requestConnectDevicesFailure = function(e) {
return {
type: n.REQUEST_CONNECT_DEVICES_FAILURE,
err: e
}
}
,
t.requestArtist = function(e) {
return {
type: n.REQUEST_ARTIST,
uri: e
}
}
,
t.requestArtistSuccess = function(e, t) {
return {
type: n.REQUEST_ARTIST_SUCCESS,
uri: e,
data: t
}
}
,
t.requestArtistFailure = function(e, t) {
return {
type: n.REQUEST_ARTIST_FAILURE,
uri: e,
err: t
}
}
,
t.requestArtistComplementaryData = function(e) {
return {
type: n.REQUEST_ARTIST_COMPLEMENTARY_DATA,
uri: e
}
}
,
t.requestArtistTopTracks = function(e) {
return {
type: n.REQUEST_ARTIST_TOP_TRACKS,
uri: e
}
}
,
t.requestArtistTopTracksSuccess = function(e, t) {
return {
type: n.REQUEST_ARTIST_TOP_TRACKS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestArtistTopTracksFailure = function(e, t) {
return {
type: n.REQUEST_ARTIST_TOP_TRACKS_FAILURE,
uri: e,
err: t
}
}
,
t.requestArtistAlbums = function(e) {
return {
type: n.REQUEST_ARTIST_ALBUMS,
uri: e
}
}
,
t.requestArtistAlbumsSuccess = function(e, t) {
return {
type: n.REQUEST_ARTIST_ALBUMS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestArtistAlbumsFailure = function(e, t) {
return {
type: n.REQUEST_ARTIST_ALBUMS_FAILURE,
uri: e,
err: t
}
}
,
t.requestArtistRelatedArtists = function(e) {
return {
type: n.REQUEST_ARTIST_RELATED_ARTISTS,
uri: e
}
}
,
t.requestArtistRelatedArtistsSuccess = function(e, t) {
return {
type: n.REQUEST_ARTIST_RELATED_ARTISTS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestArtistRelatedArtistsFailure = function(e, t) {
return {
type: n.REQUEST_ARTIST_RELATED_ARTISTS_FAILURE,
uri: e,
err: t
}
}
,
t.requestArtistMetadata = function(e) {
return {
type: n.REQUEST_ARTIST_METADATA,
uri: e
}
}
,
t.requestArtistMetadataSuccess = function(e, t) {
return {
type: n.REQUEST_ARTIST_METADATA_SUCCESS,
uri: e,
data: t
}
}
,
t.requestArtistMetadataFailure = function(e, t) {
return {
type: n.REQUEST_ARTIST_METADATA_FAILURE,
uri: e,
err: t
}
}
,
t.requestTrack = function(e) {
return {
type: n.REQUEST_TRACK,
uri: e
}
}
,
t.requestTrackSuccess = function(e, t) {
return {
type: n.REQUEST_TRACK_SUCCESS,
uri: e,
data: t
}
}
,
t.requestTrackFailure = function(e, t) {
return {
type: n.REQUEST_TRACK_SUCCESS,
uri: e,
err: t
}
}
,
t.requestAlbum = function(e) {
return {
type: n.REQUEST_ALBUM,
uri: e
}
}
,
t.requestAlbumSuccess = function(e, t) {
return {
type: n.REQUEST_ALBUM_SUCCESS,
uri: e,
data: t
}
}
,
t.requestAlbumFailure = function(e, t) {
return {
type: n.REQUEST_ALBUM_FAILURE,
uri: e,
err: t
}
}
,
t.requestAlbumTracks = function(e) {
return {
type: n.REQUEST_ALBUM_TRACKS,
uri: e
}
}
,
t.requestAlbumTracksSuccess = function(e, t) {
return {
type: n.REQUEST_ALBUM_TRACKS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestAlbumTracksFailure = function(e, t) {
return {
type: n.REQUEST_ALBUM_TRACKS_FAILURE,
uri: e,
err: t
}
}
,
t.requestPlaylist = function(e) {
return {
type: n.REQUEST_PLAYLIST,
uri: e
}
}
,
t.requestPlaylistSuccess = function(e, t) {
return {
type: n.REQUEST_PLAYLIST_SUCCESS,
uri: e,
data: t
}
}
,
t.requestPlaylistFailure = function(e, t) {
return {
type: n.REQUEST_PLAYLIST_FAILURE,
uri: e,
err: t
}
}
,
t.requestPlaylistTracks = function(e) {
return {
type: n.REQUEST_PLAYLIST_TRACKS,
uri: e
}
}
,
t.requestPlaylistTracksSuccess = function(e, t) {
return {
type: n.REQUEST_PLAYLIST_TRACKS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestPlaylistTracksFailure = function(e, t) {
return {
type: n.REQUEST_PLAYLIST_TRACKS_FAILURE,
uri: e,
err: t
}
}
,
t.requestCurrentUserPlaylists = function() {
return {
type: n.REQUEST_CURRENT_USER_PLAYLISTS
}
}
,
t.requestCurrentUserPlaylistsSuccess = function(e) {
return {
type: n.REQUEST_CURRENT_USER_PLAYLISTS_SUCCESS,
data: e
}
}
,
t.requestCurrentUserPlaylistsFailure = function(e) {
return {
type: n.REQUEST_CURRENT_USER_PLAYLISTS_FAILURE,
err: e
}
}
,
t.requestCurrentUserPlaylistsMore = function() {
return {
type: n.REQUEST_CURRENT_USER_PLAYLISTS_MORE
}
}
,
t.requestCurrentUserPlaylistsMoreSuccess = function(e) {
return {
type: n.REQUEST_CURRENT_USER_PLAYLISTS_MORE_SUCCESS,
data: e
}
}
,
t.requestMeSuccess = function(e) {
return {
type: n.REQUEST_ME_SUCCESS,
data: e
}
}
,
t.requestMeFailure = function(e) {
return {
type: n.REQUEST_ME_FAILURE,
err: e
}
}
,
t.requestCollectionTracks = function() {
return {
type: n.REQUEST_COLLECTION_TRACKS
}
}
,
t.requestCollectionTracksSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_TRACKS_SUCCESS,
data: e
}
}
,
t.requestCollectionTracksFailure = function(e) {
return {
type: n.REQUEST_COLLECTION_TRACKS_FAILURE,
err: e
}
}
,
t.requestCollectionTracksMore = function() {
return {
type: n.REQUEST_COLLECTION_TRACKS_MORE
}
}
,
t.requestCollectionTracksMoreSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_TRACKS_MORE_SUCCESS,
data: e
}
}
,
t.requestCollectionAlbums = function() {
return {
type: n.REQUEST_COLLECTION_ALBUMS
}
}
,
t.requestCollectionAlbumsSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_ALBUMS_SUCCESS,
data: e
}
}
,
t.requestCollectionAlbumsFailure = function(e) {
return {
type: n.REQUEST_COLLECTION_ALBUMS_FAILURE,
err: e
}
}
,
t.requestCollectionAlbumsMore = function() {
return {
type: n.REQUEST_COLLECTION_ALBUMS_MORE
}
}
,
t.requestCollectionAlbumsMoreSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_ALBUMS_MORE_SUCCESS,
data: e
}
}
,
t.requestCollectionArtists = function() {
return {
type: n.REQUEST_COLLECTION_ARTISTS
}
}
,
t.requestCollectionArtistsSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_ARTISTS_SUCCESS,
data: e
}
}
,
t.requestCollectionArtistsFailure = function(e) {
return {
type: n.REQUEST_COLLECTION_ARTISTS_FAILURE,
err: e
}
}
,
t.requestCollectionArtistsMore = function() {
return {
type: n.REQUEST_COLLECTION_ARTISTS_MORE
}
}
,
t.requestCollectionArtistsMoreSuccess = function(e) {
return {
type: n.REQUEST_COLLECTION_ARTISTS_MORE_SUCCESS,
data: e
}
}
,
t.requestCollectionContainsTrack = function(e) {
return {
type: n.REQUEST_COLLECTION_CONTAINS_TRACK,
uri: e
}
}
,
t.requestCollectionContainsTrackSuccess = function(e, t) {
return {
type: n.REQUEST_COLLECTION_CONTAINS_TRACK_SUCCESS,
uri: e,
containsTrack: t
}
}
,
t.requestUser = function(e) {
return {
type: n.REQUEST_USER,
uri: e
}
}
,
t.requestUserSuccess = function(e, t) {
return {
type: n.REQUEST_USER_SUCCESS,
uri: e,
data: t
}
}
,
t.requestUserFailure = function(e, t) {
return {
type: n.REQUEST_USER_FAILURE,
uri: e,
err: t
}
}
,
t.requestUserPlaylists = function(e) {
return {
type: n.REQUEST_USER_PLAYLISTS,
uri: e
}
}
,
t.requestUserPlaylistsSuccess = function(e, t) {
return {
type: n.REQUEST_USER_PLAYLISTS_SUCCESS,
uri: e,
data: t
}
}
,
t.requestUserPlaylistsFailure = function(e, t) {
return {
type: n.REQUEST_USER_PLAYLISTS_FAILURE,
uri: e,
err: t
}
}
,
t.requestUserPlaylistsMore = function(e) {
return {
type: n.REQUEST_USER_PLAYLISTS_MORE,
uri: e
}
}
,
t.requestUserPlaylistsMoreSuccess = function(e, t) {
return {
type: n.REQUEST_USER_PLAYLISTS_MORE_SUCCESS,
uri: e,
data: t
}
}
,
t.requestUserPlaylistsMoreFailure = function(e, t) {
return {
type: n.REQUEST_USER_PLAYLISTS_MORE_FAILURE,
uri: e,
err: t
}
}
,
t.requestFeaturedPlaylists = function(e) {
return {
type: n.REQUEST_FEATURED_PLAYLISTS,
country: e
}
}
,
t.requestFeaturedPlaylistsSuccess = function(e) {
return {
type: n.REQUEST_FEATURED_PLAYLISTS_SUCCESS,
data: e
}
}
,
t.requestFeaturedPlaylistsFailure = function(e) {
return {
type: n.REQUEST_FEATURED_PLAYLISTS_FAILURE,
err: e
}
}
,
t.requestFeaturedPlaylistsMore = function(e) {
return {
type: n.REQUEST_FEATURED_PLAYLISTS_MORE,
country: e
}
}
,
t.requestFeaturedPlaylistsMoreSuccess = function(e) {
return {
type: n.REQUEST_FEATURED_PLAYLISTS_MORE_SUCCESS,
data: e
}
}
,
t.requestBrowseNewReleases = function(e) {
return {
type: n.REQUEST_BROWSE_NEW_RELEASES,
country: e
}
}
,
t.requestBrowseNewReleasesSuccess = function(e) {
return {
type: n.REQUEST_BROWSE_NEW_RELEASES_SUCCESS,
data: e
}
}
,
t.requestBrowseNewReleasesFailure = function(e) {
return {
type: n.REQUEST_BROWSE_NEW_RELEASES_FAILURE,
err: e
}
}
,
t.requestBrowseNewReleasesMore = function(e) {
return {
type: n.REQUEST_BROWSE_NEW_RELEASES_MORE,
country: e
}
}
,
t.requestBrowseNewReleasesMoreSuccess = function(e) {
return {
type: n.REQUEST_BROWSE_NEW_RELEASES_MORE_SUCCESS,
data: e
}
}
,
t.requestBrowseCategories = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORIES,
country: e
}
}
,
t.requestBrowseCategoriesSuccess = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORIES_SUCCESS,
data: e
}
}
,
t.requestBrowseCategoriesFailure = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORIES_FAILURE,
err: e
}
}
,
t.requestMoreBrowseCategories = function() {
return {
type: n.REQUEST_BROWSE_CATEGORIES_MORE
}
}
,
t.requestMoreBrowseCategoriesSuccess = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORIES_MORE_SUCCESS,
data: e
}
}
,
t.requestMoreBrowseCategoriesFailure = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORIES_MORE_FAILURE,
err: e
}
}
,
t.requestBrowseCategory = function(e, t) {
return {
type: n.REQUEST_BROWSE_CATEGORY,
id: e,
country: t
}
}
,
t.requestBrowseCategorySuccess = function(e, t) {
return {
type: n.REQUEST_BROWSE_CATEGORY_SUCCESS,
data: e,
id: t
}
}
,
t.requestBrowseCategoryFailure = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORY_FAILURE,
err: e
}
}
,
t.requestBrowseCategoryPlaylistsMore = function(e, t) {
return {
type: n.REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE,
id: e,
country: t
}
}
,
t.requestBrowseCategoryPlaylistsMoreSuccess = function(e, t) {
return {
type: n.REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_SUCCESS,
data: e,
id: t
}
}
,
t.requestBrowseCategoryPlaylistsMoreFailure = function(e) {
return {
type: n.REQUEST_BROWSE_CATEGORY_PLAYLISTS_MORE_FAILURE,
err: e
}
}
,
t.requestIsFollowingPlaylist = function(e) {
return {
type: n.REQUEST_IS_FOLLOWING_PLAYLIST,
uri: e
}
}
,
t.requestIsFollowingPlaylistSuccess = function(e, t) {
return {
type: n.REQUEST_IS_FOLLOWING_PLAYLIST_SUCCESS,
uri: e,
data: t
}
}
,
t.requestIsFollowingPlaylistFailure = function(e, t) {
return {
type: n.REQUEST_IS_FOLLOWING_PLAYLIST_FAILURE,
uri: e,
err: t
}
}
,
t.requestIsFollowingArtist = function(e) {
return {
type: n.REQUEST_IS_FOLLOWING_ARTIST,
uri: e
}
}
,
t.requestIsFollowingArtistSuccess = function(e, t) {
return {
type: n.REQUEST_IS_FOLLOWING_ARTIST_SUCCESS,
uri: e,
data: t
}
}
,
t.requestIsFollowingArtistFailure = function(e, t) {
return {
type: n.REQUEST_IS_FOLLOWING_ARTIST_FAILURE,
uri: e,
err: t
}
}
,
t.requestIsAlbumSaved = function(e) {
return {
type: n.REQUEST_IS_ALBUM_SAVED,
uri: e
}
}
,
t.requestIsAlbumSavedSuccess = function(e, t) {
return {
type: n.REQUEST_IS_ALBUM_SAVED_SUCCESS,
uri: e,
data: t
}
}
,
t.requestIsAlbumSavedFailure = function(e, t) {
return {
type: n.REQUEST_IS_ALBUM_SAVED_FAILURE,
uri: e,
err: t
}
}
,
t.clearData = function() {
return {
type: n.REQUEST_CLEAR_DATA
}
}
,
t.requestView = function(e, t) {
return {
type: n.REQUEST_VIEW,
id: e,
country: t
}
}
,
t.requestViewSuccess = function(e, t) {
return {
type: n.REQUEST_VIEW_SUCCESS,
id: e,
data: t
}
}
,
t.requestViewFailure = function(e, t) {
return {
type: n.REQUEST_VIEW_FAILURE,
id: e,
err: t
}
}
,
t.requestViewMore = function(e, t) {
return {
type: n.REQUEST_VIEW_MORE,
id: e,
country: t
}
}
,
t.requestViewMoreSuccess = function(e, t) {
return {
type: n.REQUEST_VIEW_MORE_SUCCESS,
id: e,
data: t
}
}
,
t.requestViewMoreFailure = function(e, t) {
return {
type: n.REQUEST_VIEW_MORE_FAILURE,
id: e,
err: t
}
}
}
, function(e, t, n) {
"use strict";
var r = n(29)
, o = r;
e.exports = o
}
, function(e, t) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var n = t.types = {
NEXT: "NEXT",
START_RADIO: "START_RADIO",
PLAY_ALBUM: "PLAY_ALBUM",
PLAY_ARTIST: "PLAY_ARTIST",
PLAY_PLAYLIST: "PLAY_PLAYLIST",
PLAY_TRACK: "PLAY_TRACK",
PLAY_TRACKS: "PLAY_TRACKS",
PREVIOUS: "PREVIOUS",
SET_REPEAT: "SET_REPEAT",
SET_SHUFFLE: "SET_SHUFFLE",
STATUS_UPDATE: "STATUS_UPDATE",
TOGGLE_PLAY: "TOGGLE_PLAY",
TRACK_PROGRESS: "TRACK_PROGRESS",
DEVICE_INFO_CHANGED: "DEVICE_INFO_CHANGED",
CONNECT_DEVICES_LOADED: "CONNECT_DEVICES_LOADED",
SEEK: "SEEK",
SET_VOLUME: "SET_VOLUME",
SET_ACTIVE_DEVICE: "SET_ACTIVE_DEVICE",
PLAYBACK_ERROR: "PLAYBACK_ERROR",
HARMONY_ERROR: "HARMONY_ERROR"
};
t.playTrack = function(e, t) {
return {
type: n.PLAY_TRACK,
index: e,
contextURI: t
}
}
,
t.playTracks = function(e, t, r) {
return {
type: n.PLAY_TRACKS,
index: e,
tracks: t,
contextURI: r
}
}
,
t.startRadio = function(e) {
return {
type: n.START_RADIO,
uri: e
}
}
,
t.playPlaylist = function(e) {
return {
type: n.PLAY_PLAYLIST,
uri: e
}
}
,
t.playArtist = function(e) {
return {
type: n.PLAY_ARTIST,
uri: e
}
}
,
t.playAlbum = function(e) {
return {
type: n.PLAY_ALBUM,
uri: e
}
}
,
t.togglePlay = function() {
return {
type: n.TOGGLE_PLAY
}
}
,
t.previous = function() {
return {
type: n.PREVIOUS
}
}
,
t.next = function() {
return {
type: n.NEXT
}
}
,
t.seek = function(e) {
return {
type: n.SEEK,
position: e
}
}
,
t.setVolume = function(e) {
return {
type: n.SET_VOLUME,
volume: e
}
}
,
t.setShuffle = function(e) {
return {
type: n.SET_SHUFFLE,
shuffle: e
}
}
,
t.setRepeat = function(e) {
return {
type: n.SET_REPEAT,
repeat: e
}
}
,
t.trackProgress = function(e) {
return {
type: n.TRACK_PROGRESS,
position: e
}
}
,
t.statusUpdate = function(e) {
return {
type: n.STATUS_UPDATE,
playerState: e
}
}
,
t.deviceInfoChanged = function(e) {
return {
type: n.DEVICE_INFO_CHANGED,
deviceInfo: e
}
}
,
t.connectDevicesLoaded = function(e) {
return {
type: n.CONNECT_DEVICES_LOADED,
devices: e
}
}
,
t.setActiveDevice = function(e) {
return {
type: n.SET_ACTIVE_DEVICE,
id: e
}
}
,
t.playbackError = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "unknown"
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "unknown"
, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "";
return {
type: n.PLAYBACK_ERROR,
name: e,
source: t,
message: r
}
}
,
t.harmonyError = function() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "unknown"
, t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "unknown"
, r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "";
return {
type: n.HARMONY_ERROR,
name: e,
source: t,
message: r
}
}
}
, function(e, t) {
"use strict";
function n(e) {
for (var t = arguments.length - 1, n = "Minified React error #" + e + "; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=" + e, r = 0; r < t; r++)
n += "&args[]=" + encodeURIComponent(arguments[r + 1]);
n += " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
var o = new Error(n);
throw o.name = "Invariant Violation",
o.framesToPop = 1,
o
}
e.exports = n
}
, function(e, t) {
"use strict";
function n(e) {
if (null === e || void 0 === e)
throw new TypeError("Object.assign cannot be called with null or undefined");
return Object(e)
}
function r() {
try {
if (!Object.assign)
return !1;
var e = new String("abc");
if (e[5] = "de",
"5" === Object.getOwnPropertyNames(e)[0])
return !1;
for (var t = {}, n = 0; n < 10; n++)
t["_" + String.fromCharCode(n)] = n;
var r = Object.getOwnPropertyNames(t).map(function(e) {
return t[e]
});
if ("0123456789" !== r.join(""))
return !1;
var o = {};
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
o[e] = e
}),
"abcdefghijklmnopqrst" === Object.keys(Object.assign({}, o)).join("")
} catch (e) {
return !1
}
}
var o = Object.prototype.hasOwnProperty
, i = Object.prototype.propertyIsEnumerable;
e.exports = r() ? Object.assign : function(e, t) {
for (var r, a, s = n(e), u = 1; u < arguments.length; u++) {
r = Object(arguments[u]);
for (var l in r)
o.call(r, l) && (s[l] = r[l]);
if (Object.getOwnPropertySymbols) {
a = Object.getOwnPropertySymbols(r);
for (var c = 0; c < a.length; c++)
i.call(r, a[c]) && (s[a[c]] = r[a[c]])
}
}
return s
}
}
, function(e, t) {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
});
var n = t.types = {
RESET_BACKGROUND_COLOR: "RESET_BACKGROUND_COLOR",
SET_BACKGROUND_COLOR: "SET_BACKGROUND_COLOR",
SET_CONTEXTUAL_BG: "SET_CONTEXTUAL_BG",
COPY_LINK_SUCCESS: "COPY_LINK_SUCCESS",
OPEN_NEW_PLAYLIST_DIALOG: "OPEN_NEW_PLAYLIST_DIALOG",
CLOSE_NEW_PLAYLIST_DIALOG: "CLOSE_NEW_PLAYLIST_DIALOG",
OPEN_ADD_TO_PLAYLIST_DIALOG: "OPEN_ADD_TO_PLAYLIST_DIALOG",
CLOSE_ADD_TO_PLAYLIST_DIALOG: "CLOSE_ADD_TO_PLAYLIST_DIALOG",
SWITCH_TO_NEW_PLAYLIST_DIALOG: "SWITCH_TO_NEW_PLAYLIST_DIALOG",
SET_BACKGROUND_IMAGE: "SET_BACKGROUND_IMAGE",
HIDE_BACKGROUND_IMAGE: "HIDE_BACKGROUND_IMAGE",
RESET_BACKGROUND: "RESET_BACKGROUND"
};
t.setBackgroundImage = function(e) {
return {
type: n.SET_BACKGROUND_IMAGE,
image: e
}
}
,
t.hideBackgroundImage = function() {
return {
type: n.HIDE_BACKGROUND_IMAGE
}
}
,
t.setContextualBackground = function(e) {
return {
type: n.SET_CONTEXTUAL_BG,
image: e
}
}
,
t.setBackgroundColor = function(e, t) {
return {
type: n.SET_BACKGROUND_COLOR,
color: e,
image: t
}
}
,
t.resetBackgroundColor = function() {
return {
type: n.RESET_BACKGROUND_COLOR
}
}
,
t.resetBackground = function() {
return {
type: n.RESET_BACKGROUND
}
}
,
t.copyLinkSuccess = function(e) {
return {
type: n.COPY_LINK_SUCCESS,
link: e
}
}
,
t.openNewPlaylistDialog = function() {
return {
type: n.OPEN_NEW_PLAYLIST_DIALOG
}
}
,
t.closeNewPlaylistDialog = function() {
return {
type: n.CLOSE_NEW_PLAYLIST_DIALOG
}
}
,
t.switchToNewPlaylistDialog = function() {
return {
type: n.SWITCH_TO_NEW_PLAYLIST_DIALOG
}
}
,
t.openAddToPlaylistDialog = function(e) {
return {
type: n.OPEN_ADD_TO_PLAYLIST_DIALOG,
uri: e
}
}
,
t.closeAddToPlaylistDialog = function() {
return {
type: n.CLOSE_ADD_TO_PLAYLIST_DIALOG
}
}
}
, function(e, t, n) {
(function(t) {
"use strict";
var r, o = t.Promise || n(613).Promise, i = Array.prototype.slice;
r = Object.defineProperty ? function(e, t, n) {
return e[t] ? e : (Object.defineProperty(e, t, {
value: n,
configurable: !0,
writable: !0
}),
e)
}
: function(e, t, n) {
return e[t] ? e : (e[t] = n,
e)
}
,
r(o, "toCallback", function(e, t) {
if (!t || "function" != typeof t)
throw new TypeError("Callback function unspecified.");
return e.then(function(e) {
return t(null, e)
}, function(e) {
return t(e)
})
}),
r(o, "defer", function() {
var e = {};
return e.promise = new o(function(t, n) {
e.resolve = t,
e.reject = n
}
),
e
}),
r(o.prototype, "pipe", function(e) {
if ("function" != typeof e.resolve || "function" != typeof e.reject)
throw new TypeError("Argument not a deferred object.");
this.then(e.resolve, e.reject)
}),
r(o.prototype, "spread", function(e, t) {
return this.then(function(e) {
return o.all(e)
}).then(function(t) {
return 1 === t.length ? e(t[0]) : e.apply(this, t)
}, t)
}),
r(o.prototype, "get", function(e) {
return this.then(function(t) {
if (e in t)
return t[e];
throw new TypeError('No property "' + e + '" in object.')
})
}),
r(o.prototype, "access", function(e) {
for (var t = Array.isArray(e) ? e : i.call(arguments), n = this, r = n, o = 0, a = t.length; o < a; o++)
r = r.get(t[o]);
return r
}),
r(o.prototype, "call", function(e) {
var t = i.call(arguments, 1);
return this.then(function(n) {
var r = n[e].apply(n, t);
return r
})
}),
e.exports = o
}
).call(t, function() {
return this
}())
}
, function(e, t, n) {
function r(e) {
return null === e || void 0 === e
}
function o(e) {
return !(!e || "object" != typeof e || "number" != typeof e.length) && ("function" == typeof e.copy && "function" == typeof e.slice && !(e.length > 0 && "number" != typeof e[0]))
}
function i(e, t, n) {
var i, c;
if (r(e) || r(t))
return !1;
if (e.prototype !== t.prototype)
return !1;
if (u(e))
return !!u(t) && (e = a.call(e),
t = a.call(t),
l(e, t, n));
if (o(e)) {
if (!o(t))
return !1;
if (e.length !== t.length)
return !1;
for (i = 0; i < e.length; i++)
if (e[i] !== t[i])
return !1;
return !0
}
try {
var p = s(e)
, f = s(t)
} catch (e) {
return !1
}
if (p.length != f.length)
return !1;
for (p.sort(),
f.sort(),
i = p.length - 1; i >= 0; i--)
if (p[i] != f[i])
return !1;
for (i = p.length - 1; i >= 0; i--)
if (c = p[i],
!l(e[c], t[c], n))
return !1;
return typeof e == typeof t
}
var a = Array.prototype.slice
, s = n(364)
, u = n(363)
, l = e.exports = function(e, t, n) {
return n || (n = {}),
e === t || (e instanceof Date && t instanceof Date ? e.getTime() === t.getTime() : !e || !t || "object" != typeof e && "object" != typeof t ? n.strict ? e === t : e == t : i(e, t, n))
}
}
, function(e, t, n) {
"use strict";
function r(e, t) {
this.type = e;
for (var n in t)
"function" != typeof t[n] && (this[n] = t[n])
}
var o = n(131)
, i = "spotify:"
, a = "http://play.spotify.com/"
, s = "https://play.spotify.com/"
, u = "http://open.spotify.com/"
, l = "https://open.spotify.com/"
, c = new TypeError("Invalid Spotify URI!")
, p = (new TypeError("Not implemented!"),
{
URI: 0,
URL: 1
})
, f = function(e) {
var t, n, r, o, f = e.split("?");
if (f.length > 1) {
e = f.shift(),
r = f.pop();
var d = r.split("#");
d.length > 1 && (r = d.shift(),
o = d.pop()),
r = m(r)
}
var h = e.split("#");
if (h.length > 1 && (e = h.shift(),
o = h.pop()),
0 === e.indexOf(i))
t = e.slice(i.length).split(":"),
n = p.URI;
else {
if (e = e.split("?")[0],
0 === e.indexOf(a))
t = e.slice(a.length).split("/");
else if (0 === e.indexOf(s))
t = e.slice(s.length).split("/");
else if (0 === e.indexOf(u))
t = e.slice(u.length).split("/");
else {
if (0 !== e.indexOf(l))
throw c;
t = e.slice(l.length).split("/")
}
n = p.URL
}
return o && t.push(o),
{
format: n,
components: t,
query: r
}
}
, d = function(e, t) {
return e = encodeURIComponent(e),
t === p.URI && (e = e.replace(/%20/g, "+")),
e = e.replace(/[!'()]/g, escape),
e = e.replace(/\*/g, "%2A")
}
, h = function(e, t) {
var n = t == p.URI ? e.replace(/\+/g, "%20") : e;
return decodeURIComponent(n)
}
, y = function(e, t) {
var n;
e.id && (n = e._base62Id);
var o, i, a;
switch (e.type) {
case r.Type.ALBUM:
return o = [r.Type.ALBUM, n],
e.disc && o.push(e.disc),
o;
case r.Type.AD:
return [r.Type.AD, e._base62Id];
case r.Type.ARTIST:
return [r.Type.ARTIST, n];
case r.Type.ARTIST_TOPLIST:
return [r.Type.ARTIST, n, r.Type.TOP, e.toplist];
case r.Type.SEARCH:
return [r.Type.SEARCH, d(e.query, t)];
case r.Type.TRACK:
return (e.context || e.play) && (n += _({